@cesdk/cesdk-js 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CreativeEngine=t():e.CreativeEngine=t()}(globalThis,(function(){return(()=>{var e,t={77643:(e,t,r)=>{var n=r(35557),o=r(4349),i=r(90407),a=r(55134),s=r(49951);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},63872:(e,t,r)=>{var n=r(62470),o=r(77289),i=r(97614),a=r(3067),s=r(19346);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},65674:(e,t,r)=>{var n=r(70489)(r(4818),"Map");e.exports=n},22462:(e,t,r)=>{var n=r(76290),o=r(94951),i=r(40440),a=r(86180),s=r(67719);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},35135:(e,t,r)=>{var n=r(63872),o=r(71490),i=r(32594),a=r(35953),s=r(74667),c=r(84615);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},29652:(e,t,r)=>{var n=r(4818).Symbol;e.exports=n},64600:(e,t,r)=>{var n=r(4818).Uint8Array;e.exports=n},46562:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},1998:(e,t,r)=>{var n=r(31453),o=r(25664),i=r(5860),a=r(79571),s=r(58347),c=r(1859),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),d=!r&&!l&&a(e),p=!r&&!l&&!d&&c(e),f=r||l||d||p,m=f?n(e.length,String):[],g=m.length;for(var h in e)!t&&!u.call(e,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,g))||m.push(h);return m}},1612:(e,t,r)=>{var n=r(46912),o=r(3355);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},66258:(e,t,r)=>{var n=r(46912),o=r(3355),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},8620:(e,t,r)=>{var n=r(3355);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},46912:(e,t,r)=>{var n=r(94698);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},8528:(e,t,r)=>{var n=r(54820),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},3153:(e,t,r)=>{var n=r(57572)();e.exports=n},52759:(e,t,r)=>{var n=r(29652),o=r(25135),i=r(73744),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},16651:(e,t,r)=>{var n=r(52759),o=r(71408);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},93216:(e,t,r)=>{var n=r(90830),o=r(70931),i=r(54820),a=r(21304),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},19920:(e,t,r)=>{var n=r(52759),o=r(27906),i=r(71408),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},63339:(e,t,r)=>{var n=r(54820),o=r(87839),i=r(73003),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},97604:(e,t,r)=>{var n=r(35135),o=r(1612),i=r(3153),a=r(70480),s=r(54820),c=r(82551),u=r(50830);e.exports=function e(t,r,l,d,p){t!==r&&i(r,(function(i,c){if(p||(p=new n),s(i))a(t,r,c,l,e,d,p);else{var f=d?d(u(t,c),i,c+"",t,r,p):void 0;void 0===f&&(f=i),o(t,c,f)}}),c)}},70480:(e,t,r)=>{var n=r(1612),o=r(58192),i=r(49947),a=r(46581),s=r(91172),c=r(25664),u=r(5860),l=r(25274),d=r(79571),p=r(90830),f=r(54820),m=r(51969),g=r(1859),h=r(50830),E=r(42963);e.exports=function(e,t,r,_,y,v,b){var w=h(e,r),T=h(t,r),O=b.get(T);if(O)n(e,r,O);else{var P=v?v(w,T,r+"",e,t,b):void 0,D=void 0===P;if(D){var x=u(T),S=!x&&d(T),R=!x&&!S&&g(T);P=T,x||S||R?u(w)?P=w:l(w)?P=a(w):S?(D=!1,P=o(T,!0)):R?(D=!1,P=i(T,!0)):P=[]:m(T)||c(T)?(P=w,c(w)?P=E(w):f(w)&&!p(w)||(P=s(T))):D=!1}D&&(b.set(T,P),y(P,T,_,v,b),b.delete(T)),n(e,r,P)}}},95757:(e,t,r)=>{var n=r(81191),o=r(62549),i=r(6613);e.exports=function(e,t){return i(o(e,t,n),e+"")}},44274:(e,t,r)=>{var n=r(47477),o=r(94698),i=r(81191),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},31453:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},28275:e=>{e.exports=function(e){return function(t){return e(t)}}},81254:(e,t,r)=>{var n=r(64600);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},58192:(e,t,r)=>{e=r.nmd(e);var n=r(4818),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},49947:(e,t,r)=>{var n=r(81254);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},46581:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},87200:(e,t,r)=>{var n=r(66258),o=r(46912);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?o(r,u,l):n(r,u,l)}return r}},38940:(e,t,r)=>{var n=r(4818)["__core-js_shared__"];e.exports=n},13102:(e,t,r)=>{var n=r(95757),o=r(77072);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t}))}},57572:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}},94698:(e,t,r)=>{var n=r(70489),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3566:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},6330:(e,t,r)=>{var n=r(25513);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},70489:(e,t,r)=>{var n=r(93216),o=r(83626);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},74966:(e,t,r)=>{var n=r(96148)(Object.getPrototypeOf,Object);e.exports=n},25135:(e,t,r)=>{var n=r(29652),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},83626:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},35557:(e,t,r)=>{var n=r(32037);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},4349:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},90407:(e,t,r)=>{var n=r(32037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},55134:(e,t,r)=>{var n=r(32037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},49951:(e,t,r)=>{var n=r(32037);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},91172:(e,t,r)=>{var n=r(8528),o=r(74966),i=r(87839);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},58347:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},77072:(e,t,r)=>{var n=r(3355),o=r(28809),i=r(58347),a=r(54820);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},25513:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},70931:(e,t,r)=>{var n,o=r(38940),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},87839:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},62470:e=>{e.exports=function(){this.__data__=[],this.size=0}},77289:(e,t,r)=>{var n=r(8620),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},97614:(e,t,r)=>{var n=r(8620);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},3067:(e,t,r)=>{var n=r(8620);e.exports=function(e){return n(this.__data__,e)>-1}},19346:(e,t,r)=>{var n=r(8620);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},76290:(e,t,r)=>{var n=r(77643),o=r(63872),i=r(65674);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},94951:(e,t,r)=>{var n=r(6330);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},40440:(e,t,r)=>{var n=r(6330);e.exports=function(e){return n(this,e).get(e)}},86180:(e,t,r)=>{var n=r(6330);e.exports=function(e){return n(this,e).has(e)}},67719:(e,t,r)=>{var n=r(6330);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},32037:(e,t,r)=>{var n=r(70489)(Object,"create");e.exports=n},73003:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},29693:(e,t,r)=>{e=r.nmd(e);var n=r(3566),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},73744:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},96148:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},62549:(e,t,r)=>{var n=r(46562),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(c),n(e,this,u)}}},4818:(e,t,r)=>{var n=r(3566),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},50830:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},6613:(e,t,r)=>{var n=r(44274),o=r(13546)(n);e.exports=o},13546:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},71490:(e,t,r)=>{var n=r(63872);e.exports=function(){this.__data__=new n,this.size=0}},32594:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},35953:e=>{e.exports=function(e){return this.__data__.get(e)}},74667:e=>{e.exports=function(e){return this.__data__.has(e)}},84615:(e,t,r)=>{var n=r(63872),o=r(65674),i=r(22462);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},21304:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47477:e=>{e.exports=function(e){return function(){return e}}},3355:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},81191:e=>{e.exports=function(e){return e}},25664:(e,t,r)=>{var n=r(16651),o=r(71408),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},5860:e=>{var t=Array.isArray;e.exports=t},28809:(e,t,r)=>{var n=r(90830),o=r(27906);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},25274:(e,t,r)=>{var n=r(28809),o=r(71408);e.exports=function(e){return o(e)&&n(e)}},79571:(e,t,r)=>{e=r.nmd(e);var n=r(4818),o=r(18585),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},90830:(e,t,r)=>{var n=r(52759),o=r(54820);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},27906:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},54820:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},71408:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},51969:(e,t,r)=>{var n=r(52759),o=r(74966),i=r(71408),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},1859:(e,t,r)=>{var n=r(19920),o=r(28275),i=r(29693),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},82551:(e,t,r)=>{var n=r(1998),o=r(63339),i=r(28809);e.exports=function(e){return i(e)?n(e,!0):o(e)}},57168:(e,t,r)=>{var n=r(97604),o=r(13102)((function(e,t,r){n(e,t,r)}));e.exports=o},18585:e=>{e.exports=function(){return!1}},42963:(e,t,r)=>{var n=r(87200),o=r(82551);e.exports=function(e){return n(e,o(e))}},81655:(e,t,r)=>{"use strict";r.d(t,{T:()=>i,t1:()=>a,uS:()=>s,ZP:()=>y});var n,o,i,a,s,c,u,l,d=r(17019),p=r(8097),f=r(68876),m=r(81867),g=r(48641),h=r(15684),E=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},_=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};!function(e){e.Absolute="Absolute",e.Percent="Percent",e.Undefined="Auto"}(i||(i={})),function(e){e.Absolute="Absolute",e.Percent="Percent",e.Auto="Auto"}(a||(a={})),function(e){e.Bool="Bool",e.Int="Int",e.Float="Float",e.String="String",e.Color="Color",e.Enum="Enum",e.Struct="Struct"}(s||(s={})),function(e){e.Center="Center",e.Inner="Inner",e.Outer="Outer"}(c||(c={})),function(e){e.Dashed="Dashed",e.DashedRound="DashedRound",e.Dotted="Dotted",e.LongDashed="LongDashed",e.LongDashedRound="LongDashedRound",e.Solid="Solid"}(u||(u={})),function(e){e.Bevel="Bevel",e.Miter="Miter",e.Round="Round"}(l||(l={}));class y{constructor(e){n.set(this,void 0),o.set(this,void 0),E(this,n,e,"f"),E(this,o,new g.Z(e),"f")}async export(e,t=m.Z.Png){return(0,p.ZP)("handle",e,(0,d.Rx)()),(0,p.ZP)("mimeType",t,(0,p.zF)()),new Promise(((r,o)=>{_(this,n,"f").exportToBuffer(e,t,(e=>{"error"in e?o(e.error):r(new Blob([e],{type:t}))}),{jpegQuality:.9,pngCompressionLevel:5,useTargetSize:!1,targetWidth:0,targetHeight:0})}))}async loadFromString(e){return(0,p.ZP)("content",e,(0,d.Z_)()),new Promise((t=>{_(this,n,"f").loadBlocksFromString(e,(e=>{const r=(0,g.L)(e);t((0,h.Z)(r))}))}))}async saveToString(e){return(0,p.ZP)("blocks",e,(0,d.IX)((0,d.Rx)())),new Promise((t=>{_(this,n,"f").saveBlocksToString(e,(e=>{const r=(0,g.L)(e);t(r)}))}))}create(e){return(0,p.ZP)("type",e,(0,d.Z_)()),(0,g.L)(_(this,n,"f").create(e))}getType(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getType(e))}setSelected(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("selected",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setSelected(e,t))}isSelected(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isSelected(e))}findAllSelected(){return(0,h.Z)(_(this,n,"f").findAllSelected())}isGroupable(e){return(0,p.ZP)("ids",e,(0,d.PV)((0,d.IX)((0,d.Rx)()))),(0,g.L)(_(this,n,"f").isGroupable(e))}group(e){return(0,p.ZP)("ids",e,(0,d.PV)((0,d.IX)((0,d.Rx)()))),(0,g.L)(_(this,n,"f").group(e))}ungroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").ungroup(e))}enterGroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").enterGroup(e))}exitGroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").exitGroup(e))}setName(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("name",t,(0,d.Z_)()),_(this,o,"f").setValue(e,f.uY,"name",t)}getName(e){return(0,p.ZP)("id",e,(0,d._L)()),_(this,o,"f").getValue(e,f.uY,"name")}findByName(e){(0,p.ZP)("name",e,(0,d.Z_)());const t=_(this,n,"f").findByName(e);return(0,h.Z)(t)}findByType(e){(0,p.ZP)("type",e,(0,d.Z_)());const t=_(this,n,"f").findByType(e),r=(0,g.L)(t);return(0,h.Z)(r)}findAll(){return(0,h.Z)(_(this,n,"f").findAll())}isVisible(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isVisible(e))}setVisible(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("visible",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setVisible(e,t))}isClipped(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isClipped(e))}setClipped(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("clipped",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setClipped(e,t))}getPositionX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionX(e))}getPositionXMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionXMode(e))}getPositionY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionY(e))}getPositionYMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionYMode(e))}setPositionX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setPositionX(e,t))}setPositionXMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setPositionXMode(e,t))}setPositionY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setPositionY(e,t))}setPositionYMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setPositionYMode(e,t))}getRotation(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getRotation(e))}setRotation(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("radians",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setRotation(e,t))}getFlipHorizontal(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFlip(e)).horizontal}getFlipVertical(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFlip(e)).vertical}setFlipHorizontal(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("flip",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFlipHorizontal(e,t))}setFlipVertical(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("flip",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFlipVertical(e,t))}getWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getWidth(e))}getWidthMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getWidthMode(e))}getHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getHeight(e))}getHeightMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getHeightMode(e))}setWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setWidth(e,t))}setWidthMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setWidthMode(e,t))}setHeight(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setHeight(e,t))}setHeightMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setHeightMode(e,t))}getFrameWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getLastFrameWidth(e))}getFrameHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getLastFrameHeight(e))}duplicate(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").duplicate(e))}destroy(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").destroy(e))}isValid(e){return(0,p.ZP)("id",e,(0,d._L)()),_(this,n,"f").isValid(e)}getParent(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getParent(e))}getChildren(e){(0,p.ZP)("id",e,(0,d._L)());const t=(0,g.L)(_(this,n,"f").getChildren(e));return(0,h.Z)(t)}insertChild(e,t,r){return(0,p.ZP)("parent",e,(0,d.Rx)()),(0,p.ZP)("child",t,(0,d.Rx)()),(0,p.ZP)("index",r,(0,d.VV)((0,d.Rx)(),0)),(0,g.L)(_(this,n,"f").insertChild(e,t,r))}appendChild(e,t){return(0,p.ZP)("parent",e,(0,d.Rx)()),(0,p.ZP)("child",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").appendChild(e,t))}referencesAnyVariables(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").referencesAnyVariables(e))}getGlobalBoundingBoxX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxX(e))}getGlobalBoundingBoxY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxY(e))}getGlobalBoundingBoxWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxWidth(e))}getGlobalBoundingBoxHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxHeight(e))}findAllProperties(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,h.Z)((0,g.L)(_(this,n,"f").findAllProperties(e)))}getPropertyType(e){return(0,p.ZP)("property",e,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getPropertyType(e))}getEnumValues(e){return(0,p.ZP)("enumProperty",e,(0,d.Z_)()),(0,h.Z)((0,g.L)(_(this,n,"f").getEnumValues(e)))}setBool(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.O7)()),(0,g.L)(_(this,n,"f").setBool(e,t,r))}getBool(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getBool(e,t))}setInt(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d._L)()),(0,g.L)(_(this,n,"f").setInt(e,t,r))}getInt(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getInt(e,t))}setFloat(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setFloat(e,t,r))}getFloat(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getFloat(e,t))}setString(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Z_)()),(0,g.L)(_(this,n,"f").setString(e,t,r))}getString(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getString(e,t))}setColorRGBA(e,t,r,o,i,a){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("r",r,(0,d.Rx)()),(0,p.ZP)("g",o,(0,d.Rx)()),(0,p.ZP)("b",i,(0,d.Rx)()),(0,p.ZP)("a",a,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setColorRGBA(e,t,r,o,i,a))}getColorRGBA(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getColorRGBA(e,t))}setEnum(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Z_)()),(0,g.L)(_(this,n,"f").setEnum(e,t,r))}getEnum(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getEnum(e,t))}hasCrop(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasCrop(e))}setCropScaleX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("scaleX",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropScaleX(e,t))}setCropScaleY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("scaleY",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropScaleY(e,t))}setCropRotation(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("rotation",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropRotation(e,t))}setCropTranslationX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("translationX",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropTranslationX(e,t))}setCropTranslationY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("translationY",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropTranslationY(e,t))}resetCrop(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").resetCrop(e))}getCropScaleX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropScaleX(e))}getCropScaleY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropScaleY(e))}getCropRotation(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropRotation(e))}getCropTranslationX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropTranslationX(e))}getCropTranslationY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropTranslationY(e))}hasOpacity(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasOpacity(e))}setOpacity(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("opacity",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOpacity(e,t))}getOpacity(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOpacity(e))}hasFillColor(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasFillColor(e))}setFillColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setFillColorRGBA(e,t,r,o,i))}getFillColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFillColorRGBA(e))}setFillColorEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFillColorEnabled(e,t))}isFillColorEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isFillColorEnabled(e))}hasBackgroundColor(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasBackgroundColor(e))}setBackgroundColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setBackgroundColorRGBA(e,t,r,o,i))}getBackgroundColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getBackgroundColorRGBA(e))}setBackgroundColorEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setBackgroundColorEnabled(e,t))}isBackgroundColorEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isBackgroundColorEnabled(e))}hasStroke(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasStroke(e))}setStrokeEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setStrokeEnabled(e,t))}isStrokeEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isStrokeEnabled(e))}setStrokeColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setStrokeColorRGBA(e,t,r,o,i))}getStrokeColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeColorRGBA(e))}setStrokeWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("width",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setStrokeWidth(e,t))}getStrokeWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeWidth(e))}setStrokeStyle(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokeStyle(e,t))}getStrokeStyle(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeStyle(e))}setStrokePosition(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokePosition(e,t))}getStrokePosition(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokePosition(e))}setStrokeCornerGeometry(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokeCornerGeometry(e,t))}getStrokeCornerGeometry(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeCornerGeometry(e))}hasOutline(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasOutline(e))}setOutlineColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOutlineColorRGBA(e,t,r,o,i))}getOutlineColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOutlineColorRGBA(e))}setOutlineEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setOutlineEnabled(e,t))}isOutlineEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isOutlineEnabled(e))}setOutlineWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("width",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOutlineWidth(e,t))}getOutlineWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOutlineWidth(e))}}n=new WeakMap,o=new WeakMap},37443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,i=r(8097),a=r(17019),s=r(48641),c=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},u=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class l{constructor(e){n.set(this,void 0),o.set(this,void 0),c(this,n,e,"f"),c(this,o,new s.Z(e),"f")}setZoomLevel(e=1){(0,i.ZP)("zoomLevel",e,(0,a.VV)((0,a.Rx)(),0)),u(this,n,"f").setZoomLevel(e)}getZoomLevel(){return(0,s.L)(u(this,n,"f").getZoomLevel())}addUndoStep(){(0,s.L)(u(this,n,"f").addUndoStep())}undo(){(0,s.L)(u(this,n,"f").undo())}redo(){(0,s.L)(u(this,n,"f").redo())}canUndo(){return(0,s.L)(u(this,n,"f").canUndo())}canRedo(){return(0,s.L)(u(this,n,"f").canRedo())}setSettingString(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.Z_)()),(0,s.L)(u(this,n,"f").setSettingString(e,t))}setSettingFloat(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.Rx)()),(0,s.L)(u(this,n,"f").setSettingFloat(e,t))}setSettingBool(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.O7)()),(0,s.L)(u(this,n,"f").setSettingBool(e,t))}}n=new WeakMap,o=new WeakMap},94110:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,o=r(8097),i=r(17019),a=(r(68876),r(14545),r(48641)),s=r(15684),c=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class u{constructor(e){n.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,n,e,"f")}subscribe(e,t){(0,o.ZP)("blocks",e,(0,i.IX)());const r=c(this,n,"f").subscribe(e,(e=>{try{t((0,s.Z)(e,!0))}catch(e){console.error(e)}}));return()=>{(0,a.L)(c(this,n,"f").unsubscribe(r))}}}n=new WeakMap},37184:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,o,i=r(8097),a=r(17019),s=r(68876),c=r(81867),u=(r(14545),r(48641)),l=r(15684),d=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},p=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class f{constructor(e){n.set(this,void 0),o.set(this,void 0),d(this,n,e,"f"),d(this,o,new u.Z(e),"f")}async loadFromString(e){return(0,i.ZP)("sceneContent",e,(0,a.Z_)()),new Promise((t=>{p(this,n,"f").loadSceneFromString(e,(e=>{const r=(0,u.L)(e);t(r)}))}))}async loadFromURL(e){return(0,i.ZP)("url",e,(0,a.Z_)()),new Promise((t=>{p(this,n,"f").loadSceneFromURL(e,(e=>{const r=(0,u.L)(e);t(r)}))}))}async saveToString(){return new Promise(((e,t)=>{const r=this.get();null==r?t(new Error("No scene available.")):p(this,n,"f").saveSceneToString(r,(t=>{const r=(0,u.L)(t);e(r)}))}))}async saveToArchive(){return new Promise(((e,t)=>{const r=this.get();null==r?t(new Error("No scene available.")):p(this,n,"f").saveSceneToArchive(r,(r=>{"error"in r?t(r.error):e(new Blob([r],{type:c.Z.Zip}))}))}))}create(){return(0,u.L)(p(this,n,"f").createScene({layout:s.Kc.Free}))}createFromImage(e,t=300,r=1){return(0,i.ZP)("url",e,(0,a.Z_)()),(0,i.ZP)("dpi",t,(0,a.VV)((0,a.Rx)(),0)),(0,i.ZP)("pixelScaleFactor",r,(0,a.VV)((0,a.Rx)(),0)),new Promise((o=>{p(this,n,"f").createSceneFromImage(e,t,r,s.Kc.Free,0,!1,(e=>{const t=(0,u.L)(e);o(t)}))}))}get(){const e=p(this,n,"f").findByType(s._h.Scene),t=(0,u.L)(e),r=(0,l.Z)(t);return r.length>0?r[0]:null}}n=new WeakMap,o=new WeakMap},49189:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,o=r(8097),i=r(17019),a=(r(14545),r(48641)),s=r(15684),c=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class u{constructor(e){n.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,n,e,"f")}findAll(){return(0,s.Z)(c(this,n,"f").findAllVariables())}setString(e,t){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,o.ZP)("value",t,(0,i.Z_)()),(0,a.L)(c(this,n,"f").setVariableString(e,t))}getString(e){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,a.L)(c(this,n,"f").getVariableString(e))}remove(e){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,a.L)(c(this,n,"f").removeVariable(e))}}n=new WeakMap},8097:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o,zF:()=>i});var n=r(17019);function o(e,t,r){const[o]=(0,n.Gu)(t,r);if(o)throw o.message=`Error in argument '${e}': ${o.message}`,o}function i(){const e=/image\/(png|jpeg|x-tga)|application\/octet-stream|application\/pdf/;return(0,n.Ou)("MimeType",(t=>!("string"!=typeof t||!e.test(t))||{message:`expected one of "image/png", "image/jpeg", "image/x-tga", "application/pdf" or "application/octet-stream", but got "${t}"`}))}},69786:(e,t,r)=>{"use strict";r.d(t,{vx:()=>i,pA:()=>s,_z:()=>c,qZ:()=>u,Zj:()=>l,zI:()=>d,YV:()=>p,Hf:()=>f});var n=r(58645),o=r(1440);r(32012);const i={baseURL:"/extensions/",entries:["ly.img.cesdk.filters.duotone","ly.img.cesdk.filters.lut","ly.img.cesdk.stickers.emoticons","ly.img.cesdk.vectorpaths","ly.img.cesdk.vectorpaths.abstract","ly.img.cesdk.fonts","ly.img.cesdk.images.samples","ly.img.cesdk.effects","ly.img.cesdk.stickers.doodle","ly.img.cesdk.stickers.hand","ly.img.cesdk.stickers.emoji"]},a={"din-a0":{width:1189,height:841,unit:n.Z.Millimeter},"din-a1":{width:841,height:594,unit:n.Z.Millimeter},"din-a2":{width:594,height:420,unit:n.Z.Millimeter},"din-a3":{width:420,height:297,unit:n.Z.Millimeter},"din-a4":{width:297,height:210,unit:n.Z.Millimeter},"din-a5":{width:210,height:148,unit:n.Z.Millimeter},"din-a6":{meta:{default:!0},width:148,height:105,unit:n.Z.Millimeter},"din-a65":{width:210,height:105,unit:n.Z.Millimeter},"din-b5":{width:250,height:176,unit:n.Z.Millimeter},square:{width:105,height:105,unit:n.Z.Millimeter},"twitter-profile":{width:400,height:400,unit:n.Z.Pixel},"twitter-image":{width:1024,height:512,unit:n.Z.Pixel},"twitter-header":{width:1500,height:500,unit:n.Z.Pixel},"instagram-profile":{width:180,height:180,unit:n.Z.Pixel},"instagram-photo":{width:1080,height:1080,unit:n.Z.Pixel},"instagram-story":{width:1080,height:1920,unit:n.Z.Pixel},"american-letter":{width:8.5,height:11,unit:n.Z.Inch},"american-legal":{width:8.5,height:14,unit:n.Z.Inch},"16:10":{width:1600,height:1e3,unit:n.Z.Pixel},"16:9":{width:1600,height:900,unit:n.Z.Pixel},"16:10@2400p":{width:3840,height:2400,unit:n.Z.Pixel},"16:9@2160p":{width:3840,height:2160,unit:n.Z.Pixel},"business-card":{width:85,height:55,unit:n.Z.Millimeter}},s={company_name:{value:"img.ly"},first_name:{value:"Charly"},last_name:{value:"Williams"},address:{value:"742 Evergreen Terrace"},city:{value:"Springfield"}},c=(e,t)=>{const r=`[UBQ] ${e}`;switch(t){case o.i.Warning:console.warn(r);break;case o.i.Error:console.error(r);break;case o.i.Info:console.log(r);break;default:console.log(r)}},u={log:c},l={colorPalettes:{primary:{meta:{default:!0},entries:["#FFFFFF","#000000","#6686FF","#66CCFF","#54FFEA","#E75050","#F28855","#FFF763"]}},pageFormats:a},d={baseURL:"core/"},p={maskSpotColor:void 0,dpi:300,pixelScaleFactor:1},f={title:{fontFileUri:"bundle://ly.img.cesdk/fonts/imgly_font_inter_semibold.otf",show:!0},dimOutOfPageAreas:!0}},45755:(e,t,r)=>{"use strict";r.d(t,{QG:()=>c});var n=r(57168),o=r.n(n),i=r(69786);function a(e,t=window.location.href){return new URL(e,t).toString()}function s(e){return"/"!==e[e.length-1]?`${e}/`:e}function c(e={}){var t,r,n,c,u,l,d,p,f,m,g,h,E;const _={license:e.license,role:null!==(t=e.role)&&void 0!==t?t:"Creator",featureFlags:null!==(r=e.featureFlags)&&void 0!==r?r:{},baseURL:null!==(n=e.baseURL)&&void 0!==n?n:"https://cdn.img.ly/packages/imgly/cesdk-js/1.5.0/assets",core:null!==(c=e.core)&&void 0!==c?c:Object.assign({},i.zI),extensions:null!==(u=e.extensions)&&void 0!==u?u:Object.assign({},i.vx),callbacks:null!==(l=e.callbacks)&&void 0!==l?l:Object.assign({},i.qZ),variables:null!==(d=e.variables)&&void 0!==d?d:Object.assign({},i.pA),presets:null!==(p=e.presets)&&void 0!==p?p:Object.assign({},i.Zj),scene:null!==(f=e.scene)&&void 0!==f?f:Object.assign({},i.YV),page:o()({},i.Hf,null!==(m=e.page)&&void 0!==m?m:{}),assets:null!==(g=e.assets)&&void 0!==g?g:{},assetSources:o()({},e.assetSources),defaultFont:null!==(h=e.defaultFont)&&void 0!==h?h:void 0};return _.extensions.entries=null!==(E=_.extensions.entries)&&void 0!==E?E:Object.assign({},i.vx.entries),Object.entries(i.Zj).forEach((([e,t])=>{var r;_.presets[e]=null!==(r=_.presets[e])&&void 0!==r?r:Object.assign({},t)})),_.baseURL=a(_.baseURL),_.baseURL=s(_.baseURL),_.core.baseURL=a(_.core.baseURL,_.baseURL),_.core.baseURL=s(_.core.baseURL),_.extensions.baseURL=s(_.extensions.baseURL),_.extensions.entries=_.extensions.entries.map((e=>s(e))),_}r(32012)},45094:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(45755);var n=r(69786);function o(e){var t,r;return null!==(r=null===(t=null==e?void 0:e.callbacks)||void 0===t?void 0:t.log)&&void 0!==r?r:n._z}r(1440)},32012:(e,t,r)=>{"use strict";r(1440),r(58645)},86295:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>S});var n=r(81655),o=r(45755),i=r(94110),a=r(50124),s=r(68876),c=r(48641);function u(e,t){var r,n;const o=null==e?void 0:e.getBoundingClientRect(),i=null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0,a=null!==(n=null==o?void 0:o.left)&&void 0!==n?n:0,s=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(t),c=s?t.changedTouches[0].clientX:t.clientX,u=s?t.changedTouches[0].clientY:t.clientY;return{position:{x:(c-a)*window.devicePixelRatio,y:(u-i)*window.devicePixelRatio},isOverUIElement:!1,isTouch:s,timestamp:Date.now()}}var l=r(37184),d=(r(81867),r(14545),r(45111)),p=r(49189),f=r(37443),m=r(48473);var g,h,E,_,y,v,b,w,T,O,P,D=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},x=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class S{constructor(e,t,r){g.add(this),Object.defineProperty(this,"block",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unstable_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),h.set(this,void 0),E.set(this,void 0),_.set(this,void 0),y.set(this,(()=>{const e=this.block.findByType(s._h.Camera)[0];if(!e)return;const{width:t,height:r}=x(this,E,"f"),n=x(this,h,"f").getValue(e,s.$R.Camera,"resolution");(0,d.dA)(n.width,t,1e-4)&&(0,d.dA)(n.height,r,1e-4)||x(this,h,"f").setValue(e,s.$R.Camera,"resolution",{width:t,height:r});const o=x(this,h,"f").getValue(e,s.$R.Camera,"pixelRatio");(0,d.dA)(o,window.devicePixelRatio,1e-4)||x(this,h,"f").setValue(e,s.$R.Camera,"pixelRatio",window.devicePixelRatio)})),v.set(this,void 0),b.set(this,void 0),w.set(this,void 0),D(this,_,e,"f"),D(this,h,new c.Z(e),"f"),D(this,E,t,"f"),this.block=new n.ZP(e),this.scene=new l.Z(e),this.variable=new p.Z(e),this.unstable_editor=new f.Z(e),this.event=new i.Z(e),x(this,h,"f").useInternalAPI((e=>{e.setPreUpdateCallback(x(this,y,"f"))})),x(this,g,"m",T).call(this),window.Cypress&&(this.config=r,this.helper=x(this,h,"f"),this.onPostUpdate=e=>{x(this,h,"f").useInternalAPI((t=>{t.setPostUpdateCallback(e)}))})}dispose(){x(this,g,"m",O).call(this),x(this,h,"f").useInternalAPI((e=>{e.setPreUpdateCallback(null)})),D(this,E,null,"f"),D(this,h,null,"f"),this.block=null,this.scene=null,this.variable=null,x(this,_,"f").delete(),D(this,_,null,"f")}static async init(e,t){console.log("[CESDK] Revision 745fac57d437509e6b884c24141de01cb427d3e3"),t||(t=document.createElement("canvas"));const r=(0,o.QG)(e);return new this(await(0,a.Z)(t,r),t,r)}}h=new WeakMap,E=new WeakMap,_=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w=new WeakMap,g=new WeakSet,T=function(e=!0){if(x(this,v,"f"))return;D(this,b,function(e,t){const r=r=>{const n=u(e,r);n.isTouch&&r.preventDefault(),t.execute("ubq/inputs/mousemove",n)},n=r=>{const n=Object.assign(Object.assign({},u(e,r)),{button:(0,s.fn)(r instanceof MouseEvent?r.button:s.tc.Left),state:s.BN.Up,shiftIsHeld:r.shiftKey});t.execute("ubq/inputs/mousebutton",n)},o=r=>{const n=Object.assign(Object.assign({},u(e,r)),{button:(0,s.fn)(r instanceof MouseEvent?r.button:s.tc.Left),state:s.BN.Down,shiftIsHeld:r.shiftKey});t.execute("ubq/inputs/mousebutton",n)};return e.addEventListener("mousemove",r),e.addEventListener("mousedown",o),e.addEventListener("mouseup",n),e.addEventListener("touchmove",r),e.addEventListener("touchstart",o),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),()=>{e.removeEventListener("mousemove",r),e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",n),e.removeEventListener("touchmove",r),e.removeEventListener("touchstart",o),e.removeEventListener("touchend",n),e.removeEventListener("touchcancel",n)}}(x(this,E,"f"),x(this,h,"f")),"f"),D(this,w,function(e,t){var r;let n=!1,o=0;const i=document.createElement("input");function a(e){try{t.useInternalAPI((t=>{const r=(0,c.L)(t.getSelectedText());""!==r&&e.clipboardData&&(e.clipboardData.setData("text/plain",r),e.preventDefault())}))}catch(e){console.error(e)}}function u(e){const r=e.target,{value:a}=r;if(a.length>0){if(n&&(o+=1),o>1){const e={key:s.u8.Backspace,characters:"",shiftIsHeld:!1,commandIsHeld:!1,optionIsHeld:!1,timestamp:Date.now()};t.execute("ubq/inputs/keyboardkey",e)}const e={key:s.u8.Unknown,characters:a,shiftIsHeld:!1,commandIsHeld:!1,optionIsHeld:!1,timestamp:Date.now()};t.execute("ubq/inputs/keyboardkey",e)}n||(i.value="")}async function l(e){if("a"===e.key&&(e.metaKey||e.ctrlKey))return void await t.execute("ubq/text/selectAllText");if("Escape"===e.key)return void async function(){const e=await t.execute("ubq/editor/getEditorState");t.setEditorState(Object.assign(Object.assign({},e),{editMode:s.Gt.Transform}))}();if("Backspace"!==e.key&&"Delete"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Enter"!==e.key)return;const r=(0,m.Z)(e);await t.execute("ubq/inputs/keyboardkey",r),e.currentTarget&&(i.value="")}function d(){n=!0,o=0}function p(){n=!1,o=0,i.value=""}let f;return i.id="ubq_internal-inline_text_editing_html_representation",i.style.contain="strict",i.style.opacity="0",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.padding="0",i.style.margin="-1px",i.style.overflow="hidden",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="nowrap",i.style.border="0",function e(r){void 0===f&&(f=r),r-f>100&&(f=r,async function(){const{editMode:e}=await t.execute("ubq/editor/getEditorState");"ubq/editMode/text"===e&&i.focus()}()),requestAnimationFrame(e)}(0),i.addEventListener("input",u),i.addEventListener("keydown",l),i.addEventListener("copy",a),i.addEventListener("compositionstart",d),i.addEventListener("compositionend",p),null===(r=null==e?void 0:e.parentElement)||void 0===r||r.appendChild(i),()=>{var t;i.removeEventListener("input",u),i.removeEventListener("keydown",l),i.removeEventListener("copy",a),i.removeEventListener("compositionstart",d),i.removeEventListener("compositionend",p),null===(t=null==e?void 0:e.parentElement)||void 0===t||t.removeChild(i)}}(x(this,E,"f"),x(this,h,"f")),"f");const t=()=>{x(this,g,"m",P).call(this,e),D(this,v,requestAnimationFrame(t),"f")};D(this,v,requestAnimationFrame(t),"f")},O=function(){var e,t;null===(e=x(this,b,"f"))||void 0===e||e.call(this),null===(t=x(this,w,"f"))||void 0===t||t.call(this),D(this,b,void 0,"f"),D(this,w,void 0,"f"),x(this,v,"f")&&(cancelAnimationFrame(x(this,v,"f")),D(this,v,0,"f"))},P=function(e=!0){e&&1===this.block.findByType(s._h.Scene).length&&x(this,h,"f").execute("ubq/render",{displayWidth:x(this,E,"f").width,displayHeight:x(this,E,"f").height}),x(this,_,"f").update()},Object.defineProperty(S,"PositionMode",{enumerable:!0,configurable:!0,writable:!0,value:n.T}),Object.defineProperty(S,"SizeMode",{enumerable:!0,configurable:!0,writable:!0,value:n.t1}),Object.defineProperty(S,"PropertyType",{enumerable:!0,configurable:!0,writable:!0,value:n.uS})},50124:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,o=r(45755),i=r(1440),a=r(68876),s=(r(14545),r(48641)),c=r(45094);const u=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){var t,o,i=void 0!==(e=e||{})?e:{};i.ready=new Promise((function(e,r){t=e,o=r})),Object.getOwnPropertyDescriptor(i.ready,"_main")||(Object.defineProperty(i.ready,"_main",{configurable:!0,get:function(){Ne("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(){Ne("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,"___getTypeName")||(Object.defineProperty(i.ready,"___getTypeName",{configurable:!0,get:function(){Ne("You are getting ___getTypeName 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,"___getTypeName",{configurable:!0,set:function(){Ne("You are setting ___getTypeName 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,"___embind_register_native_and_builtin_types")||(Object.defineProperty(i.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){Ne("You are getting ___embind_register_native_and_builtin_types 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,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){Ne("You are setting ___embind_register_native_and_builtin_types 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,"___stdio_exit")||(Object.defineProperty(i.ready,"___stdio_exit",{configurable:!0,get:function(){Ne("You are getting ___stdio_exit 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,"___stdio_exit",{configurable:!0,set:function(){Ne("You are setting ___stdio_exit 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(){Ne("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(){Ne("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")}})),i.expectedDataFileDownloads||(i.expectedDataFileDownloads=0),i.expectedDataFileDownloads++,i.ENVIRONMENT_IS_PTHREAD||function(e){"object"==typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"==typeof process&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");var t="cesdk.data";"function"!=typeof i.locateFilePackage||i.locateFile||(i.locateFile=i.locateFilePackage,O("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var r,n,o,a,s=i.locateFile?i.locateFile(t,""):t,c=e.remote_package_size,u=null,l=i.getPreloadedPackage?i.getPreloadedPackage(s,c):null;function d(){function t(e,t){if(!e)throw t+(new Error).stack}function r(e,t,r){this.start=e,this.end=t,this.audio=r}i.FS_createPath("/","ly.img.cesdk",!0,!0),i.FS_createPath("/ly.img.cesdk","images",!0,!0),i.FS_createPath("/ly.img.cesdk","shaders",!0,!0),i.FS_createPath("/ly.img.cesdk/shaders","common",!0,!0),i.FS_createPath("/ly.img.cesdk","presets",!0,!0),i.FS_createPath("/ly.img.cesdk","fonts",!0,!0),r.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,i.addRunDependency("fp "+this.name)},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){i.FS_createDataFile(this.name,null,e,!0,!0,!0),i.removeRunDependency("fp "+this.name),this.requests[this.name]=null}};for(var n=e.files,o=0;o<n.length;++o)new r(n[o].start,n[o].end,n[o].audio||0).open("GET",n[o].filename);function a(n){t(n,"Loading data file failed."),t(n instanceof ArrayBuffer,"bad input to processPackageData");var o=new Uint8Array(n);r.prototype.byteArray=o;for(var a=e.files,s=0;s<a.length;++s)r.prototype.requests[a[s].filename].onload();i.removeRunDependency("datafile_cesdk.data")}i.addRunDependency("datafile_cesdk.data"),i.preloadResults||(i.preloadResults={}),i.preloadResults["cesdk.data"]={fromCache:!1},l?(a(l),l=null):u=a}l||(r=s,n=c,o=function(e){u?(u(e),u=null):l=e},(a=new XMLHttpRequest).open("GET",r,!0),a.responseType="arraybuffer",a.onprogress=function(e){var t=r,o=n;if(e.total&&(o=e.total),e.loaded){a.addedTotal?i.dataFileDownloads[t].loaded=e.loaded:(a.addedTotal=!0,i.dataFileDownloads||(i.dataFileDownloads={}),i.dataFileDownloads[t]={loaded:e.loaded,total:o});var s=0,c=0,u=0;for(var l in i.dataFileDownloads){var d=i.dataFileDownloads[l];s+=d.total,c+=d.loaded,u++}s=Math.ceil(s*i.expectedDataFileDownloads/u),i.setStatus&&i.setStatus("Downloading data... ("+c+"/"+s+")")}else i.dataFileDownloads||i.setStatus&&i.setStatus("Downloading data...")},a.onerror=function(e){throw new Error("NetworkError for: "+r)},a.onload=function(e){if(!(200==a.status||304==a.status||206==a.status||0==a.status&&a.response))throw new Error(a.statusText+" : "+a.responseURL);var t=a.response;o(t)},a.send(null)),i.calledRun?d():(i.preRun||(i.preRun=[]),i.preRun.push(d))}({files:[{filename:"/ly.img.cesdk/images/watermark.png",start:0,end:90147},{filename:"/ly.img.cesdk/shaders/liquid.sksl",start:90147,end:92757},{filename:"/ly.img.cesdk/shaders/mirror.sksl",start:92757,end:93211},{filename:"/ly.img.cesdk/shaders/outliner.sksl",start:93211,end:94848},{filename:"/ly.img.cesdk/shaders/tv_glitch.sksl",start:94848,end:97785},{filename:"/ly.img.cesdk/shaders/mask_color.sksl",start:97785,end:98287},{filename:"/ly.img.cesdk/shaders/lut_filter.sksl",start:98287,end:101150},{filename:"/ly.img.cesdk/shaders/vignette.sksl",start:101150,end:101522},{filename:"/ly.img.cesdk/shaders/sharpie.sksl",start:101522,end:103827},{filename:"/ly.img.cesdk/shaders/hsp_selective_adjustments.sksl",start:103827,end:117427},{filename:"/ly.img.cesdk/shaders/half_tone.sksl",start:117427,end:117921},{filename:"/ly.img.cesdk/shaders/tiltshift.sksl",start:117921,end:118553},{filename:"/ly.img.cesdk/shaders/pixelize.sksl",start:118553,end:118853},{filename:"/ly.img.cesdk/shaders/linocut.sksl",start:118853,end:119638},{filename:"/ly.img.cesdk/shaders/glow.sksl",start:119638,end:120605},{filename:"/ly.img.cesdk/shaders/radial_pixel.sksl",start:120605,end:121168},{filename:"/ly.img.cesdk/shaders/black_and_white_color_mixer.sksl",start:121168,end:127485},{filename:"/ly.img.cesdk/shaders/shifter.sksl",start:127485,end:128169},{filename:"/ly.img.cesdk/shaders/posterize.sksl",start:128169,end:128381},{filename:"/ly.img.cesdk/shaders/dot_pattern.sksl",start:128381,end:128896},{filename:"/ly.img.cesdk/shaders/adjustments.sksl",start:128896,end:132785},{filename:"/ly.img.cesdk/shaders/extrude_blur.sksl",start:132785,end:134902},{filename:"/ly.img.cesdk/shaders/duotone_filter.sksl",start:134902,end:135866},{filename:"/ly.img.cesdk/shaders/cross_cut.sksl",start:135866,end:136693},{filename:"/ly.img.cesdk/shaders/placeholder_overlay_lines.sksl",start:136693,end:137274},{filename:"/ly.img.cesdk/shaders/common/ubq_constants.sksl",start:137274,end:137764},{filename:"/ly.img.cesdk/shaders/common/ubq_adjustments.sksl",start:137764,end:142327},{filename:"/ly.img.cesdk/shaders/common/ubq_color_conversions.sksl",start:142327,end:152312},{filename:"/ly.img.cesdk/shaders/common/ubq_hue_constants.sksl",start:152312,end:155479},{filename:"/ly.img.cesdk/presets/.keep",start:155479,end:155479},{filename:"/ly.img.cesdk/fonts/imgly_font_inter_semibold.otf",start:155479,end:426239}],remote_package_size:426239,package_uuid:"66d82ea0-c1fb-4d2c-8c2d-cee257cedcdf"}),i.ENVIRONMENT_IS_PTHREAD&&(i.preRun=[]);var a=i.preRun.slice();"object"==typeof window&&"object"==typeof window.performance?i.performance=performance:"object"==typeof r.g&&"object"==typeof r.g.perf_hooks&&"object"==typeof r.g.perf_hooks.performance?i.performance=r.g.perf_hooks.performance:i.performance={mark:function(){},measure:function(){}},i.emscripten_ubq_asyncFetchStates=new Map,i.emscripten_ubq_asyncFetchCompletedBytes=new Map,i.emscripten_ubq_asyncFetchTotalBytes=new Map,i.emscripten_ubq_asyncFetchHeaders=new Map,i.emscripten_ubq_asyncFetchNextHandle=0,i.emscripten_ubq_asyncFetchNextHeaderHandle=0;const s={PENDING:0,FINISHED:1,ALLOCATED:2,ERROR:3},c=["GET","POST"];if(i.emscripten_ubq_codec_decoders=new Map,i.emscripten_ubq_codec_decoderNextHandle=0,i.emscripten_ubq_codec_createVideoDecoder=function(e){const t=new VideoDecoder({output:r=>{var n;if(t.presentedFrames++,t.probing&&1===t.presentedFrames)return(n=i.ctx).bindTexture(n.TEXTURE_2D,e),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),t.textureUploadFlag=!0,void r.close();t.decodeQueueSize>0||t.probing||((n=i.ctx).bindTexture(n.TEXTURE_2D,e),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),t.textureUploadFlag=!0),r.close()},error:e=>console.error(e)});return t.presentedFrames=0,t},!i.preRun)throw"Module.preRun should exist because file support used it; did a pre-js delete it?";a.forEach((function(e){if(i.preRun.indexOf(e)<0)throw"All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?"}));var u=Object.assign({},i),l=[],d="./this.program",p=(e,t)=>{throw t},f=!0,m=!1,g=!1,h=!1;if(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 E,_,y,v="";function b(e){return i.locateFile?i.locateFile(e,v):v+e}function w(e){if(e instanceof ap)return;let t=e;e&&"object"==typeof e&&e.stack&&(t=[e,e.stack]),O("exiting due to exception: "+t)}if(h){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(E=function(e){return read(e)}),y=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),I("object"==typeof t),t)},_=function(e,t,r){setTimeout((()=>t(y(e))),0)},"undefined"!=typeof scriptArgs?l=scriptArgs:void 0!==arguments&&(l=arguments),"function"==typeof quit&&(p=(e,t)=>{w(t),quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!f&&!m)throw new Error("environment detection error");if(m?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),n&&(v=n),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");E=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},m&&(y=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}}var T=i.print||console.log.bind(console),O=i.printErr||console.warn.bind(console);function P(e){P.shown||(P.shown={}),P.shown[e]||(P.shown[e]=1,O(e))}Object.assign(i,u),u=null,i.arguments&&(l=i.arguments),Object.getOwnPropertyDescriptor(i,"arguments")||Object.defineProperty(i,"arguments",{configurable:!0,get:function(){Ne("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),i.thisProgram&&(d=i.thisProgram),Object.getOwnPropertyDescriptor(i,"thisProgram")||Object.defineProperty(i,"thisProgram",{configurable:!0,get:function(){Ne("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),i.quit&&(p=i.quit),Object.getOwnPropertyDescriptor(i,"quit")||Object.defineProperty(i,"quit",{configurable:!0,get:function(){Ne("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(void 0===i.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.read,"Module.read option was removed (modify read_ in JS)"),I(void 0===i.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),I(void 0===i.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),I(void 0===i.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),I(void 0===i.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Object.getOwnPropertyDescriptor(i,"read")||Object.defineProperty(i,"read",{configurable:!0,get:function(){Ne("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"readAsync")||Object.defineProperty(i,"readAsync",{configurable:!0,get:function(){Ne("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"readBinary")||Object.defineProperty(i,"readBinary",{configurable:!0,get:function(){Ne("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"setWindowTitle")||Object.defineProperty(i,"setWindowTitle",{configurable:!0,get:function(){Ne("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(!m,"worker environment detected but not enabled at build time. Add 'worker' to `-s ENVIRONMENT` to enable."),I(!g,"node environment detected but not enabled at build time. Add 'node' to `-s ENVIRONMENT` to enable."),I(!h,"shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");var D,x=0,S=e=>{x=e},R=()=>x;i.wasmBinary&&(D=i.wasmBinary),Object.getOwnPropertyDescriptor(i,"wasmBinary")||Object.defineProperty(i,"wasmBinary",{configurable:!0,get:function(){Ne("Module.wasmBinary has been replaced with plain wasmBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}});var M,A=i.noExitRuntime||!0;function F(e,t="i8",r){switch("*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return Q[e>>0];case"i16":return G[e>>1];case"i32":case"i64":return W[e>>2];case"float":return z[e>>2];case"double":return Number($[e>>3]);default:Ne("invalid type for getValue: "+t)}return null}Object.getOwnPropertyDescriptor(i,"noExitRuntime")||Object.defineProperty(i,"noExitRuntime",{configurable:!0,get:function(){Ne("Module.noExitRuntime has been replaced with plain noExitRuntime (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),"object"!=typeof WebAssembly&&Ne("no native wasm support detected");var k,C=!1;function I(e,t){e||Ne("Assertion failed"+(t?": "+t:""))}var L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&L)return L.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|c:(240!=(248&a)&&P("Invalid UTF-8 leading byte 0x"+a.toString(16)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|c<<6|63&e[t++]),a<65536)i+=String.fromCharCode(a);else{var u=a-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function U(e,t){return e?j(Z,e,t):""}function N(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=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>1114111&&P("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),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 H(e,t,r){return I("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),N(e,Z,t,r)}function B(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=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}var X,Q,Z,G,q,W,V,z,$,Y="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function K(e,t){I(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&q[n];)++n;if((r=n<<1)-e>32&&Y)return Y.decode(Z.subarray(e,r));for(var i="",a=0;!(a>=t/2);++a){var s=G[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function J(e,t,r){if(I(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),I("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);G[t>>1]=a,t+=2}return G[t>>1]=0,t-n}function ee(e){return 2*e.length}function te(e,t){I(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var o=W[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function re(e,t,r){if(I(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),I("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),W[t>>2]=a,(t+=4)+4>o)break}return W[t>>2]=0,t-n}function ne(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function oe(e){var t=B(e)+1,r=Cd(t);return r&&N(e,Q,r,t),r}function ie(e){var t=B(e)+1,r=Gd(t);return N(e,Q,r,t),r}function ae(e,t){I(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),Q.set(e,t)}function se(e,t,r){for(var n=0;n<e.length;++n)I(e.charCodeAt(n)===(255&e.charCodeAt(n))),Q[t++>>0]=e.charCodeAt(n);r||(Q[t>>0]=0)}function ce(e,t){return e%t>0&&(e+=t-e%t),e}function ue(e){X=e,i.HEAP8=Q=new Int8Array(e),i.HEAP16=G=new Int16Array(e),i.HEAP32=W=new Int32Array(e),i.HEAPU8=Z=new Uint8Array(e),i.HEAPU16=q=new Uint16Array(e),i.HEAPU32=V=new Uint32Array(e),i.HEAPF32=z=new Float32Array(e),i.HEAPF64=$=new Float64Array(e)}var le=5242880;i.TOTAL_STACK&&I(le===i.TOTAL_STACK,"the stack size can no longer be determined at runtime");var de,pe=i.INITIAL_MEMORY||268435456;function fe(){var e=Xd();I(0==(3&e)),W[e+4>>2]=34821223,W[e+8>>2]=2310721022,W[0]=1668509029}function me(){if(!C){var e=Xd(),t=V[e+4>>2],r=V[e+8>>2];34821223==t&&2310721022==r||Ne("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+r.toString(16)+" 0x"+t.toString(16)),1668509029!==W[0]&&Ne("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(i,"INITIAL_MEMORY")||Object.defineProperty(i,"INITIAL_MEMORY",{configurable:!0,get:function(){Ne("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(pe>=le,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+pe+"! (TOTAL_STACK="+le+")"),I("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support"),I(!i.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),I(268435456==pe,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically"),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! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"}();var ge=[],he=[],Ee=[],_e=[],ye=[],ve=!1,be=!1,we=0;function Te(){return A||we>0}function Oe(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)Re(i.preRun.shift());$e(ge)}function Pe(){me(),I(!ve),ve=!0,i.noFSInit||_t.init.initialized||_t.init(),_t.ignorePermissions=!1,lt.init(),$e(he)}function De(){me(),$e(Ee)}function xe(){me(),be=!0}function Se(){if(me(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)Ae(i.postRun.shift());$e(ye)}function Re(e){ge.unshift(e)}function Me(e){he.unshift(e)}function Ae(e){ye.unshift(e)}I(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var Fe=0,ke=null,Ce=null,Ie={};function Le(e){for(var t=e;;){if(!Ie[e])return e;e=t+Math.random()}}function je(e){Fe++,i.monitorRunDependencies&&i.monitorRunDependencies(Fe),e?(I(!Ie[e]),Ie[e]=1,null===ke&&"undefined"!=typeof setInterval&&(ke=setInterval((function(){if(C)return clearInterval(ke),void(ke=null);var e=!1;for(var t in Ie)e||(e=!0,O("still waiting on run dependencies:")),O("dependency: "+t);e&&O("(end of list)")}),1e4))):O("warning: run dependency added without ID")}function Ue(e){if(Fe--,i.monitorRunDependencies&&i.monitorRunDependencies(Fe),e?(I(Ie[e]),delete Ie[e]):O("warning: run dependency removed without ID"),0==Fe&&(null!==ke&&(clearInterval(ke),ke=null),Ce)){var t=Ce;Ce=null,t()}}function Ne(e){i.onAbort&&i.onAbort(e),O(e="Aborted("+e+")"),C=!0,k=1;var t=new WebAssembly.RuntimeError(e);throw o(t),t}i.preloadedImages={},i.preloadedAudios={};var He,Be,Xe,Qe="data:application/octet-stream;base64,";function Ze(e){return e.startsWith(Qe)}function Ge(e){return e.startsWith("file://")}function qe(e,t){return function(){var r=e,n=t;return t||(n=i.asm),I(ve,"native function `"+r+"` called before runtime initialization"),I(!be,"native function `"+r+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),n[e]||I(n[e],"exported native function `"+r+"` not found"),n[e].apply(null,arguments)}}function We(e){try{if(e==He&&D)return new Uint8Array(D);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){Ne(e)}}function Ve(){return D||!f&&!m||"function"!=typeof fetch?Promise.resolve().then((function(){return We(He)})):fetch(He,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+He+"'";return e.arrayBuffer()})).catch((function(){return We(He)}))}function ze(){var e={env:kd,wasi_snapshot_preview1:kd};function t(e,t){var r=e.exports;i.asm=r,I(M=i.asm.memory,"memory not found in wasm exports"),ue(M.buffer),I(de=i.asm.__indirect_function_table,"table not found in wasm exports"),Me(i.asm.__wasm_call_ctors),Ue("wasm-instantiate")}je("wasm-instantiate");var r=i;function n(e){I(i===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,t(e.instance)}function a(t){return Ve().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){O("failed to asynchronously prepare wasm: "+e),Ge(He)&&O("warning: Loading from a file URI ("+He+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),Ne(e)}))}if(i.instantiateWasm)try{return i.instantiateWasm(e,t)}catch(e){return O("Module.instantiateWasm callback failed with error: "+e),!1}return(D||"function"!=typeof WebAssembly.instantiateStreaming||Ze(He)||"function"!=typeof fetch?a(n):fetch(He,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return O("wasm streaming compile failed: "+e),O("falling back to ArrayBuffer instantiation"),a(n)}))}))).catch(o),{}}function $e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?et(r)():et(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(i)}}function Ye(e){return P("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function Ke(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){var t=Ye(e);return e===t?e:t+" ["+e+"]"}))}Ze(He="cesdk.wasm")||(He=b(He));var Je=[];function et(e){var t=Je[e];return t||(e>=Je.length&&(Je.length=e+1),Je[e]=t=de.get(e)),I(de.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t}function tt(e){if(e instanceof ap||"unwind"==e)return k;p(1,e)}function rt(e,t,r,n){Ne("Assertion failed: "+U(e)+", at: "+[t?U(t):"unknown filename",r,n?U(n):"unknown function"])}function nt(e){return Cd(e+16)+16}function ot(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(e){W[this.ptr+4>>2]=e},this.get_type=function(){return W[this.ptr+4>>2]},this.set_destructor=function(e){W[this.ptr+8>>2]=e},this.get_destructor=function(){return W[this.ptr+8>>2]},this.set_refcount=function(e){W[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,Q[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=Q[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,Q[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=Q[this.ptr+13>>0]},this.init=function(e,t){this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=W[this.ptr>>2];W[this.ptr>>2]=e+1},this.release_ref=function(){var e=W[this.ptr>>2];return W[this.ptr>>2]=e-1,I(e>0),1===e}}function it(e,t,r){throw new ot(e).init(t,r),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s NO_DISABLE_EXCEPTION_CATCHING or -s EXCEPTION_CATCHING_ALLOWED=[..] to catch."}function at(e){return W[Ld()>>2]=e,e}var st={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;n>=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=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=st.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=(e=st.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return st.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return st.normalize(e.join("/"))},join2:function(e,t){return st.normalize(e+"/"+t)}};function ct(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}return function(){Ne("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")}}var ut={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:_t.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=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ut.resolve(e).substr(1),t=ut.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;s<i;s++)if(n[s]!==o[s]){a=s;break}var c=[];for(s=a;s<n.length;s++)c.push("..");return(c=c.concat(o.slice(a))).join("/")}},lt={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){lt.ttys[e]={input:[],output:[],ops:t},_t.registerDevice(e,lt.stream_ops)},stream_ops:{open:function(e){var t=lt.ttys[e.node.rdev];if(!t)throw new _t.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new _t.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new _t.ErrnoError(29)}if(void 0===s&&0===i)throw new _t.ErrnoError(6);if(null==s)break;i++,t[r+a]=s}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new _t.ErrnoError(60);try{for(var i=0;i<n;i++)e.tty.ops.put_char(e.tty,t[r+i])}catch(e){throw new _t.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;e.input=Ad(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(T(j(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(T(j(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(O(j(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(j(e.output,0)),e.output=[])}}};function dt(e,t){Z.fill(0,e,e+t)}function pt(e,t){return I(t,"alignment argument is required"),Math.ceil(e/t)*t}function ft(e){e=pt(e,65536);var t=Nd(65536,e);return t?(dt(t,e),t):0}var mt={ops_table:null,mount:function(e){return mt.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(_t.isBlkdev(r)||_t.isFIFO(r))throw new _t.ErrnoError(63);mt.ops_table||(mt.ops_table={dir:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr,lookup:mt.node_ops.lookup,mknod:mt.node_ops.mknod,rename:mt.node_ops.rename,unlink:mt.node_ops.unlink,rmdir:mt.node_ops.rmdir,readdir:mt.node_ops.readdir,symlink:mt.node_ops.symlink},stream:{llseek:mt.stream_ops.llseek}},file:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr},stream:{llseek:mt.stream_ops.llseek,read:mt.stream_ops.read,write:mt.stream_ops.write,allocate:mt.stream_ops.allocate,mmap:mt.stream_ops.mmap,msync:mt.stream_ops.msync}},link:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr,readlink:mt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr},stream:_t.chrdev_stream_ops}});var o=_t.createNode(e,t,r,n);return _t.isDir(o.mode)?(o.node_ops=mt.ops_table.dir.node,o.stream_ops=mt.ops_table.dir.stream,o.contents={}):_t.isFile(o.mode)?(o.node_ops=mt.ops_table.file.node,o.stream_ops=mt.ops_table.file.stream,o.usedBytes=0,o.contents=null):_t.isLink(o.mode)?(o.node_ops=mt.ops_table.link.node,o.stream_ops=mt.ops_table.link.stream):_t.isChrdev(o.mode)&&(o.node_ops=mt.ops_table.chrdev.node,o.stream_ops=mt.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(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)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=_t.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,_t.isDir(e.mode)?t.size=4096:_t.isFile(e.mode)?t.size=e.usedBytes:_t.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&mt.resizeFileStorage(e,t.size)},lookup:function(e,t){throw _t.genericErrors[44]},mknod:function(e,t,r,n){return mt.createNode(e,t,r,n)},rename:function(e,t,r){if(_t.isDir(e.mode)){var n;try{n=_t.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new _t.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=_t.lookupNode(e,t);for(var n in r.contents)throw new _t.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var n=mt.createNode(e,t,41471,0);return n.link=r,n},readlink:function(e){if(!_t.isLink(e.mode))throw new _t.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,n,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(I(a>=0),a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var s=0;s<a;s++)t[r+s]=i[o+s];return a},write:function(e,t,r,n,o,i){if(I(!(t instanceof ArrayBuffer)),t.buffer===Q.buffer&&(i=!1),!n)return 0;var a=e.node;if(a.timestamp=Date.now(),t.subarray&&(!a.contents||a.contents.subarray)){if(i)return I(0===o,"canOwn must imply no weird position inside the file"),a.contents=t.subarray(r,r+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=t.slice(r,r+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(t.subarray(r,r+n),o),n}if(mt.expandFileStorage(a,o+n),a.contents.subarray&&t.subarray)a.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=t[r+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&_t.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new _t.ErrnoError(28);return n},allocate:function(e,t,r){mt.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap:function(e,t,r,n,o,i){if(0!==t)throw new _t.ErrnoError(28);if(!_t.isFile(e.node.mode))throw new _t.ErrnoError(43);var a,s,c=e.node.contents;if(2&i||c.buffer!==X){if((n>0||n+r<c.length)&&(c=c.subarray?c.subarray(n,n+r):Array.prototype.slice.call(c,n,n+r)),s=!0,!(a=ft(r)))throw new _t.ErrnoError(48);Q.set(c,a)}else s=!1,a=c.byteOffset;return{ptr:a,allocated:s}},msync:function(e,t,r,n,o){if(!_t.isFile(e.node.mode))throw new _t.ErrnoError(43);return 2&o||mt.stream_ops.write(e,t,0,n,r,!1),0}}};function gt(e,t,r,n){var o=n?"":Le("al "+e);_(e,(function(r){I(r,'Loading data file "'+e+'" failed (no arrayBuffer).'),t(new Uint8Array(r)),o&&Ue(o)}),(function(t){if(!r)throw'Loading data file "'+e+'" failed.';r()})),o&&je(o)}var ht={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},Et={},_t={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(e,t={})=>{if(!(e=ut.resolve(_t.cwd(),e)))return{path:"",node:null};var r={follow_mount:!0,recurse_count:0};for(var n in r)void 0===t[n]&&(t[n]=r[n]);if(t.recurse_count>8)throw new _t.ErrnoError(32);for(var o=st.normalizeArray(e.split("/").filter((e=>!!e)),!1),i=_t.root,a="/",s=0;s<o.length;s++){var c=s===o.length-1;if(c&&t.parent)break;if(i=_t.lookupNode(i,o[s]),a=st.join2(a,o[s]),_t.isMountpoint(i)&&(!c||c&&t.follow_mount)&&(i=i.mounted.root),!c||t.follow)for(var u=0;_t.isLink(i.mode);){var l=_t.readlink(a);if(a=ut.resolve(st.dirname(a),l),i=_t.lookupPath(a,{recurse_count:t.recurse_count}).node,u++>40)throw new _t.ErrnoError(32)}}return{path:a,node:i}},getPath:e=>{for(var t;;){if(_t.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:(e,t)=>{for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%_t.nameTable.length},hashAddNode:e=>{var t=_t.hashName(e.parent.id,e.name);e.name_next=_t.nameTable[t],_t.nameTable[t]=e},hashRemoveNode:e=>{var t=_t.hashName(e.parent.id,e.name);if(_t.nameTable[t]===e)_t.nameTable[t]=e.name_next;else for(var r=_t.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:(e,t)=>{var r=_t.mayLookup(e);if(r)throw new _t.ErrnoError(r,e);for(var n=_t.hashName(e.id,t),o=_t.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return _t.lookup(e,t)},createNode:(e,t,r,n)=>{I("object"==typeof e);var o=new _t.FSNode(e,t,r,n);return _t.hashAddNode(o),o},destroyNode:e=>{_t.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var t=_t.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>_t.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>_t.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate:(e,t)=>{try{return _t.lookupNode(e,t),20}catch(e){}return _t.nodePermissions(e,"wx")},mayDelete:(e,t,r)=>{var n;try{n=_t.lookupNode(e,t)}catch(e){return e.errno}var o=_t.nodePermissions(e,"wx");if(o)return o;if(r){if(!_t.isDir(n.mode))return 54;if(_t.isRoot(n)||_t.getPath(n)===_t.cwd())return 10}else if(_t.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?_t.isLink(e.mode)?32:_t.isDir(e.mode)&&("r"!==_t.flagsToPermissionString(t)||512&t)?31:_t.nodePermissions(e,_t.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,t=_t.MAX_OPEN_FDS)=>{for(var r=e;r<=t;r++)if(!_t.streams[r])return r;throw new _t.ErrnoError(33)},getStream:e=>_t.streams[e],createStream:(e,t,r)=>{_t.FSStream||(_t.FSStream=function(){},_t.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}}}),e=Object.assign(new _t.FSStream,e);var n=_t.nextfd(t,r);return e.fd=n,_t.streams[n]=e,e},closeStream:e=>{_t.streams[e]=null},chrdev_stream_ops:{open:e=>{var t=_t.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new _t.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice:(e,t)=>{_t.devices[e]={stream_ops:t}},getDevice:e=>_t.devices[e],getMounts:e=>{for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:(e,t)=>{"function"==typeof e&&(t=e,e=!1),_t.syncFSRequests++,_t.syncFSRequests>1&&O("warning: "+_t.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=_t.getMounts(_t.root.mount),n=0;function o(e){return I(_t.syncFSRequests>0),_t.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((t=>{if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:(e,t,r)=>{if("string"==typeof e)throw e;var n,o="/"===r,i=!r;if(o&&_t.root)throw new _t.ErrnoError(10);if(!o&&!i){var a=_t.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,_t.isMountpoint(n))throw new _t.ErrnoError(10);if(!_t.isDir(n.mode))throw new _t.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,o?_t.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount:e=>{var t=_t.lookupPath(e,{follow_mount:!1});if(!_t.isMountpoint(t.node))throw new _t.ErrnoError(28);var r=t.node,n=r.mounted,o=_t.getMounts(n);Object.keys(_t.nameTable).forEach((e=>{for(var t=_t.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&_t.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);I(-1!==i),r.mount.mounts.splice(i,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod:(e,t,r)=>{var n=_t.lookupPath(e,{parent:!0}).node,o=st.basename(e);if(!o||"."===o||".."===o)throw new _t.ErrnoError(28);var i=_t.mayCreate(n,o);if(i)throw new _t.ErrnoError(i);if(!n.node_ops.mknod)throw new _t.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,_t.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,_t.mknod(e,t,0)),mkdirTree:(e,t)=>{for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{_t.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,_t.mknod(e,t,r)),symlink:(e,t)=>{if(!ut.resolve(e))throw new _t.ErrnoError(44);var r=_t.lookupPath(t,{parent:!0}).node;if(!r)throw new _t.ErrnoError(44);var n=st.basename(t),o=_t.mayCreate(r,n);if(o)throw new _t.ErrnoError(o);if(!r.node_ops.symlink)throw new _t.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename:(e,t)=>{var r,n,o=st.dirname(e),i=st.dirname(t),a=st.basename(e),s=st.basename(t);if(r=_t.lookupPath(e,{parent:!0}).node,n=_t.lookupPath(t,{parent:!0}).node,!r||!n)throw new _t.ErrnoError(44);if(r.mount!==n.mount)throw new _t.ErrnoError(75);var c,u=_t.lookupNode(r,a),l=ut.relative(e,i);if("."!==l.charAt(0))throw new _t.ErrnoError(28);if("."!==(l=ut.relative(t,o)).charAt(0))throw new _t.ErrnoError(55);try{c=_t.lookupNode(n,s)}catch(e){}if(u!==c){var d=_t.isDir(u.mode),p=_t.mayDelete(r,a,d);if(p)throw new _t.ErrnoError(p);if(p=c?_t.mayDelete(n,s,d):_t.mayCreate(n,s))throw new _t.ErrnoError(p);if(!r.node_ops.rename)throw new _t.ErrnoError(63);if(_t.isMountpoint(u)||c&&_t.isMountpoint(c))throw new _t.ErrnoError(10);if(n!==r&&(p=_t.nodePermissions(r,"w")))throw new _t.ErrnoError(p);_t.hashRemoveNode(u);try{r.node_ops.rename(u,n,s)}catch(e){throw e}finally{_t.hashAddNode(u)}}},rmdir:e=>{var t=_t.lookupPath(e,{parent:!0}).node,r=st.basename(e),n=_t.lookupNode(t,r),o=_t.mayDelete(t,r,!0);if(o)throw new _t.ErrnoError(o);if(!t.node_ops.rmdir)throw new _t.ErrnoError(63);if(_t.isMountpoint(n))throw new _t.ErrnoError(10);t.node_ops.rmdir(t,r),_t.destroyNode(n)},readdir:e=>{var t=_t.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new _t.ErrnoError(54);return t.node_ops.readdir(t)},unlink:e=>{var t=_t.lookupPath(e,{parent:!0}).node;if(!t)throw new _t.ErrnoError(44);var r=st.basename(e),n=_t.lookupNode(t,r),o=_t.mayDelete(t,r,!1);if(o)throw new _t.ErrnoError(o);if(!t.node_ops.unlink)throw new _t.ErrnoError(63);if(_t.isMountpoint(n))throw new _t.ErrnoError(10);t.node_ops.unlink(t,r),_t.destroyNode(n)},readlink:e=>{var t=_t.lookupPath(e).node;if(!t)throw new _t.ErrnoError(44);if(!t.node_ops.readlink)throw new _t.ErrnoError(28);return ut.resolve(_t.getPath(t.parent),t.node_ops.readlink(t))},stat:(e,t)=>{var r=_t.lookupPath(e,{follow:!t}).node;if(!r)throw new _t.ErrnoError(44);if(!r.node_ops.getattr)throw new _t.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>_t.stat(e,!0),chmod:(e,t,r)=>{var n;if(!(n="string"==typeof e?_t.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,t)=>{_t.chmod(e,t,!0)},fchmod:(e,t)=>{var r=_t.getStream(e);if(!r)throw new _t.ErrnoError(8);_t.chmod(r.node,t)},chown:(e,t,r,n)=>{var o;if(!(o="string"==typeof e?_t.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(e,t,r)=>{_t.chown(e,t,r,!0)},fchown:(e,t,r)=>{var n=_t.getStream(e);if(!n)throw new _t.ErrnoError(8);_t.chown(n.node,t,r)},truncate:(e,t)=>{if(t<0)throw new _t.ErrnoError(28);var r;if(!(r="string"==typeof e?_t.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);if(_t.isDir(r.mode))throw new _t.ErrnoError(31);if(!_t.isFile(r.mode))throw new _t.ErrnoError(28);var n=_t.nodePermissions(r,"w");if(n)throw new _t.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate:(e,t)=>{var r=_t.getStream(e);if(!r)throw new _t.ErrnoError(8);if(0==(2097155&r.flags))throw new _t.ErrnoError(28);_t.truncate(r.node,t)},utime:(e,t,r)=>{var n=_t.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open:(e,t,r,n,o)=>{if(""===e)throw new _t.ErrnoError(44);var a;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?_t.modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)a=e;else{e=st.normalize(e);try{a=_t.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var s=!1;if(64&t)if(a){if(128&t)throw new _t.ErrnoError(20)}else a=_t.mknod(e,r,0),s=!0;if(!a)throw new _t.ErrnoError(44);if(_t.isChrdev(a.mode)&&(t&=-513),65536&t&&!_t.isDir(a.mode))throw new _t.ErrnoError(54);if(!s){var c=_t.mayOpen(a,t);if(c)throw new _t.ErrnoError(c)}512&t&&_t.truncate(a,0),t&=-131713;var u=_t.createStream({node:a,path:_t.getPath(a),flags:t,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,o);return u.stream_ops.open&&u.stream_ops.open(u),!i.logReadFiles||1&t||(_t.readFiles||(_t.readFiles={}),e in _t.readFiles||(_t.readFiles[e]=1)),u},close:e=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{_t.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,t,r)=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new _t.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new _t.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:(e,t,r,n,o)=>{if(n<0||o<0)throw new _t.ErrnoError(28);if(_t.isClosed(e))throw new _t.ErrnoError(8);if(1==(2097155&e.flags))throw new _t.ErrnoError(8);if(_t.isDir(e.node.mode))throw new _t.ErrnoError(31);if(!e.stream_ops.read)throw new _t.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new _t.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,t,r,n,o);return i||(e.position+=a),a},write:(e,t,r,n,o,i)=>{if(n<0||o<0)throw new _t.ErrnoError(28);if(_t.isClosed(e))throw new _t.ErrnoError(8);if(0==(2097155&e.flags))throw new _t.ErrnoError(8);if(_t.isDir(e.node.mode))throw new _t.ErrnoError(31);if(!e.stream_ops.write)throw new _t.ErrnoError(28);e.seekable&&1024&e.flags&&_t.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new _t.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,i);return a||(e.position+=s),s},allocate:(e,t,r)=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);if(t<0||r<=0)throw new _t.ErrnoError(28);if(0==(2097155&e.flags))throw new _t.ErrnoError(8);if(!_t.isFile(e.node.mode)&&!_t.isDir(e.node.mode))throw new _t.ErrnoError(43);if(!e.stream_ops.allocate)throw new _t.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:(e,t,r,n,o,i)=>{if(0!=(2&o)&&0==(2&i)&&2!=(2097155&e.flags))throw new _t.ErrnoError(2);if(1==(2097155&e.flags))throw new _t.ErrnoError(2);if(!e.stream_ops.mmap)throw new _t.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o,i)},msync:(e,t,r,n,o)=>e&&e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl:(e,t,r)=>{if(!e.stream_ops.ioctl)throw new _t.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:(e,t={})=>{if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var r,n=_t.open(e,t.flags),o=_t.stat(e).size,i=new Uint8Array(o);return _t.read(n,i,0,o,0),"utf8"===t.encoding?r=j(i,0):"binary"===t.encoding&&(r=i),_t.close(n),r},writeFile:(e,t,r={})=>{r.flags=r.flags||577;var n=_t.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(B(t)+1),i=N(t,o,0,o.length);_t.write(n,o,0,i,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");_t.write(n,t,0,t.byteLength,void 0,r.canOwn)}_t.close(n)},cwd:()=>_t.currentPath,chdir:e=>{var t=_t.lookupPath(e,{follow:!0});if(null===t.node)throw new _t.ErrnoError(44);if(!_t.isDir(t.node.mode))throw new _t.ErrnoError(54);var r=_t.nodePermissions(t.node,"x");if(r)throw new _t.ErrnoError(r);_t.currentPath=t.path},createDefaultDirectories:()=>{_t.mkdir("/tmp"),_t.mkdir("/home"),_t.mkdir("/home/web_user")},createDefaultDevices:()=>{_t.mkdir("/dev"),_t.registerDevice(_t.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),_t.mkdev("/dev/null",_t.makedev(1,3)),lt.register(_t.makedev(5,0),lt.default_tty_ops),lt.register(_t.makedev(6,0),lt.default_tty1_ops),_t.mkdev("/dev/tty",_t.makedev(5,0)),_t.mkdev("/dev/tty1",_t.makedev(6,0));var e=ct();_t.createDevice("/dev","random",e),_t.createDevice("/dev","urandom",e),_t.mkdir("/dev/shm"),_t.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{_t.mkdir("/proc");var e=_t.mkdir("/proc/self");_t.mkdir("/proc/self/fd"),_t.mount({mount:()=>{var t=_t.createNode(e,"fd",16895,73);return t.node_ops={lookup:(e,t)=>{var r=+t,n=_t.getStream(r);if(!n)throw new _t.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:()=>{i.stdin?_t.createDevice("/dev","stdin",i.stdin):_t.symlink("/dev/tty","/dev/stdin"),i.stdout?_t.createDevice("/dev","stdout",null,i.stdout):_t.symlink("/dev/tty","/dev/stdout"),i.stderr?_t.createDevice("/dev","stderr",null,i.stderr):_t.symlink("/dev/tty1","/dev/stderr");var e=_t.open("/dev/stdin",0),t=_t.open("/dev/stdout",1),r=_t.open("/dev/stderr",1);I(0===e.fd,"invalid handle for stdin ("+e.fd+")"),I(1===t.fd,"invalid handle for stdout ("+t.fd+")"),I(2===r.fd,"invalid handle for stderr ("+r.fd+")")},ensureErrnoError:()=>{_t.ErrnoError||(_t.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){for(var t in this.errno=e,Et)if(Et[t]===e){this.code=t;break}},this.setErrno(e),this.message=ht[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=Ke(this.stack))},_t.ErrnoError.prototype=new Error,_t.ErrnoError.prototype.constructor=_t.ErrnoError,[44].forEach((e=>{_t.genericErrors[e]=new _t.ErrnoError(e),_t.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:()=>{_t.ensureErrnoError(),_t.nameTable=new Array(4096),_t.mount(mt,{},"/"),_t.createDefaultDirectories(),_t.createDefaultDevices(),_t.createSpecialDirectories(),_t.filesystems={MEMFS:mt}},init:(e,t,r)=>{I(!_t.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),_t.init.initialized=!0,_t.ensureErrnoError(),i.stdin=e||i.stdin,i.stdout=t||i.stdout,i.stderr=r||i.stderr,_t.createStandardStreams()},quit:()=>{_t.init.initialized=!1,Ud();for(var e=0;e<_t.streams.length;e++){var t=_t.streams[e];t&&_t.close(t)}},getMode:(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},findObject:(e,t)=>{var r=_t.analyzePath(e,t);return r.exists?r.object:null},analyzePath:(e,t)=>{try{e=(n=_t.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=_t.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=st.basename(e),n=_t.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:(e,t,r,n)=>{e="string"==typeof e?e:_t.getPath(e);for(var o=t.split("/").reverse();o.length;){var i=o.pop();if(i){var a=st.join2(e,i);try{_t.mkdir(a)}catch(e){}e=a}}return a},createFile:(e,t,r,n,o)=>{var i=st.join2("string"==typeof e?e:_t.getPath(e),t),a=_t.getMode(n,o);return _t.create(i,a)},createDataFile:(e,t,r,n,o,i)=>{var a=t;e&&(e="string"==typeof e?e:_t.getPath(e),a=t?st.join2(e,t):e);var s=_t.getMode(n,o),c=_t.create(a,s);if(r){if("string"==typeof r){for(var u=new Array(r.length),l=0,d=r.length;l<d;++l)u[l]=r.charCodeAt(l);r=u}_t.chmod(c,146|s);var p=_t.open(c,577);_t.write(p,r,0,r.length,0,i),_t.close(p),_t.chmod(c,s)}return c},createDevice:(e,t,r,n)=>{var o=st.join2("string"==typeof e?e:_t.getPath(e),t),i=_t.getMode(!!r,!!n);_t.createDevice.major||(_t.createDevice.major=64);var a=_t.makedev(_t.createDevice.major++,0);return _t.registerDevice(a,{open:e=>{e.seekable=!1},close:e=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,t,n,o,i)=>{for(var a=0,s=0;s<o;s++){var c;try{c=r()}catch(e){throw new _t.ErrnoError(29)}if(void 0===c&&0===a)throw new _t.ErrnoError(6);if(null==c)break;a++,t[n+s]=c}return a&&(e.node.timestamp=Date.now()),a},write:(e,t,r,o,i)=>{for(var a=0;a<o;a++)try{n(t[r+a])}catch(e){throw new _t.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),a}}),_t.mkdev(o,i,a)},forceLoadFile:e=>{if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!E)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Ad(E(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new _t.ErrnoError(29)}},createLazyFile:(e,t,r,n,o)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[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((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]=((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),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||[]):Ad(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(!m)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=_t.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((e=>{var t=c.stream_ops[e];u[e]=function(){return _t.forceLoadFile(c),t.apply(null,arguments)}})),u.read=(e,t,r,n,o)=>{_t.forceLoadFile(c);var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(I(a>=0),i.slice)for(var s=0;s<a;s++)t[r+s]=i[o+s];else for(s=0;s<a;s++)t[r+s]=i.get(o+s);return a},c.stream_ops=u,c},createPreloadedFile:(e,t,r,n,o,i,a,s,c,u)=>{var l=t?ut.resolve(st.join2(e,t)):e,d=Le("cp "+l);function p(r){function p(r){u&&u(),s||_t.createDataFile(e,t,r,n,o,c),i&&i(),Ue(d)}To.handledByPreloadPlugin(r,l,p,(()=>{a&&a(),Ue(d)}))||p(r)}je(d),"string"==typeof r?gt(r,(e=>p(e)),a):p(r)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_t.indexedDB();try{var o=n.open(_t.DB_NAME(),_t.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=()=>{T("creating db"),o.result.createObjectStore(_t.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([_t.DB_STORE_NAME],"readwrite"),i=n.objectStore(_t.DB_STORE_NAME),a=0,s=0,c=e.length;function u(){0==s?t():r()}e.forEach((e=>{var t=i.put(_t.analyzePath(e).object.contents,e);t.onsuccess=()=>{++a+s==c&&u()},t.onerror=()=>{s++,a+s==c&&u()}})),n.onerror=r},o.onerror=r},loadFilesFromDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_t.indexedDB();try{var o=n.open(_t.DB_NAME(),_t.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=r,o.onsuccess=()=>{var n=o.result;try{var i=n.transaction([_t.DB_STORE_NAME],"readonly")}catch(e){return void r(e)}var a=i.objectStore(_t.DB_STORE_NAME),s=0,c=0,u=e.length;function l(){0==c?t():r()}e.forEach((e=>{var t=a.get(e);t.onsuccess=()=>{_t.analyzePath(e).exists&&_t.unlink(e),_t.createDataFile(st.dirname(e),st.basename(e),t.result,!0,!0,!0),++s+c==u&&l()},t.onerror=()=>{c++,s+c==u&&l()}})),i.onerror=r},o.onerror=r},absolutePath:()=>{Ne("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder:()=>{Ne("FS.createFolder has been removed; use FS.mkdir instead")},createLink:()=>{Ne("FS.createLink has been removed; use FS.symlink instead")},joinPath:()=>{Ne("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc:()=>{Ne("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath:()=>{Ne("FS.standardizePath has been removed; use PATH.normalize instead")}},yt={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if("/"===t[0])return t;var n;if(-100===e)n=_t.cwd();else{var o=_t.getStream(e);if(!o)throw new _t.ErrnoError(8);n=o.path}if(0==t.length){if(!r)throw new _t.ErrnoError(44);return n}return st.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&st.normalize(t)!==st.normalize(_t.getPath(e.node)))return-54;throw e}return W[r>>2]=n.dev,W[r+4>>2]=0,W[r+8>>2]=n.ino,W[r+12>>2]=n.mode,W[r+16>>2]=n.nlink,W[r+20>>2]=n.uid,W[r+24>>2]=n.gid,W[r+28>>2]=n.rdev,W[r+32>>2]=0,Xe=[n.size>>>0,(Be=n.size,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[r+40>>2]=Xe[0],W[r+44>>2]=Xe[1],W[r+48>>2]=4096,W[r+52>>2]=n.blocks,W[r+56>>2]=n.atime.getTime()/1e3|0,W[r+60>>2]=0,W[r+64>>2]=n.mtime.getTime()/1e3|0,W[r+68>>2]=0,W[r+72>>2]=n.ctime.getTime()/1e3|0,W[r+76>>2]=0,Xe=[n.ino>>>0,(Be=n.ino,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[r+80>>2]=Xe[0],W[r+84>>2]=Xe[1],0},doMsync:function(e,t,r,n,o){var i=Z.slice(e,e+r);_t.msync(t,i,o,r,n)},doMkdir:function(e,t){return"/"===(e=st.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),_t.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 _t.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-28;var n=_t.readlink(e),o=Math.min(r,B(n)),i=Q[t+o];return H(n,t,r+1),Q[t+o]=i,o},doAccess:function(e,t){if(-8&t)return-28;var r=_t.lookupPath(e,{follow:!0}).node;if(!r)return-44;var n="";return 4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),n&&_t.nodePermissions(r,n)?-2:0},doDup:function(e,t,r){var n=_t.getStream(r);return n&&_t.close(n),_t.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var a=W[t+8*i>>2],s=W[t+(8*i+4)>>2],c=_t.read(e,Q,a,s,n);if(c<0)return-1;if(o+=c,c<s)break}return o},doWritev:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var a=W[t+8*i>>2],s=W[t+(8*i+4)>>2],c=_t.write(e,Q,a,s,n);if(c<0)return-1;o+=c}return o},varargs:void 0,get:function(){return I(null!=yt.varargs),yt.varargs+=4,W[yt.varargs-4>>2]},getStr:function(e){return U(e)},getStreamFromFD:function(e){var t=_t.getStream(e);if(!t)throw new _t.ErrnoError(8);return t},get64:function(e,t){return I(e>=0?0===t:-1===t),e}};function vt(e,t,r){yt.varargs=r;try{var n=yt.getStreamFromFD(e);switch(t){case 0:return(o=yt.get())<0?-28:_t.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=yt.get();return n.flags|=o,0;case 5:return o=yt.get(),G[o+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return at(28),-1;default:return-28}}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function bt(e,t){try{var r=yt.getStreamFromFD(e);return yt.doStat(_t.stat,r.path,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function wt(e,t,r,n){try{t=yt.getStr(t);var o=256&n,i=4096&n;return I(!(n&=-4353),n),t=yt.calculateAt(e,t,i),yt.doStat(o?_t.lstat:_t.stat,t,r)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Tt(e,t,r){try{var n=yt.getStreamFromFD(e);n.getdents||(n.getdents=_t.readdir(n.path));for(var o=280,i=0,a=_t.llseek(n,0,1),s=Math.floor(a/o);s<n.getdents.length&&i+o<=r;){var c,u,l=n.getdents[s];if("."===l)c=n.node.id,u=4;else if(".."===l)c=_t.lookupPath(n.path,{parent:!0}).node.id,u=4;else{var d=_t.lookupNode(n.node,l);c=d.id,u=_t.isChrdev(d.mode)?2:_t.isDir(d.mode)?4:_t.isLink(d.mode)?10:8}I(c),Xe=[c>>>0,(Be=c,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[t+i>>2]=Xe[0],W[t+i+4>>2]=Xe[1],Xe=[(s+1)*o>>>0,(Be=(s+1)*o,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[t+i+8>>2]=Xe[0],W[t+i+12>>2]=Xe[1],G[t+i+16>>1]=280,Q[t+i+18>>0]=u,H(l,t+i+19,256),i+=o,s+=1}return _t.llseek(n,s*o,0),i}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Ot(e,t,r){yt.varargs=r;try{var n=yt.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:if(!n.tty)return-59;var o=yt.get();return W[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=yt.get(),_t.ioctl(n,t,o);case 21523:case 21524:return n.tty?0:-59;default:Ne("bad ioctl syscall "+t)}}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Pt(e,t){try{return e=yt.getStr(e),yt.doStat(_t.lstat,e,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Dt(e,t,r){yt.varargs=r;try{var n=yt.getStr(e),o=r?yt.get():0;return _t.open(n,t,o).fd}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function xt(e,t){try{return e=yt.getStr(e),yt.doStat(_t.stat,e,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function St(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Rt(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}var Mt={};function At(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function Ft(e){return this.fromWireType(V[e>>2])}var kt={},Ct={},It={},Lt=48,jt=57;function Ut(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Lt&&t<=jt?"_"+e:e}function Nt(e,t){return e=Ut(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function Ht(e,t){var r=Nt(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Bt=void 0;function Xt(e){throw new Bt(e)}function Qt(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Xt("Mismatched type converter count");for(var o=0;o<e.length;++o)er(e[o],n[o])}e.forEach((function(e){It[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){Ct.hasOwnProperty(e)?o[t]=Ct[e]:(i.push(e),kt.hasOwnProperty(e)||(kt[e]=[]),kt[e].push((function(){o[t]=Ct[e],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Zt(e){var t=Mt[e];delete Mt[e];var r=t.elements,n=r.length,o=r.map((function(e){return e.getterReturnType})).concat(r.map((function(e){return e.setterArgumentType}))),i=t.rawConstructor,a=t.rawDestructor;Qt([e],o,(function(e){return r.forEach((function(t,r){var o=e[r],i=t.getter,a=t.getterContext,s=e[r+n],c=t.setter,u=t.setterContext;t.read=e=>o.fromWireType(i(a,e)),t.write=(e,t)=>{var r=[];c(u,e,s.toWireType(r,t)),At(r)}})),[{name:t.name,fromWireType:function(e){for(var t=new Array(n),o=0;o<n;++o)t[o]=r[o].read(e);return a(e),t},toWireType:function(e,o){if(n!==o.length)throw new TypeError("Incorrect number of tuple elements for "+t.name+": expected="+n+", actual="+o.length);for(var s=i(),c=0;c<n;++c)r[c].write(s,o[c]);return null!==e&&e.push(a,s),s},argPackAdvance:8,readValueFromPointer:Ft,destructorFunction:a}]}))}var Gt={};function qt(e){var t=Gt[e];delete Gt[e];var r=t.rawConstructor,n=t.rawDestructor,o=t.fields;Qt([e],o.map((function(e){return e.getterReturnType})).concat(o.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return o.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,c=t.getterContext,u=e[r+o.length],l=t.setter,d=t.setterContext;i[n]={read:function(e){return a.fromWireType(s(c,e))},write:function(e,t){var r=[];l(d,e,u.toWireType(r,t)),At(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in i)t[r]=i[r].read(e);return n(e),t},toWireType:function(e,t){for(var o in i)if(!(o in t))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,t[o]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:Ft,destructorFunction:n}]}))}function Wt(e,t,r,n,o){}function Vt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function zt(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);$t=e}var $t=void 0;function Yt(e){for(var t="",r=e;Z[r];)t+=$t[Z[r++]];return t}var Kt=void 0;function Jt(e){throw new Kt(e)}function er(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Jt('type "'+n+'" must have a positive integer typeid pointer'),Ct.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Jt("Cannot register type '"+n+"' twice")}if(Ct[e]=t,delete It[e],kt.hasOwnProperty(e)){var o=kt[e];delete kt[e],o.forEach((function(e){e()}))}}function tr(e,t,r,n,o){var i=Vt(r);er(e,{name:t=Yt(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:o},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=Q;else if(2===r)n=G;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=W}return this.fromWireType(n[e>>i])},destructorFunction:null})}function rr(e){if(!(this instanceof Rr))return!1;if(!(e instanceof Rr))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return t===n&&r===o}function nr(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function or(e){Jt(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ir=!1;function ar(e){}function sr(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function cr(e){e.count.value-=1,0===e.count.value&&sr(e)}function ur(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=ur(e,t,r.baseClass);return null===n?null:r.downcast(n)}var lr={};function dr(){return Object.keys(_r).length}function pr(){var e=[];for(var t in _r)_r.hasOwnProperty(t)&&e.push(_r[t]);return e}var fr=[];function mr(){for(;fr.length;){var e=fr.pop();e.$$.deleteScheduled=!1,e.delete()}}var gr=void 0;function hr(e){gr=e,fr.length&&gr&&gr(mr)}function Er(){i.getInheritedInstanceCount=dr,i.getLiveInheritedInstances=pr,i.flushPendingDeletes=mr,i.setDelayFunction=hr}var _r={};function yr(e,t){for(void 0===t&&Jt("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}function vr(e,t){return t=yr(e,t),_r[t]}function br(e,t){return t.ptrType&&t.ptr||Xt("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Xt("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Tr(Object.create(e,{$$:{value:t}}))}function wr(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=vr(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?br(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):br(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=lr[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=ur(t,this.registeredClass,i.registeredClass);return null===c?o.call(this):this.isSmartPointer?br(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):br(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}function Tr(e){return"undefined"==typeof FinalizationRegistry?(Tr=e=>e,e):(ir=new FinalizationRegistry((e=>{console.warn(e.leakWarning.stack.replace(/^Error: /,"")),cr(e.$$)})),ar=e=>ir.unregister(e),(Tr=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t},n=t.ptrType.registeredClass;r.leakWarning=new Error("Embind found a leaked C++ instance "+n.name+" <0x"+t.ptr.toString(16)+">.\nWe'll free it automatically in this case, but this functionality is not reliable across various environments.\nMake sure to invoke .delete() manually once you're done with the instance instead.\nOriginally allocated"),"captureStackTrace"in Error&&Error.captureStackTrace(r.leakWarning,wr),ir.register(e,r,e)}return e})(e))}function Or(){if(this.$$.ptr||or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Tr(Object.create(Object.getPrototypeOf(this),{$$:{value:nr(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Pr(){this.$$.ptr||or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Jt("Object already scheduled for deletion"),ar(this),cr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Dr(){return!this.$$.ptr}function xr(){return this.$$.ptr||or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Jt("Object already scheduled for deletion"),fr.push(this),1===fr.length&&gr&&gr(mr),this.$$.deleteScheduled=!0,this}function Sr(){Rr.prototype.isAliasOf=rr,Rr.prototype.clone=Or,Rr.prototype.delete=Pr,Rr.prototype.isDeleted=Dr,Rr.prototype.deleteLater=xr}function Rr(){}function Mr(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Jt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function Ar(e,t,r){i.hasOwnProperty(e)?((void 0===r||void 0!==i[e].overloadTable&&void 0!==i[e].overloadTable[r])&&Jt("Cannot register public name '"+e+"' twice"),Mr(i,e,e),i.hasOwnProperty(r)&&Jt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[e].overloadTable[r]=t):(i[e]=t,void 0!==r&&(i[e].numArguments=r))}function Fr(e,t,r,n,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function kr(e,t,r){for(;t!==r;)t.upcast||Jt("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Cr(e,t){if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return kr(t.$$.ptr,r,this.registeredClass)}function Ir(e,t){var r;if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Jt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=kr(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Jt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Jt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var o=t.clone();r=this.rawShare(r,un.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:Jt("Unsupporting sharing policy")}return r}function Lr(e,t){if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Jt("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return kr(t.$$.ptr,r,this.registeredClass)}function jr(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ur(e){this.rawDestructor&&this.rawDestructor(e)}function Nr(e){null!==e&&e.delete()}function Hr(){Br.prototype.getPointee=jr,Br.prototype.destructor=Ur,Br.prototype.argPackAdvance=8,Br.prototype.readValueFromPointer=Ft,Br.prototype.deleteObject=Nr,Br.prototype.fromWireType=wr}function Br(e,t,r,n,o,i,a,s,c,u,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=u,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=Ir:n?(this.toWireType=Cr,this.destructorFunction=null):(this.toWireType=Lr,this.destructorFunction=null)}function Xr(e,t,r){i.hasOwnProperty(e)||Xt("Replacing nonexistant public symbol"),void 0!==i[e].overloadTable&&void 0!==r?i[e].overloadTable[r]=t:(i[e]=t,i[e].argCount=r)}function Qr(e,t,r){I("dynCall_"+e in i,"bad function pointer type - no table for sig '"+e+"'"),r&&r.length?I(r.length===e.substring(1).replace(/j/g,"--").length):I(1==e.length);var n=i["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}function Zr(e,t,r){return e.includes("j")?Qr(e,t,r):(I(et(t),"missing table entry in dynCall: "+t),et(t).apply(null,r))}function Gr(e,t){I(e.includes("j"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){return r.length=0,Object.assign(r,arguments),Zr(e,t,r)}}function qr(e,t){var r=(e=Yt(e)).includes("j")?Gr(e,t):et(t);return"function"!=typeof r&&Jt("unknown function pointer with signature "+e+": "+t),r}var Wr=void 0;function Vr(e){var t=jd(e),r=Yt(t);return Id(t),r}function zr(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||Ct[t]||(It[t]?It[t].forEach(e):(r.push(t),n[t]=!0))})),new Wr(e+": "+r.map(Vr).join([", "]))}function $r(e,t,r,n,o,i,a,s,c,u,l,d,p){l=Yt(l),i=qr(o,i),s&&(s=qr(a,s)),u&&(u=qr(c,u)),p=qr(d,p);var f=Ut(l);Ar(f,(function(){zr("Cannot construct "+l+" due to unbound types",[n])})),Qt([e,t,r],n?[n]:[],(function(t){var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:Rr.prototype;var a=Nt(f,(function(){if(Object.getPrototypeOf(this)!==c)throw new Kt("Use 'new' to construct "+l);if(void 0===d.constructor_body)throw new Kt(l+" has no accessible constructor");var e=d.constructor_body[arguments.length];if(void 0===e)throw new Kt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(d.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(o,{constructor:{value:a}});a.prototype=c;var d=new Fr(l,a,c,p,r,i,s,u),m=new Br(l,d,!0,!1,!1),g=new Br(l+"*",d,!1,!1,!1),h=new Br(l+" const*",d,!1,!0,!1);return lr[e]={pointerType:g,constPointerType:h},Xr(f,a),[m,g,h]}))}function Yr(e,t){for(var r=[],n=0;n<e;n++)r.push(W[(t>>2)+n]);return r}function Kr(e,t,r,n,o,i){I(t>0);var a=Yr(t,r);o=qr(n,o),Qt([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Kt("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=()=>{zr("Cannot construct "+e.name+" due to unbound types",a)},Qt([],a,(function(n){return n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=en(r,n,null,o,i),[]})),[]}))}function Jr(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=Nt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function en(e,t,r,n,o){var i=t.length;i<2&&Jt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){s=!0;break}var u="void"!==t[0].name,l="",d="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,d+=(0!==c?", ":"")+"arg"+c+"Wired";var p="return function "+Ut(e)+"("+l+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var f=s?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Jt,n,o,At,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+f+", this);\n"),c=0;c<i-2;++c)p+="var arg"+c+"Wired = argType"+c+".toWireType("+f+", arg"+c+"); // "+t[c+2].name+"\n",m.push("argType"+c),g.push(t[c+2]);if(a&&(d="thisWired"+(d.length>0?", ":"")+d),p+=(u?"var rv = ":"")+"invoker(fn"+(d.length>0?", ":"")+d+");\n",s)p+="runDestructors(destructors);\n";else for(c=a?1:2;c<t.length;++c){var h=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[c].name+"\n",m.push(h+"_dtor"),g.push(t[c].destructorFunction))}return u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p),Jr(Function,m).apply(null,g)}function tn(e,t,r,n,o,i,a,s){var c=Yr(r,n);t=Yt(t),i=qr(o,i),Qt([],[e],(function(e){var n=(e=e[0]).name+"."+t;function o(){zr("Cannot call "+n+" due to unbound types",c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,l=u[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(o.argCount=r-2,o.className=e.name,u[t]=o):(Mr(u,t,n),u[t].overloadTable[r-2]=o),Qt([],c,(function(o){var s=en(n,o,e,i,a);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]})),[]}))}var rn=[],nn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function on(e){e>4&&0==--nn[e].refcount&&(nn[e]=void 0,rn.push(e))}function an(){for(var e=0,t=5;t<nn.length;++t)void 0!==nn[t]&&++e;return e}function sn(){for(var e=5;e<nn.length;++e)if(void 0!==nn[e])return nn[e];return null}function cn(){i.count_emval_handles=an,i.get_first_emval=sn}var un={toValue:function(e){return e||Jt("Cannot use deleted val. handle = "+e),nn[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=rn.length?rn.pop():nn.length;return nn[t]={refcount:1,value:e},t}}};function ln(e,t){er(e,{name:t=Yt(t),fromWireType:function(e){var t=un.toValue(e);return on(e),t},toWireType:function(e,t){return un.toHandle(t)},argPackAdvance:8,readValueFromPointer:Ft,destructorFunction:null})}function dn(e,t,r){switch(t){case 0:return function(e){var t=r?Q:Z;return this.fromWireType(t[e])};case 1:return function(e){var t=r?G:q;return this.fromWireType(t[e>>1])};case 2:return function(e){var t=r?W:V;return this.fromWireType(t[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function pn(e,t,r,n){var o=Vt(r);function i(){}t=Yt(t),i.values={},er(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:dn(t,o,n),destructorFunction:null}),Ar(t,i)}function fn(e,t){var r=Ct[e];return void 0===r&&Jt(t+" has unknown type "+Vr(e)),r}function mn(e,t,r){var n=fn(e,"enum");t=Yt(t);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Nt(n.name+"_"+t,(function(){}))}});o.values[r]=i,o[t]=i}function gn(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function hn(e,t){switch(t){case 2:return function(e){return this.fromWireType(z[e>>2])};case 3:return function(e){return this.fromWireType($[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function En(e,t,r){var n=Vt(r);er(e,{name:t=Yt(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+gn(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:hn(t,n),destructorFunction:null})}function _n(e,t,r,n,o,i){var a=Yr(t,r);e=Yt(e),o=qr(n,o),Ar(e,(function(){zr("Cannot call "+e+" due to unbound types",a)}),t-1),Qt([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Xr(e,en(e,n,null,o,i),t-1),[]}))}function yn(e,t,r){switch(t){case 0:return r?function(e){return Q[e]}:function(e){return Z[e]};case 1:return r?function(e){return G[e>>1]}:function(e){return q[e>>1]};case 2:return r?function(e){return W[e>>2]}:function(e){return V[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function vn(e,t,r,n,o){t=Yt(t),-1===o&&(o=4294967295);var i=Vt(r),a=e=>e;if(0===n){var s=32-8*r;a=e=>e<<s>>>s}var c=t.includes("unsigned"),u=(e,r)=>{if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+gn(e)+'" to '+r);if(e<n||e>o)throw new TypeError('Passing a number "'+gn(e)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+o+"]!")};er(e,{name:t,fromWireType:a,toWireType:c?function(e,t){return u(t,this.name),t>>>0}:function(e,t){return u(t,this.name),t},argPackAdvance:8,readValueFromPointer:yn(t,i,0!==n),destructorFunction:null})}function bn(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=V,r=t[e>>=2],o=t[e+1];return new n(X,o,r)}er(e,{name:r=Yt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function wn(e,t,r,n,o,i,a,s,c,u,l,d){r=Yt(r),i=qr(o,i),s=qr(a,s),u=qr(c,u),d=qr(l,d),Qt([e],[t],(function(e){return e=e[0],[new Br(r,e.registeredClass,!1,!1,!0,e,n,i,s,u,d)]}))}function Tn(e,t){var r="std::string"===(t=Yt(t));er(e,{name:t,fromWireType:function(e){var t,n=V[e>>2];if(r)for(var o=e+4,i=0;i<=n;++i){var a=e+4+i;if(i==n||0==Z[a]){var s=U(o,a-o);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),o=a+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(Z[e+4+i]);t=c.join("")}return Id(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Jt("Cannot pass non-string to std::string");var o=(r&&n?()=>B(t):()=>t.length)(),i=Cd(4+o+1);if(V[i>>2]=o,r&&n)H(t,i+4,o+1);else if(n)for(var a=0;a<o;++a){var s=t.charCodeAt(a);s>255&&(Id(i),Jt("String has UTF-16 code units that do not fit in 8 bits")),Z[i+4+a]=s}else for(a=0;a<o;++a)Z[i+4+a]=t[a];return null!==e&&e.push(Id,i),i},argPackAdvance:8,readValueFromPointer:Ft,destructorFunction:function(e){Id(e)}})}function On(e,t,r){var n,o,i,a,s;r=Yt(r),2===t?(n=K,o=J,a=ee,i=()=>q,s=1):4===t&&(n=te,o=re,a=ne,i=()=>V,s=2),er(e,{name:r,fromWireType:function(e){for(var r,o=V[e>>2],a=i(),c=e+4,u=0;u<=o;++u){var l=e+4+u*t;if(u==o||0==a[l>>s]){var d=n(c,l-c);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),c=l+t}}return Id(e),r},toWireType:function(e,n){"string"!=typeof n&&Jt("Cannot pass non-string to C++ string type "+r);var i=a(n),c=Cd(4+i+t);return V[c>>2]=i>>s,o(n,c+4,i+t),null!==e&&e.push(Id,c),c},argPackAdvance:8,readValueFromPointer:Ft,destructorFunction:function(e){Id(e)}})}function Pn(e,t,r,n,o,i){Mt[e]={name:Yt(t),rawConstructor:qr(r,n),rawDestructor:qr(o,i),elements:[]}}function Dn(e,t,r,n,o,i,a,s,c){Mt[e].elements.push({getterReturnType:t,getter:qr(r,n),getterContext:o,setterArgumentType:i,setter:qr(a,s),setterContext:c})}function xn(e,t,r,n,o,i){Gt[e]={name:Yt(t),rawConstructor:qr(r,n),rawDestructor:qr(o,i),fields:[]}}function Sn(e,t,r,n,o,i,a,s,c,u){Gt[e].fields.push({fieldName:Yt(t),getterReturnType:r,getter:qr(n,o),getterContext:i,setterArgumentType:a,setter:qr(s,c),setterContext:u})}function Rn(e,t){er(e,{isVoid:!0,name:t=Yt(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function Mn(){throw"longjmp"}function An(e,t,r){e=un.toValue(e),t=fn(t,"emval::as");var n=[],o=un.toHandle(n);return W[r>>2]=o,t.toWireType(n,e)}function Fn(e,t){for(var r=new Array(e),n=0;n<e;++n)r[n]=fn(W[(t>>2)+n],"parameter "+n);return r}function kn(e,t,r,n){e=un.toValue(e);for(var o=Fn(t,r),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(n),n+=s.argPackAdvance}var c=e.apply(void 0,i);return un.toHandle(c)}function Cn(e){var t=[];return W[e>>2]=un.toHandle(t),t}var In={};function Ln(e){var t=In[e];return void 0===t?Yt(e):t}var jn=[];function Un(e,t,r,n,o){return(e=jn[e])(t=un.toValue(t),r=Ln(r),Cn(n),o)}function Nn(e,t,r,n){(e=jn[e])(t=un.toValue(t),r=Ln(r),null,n)}function Hn(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Bn(e){return 0===e?un.toHandle(Hn()):(e=Ln(e),un.toHandle(Hn()[e]))}function Xn(e){var t=jn.length;return jn.push(e),t}var Qn=[];function Zn(e,t){var r=Fn(e,t),n=r[0],o=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",i=Qn[o];if(void 0!==i)return i;for(var a=["retType"],s=[n],c="",u=0;u<e-1;++u)c+=(0!==u?", ":"")+"arg"+u,a.push("argType"+u),s.push(r[1+u]);var l="return function "+Ut("methodCaller_"+o)+"(handle, name, destructors, args) {\n",d=0;for(u=0;u<e-1;++u)l+=" var arg"+u+" = argType"+u+".readValueFromPointer(args"+(d?"+"+d:"")+");\n",d+=r[u+1].argPackAdvance;for(l+=" var rv = handle[name]("+c+");\n",u=0;u<e-1;++u)r[u+1].deleteObject&&(l+=" argType"+u+".deleteObject(arg"+u+");\n");return n.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",a.push(l),i=Xn(Jr(Function,a).apply(null,s)),Qn[o]=i,i}function Gn(e,t){return e=un.toValue(e),t=un.toValue(t),un.toHandle(e[t])}function qn(e){e>4&&(nn[e].refcount+=1)}function Wn(e,t){return(e=un.toValue(e))instanceof un.toValue(t)}function Vn(e){return"string"==typeof(e=un.toValue(e))}function zn(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)n+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return n+="var obj = new constructor("+t+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle",n)(fn,i,un.toHandle)}var $n,Yn={};function Kn(e,t,r,n){e=un.toValue(e);var o=Yn[t];return o||(o=zn(t),Yn[t]=o),o(e,r,n)}function Jn(){return un.toHandle([])}function eo(e){return un.toHandle(Ln(e))}function to(){return un.toHandle({})}function ro(e){At(un.toValue(e)),on(e)}function no(e,t,r){e=un.toValue(e),t=un.toValue(t),r=un.toValue(r),e[t]=r}function oo(e,t){var r=(e=fn(e,"_emval_take_value")).readValueFromPointer(t);return un.toHandle(r)}function io(e){throw un.toValue(e)}function ao(e,t){var r=new Date(1e3*W[e>>2]);W[t>>2]=r.getUTCSeconds(),W[t+4>>2]=r.getUTCMinutes(),W[t+8>>2]=r.getUTCHours(),W[t+12>>2]=r.getUTCDate(),W[t+16>>2]=r.getUTCMonth(),W[t+20>>2]=r.getUTCFullYear()-1900,W[t+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),o=(r.getTime()-n)/864e5|0;W[t+28>>2]=o}function so(e,t){var r=new Date(1e3*W[e>>2]);W[t>>2]=r.getSeconds(),W[t+4>>2]=r.getMinutes(),W[t+8>>2]=r.getHours(),W[t+12>>2]=r.getDate(),W[t+16>>2]=r.getMonth(),W[t+20>>2]=r.getFullYear()-1900,W[t+24>>2]=r.getDay();var n=new Date(r.getFullYear(),0,1),o=(r.getTime()-n.getTime())/864e5|0;W[t+28>>2]=o,W[t+36>>2]=-60*r.getTimezoneOffset();var i=new Date(r.getFullYear(),6,1).getTimezoneOffset(),a=n.getTimezoneOffset(),s=0|(i!=a&&r.getTimezoneOffset()==Math.min(a,i));W[t+32>>2]=s}function co(e){var t=new Date(W[e+20>>2]+1900,W[e+16>>2],W[e+12>>2],W[e+8>>2],W[e+4>>2],W[e>>2],0),r=W[e+32>>2],n=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),s=Math.min(a,i);if(r<0)W[e+32>>2]=Number(i!=a&&s==n);else if(r>0!=(s==n)){var c=Math.max(a,i),u=r>0?s:c;t.setTime(t.getTime()+6e4*(u-n))}W[e+24>>2]=t.getDay();var l=(t.getTime()-o.getTime())/864e5|0;return W[e+28>>2]=l,W[e>>2]=t.getSeconds(),W[e+4>>2]=t.getMinutes(),W[e+8>>2]=t.getHours(),W[e+12>>2]=t.getDate(),W[e+16>>2]=t.getMonth(),t.getTime()/1e3|0}function uo(e,t,r,n,o,i,a,s){try{var c=_t.getStream(o);if(!c)return-8;var u=_t.mmap(c,e,t,i,r,n),l=u.ptr;return W[a>>2]=u.allocated,l}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function lo(e,t,r,n,o,i){try{var a=_t.getStream(o);a&&(2&r&&yt.doMsync(e,a,t,n,i),_t.munmap(a))}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function po(e,t,r){var n=(new Date).getFullYear(),o=new Date(n,0,1),i=new Date(n,6,1),a=o.getTimezoneOffset(),s=i.getTimezoneOffset(),c=Math.max(a,s);function u(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}W[e>>2]=60*c,W[t>>2]=Number(a!=s);var l=u(o),d=u(i),p=oe(l),f=oe(d);s<a?(W[r>>2]=p,W[r+4>>2]=f):(W[r>>2]=f,W[r+4>>2]=p)}function fo(e,t,r){fo.called||(fo.called=!0,po(e,t,r))}function mo(){Ne("native code called abort()")}$n=()=>performance.now();var go=!0;function ho(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!go)return at(28),-1;r=$n()}return W[t>>2]=r/1e3|0,W[t+4>>2]=r%1e3*1e3*1e3|0,0}function Eo(e,t){if(To.mainLoop.timingMode=e,To.mainLoop.timingValue=t,!To.mainLoop.func)return O("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up."),1;if(To.mainLoop.running||(To.mainLoop.running=!0),0==e)To.mainLoop.scheduler=function(){var e=0|Math.max(0,To.mainLoop.tickStartTime+t-$n());setTimeout(To.mainLoop.runner,e)},To.mainLoop.method="timeout";else if(1==e)To.mainLoop.scheduler=function(){To.requestAnimationFrame(To.mainLoop.runner)},To.mainLoop.method="rAF";else if(2==e){if("undefined"==typeof setImmediate){var r=[],n="setimmediate";addEventListener("message",(function(e){e.data!==n&&e.data.target!==n||(e.stopPropagation(),r.shift()())}),!0),setImmediate=function(e){r.push(e),m?(void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:n})):postMessage(n,"*")}}To.mainLoop.scheduler=function(){setImmediate(To.mainLoop.runner)},To.mainLoop.method="immediate"}return 0}function _o(e){dp(e)}function yo(){if(!Te())try{_o(k)}catch(e){tt(e)}}function vo(e,t,r,n,o){I(!To.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),To.mainLoop.func=e,To.mainLoop.arg=n;var a=To.mainLoop.currentlyRunningMainloop;function s(){return!(a<To.mainLoop.currentlyRunningMainloop&&(yo(),1))}if(To.mainLoop.running=!1,To.mainLoop.runner=function(){if(!C)if(To.mainLoop.queue.length>0){var t=Date.now(),r=To.mainLoop.queue.shift();if(r.func(r.arg),To.mainLoop.remainingBlockers){var n=To.mainLoop.remainingBlockers,o=n%1==0?n-1:Math.floor(n);r.counted?To.mainLoop.remainingBlockers=o:(o+=.5,To.mainLoop.remainingBlockers=(8*n+o)/9)}if(T('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),To.mainLoop.updateStatus(),!s())return;setTimeout(To.mainLoop.runner,0)}else s()&&(To.mainLoop.currentFrameNumber=To.mainLoop.currentFrameNumber+1|0,1==To.mainLoop.timingMode&&To.mainLoop.timingValue>1&&To.mainLoop.currentFrameNumber%To.mainLoop.timingValue!=0?To.mainLoop.scheduler():(0==To.mainLoop.timingMode&&(To.mainLoop.tickStartTime=$n()),"timeout"===To.mainLoop.method&&i.ctx&&(P("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),To.mainLoop.method=""),To.mainLoop.runIter(e),me(),s()&&("object"==typeof SDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),To.mainLoop.scheduler())))},o||(t&&t>0?Eo(0,1e3/t):Eo(1,1),To.mainLoop.scheduler()),r)throw"unwind"}function bo(e,t){if(be||C)O("user callback triggered after runtime exited or application aborted. Ignoring.");else if(t)e();else try{e()}catch(e){tt(e)}}function wo(e,t){return setTimeout((function(){bo(e)}),t)}var To={mainLoop:{running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){To.mainLoop.scheduler=null,To.mainLoop.currentlyRunningMainloop++},resume:function(){To.mainLoop.currentlyRunningMainloop++;var e=To.mainLoop.timingMode,t=To.mainLoop.timingValue,r=To.mainLoop.func;To.mainLoop.func=null,vo(r,0,!1,To.mainLoop.arg,!0),Eo(e,t),To.mainLoop.scheduler()},updateStatus:function(){if(i.setStatus){var e=i.statusMessage||"Please wait...",t=To.mainLoop.remainingBlockers,r=To.mainLoop.expectedBlockers;t?t<r?i.setStatus(e+" ("+(r-t)+"/"+r+")"):i.setStatus(e):i.setStatus("")}},runIter:function(e){if(!C){if(i.preMainLoop&&!1===i.preMainLoop())return;bo(e),i.postMainLoop&&i.postMainLoop()}}},isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(i.preloadPlugins||(i.preloadPlugins=[]),!To.initted){To.initted=!0;try{new Blob,To.hasBlobConstructor=!0}catch(e){To.hasBlobConstructor=!1,T("warning: no blob constructor, cannot create blobs with mimetypes")}To.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:To.hasBlobConstructor?null:T("warning: no BlobBuilder"),To.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,i.noImageDecoding||void 0!==To.URLObject||(T("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),i.noImageDecoding=!0);var e={canHandle:function(e){return!i.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,r,n){var o=null;if(To.hasBlobConstructor)try{(o=new Blob([e],{type:To.getMimetype(t)})).size!==e.length&&(o=new Blob([new Uint8Array(e).buffer],{type:To.getMimetype(t)}))}catch(e){P("Blob constructor present but fails: "+e+"; falling back to blob builder")}if(!o){var a=new To.BlobBuilder;a.append(new Uint8Array(e).buffer),o=a.getBlob()}var s=To.URLObject.createObjectURL(o);I("string"==typeof s,"createObjectURL must return a url as a string");var c=new Image;c.onload=()=>{I(c.complete,"Image "+t+" could not be decoded");var n=document.createElement("canvas");n.width=c.width,n.height=c.height,n.getContext("2d").drawImage(c,0,0),i.preloadedImages[t]=n,To.URLObject.revokeObjectURL(s),r&&r(e)},c.onerror=e=>{T("Image "+s+" could not be decoded"),n&&n()},c.src=s}};i.preloadPlugins.push(e);var t={canHandle:function(e){return!i.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,n){var o=!1;function a(n){o||(o=!0,i.preloadedAudios[t]=n,r&&r(e))}function s(){o||(o=!0,i.preloadedAudios[t]=new Audio,n&&n())}if(!To.hasBlobConstructor)return s();try{var c=new Blob([e],{type:To.getMimetype(t)})}catch(e){return s()}var u=To.URLObject.createObjectURL(c);I("string"==typeof u,"createObjectURL must return a url as a string");var l=new Audio;l.addEventListener("canplaythrough",(function(){a(l)}),!1),l.onerror=function(r){o||(T("warning: browser could not fully decode audio "+t+", trying slower base64 approach"),l.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",n=0,o=0,i=0;i<e.length;i++)for(n=n<<8|e[i],o+=8;o>=6;){var a=n>>o-6&63;o-=6,r+=t[a]}return 2==o?(r+=t[(3&n)<<4],r+="=="):4==o&&(r+=t[(15&n)<<2],r+="="),r}(e),a(l))},l.src=u,wo((function(){a(l)}),1e4)}};i.preloadPlugins.push(t);var r=i.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),i.elementPointerLock&&r.addEventListener("click",(function(e){!To.pointerLock&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}function n(){To.pointerLock=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}},handledByPreloadPlugin:function(e,t,r,n){To.init();var o=!1;return i.preloadPlugins.forEach((function(i){o||i.canHandle(t)&&(i.handle(e,t,r,n),o=!0)})),o},createContext:function(e,t,r,n){if(t&&i.ctx&&e==i.canvas)return i.ctx;var o,a;if(t){var s={antialias:!1,alpha:!1,majorVersion:"undefined"!=typeof WebGL2RenderingContext?2:1};if(n)for(var c in n)s[c]=n[c];void 0!==Fo&&(a=Fo.createContext(e,s))&&(o=Fo.getContext(a).GLctx)}else o=e.getContext("2d");return o?(r&&(t||I(void 0===Od,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.ctx=o,t&&Fo.makeContextCurrent(a),i.useWebGL=t,To.moduleContextCreatedCallbacks.forEach((function(e){e()})),To.init()),o):null},destroyContext:function(e,t,r){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen:function(e,t){To.lockPointer=e,To.resizeCanvas=t,void 0===To.lockPointer&&(To.lockPointer=!0),void 0===To.resizeCanvas&&(To.resizeCanvas=!1);var r=i.canvas;function n(){To.isFullscreen=!1;var e=r.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(r.exitFullscreen=To.exitFullscreen,To.lockPointer&&r.requestPointerLock(),To.isFullscreen=!0,To.resizeCanvas?To.setFullscreenCanvasSize():To.updateCanvasDimensions(r)):(e.parentNode.insertBefore(r,e),e.parentNode.removeChild(e),To.resizeCanvas?To.setWindowedCanvasSize():To.updateCanvasDimensions(r)),i.onFullScreen&&i.onFullScreen(To.isFullscreen),i.onFullscreen&&i.onFullscreen(To.isFullscreen)}To.fullscreenHandlersInstalled||(To.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var o=document.createElement("div");r.parentNode.insertBefore(o,r),o.appendChild(r),o.requestFullscreen=o.requestFullscreen||o.mozRequestFullScreen||o.msRequestFullscreen||(o.webkitRequestFullscreen?function(){o.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(o.webkitRequestFullScreen?function(){o.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),o.requestFullscreen()},requestFullScreen:function(){Ne("Module.requestFullScreen has been replaced by Module.requestFullscreen (without a capital S)")},exitFullscreen:function(){return!!To.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]),!0)},nextRAF:0,fakeRequestAnimationFrame:function(e){var t=Date.now();if(0===To.nextRAF)To.nextRAF=t+1e3/60;else for(;t+2>=To.nextRAF;)To.nextRAF+=1e3/60;var r=Math.max(To.nextRAF-t,0);setTimeout(e,r)},requestAnimationFrame:function(e){"function"!=typeof requestAnimationFrame?(0,To.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)},safeSetTimeout:function(e){return wo(e)},safeRequestAnimationFrame:function(e){return To.requestAnimationFrame((function(){bo(e)}))},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:function(e){return e.movementX||e.mozMovementX||e.webkitMovementX||0},getMovementY:function(e){return e.movementY||e.mozMovementY||e.webkitMovementY||0},getMouseWheelDelta:function(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(e){if(To.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?To.mouseMovementX=To.mouseMovementY=0:(To.mouseMovementX=To.getMovementX(e),To.mouseMovementY=To.getMovementY(e)),"undefined"!=typeof SDL?(To.mouseX=SDL.mouseX+To.mouseMovementX,To.mouseY=SDL.mouseY+To.mouseMovementY):(To.mouseX+=To.mouseMovementX,To.mouseY+=To.mouseMovementY);else{var t=i.canvas.getBoundingClientRect(),r=i.canvas.width,n=i.canvas.height,o=void 0!==window.scrollX?window.scrollX:window.pageXOffset,a=void 0!==window.scrollY?window.scrollY:window.pageYOffset;if(I(void 0!==o&&void 0!==a,"Unable to retrieve scroll position, mouse positions likely broken."),"touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var s=e.touch;if(void 0===s)return;var c=s.pageX-(o+t.left),u=s.pageY-(a+t.top),l={x:c*=r/t.width,y:u*=n/t.height};if("touchstart"===e.type)To.lastTouches[s.identifier]=l,To.touches[s.identifier]=l;else if("touchend"===e.type||"touchmove"===e.type){var d=To.touches[s.identifier];d||(d=l),To.lastTouches[s.identifier]=d,To.touches[s.identifier]=l}return}var p=e.pageX-(o+t.left),f=e.pageY-(a+t.top);p*=r/t.width,f*=n/t.height,To.mouseMovementX=p-To.mouseX,To.mouseMovementY=f-To.mouseY,To.mouseX=p,To.mouseY=f}},resizeListeners:[],updateResizeListeners:function(){var e=i.canvas;To.resizeListeners.forEach((function(t){t(e.width,e.height)}))},setCanvasSize:function(e,t,r){var n=i.canvas;To.updateCanvasDimensions(n,e,t),r||To.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function(){if("undefined"!=typeof SDL){var e=V[SDL.screen>>2];e|=8388608,W[SDL.screen>>2]=e}To.updateCanvasDimensions(i.canvas),To.updateResizeListeners()},setWindowedCanvasSize:function(){if("undefined"!=typeof SDL){var e=V[SDL.screen>>2];e&=-8388609,W[SDL.screen>>2]=e}To.updateCanvasDimensions(i.canvas),To.updateResizeListeners()},updateCanvasDimensions:function(e,t,r){t&&r?(e.widthNative=t,e.heightNative=r):(t=e.widthNative,r=e.heightNative);var n=t,o=r;if(i.forcedAspectRatio&&i.forcedAspectRatio>0&&(n/o<i.forcedAspectRatio?n=Math.round(o*i.forcedAspectRatio):o=Math.round(n/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var a=Math.min(screen.width/n,screen.height/o);n=Math.round(n*a),o=Math.round(o*a)}To.resizeCanvas?(e.width!=n&&(e.width=n),e.height!=o&&(e.height=o),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=t&&(e.width=t),e.height!=r&&(e.height=r),void 0!==e.style&&(n!=t||o!=r?(e.style.setProperty("width",n+"px","important"),e.style.setProperty("height",o+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}},Oo={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode:function(e){Oo.errorCode=e},chooseConfig:function(e,t,r,n,o){if(62e3!=e)return Oo.setErrorCode(12296),0;if(t)for(;;){var i=W[t>>2];if(12321==i){var a=W[t+4>>2];Oo.contextAttributes.alpha=a>0}else if(12325==i){var s=W[t+4>>2];Oo.contextAttributes.depth=s>0}else if(12326==i){var c=W[t+4>>2];Oo.contextAttributes.stencil=c>0}else if(12337==i){var u=W[t+4>>2];Oo.contextAttributes.antialias=u>0}else if(12338==i)u=W[t+4>>2],Oo.contextAttributes.antialias=1==u;else if(12544==i){var l=W[t+4>>2];Oo.contextAttributes.lowLatency=12547!=l}else if(12344==i)break;t+=8}return r&&n||o?(o&&(W[o>>2]=1),r&&n>0&&(W[r>>2]=62002),Oo.setErrorCode(12288),1):(Oo.setErrorCode(12300),0)}};function Po(e,t,r,n,o){return Oo.chooseConfig(e,t,r,n,o)}function Do(e){var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=function(e,r){t.vertexAttribDivisorANGLE(e,r)},e.drawArraysInstanced=function(e,r,n,o){t.drawArraysInstancedANGLE(e,r,n,o)},e.drawElementsInstanced=function(e,r,n,o,i){t.drawElementsInstancedANGLE(e,r,n,o,i)},1}function xo(e){var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=function(){return t.createVertexArrayOES()},e.deleteVertexArray=function(e){t.deleteVertexArrayOES(e)},e.bindVertexArray=function(e){t.bindVertexArrayOES(e)},e.isVertexArray=function(e){return t.isVertexArrayOES(e)},1}function So(e){var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=function(e,r){t.drawBuffersWEBGL(e,r)},1}function Ro(e){return!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"))}function Mo(e){return!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"))}function Ao(e){return!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw"))}var Fo={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(e){Fo.lastError||(Fo.lastError=e)},getNewId:function(e){for(var t=Fo.counter++,r=e.length;r<t;r++)e[r]=null;return t},getSource:function(e,t,r,n){for(var o="",i=0;i<t;++i){var a=n?W[n+4*i>>2]:-1;o+=U(W[r+4*i>>2],a<0?void 0:a)}return o},createContext:function(e,t){if(!e.getContextSafariWebGL2Fixed){function t(t,r){var n=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==n instanceof WebGLRenderingContext?n:null}e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=t}var r=t.majorVersion>1?e.getContext("webgl2",t):e.getContext("webgl",t);return r?Fo.registerContext(r,t):0},registerContext:function(e,t){var r=Fo.getNewId(Fo.contexts),n={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),Fo.contexts[r]=n,(void 0===t.enableExtensionsByDefault||t.enableExtensionsByDefault)&&Fo.initExtensions(n),r},makeContextCurrent:function(e){return Fo.currentContext=Fo.contexts[e],i.ctx=Od=Fo.currentContext&&Fo.currentContext.GLctx,!(e&&!Od)},getContext:function(e){return Fo.contexts[e]},deleteContext:function(e){Fo.currentContext===Fo.contexts[e]&&(Fo.currentContext=null),"object"==typeof ql&&ql.removeAllHandlersOnTarget(Fo.contexts[e].GLctx.canvas),Fo.contexts[e]&&Fo.contexts[e].GLctx.canvas&&(Fo.contexts[e].GLctx.canvas.GLctxObject=void 0),Fo.contexts[e]=null},initExtensions:function(e){if(e||(e=Fo.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;Do(t),xo(t),So(t),Ro(t),Mo(t),e.version>=2&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!t.disjointTimerQueryExt)&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query")),Ao(t),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}};function ko(e,t,r,n){if(62e3!=e)return Oo.setErrorCode(12296),0;for(var o=1;;){var a=W[n>>2];if(12440!=a){if(12344==a)break;return Oo.setErrorCode(12292),0}o=W[n+4>>2],n+=8}return o<2||o>3?(Oo.setErrorCode(12293),0):(Oo.contextAttributes.majorVersion=o-1,Oo.contextAttributes.minorVersion=0,Oo.context=Fo.createContext(i.canvas,Oo.contextAttributes),0!=Oo.context?(Oo.setErrorCode(12288),Fo.makeContextCurrent(Oo.context),i.useWebGL=!0,To.moduleContextCreatedCallbacks.forEach((function(e){e()})),Fo.makeContextCurrent(null),62004):(Oo.setErrorCode(12297),0))}function Co(e,t,r,n){return 62e3!=e?(Oo.setErrorCode(12296),0):62002!=t?(Oo.setErrorCode(12293),0):(Oo.setErrorCode(12288),62006)}function Io(e,t){return 62e3!=e?(Oo.setErrorCode(12296),0):62004!=t?(Oo.setErrorCode(12294),0):(Fo.deleteContext(Oo.context),Oo.setErrorCode(12288),Oo.currentContext==t&&(Oo.currentContext=0),1)}function Lo(e,t){return 62e3!=e?(Oo.setErrorCode(12296),0):62006!=t?(Oo.setErrorCode(12301),1):(Oo.currentReadSurface==t&&(Oo.currentReadSurface=0),Oo.currentDrawSurface==t&&(Oo.currentDrawSurface=0),Oo.setErrorCode(12288),1)}function jo(e,t,r,n){if(62e3!=e)return Oo.setErrorCode(12296),0;if(62002!=t)return Oo.setErrorCode(12293),0;if(!n)return Oo.setErrorCode(12300),0;switch(Oo.setErrorCode(12288),r){case 12320:return W[n>>2]=Oo.contextAttributes.alpha?32:24,1;case 12321:return W[n>>2]=Oo.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return W[n>>2]=8,1;case 12325:return W[n>>2]=Oo.contextAttributes.depth?24:0,1;case 12326:return W[n>>2]=Oo.contextAttributes.stencil?8:0,1;case 12327:return W[n>>2]=12344,1;case 12328:return W[n>>2]=62002,1;case 12329:return W[n>>2]=0,1;case 12330:return W[n>>2]=4096,1;case 12331:return W[n>>2]=16777216,1;case 12332:return W[n>>2]=4096,1;case 12333:case 12334:return W[n>>2]=0,1;case 12335:return W[n>>2]=12344,1;case 12337:return W[n>>2]=Oo.contextAttributes.antialias?4:0,1;case 12338:return W[n>>2]=Oo.contextAttributes.antialias?1:0,1;case 12339:return W[n>>2]=4,1;case 12340:return W[n>>2]=12344,1;case 12341:case 12342:case 12343:return W[n>>2]=-1,1;case 12345:case 12346:case 12347:return W[n>>2]=0,1;case 12348:return W[n>>2]=1,1;case 12349:case 12350:return W[n>>2]=0,1;case 12351:return W[n>>2]=12430,1;case 12352:return W[n>>2]=4,1;case 12354:return W[n>>2]=0,1;default:return Oo.setErrorCode(12292),0}}function Uo(e){return Oo.setErrorCode(12288),62e3}function No(){return Oo.errorCode}function Ho(e,t,r){return 62e3==e?(t&&(W[t>>2]=1),r&&(W[r>>2]=4),Oo.defaultDisplayInitialized=!0,Oo.setErrorCode(12288),1):(Oo.setErrorCode(12296),0)}function Bo(e,t,r,n){return 62e3!=e?(Oo.setErrorCode(12296),0):0!=n&&62004!=n?(Oo.setErrorCode(12294),0):0!=r&&62006!=r||0!=t&&62006!=t?(Oo.setErrorCode(12301),0):(Fo.makeContextCurrent(n?Oo.context:null),Oo.currentContext=n,Oo.currentDrawSurface=t,Oo.currentReadSurface=r,Oo.setErrorCode(12288),1)}function Xo(){if(Oo.defaultDisplayInitialized)if(i.ctx){if(!i.ctx.isContextLost())return Oo.setErrorCode(12288),1;Oo.setErrorCode(12302)}else Oo.setErrorCode(12290);else Oo.setErrorCode(12289);return 0}function Qo(e){return 62e3!=e?(Oo.setErrorCode(12296),0):(Oo.currentContext=0,Oo.currentReadSurface=0,Oo.currentDrawSurface=0,Oo.defaultDisplayInitialized=!1,Oo.setErrorCode(12288),1)}function Zo(e){I("number"==typeof e),console.error(U(e))}function Go(e){I("number"==typeof e),console.log(U(e))}function qo(e){I("number"==typeof e),console.warn(U(e))}function Wo(){}function Vo(){return 2147483648}function zo(e){Od.activeTexture(e)}function $o(e,t){Od.attachShader(Fo.programs[e],Fo.shaders[t])}function Yo(e,t){Od.beginQuery(e,Fo.queries[t])}function Ko(e,t){Od.disjointTimerQueryExt.beginQueryEXT(e,Fo.queries[t])}function Jo(e){Od.beginTransformFeedback(e)}function ei(e,t,r){Od.bindAttribLocation(Fo.programs[e],t,U(r))}function ti(e,t){35051==e?Od.currentPixelPackBufferBinding=t:35052==e&&(Od.currentPixelUnpackBufferBinding=t),Od.bindBuffer(e,Fo.buffers[t])}function ri(e,t,r){Od.bindBufferBase(e,t,Fo.buffers[r])}function ni(e,t,r,n,o){Od.bindBufferRange(e,t,Fo.buffers[r],n,o)}function oi(e,t){Od.bindFramebuffer(e,Fo.framebuffers[t])}function ii(e,t){Od.bindRenderbuffer(e,Fo.renderbuffers[t])}function ai(e,t){Od.bindSampler(e,Fo.samplers[t])}function si(e,t){Od.bindTexture(e,Fo.textures[t])}function ci(e,t){Od.bindTransformFeedback(e,Fo.transformFeedbacks[t])}function ui(e){Od.bindVertexArray(Fo.vaos[e])}function li(e){Od.bindVertexArray(Fo.vaos[e])}function di(e,t,r,n){Od.blendColor(e,t,r,n)}function pi(e){Od.blendEquation(e)}function fi(e,t){Od.blendEquationSeparate(e,t)}function mi(e,t){Od.blendFunc(e,t)}function gi(e,t,r,n){Od.blendFuncSeparate(e,t,r,n)}function hi(e,t,r,n,o,i,a,s,c,u){Od.blitFramebuffer(e,t,r,n,o,i,a,s,c,u)}function Ei(e,t,r,n){Fo.currentContext.version>=2?r?Od.bufferData(e,Z,n,r,t):Od.bufferData(e,t,n):Od.bufferData(e,r?Z.subarray(r,r+t):t,n)}function _i(e,t,r,n){Fo.currentContext.version>=2?Od.bufferSubData(e,t,Z,n,r):Od.bufferSubData(e,t,Z.subarray(n,n+r))}function yi(e){return Od.checkFramebufferStatus(e)}function vi(e){Od.clear(e)}function bi(e,t,r,n){Od.clearBufferfi(e,t,r,n)}function wi(e,t,r){Od.clearBufferfv(e,t,z,r>>2)}function Ti(e,t,r){Od.clearBufferiv(e,t,W,r>>2)}function Oi(e,t,r){Od.clearBufferuiv(e,t,V,r>>2)}function Pi(e,t,r,n){Od.clearColor(e,t,r,n)}function Di(e){Od.clearDepth(e)}function xi(e){Od.clearStencil(e)}function Si(e,t){return I(t===(0|t)),(e>>>0)+4294967296*t}function Ri(e,t,r,n){return Od.clientWaitSync(Fo.syncs[e],t,Si(r,n))}function Mi(e,t,r,n){Od.colorMask(!!e,!!t,!!r,!!n)}function Ai(e){Od.compileShader(Fo.shaders[e])}function Fi(e,t,r,n,o,i,a,s){Fo.currentContext.version>=2?Od.currentPixelUnpackBufferBinding?Od.compressedTexImage2D(e,t,r,n,o,i,a,s):Od.compressedTexImage2D(e,t,r,n,o,i,Z,s,a):Od.compressedTexImage2D(e,t,r,n,o,i,s?Z.subarray(s,s+a):null)}function ki(e,t,r,n,o,i,a,s,c){Od.currentPixelUnpackBufferBinding?Od.compressedTexImage3D(e,t,r,n,o,i,a,s,c):Od.compressedTexImage3D(e,t,r,n,o,i,a,Z,c,s)}function Ci(e,t,r,n,o,i,a,s,c){Fo.currentContext.version>=2?Od.currentPixelUnpackBufferBinding?Od.compressedTexSubImage2D(e,t,r,n,o,i,a,s,c):Od.compressedTexSubImage2D(e,t,r,n,o,i,a,Z,c,s):Od.compressedTexSubImage2D(e,t,r,n,o,i,a,c?Z.subarray(c,c+s):null)}function Ii(e,t,r,n,o,i,a,s,c,u,l){Od.currentPixelUnpackBufferBinding?Od.compressedTexSubImage3D(e,t,r,n,o,i,a,s,c,u,l):Od.compressedTexSubImage3D(e,t,r,n,o,i,a,s,c,Z,l,u)}function Li(e,t,r,n,o){Od.copyBufferSubData(e,t,r,n,o)}function ji(e,t,r,n,o,i,a,s){Od.copyTexImage2D(e,t,r,n,o,i,a,s)}function Ui(e,t,r,n,o,i,a,s){Od.copyTexSubImage2D(e,t,r,n,o,i,a,s)}function Ni(e,t,r,n,o,i,a,s,c){Od.copyTexSubImage3D(e,t,r,n,o,i,a,s,c)}function Hi(){var e=Fo.getNewId(Fo.programs),t=Od.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,Fo.programs[e]=t,e}function Bi(e){var t=Fo.getNewId(Fo.shaders);return Fo.shaders[t]=Od.createShader(e),t}function Xi(e){Od.cullFace(e)}function Qi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.buffers[n];o&&(Od.deleteBuffer(o),o.name=0,Fo.buffers[n]=null,n==Od.currentPixelPackBufferBinding&&(Od.currentPixelPackBufferBinding=0),n==Od.currentPixelUnpackBufferBinding&&(Od.currentPixelUnpackBufferBinding=0))}}function Zi(e,t){for(var r=0;r<e;++r){var n=W[t+4*r>>2],o=Fo.framebuffers[n];o&&(Od.deleteFramebuffer(o),o.name=0,Fo.framebuffers[n]=null)}}function Gi(e){if(e){var t=Fo.programs[e];t?(Od.deleteProgram(t),t.name=0,Fo.programs[e]=null):Fo.recordError(1281)}}function qi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.queries[n];o&&(Od.deleteQuery(o),Fo.queries[n]=null)}}function Wi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.queries[n];o&&(Od.disjointTimerQueryExt.deleteQueryEXT(o),Fo.queries[n]=null)}}function Vi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.renderbuffers[n];o&&(Od.deleteRenderbuffer(o),o.name=0,Fo.renderbuffers[n]=null)}}function zi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.samplers[n];o&&(Od.deleteSampler(o),o.name=0,Fo.samplers[n]=null)}}function $i(e){if(e){var t=Fo.shaders[e];t?(Od.deleteShader(t),Fo.shaders[e]=null):Fo.recordError(1281)}}function Yi(e){if(e){var t=Fo.syncs[e];t?(Od.deleteSync(t),t.name=0,Fo.syncs[e]=null):Fo.recordError(1281)}}function Ki(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.textures[n];o&&(Od.deleteTexture(o),o.name=0,Fo.textures[n]=null)}}function Ji(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=Fo.transformFeedbacks[n];o&&(Od.deleteTransformFeedback(o),o.name=0,Fo.transformFeedbacks[n]=null)}}function ea(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2];Od.deleteVertexArray(Fo.vaos[n]),Fo.vaos[n]=null}}function ta(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2];Od.deleteVertexArray(Fo.vaos[n]),Fo.vaos[n]=null}}function ra(e){Od.depthFunc(e)}function na(e){Od.depthMask(!!e)}function oa(e,t){Od.depthRange(e,t)}function ia(e,t){Od.detachShader(Fo.programs[e],Fo.shaders[t])}function aa(e){Od.disable(e)}function sa(e){Od.disableVertexAttribArray(e)}function ca(e,t,r){Od.drawArrays(e,t,r)}function ua(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function la(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function da(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function pa(e,t,r,n,o){Od.dibvbi.drawArraysInstancedBaseInstanceWEBGL(e,t,r,n,o)}function fa(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function ma(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}var ga=[];function ha(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function Ea(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function _a(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function ya(e,t,r,n){Od.drawElements(e,t,r,n)}function va(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function ba(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function wa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Ta(e,t,r,n,o,i,a){Od.dibvbi.drawElementsInstancedBaseVertexBaseInstanceWEBGL(e,t,r,n,o,i,a)}function Oa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Pa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Da(e,t,r,n){Od.drawElements(e,t,r,n)}function xa(e,t,r,n,o,i){Da(e,n,o,i)}function Sa(e){Od.enable(e)}function Ra(e){Od.enableVertexAttribArray(e)}function Ma(e){Od.endQuery(e)}function Aa(e){Od.disjointTimerQueryExt.endQueryEXT(e)}function Fa(){Od.endTransformFeedback()}function ka(e,t){var r=Od.fenceSync(e,t);if(r){var n=Fo.getNewId(Fo.syncs);return r.name=n,Fo.syncs[n]=r,n}return 0}function Ca(){Od.finish()}function Ia(){Od.flush()}function La(e,t,r,n){Od.framebufferRenderbuffer(e,t,r,Fo.renderbuffers[n])}function ja(e,t,r,n,o){Od.framebufferTexture2D(e,t,r,Fo.textures[n],o)}function Ua(e,t,r,n,o){Od.framebufferTextureLayer(e,t,Fo.textures[r],n,o)}function Na(e){Od.frontFace(e)}function Ha(e,t,r,n){for(var o=0;o<e;o++){var i=Od[r](),a=i&&Fo.getNewId(n);i?(i.name=a,n[a]=i):Fo.recordError(1282),W[t+4*o>>2]=a}}function Ba(e,t){Ha(e,t,"createBuffer",Fo.buffers)}function Xa(e,t){Ha(e,t,"createFramebuffer",Fo.framebuffers)}function Qa(e,t){Ha(e,t,"createQuery",Fo.queries)}function Za(e,t){for(var r=0;r<e;r++){var n=Od.disjointTimerQueryExt.createQueryEXT();if(!n){for(Fo.recordError(1282);r<e;)W[t+4*r++>>2]=0;return}var o=Fo.getNewId(Fo.queries);n.name=o,Fo.queries[o]=n,W[t+4*r>>2]=o}}function Ga(e,t){Ha(e,t,"createRenderbuffer",Fo.renderbuffers)}function qa(e,t){Ha(e,t,"createSampler",Fo.samplers)}function Wa(e,t){Ha(e,t,"createTexture",Fo.textures)}function Va(e,t){Ha(e,t,"createTransformFeedback",Fo.transformFeedbacks)}function za(e,t){Ha(e,t,"createVertexArray",Fo.vaos)}function $a(e,t){Ha(e,t,"createVertexArray",Fo.vaos)}function Ya(e){Od.generateMipmap(e)}function Ka(e,t,r,n,o,i,a,s){t=Fo.programs[t];var c=Od[e](t,r);if(c){var u=s&&H(c.name,s,n);o&&(W[o>>2]=u),i&&(W[i>>2]=c.size),a&&(W[a>>2]=c.type)}}function Ja(e,t,r,n,o,i,a){Ka("getActiveAttrib",e,t,r,n,o,i,a)}function es(e,t,r,n,o,i,a){Ka("getActiveUniform",e,t,r,n,o,i,a)}function ts(e,t,r,n,o){e=Fo.programs[e];var i=Od.getActiveUniformBlockName(e,t);if(i)if(o&&r>0){var a=H(i,o,r);n&&(W[n>>2]=a)}else n&&(W[n>>2]=0)}function rs(e,t,r,n){if(n)if(e=Fo.programs[e],35393!=r){var o=Od.getActiveUniformBlockParameter(e,t,r);if(null!==o)if(35395==r)for(var i=0;i<o.length;i++)W[n+4*i>>2]=o[i];else W[n>>2]=o}else{var a=Od.getActiveUniformBlockName(e,t);W[n>>2]=a.length+1}else Fo.recordError(1281)}function ns(e,t,r,n,o){if(o)if(t>0&&0==r)Fo.recordError(1281);else{e=Fo.programs[e];for(var i=[],a=0;a<t;a++)i.push(W[r+4*a>>2]);var s=Od.getActiveUniforms(e,i,n);if(s){var c=s.length;for(a=0;a<c;a++)W[o+4*a>>2]=s[a]}}else Fo.recordError(1281)}function os(e,t,r,n){var o=Od.getAttachedShaders(Fo.programs[e]),i=o.length;i>t&&(i=t),W[r>>2]=i;for(var a=0;a<i;++a){var s=Fo.shaders.indexOf(o[a]);W[n+4*a>>2]=s}}function is(e,t){return Od.getAttribLocation(Fo.programs[e],U(t))}function as(e){return V[e>>2]+4294967296*W[e+4>>2]}function ss(e){return V[e>>2]+4294967296*V[e+4>>2]}function cs(e,t){V[e>>2]=t,V[e+4>>2]=(t-V[e>>2])/4294967296;var r=t>=0?ss(e):as(e);r!=t&&P("writeI53ToI64() out of range: serialized JS Number "+t+" to Wasm heap as bytes lo=0x"+V[e>>2].toString(16)+", hi=0x"+V[e+4>>2].toString(16)+", which deserializes back to "+r+" instead!")}function us(e,t,r){if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&Fo.recordError(1280));case 34814:case 36345:n=0;break;case 34466:var o=Od.getParameter(34467);n=o?o.length:0;break;case 33309:if(Fo.currentContext.version<2)return void Fo.recordError(1282);n=2*(Od.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(Fo.currentContext.version<2)return void Fo.recordError(1280);n=33307==e?3:0}if(void 0===n){var i=Od.getParameter(e);switch(typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void Fo.recordError(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void Fo.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var a=0;a<i.length;++a)switch(r){case 0:W[t+4*a>>2]=i[a];break;case 2:z[t+4*a>>2]=i[a];break;case 4:Q[t+a>>0]=i[a]?1:0}return}try{n=0|i.name}catch(t){return Fo.recordError(1280),void O("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+t+")")}}break;default:return Fo.recordError(1280),void O("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}}switch(r){case 1:cs(t,n);break;case 0:W[t>>2]=n;break;case 2:z[t>>2]=n;break;case 4:Q[t>>0]=n?1:0}}else Fo.recordError(1281)}function ls(e,t){us(e,t,4)}function ds(e,t,r){r?cs(r,Od.getBufferParameter(e,t)):Fo.recordError(1281)}function ps(e,t,r){r?W[r>>2]=Od.getBufferParameter(e,t):Fo.recordError(1281)}function fs(){var e=Od.getError()||Fo.lastError;return Fo.lastError=0,e}function ms(e,t){us(e,t,2)}function gs(e,t){return Od.getFragDataLocation(Fo.programs[e],U(t))}function hs(e,t,r,n){var o=Od.getFramebufferAttachmentParameter(e,t,r);(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=0|o.name),W[n>>2]=o}function Es(e,t,r,n){if(r){var o,i=Od.getIndexedParameter(e,t);switch(typeof i){case"boolean":o=i?1:0;break;case"number":o=i;break;case"object":if(null===i)switch(e){case 35983:case 35368:o=0;break;default:return void Fo.recordError(1280)}else{if(!(i instanceof WebGLBuffer))return void Fo.recordError(1280);o=0|i.name}break;default:return void Fo.recordError(1280)}switch(n){case 1:cs(r,o);break;case 0:W[r>>2]=o;break;case 2:z[r>>2]=o;break;case 4:Q[r>>0]=o?1:0;break;default:throw"internal emscriptenWebGLGetIndexed() error, bad type: "+n}}else Fo.recordError(1281)}function _s(e,t,r){Es(e,t,r,1)}function ys(e,t){us(e,t,1)}function vs(e,t,r){Es(e,t,r,0)}function bs(e,t){us(e,t,0)}function ws(e,t,r,n,o){if(n<0)Fo.recordError(1281);else if(o){var i=Od.getInternalformatParameter(e,t,r);if(null!==i)for(var a=0;a<i.length&&a<n;++a)W[o+4*a>>2]=i[a]}else Fo.recordError(1281)}function Ts(e,t,r,n,o){Fo.recordError(1282)}function Os(e,t,r,n){var o=Od.getProgramInfoLog(Fo.programs[e]);null===o&&(o="(unknown error)");var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}function Ps(e,t,r){if(r)if(e>=Fo.counter)Fo.recordError(1281);else if(e=Fo.programs[e],35716==t){var n=Od.getProgramInfoLog(e);null===n&&(n="(unknown error)"),W[r>>2]=n.length+1}else if(35719==t){if(!e.maxUniformLength)for(var o=0;o<Od.getProgramParameter(e,35718);++o)e.maxUniformLength=Math.max(e.maxUniformLength,Od.getActiveUniform(e,o).name.length+1);W[r>>2]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(o=0;o<Od.getProgramParameter(e,35721);++o)e.maxAttributeLength=Math.max(e.maxAttributeLength,Od.getActiveAttrib(e,o).name.length+1);W[r>>2]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(o=0;o<Od.getProgramParameter(e,35382);++o)e.maxUniformBlockNameLength=Math.max(e.maxUniformBlockNameLength,Od.getActiveUniformBlockName(e,o).length+1);W[r>>2]=e.maxUniformBlockNameLength}else W[r>>2]=Od.getProgramParameter(e,t);else Fo.recordError(1281)}function Ds(e,t,r){if(r){var n,o=Fo.queries[e];cs(r,"boolean"==typeof(n=Fo.currentContext.version<2?Od.disjointTimerQueryExt.getQueryObjectEXT(o,t):Od.getQueryParameter(o,t))?n?1:0:n)}else Fo.recordError(1281)}function xs(e,t,r){if(r){var n,o=Fo.queries[e],i=Od.disjointTimerQueryExt.getQueryObjectEXT(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else Fo.recordError(1281)}function Ss(e,t,r){if(r){var n,o=Fo.queries[e];cs(r,"boolean"==typeof(n=Fo.currentContext.version<2?Od.disjointTimerQueryExt.getQueryObjectEXT(o,t):Od.getQueryParameter(o,t))?n?1:0:n)}else Fo.recordError(1281)}function Rs(e,t,r){if(r){var n,o=Fo.queries[e],i=Od.getQueryParameter(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else Fo.recordError(1281)}function Ms(e,t,r){if(r){var n,o=Fo.queries[e],i=Od.disjointTimerQueryExt.getQueryObjectEXT(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else Fo.recordError(1281)}function As(e,t,r){r?W[r>>2]=Od.getQuery(e,t):Fo.recordError(1281)}function Fs(e,t,r){r?W[r>>2]=Od.disjointTimerQueryExt.getQueryEXT(e,t):Fo.recordError(1281)}function ks(e,t,r){r?W[r>>2]=Od.getRenderbufferParameter(e,t):Fo.recordError(1281)}function Cs(e,t,r){r?z[r>>2]=Od.getSamplerParameter(Fo.samplers[e],t):Fo.recordError(1281)}function Is(e,t,r){r?W[r>>2]=Od.getSamplerParameter(Fo.samplers[e],t):Fo.recordError(1281)}function Ls(e,t,r,n){var o=Od.getShaderInfoLog(Fo.shaders[e]);null===o&&(o="(unknown error)");var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}function js(e,t,r,n){var o=Od.getShaderPrecisionFormat(e,t);W[r>>2]=o.rangeMin,W[r+4>>2]=o.rangeMax,W[n>>2]=o.precision}function Us(e,t,r,n){var o=Od.getShaderSource(Fo.shaders[e]);if(o){var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}}function Ns(e,t,r){if(r)if(35716==t){var n=Od.getShaderInfoLog(Fo.shaders[e]);null===n&&(n="(unknown error)");var o=n?n.length+1:0;W[r>>2]=o}else if(35720==t){var i=Od.getShaderSource(Fo.shaders[e]),a=i?i.length+1:0;W[r>>2]=a}else W[r>>2]=Od.getShaderParameter(Fo.shaders[e],t);else Fo.recordError(1281)}function Hs(e){var t=B(e)+1,r=Cd(t);return H(e,r,t),r}function Bs(e){var t=Fo.stringCache[e];if(!t){switch(e){case 7939:var r=Od.getSupportedExtensions()||[];t=Hs((r=r.concat(r.map((function(e){return"GL_"+e})))).join(" "));break;case 7936:case 7937:case 37445:case 37446:var n=Od.getParameter(e);n||Fo.recordError(1280),t=n&&Hs(n);break;case 7938:var o=Od.getParameter(7938);t=Hs(o=Fo.currentContext.version>=2?"OpenGL ES 3.0 ("+o+")":"OpenGL ES 2.0 ("+o+")");break;case 35724:var i=Od.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES "+a[1]+" ("+i+")"),t=Hs(i);break;default:Fo.recordError(1280)}Fo.stringCache[e]=t}return t}function Xs(e,t){if(Fo.currentContext.version<2)return Fo.recordError(1282),0;var r=Fo.stringiCache[e];if(r)return t<0||t>=r.length?(Fo.recordError(1281),0):r[t];switch(e){case 7939:var n=Od.getSupportedExtensions()||[];return n=(n=n.concat(n.map((function(e){return"GL_"+e})))).map((function(e){return Hs(e)})),r=Fo.stringiCache[e]=n,t<0||t>=r.length?(Fo.recordError(1281),0):r[t];default:return Fo.recordError(1280),0}}function Qs(e,t,r,n,o){if(r<0)Fo.recordError(1281);else if(o){var i=Od.getSyncParameter(Fo.syncs[e],t);null!==i&&(W[o>>2]=i,n&&(W[n>>2]=1))}else Fo.recordError(1281)}function Zs(e,t,r){r?z[r>>2]=Od.getTexParameter(e,t):Fo.recordError(1281)}function Gs(e,t,r){r?W[r>>2]=Od.getTexParameter(e,t):Fo.recordError(1281)}function qs(e,t,r,n,o,i,a){e=Fo.programs[e];var s=Od.getTransformFeedbackVarying(e,t);if(s){if(a&&r>0){var c=H(s.name,a,r);n&&(W[n>>2]=c)}else n&&(W[n>>2]=0);o&&(W[o>>2]=s.size),i&&(W[i>>2]=s.type)}}function Ws(e,t){return Od.getUniformBlockIndex(Fo.programs[e],U(t))}function Vs(e,t,r,n){if(n)if(t>0&&(0==r||0==n))Fo.recordError(1281);else{e=Fo.programs[e];for(var o=[],i=0;i<t;i++)o.push(U(W[r+4*i>>2]));var a=Od.getUniformIndices(e,o);if(a){var s=a.length;for(i=0;i<s;i++)W[n+4*i>>2]=a[i]}}else Fo.recordError(1281)}function zs(e){return parseInt(e)}function $s(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function Ys(e){var t,r,n=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},t=0;t<Od.getProgramParameter(e,35718);++t){var i=Od.getActiveUniform(e,t),a=i.name,s=i.size,c=$s(a),u=c>0?a.slice(0,c):a,l=e.uniformIdCounter;for(e.uniformIdCounter+=s,o[u]=[s,l],r=0;r<s;++r)n[l]=r,e.uniformArrayNamesById[l++]=u}}function Ks(e,t){if(t=U(t),e=Fo.programs[e]){Ys(e);var r=e.uniformLocsById,n=0,o=t,i=$s(t);i>0&&(n=zs(t.slice(i+1))>>>0,o=t.slice(0,i));var a=e.uniformSizeAndIdsByName[o];if(a&&n<a[0]&&(r[n+=a[1]]=r[n]||Od.getUniformLocation(e,t)))return n}else Fo.recordError(1281);return-1}function Js(e){var t=Od.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=Od.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"["+r+"]":""))),r}Fo.recordError(1282)}function ec(e,t,r,n){if(r){Ys(e=Fo.programs[e]);var o=Od.getUniform(e,Js(t));if("number"==typeof o||"boolean"==typeof o)switch(n){case 0:W[r>>2]=o;break;case 2:z[r>>2]=o}else for(var i=0;i<o.length;i++)switch(n){case 0:W[r+4*i>>2]=o[i];break;case 2:z[r+4*i>>2]=o[i]}}else Fo.recordError(1281)}function tc(e,t,r){ec(e,t,r,2)}function rc(e,t,r){ec(e,t,r,0)}function nc(e,t,r){ec(e,t,r,0)}function oc(e,t,r,n){if(r){var o=Od.getVertexAttrib(e,t);if(34975==t)W[r>>2]=o&&o.name;else if("number"==typeof o||"boolean"==typeof o)switch(n){case 0:W[r>>2]=o;break;case 2:z[r>>2]=o;break;case 5:W[r>>2]=Math.fround(o)}else for(var i=0;i<o.length;i++)switch(n){case 0:W[r+4*i>>2]=o[i];break;case 2:z[r+4*i>>2]=o[i];break;case 5:W[r+4*i>>2]=Math.fround(o[i])}}else Fo.recordError(1281)}function ic(e,t,r){oc(e,t,r,0)}function ac(e,t,r){oc(e,t,r,0)}function sc(e,t,r){r?W[r>>2]=Od.getVertexAttribOffset(e,t):Fo.recordError(1281)}function cc(e,t,r){oc(e,t,r,2)}function uc(e,t,r){oc(e,t,r,5)}function lc(e,t){Od.hint(e,t)}function dc(e,t,r){for(var n=ga[t],o=0;o<t;o++)n[o]=W[r+4*o>>2];Od.invalidateFramebuffer(e,n)}function pc(e,t,r,n,o,i,a){for(var s=ga[t],c=0;c<t;c++)s[c]=W[r+4*c>>2];Od.invalidateSubFramebuffer(e,s,n,o,i,a)}function fc(e){var t=Fo.buffers[e];return t?Od.isBuffer(t):0}function mc(e){return Od.isEnabled(e)}function gc(e){var t=Fo.framebuffers[e];return t?Od.isFramebuffer(t):0}function hc(e){return(e=Fo.programs[e])?Od.isProgram(e):0}function Ec(e){var t=Fo.queries[e];return t?Od.isQuery(t):0}function _c(e){var t=Fo.queries[e];return t?Od.disjointTimerQueryExt.isQueryEXT(t):0}function yc(e){var t=Fo.renderbuffers[e];return t?Od.isRenderbuffer(t):0}function vc(e){var t=Fo.samplers[e];return t?Od.isSampler(t):0}function bc(e){var t=Fo.shaders[e];return t?Od.isShader(t):0}function wc(e){return Od.isSync(Fo.syncs[e])}function Tc(e){var t=Fo.textures[e];return t?Od.isTexture(t):0}function Oc(e){return Od.isTransformFeedback(Fo.transformFeedbacks[e])}function Pc(e){var t=Fo.vaos[e];return t?Od.isVertexArray(t):0}function Dc(e){var t=Fo.vaos[e];return t?Od.isVertexArray(t):0}function xc(e){Od.lineWidth(e)}function Sc(e){e=Fo.programs[e],Od.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}}function Rc(e,t,r,n,o,i){Od.mdibvbi.multiDrawArraysInstancedBaseInstanceWEBGL(e,W,t>>2,W,r>>2,W,n>>2,V,o>>2,i)}function Mc(e,t,r,n,o,i,a,s){Od.mdibvbi.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(e,W,t>>2,r,W,n>>2,W,o>>2,W,i>>2,V,a>>2,s)}function Ac(){Od.pauseTransformFeedback()}function Fc(e,t){3317==e&&(Fo.unpackAlignment=t),Od.pixelStorei(e,t)}function kc(e,t){Od.polygonOffset(e,t)}function Cc(e,t,r,n){Fo.recordError(1280)}function Ic(e,t,r){Fo.recordError(1280)}function Lc(e,t){Od.disjointTimerQueryExt.queryCounterEXT(Fo.queries[e],t)}function jc(e){Od.readBuffer(e)}function Uc(e,t,r,n){var o;return t*(e*r+(o=n)-1&-o)}function Nc(e){return{5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1}function Hc(e){return 0==(e-=5120)?Q:1==e?Z:2==e?G:4==e?W:6==e?z:5==e||28922==e||28520==e||30779==e||30782==e?V:q}function Bc(e){return 31-Math.clz32(e.BYTES_PER_ELEMENT)}function Xc(e,t,r,n,o,i){var a=Hc(e),s=Bc(a),c=1<<s,u=Uc(r,n,Nc(t)*c,Fo.unpackAlignment);return a.subarray(o>>s,o+u>>s)}function Qc(e,t,r,n,o,i,a){if(Fo.currentContext.version>=2)if(Od.currentPixelPackBufferBinding)Od.readPixels(e,t,r,n,o,i,a);else{var s=Hc(i);Od.readPixels(e,t,r,n,o,i,s,a>>Bc(s))}else{var c=Xc(i,o,r,n,a);c?Od.readPixels(e,t,r,n,o,i,c):Fo.recordError(1280)}}function Zc(){}function Gc(e,t,r,n){Od.renderbufferStorage(e,t,r,n)}function qc(e,t,r,n,o){Od.renderbufferStorageMultisample(e,t,r,n,o)}function Wc(){Od.resumeTransformFeedback()}function Vc(e,t){Od.sampleCoverage(e,!!t)}function zc(e,t,r){Od.samplerParameterf(Fo.samplers[e],t,r)}function $c(e,t,r){var n=z[r>>2];Od.samplerParameterf(Fo.samplers[e],t,n)}function Yc(e,t,r){Od.samplerParameteri(Fo.samplers[e],t,r)}function Kc(e,t,r){var n=W[r>>2];Od.samplerParameteri(Fo.samplers[e],t,n)}function Jc(e,t,r,n){Od.scissor(e,t,r,n)}function eu(){Fo.recordError(1280)}function tu(e,t,r,n){var o=Fo.getSource(e,t,r,n);if(Fo.currentContext.version>=2&&o.includes("#version 100")){var i="";(o=(o=o.replace(/#extension GL_OES_standard_derivatives : enable/g,"")).replace(/#extension GL_EXT_shader_texture_lod : enable/g,"")).includes("gl_FragColor")&&(i+="out mediump vec4 GL_FragColor;\n",o=o.replace(/gl_FragColor/g,"GL_FragColor")),o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.includes("attribute")?(o=o.replace(/attribute/g,"in")).replace(/varying/g,"out"):o.replace(/varying/g,"in")).replace(/textureCubeLodEXT/g,"textureCubeLod")).replace(/texture2DLodEXT/g,"texture2DLod")).replace(/texture2DProjLodEXT/g,"texture2DProjLod")).replace(/texture2DGradEXT/g,"texture2DGrad")).replace(/texture2DProjGradEXT/g,"texture2DProjGrad")).replace(/textureCubeGradEXT/g,"textureCubeGrad")).replace(/textureCube/g,"texture")).replace(/texture1D/g,"texture")).replace(/texture2D/g,"texture")).replace(/texture3D/g,"texture")).replace(/#version 100/g,"#version 300 es\n"+i)}Od.shaderSource(Fo.shaders[e],o)}function ru(e,t,r){Od.stencilFunc(e,t,r)}function nu(e,t,r,n){Od.stencilFuncSeparate(e,t,r,n)}function ou(e){Od.stencilMask(e)}function iu(e,t){Od.stencilMaskSeparate(e,t)}function au(e,t,r){Od.stencilOp(e,t,r)}function su(e,t,r,n){Od.stencilOpSeparate(e,t,r,n)}function cu(e,t,r,n,o,i,a,s,c){if(Fo.currentContext.version>=2&&(6402==a&&6402==r&&5125==s&&(r=33190),36193==s&&(s=5131,6408==a&&6408==r&&(r=34842)),34041==r&&(r=35056)),Fo.currentContext.version>=2)if(Od.currentPixelUnpackBufferBinding)Od.texImage2D(e,t,r,n,o,i,a,s,c);else if(c){var u=Hc(s);Od.texImage2D(e,t,r,n,o,i,a,s,u,c>>Bc(u))}else Od.texImage2D(e,t,r,n,o,i,a,s,null);else Od.texImage2D(e,t,r,n,o,i,a,s,c?Xc(s,a,n,o,c):null)}function uu(e,t,r,n,o,i,a,s,c,u){if(Od.currentPixelUnpackBufferBinding)Od.texImage3D(e,t,r,n,o,i,a,s,c,u);else if(u){var l=Hc(c);Od.texImage3D(e,t,r,n,o,i,a,s,c,l,u>>Bc(l))}else Od.texImage3D(e,t,r,n,o,i,a,s,c,null)}function lu(e,t,r){Od.texParameterf(e,t,r)}function du(e,t,r){var n=z[r>>2];Od.texParameterf(e,t,n)}function pu(e,t,r){Od.texParameteri(e,t,r)}function fu(e,t,r){var n=W[r>>2];Od.texParameteri(e,t,n)}function mu(e,t,r,n,o){Od.texStorage2D(e,t,r,n,o)}function gu(e,t,r,n,o,i){Od.texStorage3D(e,t,r,n,o,i)}function hu(e,t,r,n,o,i,a,s,c){if(Fo.currentContext.version>=2&&36193==s&&(s=5131),Fo.currentContext.version>=2)if(Od.currentPixelUnpackBufferBinding)Od.texSubImage2D(e,t,r,n,o,i,a,s,c);else if(c){var u=Hc(s);Od.texSubImage2D(e,t,r,n,o,i,a,s,u,c>>Bc(u))}else Od.texSubImage2D(e,t,r,n,o,i,a,s,null);else{var l=null;c&&(l=Xc(s,a,o,i,c)),Od.texSubImage2D(e,t,r,n,o,i,a,s,l)}}function Eu(e,t,r,n,o,i,a,s,c,u,l){if(Od.currentPixelUnpackBufferBinding)Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,l);else if(l){var d=Hc(u);Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,d,l>>Bc(d))}else Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,null)}function _u(e,t,r,n){e=Fo.programs[e];for(var o=[],i=0;i<t;i++)o.push(U(W[r+4*i>>2]));Od.transformFeedbackVaryings(e,o,n)}function yu(e,t){Od.uniform1f(Js(e),t)}var vu=[];function bu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform1fv(Js(e),z,r>>2,t);else{if(t<=288)for(var n=vu[t-1],o=0;o<t;++o)n[o]=z[r+4*o>>2];else n=z.subarray(r>>2,r+4*t>>2);Od.uniform1fv(Js(e),n)}}function wu(e,t){Od.uniform1i(Js(e),t)}var Tu=[];function Ou(e,t,r){if(Fo.currentContext.version>=2)Od.uniform1iv(Js(e),W,r>>2,t);else{if(t<=288)for(var n=Tu[t-1],o=0;o<t;++o)n[o]=W[r+4*o>>2];else n=W.subarray(r>>2,r+4*t>>2);Od.uniform1iv(Js(e),n)}}function Pu(e,t){Od.uniform1ui(Js(e),t)}function Du(e,t,r){Od.uniform1uiv(Js(e),V,r>>2,t)}function xu(e,t,r){Od.uniform2f(Js(e),t,r)}function Su(e,t,r){if(Fo.currentContext.version>=2)Od.uniform2fv(Js(e),z,r>>2,2*t);else{if(t<=144)for(var n=vu[2*t-1],o=0;o<2*t;o+=2)n[o]=z[r+4*o>>2],n[o+1]=z[r+(4*o+4)>>2];else n=z.subarray(r>>2,r+8*t>>2);Od.uniform2fv(Js(e),n)}}function Ru(e,t,r){Od.uniform2i(Js(e),t,r)}function Mu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform2iv(Js(e),W,r>>2,2*t);else{if(t<=144)for(var n=Tu[2*t-1],o=0;o<2*t;o+=2)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2];else n=W.subarray(r>>2,r+8*t>>2);Od.uniform2iv(Js(e),n)}}function Au(e,t,r){Od.uniform2ui(Js(e),t,r)}function Fu(e,t,r){Od.uniform2uiv(Js(e),V,r>>2,2*t)}function ku(e,t,r,n){Od.uniform3f(Js(e),t,r,n)}function Cu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform3fv(Js(e),z,r>>2,3*t);else{if(t<=96)for(var n=vu[3*t-1],o=0;o<3*t;o+=3)n[o]=z[r+4*o>>2],n[o+1]=z[r+(4*o+4)>>2],n[o+2]=z[r+(4*o+8)>>2];else n=z.subarray(r>>2,r+12*t>>2);Od.uniform3fv(Js(e),n)}}function Iu(e,t,r,n){Od.uniform3i(Js(e),t,r,n)}function Lu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform3iv(Js(e),W,r>>2,3*t);else{if(t<=96)for(var n=Tu[3*t-1],o=0;o<3*t;o+=3)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2],n[o+2]=W[r+(4*o+8)>>2];else n=W.subarray(r>>2,r+12*t>>2);Od.uniform3iv(Js(e),n)}}function ju(e,t,r,n){Od.uniform3ui(Js(e),t,r,n)}function Uu(e,t,r){Od.uniform3uiv(Js(e),V,r>>2,3*t)}function Nu(e,t,r,n,o){Od.uniform4f(Js(e),t,r,n,o)}function Hu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform4fv(Js(e),z,r>>2,4*t);else{if(t<=72){var n=vu[4*t-1],o=z;r>>=2;for(var i=0;i<4*t;i+=4){var a=r+i;n[i]=o[a],n[i+1]=o[a+1],n[i+2]=o[a+2],n[i+3]=o[a+3]}}else n=z.subarray(r>>2,r+16*t>>2);Od.uniform4fv(Js(e),n)}}function Bu(e,t,r,n,o){Od.uniform4i(Js(e),t,r,n,o)}function Xu(e,t,r){if(Fo.currentContext.version>=2)Od.uniform4iv(Js(e),W,r>>2,4*t);else{if(t<=72)for(var n=Tu[4*t-1],o=0;o<4*t;o+=4)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2],n[o+2]=W[r+(4*o+8)>>2],n[o+3]=W[r+(4*o+12)>>2];else n=W.subarray(r>>2,r+16*t>>2);Od.uniform4iv(Js(e),n)}}function Qu(e,t,r,n,o){Od.uniform4ui(Js(e),t,r,n,o)}function Zu(e,t,r){Od.uniform4uiv(Js(e),V,r>>2,4*t)}function Gu(e,t,r){e=Fo.programs[e],Od.uniformBlockBinding(e,t,r)}function qu(e,t,r,n){if(Fo.currentContext.version>=2)Od.uniformMatrix2fv(Js(e),!!r,z,n>>2,4*t);else{if(t<=72)for(var o=vu[4*t-1],i=0;i<4*t;i+=4)o[i]=z[n+4*i>>2],o[i+1]=z[n+(4*i+4)>>2],o[i+2]=z[n+(4*i+8)>>2],o[i+3]=z[n+(4*i+12)>>2];else o=z.subarray(n>>2,n+16*t>>2);Od.uniformMatrix2fv(Js(e),!!r,o)}}function Wu(e,t,r,n){Od.uniformMatrix2x3fv(Js(e),!!r,z,n>>2,6*t)}function Vu(e,t,r,n){Od.uniformMatrix2x4fv(Js(e),!!r,z,n>>2,8*t)}function zu(e,t,r,n){if(Fo.currentContext.version>=2)Od.uniformMatrix3fv(Js(e),!!r,z,n>>2,9*t);else{if(t<=32)for(var o=vu[9*t-1],i=0;i<9*t;i+=9)o[i]=z[n+4*i>>2],o[i+1]=z[n+(4*i+4)>>2],o[i+2]=z[n+(4*i+8)>>2],o[i+3]=z[n+(4*i+12)>>2],o[i+4]=z[n+(4*i+16)>>2],o[i+5]=z[n+(4*i+20)>>2],o[i+6]=z[n+(4*i+24)>>2],o[i+7]=z[n+(4*i+28)>>2],o[i+8]=z[n+(4*i+32)>>2];else o=z.subarray(n>>2,n+36*t>>2);Od.uniformMatrix3fv(Js(e),!!r,o)}}function $u(e,t,r,n){Od.uniformMatrix3x2fv(Js(e),!!r,z,n>>2,6*t)}function Yu(e,t,r,n){Od.uniformMatrix3x4fv(Js(e),!!r,z,n>>2,12*t)}function Ku(e,t,r,n){if(Fo.currentContext.version>=2)Od.uniformMatrix4fv(Js(e),!!r,z,n>>2,16*t);else{if(t<=18){var o=vu[16*t-1],i=z;n>>=2;for(var a=0;a<16*t;a+=16){var s=n+a;o[a]=i[s],o[a+1]=i[s+1],o[a+2]=i[s+2],o[a+3]=i[s+3],o[a+4]=i[s+4],o[a+5]=i[s+5],o[a+6]=i[s+6],o[a+7]=i[s+7],o[a+8]=i[s+8],o[a+9]=i[s+9],o[a+10]=i[s+10],o[a+11]=i[s+11],o[a+12]=i[s+12],o[a+13]=i[s+13],o[a+14]=i[s+14],o[a+15]=i[s+15]}}else o=z.subarray(n>>2,n+64*t>>2);Od.uniformMatrix4fv(Js(e),!!r,o)}}function Ju(e,t,r,n){Od.uniformMatrix4x2fv(Js(e),!!r,z,n>>2,8*t)}function el(e,t,r,n){Od.uniformMatrix4x3fv(Js(e),!!r,z,n>>2,12*t)}function tl(e){e=Fo.programs[e],Od.useProgram(e),Od.currentProgram=e}function rl(e){Od.validateProgram(Fo.programs[e])}function nl(e,t){Od.vertexAttrib1f(e,t)}function ol(e,t){Od.vertexAttrib1f(e,z[t>>2])}function il(e,t,r){Od.vertexAttrib2f(e,t,r)}function al(e,t){Od.vertexAttrib2f(e,z[t>>2],z[t+4>>2])}function sl(e,t,r,n){Od.vertexAttrib3f(e,t,r,n)}function cl(e,t){Od.vertexAttrib3f(e,z[t>>2],z[t+4>>2],z[t+8>>2])}function ul(e,t,r,n,o){Od.vertexAttrib4f(e,t,r,n,o)}function ll(e,t){Od.vertexAttrib4f(e,z[t>>2],z[t+4>>2],z[t+8>>2],z[t+12>>2])}function dl(e,t){Od.vertexAttribDivisor(e,t)}function pl(e,t){Od.vertexAttribDivisor(e,t)}function fl(e,t){Od.vertexAttribDivisor(e,t)}function ml(e,t){Od.vertexAttribDivisor(e,t)}function gl(e,t){Od.vertexAttribDivisor(e,t)}function hl(e,t,r,n,o){Od.vertexAttribI4i(e,t,r,n,o)}function El(e,t){Od.vertexAttribI4i(e,W[t>>2],W[t+4>>2],W[t+8>>2],W[t+12>>2])}function _l(e,t,r,n,o){Od.vertexAttribI4ui(e,t,r,n,o)}function yl(e,t){Od.vertexAttribI4ui(e,V[t>>2],V[t+4>>2],V[t+8>>2],V[t+12>>2])}function vl(e,t,r,n,o){Od.vertexAttribIPointer(e,t,r,n,o)}function bl(e,t,r,n,o,i){Od.vertexAttribPointer(e,t,r,!!n,o,i)}function wl(e,t,r,n){Od.viewport(e,t,r,n)}function Tl(e,t,r,n){Od.waitSync(Fo.syncs[e],t,Si(r,n))}function Ol(e,t,r){Z.copyWithin(e,t,t+r)}function Pl(e){try{return M.grow(e-X.byteLength+65535>>>16),ue(M.buffer),1}catch(t){O("emscripten_realloc_buffer: Attempted to grow heap from "+X.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Dl(e){var t=Z.length;I((e>>>=0)>t);var r=2147483648;if(e>r)return O("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);o=Math.min(o,e+100663296);var i=Math.min(r,ce(Math.max(e,o),65536));if(Pl(i))return!0}return O("Failed to grow the heap from "+t+" bytes to "+i+" bytes, not enough memory!"),!1}function xl(e,t,r,n,o,a,s){const c=i.UTF8ToString(e,e+t),u=i.HEAPU8.subarray(o,o+a);let l=i.emscripten_ubq_codec_decoderNextHandle++;var d=Fo.textures[s];const p=i.emscripten_ubq_codec_createVideoDecoder(d),f={codec:c,codedWidth:r,codedHeight:n,description:new Uint8Array(u)};return p.configure(f),i.emscripten_ubq_codec_decoders.set(l,{videoDecoder:p,decoderConfig:f,texture:d}),l}function Sl(e,t,r,n,o,a){const s=i.emscripten_ubq_codec_decoders.get(e);"closed"===s.videoDecoder.state&&(s.videoDecoder=i.emscripten_ubq_codec_createVideoDecoder(s.texture),s.videoDecoder.configure(s.decoderConfig));const c=s.videoDecoder,u=i.HEAPU8.subarray(o,o+a),l=new EncodedVideoChunk({type:t?"key":"delta",timestamp:r,duration:n,data:u});try{c.decode(l)}catch(e){return console.error(e),!1}return!0}function Rl(e){i.emscripten_ubq_codec_decoders.get(e).videoDecoder.close(),i.emscripten_ubq_codec_decoders.delete(e)}async function Ml(e){const t=i.emscripten_ubq_codec_decoders.get(e).videoDecoder;await t.flush()}function Al(e){return i.emscripten_ubq_codec_decoders.get(e).videoDecoder.presentedFrames}function Fl(){return"VideoFrame"in window}function kl(e){const t=i.emscripten_ubq_codec_decoders.get(e).videoDecoder;t.presentedFrames=0,t.probing=!0}function Cl(e){i.emscripten_ubq_codec_decoders.get(e).videoDecoder.probing=!1}function Il(e){const t=i.emscripten_ubq_codec_decoders.get(e),r=!0===t.videoDecoder.textureUploadFlag;return t.videoDecoder.textureUploadFlag=!1,r}function Ll(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return!0;if(t.state==s.FINISHED){const r=t.result.length,n=i._malloc(r);return i.HEAPU8.set(t.result,n),t.resultAddress=n,t.resultLength=r,t.state=s.ALLOCATED,i.emscripten_ubq_asyncFetchStates.set(e,t),!0}}return!1}function jl(e,t,r,n){let o=i.UTF8ToString(e,t),a=i.UTF8ToString(r,n),s=i.emscripten_ubq_asyncFetchNextHeaderHandle++;return i.emscripten_ubq_asyncFetchHeaders.set(s,{key:o,value:a}),s}function Ul(e){return i.emscripten_ubq_asyncFetchHeaders.has(e)?i.emscripten_ubq_asyncFetchHeaders.get(e):0}function Nl(e,t,r,n,o,a,u,l,d){let p=i.UTF8ToString(t,r),f=i.UTF8ToString(l,d),m=i.emscripten_ubq_asyncFetchNextHandle++;i.emscripten_ubq_asyncFetchStates.set(m,{state:s.PENDING});let g={};for(let e=0;e<o;e++){const t=i.getValue(n+4*e,"i32"),r=i.emscripten_ubq_asyncFetchHeaders.get(t);g[r.key]=r.value}const h=c[e];let E;return"GET"!==h&&"HEAD"!==h&&(E=new Uint8Array(i.HEAPU8.buffer,a,u)),fetch(p,{method:h,headers:g,body:E,mode:"cors",credentials:f}).then((e=>{if(e.status>=200&&e.status<=209){let t=0;async function r(e,t){const r=e.getReader();let n=0,o=[];for(;;){const{done:e,value:t}=await r.read();if(e)break;o.push(t),n+=t.length,i.emscripten_ubq_asyncFetchCompletedBytes.set(m,n)}let a=new Uint8Array(n),s=0;for(let e of o)a.set(e,s),s+=e.length;return a}return e.headers.has("Content-Length")&&(t=+e.headers.get("Content-Length")),i.emscripten_ubq_asyncFetchTotalBytes.set(m,t),r(e.body)}return Promise.reject(e.statusText)})).then((e=>{i.emscripten_ubq_asyncFetchStates.set(m,{state:s.FINISHED,result:e})})).catch((e=>{i.emscripten_ubq_asyncFetchStates.set(m,{state:s.ERROR,error:e})})),m}function Hl(e){return!!i.emscripten_ubq_asyncFetchStates.has(e)&&(i.emscripten_ubq_asyncFetchStates.delete(e),!0)}function Bl(e){return i.emscripten_ubq_asyncFetchCompletedBytes.has(e)?i.emscripten_ubq_asyncFetchCompletedBytes.get(e):0}function Xl(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return t.resultAddress}return-1}function Ql(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return t.resultLength}return-1}function Zl(e){return i.emscripten_ubq_asyncFetchStates.has(e)?i.emscripten_ubq_asyncFetchStates.get(e).state:-1}function Gl(e){return i.emscripten_ubq_asyncFetchTotalBytes.has(e)?i.emscripten_ubq_asyncFetchTotalBytes.get(e):0}var ql={inEventHandler:0,removeAllEventListeners:function(){for(var e=ql.eventHandlers.length-1;e>=0;--e)ql._removeHandler(e);ql.eventHandlers=[],ql.deferredCalls=[]},registerRemoveEventListeners:function(){ql.removeEventListenersRegistered||(_e.push(ql.removeAllEventListeners),ql.removeEventListenersRegistered=!0)},deferredCalls:[],deferCall:function(e,t,r){function n(e,t){if(e.length!=t.length)return!1;for(var r in e)if(e[r]!=t[r])return!1;return!0}for(var o in ql.deferredCalls){var i=ql.deferredCalls[o];if(i.targetFunction==e&&n(i.argsList,r))return}ql.deferredCalls.push({targetFunction:e,precedence:t,argsList:r}),ql.deferredCalls.sort((function(e,t){return e.precedence<t.precedence}))},removeDeferredCalls:function(e){for(var t=0;t<ql.deferredCalls.length;++t)ql.deferredCalls[t].targetFunction==e&&(ql.deferredCalls.splice(t,1),--t)},canPerformEventHandlerRequests:function(){return ql.inEventHandler&&ql.currentEventHandler.allowsDeferredCalls},runDeferredCalls:function(){if(ql.canPerformEventHandlerRequests())for(var e=0;e<ql.deferredCalls.length;++e){var t=ql.deferredCalls[e];ql.deferredCalls.splice(e,1),--e,t.targetFunction.apply(null,t.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:function(e,t){for(var r=0;r<ql.eventHandlers.length;++r)ql.eventHandlers[r].target!=e||t&&t!=ql.eventHandlers[r].eventTypeString||ql._removeHandler(r--)},_removeHandler:function(e){var t=ql.eventHandlers[e];t.target.removeEventListener(t.eventTypeString,t.eventListenerFunc,t.useCapture),ql.eventHandlers.splice(e,1)},registerOrRemoveHandler:function(e){var t=function(t){++ql.inEventHandler,ql.currentEventHandler=e,ql.runDeferredCalls(),e.handlerFunc(t),ql.runDeferredCalls(),--ql.inEventHandler};if(e.callbackfunc)e.eventListenerFunc=t,e.target.addEventListener(e.eventTypeString,t,e.useCapture),ql.eventHandlers.push(e),ql.registerRemoveEventListeners();else for(var r=0;r<ql.eventHandlers.length;++r)ql.eventHandlers[r].target==e.target&&ql.eventHandlers[r].eventTypeString==e.eventTypeString&&ql._removeHandler(r--)},getNodeNameForTarget:function(e){return e?e==window?"#window":e==screen?"#screen":e&&e.nodeName?e.nodeName:"":""},fullscreenEnabled:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}},Wl=["default","low-power","high-performance"];function Vl(e){return e>2?U(e):e}var zl=[0,document,window];function $l(e){return e=Vl(e),zl[e]||document.querySelector(e)}function Yl(e){return $l(e)}function Kl(e,t){I(t);var r=t>>2,n=W[r+6],o={alpha:!!W[r+0],depth:!!W[r+1],stencil:!!W[r+2],antialias:!!W[r+3],premultipliedAlpha:!!W[r+4],preserveDrawingBuffer:!!W[r+5],powerPreference:Wl[n],failIfMajorPerformanceCaveat:!!W[r+7],majorVersion:W[r+8],minorVersion:W[r+9],enableExtensionsByDefault:W[r+10],explicitSwapControl:W[r+11],proxyContextToMainThread:W[r+12],renderViaOffscreenBackBuffer:W[r+13]},i=Yl(e);return i?o.explicitSwapControl?0:Fo.createContext(i,o):0}function Jl(e,t){return Kl(e,t)}function ed(e){Fo.currentContext==e&&(Fo.currentContext=0),Fo.deleteContext(e)}function td(e){I(e);for(var t=e>>2,r=0;r<14;++r)W[t+r]=0;W[t+0]=W[t+1]=W[t+3]=W[t+4]=W[t+8]=W[t+10]=1}function rd(e){return Fo.makeContextCurrent(e)?0:-5}var nd={};function od(){return d||"./this.program"}function id(){if(!id.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",_:od()};for(var t in nd)void 0===nd[t]?delete e[t]:e[t]=nd[t];var r=[];for(var t in e)r.push(t+"="+e[t]);id.strings=r}return id.strings}function ad(e,t){var r=0;return id().forEach((function(n,o){var i=t+r;W[e+4*o>>2]=i,se(n,i),r+=n.length+1})),0}function sd(e,t){var r=id();W[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),W[t>>2]=n,0}function cd(e){try{var t=yt.getStreamFromFD(e);return _t.close(t),0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function ud(e,t,r,n,o,i){try{I(!o,"offsets over 2^32 not yet supported");var a=yt.getStreamFromFD(e),s=yt.doReadv(a,t,r,n);return W[i>>2]=s,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function ld(e,t,r,n){try{var o=yt.getStreamFromFD(e),i=yt.doReadv(o,t,r);return W[n>>2]=i,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function dd(e,t,r,n,o){try{var i=yt.getStreamFromFD(e),a=4294967296*r+(t>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(_t.llseek(i,a,n),Xe=[i.position>>>0,(Be=i.position,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[o>>2]=Xe[0],W[o+4>>2]=Xe[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function pd(e,t,r,n){try{var o=yt.getStreamFromFD(e),i=yt.doWritev(o,t,r);return W[n>>2]=i,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function fd(){return R()}function md(e){var t=Date.now();return W[e>>2]=t/1e3|0,W[e+4>>2]=t%1e3*1e3|0,0}function gd(e){S(e)}function hd(e){return e%4==0&&(e%100!=0||e%400==0)}function Ed(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var _d=[31,29,31,30,31,30,31,31,30,31,30,31],yd=[31,28,31,30,31,30,31,31,30,31,30,31];function vd(e,t){for(var r=new Date(e.getTime());t>0;){var n=hd(r.getFullYear()),o=r.getMonth(),i=(n?_d:yd)[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 bd(e,t,r,n){var o=W[n+40>>2],i={tm_sec:W[n>>2],tm_min:W[n+4>>2],tm_hour:W[n+8>>2],tm_mday:W[n+12>>2],tm_mon:W[n+16>>2],tm_year:W[n+20>>2],tm_wday:W[n+24>>2],tm_yday:W[n+28>>2],tm_isdst:W[n+32>>2],tm_gmtoff:W[n+36>>2],tm_zone:o?U(o):""},a=U(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"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return d(e,t,"0")}function f(e,t){function r(e){return e<0?-1:e>0?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 m(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 g(e){var t=vd(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=m(r),i=m(n);return f(o,t)<=0?f(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":function(e){return u[e.tm_wday].substring(0,3)},"%A":function(e){return u[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 p((e.tm_year+1900)/100|0,2)},"%d":function(e){return p(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return g(e).toString().substring(2)},"%G":function(e){return g(e)},"%H":function(e){return p(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":function(e){return p(e.tm_mday+Ed(hd(e.tm_year+1900)?_d:yd,e.tm_mon-1),3)},"%m":function(e){return p(e.tm_mon+1,2)},"%M":function(e){return p(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 p(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:vd(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ed(hd(n.getFullYear())?_d:yd,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(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=m(r),i=m(n),a=vd(new Date(e.tm_year+1900,0,1),e.tm_yday);return f(a,o)<0?"53":f(i,a)<=0?"01":(t=o.getFullYear()<e.tm_year+1900?e.tm_yday+32-o.getDate():e.tm_yday+1-o.getDate(),p(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var t=new Date(e.tm_year,0,1),r=1===t.getDay()?t:vd(t,0===t.getDay()?1:7-t.getDay()+1),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ed(hd(n.getFullYear())?_d:yd,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(r,t)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=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 a=a.replace(/%%/g,"\0\0"),h)a.includes(c)&&(a=a.replace(new RegExp(c,"g"),h[c](i)));var E=Ad(a=a.replace(/\0\0/g,"%"),!1);return E.length>t?0:(ae(E,e),E.length-1)}function wd(e,t,r,n){return bd(e,t,r,n)}function Td(e){var t=Date.now()/1e3|0;return e&&(W[e>>2]=t),t}var Od,Pd=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=_t.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},Dd=365,xd=146;Object.defineProperties(Pd.prototype,{read:{get:function(){return(this.mode&Dd)===Dd},set:function(e){e?this.mode|=Dd:this.mode&=~Dd}},write:{get:function(){return(this.mode&xd)===xd},set:function(e){e?this.mode|=xd:this.mode&=~xd}},isFolder:{get:function(){return _t.isDir(this.mode)}},isDevice:{get:function(){return _t.isChrdev(this.mode)}}}),_t.FSNode=Pd,_t.staticInit(),i.FS_createPath=_t.createPath,i.FS_createDataFile=_t.createDataFile,i.FS_createPreloadedFile=_t.createPreloadedFile,i.FS_createLazyFile=_t.createLazyFile,i.FS_createDevice=_t.createDevice,i.FS_unlink=_t.unlink,Et={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},Bt=i.InternalError=Ht(Error,"InternalError"),zt(),Kt=i.BindingError=Ht(Error,"BindingError"),Sr(),Er(),Hr(),Wr=i.UnboundTypeError=Ht(Error,"UnboundTypeError"),cn(),i.requestFullscreen=function(e,t){To.requestFullscreen(e,t)},i.requestFullScreen=function(){To.requestFullScreen()},i.requestAnimationFrame=function(e){To.requestAnimationFrame(e)},i.setCanvasSize=function(e,t,r){To.setCanvasSize(e,t,r)},i.pauseMainLoop=function(){To.mainLoop.pause()},i.resumeMainLoop=function(){To.mainLoop.resume()},i.getUserMedia=function(){To.getUserMedia()},i.createContext=function(e,t,r,n){return To.createContext(e,t,r,n)};for(var Sd=0;Sd<32;++Sd)ga.push(new Array(Sd));var Rd=new Float32Array(288);for(Sd=0;Sd<288;++Sd)vu[Sd]=Rd.subarray(0,Sd+1);var Md=new Int32Array(288);for(Sd=0;Sd<288;++Sd)Tu[Sd]=Md.subarray(0,Sd+1);function Ad(e,t,r){var n=r>0?r:B(e)+1,o=new Array(n),i=N(e,o,0,o.length);return t&&(o.length=i),o}"function"==typeof atob&&atob;var Fd,kd={__assert_fail:rt,__cxa_allocate_exception:nt,__cxa_throw:it,__syscall_fcntl64:vt,__syscall_fstat64:bt,__syscall_fstatat64:wt,__syscall_getdents64:Tt,__syscall_ioctl:Ot,__syscall_lstat64:Pt,__syscall_open:Dt,__syscall_stat64:xt,_dlopen_js:St,_dlsym_js:Rt,_embind_finalize_value_array:Zt,_embind_finalize_value_object:qt,_embind_register_bigint:Wt,_embind_register_bool:tr,_embind_register_class:$r,_embind_register_class_constructor:Kr,_embind_register_class_function:tn,_embind_register_emval:ln,_embind_register_enum:pn,_embind_register_enum_value:mn,_embind_register_float:En,_embind_register_function:_n,_embind_register_integer:vn,_embind_register_memory_view:bn,_embind_register_smart_ptr:wn,_embind_register_std_string:Tn,_embind_register_std_wstring:On,_embind_register_value_array:Pn,_embind_register_value_array_element:Dn,_embind_register_value_object:xn,_embind_register_value_object_field:Sn,_embind_register_void:Rn,_emscripten_throw_longjmp:Mn,_emval_as:An,_emval_call:kn,_emval_call_method:Un,_emval_call_void_method:Nn,_emval_decref:on,_emval_get_global:Bn,_emval_get_method_caller:Zn,_emval_get_property:Gn,_emval_incref:qn,_emval_instanceof:Wn,_emval_is_string:Vn,_emval_new:Kn,_emval_new_array:Jn,_emval_new_cstring:eo,_emval_new_object:to,_emval_run_destructors:ro,_emval_set_property:no,_emval_take_value:oo,_emval_throw:io,_gmtime_js:ao,_localtime_js:so,_mktime_js:co,_mmap_js:uo,_munmap_js:lo,_tzset_js:fo,abort:mo,clock_gettime:ho,eglChooseConfig:Po,eglCreateContext:ko,eglCreateWindowSurface:Co,eglDestroyContext:Io,eglDestroySurface:Lo,eglGetConfigAttrib:jo,eglGetDisplay:Uo,eglGetError:No,eglInitialize:Ho,eglMakeCurrent:Bo,eglSwapBuffers:Xo,eglTerminate:Qo,emscripten_console_error:Zo,emscripten_console_log:Go,emscripten_console_warn:qo,emscripten_debugger:Wo,emscripten_get_heap_max:Vo,emscripten_get_now:$n,emscripten_glActiveTexture:zo,emscripten_glAttachShader:$o,emscripten_glBeginQuery:Yo,emscripten_glBeginQueryEXT:Ko,emscripten_glBeginTransformFeedback:Jo,emscripten_glBindAttribLocation:ei,emscripten_glBindBuffer:ti,emscripten_glBindBufferBase:ri,emscripten_glBindBufferRange:ni,emscripten_glBindFramebuffer:oi,emscripten_glBindRenderbuffer:ii,emscripten_glBindSampler:ai,emscripten_glBindTexture:si,emscripten_glBindTransformFeedback:ci,emscripten_glBindVertexArray:ui,emscripten_glBindVertexArrayOES:li,emscripten_glBlendColor:di,emscripten_glBlendEquation:pi,emscripten_glBlendEquationSeparate:fi,emscripten_glBlendFunc:mi,emscripten_glBlendFuncSeparate:gi,emscripten_glBlitFramebuffer:hi,emscripten_glBufferData:Ei,emscripten_glBufferSubData:_i,emscripten_glCheckFramebufferStatus:yi,emscripten_glClear:vi,emscripten_glClearBufferfi:bi,emscripten_glClearBufferfv:wi,emscripten_glClearBufferiv:Ti,emscripten_glClearBufferuiv:Oi,emscripten_glClearColor:Pi,emscripten_glClearDepthf:Di,emscripten_glClearStencil:xi,emscripten_glClientWaitSync:Ri,emscripten_glColorMask:Mi,emscripten_glCompileShader:Ai,emscripten_glCompressedTexImage2D:Fi,emscripten_glCompressedTexImage3D:ki,emscripten_glCompressedTexSubImage2D:Ci,emscripten_glCompressedTexSubImage3D:Ii,emscripten_glCopyBufferSubData:Li,emscripten_glCopyTexImage2D:ji,emscripten_glCopyTexSubImage2D:Ui,emscripten_glCopyTexSubImage3D:Ni,emscripten_glCreateProgram:Hi,emscripten_glCreateShader:Bi,emscripten_glCullFace:Xi,emscripten_glDeleteBuffers:Qi,emscripten_glDeleteFramebuffers:Zi,emscripten_glDeleteProgram:Gi,emscripten_glDeleteQueries:qi,emscripten_glDeleteQueriesEXT:Wi,emscripten_glDeleteRenderbuffers:Vi,emscripten_glDeleteSamplers:zi,emscripten_glDeleteShader:$i,emscripten_glDeleteSync:Yi,emscripten_glDeleteTextures:Ki,emscripten_glDeleteTransformFeedbacks:Ji,emscripten_glDeleteVertexArrays:ea,emscripten_glDeleteVertexArraysOES:ta,emscripten_glDepthFunc:ra,emscripten_glDepthMask:na,emscripten_glDepthRangef:oa,emscripten_glDetachShader:ia,emscripten_glDisable:aa,emscripten_glDisableVertexAttribArray:sa,emscripten_glDrawArrays:ca,emscripten_glDrawArraysInstanced:ua,emscripten_glDrawArraysInstancedANGLE:la,emscripten_glDrawArraysInstancedARB:da,emscripten_glDrawArraysInstancedBaseInstanceWEBGL:pa,emscripten_glDrawArraysInstancedEXT:fa,emscripten_glDrawArraysInstancedNV:ma,emscripten_glDrawBuffers:ha,emscripten_glDrawBuffersEXT:Ea,emscripten_glDrawBuffersWEBGL:_a,emscripten_glDrawElements:ya,emscripten_glDrawElementsInstanced:va,emscripten_glDrawElementsInstancedANGLE:ba,emscripten_glDrawElementsInstancedARB:wa,emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:Ta,emscripten_glDrawElementsInstancedEXT:Oa,emscripten_glDrawElementsInstancedNV:Pa,emscripten_glDrawRangeElements:xa,emscripten_glEnable:Sa,emscripten_glEnableVertexAttribArray:Ra,emscripten_glEndQuery:Ma,emscripten_glEndQueryEXT:Aa,emscripten_glEndTransformFeedback:Fa,emscripten_glFenceSync:ka,emscripten_glFinish:Ca,emscripten_glFlush:Ia,emscripten_glFramebufferRenderbuffer:La,emscripten_glFramebufferTexture2D:ja,emscripten_glFramebufferTextureLayer:Ua,emscripten_glFrontFace:Na,emscripten_glGenBuffers:Ba,emscripten_glGenFramebuffers:Xa,emscripten_glGenQueries:Qa,emscripten_glGenQueriesEXT:Za,emscripten_glGenRenderbuffers:Ga,emscripten_glGenSamplers:qa,emscripten_glGenTextures:Wa,emscripten_glGenTransformFeedbacks:Va,emscripten_glGenVertexArrays:za,emscripten_glGenVertexArraysOES:$a,emscripten_glGenerateMipmap:Ya,emscripten_glGetActiveAttrib:Ja,emscripten_glGetActiveUniform:es,emscripten_glGetActiveUniformBlockName:ts,emscripten_glGetActiveUniformBlockiv:rs,emscripten_glGetActiveUniformsiv:ns,emscripten_glGetAttachedShaders:os,emscripten_glGetAttribLocation:is,emscripten_glGetBooleanv:ls,emscripten_glGetBufferParameteri64v:ds,emscripten_glGetBufferParameteriv:ps,emscripten_glGetError:fs,emscripten_glGetFloatv:ms,emscripten_glGetFragDataLocation:gs,emscripten_glGetFramebufferAttachmentParameteriv:hs,emscripten_glGetInteger64i_v:_s,emscripten_glGetInteger64v:ys,emscripten_glGetIntegeri_v:vs,emscripten_glGetIntegerv:bs,emscripten_glGetInternalformativ:ws,emscripten_glGetProgramBinary:Ts,emscripten_glGetProgramInfoLog:Os,emscripten_glGetProgramiv:Ps,emscripten_glGetQueryObjecti64vEXT:Ds,emscripten_glGetQueryObjectivEXT:xs,emscripten_glGetQueryObjectui64vEXT:Ss,emscripten_glGetQueryObjectuiv:Rs,emscripten_glGetQueryObjectuivEXT:Ms,emscripten_glGetQueryiv:As,emscripten_glGetQueryivEXT:Fs,emscripten_glGetRenderbufferParameteriv:ks,emscripten_glGetSamplerParameterfv:Cs,emscripten_glGetSamplerParameteriv:Is,emscripten_glGetShaderInfoLog:Ls,emscripten_glGetShaderPrecisionFormat:js,emscripten_glGetShaderSource:Us,emscripten_glGetShaderiv:Ns,emscripten_glGetString:Bs,emscripten_glGetStringi:Xs,emscripten_glGetSynciv:Qs,emscripten_glGetTexParameterfv:Zs,emscripten_glGetTexParameteriv:Gs,emscripten_glGetTransformFeedbackVarying:qs,emscripten_glGetUniformBlockIndex:Ws,emscripten_glGetUniformIndices:Vs,emscripten_glGetUniformLocation:Ks,emscripten_glGetUniformfv:tc,emscripten_glGetUniformiv:rc,emscripten_glGetUniformuiv:nc,emscripten_glGetVertexAttribIiv:ic,emscripten_glGetVertexAttribIuiv:ac,emscripten_glGetVertexAttribPointerv:sc,emscripten_glGetVertexAttribfv:cc,emscripten_glGetVertexAttribiv:uc,emscripten_glHint:lc,emscripten_glInvalidateFramebuffer:dc,emscripten_glInvalidateSubFramebuffer:pc,emscripten_glIsBuffer:fc,emscripten_glIsEnabled:mc,emscripten_glIsFramebuffer:gc,emscripten_glIsProgram:hc,emscripten_glIsQuery:Ec,emscripten_glIsQueryEXT:_c,emscripten_glIsRenderbuffer:yc,emscripten_glIsSampler:vc,emscripten_glIsShader:bc,emscripten_glIsSync:wc,emscripten_glIsTexture:Tc,emscripten_glIsTransformFeedback:Oc,emscripten_glIsVertexArray:Pc,emscripten_glIsVertexArrayOES:Dc,emscripten_glLineWidth:xc,emscripten_glLinkProgram:Sc,emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:Rc,emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:Mc,emscripten_glPauseTransformFeedback:Ac,emscripten_glPixelStorei:Fc,emscripten_glPolygonOffset:kc,emscripten_glProgramBinary:Cc,emscripten_glProgramParameteri:Ic,emscripten_glQueryCounterEXT:Lc,emscripten_glReadBuffer:jc,emscripten_glReadPixels:Qc,emscripten_glReleaseShaderCompiler:Zc,emscripten_glRenderbufferStorage:Gc,emscripten_glRenderbufferStorageMultisample:qc,emscripten_glResumeTransformFeedback:Wc,emscripten_glSampleCoverage:Vc,emscripten_glSamplerParameterf:zc,emscripten_glSamplerParameterfv:$c,emscripten_glSamplerParameteri:Yc,emscripten_glSamplerParameteriv:Kc,emscripten_glScissor:Jc,emscripten_glShaderBinary:eu,emscripten_glShaderSource:tu,emscripten_glStencilFunc:ru,emscripten_glStencilFuncSeparate:nu,emscripten_glStencilMask:ou,emscripten_glStencilMaskSeparate:iu,emscripten_glStencilOp:au,emscripten_glStencilOpSeparate:su,emscripten_glTexImage2D:cu,emscripten_glTexImage3D:uu,emscripten_glTexParameterf:lu,emscripten_glTexParameterfv:du,emscripten_glTexParameteri:pu,emscripten_glTexParameteriv:fu,emscripten_glTexStorage2D:mu,emscripten_glTexStorage3D:gu,emscripten_glTexSubImage2D:hu,emscripten_glTexSubImage3D:Eu,emscripten_glTransformFeedbackVaryings:_u,emscripten_glUniform1f:yu,emscripten_glUniform1fv:bu,emscripten_glUniform1i:wu,emscripten_glUniform1iv:Ou,emscripten_glUniform1ui:Pu,emscripten_glUniform1uiv:Du,emscripten_glUniform2f:xu,emscripten_glUniform2fv:Su,emscripten_glUniform2i:Ru,emscripten_glUniform2iv:Mu,emscripten_glUniform2ui:Au,emscripten_glUniform2uiv:Fu,emscripten_glUniform3f:ku,emscripten_glUniform3fv:Cu,emscripten_glUniform3i:Iu,emscripten_glUniform3iv:Lu,emscripten_glUniform3ui:ju,emscripten_glUniform3uiv:Uu,emscripten_glUniform4f:Nu,emscripten_glUniform4fv:Hu,emscripten_glUniform4i:Bu,emscripten_glUniform4iv:Xu,emscripten_glUniform4ui:Qu,emscripten_glUniform4uiv:Zu,emscripten_glUniformBlockBinding:Gu,emscripten_glUniformMatrix2fv:qu,emscripten_glUniformMatrix2x3fv:Wu,emscripten_glUniformMatrix2x4fv:Vu,emscripten_glUniformMatrix3fv:zu,emscripten_glUniformMatrix3x2fv:$u,emscripten_glUniformMatrix3x4fv:Yu,emscripten_glUniformMatrix4fv:Ku,emscripten_glUniformMatrix4x2fv:Ju,emscripten_glUniformMatrix4x3fv:el,emscripten_glUseProgram:tl,emscripten_glValidateProgram:rl,emscripten_glVertexAttrib1f:nl,emscripten_glVertexAttrib1fv:ol,emscripten_glVertexAttrib2f:il,emscripten_glVertexAttrib2fv:al,emscripten_glVertexAttrib3f:sl,emscripten_glVertexAttrib3fv:cl,emscripten_glVertexAttrib4f:ul,emscripten_glVertexAttrib4fv:ll,emscripten_glVertexAttribDivisor:dl,emscripten_glVertexAttribDivisorANGLE:pl,emscripten_glVertexAttribDivisorARB:fl,emscripten_glVertexAttribDivisorEXT:ml,emscripten_glVertexAttribDivisorNV:gl,emscripten_glVertexAttribI4i:hl,emscripten_glVertexAttribI4iv:El,emscripten_glVertexAttribI4ui:_l,emscripten_glVertexAttribI4uiv:yl,emscripten_glVertexAttribIPointer:vl,emscripten_glVertexAttribPointer:bl,emscripten_glViewport:wl,emscripten_glWaitSync:Tl,emscripten_memcpy_big:Ol,emscripten_resize_heap:Dl,emscripten_ubq_codec_createDecoder:xl,emscripten_ubq_codec_decodeSample:Sl,emscripten_ubq_codec_destroyDecoder:Rl,emscripten_ubq_codec_flushDecoder:Ml,emscripten_ubq_codec_getNumberOfDecodedFrames:Al,emscripten_ubq_codec_isSupported:Fl,emscripten_ubq_codec_startProbing:kl,emscripten_ubq_codec_stopProbing:Cl,emscripten_ubq_codec_testAndClearTextureUpdateFlag:Il,emscripten_ubq_fetch_allocateFetchResult:Ll,emscripten_ubq_fetch_createHeader:jl,emscripten_ubq_fetch_deleteHeader:Ul,emscripten_ubq_fetch_dispatchAsyncFetch:Nl,emscripten_ubq_fetch_freeFetchResult:Hl,emscripten_ubq_fetch_getFetchCompletedBytes:Bl,emscripten_ubq_fetch_getFetchResultAddress:Xl,emscripten_ubq_fetch_getFetchResultLength:Ql,emscripten_ubq_fetch_getFetchState:Zl,emscripten_ubq_fetch_getFetchTotalBytes:Gl,emscripten_webgl_create_context:Jl,emscripten_webgl_destroy_context:ed,emscripten_webgl_init_context_attributes:td,emscripten_webgl_make_context_current:rd,environ_get:ad,environ_sizes_get:sd,exit:_o,fd_close:cd,fd_pread:ud,fd_read:ld,fd_seek:dd,fd_write:pd,getTempRet0:fd,gettimeofday:md,invoke_ii:qd,invoke_iii:Wd,invoke_iiii:zd,invoke_iiiii:tp,invoke_iiiiii:Kd,invoke_iiiiiii:ep,invoke_v:op,invoke_vi:$d,invoke_vii:Yd,invoke_viii:Vd,invoke_viiii:Jd,invoke_viiiii:rp,invoke_viiiiii:ip,invoke_viiiiiiiii:np,setTempRet0:gd,strftime_l:wd,time:Td},Cd=(ze(),i.___wasm_call_ctors=qe("__wasm_call_ctors"),i._malloc=qe("malloc")),Id=(i._main=qe("main"),i._free=qe("free")),Ld=i.___errno_location=qe("__errno_location"),jd=(i._saveSetjmp=qe("saveSetjmp"),i.___getTypeName=qe("__getTypeName")),Ud=(i.___embind_register_native_and_builtin_types=qe("__embind_register_native_and_builtin_types"),i.___stdio_exit=qe("__stdio_exit")),Nd=(i.___dl_seterr=qe("__dl_seterr"),i._emscripten_main_thread_process_queued_calls=qe("emscripten_main_thread_process_queued_calls"),i._emscripten_builtin_memalign=qe("emscripten_builtin_memalign")),Hd=i._setThrew=qe("setThrew"),Bd=i._emscripten_stack_init=function(){return(Bd=i._emscripten_stack_init=i.asm.emscripten_stack_init).apply(null,arguments)},Xd=(i._emscripten_stack_get_free=function(){return(i._emscripten_stack_get_free=i.asm.emscripten_stack_get_free).apply(null,arguments)},i._emscripten_stack_get_base=function(){return(i._emscripten_stack_get_base=i.asm.emscripten_stack_get_base).apply(null,arguments)},i._emscripten_stack_get_end=function(){return(Xd=i._emscripten_stack_get_end=i.asm.emscripten_stack_get_end).apply(null,arguments)}),Qd=i.stackSave=qe("stackSave"),Zd=i.stackRestore=qe("stackRestore"),Gd=i.stackAlloc=qe("stackAlloc");function qd(e,t){var r=Qd();try{return et(e)(t)}catch(e){if(Zd(r),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Wd(e,t,r){var n=Qd();try{return et(e)(t,r)}catch(e){if(Zd(n),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Vd(e,t,r,n){var o=Qd();try{et(e)(t,r,n)}catch(e){if(Zd(o),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function zd(e,t,r,n){var o=Qd();try{return et(e)(t,r,n)}catch(e){if(Zd(o),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function $d(e,t){var r=Qd();try{et(e)(t)}catch(e){if(Zd(r),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Yd(e,t,r){var n=Qd();try{et(e)(t,r)}catch(e){if(Zd(n),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Kd(e,t,r,n,o,i){var a=Qd();try{return et(e)(t,r,n,o,i)}catch(e){if(Zd(a),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Jd(e,t,r,n,o){var i=Qd();try{et(e)(t,r,n,o)}catch(e){if(Zd(i),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ep(e,t,r,n,o,i,a){var s=Qd();try{return et(e)(t,r,n,o,i,a)}catch(e){if(Zd(s),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function tp(e,t,r,n,o){var i=Qd();try{return et(e)(t,r,n,o)}catch(e){if(Zd(i),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function rp(e,t,r,n,o,i){var a=Qd();try{et(e)(t,r,n,o,i)}catch(e){if(Zd(a),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function np(e,t,r,n,o,i,a,s,c,u){var l=Qd();try{et(e)(t,r,n,o,i,a,s,c,u)}catch(e){if(Zd(l),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function op(e){var t=Qd();try{et(e)()}catch(e){if(Zd(t),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ip(e,t,r,n,o,i,a){var s=Qd();try{et(e)(t,r,n,o,i,a)}catch(e){if(Zd(s),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ap(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function sp(e){I(0==Fe,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),I(0==ge.length,"cannot call main when preRun functions remain to be called");var t=i._main,r=(e=e||[]).length+1,n=Gd(4*(r+1));W[n>>2]=ie(d);for(var o=1;o<r;o++)W[(n>>2)+o]=ie(e[o-1]);W[(n>>2)+r]=0;try{var a=t(r,n);return dp(a,!0),a}catch(e){return tt(e)}}function cp(){Bd(),fe()}function up(e){function r(){Fd||(Fd=!0,i.calledRun=!0,C||(Pe(),De(),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),fp&&sp(e),Se()))}e=e||l,Fe>0||(cp(),Oe(),Fe>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r(),me()))}function lp(){var e=T,t=O,r=!1;T=O=e=>{r=!0};try{Ud(),["stdout","stderr"].forEach((function(e){var t=_t.analyzePath("/dev/"+e);if(t){var n=t.object.rdev,o=lt.ttys[n];o&&o.output&&o.output.length&&(r=!0)}}))}catch(e){}T=e,O=t,r&&P("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 dp(e,t){if(k=e,we||lp(),Te()){if(!t){var r="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)";o(r),O(r)}}else xe();pp(e)}function pp(e){k=e,Te()||(i.onExit&&i.onExit(e),C=!0),p(e,new ap(e))}if(i.dynCall_ji=qe("dynCall_ji"),i.dynCall_ijiii=qe("dynCall_ijiii"),i.dynCall_jij=qe("dynCall_jij"),i.dynCall_iiiijii=qe("dynCall_iiiijii"),i.dynCall_jiiji=qe("dynCall_jiiji"),i.dynCall_jj=qe("dynCall_jj"),i.dynCall_iiij=qe("dynCall_iiij"),i.dynCall_jiiiji=qe("dynCall_jiiiji"),i.dynCall_viiij=qe("dynCall_viiij"),i.dynCall_viji=qe("dynCall_viji"),i.dynCall_vijiii=qe("dynCall_vijiii"),i.dynCall_viiiiij=qe("dynCall_viiiiij"),i.dynCall_jiiiijiiiii=qe("dynCall_jiiiijiiiii"),i.dynCall_jii=qe("dynCall_jii"),i.dynCall_iiiij=qe("dynCall_iiiij"),i.dynCall_viij=qe("dynCall_viij"),i.dynCall_iij=qe("dynCall_iij"),i.dynCall_vij=qe("dynCall_vij"),i.dynCall_jiiii=qe("dynCall_jiiii"),i.dynCall_jiiiiii=qe("dynCall_jiiiiii"),i.dynCall_jiiiiji=qe("dynCall_jiiiiji"),i.dynCall_iijj=qe("dynCall_iijj"),i.dynCall_jiji=qe("dynCall_jiji"),i.dynCall_viijii=qe("dynCall_viijii"),i.dynCall_iiiiij=qe("dynCall_iiiiij"),i.dynCall_iiiiijj=qe("dynCall_iiiiijj"),i.dynCall_iiiiiijj=qe("dynCall_iiiiiijj"),Object.getOwnPropertyDescriptor(i,"intArrayFromString")||(i.intArrayFromString=()=>Ne("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"intArrayToString")||(i.intArrayToString=()=>Ne("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ccall")||(i.ccall=()=>Ne("'ccall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"cwrap")||(i.cwrap=()=>Ne("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setValue")||(i.setValue=()=>Ne("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.getValue=F,Object.getOwnPropertyDescriptor(i,"allocate")||(i.allocate=()=>Ne("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF8ArrayToString")||(i.UTF8ArrayToString=()=>Ne("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.UTF8ToString=U,Object.getOwnPropertyDescriptor(i,"stringToUTF8Array")||(i.stringToUTF8Array=()=>Ne("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF8")||(i.stringToUTF8=()=>Ne("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF8")||(i.lengthBytesUTF8=()=>Ne("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=()=>Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPreRun")||(i.addOnPreRun=()=>Ne("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnInit")||(i.addOnInit=()=>Ne("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPreMain")||(i.addOnPreMain=()=>Ne("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnExit")||(i.addOnExit=()=>Ne("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPostRun")||(i.addOnPostRun=()=>Ne("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeStringToMemory")||(i.writeStringToMemory=()=>Ne("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeArrayToMemory")||(i.writeArrayToMemory=()=>Ne("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeAsciiToMemory")||(i.writeAsciiToMemory=()=>Ne("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.addRunDependency=je,i.removeRunDependency=Ue,Object.getOwnPropertyDescriptor(i,"FS_createFolder")||(i.FS_createFolder=()=>Ne("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.FS_createPath=_t.createPath,i.FS_createDataFile=_t.createDataFile,i.FS_createPreloadedFile=_t.createPreloadedFile,i.FS_createLazyFile=_t.createLazyFile,Object.getOwnPropertyDescriptor(i,"FS_createLink")||(i.FS_createLink=()=>Ne("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.FS_createDevice=_t.createDevice,i.FS_unlink=_t.unlink,Object.getOwnPropertyDescriptor(i,"getLEB")||(i.getLEB=()=>Ne("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFunctionTables")||(i.getFunctionTables=()=>Ne("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"alignFunctionTables")||(i.alignFunctionTables=()=>Ne("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFunctions")||(i.registerFunctions=()=>Ne("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addFunction")||(i.addFunction=()=>Ne("'addFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"removeFunction")||(i.removeFunction=()=>Ne("'removeFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=()=>Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"prettyPrint")||(i.prettyPrint=()=>Ne("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=()=>Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getCompilerSetting")||(i.getCompilerSetting=()=>Ne("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"print")||(i.print=()=>Ne("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"printErr")||(i.printErr=()=>Ne("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getTempRet0")||(i.getTempRet0=()=>Ne("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setTempRet0")||(i.setTempRet0=()=>Ne("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callMain")||(i.callMain=()=>Ne("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"abort")||(i.abort=()=>Ne("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"keepRuntimeAlive")||(i.keepRuntimeAlive=()=>Ne("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"zeroMemory")||(i.zeroMemory=()=>Ne("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToNewUTF8")||(i.stringToNewUTF8=()=>Ne("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscripten_realloc_buffer")||(i.emscripten_realloc_buffer=()=>Ne("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ENV")||(i.ENV=()=>Ne("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"withStackSave")||(i.withStackSave=()=>Ne("'withStackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ERRNO_CODES")||(i.ERRNO_CODES=()=>Ne("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ERRNO_MESSAGES")||(i.ERRNO_MESSAGES=()=>Ne("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setErrNo")||(i.setErrNo=()=>Ne("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetPton4")||(i.inetPton4=()=>Ne("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetNtop4")||(i.inetNtop4=()=>Ne("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetPton6")||(i.inetPton6=()=>Ne("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetNtop6")||(i.inetNtop6=()=>Ne("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readSockaddr")||(i.readSockaddr=()=>Ne("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeSockaddr")||(i.writeSockaddr=()=>Ne("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"DNS")||(i.DNS=()=>Ne("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getHostByName")||(i.getHostByName=()=>Ne("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Protocols")||(i.Protocols=()=>Ne("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Sockets")||(i.Sockets=()=>Ne("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getRandomDevice")||(i.getRandomDevice=()=>Ne("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"traverseStack")||(i.traverseStack=()=>Ne("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertFrameToPC")||(i.convertFrameToPC=()=>Ne("'convertFrameToPC' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UNWIND_CACHE")||(i.UNWIND_CACHE=()=>Ne("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"saveInUnwindCache")||(i.saveInUnwindCache=()=>Ne("'saveInUnwindCache' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertPCtoSourceLocation")||(i.convertPCtoSourceLocation=()=>Ne("'convertPCtoSourceLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readAsmConstArgsArray")||(i.readAsmConstArgsArray=()=>Ne("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readAsmConstArgs")||(i.readAsmConstArgs=()=>Ne("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"mainThreadEM_ASM")||(i.mainThreadEM_ASM=()=>Ne("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jstoi_q")||(i.jstoi_q=()=>Ne("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jstoi_s")||(i.jstoi_s=()=>Ne("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getExecutableName")||(i.getExecutableName=()=>Ne("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"listenOnce")||(i.listenOnce=()=>Ne("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"autoResumeAudioContext")||(i.autoResumeAudioContext=()=>Ne("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCallLegacy")||(i.dynCallLegacy=()=>Ne("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getDynCaller")||(i.getDynCaller=()=>Ne("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=()=>Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callRuntimeCallbacks")||(i.callRuntimeCallbacks=()=>Ne("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"wasmTableMirror")||(i.wasmTableMirror=()=>Ne("'wasmTableMirror' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setWasmTableEntry")||(i.setWasmTableEntry=()=>Ne("'setWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getWasmTableEntry")||(i.getWasmTableEntry=()=>Ne("'getWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"handleException")||(i.handleException=()=>Ne("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runtimeKeepalivePush")||(i.runtimeKeepalivePush=()=>Ne("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runtimeKeepalivePop")||(i.runtimeKeepalivePop=()=>Ne("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callUserCallback")||(i.callUserCallback=()=>Ne("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"maybeExit")||(i.maybeExit=()=>Ne("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"safeSetTimeout")||(i.safeSetTimeout=()=>Ne("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"asmjsMangle")||(i.asmjsMangle=()=>Ne("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"asyncLoad")||(i.asyncLoad=()=>Ne("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"alignMemory")||(i.alignMemory=()=>Ne("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"mmapAlloc")||(i.mmapAlloc=()=>Ne("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"reallyNegative")||(i.reallyNegative=()=>Ne("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"unSign")||(i.unSign=()=>Ne("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"reSign")||(i.reSign=()=>Ne("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"formatString")||(i.formatString=()=>Ne("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PATH")||(i.PATH=()=>Ne("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PATH_FS")||(i.PATH_FS=()=>Ne("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SYSCALLS")||(i.SYSCALLS=()=>Ne("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getSocketFromFD")||(i.getSocketFromFD=()=>Ne("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getSocketAddress")||(i.getSocketAddress=()=>Ne("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"JSEvents")||(i.JSEvents=()=>Ne("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerKeyEventCallback")||(i.registerKeyEventCallback=()=>Ne("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.specialHTMLTargets=zl,Object.getOwnPropertyDescriptor(i,"maybeCStringToJsString")||(i.maybeCStringToJsString=()=>Ne("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"findEventTarget")||(i.findEventTarget=()=>Ne("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"findCanvasEventTarget")||(i.findCanvasEventTarget=()=>Ne("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getBoundingClientRect")||(i.getBoundingClientRect=()=>Ne("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillMouseEventData")||(i.fillMouseEventData=()=>Ne("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerMouseEventCallback")||(i.registerMouseEventCallback=()=>Ne("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerWheelEventCallback")||(i.registerWheelEventCallback=()=>Ne("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerUiEventCallback")||(i.registerUiEventCallback=()=>Ne("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFocusEventCallback")||(i.registerFocusEventCallback=()=>Ne("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillDeviceOrientationEventData")||(i.fillDeviceOrientationEventData=()=>Ne("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerDeviceOrientationEventCallback")||(i.registerDeviceOrientationEventCallback=()=>Ne("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillDeviceMotionEventData")||(i.fillDeviceMotionEventData=()=>Ne("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerDeviceMotionEventCallback")||(i.registerDeviceMotionEventCallback=()=>Ne("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"screenOrientation")||(i.screenOrientation=()=>Ne("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillOrientationChangeEventData")||(i.fillOrientationChangeEventData=()=>Ne("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerOrientationChangeEventCallback")||(i.registerOrientationChangeEventCallback=()=>Ne("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillFullscreenChangeEventData")||(i.fillFullscreenChangeEventData=()=>Ne("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFullscreenChangeEventCallback")||(i.registerFullscreenChangeEventCallback=()=>Ne("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerRestoreOldStyle")||(i.registerRestoreOldStyle=()=>Ne("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"hideEverythingExceptGivenElement")||(i.hideEverythingExceptGivenElement=()=>Ne("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"restoreHiddenElements")||(i.restoreHiddenElements=()=>Ne("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setLetterbox")||(i.setLetterbox=()=>Ne("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"currentFullscreenStrategy")||(i.currentFullscreenStrategy=()=>Ne("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"restoreOldWindowedStyle")||(i.restoreOldWindowedStyle=()=>Ne("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"softFullscreenResizeWebGLRenderTarget")||(i.softFullscreenResizeWebGLRenderTarget=()=>Ne("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"doRequestFullscreen")||(i.doRequestFullscreen=()=>Ne("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillPointerlockChangeEventData")||(i.fillPointerlockChangeEventData=()=>Ne("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerPointerlockChangeEventCallback")||(i.registerPointerlockChangeEventCallback=()=>Ne("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerPointerlockErrorEventCallback")||(i.registerPointerlockErrorEventCallback=()=>Ne("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"requestPointerLock")||(i.requestPointerLock=()=>Ne("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillVisibilityChangeEventData")||(i.fillVisibilityChangeEventData=()=>Ne("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerVisibilityChangeEventCallback")||(i.registerVisibilityChangeEventCallback=()=>Ne("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerTouchEventCallback")||(i.registerTouchEventCallback=()=>Ne("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillGamepadEventData")||(i.fillGamepadEventData=()=>Ne("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerGamepadEventCallback")||(i.registerGamepadEventCallback=()=>Ne("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerBeforeUnloadEventCallback")||(i.registerBeforeUnloadEventCallback=()=>Ne("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillBatteryEventData")||(i.fillBatteryEventData=()=>Ne("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"battery")||(i.battery=()=>Ne("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerBatteryEventCallback")||(i.registerBatteryEventCallback=()=>Ne("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setCanvasElementSize")||(i.setCanvasElementSize=()=>Ne("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getCanvasElementSize")||(i.getCanvasElementSize=()=>Ne("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"demangle")||(i.demangle=()=>Ne("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"demangleAll")||(i.demangleAll=()=>Ne("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jsStackTrace")||(i.jsStackTrace=()=>Ne("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=()=>Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getEnvStrings")||(i.getEnvStrings=()=>Ne("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"checkWasiClock")||(i.checkWasiClock=()=>Ne("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64")||(i.writeI53ToI64=()=>Ne("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Clamped")||(i.writeI53ToI64Clamped=()=>Ne("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Signaling")||(i.writeI53ToI64Signaling=()=>Ne("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Clamped")||(i.writeI53ToU64Clamped=()=>Ne("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Signaling")||(i.writeI53ToU64Signaling=()=>Ne("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readI53FromI64")||(i.readI53FromI64=()=>Ne("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readI53FromU64")||(i.readI53FromU64=()=>Ne("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertI32PairToI53")||(i.convertI32PairToI53=()=>Ne("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertU32PairToI53")||(i.convertU32PairToI53=()=>Ne("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setImmediateWrapped")||(i.setImmediateWrapped=()=>Ne("'setImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"clearImmediateWrapped")||(i.clearImmediateWrapped=()=>Ne("'clearImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"polyfillSetImmediate")||(i.polyfillSetImmediate=()=>Ne("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"uncaughtExceptionCount")||(i.uncaughtExceptionCount=()=>Ne("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exceptionLast")||(i.exceptionLast=()=>Ne("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exceptionCaught")||(i.exceptionCaught=()=>Ne("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ExceptionInfo")||(i.ExceptionInfo=()=>Ne("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"CatchInfo")||(i.CatchInfo=()=>Ne("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exception_addRef")||(i.exception_addRef=()=>Ne("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exception_decRef")||(i.exception_decRef=()=>Ne("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Browser")||(i.Browser=()=>Ne("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"funcWrappers")||(i.funcWrappers=()=>Ne("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=()=>Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setMainLoop")||(i.setMainLoop=()=>Ne("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"wget")||(i.wget=()=>Ne("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"FS")||(i.FS=()=>Ne("'FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"MEMFS")||(i.MEMFS=()=>Ne("'MEMFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"TTY")||(i.TTY=()=>Ne("'TTY' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PIPEFS")||(i.PIPEFS=()=>Ne("'PIPEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SOCKFS")||(i.SOCKFS=()=>Ne("'SOCKFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"_setNetworkCallback")||(i._setNetworkCallback=()=>Ne("'_setNetworkCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"tempFixedLengthArray")||(i.tempFixedLengthArray=()=>Ne("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"miniTempWebGLFloatBuffers")||(i.miniTempWebGLFloatBuffers=()=>Ne("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heapObjectForWebGLType")||(i.heapObjectForWebGLType=()=>Ne("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heapAccessShiftForWebGLHeap")||(i.heapAccessShiftForWebGLHeap=()=>Ne("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GL")||(i.GL=()=>Ne("'GL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGet")||(i.emscriptenWebGLGet=()=>Ne("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"computeUnpackAlignedImageSize")||(i.computeUnpackAlignedImageSize=()=>Ne("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetTexPixelData")||(i.emscriptenWebGLGetTexPixelData=()=>Ne("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetUniform")||(i.emscriptenWebGLGetUniform=()=>Ne("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglGetUniformLocation")||(i.webglGetUniformLocation=()=>Ne("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglPrepareUniformLocationsBeforeFirstUse")||(i.webglPrepareUniformLocationsBeforeFirstUse=()=>Ne("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglGetLeftBracePos")||(i.webglGetLeftBracePos=()=>Ne("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetVertexAttrib")||(i.emscriptenWebGLGetVertexAttrib=()=>Ne("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeGLArray")||(i.writeGLArray=()=>Ne("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"AL")||(i.AL=()=>Ne("'AL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_unicode")||(i.SDL_unicode=()=>Ne("'SDL_unicode' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_ttfContext")||(i.SDL_ttfContext=()=>Ne("'SDL_ttfContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_audio")||(i.SDL_audio=()=>Ne("'SDL_audio' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL")||(i.SDL=()=>Ne("'SDL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_gfx")||(i.SDL_gfx=()=>Ne("'SDL_gfx' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLUT")||(i.GLUT=()=>Ne("'GLUT' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"EGL")||(i.EGL=()=>Ne("'EGL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLFW_Window")||(i.GLFW_Window=()=>Ne("'GLFW_Window' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLFW")||(i.GLFW=()=>Ne("'GLFW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLEW")||(i.GLEW=()=>Ne("'GLEW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"IDBStore")||(i.IDBStore=()=>Ne("'IDBStore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runAndAbortIfError")||(i.runAndAbortIfError=()=>Ne("'runAndAbortIfError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetIndexed")||(i.emscriptenWebGLGetIndexed=()=>Ne("'emscriptenWebGLGetIndexed' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"InternalError")||(i.InternalError=()=>Ne("'InternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"BindingError")||(i.BindingError=()=>Ne("'BindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UnboundTypeError")||(i.UnboundTypeError=()=>Ne("'UnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PureVirtualError")||(i.PureVirtualError=()=>Ne("'PureVirtualError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_embind")||(i.init_embind=()=>Ne("'init_embind' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwInternalError")||(i.throwInternalError=()=>Ne("'throwInternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwBindingError")||(i.throwBindingError=()=>Ne("'throwBindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwUnboundTypeError")||(i.throwUnboundTypeError=()=>Ne("'throwUnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ensureOverloadTable")||(i.ensureOverloadTable=()=>Ne("'ensureOverloadTable' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exposePublicSymbol")||(i.exposePublicSymbol=()=>Ne("'exposePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"replacePublicSymbol")||(i.replacePublicSymbol=()=>Ne("'replacePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"extendError")||(i.extendError=()=>Ne("'extendError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"createNamedFunction")||(i.createNamedFunction=()=>Ne("'createNamedFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredInstances")||(i.registeredInstances=()=>Ne("'registeredInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getBasestPointer")||(i.getBasestPointer=()=>Ne("'getBasestPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerInheritedInstance")||(i.registerInheritedInstance=()=>Ne("'registerInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"unregisterInheritedInstance")||(i.unregisterInheritedInstance=()=>Ne("'unregisterInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getInheritedInstance")||(i.getInheritedInstance=()=>Ne("'getInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getInheritedInstanceCount")||(i.getInheritedInstanceCount=()=>Ne("'getInheritedInstanceCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getLiveInheritedInstances")||(i.getLiveInheritedInstances=()=>Ne("'getLiveInheritedInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredTypes")||(i.registeredTypes=()=>Ne("'registeredTypes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"awaitingDependencies")||(i.awaitingDependencies=()=>Ne("'awaitingDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"typeDependencies")||(i.typeDependencies=()=>Ne("'typeDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredPointers")||(i.registeredPointers=()=>Ne("'registeredPointers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerType")||(i.registerType=()=>Ne("'registerType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"whenDependentTypesAreResolved")||(i.whenDependentTypesAreResolved=()=>Ne("'whenDependentTypesAreResolved' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind_charCodes")||(i.embind_charCodes=()=>Ne("'embind_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind_init_charCodes")||(i.embind_init_charCodes=()=>Ne("'embind_init_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readLatin1String")||(i.readLatin1String=()=>Ne("'readLatin1String' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getTypeName")||(i.getTypeName=()=>Ne("'getTypeName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heap32VectorToArray")||(i.heap32VectorToArray=()=>Ne("'heap32VectorToArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"requireRegisteredType")||(i.requireRegisteredType=()=>Ne("'requireRegisteredType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getShiftFromSize")||(i.getShiftFromSize=()=>Ne("'getShiftFromSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"integerReadValueFromPointer")||(i.integerReadValueFromPointer=()=>Ne("'integerReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"enumReadValueFromPointer")||(i.enumReadValueFromPointer=()=>Ne("'enumReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"floatReadValueFromPointer")||(i.floatReadValueFromPointer=()=>Ne("'floatReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"simpleReadValueFromPointer")||(i.simpleReadValueFromPointer=()=>Ne("'simpleReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runDestructors")||(i.runDestructors=()=>Ne("'runDestructors' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"new_")||(i.new_=()=>Ne("'new_' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"craftInvokerFunction")||(i.craftInvokerFunction=()=>Ne("'craftInvokerFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind__requireFunction")||(i.embind__requireFunction=()=>Ne("'embind__requireFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"tupleRegistrations")||(i.tupleRegistrations=()=>Ne("'tupleRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"structRegistrations")||(i.structRegistrations=()=>Ne("'structRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"genericPointerToWireType")||(i.genericPointerToWireType=()=>Ne("'genericPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"constNoSmartPtrRawPointerToWireType")||(i.constNoSmartPtrRawPointerToWireType=()=>Ne("'constNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"nonConstNoSmartPtrRawPointerToWireType")||(i.nonConstNoSmartPtrRawPointerToWireType=()=>Ne("'nonConstNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_RegisteredPointer")||(i.init_RegisteredPointer=()=>Ne("'init_RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer")||(i.RegisteredPointer=()=>Ne("'RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_getPointee")||(i.RegisteredPointer_getPointee=()=>Ne("'RegisteredPointer_getPointee' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_destructor")||(i.RegisteredPointer_destructor=()=>Ne("'RegisteredPointer_destructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_deleteObject")||(i.RegisteredPointer_deleteObject=()=>Ne("'RegisteredPointer_deleteObject' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_fromWireType")||(i.RegisteredPointer_fromWireType=()=>Ne("'RegisteredPointer_fromWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runDestructor")||(i.runDestructor=()=>Ne("'runDestructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"releaseClassHandle")||(i.releaseClassHandle=()=>Ne("'releaseClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"finalizationRegistry")||(i.finalizationRegistry=()=>Ne("'finalizationRegistry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"detachFinalizer_deps")||(i.detachFinalizer_deps=()=>Ne("'detachFinalizer_deps' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"detachFinalizer")||(i.detachFinalizer=()=>Ne("'detachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"attachFinalizer")||(i.attachFinalizer=()=>Ne("'attachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"makeClassHandle")||(i.makeClassHandle=()=>Ne("'makeClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_ClassHandle")||(i.init_ClassHandle=()=>Ne("'init_ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle")||(i.ClassHandle=()=>Ne("'ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_isAliasOf")||(i.ClassHandle_isAliasOf=()=>Ne("'ClassHandle_isAliasOf' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwInstanceAlreadyDeleted")||(i.throwInstanceAlreadyDeleted=()=>Ne("'throwInstanceAlreadyDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_clone")||(i.ClassHandle_clone=()=>Ne("'ClassHandle_clone' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_delete")||(i.ClassHandle_delete=()=>Ne("'ClassHandle_delete' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"deletionQueue")||(i.deletionQueue=()=>Ne("'deletionQueue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_isDeleted")||(i.ClassHandle_isDeleted=()=>Ne("'ClassHandle_isDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_deleteLater")||(i.ClassHandle_deleteLater=()=>Ne("'ClassHandle_deleteLater' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"flushPendingDeletes")||(i.flushPendingDeletes=()=>Ne("'flushPendingDeletes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"delayFunction")||(i.delayFunction=()=>Ne("'delayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setDelayFunction")||(i.setDelayFunction=()=>Ne("'setDelayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredClass")||(i.RegisteredClass=()=>Ne("'RegisteredClass' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"shallowCopyInternalPointer")||(i.shallowCopyInternalPointer=()=>Ne("'shallowCopyInternalPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"downcastPointer")||(i.downcastPointer=()=>Ne("'downcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"upcastPointer")||(i.upcastPointer=()=>Ne("'upcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"validateThis")||(i.validateThis=()=>Ne("'validateThis' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"char_0")||(i.char_0=()=>Ne("'char_0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"char_9")||(i.char_9=()=>Ne("'char_9' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"makeLegalFunctionName")||(i.makeLegalFunctionName=()=>Ne("'makeLegalFunctionName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_handle_array")||(i.emval_handle_array=()=>Ne("'emval_handle_array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_free_list")||(i.emval_free_list=()=>Ne("'emval_free_list' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_symbols")||(i.emval_symbols=()=>Ne("'emval_symbols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_emval")||(i.init_emval=()=>Ne("'init_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"count_emval_handles")||(i.count_emval_handles=()=>Ne("'count_emval_handles' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"get_first_emval")||(i.get_first_emval=()=>Ne("'get_first_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getStringOrSymbol")||(i.getStringOrSymbol=()=>Ne("'getStringOrSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Emval")||(i.Emval=()=>Ne("'Emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_newers")||(i.emval_newers=()=>Ne("'emval_newers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"craftEmvalAllocator")||(i.craftEmvalAllocator=()=>Ne("'craftEmvalAllocator' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_get_global")||(i.emval_get_global=()=>Ne("'emval_get_global' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_methodCallers")||(i.emval_methodCallers=()=>Ne("'emval_methodCallers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_registeredMethods")||(i.emval_registeredMethods=()=>Ne("'emval_registeredMethods' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"warnOnce")||(i.warnOnce=()=>Ne("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackSave")||(i.stackSave=()=>Ne("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackRestore")||(i.stackRestore=()=>Ne("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackAlloc")||(i.stackAlloc=()=>Ne("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"AsciiToString")||(i.AsciiToString=()=>Ne("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToAscii")||(i.stringToAscii=()=>Ne("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF16ToString")||(i.UTF16ToString=()=>Ne("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF16")||(i.stringToUTF16=()=>Ne("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF16")||(i.lengthBytesUTF16=()=>Ne("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF32ToString")||(i.UTF32ToString=()=>Ne("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF32")||(i.stringToUTF32=()=>Ne("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF32")||(i.lengthBytesUTF32=()=>Ne("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"allocateUTF8")||(i.allocateUTF8=()=>Ne("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"allocateUTF8OnStack")||(i.allocateUTF8OnStack=()=>Ne("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.writeStackCookie=fe,i.checkStackCookie=me,Object.getOwnPropertyDescriptor(i,"ALLOC_NORMAL")||Object.defineProperty(i,"ALLOC_NORMAL",{configurable:!0,get:function(){Ne("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_STACK")||Object.defineProperty(i,"ALLOC_STACK",{configurable:!0,get:function(){Ne("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Ce=function e(){Fd||up(),Fd||(Ce=e)},i.run=up,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();var fp=!0;return i.noInitialRun&&(fp=!1),up(),e.ready});var l=r(52934),d=r(7984);const p=u,f=(e,t)=>null!=t?[t,e.split("/").pop()].join(""):new URL(e,window.location.origin);function m(e,t){const r=(0,o.QG)(t),{core:n}=r,u=(0,c.Z)(r);return new Promise(((t,o)=>{let c,m;return p({locateFile:(e,t)=>{if(e.endsWith(".wasm")){const e=f(l,n.baseURL).toString();return c=e,e}if(e.endsWith(".data")){const e=f(d,n.baseURL).toString();return m=e,e}return t+e},print:e=>{e&&"undefined"!==e&&u(e,i.i.Info)},printErr:e=>{e&&"undefined"!==e&&u(e,i.i.Error)},onRuntimeInitialized:()=>{u("Engine has been initialized.",i.i.Info)},logReadFiles:!1,printWithColors:!0}).then((n=>{let i="";"string"==typeof e?i=e:(n.specialHTMLTargets["!canvas"]=e,i="!canvas");const c=n.createEngine(i);if(c.isValid()){const e=c.value();!function(e,t){var r;const n=new s.Z(e);function o(e,t){return n.execute("ubq/settings/set",[e,t])}o("ubq://license",t.license||""),o("ubq://role",(0,a.QL)(t.role)),o("ubq://basePath",t.baseURL),o("ubq://touchScrollingEnabled",!(null===(r=t.featureFlags)||void 0===r?void 0:r.preventScrolling)),Object.entries(t.presets.images||{}).forEach((([e,t])=>{n.execute("ubq/assets/registerImage",[e,t.thumbnailURL||t.imageURL,t.imageURL,t.width,t.height])})),Object.entries(t.presets.typefaces||{}).forEach((([e,t])=>{(t.fonts||[]).forEach((r=>{const o=`${e}_${r.weight}_${r.style}`;n.execute("ubq/assets/registerFont",[o,r.fontURL,t.family,r.weight,r.style])}))})),function(){const{imageMattingOnly:e,singlePageMode:r}=t.featureFlags||{};"VideoFrame"in window||o("ubq://features/videosEnabled",!1),o("ubq://features/singlePageModeEnabled",r),o("cesdk://trackActivePage",!r),o("ubq://features/effectsEnabled",!0)}(),o("ubq://page/title/fontFileUri",t.page.title.fontFileUri),o("ubq://page/title/show",t.page.title.show),o("ubq://page/dimOutOfPageAreas",t.page.dimOutOfPageAreas),function(){if(void 0!==t.scene.maskSpotColor){const{rgbApproximation:e}=t.scene.maskSpotColor,r=(0,a.JY)(Object.assign(Object.assign({},e),{a:1}));n.execute("cesdk/setSpecialSpotColor",r)}}(),function(){var e;const r=null!==(e=t.extensions)&&void 0!==e?e:[];r.entries.forEach((e=>{n.execute("ubq/extension/register",`${r.baseURL+e}`)}))}(),function(){var r;const n=null!==(r=t.variables)&&void 0!==r?r:{};Object.entries(n).forEach((([t,r])=>{(0,s.L)(e.setVariableString(t,r.value.toString()))}))}()}(e,r),t(e)}else{const e=c.error();o(new Error(e.publicMessage())),e.delete()}c.delete()})).catch((e=>{e instanceof Error&&(e.wasmPath=c,e.dataPath=m),o(e)}))}))}},58645:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o}),function(e){e.Pixel="px",e.Millimeter="mm",e.Inch="in"}(n||(n={}));const o=n},1440:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e.Info="Info",e.Warning="Warning",e.Error="Error"}(n||(n={}))},81867:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o}),function(e){e.Png="image/png",e.Jpeg="image/jpeg",e.Tga="image/x-tga",e.Binary="application/octet-stream",e.Pdf="application/pdf",e.Zip="application/zip"}(n||(n={}));const o=n;n.Png,n.Jpeg,n.Tga,n.Binary,n.Pdf,n.Zip},68876:(e,t,r)=>{"use strict";var n,o,i,a,s,c;r.d(t,{_h:()=>s,$R:()=>c,uY:()=>u,Gt:()=>l,QL:()=>h,JY:()=>A,tc:()=>w,BN:()=>T,u8:()=>O,fn:()=>F,Kc:()=>M}),r(58645),r(81867),function(e){e.Uninitialized="Uninitialized",e.EngineLoading="EngineLoading",e.AssetsLoading="AssetsLoading",e.EngineReady="EngineReady",e.SceneReady="SceneReady",e.EngineUnsupported="EngineUnsupported",e.EngineLoadingError="EngineLoadingError"}(n||(n={})),function(e){e.Download="download",e.Load="load",e.Decode="decode"}(o||(o={})),function(e){e[e.Pending=0]="Pending",e[e.Ready=1]="Ready",e[e.Error=2]="Error"}(i||(i={})),function(e){e.Added="DesignBlockAddedEvent",e.Updated="DesignBlockUpdatedEvent",e.Removed="DesignBlockRemovedEvent"}(a||(a={})),function(e){e.Scene="//ly.img.ubq/scene",e.Camera="//ly.img.ubq/camera",e.Page="//ly.img.ubq/page",e.Image="//ly.img.ubq/image",e.Video="//ly.img.ubq/video",e.Text="//ly.img.ubq/text",e.Sticker="//ly.img.ubq/sticker",e.VectorPath="//ly.img.ubq/vector_path",e.RectShape="//ly.img.ubq/shapes/rect",e.LineShape="//ly.img.ubq/shapes/line",e.StarShape="//ly.img.ubq/shapes/star",e.PolygonShape="//ly.img.ubq/shapes/polygon",e.EllipseShape="//ly.img.ubq/shapes/ellipse",e.Group="//ly.img.ubq/group"}(s||(s={})),function(e){e.Scene="ubq/designblocks/SceneProps",e.Camera="ubq/designblocks/Camera",e.Page="ubq/designblocks/Page",e.Image="ubq/designblocks/Image",e.Video="ubq/designblocks/Video",e.Sticker="ubq/designblocks/Sticker",e.Text="ubq/designblocks/CompositedText",e.Crop="ubq/types/Crop",e.Scale="ubq/scene/Scale",e.Opacity="ubq/types/Opacity",e.FillColor="ubq/types/FillColor",e.BackgroundColor="ubq/types/BackgroundColor",e.Stroke="ubq/types/Stroke",e.Group="ubq/designblocks/Group",e.VectorPath="ubq/designblocks/VectorPath",e.PendingState="ubq/designblocks/PendingState",e.ErrorState="ubq/designblocks/ErrorState"}(c||(c={}));const u="ubq/designblocks/CommonDesignBlockProps";var l,d,p,f,m,g;function h(e){switch(e){case"Creator":return g.Creator;case"Adopter":return g.Adopter;case"Viewer":return g.Viewer;case"Presenter":return g.Presenter;default:return}}!function(e){e.Transform="ubq/editMode/transform",e.Crop="ubq/editMode/crop",e.Text="ubq/editMode/text"}(l||(l={})),function(e){e[e.Arrow=0]="Arrow",e[e.Move=1]="Move",e[e.MoveNotPermitted=2]="MoveNotPermitted",e[e.Resize=3]="Resize",e[e.Rotate=4]="Rotate",e[e.Text=5]="Text"}(d||(d={})),function(e){e.None="None",e.Normal="Normal",e.Darken="Darken",e.Multiply="Multiply",e.ColorBurn="ColorBurn",e.LinearBurn="LinearBurn",e.DarkenColor="DarkenColor",e.Lighten="Lighten",e.Screen="Screen",e.ColorDodge="ColorDodge",e.Add="Add",e.LightenColor="LightenColor",e.Overlay="Overlay",e.SoftLight="SoftLight",e.HardLight="HardLight",e.VividLight="VividLight",e.LinearLight="LinearLight",e.PinLight="PinLight",e.HardMix="HardMix",e.Difference="Difference",e.Exclusion="Exclusion",e.Subtract="Subtract",e.Divide="Divide"}(p||(p={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center"}(f||(f={})),function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.Center=2]="Center"}(m||(m={})),function(e){e[e.Creator=0]="Creator",e[e.Adopter=1]="Adopter",e[e.Viewer=2]="Viewer",e[e.Presenter=3]="Presenter"}(g||(g={}));const E={c:.75,m:.68,y:.67,k:.9};var _,y,v,b,w,T,O,P,D,x,S,R,M;function A(e){return{colorSpace:_.sRGB,components:{x:e.r,y:e.g,z:e.b,w:e.a},spotColor:{name:"",rgbApproximation:e,cmykApproximation:E}}}function F(e){switch(e){case 0:return w.Left;case 1:return w.Middle;case 2:return w.Right;default:return w.Unknown}}!function(e){e[e.sRGB=0]="sRGB",e[e.CMYK=1]="CMYK",e[e.SpotColor=2]="SpotColor"}(_||(_={})),function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(y||(y={})),function(e){e[e.Pixel=0]="Pixel",e[e.Millimeter=1]="Millimeter",e[e.Inch=2]="Inch"}(v||(v={})),function(e){e[e.Began=0]="Began",e[e.Changed=1]="Changed",e[e.Ended=2]="Ended"}(b||(b={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle",e[e.Unknown=255]="Unknown"}(w||(w={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(T||(T={})),function(e){e[e.Key0=0]="Key0",e[e.Key1=1]="Key1",e[e.Key2=2]="Key2",e[e.Key3=3]="Key3",e[e.Key4=4]="Key4",e[e.Key5=5]="Key5",e[e.Key6=6]="Key6",e[e.Key7=7]="Key7",e[e.Key8=8]="Key8",e[e.Key9=9]="Key9",e[e.A=10]="A",e[e.B=11]="B",e[e.C=12]="C",e[e.D=13]="D",e[e.E=14]="E",e[e.F=15]="F",e[e.G=16]="G",e[e.H=17]="H",e[e.I=18]="I",e[e.J=19]="J",e[e.K=20]="K",e[e.L=21]="L",e[e.M=22]="M",e[e.N=23]="N",e[e.O=24]="O",e[e.P=25]="P",e[e.Q=26]="Q",e[e.R=27]="R",e[e.S=28]="S",e[e.T=29]="T",e[e.U=30]="U",e[e.V=31]="V",e[e.W=32]="W",e[e.X=33]="X",e[e.Y=34]="Y",e[e.Z=35]="Z",e[e.ArrowLeft=36]="ArrowLeft",e[e.ArrowRight=37]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=39]="ArrowDown",e[e.Backspace=40]="Backspace",e[e.Enter=41]="Enter",e[e.Space=42]="Space",e[e.Escape=43]="Escape",e[e.Delete=44]="Delete",e[e.Control=45]="Control",e[e.Option=46]="Option",e[e.Shift=47]="Shift",e[e.Unknown=255]="Unknown"}(O||(O={})),function(e){e.ImageMatting="imageMatting",e.ImageMattingBackground="imageMattingBackground",e.ImageMattingBackgroundForInpainting="imageMattingBackgroundForInpainting",e.ImageMattingAlphaMatte="imageMattingAlphaMatte",e.ImageMattingInvertedAlphaMatte="imageMattingInvertedAlphaMatte",e.Inpainting="inpainting",e.InpaintingHighRes="inpaintingHighRes",e.SmartCrop="smartCrop",e.SuperResolution="superResolution"}(P||(P={})),function(e){e[e.Thin=100]="Thin",e[e.ExtraLight=200]="ExtraLight",e[e.Light=300]="Light",e[e.Normal=400]="Normal",e[e.Medium=500]="Medium",e[e.SemiBold=600]="SemiBold",e[e.Bold=700]="Bold",e[e.ExtraBold=800]="ExtraBold",e[e.Heavy=900]="Heavy"}(D||(D={})),function(e){e[e.Normal=0]="Normal",e[e.Italic=1]="Italic"}(x||(x={})),function(e){e.Bold="bold",e.Italic="italic"}(S||(S={})),function(e){e[e.Undefined=0]="Undefined",e[e.DesignUnit=1]="DesignUnit",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto"}(R||(R={})),function(e){e[e.Free=0]="Free",e[e.VerticalStack=1]="VerticalStack",e[e.HorizontalStack=2]="HorizontalStack"}(M||(M={}))},72472:(e,t,r)=>{"use strict";var n;r(68876),function(e){e.Unknown="",e.Boolean="bool",e.Boolean2="ubq/math/bool2",e.Int="int",e.UInt8="uint8_t",e.Int32="int32_t",e.UInt32="uint32_t",e.Int2="ubq/math/ivec2",e.Size2="ubq/types/Size2",e.Color="ubq/types/Color",e.Double="double",e.Float="float",e.Float2="ubq/math/vec2",e.Float3="ubq/math/vec3",e.Float4="ubq/math/vec4",e.String="string",e.HorizontalTextAlignment="ubq/types/HorizontalTextAlignment",e.VerticalTextAlignment="ubq/types/VerticalTextAlignment",e.Margin2D="ubq/types/OuterMargin2D"}(n||(n={}))},14545:(e,t,r)=>{"use strict";r(68876),r(72472)},48641:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,L:()=>i}),r(68876);var n=r(45111);r(72472),r(14545);class o{constructor(e){Object.defineProperty(this,"ubq",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.ubq=e}useInternalAPI(e){const t=this.ubq.getInternalAPI();try{return e(t)}finally{t.delete()}}async createElement(e,t,r){const o=await this.execute("ubq/designblocks/create",e);this.execute("ubq/designblocks/addToParent",[o,t]);const a=i(this.ubq.getLastFrameWidth(t)),s=i(this.ubq.getLastFrameHeight(t)),{position:c,size:u}=(0,n.A5)({x:a,y:s},{x:r.width,y:r.height},8/13);this.execute("ubq/layout/setAbsoluteSize",{id:o,size:{width:u.x,height:u.y}}),u.x||this.execute("ubq/layout/setAutoWidth",{id:o}),u.y||this.execute("ubq/layout/setAutoHeight",{id:o});const l=(0,n.Vg)({x:.08*a,y:.08*s});return await this.execute("ubq/layout/setAbsolutePosition",{id:o,position:{left:c.x+l.x,top:c.y+l.y}}),o}setValue(e,t,r,n){return this.useInternalAPI((o=>i(o.setValue(e,t,r,n))))}getValue(e,t,r){return this.useInternalAPI((n=>i(n.getValue(e,t,r))))}async getEditorState(){return this.execute("ubq/editor/getEditorState")}async setEditorState(e){return this.execute("ubq/editor/setEditorState",e)}async execute(e,t){return new Promise((r=>{this.useInternalAPI((n=>n.ubqExecute(e,t,(e=>{const t=i(e);r(t)})))).delete()}))}}function i(e){if(e.isValid()){const t=e.value();return e.delete(),t}{const t=e.error(),r=t.publicMessage();throw t.delete(),e.delete(),new Error(r)}}},15684:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),r(68876);const n=(e,t=!0)=>{const r=[];for(let t=0;t<e.size();t+=1)r.push(e.get(t));return t&&e.delete(),r}},48473:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(68876);function o(e){const t={key:n.u8.Unknown,characters:e.key,shiftIsHeld:e.shiftKey,commandIsHeld:e.metaKey||e.ctrlKey,optionIsHeld:e.altKey,timestamp:Date.now()};switch(e.key.toUpperCase()){case"0":t.key=n.u8.Key0;break;case"1":t.key=n.u8.Key1;break;case"2":t.key=n.u8.Key2;break;case"3":t.key=n.u8.Key3;break;case"4":t.key=n.u8.Key4;break;case"5":t.key=n.u8.Key5;break;case"6":t.key=n.u8.Key6;break;case"7":t.key=n.u8.Key7;break;case"8":t.key=n.u8.Key8;break;case"9":t.key=n.u8.Key9;break;case"A":t.key=n.u8.A;break;case"B":t.key=n.u8.B;break;case"C":t.key=n.u8.C;break;case"D":t.key=n.u8.D;break;case"E":t.key=n.u8.E;break;case"F":t.key=n.u8.F;break;case"G":t.key=n.u8.G;break;case"H":t.key=n.u8.H;break;case"I":t.key=n.u8.I;break;case"J":t.key=n.u8.J;break;case"K":t.key=n.u8.K;break;case"L":t.key=n.u8.L;break;case"M":t.key=n.u8.M;break;case"N":t.key=n.u8.N;break;case"O":t.key=n.u8.O;break;case"P":t.key=n.u8.P;break;case"Q":t.key=n.u8.Q;break;case"R":t.key=n.u8.R;break;case"S":t.key=n.u8.S;break;case"T":t.key=n.u8.T;break;case"U":t.key=n.u8.U;break;case"V":t.key=n.u8.V;break;case"W":t.key=n.u8.W;break;case"X":t.key=n.u8.X;break;case"Y":t.key=n.u8.Y;break;case"Z":t.key=n.u8.Z;break;case" ":t.key=n.u8.Space;break;case"ESCAPE":t.key=n.u8.Escape,t.characters="";break;case"BACKSPACE":t.key=n.u8.Backspace,t.characters="";break;case"DELETE":t.key=n.u8.Delete,t.characters="";break;case"ENTER":t.key=n.u8.Enter,t.characters="\n";break;case"CONTROL":t.key=n.u8.Control,t.characters="";break;case"ALT":t.key=n.u8.Option,t.characters="";break;case"SHIFT":t.key=n.u8.Shift,t.characters="";break;case"ARROWLEFT":t.key=n.u8.ArrowLeft,t.characters="";break;case"ARROWRIGHT":t.key=n.u8.ArrowRight,t.characters="";break;case"ARROWUP":t.key=n.u8.ArrowUp,t.characters="";break;case"ARROWDOWN":t.key=n.u8.ArrowDown,t.characters="";break;case"DEAD":t.key=n.u8.Unknown,t.characters=""}return t}},45111:(e,t,r)=>{"use strict";r.d(t,{A5:()=>o,Vg:()=>i,dA:()=>a});const n=(e,t)=>({x:e.x*t,y:e.y*t});function o(e,t,r=8/13){const o=((e,t)=>{const r=e.x/e.y,o=t.x/t.y;return n(t,r>o?e.y/t.y:e.x/t.x)})(e,t),i=n(o,r);return{position:{x:.5*(e.x-i.x),y:.5*(e.y-i.y)},size:i}}function i(e={x:50,y:50}){return{x:Math.random()*e.x,y:Math.random()*e.y}}function a(e,t,r=Number.EPSILON){return Math.abs(e-t)<r}},7984:(e,t,r)=>{"use strict";e.exports=r.p+"assets/core/cesdk.data"},52934:(e,t,r)=>{"use strict";e.exports=r.p+"assets/core/cesdk.wasm"},17019:(e,t,r)=>{"use strict";r.d(t,{IX:()=>p,O7:()=>f,Ou:()=>d,_L:()=>m,VV:()=>E,PV:()=>_,Rx:()=>g,Z_:()=>h,Gu:()=>l});class n extends TypeError{constructor(e,t){let r;const{message:n,...o}=e,{path:i}=e;super(0===i.length?n:"At path: "+i.join(".")+" -- "+n),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>{var n;return null!=(n=r)?n:r=[e,...t()]}}}function o(e){return"object"==typeof e&&null!=e}function i(e){return"string"==typeof e?JSON.stringify(e):""+e}function a(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:a}=t,{type:s}=r,{refinement:c,message:u="Expected a value of type `"+s+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+i(n)+"`"}=e;return{value:n,type:s,refinement:c,key:o[o.length-1],path:o,branch:a,...e,message:u}}function*s(e,t,r,n){var i;o(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=a(o,t,r,n);e&&(yield e)}}function*c(e,t,r={}){const{path:n=[],branch:i=[e],coerce:a=!1,mask:s=!1}=r,u={path:n,branch:i};if(a&&(e=t.coercer(e,u),s&&"type"!==t.type&&o(t.schema)&&o(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let l=!0;for(const r of t.validator(e,u))l=!1,yield[r,void 0];for(let[r,d,p]of t.entries(e,u)){const t=c(d,p,{path:void 0===r?n:[...n,r],branch:void 0===r?i:[...i,d],coerce:a,mask:s});for(const n of t)n[0]?(l=!1,yield[n[0],void 0]):a&&(d=n[1],void 0===r?e=d:e instanceof Map?e.set(r,d):e instanceof Set?e.add(d):o(e)&&(e[r]=d))}if(l)for(const r of t.refiner(e,u))l=!1,yield[r,void 0];l&&(yield[void 0,e])}class u{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:t,schema:r,validator:n,refiner:o,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>s(n(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>s(o(e,t),t,this,e):()=>[]}assert(e){return function(e,t){const r=l(e,t);if(r[0])throw r[0]}(e,this)}create(e){return function(e,t){const r=l(e,t,{coerce:!0});if(r[0])throw r[0];return r[1]}(e,this)}is(e){return function(e,t){return!l(e,t)[0]}(e,this)}mask(e){return function(e,t){const r=l(e,t,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(e,this)}validate(e,t={}){return l(e,this,t)}}function l(e,t,r={}){const o=c(e,t,r),i=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(o);return i[0]?[new n(i[0],(function*(){for(const e of o)e[0]&&(yield e[0])})),void 0]:[void 0,i[1]]}function d(e,t){return new u({type:e,schema:null,validator:t})}function p(e){return new u({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+i(e)})}function f(){return d("boolean",(e=>"boolean"==typeof e))}function m(){return d("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||"Expected an integer, but received: "+i(e)))}function g(){return d("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+i(e)))}function h(){return d("string",(e=>"string"==typeof e||"Expected a string, but received: "+i(e)))}function E(e,t,r={}){const{exclusive:n}=r;return y(e,"min",(r=>n?r>t:r>=t||"Expected a "+e.type+" greater than "+(n?"":"or equal to ")+t+" but received `"+r+"`"))}function _(e){return y(e,"nonempty",(t=>function(e){return e instanceof Map||e instanceof Set?e.size:e.length}(t)>0||"Expected a nonempty "+e.type+" but received an empty one"))}function y(e,t,r){return new u({...e,*refiner(n,o){yield*e.refiner(n,o);const i=s(r(n,o),o,e,n);for(const e of i)yield{...e,refinement:t}}})}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(l=0;l<e.length;l++){for(var[r,o,i]=e[l],s=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="",(()=>{var e={763:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)var l=c(n)}for(t&&t(r);u<a.length;u++)i=a[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=globalThis.webpackChunk_cesdk_cesdk_js=globalThis.webpackChunk_cesdk_cesdk_js||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o={};return(()=>{"use strict";n.d(o,{default:()=>e});const e=n(86295).ZP})(),(o=n.O(o)).default})()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.CreativeEngine=t():e.CreativeEngine=t()}(globalThis,(function(){return(()=>{var e,t={77643:(e,t,r)=>{var n=r(35557),o=r(4349),i=r(90407),a=r(55134),s=r(49951);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},63872:(e,t,r)=>{var n=r(62470),o=r(77289),i=r(97614),a=r(3067),s=r(19346);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},65674:(e,t,r)=>{var n=r(70489)(r(4818),"Map");e.exports=n},22462:(e,t,r)=>{var n=r(76290),o=r(94951),i=r(40440),a=r(86180),s=r(67719);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},35135:(e,t,r)=>{var n=r(63872),o=r(71490),i=r(32594),a=r(35953),s=r(74667),c=r(84615);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},29652:(e,t,r)=>{var n=r(4818).Symbol;e.exports=n},64600:(e,t,r)=>{var n=r(4818).Uint8Array;e.exports=n},46562:e=>{e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},1998:(e,t,r)=>{var n=r(31453),o=r(25664),i=r(5860),a=r(79571),s=r(58347),c=r(1859),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&o(e),d=!r&&!l&&a(e),p=!r&&!l&&!d&&c(e),f=r||l||d||p,m=f?n(e.length,String):[],g=m.length;for(var h in e)!t&&!u.call(e,h)||f&&("length"==h||d&&("offset"==h||"parent"==h)||p&&("buffer"==h||"byteLength"==h||"byteOffset"==h)||s(h,g))||m.push(h);return m}},1612:(e,t,r)=>{var n=r(46912),o=r(3355);e.exports=function(e,t,r){(void 0!==r&&!o(e[t],r)||void 0===r&&!(t in e))&&n(e,t,r)}},66258:(e,t,r)=>{var n=r(46912),o=r(3355),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},8620:(e,t,r)=>{var n=r(3355);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},46912:(e,t,r)=>{var n=r(94698);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},8528:(e,t,r)=>{var n=r(54820),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},3153:(e,t,r)=>{var n=r(57572)();e.exports=n},52759:(e,t,r)=>{var n=r(29652),o=r(25135),i=r(73744),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},16651:(e,t,r)=>{var n=r(52759),o=r(71408);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},93216:(e,t,r)=>{var n=r(90830),o=r(70931),i=r(54820),a=r(21304),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?p:s).test(a(e))}},19920:(e,t,r)=>{var n=r(52759),o=r(27906),i=r(71408),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},63339:(e,t,r)=>{var n=r(54820),o=r(87839),i=r(73003),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},97604:(e,t,r)=>{var n=r(35135),o=r(1612),i=r(3153),a=r(70480),s=r(54820),c=r(82551),u=r(50830);e.exports=function e(t,r,l,d,p){t!==r&&i(r,(function(i,c){if(p||(p=new n),s(i))a(t,r,c,l,e,d,p);else{var f=d?d(u(t,c),i,c+"",t,r,p):void 0;void 0===f&&(f=i),o(t,c,f)}}),c)}},70480:(e,t,r)=>{var n=r(1612),o=r(58192),i=r(49947),a=r(46581),s=r(91172),c=r(25664),u=r(5860),l=r(25274),d=r(79571),p=r(90830),f=r(54820),m=r(51969),g=r(1859),h=r(50830),E=r(42963);e.exports=function(e,t,r,_,y,v,b){var w=h(e,r),T=h(t,r),O=b.get(T);if(O)n(e,r,O);else{var P=v?v(w,T,r+"",e,t,b):void 0,D=void 0===P;if(D){var x=u(T),S=!x&&d(T),R=!x&&!S&&g(T);P=T,x||S||R?u(w)?P=w:l(w)?P=a(w):S?(D=!1,P=o(T,!0)):R?(D=!1,P=i(T,!0)):P=[]:m(T)||c(T)?(P=w,c(w)?P=E(w):f(w)&&!p(w)||(P=s(T))):D=!1}D&&(b.set(T,P),y(P,T,_,v,b),b.delete(T)),n(e,r,P)}}},95757:(e,t,r)=>{var n=r(81191),o=r(62549),i=r(6613);e.exports=function(e,t){return i(o(e,t,n),e+"")}},44274:(e,t,r)=>{var n=r(47477),o=r(94698),i=r(81191),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},31453:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},28275:e=>{e.exports=function(e){return function(t){return e(t)}}},81254:(e,t,r)=>{var n=r(64600);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},58192:(e,t,r)=>{e=r.nmd(e);var n=r(4818),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},49947:(e,t,r)=>{var n=r(81254);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},46581:e=>{e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},87200:(e,t,r)=>{var n=r(66258),o=r(46912);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(r[u],e[u],u,r,e):void 0;void 0===l&&(l=e[u]),a?o(r,u,l):n(r,u,l)}return r}},38940:(e,t,r)=>{var n=r(4818)["__core-js_shared__"];e.exports=n},13102:(e,t,r)=>{var n=r(95757),o=r(77072);e.exports=function(e){return n((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++n<i;){var c=r[n];c&&e(t,c,n,a)}return t}))}},57572:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}},94698:(e,t,r)=>{var n=r(70489),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},3566:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},6330:(e,t,r)=>{var n=r(25513);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},70489:(e,t,r)=>{var n=r(93216),o=r(83626);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},74966:(e,t,r)=>{var n=r(96148)(Object.getPrototypeOf,Object);e.exports=n},25135:(e,t,r)=>{var n=r(29652),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},83626:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},35557:(e,t,r)=>{var n=r(32037);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},4349:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},90407:(e,t,r)=>{var n=r(32037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},55134:(e,t,r)=>{var n=r(32037),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},49951:(e,t,r)=>{var n=r(32037);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},91172:(e,t,r)=>{var n=r(8528),o=r(74966),i=r(87839);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},58347:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},77072:(e,t,r)=>{var n=r(3355),o=r(28809),i=r(58347),a=r(54820);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return!!("number"==s?o(r)&&i(t,r.length):"string"==s&&t in r)&&n(r[t],e)}},25513:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},70931:(e,t,r)=>{var n,o=r(38940),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},87839:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},62470:e=>{e.exports=function(){this.__data__=[],this.size=0}},77289:(e,t,r)=>{var n=r(8620),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},97614:(e,t,r)=>{var n=r(8620);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},3067:(e,t,r)=>{var n=r(8620);e.exports=function(e){return n(this.__data__,e)>-1}},19346:(e,t,r)=>{var n=r(8620);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},76290:(e,t,r)=>{var n=r(77643),o=r(63872),i=r(65674);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},94951:(e,t,r)=>{var n=r(6330);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},40440:(e,t,r)=>{var n=r(6330);e.exports=function(e){return n(this,e).get(e)}},86180:(e,t,r)=>{var n=r(6330);e.exports=function(e){return n(this,e).has(e)}},67719:(e,t,r)=>{var n=r(6330);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},32037:(e,t,r)=>{var n=r(70489)(Object,"create");e.exports=n},73003:e=>{e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},29693:(e,t,r)=>{e=r.nmd(e);var n=r(3566),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},73744:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},96148:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},62549:(e,t,r)=>{var n=r(46562),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(c),n(e,this,u)}}},4818:(e,t,r)=>{var n=r(3566),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},50830:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},6613:(e,t,r)=>{var n=r(44274),o=r(13546)(n);e.exports=o},13546:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},71490:(e,t,r)=>{var n=r(63872);e.exports=function(){this.__data__=new n,this.size=0}},32594:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},35953:e=>{e.exports=function(e){return this.__data__.get(e)}},74667:e=>{e.exports=function(e){return this.__data__.has(e)}},84615:(e,t,r)=>{var n=r(63872),o=r(65674),i=r(22462);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},21304:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47477:e=>{e.exports=function(e){return function(){return e}}},3355:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},81191:e=>{e.exports=function(e){return e}},25664:(e,t,r)=>{var n=r(16651),o=r(71408),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},5860:e=>{var t=Array.isArray;e.exports=t},28809:(e,t,r)=>{var n=r(90830),o=r(27906);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},25274:(e,t,r)=>{var n=r(28809),o=r(71408);e.exports=function(e){return o(e)&&n(e)}},79571:(e,t,r)=>{e=r.nmd(e);var n=r(4818),o=r(18585),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},90830:(e,t,r)=>{var n=r(52759),o=r(54820);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},27906:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},54820:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},71408:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},51969:(e,t,r)=>{var n=r(52759),o=r(74966),i=r(71408),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=u.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&c.call(r)==l}},1859:(e,t,r)=>{var n=r(19920),o=r(28275),i=r(29693),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},82551:(e,t,r)=>{var n=r(1998),o=r(63339),i=r(28809);e.exports=function(e){return i(e)?n(e,!0):o(e)}},57168:(e,t,r)=>{var n=r(97604),o=r(13102)((function(e,t,r){n(e,t,r)}));e.exports=o},18585:e=>{e.exports=function(){return!1}},42963:(e,t,r)=>{var n=r(87200),o=r(82551);e.exports=function(e){return n(e,o(e))}},81655:(e,t,r)=>{"use strict";r.d(t,{T:()=>i,t1:()=>a,uS:()=>s,Rg:()=>c,qb:()=>u,hD:()=>l,ZP:()=>y});var n,o,i,a,s,c,u,l,d=r(17019),p=r(8097),f=r(68876),m=r(81867),g=r(48641),h=r(15684),E=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},_=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};!function(e){e.Absolute="Absolute",e.Percent="Percent",e.Undefined="Auto"}(i||(i={})),function(e){e.Absolute="Absolute",e.Percent="Percent",e.Auto="Auto"}(a||(a={})),function(e){e.Bool="Bool",e.Int="Int",e.Float="Float",e.String="String",e.Color="Color",e.Enum="Enum",e.Struct="Struct"}(s||(s={})),function(e){e.Center="Center",e.Inner="Inner",e.Outer="Outer"}(c||(c={})),function(e){e.Dashed="Dashed",e.DashedRound="DashedRound",e.Dotted="Dotted",e.LongDashed="LongDashed",e.LongDashedRound="LongDashedRound",e.Solid="Solid"}(u||(u={})),function(e){e.Bevel="Bevel",e.Miter="Miter",e.Round="Round"}(l||(l={}));class y{constructor(e){n.set(this,void 0),o.set(this,void 0),E(this,n,e,"f"),E(this,o,new g.Z(e),"f")}async export(e,t=m.Z.Png){return(0,p.ZP)("handle",e,(0,d.Rx)()),(0,p.ZP)("mimeType",t,(0,p.zF)()),new Promise(((r,o)=>{_(this,n,"f").exportToBuffer(e,t,(e=>{"error"in e?o(e.error):r(new Blob([e],{type:t}))}),{jpegQuality:.9,pngCompressionLevel:5,useTargetSize:!1,targetWidth:0,targetHeight:0})}))}async loadFromString(e){return(0,p.ZP)("content",e,(0,d.Z_)()),new Promise((t=>{_(this,n,"f").loadBlocksFromString(e,(e=>{const r=(0,g.L)(e);t((0,h.Z)(r))}))}))}async saveToString(e){return(0,p.ZP)("blocks",e,(0,d.IX)((0,d.Rx)())),new Promise((t=>{_(this,n,"f").saveBlocksToString(e,(e=>{const r=(0,g.L)(e);t(r)}))}))}create(e){return(0,p.ZP)("type",e,(0,d.Z_)()),(0,g.L)(_(this,n,"f").create(e))}getType(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getType(e))}setSelected(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("selected",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setSelected(e,t))}isSelected(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isSelected(e))}findAllSelected(){return(0,h.Z)(_(this,n,"f").findAllSelected())}isGroupable(e){return(0,p.ZP)("ids",e,(0,d.PV)((0,d.IX)((0,d.Rx)()))),(0,g.L)(_(this,n,"f").isGroupable(e))}group(e){return(0,p.ZP)("ids",e,(0,d.PV)((0,d.IX)((0,d.Rx)()))),(0,g.L)(_(this,n,"f").group(e))}ungroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").ungroup(e))}enterGroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").enterGroup(e))}exitGroup(e){return(0,p.ZP)("id",e,(0,d.Rx)()),(0,g.L)(_(this,n,"f").exitGroup(e))}setName(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("name",t,(0,d.Z_)()),_(this,o,"f").setValue(e,f.uY,"name",t)}getName(e){return(0,p.ZP)("id",e,(0,d._L)()),_(this,o,"f").getValue(e,f.uY,"name")}findByName(e){(0,p.ZP)("name",e,(0,d.Z_)());const t=_(this,n,"f").findByName(e);return(0,h.Z)(t)}findByType(e){(0,p.ZP)("type",e,(0,d.Z_)());const t=_(this,n,"f").findByType(e),r=(0,g.L)(t);return(0,h.Z)(r)}findAll(){return(0,h.Z)(_(this,n,"f").findAll())}isVisible(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isVisible(e))}setVisible(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("visible",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setVisible(e,t))}isClipped(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isClipped(e))}setClipped(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("clipped",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setClipped(e,t))}getPositionX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionX(e))}getPositionXMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionXMode(e))}getPositionY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionY(e))}getPositionYMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getPositionYMode(e))}setPositionX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setPositionX(e,t))}setPositionXMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setPositionXMode(e,t))}setPositionY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setPositionY(e,t))}setPositionYMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setPositionYMode(e,t))}getRotation(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getRotation(e))}setRotation(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("radians",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setRotation(e,t))}getFlipHorizontal(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFlip(e)).horizontal}getFlipVertical(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFlip(e)).vertical}setFlipHorizontal(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("flip",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFlipHorizontal(e,t))}setFlipVertical(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("flip",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFlipVertical(e,t))}getWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getWidth(e))}getWidthMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getWidthMode(e))}getHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getHeight(e))}getHeightMode(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getHeightMode(e))}setWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setWidth(e,t))}setWidthMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setWidthMode(e,t))}setHeight(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("value",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setHeight(e,t))}setHeightMode(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setHeightMode(e,t))}getFrameWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getLastFrameWidth(e))}getFrameHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getLastFrameHeight(e))}duplicate(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").duplicate(e))}destroy(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").destroy(e))}isValid(e){return(0,p.ZP)("id",e,(0,d._L)()),_(this,n,"f").isValid(e)}getParent(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getParent(e))}getChildren(e){(0,p.ZP)("id",e,(0,d._L)());const t=(0,g.L)(_(this,n,"f").getChildren(e));return(0,h.Z)(t)}insertChild(e,t,r){return(0,p.ZP)("parent",e,(0,d.Rx)()),(0,p.ZP)("child",t,(0,d.Rx)()),(0,p.ZP)("index",r,(0,d.VV)((0,d.Rx)(),0)),(0,g.L)(_(this,n,"f").insertChild(e,t,r))}appendChild(e,t){return(0,p.ZP)("parent",e,(0,d.Rx)()),(0,p.ZP)("child",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").appendChild(e,t))}referencesAnyVariables(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").referencesAnyVariables(e))}getGlobalBoundingBoxX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxX(e))}getGlobalBoundingBoxY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxY(e))}getGlobalBoundingBoxWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxWidth(e))}getGlobalBoundingBoxHeight(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getGlobalBoundingBoxHeight(e))}findAllProperties(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,h.Z)((0,g.L)(_(this,n,"f").findAllProperties(e)))}getPropertyType(e){return(0,p.ZP)("property",e,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getPropertyType(e))}getEnumValues(e){return(0,p.ZP)("enumProperty",e,(0,d.Z_)()),(0,h.Z)((0,g.L)(_(this,n,"f").getEnumValues(e)))}setBool(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.O7)()),(0,g.L)(_(this,n,"f").setBool(e,t,r))}getBool(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getBool(e,t))}setInt(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d._L)()),(0,g.L)(_(this,n,"f").setInt(e,t,r))}getInt(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getInt(e,t))}setFloat(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setFloat(e,t,r))}getFloat(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getFloat(e,t))}setString(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Z_)()),(0,g.L)(_(this,n,"f").setString(e,t,r))}getString(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getString(e,t))}setColorRGBA(e,t,r,o,i,a){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("r",r,(0,d.Rx)()),(0,p.ZP)("g",o,(0,d.Rx)()),(0,p.ZP)("b",i,(0,d.Rx)()),(0,p.ZP)("a",a,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setColorRGBA(e,t,r,o,i,a))}getColorRGBA(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getColorRGBA(e,t))}setEnum(e,t,r){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,p.ZP)("value",r,(0,d.Z_)()),(0,g.L)(_(this,n,"f").setEnum(e,t,r))}getEnum(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("property",t,(0,d.Z_)()),(0,g.L)(_(this,n,"f").getEnum(e,t))}hasCrop(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasCrop(e))}setCropScaleX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("scaleX",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropScaleX(e,t))}setCropScaleY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("scaleY",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropScaleY(e,t))}setCropRotation(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("rotation",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropRotation(e,t))}setCropTranslationX(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("translationX",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropTranslationX(e,t))}setCropTranslationY(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("translationY",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setCropTranslationY(e,t))}resetCrop(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").resetCrop(e))}getCropScaleX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropScaleX(e))}getCropScaleY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropScaleY(e))}getCropRotation(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropRotation(e))}getCropTranslationX(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropTranslationX(e))}getCropTranslationY(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getCropTranslationY(e))}hasOpacity(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasOpacity(e))}setOpacity(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("opacity",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOpacity(e,t))}getOpacity(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOpacity(e))}hasFillColor(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasFillColor(e))}setFillColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setFillColorRGBA(e,t,r,o,i))}getFillColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getFillColorRGBA(e))}setFillColorEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setFillColorEnabled(e,t))}isFillColorEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isFillColorEnabled(e))}hasBackgroundColor(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasBackgroundColor(e))}setBackgroundColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setBackgroundColorRGBA(e,t,r,o,i))}getBackgroundColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getBackgroundColorRGBA(e))}setBackgroundColorEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setBackgroundColorEnabled(e,t))}isBackgroundColorEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isBackgroundColorEnabled(e))}hasStroke(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasStroke(e))}setStrokeEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setStrokeEnabled(e,t))}isStrokeEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isStrokeEnabled(e))}setStrokeColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setStrokeColorRGBA(e,t,r,o,i))}getStrokeColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeColorRGBA(e))}setStrokeWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("width",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setStrokeWidth(e,t))}getStrokeWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeWidth(e))}setStrokeStyle(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokeStyle(e,t))}getStrokeStyle(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeStyle(e))}setStrokePosition(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokePosition(e,t))}getStrokePosition(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokePosition(e))}setStrokeCornerGeometry(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").setStrokeCornerGeometry(e,t))}getStrokeCornerGeometry(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getStrokeCornerGeometry(e))}hasOutline(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").hasOutline(e))}setOutlineColorRGBA(e,t,r,o,i){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("r",t,(0,d.Rx)()),(0,p.ZP)("g",r,(0,d.Rx)()),(0,p.ZP)("b",o,(0,d.Rx)()),(0,p.ZP)("a",i,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOutlineColorRGBA(e,t,r,o,i))}getOutlineColorRGBA(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOutlineColorRGBA(e))}setOutlineEnabled(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("enabled",t,(0,d.O7)()),(0,g.L)(_(this,n,"f").setOutlineEnabled(e,t))}isOutlineEnabled(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").isOutlineEnabled(e))}setOutlineWidth(e,t){return(0,p.ZP)("id",e,(0,d._L)()),(0,p.ZP)("width",t,(0,d.Rx)()),(0,g.L)(_(this,n,"f").setOutlineWidth(e,t))}getOutlineWidth(e){return(0,p.ZP)("id",e,(0,d._L)()),(0,g.L)(_(this,n,"f").getOutlineWidth(e))}}n=new WeakMap,o=new WeakMap},37443:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});var n,o,i=r(8097),a=r(17019),s=r(48641),c=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},u=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class l{constructor(e){n.set(this,void 0),o.set(this,void 0),c(this,n,e,"f"),c(this,o,new s.Z(e),"f")}setZoomLevel(e=1){(0,i.ZP)("zoomLevel",e,(0,a.VV)((0,a.Rx)(),0)),u(this,n,"f").setZoomLevel(e)}getZoomLevel(){return(0,s.L)(u(this,n,"f").getZoomLevel())}addUndoStep(){(0,s.L)(u(this,n,"f").addUndoStep())}undo(){(0,s.L)(u(this,n,"f").undo())}redo(){(0,s.L)(u(this,n,"f").redo())}canUndo(){return(0,s.L)(u(this,n,"f").canUndo())}canRedo(){return(0,s.L)(u(this,n,"f").canRedo())}setSettingString(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.Z_)()),(0,s.L)(u(this,n,"f").setSettingString(e,t))}setSettingFloat(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.Rx)()),(0,s.L)(u(this,n,"f").setSettingFloat(e,t))}setSettingBool(e,t){return(0,i.ZP)("keypath",e,(0,a.Z_)()),(0,i.ZP)("value",t,(0,a.O7)()),(0,s.L)(u(this,n,"f").setSettingBool(e,t))}}n=new WeakMap,o=new WeakMap},94110:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,o=r(8097),i=r(17019),a=(r(68876),r(14545),r(48641)),s=r(15684),c=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class u{constructor(e){n.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,n,e,"f")}subscribe(e,t){(0,o.ZP)("blocks",e,(0,i.IX)());const r=c(this,n,"f").subscribe(e,(e=>{try{t((0,s.Z)(e,!0))}catch(e){console.error(e)}}));return()=>{(0,a.L)(c(this,n,"f").unsubscribe(r))}}}n=new WeakMap},37184:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n,o,i=r(8097),a=r(17019),s=r(68876),c=r(81867),u=(r(14545),r(48641)),l=r(15684),d=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},p=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class f{constructor(e){n.set(this,void 0),o.set(this,void 0),d(this,n,e,"f"),d(this,o,new u.Z(e),"f")}async loadFromString(e){return(0,i.ZP)("sceneContent",e,(0,a.Z_)()),new Promise((t=>{p(this,n,"f").loadSceneFromString(e,(e=>{const r=(0,u.L)(e);t(r)}))}))}async loadFromURL(e){return(0,i.ZP)("url",e,(0,a.Z_)()),new Promise((t=>{p(this,n,"f").loadSceneFromURL(e,(e=>{const r=(0,u.L)(e);t(r)}))}))}async saveToString(){return new Promise(((e,t)=>{const r=this.get();null==r?t(new Error("No scene available.")):p(this,n,"f").saveSceneToString(r,(t=>{const r=(0,u.L)(t);e(r)}))}))}async saveToArchive(){return new Promise(((e,t)=>{const r=this.get();null==r?t(new Error("No scene available.")):p(this,n,"f").saveSceneToArchive(r,(r=>{"error"in r?t(r.error):e(new Blob([r],{type:c.Z.Zip}))}))}))}create(){return(0,u.L)(p(this,n,"f").createScene({layout:s.Kc.Free}))}createFromImage(e,t=300,r=1){return(0,i.ZP)("url",e,(0,a.Z_)()),(0,i.ZP)("dpi",t,(0,a.VV)((0,a.Rx)(),0)),(0,i.ZP)("pixelScaleFactor",r,(0,a.VV)((0,a.Rx)(),0)),new Promise((o=>{p(this,n,"f").createSceneFromImage(e,t,r,s.Kc.Free,0,!1,(e=>{const t=(0,u.L)(e);o(t)}))}))}get(){const e=p(this,n,"f").findByType(s._h.Scene),t=(0,u.L)(e),r=(0,l.Z)(t);return r.length>0?r[0]:null}}n=new WeakMap,o=new WeakMap},49189:(e,t,r)=>{"use strict";r.d(t,{Z:()=>u});var n,o=r(8097),i=r(17019),a=(r(14545),r(48641)),s=r(15684),c=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class u{constructor(e){n.set(this,void 0),function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?o.call(e,r):o?o.value=r:t.set(e,r)}(this,n,e,"f")}findAll(){return(0,s.Z)(c(this,n,"f").findAllVariables())}setString(e,t){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,o.ZP)("value",t,(0,i.Z_)()),(0,a.L)(c(this,n,"f").setVariableString(e,t))}getString(e){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,a.L)(c(this,n,"f").getVariableString(e))}remove(e){return(0,o.ZP)("key",e,(0,i.Z_)()),(0,a.L)(c(this,n,"f").removeVariable(e))}}n=new WeakMap},8097:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>o,zF:()=>i});var n=r(17019);function o(e,t,r){const[o]=(0,n.Gu)(t,r);if(o)throw o.message=`Error in argument '${e}': ${o.message}`,o}function i(){const e=/image\/(png|jpeg|x-tga)|application\/octet-stream|application\/pdf/;return(0,n.Ou)("MimeType",(t=>!("string"!=typeof t||!e.test(t))||{message:`expected one of "image/png", "image/jpeg", "image/x-tga", "application/pdf" or "application/octet-stream", but got "${t}"`}))}},69786:(e,t,r)=>{"use strict";r.d(t,{vx:()=>i,pA:()=>s,_z:()=>c,qZ:()=>u,Zj:()=>l,zI:()=>d,YV:()=>p,Hf:()=>f});var n=r(58645),o=r(1440);r(32012);const i={baseURL:"/extensions/",entries:["ly.img.cesdk.filters.duotone","ly.img.cesdk.filters.lut","ly.img.cesdk.stickers.emoticons","ly.img.cesdk.vectorpaths","ly.img.cesdk.vectorpaths.abstract","ly.img.cesdk.fonts","ly.img.cesdk.images.samples","ly.img.cesdk.effects","ly.img.cesdk.stickers.doodle","ly.img.cesdk.stickers.hand","ly.img.cesdk.stickers.emoji"]},a={"din-a0":{width:1189,height:841,unit:n.Z.Millimeter},"din-a1":{width:841,height:594,unit:n.Z.Millimeter},"din-a2":{width:594,height:420,unit:n.Z.Millimeter},"din-a3":{width:420,height:297,unit:n.Z.Millimeter},"din-a4":{width:297,height:210,unit:n.Z.Millimeter},"din-a5":{width:210,height:148,unit:n.Z.Millimeter},"din-a6":{meta:{default:!0},width:148,height:105,unit:n.Z.Millimeter},"din-a65":{width:210,height:105,unit:n.Z.Millimeter},"din-b5":{width:250,height:176,unit:n.Z.Millimeter},square:{width:105,height:105,unit:n.Z.Millimeter},"twitter-profile":{width:400,height:400,unit:n.Z.Pixel},"twitter-image":{width:1024,height:512,unit:n.Z.Pixel},"twitter-header":{width:1500,height:500,unit:n.Z.Pixel},"instagram-profile":{width:180,height:180,unit:n.Z.Pixel},"instagram-photo":{width:1080,height:1080,unit:n.Z.Pixel},"instagram-story":{width:1080,height:1920,unit:n.Z.Pixel},"american-letter":{width:8.5,height:11,unit:n.Z.Inch},"american-legal":{width:8.5,height:14,unit:n.Z.Inch},"16:10":{width:1600,height:1e3,unit:n.Z.Pixel},"16:9":{width:1600,height:900,unit:n.Z.Pixel},"16:10@2400p":{width:3840,height:2400,unit:n.Z.Pixel},"16:9@2160p":{width:3840,height:2160,unit:n.Z.Pixel},"business-card":{width:85,height:55,unit:n.Z.Millimeter}},s={company_name:{value:"img.ly"},first_name:{value:"Charly"},last_name:{value:"Williams"},address:{value:"742 Evergreen Terrace"},city:{value:"Springfield"}},c=(e,t)=>{const r=`[UBQ] ${e}`;switch(t){case o.i.Warning:console.warn(r);break;case o.i.Error:console.error(r);break;case o.i.Info:console.log(r);break;default:console.log(r)}},u={log:c},l={colorPalettes:{primary:{meta:{default:!0},entries:["#FFFFFF","#000000","#6686FF","#66CCFF","#54FFEA","#E75050","#F28855","#FFF763"]}},pageFormats:a},d={baseURL:"core/"},p={maskSpotColor:void 0,dpi:300,pixelScaleFactor:1},f={title:{fontFileUri:"bundle://ly.img.cesdk/fonts/imgly_font_inter_semibold.otf",show:!0},dimOutOfPageAreas:!0}},45755:(e,t,r)=>{"use strict";r.d(t,{QG:()=>c});var n=r(57168),o=r.n(n),i=r(69786);function a(e,t=window.location.href){return new URL(e,t).toString()}function s(e){return"/"!==e[e.length-1]?`${e}/`:e}function c(e={}){var t,r,n,c,u,l,d,p,f,m,g,h,E;const _={license:e.license,role:null!==(t=e.role)&&void 0!==t?t:"Creator",featureFlags:null!==(r=e.featureFlags)&&void 0!==r?r:{},baseURL:null!==(n=e.baseURL)&&void 0!==n?n:"https://cdn.img.ly/packages/imgly/cesdk-js/1.5.1/assets",core:null!==(c=e.core)&&void 0!==c?c:Object.assign({},i.zI),extensions:null!==(u=e.extensions)&&void 0!==u?u:Object.assign({},i.vx),callbacks:null!==(l=e.callbacks)&&void 0!==l?l:Object.assign({},i.qZ),variables:null!==(d=e.variables)&&void 0!==d?d:Object.assign({},i.pA),presets:null!==(p=e.presets)&&void 0!==p?p:Object.assign({},i.Zj),scene:null!==(f=e.scene)&&void 0!==f?f:Object.assign({},i.YV),page:o()({},i.Hf,null!==(m=e.page)&&void 0!==m?m:{}),assets:null!==(g=e.assets)&&void 0!==g?g:{},assetSources:o()({},e.assetSources),defaultFont:null!==(h=e.defaultFont)&&void 0!==h?h:void 0};return _.extensions.entries=null!==(E=_.extensions.entries)&&void 0!==E?E:Object.assign({},i.vx.entries),Object.entries(i.Zj).forEach((([e,t])=>{var r;_.presets[e]=null!==(r=_.presets[e])&&void 0!==r?r:Object.assign({},t)})),_.baseURL=a(_.baseURL),_.baseURL=s(_.baseURL),_.core.baseURL=a(_.core.baseURL,_.baseURL),_.core.baseURL=s(_.core.baseURL),_.extensions.baseURL=s(_.extensions.baseURL),_.extensions.entries=_.extensions.entries.map((e=>s(e))),_}r(32012)},45094:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o}),r(45755);var n=r(69786);function o(e){var t,r;return null!==(r=null===(t=null==e?void 0:e.callbacks)||void 0===t?void 0:t.log)&&void 0!==r?r:n._z}r(1440)},32012:(e,t,r)=>{"use strict";r(1440),r(58645)},86295:(e,t,r)=>{"use strict";r.d(t,{ZP:()=>R});var n=r(81655),o=r(45755),i=r(94110),a=r(50124),s=r(68876),c=r(48641);function u(e,t){var r,n;const o=null==e?void 0:e.getBoundingClientRect(),i=null!==(r=null==o?void 0:o.top)&&void 0!==r?r:0,a=null!==(n=null==o?void 0:o.left)&&void 0!==n?n:0,s=function(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}(t),c=s?t.changedTouches[0].clientX:t.clientX,u=s?t.changedTouches[0].clientY:t.clientY;return{position:{x:(c-a)*window.devicePixelRatio,y:(u-i)*window.devicePixelRatio},isOverUIElement:!1,isTouch:s,timestamp:Date.now()}}var l=r(37184),d=r(81867),p=(r(14545),r(45111)),f=r(49189),m=r(37443),g=r(48473);var h,E,_,y,v,b,w,T,O,P,D,x=function(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r},S=function(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)};class R{constructor(e,t,r){h.add(this),Object.defineProperty(this,"block",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scene",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"variable",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"unstable_editor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),E.set(this,void 0),_.set(this,void 0),y.set(this,void 0),v.set(this,(()=>{const e=this.block.findByType(s._h.Camera)[0];if(!e)return;const{width:t,height:r}=S(this,_,"f"),n=S(this,E,"f").getValue(e,s.$R.Camera,"resolution");(0,p.dA)(n.width,t,1e-4)&&(0,p.dA)(n.height,r,1e-4)||S(this,E,"f").setValue(e,s.$R.Camera,"resolution",{width:t,height:r});const o=S(this,E,"f").getValue(e,s.$R.Camera,"pixelRatio");(0,p.dA)(o,window.devicePixelRatio,1e-4)||S(this,E,"f").setValue(e,s.$R.Camera,"pixelRatio",window.devicePixelRatio)})),b.set(this,void 0),w.set(this,void 0),T.set(this,void 0),x(this,y,e,"f"),x(this,E,new c.Z(e),"f"),x(this,_,t,"f"),this.block=new n.ZP(e),this.scene=new l.Z(e),this.variable=new f.Z(e),this.unstable_editor=new m.Z(e),this.event=new i.Z(e),S(this,E,"f").useInternalAPI((e=>{e.setPreUpdateCallback(S(this,v,"f"))})),S(this,h,"m",O).call(this),window.Cypress&&(this.config=r,this.helper=S(this,E,"f"),this.onPostUpdate=e=>{S(this,E,"f").useInternalAPI((t=>{t.setPostUpdateCallback(e)}))})}dispose(){S(this,h,"m",P).call(this),S(this,E,"f").useInternalAPI((e=>{e.setPreUpdateCallback(null)})),x(this,_,null,"f"),x(this,E,null,"f"),this.block=null,this.scene=null,this.variable=null,S(this,y,"f").delete(),x(this,y,null,"f")}static async init(e,t){console.log("[CESDK] Revision 94e85343d8f9064281f88c6a41568d38ea393311"),t||(t=document.createElement("canvas"));const r=(0,o.QG)(e);return new this(await(0,a.Z)(t,r),t,r)}}E=new WeakMap,_=new WeakMap,y=new WeakMap,v=new WeakMap,b=new WeakMap,w=new WeakMap,T=new WeakMap,h=new WeakSet,O=function(e=!0){if(S(this,b,"f"))return;x(this,w,function(e,t){const r=r=>{const n=u(e,r);n.isTouch&&r.preventDefault(),t.execute("ubq/inputs/mousemove",n)},n=r=>{const n=Object.assign(Object.assign({},u(e,r)),{button:(0,s.fn)(r instanceof MouseEvent?r.button:s.tc.Left),state:s.BN.Up,shiftIsHeld:r.shiftKey});t.execute("ubq/inputs/mousebutton",n)},o=r=>{const n=Object.assign(Object.assign({},u(e,r)),{button:(0,s.fn)(r instanceof MouseEvent?r.button:s.tc.Left),state:s.BN.Down,shiftIsHeld:r.shiftKey});t.execute("ubq/inputs/mousebutton",n)};return e.addEventListener("mousemove",r),e.addEventListener("mousedown",o),e.addEventListener("mouseup",n),e.addEventListener("touchmove",r),e.addEventListener("touchstart",o),e.addEventListener("touchend",n),e.addEventListener("touchcancel",n),()=>{e.removeEventListener("mousemove",r),e.removeEventListener("mousedown",o),e.removeEventListener("mouseup",n),e.removeEventListener("touchmove",r),e.removeEventListener("touchstart",o),e.removeEventListener("touchend",n),e.removeEventListener("touchcancel",n)}}(S(this,_,"f"),S(this,E,"f")),"f"),x(this,T,function(e,t){var r;let n=!1,o=0;const i=document.createElement("input");function a(e){try{t.useInternalAPI((t=>{const r=(0,c.L)(t.getSelectedText());""!==r&&e.clipboardData&&(e.clipboardData.setData("text/plain",r),e.preventDefault())}))}catch(e){console.error(e)}}function u(e){const r=e.target,{value:a}=r;if(a.length>0){if(n&&(o+=1),o>1){const e={key:s.u8.Backspace,characters:"",shiftIsHeld:!1,commandIsHeld:!1,optionIsHeld:!1,timestamp:Date.now()};t.execute("ubq/inputs/keyboardkey",e)}const e={key:s.u8.Unknown,characters:a,shiftIsHeld:!1,commandIsHeld:!1,optionIsHeld:!1,timestamp:Date.now()};t.execute("ubq/inputs/keyboardkey",e)}n||(i.value="")}async function l(e){if("a"===e.key&&(e.metaKey||e.ctrlKey))return void await t.execute("ubq/text/selectAllText");if("Escape"===e.key)return void async function(){const e=await t.execute("ubq/editor/getEditorState");t.setEditorState(Object.assign(Object.assign({},e),{editMode:s.Gt.Transform}))}();if("Backspace"!==e.key&&"Delete"!==e.key&&"ArrowLeft"!==e.key&&"ArrowRight"!==e.key&&"ArrowUp"!==e.key&&"ArrowDown"!==e.key&&"Enter"!==e.key)return;const r=(0,g.Z)(e);await t.execute("ubq/inputs/keyboardkey",r),e.currentTarget&&(i.value="")}function d(){n=!0,o=0}function p(){n=!1,o=0,i.value=""}let f;return i.id="ubq_internal-inline_text_editing_html_representation",i.style.contain="strict",i.style.opacity="0",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.padding="0",i.style.margin="-1px",i.style.overflow="hidden",i.style.clip="rect(0, 0, 0, 0)",i.style.whiteSpace="nowrap",i.style.border="0",function e(r){void 0===f&&(f=r),r-f>100&&(f=r,async function(){const{editMode:e}=await t.execute("ubq/editor/getEditorState");"ubq/editMode/text"===e&&i.focus()}()),requestAnimationFrame(e)}(0),i.addEventListener("input",u),i.addEventListener("keydown",l),i.addEventListener("copy",a),i.addEventListener("compositionstart",d),i.addEventListener("compositionend",p),null===(r=null==e?void 0:e.parentElement)||void 0===r||r.appendChild(i),()=>{var t;i.removeEventListener("input",u),i.removeEventListener("keydown",l),i.removeEventListener("copy",a),i.removeEventListener("compositionstart",d),i.removeEventListener("compositionend",p),null===(t=null==e?void 0:e.parentElement)||void 0===t||t.removeChild(i)}}(S(this,_,"f"),S(this,E,"f")),"f");const t=()=>{S(this,h,"m",D).call(this,e),x(this,b,requestAnimationFrame(t),"f")};x(this,b,requestAnimationFrame(t),"f")},P=function(){var e,t;null===(e=S(this,w,"f"))||void 0===e||e.call(this),null===(t=S(this,T,"f"))||void 0===t||t.call(this),x(this,w,void 0,"f"),x(this,T,void 0,"f"),S(this,b,"f")&&(cancelAnimationFrame(S(this,b,"f")),x(this,b,0,"f"))},D=function(e=!0){e&&1===this.block.findByType(s._h.Scene).length&&S(this,E,"f").execute("ubq/render",{displayWidth:S(this,_,"f").width,displayHeight:S(this,_,"f").height}),S(this,y,"f").update()},Object.defineProperty(R,"PositionMode",{enumerable:!0,configurable:!0,writable:!0,value:n.T}),Object.defineProperty(R,"SizeMode",{enumerable:!0,configurable:!0,writable:!0,value:n.t1}),Object.defineProperty(R,"PropertyType",{enumerable:!0,configurable:!0,writable:!0,value:n.uS}),Object.defineProperty(R,"DesignBlockType",{enumerable:!0,configurable:!0,writable:!0,value:s._h}),Object.defineProperty(R,"MimeType",{enumerable:!0,configurable:!0,writable:!0,value:d.Z}),Object.defineProperty(R,"StrokePosition",{enumerable:!0,configurable:!0,writable:!0,value:n.Rg}),Object.defineProperty(R,"StrokeCornerGeometry",{enumerable:!0,configurable:!0,writable:!0,value:n.hD}),Object.defineProperty(R,"StrokeStyle",{enumerable:!0,configurable:!0,writable:!0,value:n.qb})},50124:(e,t,r)=>{"use strict";r.d(t,{Z:()=>m});var n,o=r(45755),i=r(1440),a=r(68876),s=(r(14545),r(48641)),c=r(45094);const u=(n="undefined"!=typeof document&&document.currentScript?document.currentScript.src:void 0,function(e){var t,o,i=void 0!==(e=e||{})?e:{};i.ready=new Promise((function(e,r){t=e,o=r})),Object.getOwnPropertyDescriptor(i.ready,"_main")||(Object.defineProperty(i.ready,"_main",{configurable:!0,get:function(){Ne("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(){Ne("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,"___getTypeName")||(Object.defineProperty(i.ready,"___getTypeName",{configurable:!0,get:function(){Ne("You are getting ___getTypeName 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,"___getTypeName",{configurable:!0,set:function(){Ne("You are setting ___getTypeName 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,"___embind_register_native_and_builtin_types")||(Object.defineProperty(i.ready,"___embind_register_native_and_builtin_types",{configurable:!0,get:function(){Ne("You are getting ___embind_register_native_and_builtin_types 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,"___embind_register_native_and_builtin_types",{configurable:!0,set:function(){Ne("You are setting ___embind_register_native_and_builtin_types 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,"___stdio_exit")||(Object.defineProperty(i.ready,"___stdio_exit",{configurable:!0,get:function(){Ne("You are getting ___stdio_exit 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,"___stdio_exit",{configurable:!0,set:function(){Ne("You are setting ___stdio_exit 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(){Ne("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(){Ne("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")}})),i.expectedDataFileDownloads||(i.expectedDataFileDownloads=0),i.expectedDataFileDownloads++,i.ENVIRONMENT_IS_PTHREAD||function(e){"object"==typeof window?window.encodeURIComponent(window.location.pathname.toString().substring(0,window.location.pathname.toString().lastIndexOf("/"))+"/"):"undefined"==typeof process&&"undefined"!=typeof location&&encodeURIComponent(location.pathname.toString().substring(0,location.pathname.toString().lastIndexOf("/"))+"/");var t="cesdk.data";"function"!=typeof i.locateFilePackage||i.locateFile||(i.locateFile=i.locateFilePackage,O("warning: you defined Module.locateFilePackage, that has been renamed to Module.locateFile (using your locateFilePackage for now)"));var r,n,o,a,s=i.locateFile?i.locateFile(t,""):t,c=e.remote_package_size,u=null,l=i.getPreloadedPackage?i.getPreloadedPackage(s,c):null;function d(){function t(e,t){if(!e)throw t+(new Error).stack}function r(e,t,r){this.start=e,this.end=t,this.audio=r}i.FS_createPath("/","ly.img.cesdk",!0,!0),i.FS_createPath("/ly.img.cesdk","images",!0,!0),i.FS_createPath("/ly.img.cesdk","shaders",!0,!0),i.FS_createPath("/ly.img.cesdk/shaders","common",!0,!0),i.FS_createPath("/ly.img.cesdk","presets",!0,!0),i.FS_createPath("/ly.img.cesdk","fonts",!0,!0),r.prototype={requests:{},open:function(e,t){this.name=t,this.requests[t]=this,i.addRunDependency("fp "+this.name)},send:function(){},onload:function(){var e=this.byteArray.subarray(this.start,this.end);this.finish(e)},finish:function(e){i.FS_createDataFile(this.name,null,e,!0,!0,!0),i.removeRunDependency("fp "+this.name),this.requests[this.name]=null}};for(var n=e.files,o=0;o<n.length;++o)new r(n[o].start,n[o].end,n[o].audio||0).open("GET",n[o].filename);function a(n){t(n,"Loading data file failed."),t(n instanceof ArrayBuffer,"bad input to processPackageData");var o=new Uint8Array(n);r.prototype.byteArray=o;for(var a=e.files,s=0;s<a.length;++s)r.prototype.requests[a[s].filename].onload();i.removeRunDependency("datafile_cesdk.data")}i.addRunDependency("datafile_cesdk.data"),i.preloadResults||(i.preloadResults={}),i.preloadResults["cesdk.data"]={fromCache:!1},l?(a(l),l=null):u=a}l||(r=s,n=c,o=function(e){u?(u(e),u=null):l=e},(a=new XMLHttpRequest).open("GET",r,!0),a.responseType="arraybuffer",a.onprogress=function(e){var t=r,o=n;if(e.total&&(o=e.total),e.loaded){a.addedTotal?i.dataFileDownloads[t].loaded=e.loaded:(a.addedTotal=!0,i.dataFileDownloads||(i.dataFileDownloads={}),i.dataFileDownloads[t]={loaded:e.loaded,total:o});var s=0,c=0,u=0;for(var l in i.dataFileDownloads){var d=i.dataFileDownloads[l];s+=d.total,c+=d.loaded,u++}s=Math.ceil(s*i.expectedDataFileDownloads/u),i.setStatus&&i.setStatus("Downloading data... ("+c+"/"+s+")")}else i.dataFileDownloads||i.setStatus&&i.setStatus("Downloading data...")},a.onerror=function(e){throw new Error("NetworkError for: "+r)},a.onload=function(e){if(!(200==a.status||304==a.status||206==a.status||0==a.status&&a.response))throw new Error(a.statusText+" : "+a.responseURL);var t=a.response;o(t)},a.send(null)),i.calledRun?d():(i.preRun||(i.preRun=[]),i.preRun.push(d))}({files:[{filename:"/ly.img.cesdk/.DS_Store",start:0,end:6148},{filename:"/ly.img.cesdk/images/watermark.png",start:6148,end:96295},{filename:"/ly.img.cesdk/shaders/liquid.sksl",start:96295,end:98905},{filename:"/ly.img.cesdk/shaders/mirror.sksl",start:98905,end:99359},{filename:"/ly.img.cesdk/shaders/outliner.sksl",start:99359,end:100996},{filename:"/ly.img.cesdk/shaders/tv_glitch.sksl",start:100996,end:103933},{filename:"/ly.img.cesdk/shaders/mask_color.sksl",start:103933,end:104435},{filename:"/ly.img.cesdk/shaders/lut_filter.sksl",start:104435,end:107298},{filename:"/ly.img.cesdk/shaders/vignette.sksl",start:107298,end:107670},{filename:"/ly.img.cesdk/shaders/sharpie.sksl",start:107670,end:109975},{filename:"/ly.img.cesdk/shaders/hsp_selective_adjustments.sksl",start:109975,end:123575},{filename:"/ly.img.cesdk/shaders/half_tone.sksl",start:123575,end:124069},{filename:"/ly.img.cesdk/shaders/tiltshift.sksl",start:124069,end:124701},{filename:"/ly.img.cesdk/shaders/pixelize.sksl",start:124701,end:125001},{filename:"/ly.img.cesdk/shaders/linocut.sksl",start:125001,end:125786},{filename:"/ly.img.cesdk/shaders/glow.sksl",start:125786,end:126753},{filename:"/ly.img.cesdk/shaders/radial_pixel.sksl",start:126753,end:127316},{filename:"/ly.img.cesdk/shaders/black_and_white_color_mixer.sksl",start:127316,end:133633},{filename:"/ly.img.cesdk/shaders/shifter.sksl",start:133633,end:134317},{filename:"/ly.img.cesdk/shaders/posterize.sksl",start:134317,end:134529},{filename:"/ly.img.cesdk/shaders/dot_pattern.sksl",start:134529,end:135044},{filename:"/ly.img.cesdk/shaders/adjustments.sksl",start:135044,end:138933},{filename:"/ly.img.cesdk/shaders/extrude_blur.sksl",start:138933,end:141050},{filename:"/ly.img.cesdk/shaders/duotone_filter.sksl",start:141050,end:142014},{filename:"/ly.img.cesdk/shaders/cross_cut.sksl",start:142014,end:142841},{filename:"/ly.img.cesdk/shaders/placeholder_overlay_lines.sksl",start:142841,end:143422},{filename:"/ly.img.cesdk/shaders/common/ubq_constants.sksl",start:143422,end:143912},{filename:"/ly.img.cesdk/shaders/common/ubq_adjustments.sksl",start:143912,end:148475},{filename:"/ly.img.cesdk/shaders/common/ubq_color_conversions.sksl",start:148475,end:158460},{filename:"/ly.img.cesdk/shaders/common/ubq_hue_constants.sksl",start:158460,end:161627},{filename:"/ly.img.cesdk/presets/.keep",start:161627,end:161627},{filename:"/ly.img.cesdk/fonts/imgly_font_inter_semibold.otf",start:161627,end:432387}],remote_package_size:432387,package_uuid:"a6a3eb7f-f8c3-430f-b744-8abaa3de6b34"}),i.ENVIRONMENT_IS_PTHREAD&&(i.preRun=[]);var a=i.preRun.slice();"object"==typeof window&&"object"==typeof window.performance?i.performance=performance:"object"==typeof r.g&&"object"==typeof r.g.perf_hooks&&"object"==typeof r.g.perf_hooks.performance?i.performance=r.g.perf_hooks.performance:i.performance={mark:function(){},measure:function(){}},i.emscripten_ubq_asyncFetchStates=new Map,i.emscripten_ubq_asyncFetchCompletedBytes=new Map,i.emscripten_ubq_asyncFetchTotalBytes=new Map,i.emscripten_ubq_asyncFetchHeaders=new Map,i.emscripten_ubq_asyncFetchNextHandle=0,i.emscripten_ubq_asyncFetchNextHeaderHandle=0;const s={PENDING:0,FINISHED:1,ALLOCATED:2,ERROR:3},c=["GET","POST"];if(i.emscripten_ubq_codec_decoders=new Map,i.emscripten_ubq_codec_decoderNextHandle=0,i.emscripten_ubq_codec_createVideoDecoder=function(e){const t=new VideoDecoder({output:r=>{var n;if(t.presentedFrames++,t.probing&&1===t.presentedFrames)return(n=i.ctx).bindTexture(n.TEXTURE_2D,e),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),t.textureUploadFlag=!0,void r.close();t.decodeQueueSize>0||t.probing||((n=i.ctx).bindTexture(n.TEXTURE_2D,e),n.texImage2D(n.TEXTURE_2D,0,n.RGBA,n.RGBA,n.UNSIGNED_BYTE,r),t.textureUploadFlag=!0),r.close()},error:e=>console.error(e)});return t.presentedFrames=0,t},!i.preRun)throw"Module.preRun should exist because file support used it; did a pre-js delete it?";a.forEach((function(e){if(i.preRun.indexOf(e)<0)throw"All preRun tasks that exist before user pre-js code should remain after; did you replace Module or modify Module.preRun?"}));var u=Object.assign({},i),l=[],d="./this.program",p=(e,t)=>{throw t},f=!0,m=!1,g=!1,h=!1;if(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 E,_,y,v="";function b(e){return i.locateFile?i.locateFile(e,v):v+e}function w(e){if(e instanceof ap)return;let t=e;e&&"object"==typeof e&&e.stack&&(t=[e,e.stack]),O("exiting due to exception: "+t)}if(h){if("object"==typeof process||"object"==typeof window||"function"==typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");"undefined"!=typeof read&&(E=function(e){return read(e)}),y=function(e){let t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(t=read(e,"binary"),I("object"==typeof t),t)},_=function(e,t,r){setTimeout((()=>t(y(e))),0)},"undefined"!=typeof scriptArgs?l=scriptArgs:void 0!==arguments&&(l=arguments),"function"==typeof quit&&(p=(e,t)=>{w(t),quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)}else{if(!f&&!m)throw new Error("environment detection error");if(m?v=self.location.href:"undefined"!=typeof document&&document.currentScript&&(v=document.currentScript.src),n&&(v=n),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"","object"!=typeof window&&"function"!=typeof importScripts)throw new Error("not compiled for this environment (did you build to HTML and try to run it not on the web, or set ENVIRONMENT to something - like node - and run it someplace else - like on the web?)");E=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},m&&(y=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=(e,t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}}var T=i.print||console.log.bind(console),O=i.printErr||console.warn.bind(console);function P(e){P.shown||(P.shown={}),P.shown[e]||(P.shown[e]=1,O(e))}Object.assign(i,u),u=null,i.arguments&&(l=i.arguments),Object.getOwnPropertyDescriptor(i,"arguments")||Object.defineProperty(i,"arguments",{configurable:!0,get:function(){Ne("Module.arguments has been replaced with plain arguments_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),i.thisProgram&&(d=i.thisProgram),Object.getOwnPropertyDescriptor(i,"thisProgram")||Object.defineProperty(i,"thisProgram",{configurable:!0,get:function(){Ne("Module.thisProgram has been replaced with plain thisProgram (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),i.quit&&(p=i.quit),Object.getOwnPropertyDescriptor(i,"quit")||Object.defineProperty(i,"quit",{configurable:!0,get:function(){Ne("Module.quit has been replaced with plain quit_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(void 0===i.memoryInitializerPrefixURL,"Module.memoryInitializerPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.pthreadMainPrefixURL,"Module.pthreadMainPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.cdInitializerPrefixURL,"Module.cdInitializerPrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.filePackagePrefixURL,"Module.filePackagePrefixURL option was removed, use Module.locateFile instead"),I(void 0===i.read,"Module.read option was removed (modify read_ in JS)"),I(void 0===i.readAsync,"Module.readAsync option was removed (modify readAsync in JS)"),I(void 0===i.readBinary,"Module.readBinary option was removed (modify readBinary in JS)"),I(void 0===i.setWindowTitle,"Module.setWindowTitle option was removed (modify setWindowTitle in JS)"),I(void 0===i.TOTAL_MEMORY,"Module.TOTAL_MEMORY has been renamed Module.INITIAL_MEMORY"),Object.getOwnPropertyDescriptor(i,"read")||Object.defineProperty(i,"read",{configurable:!0,get:function(){Ne("Module.read has been replaced with plain read_ (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"readAsync")||Object.defineProperty(i,"readAsync",{configurable:!0,get:function(){Ne("Module.readAsync has been replaced with plain readAsync (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"readBinary")||Object.defineProperty(i,"readBinary",{configurable:!0,get:function(){Ne("Module.readBinary has been replaced with plain readBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),Object.getOwnPropertyDescriptor(i,"setWindowTitle")||Object.defineProperty(i,"setWindowTitle",{configurable:!0,get:function(){Ne("Module.setWindowTitle has been replaced with plain setWindowTitle (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(!m,"worker environment detected but not enabled at build time. Add 'worker' to `-s ENVIRONMENT` to enable."),I(!g,"node environment detected but not enabled at build time. Add 'node' to `-s ENVIRONMENT` to enable."),I(!h,"shell environment detected but not enabled at build time. Add 'shell' to `-s ENVIRONMENT` to enable.");var D,x=0,S=e=>{x=e},R=()=>x;i.wasmBinary&&(D=i.wasmBinary),Object.getOwnPropertyDescriptor(i,"wasmBinary")||Object.defineProperty(i,"wasmBinary",{configurable:!0,get:function(){Ne("Module.wasmBinary has been replaced with plain wasmBinary (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}});var M,A=i.noExitRuntime||!0;function k(e,t="i8",r){switch("*"===t.charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return Q[e>>0];case"i16":return G[e>>1];case"i32":case"i64":return W[e>>2];case"float":return z[e>>2];case"double":return Number($[e>>3]);default:Ne("invalid type for getValue: "+t)}return null}Object.getOwnPropertyDescriptor(i,"noExitRuntime")||Object.defineProperty(i,"noExitRuntime",{configurable:!0,get:function(){Ne("Module.noExitRuntime has been replaced with plain noExitRuntime (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),"object"!=typeof WebAssembly&&Ne("no native wasm support detected");var F,C=!1;function I(e,t){e||Ne("Assertion failed"+(t?": "+t:""))}var L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function j(e,t,r){for(var n=t+r,o=t;e[o]&&!(o>=n);)++o;if(o-t>16&&e.subarray&&L)return L.decode(e.subarray(t,o));for(var i="";t<o;){var a=e[t++];if(128&a){var s=63&e[t++];if(192!=(224&a)){var c=63&e[t++];if(224==(240&a)?a=(15&a)<<12|s<<6|c:(240!=(248&a)&&P("Invalid UTF-8 leading byte 0x"+a.toString(16)+" encountered when deserializing a UTF-8 string in wasm memory to a JS string!"),a=(7&a)<<18|s<<12|c<<6|63&e[t++]),a<65536)i+=String.fromCharCode(a);else{var u=a-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&a)<<6|s)}else i+=String.fromCharCode(a)}return i}function U(e,t){return e?j(Z,e,t):""}function N(e,t,r,n){if(!(n>0))return 0;for(var o=r,i=r+n-1,a=0;a<e.length;++a){var s=e.charCodeAt(a);if(s>=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>1114111&&P("Invalid Unicode code point 0x"+s.toString(16)+" encountered when serializing a JS string to a UTF-8 string in wasm memory! (Valid unicode code points should be in range 0-0x10FFFF)."),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 H(e,t,r){return I("number"==typeof r,"stringToUTF8(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),N(e,Z,t,r)}function B(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=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}var X,Q,Z,G,q,W,V,z,$,Y="undefined"!=typeof TextDecoder?new TextDecoder("utf-16le"):void 0;function K(e,t){I(e%2==0,"Pointer passed to UTF16ToString must be aligned to two bytes!");for(var r=e,n=r>>1,o=n+t/2;!(n>=o)&&q[n];)++n;if((r=n<<1)-e>32&&Y)return Y.decode(Z.subarray(e,r));for(var i="",a=0;!(a>=t/2);++a){var s=G[e+2*a>>1];if(0==s)break;i+=String.fromCharCode(s)}return i}function J(e,t,r){if(I(t%2==0,"Pointer passed to stringToUTF16 must be aligned to two bytes!"),I("number"==typeof r,"stringToUTF16(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<2)return 0;for(var n=t,o=(r-=2)<2*e.length?r/2:e.length,i=0;i<o;++i){var a=e.charCodeAt(i);G[t>>1]=a,t+=2}return G[t>>1]=0,t-n}function ee(e){return 2*e.length}function te(e,t){I(e%4==0,"Pointer passed to UTF32ToString must be aligned to four bytes!");for(var r=0,n="";!(r>=t/4);){var o=W[e+4*r>>2];if(0==o)break;if(++r,o>=65536){var i=o-65536;n+=String.fromCharCode(55296|i>>10,56320|1023&i)}else n+=String.fromCharCode(o)}return n}function re(e,t,r){if(I(t%4==0,"Pointer passed to stringToUTF32 must be aligned to four bytes!"),I("number"==typeof r,"stringToUTF32(str, outPtr, maxBytesToWrite) is missing the third parameter that specifies the length of the output buffer!"),void 0===r&&(r=2147483647),r<4)return 0;for(var n=t,o=n+r-4,i=0;i<e.length;++i){var a=e.charCodeAt(i);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++i)),W[t>>2]=a,(t+=4)+4>o)break}return W[t>>2]=0,t-n}function ne(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&++r,t+=4}return t}function oe(e){var t=B(e)+1,r=Cd(t);return r&&N(e,Q,r,t),r}function ie(e){var t=B(e)+1,r=Gd(t);return N(e,Q,r,t),r}function ae(e,t){I(e.length>=0,"writeArrayToMemory array must have a length (should be an array or typed array)"),Q.set(e,t)}function se(e,t,r){for(var n=0;n<e.length;++n)I(e.charCodeAt(n)===(255&e.charCodeAt(n))),Q[t++>>0]=e.charCodeAt(n);r||(Q[t>>0]=0)}function ce(e,t){return e%t>0&&(e+=t-e%t),e}function ue(e){X=e,i.HEAP8=Q=new Int8Array(e),i.HEAP16=G=new Int16Array(e),i.HEAP32=W=new Int32Array(e),i.HEAPU8=Z=new Uint8Array(e),i.HEAPU16=q=new Uint16Array(e),i.HEAPU32=V=new Uint32Array(e),i.HEAPF32=z=new Float32Array(e),i.HEAPF64=$=new Float64Array(e)}var le=5242880;i.TOTAL_STACK&&I(le===i.TOTAL_STACK,"the stack size can no longer be determined at runtime");var de,pe=i.INITIAL_MEMORY||268435456;function fe(){var e=Xd();I(0==(3&e)),W[e+4>>2]=34821223,W[e+8>>2]=2310721022,W[0]=1668509029}function me(){if(!C){var e=Xd(),t=V[e+4>>2],r=V[e+8>>2];34821223==t&&2310721022==r||Ne("Stack overflow! Stack cookie has been overwritten, expected hex dwords 0x89BACDFE and 0x2135467, but received 0x"+r.toString(16)+" 0x"+t.toString(16)),1668509029!==W[0]&&Ne("Runtime error: The application has corrupted its heap memory area (address zero)!")}}Object.getOwnPropertyDescriptor(i,"INITIAL_MEMORY")||Object.defineProperty(i,"INITIAL_MEMORY",{configurable:!0,get:function(){Ne("Module.INITIAL_MEMORY has been replaced with plain INITIAL_MEMORY (the initial value can be provided on Module, but after startup the value is only looked for on a local variable of that name)")}}),I(pe>=le,"INITIAL_MEMORY should be larger than TOTAL_STACK, was "+pe+"! (TOTAL_STACK="+le+")"),I("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&null!=Int32Array.prototype.subarray&&null!=Int32Array.prototype.set,"JS engine does not provide full typed array support"),I(!i.wasmMemory,"Use of `wasmMemory` detected. Use -s IMPORTED_MEMORY to define wasmMemory externally"),I(268435456==pe,"Detected runtime INITIAL_MEMORY setting. Use -s IMPORTED_MEMORY to define wasmMemory dynamically"),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! (Run with -s SUPPORT_BIG_ENDIAN=1 to bypass)"}();var ge=[],he=[],Ee=[],_e=[],ye=[],ve=!1,be=!1,we=0;function Te(){return A||we>0}function Oe(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)Re(i.preRun.shift());$e(ge)}function Pe(){me(),I(!ve),ve=!0,i.noFSInit||_t.init.initialized||_t.init(),_t.ignorePermissions=!1,lt.init(),$e(he)}function De(){me(),$e(Ee)}function xe(){me(),be=!0}function Se(){if(me(),i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)Ae(i.postRun.shift());$e(ye)}function Re(e){ge.unshift(e)}function Me(e){he.unshift(e)}function Ae(e){ye.unshift(e)}I(Math.imul,"This browser does not support Math.imul(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.fround,"This browser does not support Math.fround(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.clz32,"This browser does not support Math.clz32(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill"),I(Math.trunc,"This browser does not support Math.trunc(), build with LEGACY_VM_SUPPORT or POLYFILL_OLD_MATH_FUNCTIONS to add in a polyfill");var ke=0,Fe=null,Ce=null,Ie={};function Le(e){for(var t=e;;){if(!Ie[e])return e;e=t+Math.random()}}function je(e){ke++,i.monitorRunDependencies&&i.monitorRunDependencies(ke),e?(I(!Ie[e]),Ie[e]=1,null===Fe&&"undefined"!=typeof setInterval&&(Fe=setInterval((function(){if(C)return clearInterval(Fe),void(Fe=null);var e=!1;for(var t in Ie)e||(e=!0,O("still waiting on run dependencies:")),O("dependency: "+t);e&&O("(end of list)")}),1e4))):O("warning: run dependency added without ID")}function Ue(e){if(ke--,i.monitorRunDependencies&&i.monitorRunDependencies(ke),e?(I(Ie[e]),delete Ie[e]):O("warning: run dependency removed without ID"),0==ke&&(null!==Fe&&(clearInterval(Fe),Fe=null),Ce)){var t=Ce;Ce=null,t()}}function Ne(e){i.onAbort&&i.onAbort(e),O(e="Aborted("+e+")"),C=!0,F=1;var t=new WebAssembly.RuntimeError(e);throw o(t),t}i.preloadedImages={},i.preloadedAudios={};var He,Be,Xe,Qe="data:application/octet-stream;base64,";function Ze(e){return e.startsWith(Qe)}function Ge(e){return e.startsWith("file://")}function qe(e,t){return function(){var r=e,n=t;return t||(n=i.asm),I(ve,"native function `"+r+"` called before runtime initialization"),I(!be,"native function `"+r+"` called after runtime exit (use NO_EXIT_RUNTIME to keep it alive after main() exits)"),n[e]||I(n[e],"exported native function `"+r+"` not found"),n[e].apply(null,arguments)}}function We(e){try{if(e==He&&D)return new Uint8Array(D);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){Ne(e)}}function Ve(){return D||!f&&!m||"function"!=typeof fetch?Promise.resolve().then((function(){return We(He)})):fetch(He,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+He+"'";return e.arrayBuffer()})).catch((function(){return We(He)}))}function ze(){var e={env:Fd,wasi_snapshot_preview1:Fd};function t(e,t){var r=e.exports;i.asm=r,I(M=i.asm.memory,"memory not found in wasm exports"),ue(M.buffer),I(de=i.asm.__indirect_function_table,"table not found in wasm exports"),Me(i.asm.__wasm_call_ctors),Ue("wasm-instantiate")}je("wasm-instantiate");var r=i;function n(e){I(i===r,"the Module object should not be replaced during async compilation - perhaps the order of HTML elements is wrong?"),r=null,t(e.instance)}function a(t){return Ve().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){O("failed to asynchronously prepare wasm: "+e),Ge(He)&&O("warning: Loading from a file URI ("+He+") is not supported in most browsers. See https://emscripten.org/docs/getting_started/FAQ.html#how-do-i-run-a-local-webserver-for-testing-why-does-my-program-stall-in-downloading-or-preparing"),Ne(e)}))}if(i.instantiateWasm)try{return i.instantiateWasm(e,t)}catch(e){return O("Module.instantiateWasm callback failed with error: "+e),!1}return(D||"function"!=typeof WebAssembly.instantiateStreaming||Ze(He)||"function"!=typeof fetch?a(n):fetch(He,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return O("wasm streaming compile failed: "+e),O("falling back to ArrayBuffer instantiation"),a(n)}))}))).catch(o),{}}function $e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?et(r)():et(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(i)}}function Ye(e){return P("warning: build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),e}function Ke(e){return e.replace(/\b_Z[\w\d_]+/g,(function(e){var t=Ye(e);return e===t?e:t+" ["+e+"]"}))}Ze(He="cesdk.wasm")||(He=b(He));var Je=[];function et(e){var t=Je[e];return t||(e>=Je.length&&(Je.length=e+1),Je[e]=t=de.get(e)),I(de.get(e)==t,"JavaScript-side Wasm function table mirror is out of date!"),t}function tt(e){if(e instanceof ap||"unwind"==e)return F;p(1,e)}function rt(e,t,r,n){Ne("Assertion failed: "+U(e)+", at: "+[t?U(t):"unknown filename",r,n?U(n):"unknown function"])}function nt(e){return Cd(e+16)+16}function ot(e){this.excPtr=e,this.ptr=e-16,this.set_type=function(e){W[this.ptr+4>>2]=e},this.get_type=function(){return W[this.ptr+4>>2]},this.set_destructor=function(e){W[this.ptr+8>>2]=e},this.get_destructor=function(){return W[this.ptr+8>>2]},this.set_refcount=function(e){W[this.ptr>>2]=e},this.set_caught=function(e){e=e?1:0,Q[this.ptr+12>>0]=e},this.get_caught=function(){return 0!=Q[this.ptr+12>>0]},this.set_rethrown=function(e){e=e?1:0,Q[this.ptr+13>>0]=e},this.get_rethrown=function(){return 0!=Q[this.ptr+13>>0]},this.init=function(e,t){this.set_type(e),this.set_destructor(t),this.set_refcount(0),this.set_caught(!1),this.set_rethrown(!1)},this.add_ref=function(){var e=W[this.ptr>>2];W[this.ptr>>2]=e+1},this.release_ref=function(){var e=W[this.ptr>>2];return W[this.ptr>>2]=e-1,I(e>0),1===e}}function it(e,t,r){throw new ot(e).init(t,r),e+" - Exception catching is disabled, this exception cannot be caught. Compile with -s NO_DISABLE_EXCEPTION_CATCHING or -s EXCEPTION_CATCHING_ALLOWED=[..] to catch."}function at(e){return W[Ld()>>2]=e,e}var st={splitPath:function(e){return/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1)},normalizeArray:function(e,t){for(var r=0,n=e.length-1;n>=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=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},dirname:function(e){var t=st.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=(e=st.normalize(e)).replace(/\/$/,"")).lastIndexOf("/");return-1===t?e:e.substr(t+1)},extname:function(e){return st.splitPath(e)[3]},join:function(){var e=Array.prototype.slice.call(arguments,0);return st.normalize(e.join("/"))},join2:function(e,t){return st.normalize(e+"/"+t)}};function ct(){if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues){var e=new Uint8Array(1);return function(){return crypto.getRandomValues(e),e[0]}}return function(){Ne("no cryptographic support found for randomDevice. consider polyfilling it if you want to use something insecure like Math.random(), e.g. put this in a --pre-js: var crypto = { getRandomValues: function(array) { for (var i = 0; i < array.length; i++) array[i] = (Math.random()*256)|0 } };")}}var ut={resolve:function(){for(var e="",t=!1,r=arguments.length-1;r>=-1&&!t;r--){var n=r>=0?arguments[r]:_t.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=st.normalizeArray(e.split("/").filter((function(e){return!!e})),!t).join("/"))||"."},relative:function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=ut.resolve(e).substr(1),t=ut.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;s<i;s++)if(n[s]!==o[s]){a=s;break}var c=[];for(s=a;s<n.length;s++)c.push("..");return(c=c.concat(o.slice(a))).join("/")}},lt={ttys:[],init:function(){},shutdown:function(){},register:function(e,t){lt.ttys[e]={input:[],output:[],ops:t},_t.registerDevice(e,lt.stream_ops)},stream_ops:{open:function(e){var t=lt.ttys[e.node.rdev];if(!t)throw new _t.ErrnoError(43);e.tty=t,e.seekable=!1},close:function(e){e.tty.ops.flush(e.tty)},flush:function(e){e.tty.ops.flush(e.tty)},read:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.get_char)throw new _t.ErrnoError(60);for(var i=0,a=0;a<n;a++){var s;try{s=e.tty.ops.get_char(e.tty)}catch(e){throw new _t.ErrnoError(29)}if(void 0===s&&0===i)throw new _t.ErrnoError(6);if(null==s)break;i++,t[r+a]=s}return i&&(e.node.timestamp=Date.now()),i},write:function(e,t,r,n,o){if(!e.tty||!e.tty.ops.put_char)throw new _t.ErrnoError(60);try{for(var i=0;i<n;i++)e.tty.ops.put_char(e.tty,t[r+i])}catch(e){throw new _t.ErrnoError(29)}return n&&(e.node.timestamp=Date.now()),i}},default_tty_ops:{get_char:function(e){if(!e.input.length){var t=null;if("undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&null!==(t=readline())&&(t+="\n"),!t)return null;e.input=Ad(t,!0)}return e.input.shift()},put_char:function(e,t){null===t||10===t?(T(j(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(T(j(e.output,0)),e.output=[])}},default_tty1_ops:{put_char:function(e,t){null===t||10===t?(O(j(e.output,0)),e.output=[]):0!=t&&e.output.push(t)},flush:function(e){e.output&&e.output.length>0&&(O(j(e.output,0)),e.output=[])}}};function dt(e,t){Z.fill(0,e,e+t)}function pt(e,t){return I(t,"alignment argument is required"),Math.ceil(e/t)*t}function ft(e){e=pt(e,65536);var t=Nd(65536,e);return t?(dt(t,e),t):0}var mt={ops_table:null,mount:function(e){return mt.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(_t.isBlkdev(r)||_t.isFIFO(r))throw new _t.ErrnoError(63);mt.ops_table||(mt.ops_table={dir:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr,lookup:mt.node_ops.lookup,mknod:mt.node_ops.mknod,rename:mt.node_ops.rename,unlink:mt.node_ops.unlink,rmdir:mt.node_ops.rmdir,readdir:mt.node_ops.readdir,symlink:mt.node_ops.symlink},stream:{llseek:mt.stream_ops.llseek}},file:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr},stream:{llseek:mt.stream_ops.llseek,read:mt.stream_ops.read,write:mt.stream_ops.write,allocate:mt.stream_ops.allocate,mmap:mt.stream_ops.mmap,msync:mt.stream_ops.msync}},link:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr,readlink:mt.node_ops.readlink},stream:{}},chrdev:{node:{getattr:mt.node_ops.getattr,setattr:mt.node_ops.setattr},stream:_t.chrdev_stream_ops}});var o=_t.createNode(e,t,r,n);return _t.isDir(o.mode)?(o.node_ops=mt.ops_table.dir.node,o.stream_ops=mt.ops_table.dir.stream,o.contents={}):_t.isFile(o.mode)?(o.node_ops=mt.ops_table.file.node,o.stream_ops=mt.ops_table.file.stream,o.usedBytes=0,o.contents=null):_t.isLink(o.mode)?(o.node_ops=mt.ops_table.link.node,o.stream_ops=mt.ops_table.link.stream):_t.isChrdev(o.mode)&&(o.node_ops=mt.ops_table.chrdev.node,o.stream_ops=mt.ops_table.chrdev.stream),o.timestamp=Date.now(),e&&(e.contents[t]=o,e.timestamp=o.timestamp),o},getFileDataAsTypedArray:function(e){return e.contents?e.contents.subarray?e.contents.subarray(0,e.usedBytes):new Uint8Array(e.contents):new Uint8Array(0)},expandFileStorage:function(e,t){var r=e.contents?e.contents.length:0;if(!(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)e.contents=null,e.usedBytes=0;else{var r=e.contents;e.contents=new Uint8Array(t),r&&e.contents.set(r.subarray(0,Math.min(t,e.usedBytes))),e.usedBytes=t}},node_ops:{getattr:function(e){var t={};return t.dev=_t.isChrdev(e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,_t.isDir(e.mode)?t.size=4096:_t.isFile(e.mode)?t.size=e.usedBytes:_t.isLink(e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.blksize=4096,t.blocks=Math.ceil(t.size/t.blksize),t},setattr:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&mt.resizeFileStorage(e,t.size)},lookup:function(e,t){throw _t.genericErrors[44]},mknod:function(e,t,r,n){return mt.createNode(e,t,r,n)},rename:function(e,t,r){if(_t.isDir(e.mode)){var n;try{n=_t.lookupNode(t,r)}catch(e){}if(n)for(var o in n.contents)throw new _t.ErrnoError(55)}delete e.parent.contents[e.name],e.parent.timestamp=Date.now(),e.name=r,t.contents[r]=e,t.timestamp=e.parent.timestamp,e.parent=t},unlink:function(e,t){delete e.contents[t],e.timestamp=Date.now()},rmdir:function(e,t){var r=_t.lookupNode(e,t);for(var n in r.contents)throw new _t.ErrnoError(55);delete e.contents[t],e.timestamp=Date.now()},readdir:function(e){var t=[".",".."];for(var r in e.contents)e.contents.hasOwnProperty(r)&&t.push(r);return t},symlink:function(e,t,r){var n=mt.createNode(e,t,41471,0);return n.link=r,n},readlink:function(e){if(!_t.isLink(e.mode))throw new _t.ErrnoError(28);return e.link}},stream_ops:{read:function(e,t,r,n,o){var i=e.node.contents;if(o>=e.node.usedBytes)return 0;var a=Math.min(e.node.usedBytes-o,n);if(I(a>=0),a>8&&i.subarray)t.set(i.subarray(o,o+a),r);else for(var s=0;s<a;s++)t[r+s]=i[o+s];return a},write:function(e,t,r,n,o,i){if(I(!(t instanceof ArrayBuffer)),t.buffer===Q.buffer&&(i=!1),!n)return 0;var a=e.node;if(a.timestamp=Date.now(),t.subarray&&(!a.contents||a.contents.subarray)){if(i)return I(0===o,"canOwn must imply no weird position inside the file"),a.contents=t.subarray(r,r+n),a.usedBytes=n,n;if(0===a.usedBytes&&0===o)return a.contents=t.slice(r,r+n),a.usedBytes=n,n;if(o+n<=a.usedBytes)return a.contents.set(t.subarray(r,r+n),o),n}if(mt.expandFileStorage(a,o+n),a.contents.subarray&&t.subarray)a.contents.set(t.subarray(r,r+n),o);else for(var s=0;s<n;s++)a.contents[o+s]=t[r+s];return a.usedBytes=Math.max(a.usedBytes,o+n),n},llseek:function(e,t,r){var n=t;if(1===r?n+=e.position:2===r&&_t.isFile(e.node.mode)&&(n+=e.node.usedBytes),n<0)throw new _t.ErrnoError(28);return n},allocate:function(e,t,r){mt.expandFileStorage(e.node,t+r),e.node.usedBytes=Math.max(e.node.usedBytes,t+r)},mmap:function(e,t,r,n,o,i){if(0!==t)throw new _t.ErrnoError(28);if(!_t.isFile(e.node.mode))throw new _t.ErrnoError(43);var a,s,c=e.node.contents;if(2&i||c.buffer!==X){if((n>0||n+r<c.length)&&(c=c.subarray?c.subarray(n,n+r):Array.prototype.slice.call(c,n,n+r)),s=!0,!(a=ft(r)))throw new _t.ErrnoError(48);Q.set(c,a)}else s=!1,a=c.byteOffset;return{ptr:a,allocated:s}},msync:function(e,t,r,n,o){if(!_t.isFile(e.node.mode))throw new _t.ErrnoError(43);return 2&o||mt.stream_ops.write(e,t,0,n,r,!1),0}}};function gt(e,t,r,n){var o=n?"":Le("al "+e);_(e,(function(r){I(r,'Loading data file "'+e+'" failed (no arrayBuffer).'),t(new Uint8Array(r)),o&&Ue(o)}),(function(t){if(!r)throw'Loading data file "'+e+'" failed.';r()})),o&&je(o)}var ht={0:"Success",1:"Arg list too long",2:"Permission denied",3:"Address already in use",4:"Address not available",5:"Address family not supported by protocol family",6:"No more processes",7:"Socket already connected",8:"Bad file number",9:"Trying to read unreadable message",10:"Mount device busy",11:"Operation canceled",12:"No children",13:"Connection aborted",14:"Connection refused",15:"Connection reset by peer",16:"File locking deadlock error",17:"Destination address required",18:"Math arg out of domain of func",19:"Quota exceeded",20:"File exists",21:"Bad address",22:"File too large",23:"Host is unreachable",24:"Identifier removed",25:"Illegal byte sequence",26:"Connection already in progress",27:"Interrupted system call",28:"Invalid argument",29:"I/O error",30:"Socket is already connected",31:"Is a directory",32:"Too many symbolic links",33:"Too many open files",34:"Too many links",35:"Message too long",36:"Multihop attempted",37:"File or path name too long",38:"Network interface is not configured",39:"Connection reset by network",40:"Network is unreachable",41:"Too many open files in system",42:"No buffer space available",43:"No such device",44:"No such file or directory",45:"Exec format error",46:"No record locks available",47:"The link has been severed",48:"Not enough core",49:"No message of desired type",50:"Protocol not available",51:"No space left on device",52:"Function not implemented",53:"Socket is not connected",54:"Not a directory",55:"Directory not empty",56:"State not recoverable",57:"Socket operation on non-socket",59:"Not a typewriter",60:"No such device or address",61:"Value too large for defined data type",62:"Previous owner died",63:"Not super-user",64:"Broken pipe",65:"Protocol error",66:"Unknown protocol",67:"Protocol wrong type for socket",68:"Math result not representable",69:"Read only file system",70:"Illegal seek",71:"No such process",72:"Stale file handle",73:"Connection timed out",74:"Text file busy",75:"Cross-device link",100:"Device not a stream",101:"Bad font file fmt",102:"Invalid slot",103:"Invalid request code",104:"No anode",105:"Block device required",106:"Channel number out of range",107:"Level 3 halted",108:"Level 3 reset",109:"Link number out of range",110:"Protocol driver not attached",111:"No CSI structure available",112:"Level 2 halted",113:"Invalid exchange",114:"Invalid request descriptor",115:"Exchange full",116:"No data (for no delay io)",117:"Timer expired",118:"Out of streams resources",119:"Machine is not on the network",120:"Package not installed",121:"The object is remote",122:"Advertise error",123:"Srmount error",124:"Communication error on send",125:"Cross mount point (not really error)",126:"Given log. name not unique",127:"f.d. invalid for this operation",128:"Remote address changed",129:"Can access a needed shared lib",130:"Accessing a corrupted shared lib",131:".lib section in a.out corrupted",132:"Attempting to link in too many libs",133:"Attempting to exec a shared library",135:"Streams pipe error",136:"Too many users",137:"Socket type not supported",138:"Not supported",139:"Protocol family not supported",140:"Can't send after socket shutdown",141:"Too many references",142:"Host is down",148:"No medium (in tape drive)",156:"Level 2 not synchronized"},Et={},_t={root:null,mounts:[],devices:{},streams:[],nextInode:1,nameTable:null,currentPath:"/",initialized:!1,ignorePermissions:!0,ErrnoError:null,genericErrors:{},filesystems:null,syncFSRequests:0,lookupPath:(e,t={})=>{if(!(e=ut.resolve(_t.cwd(),e)))return{path:"",node:null};var r={follow_mount:!0,recurse_count:0};for(var n in r)void 0===t[n]&&(t[n]=r[n]);if(t.recurse_count>8)throw new _t.ErrnoError(32);for(var o=st.normalizeArray(e.split("/").filter((e=>!!e)),!1),i=_t.root,a="/",s=0;s<o.length;s++){var c=s===o.length-1;if(c&&t.parent)break;if(i=_t.lookupNode(i,o[s]),a=st.join2(a,o[s]),_t.isMountpoint(i)&&(!c||c&&t.follow_mount)&&(i=i.mounted.root),!c||t.follow)for(var u=0;_t.isLink(i.mode);){var l=_t.readlink(a);if(a=ut.resolve(st.dirname(a),l),i=_t.lookupPath(a,{recurse_count:t.recurse_count}).node,u++>40)throw new _t.ErrnoError(32)}}return{path:a,node:i}},getPath:e=>{for(var t;;){if(_t.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:(e,t)=>{for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%_t.nameTable.length},hashAddNode:e=>{var t=_t.hashName(e.parent.id,e.name);e.name_next=_t.nameTable[t],_t.nameTable[t]=e},hashRemoveNode:e=>{var t=_t.hashName(e.parent.id,e.name);if(_t.nameTable[t]===e)_t.nameTable[t]=e.name_next;else for(var r=_t.nameTable[t];r;){if(r.name_next===e){r.name_next=e.name_next;break}r=r.name_next}},lookupNode:(e,t)=>{var r=_t.mayLookup(e);if(r)throw new _t.ErrnoError(r,e);for(var n=_t.hashName(e.id,t),o=_t.nameTable[n];o;o=o.name_next){var i=o.name;if(o.parent.id===e.id&&i===t)return o}return _t.lookup(e,t)},createNode:(e,t,r,n)=>{I("object"==typeof e);var o=new _t.FSNode(e,t,r,n);return _t.hashAddNode(o),o},destroyNode:e=>{_t.hashRemoveNode(e)},isRoot:e=>e===e.parent,isMountpoint:e=>!!e.mounted,isFile:e=>32768==(61440&e),isDir:e=>16384==(61440&e),isLink:e=>40960==(61440&e),isChrdev:e=>8192==(61440&e),isBlkdev:e=>24576==(61440&e),isFIFO:e=>4096==(61440&e),isSocket:e=>49152==(49152&e),flagModes:{r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090},modeStringToFlags:e=>{var t=_t.flagModes[e];if(void 0===t)throw new Error("Unknown file open mode: "+e);return t},flagsToPermissionString:e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},nodePermissions:(e,t)=>_t.ignorePermissions||(!t.includes("r")||292&e.mode)&&(!t.includes("w")||146&e.mode)&&(!t.includes("x")||73&e.mode)?0:2,mayLookup:e=>_t.nodePermissions(e,"x")||(e.node_ops.lookup?0:2),mayCreate:(e,t)=>{try{return _t.lookupNode(e,t),20}catch(e){}return _t.nodePermissions(e,"wx")},mayDelete:(e,t,r)=>{var n;try{n=_t.lookupNode(e,t)}catch(e){return e.errno}var o=_t.nodePermissions(e,"wx");if(o)return o;if(r){if(!_t.isDir(n.mode))return 54;if(_t.isRoot(n)||_t.getPath(n)===_t.cwd())return 10}else if(_t.isDir(n.mode))return 31;return 0},mayOpen:(e,t)=>e?_t.isLink(e.mode)?32:_t.isDir(e.mode)&&("r"!==_t.flagsToPermissionString(t)||512&t)?31:_t.nodePermissions(e,_t.flagsToPermissionString(t)):44,MAX_OPEN_FDS:4096,nextfd:(e=0,t=_t.MAX_OPEN_FDS)=>{for(var r=e;r<=t;r++)if(!_t.streams[r])return r;throw new _t.ErrnoError(33)},getStream:e=>_t.streams[e],createStream:(e,t,r)=>{_t.FSStream||(_t.FSStream=function(){},_t.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}}}),e=Object.assign(new _t.FSStream,e);var n=_t.nextfd(t,r);return e.fd=n,_t.streams[n]=e,e},closeStream:e=>{_t.streams[e]=null},chrdev_stream_ops:{open:e=>{var t=_t.getDevice(e.node.rdev);e.stream_ops=t.stream_ops,e.stream_ops.open&&e.stream_ops.open(e)},llseek:()=>{throw new _t.ErrnoError(70)}},major:e=>e>>8,minor:e=>255&e,makedev:(e,t)=>e<<8|t,registerDevice:(e,t)=>{_t.devices[e]={stream_ops:t}},getDevice:e=>_t.devices[e],getMounts:e=>{for(var t=[],r=[e];r.length;){var n=r.pop();t.push(n),r.push.apply(r,n.mounts)}return t},syncfs:(e,t)=>{"function"==typeof e&&(t=e,e=!1),_t.syncFSRequests++,_t.syncFSRequests>1&&O("warning: "+_t.syncFSRequests+" FS.syncfs operations in flight at once, probably just doing extra work");var r=_t.getMounts(_t.root.mount),n=0;function o(e){return I(_t.syncFSRequests>0),_t.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((t=>{if(!t.type.syncfs)return i(null);t.type.syncfs(t,e,i)}))},mount:(e,t,r)=>{if("string"==typeof e)throw e;var n,o="/"===r,i=!r;if(o&&_t.root)throw new _t.ErrnoError(10);if(!o&&!i){var a=_t.lookupPath(r,{follow_mount:!1});if(r=a.path,n=a.node,_t.isMountpoint(n))throw new _t.ErrnoError(10);if(!_t.isDir(n.mode))throw new _t.ErrnoError(54)}var s={type:e,opts:t,mountpoint:r,mounts:[]},c=e.mount(s);return c.mount=s,s.root=c,o?_t.root=c:n&&(n.mounted=s,n.mount&&n.mount.mounts.push(s)),c},unmount:e=>{var t=_t.lookupPath(e,{follow_mount:!1});if(!_t.isMountpoint(t.node))throw new _t.ErrnoError(28);var r=t.node,n=r.mounted,o=_t.getMounts(n);Object.keys(_t.nameTable).forEach((e=>{for(var t=_t.nameTable[e];t;){var r=t.name_next;o.includes(t.mount)&&_t.destroyNode(t),t=r}})),r.mounted=null;var i=r.mount.mounts.indexOf(n);I(-1!==i),r.mount.mounts.splice(i,1)},lookup:(e,t)=>e.node_ops.lookup(e,t),mknod:(e,t,r)=>{var n=_t.lookupPath(e,{parent:!0}).node,o=st.basename(e);if(!o||"."===o||".."===o)throw new _t.ErrnoError(28);var i=_t.mayCreate(n,o);if(i)throw new _t.ErrnoError(i);if(!n.node_ops.mknod)throw new _t.ErrnoError(63);return n.node_ops.mknod(n,o,t,r)},create:(e,t)=>(t=void 0!==t?t:438,t&=4095,t|=32768,_t.mknod(e,t,0)),mkdir:(e,t)=>(t=void 0!==t?t:511,t&=1023,t|=16384,_t.mknod(e,t,0)),mkdirTree:(e,t)=>{for(var r=e.split("/"),n="",o=0;o<r.length;++o)if(r[o]){n+="/"+r[o];try{_t.mkdir(n,t)}catch(e){if(20!=e.errno)throw e}}},mkdev:(e,t,r)=>(void 0===r&&(r=t,t=438),t|=8192,_t.mknod(e,t,r)),symlink:(e,t)=>{if(!ut.resolve(e))throw new _t.ErrnoError(44);var r=_t.lookupPath(t,{parent:!0}).node;if(!r)throw new _t.ErrnoError(44);var n=st.basename(t),o=_t.mayCreate(r,n);if(o)throw new _t.ErrnoError(o);if(!r.node_ops.symlink)throw new _t.ErrnoError(63);return r.node_ops.symlink(r,n,e)},rename:(e,t)=>{var r,n,o=st.dirname(e),i=st.dirname(t),a=st.basename(e),s=st.basename(t);if(r=_t.lookupPath(e,{parent:!0}).node,n=_t.lookupPath(t,{parent:!0}).node,!r||!n)throw new _t.ErrnoError(44);if(r.mount!==n.mount)throw new _t.ErrnoError(75);var c,u=_t.lookupNode(r,a),l=ut.relative(e,i);if("."!==l.charAt(0))throw new _t.ErrnoError(28);if("."!==(l=ut.relative(t,o)).charAt(0))throw new _t.ErrnoError(55);try{c=_t.lookupNode(n,s)}catch(e){}if(u!==c){var d=_t.isDir(u.mode),p=_t.mayDelete(r,a,d);if(p)throw new _t.ErrnoError(p);if(p=c?_t.mayDelete(n,s,d):_t.mayCreate(n,s))throw new _t.ErrnoError(p);if(!r.node_ops.rename)throw new _t.ErrnoError(63);if(_t.isMountpoint(u)||c&&_t.isMountpoint(c))throw new _t.ErrnoError(10);if(n!==r&&(p=_t.nodePermissions(r,"w")))throw new _t.ErrnoError(p);_t.hashRemoveNode(u);try{r.node_ops.rename(u,n,s)}catch(e){throw e}finally{_t.hashAddNode(u)}}},rmdir:e=>{var t=_t.lookupPath(e,{parent:!0}).node,r=st.basename(e),n=_t.lookupNode(t,r),o=_t.mayDelete(t,r,!0);if(o)throw new _t.ErrnoError(o);if(!t.node_ops.rmdir)throw new _t.ErrnoError(63);if(_t.isMountpoint(n))throw new _t.ErrnoError(10);t.node_ops.rmdir(t,r),_t.destroyNode(n)},readdir:e=>{var t=_t.lookupPath(e,{follow:!0}).node;if(!t.node_ops.readdir)throw new _t.ErrnoError(54);return t.node_ops.readdir(t)},unlink:e=>{var t=_t.lookupPath(e,{parent:!0}).node;if(!t)throw new _t.ErrnoError(44);var r=st.basename(e),n=_t.lookupNode(t,r),o=_t.mayDelete(t,r,!1);if(o)throw new _t.ErrnoError(o);if(!t.node_ops.unlink)throw new _t.ErrnoError(63);if(_t.isMountpoint(n))throw new _t.ErrnoError(10);t.node_ops.unlink(t,r),_t.destroyNode(n)},readlink:e=>{var t=_t.lookupPath(e).node;if(!t)throw new _t.ErrnoError(44);if(!t.node_ops.readlink)throw new _t.ErrnoError(28);return ut.resolve(_t.getPath(t.parent),t.node_ops.readlink(t))},stat:(e,t)=>{var r=_t.lookupPath(e,{follow:!t}).node;if(!r)throw new _t.ErrnoError(44);if(!r.node_ops.getattr)throw new _t.ErrnoError(63);return r.node_ops.getattr(r)},lstat:e=>_t.stat(e,!0),chmod:(e,t,r)=>{var n;if(!(n="string"==typeof e?_t.lookupPath(e,{follow:!r}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);n.node_ops.setattr(n,{mode:4095&t|-4096&n.mode,timestamp:Date.now()})},lchmod:(e,t)=>{_t.chmod(e,t,!0)},fchmod:(e,t)=>{var r=_t.getStream(e);if(!r)throw new _t.ErrnoError(8);_t.chmod(r.node,t)},chown:(e,t,r,n)=>{var o;if(!(o="string"==typeof e?_t.lookupPath(e,{follow:!n}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);o.node_ops.setattr(o,{timestamp:Date.now()})},lchown:(e,t,r)=>{_t.chown(e,t,r,!0)},fchown:(e,t,r)=>{var n=_t.getStream(e);if(!n)throw new _t.ErrnoError(8);_t.chown(n.node,t,r)},truncate:(e,t)=>{if(t<0)throw new _t.ErrnoError(28);var r;if(!(r="string"==typeof e?_t.lookupPath(e,{follow:!0}).node:e).node_ops.setattr)throw new _t.ErrnoError(63);if(_t.isDir(r.mode))throw new _t.ErrnoError(31);if(!_t.isFile(r.mode))throw new _t.ErrnoError(28);var n=_t.nodePermissions(r,"w");if(n)throw new _t.ErrnoError(n);r.node_ops.setattr(r,{size:t,timestamp:Date.now()})},ftruncate:(e,t)=>{var r=_t.getStream(e);if(!r)throw new _t.ErrnoError(8);if(0==(2097155&r.flags))throw new _t.ErrnoError(28);_t.truncate(r.node,t)},utime:(e,t,r)=>{var n=_t.lookupPath(e,{follow:!0}).node;n.node_ops.setattr(n,{timestamp:Math.max(t,r)})},open:(e,t,r,n,o)=>{if(""===e)throw new _t.ErrnoError(44);var a;if(r=void 0===r?438:r,r=64&(t="string"==typeof t?_t.modeStringToFlags(t):t)?4095&r|32768:0,"object"==typeof e)a=e;else{e=st.normalize(e);try{a=_t.lookupPath(e,{follow:!(131072&t)}).node}catch(e){}}var s=!1;if(64&t)if(a){if(128&t)throw new _t.ErrnoError(20)}else a=_t.mknod(e,r,0),s=!0;if(!a)throw new _t.ErrnoError(44);if(_t.isChrdev(a.mode)&&(t&=-513),65536&t&&!_t.isDir(a.mode))throw new _t.ErrnoError(54);if(!s){var c=_t.mayOpen(a,t);if(c)throw new _t.ErrnoError(c)}512&t&&_t.truncate(a,0),t&=-131713;var u=_t.createStream({node:a,path:_t.getPath(a),flags:t,seekable:!0,position:0,stream_ops:a.stream_ops,ungotten:[],error:!1},n,o);return u.stream_ops.open&&u.stream_ops.open(u),!i.logReadFiles||1&t||(_t.readFiles||(_t.readFiles={}),e in _t.readFiles||(_t.readFiles[e]=1)),u},close:e=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);e.getdents&&(e.getdents=null);try{e.stream_ops.close&&e.stream_ops.close(e)}catch(e){throw e}finally{_t.closeStream(e.fd)}e.fd=null},isClosed:e=>null===e.fd,llseek:(e,t,r)=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);if(!e.seekable||!e.stream_ops.llseek)throw new _t.ErrnoError(70);if(0!=r&&1!=r&&2!=r)throw new _t.ErrnoError(28);return e.position=e.stream_ops.llseek(e,t,r),e.ungotten=[],e.position},read:(e,t,r,n,o)=>{if(n<0||o<0)throw new _t.ErrnoError(28);if(_t.isClosed(e))throw new _t.ErrnoError(8);if(1==(2097155&e.flags))throw new _t.ErrnoError(8);if(_t.isDir(e.node.mode))throw new _t.ErrnoError(31);if(!e.stream_ops.read)throw new _t.ErrnoError(28);var i=void 0!==o;if(i){if(!e.seekable)throw new _t.ErrnoError(70)}else o=e.position;var a=e.stream_ops.read(e,t,r,n,o);return i||(e.position+=a),a},write:(e,t,r,n,o,i)=>{if(n<0||o<0)throw new _t.ErrnoError(28);if(_t.isClosed(e))throw new _t.ErrnoError(8);if(0==(2097155&e.flags))throw new _t.ErrnoError(8);if(_t.isDir(e.node.mode))throw new _t.ErrnoError(31);if(!e.stream_ops.write)throw new _t.ErrnoError(28);e.seekable&&1024&e.flags&&_t.llseek(e,0,2);var a=void 0!==o;if(a){if(!e.seekable)throw new _t.ErrnoError(70)}else o=e.position;var s=e.stream_ops.write(e,t,r,n,o,i);return a||(e.position+=s),s},allocate:(e,t,r)=>{if(_t.isClosed(e))throw new _t.ErrnoError(8);if(t<0||r<=0)throw new _t.ErrnoError(28);if(0==(2097155&e.flags))throw new _t.ErrnoError(8);if(!_t.isFile(e.node.mode)&&!_t.isDir(e.node.mode))throw new _t.ErrnoError(43);if(!e.stream_ops.allocate)throw new _t.ErrnoError(138);e.stream_ops.allocate(e,t,r)},mmap:(e,t,r,n,o,i)=>{if(0!=(2&o)&&0==(2&i)&&2!=(2097155&e.flags))throw new _t.ErrnoError(2);if(1==(2097155&e.flags))throw new _t.ErrnoError(2);if(!e.stream_ops.mmap)throw new _t.ErrnoError(43);return e.stream_ops.mmap(e,t,r,n,o,i)},msync:(e,t,r,n,o)=>e&&e.stream_ops.msync?e.stream_ops.msync(e,t,r,n,o):0,munmap:e=>0,ioctl:(e,t,r)=>{if(!e.stream_ops.ioctl)throw new _t.ErrnoError(59);return e.stream_ops.ioctl(e,t,r)},readFile:(e,t={})=>{if(t.flags=t.flags||0,t.encoding=t.encoding||"binary","utf8"!==t.encoding&&"binary"!==t.encoding)throw new Error('Invalid encoding type "'+t.encoding+'"');var r,n=_t.open(e,t.flags),o=_t.stat(e).size,i=new Uint8Array(o);return _t.read(n,i,0,o,0),"utf8"===t.encoding?r=j(i,0):"binary"===t.encoding&&(r=i),_t.close(n),r},writeFile:(e,t,r={})=>{r.flags=r.flags||577;var n=_t.open(e,r.flags,r.mode);if("string"==typeof t){var o=new Uint8Array(B(t)+1),i=N(t,o,0,o.length);_t.write(n,o,0,i,void 0,r.canOwn)}else{if(!ArrayBuffer.isView(t))throw new Error("Unsupported data type");_t.write(n,t,0,t.byteLength,void 0,r.canOwn)}_t.close(n)},cwd:()=>_t.currentPath,chdir:e=>{var t=_t.lookupPath(e,{follow:!0});if(null===t.node)throw new _t.ErrnoError(44);if(!_t.isDir(t.node.mode))throw new _t.ErrnoError(54);var r=_t.nodePermissions(t.node,"x");if(r)throw new _t.ErrnoError(r);_t.currentPath=t.path},createDefaultDirectories:()=>{_t.mkdir("/tmp"),_t.mkdir("/home"),_t.mkdir("/home/web_user")},createDefaultDevices:()=>{_t.mkdir("/dev"),_t.registerDevice(_t.makedev(1,3),{read:()=>0,write:(e,t,r,n,o)=>n}),_t.mkdev("/dev/null",_t.makedev(1,3)),lt.register(_t.makedev(5,0),lt.default_tty_ops),lt.register(_t.makedev(6,0),lt.default_tty1_ops),_t.mkdev("/dev/tty",_t.makedev(5,0)),_t.mkdev("/dev/tty1",_t.makedev(6,0));var e=ct();_t.createDevice("/dev","random",e),_t.createDevice("/dev","urandom",e),_t.mkdir("/dev/shm"),_t.mkdir("/dev/shm/tmp")},createSpecialDirectories:()=>{_t.mkdir("/proc");var e=_t.mkdir("/proc/self");_t.mkdir("/proc/self/fd"),_t.mount({mount:()=>{var t=_t.createNode(e,"fd",16895,73);return t.node_ops={lookup:(e,t)=>{var r=+t,n=_t.getStream(r);if(!n)throw new _t.ErrnoError(8);var o={parent:null,mount:{mountpoint:"fake"},node_ops:{readlink:()=>n.path}};return o.parent=o,o}},t}},{},"/proc/self/fd")},createStandardStreams:()=>{i.stdin?_t.createDevice("/dev","stdin",i.stdin):_t.symlink("/dev/tty","/dev/stdin"),i.stdout?_t.createDevice("/dev","stdout",null,i.stdout):_t.symlink("/dev/tty","/dev/stdout"),i.stderr?_t.createDevice("/dev","stderr",null,i.stderr):_t.symlink("/dev/tty1","/dev/stderr");var e=_t.open("/dev/stdin",0),t=_t.open("/dev/stdout",1),r=_t.open("/dev/stderr",1);I(0===e.fd,"invalid handle for stdin ("+e.fd+")"),I(1===t.fd,"invalid handle for stdout ("+t.fd+")"),I(2===r.fd,"invalid handle for stderr ("+r.fd+")")},ensureErrnoError:()=>{_t.ErrnoError||(_t.ErrnoError=function(e,t){this.node=t,this.setErrno=function(e){for(var t in this.errno=e,Et)if(Et[t]===e){this.code=t;break}},this.setErrno(e),this.message=ht[e],this.stack&&(Object.defineProperty(this,"stack",{value:(new Error).stack,writable:!0}),this.stack=Ke(this.stack))},_t.ErrnoError.prototype=new Error,_t.ErrnoError.prototype.constructor=_t.ErrnoError,[44].forEach((e=>{_t.genericErrors[e]=new _t.ErrnoError(e),_t.genericErrors[e].stack="<generic error, no stack>"})))},staticInit:()=>{_t.ensureErrnoError(),_t.nameTable=new Array(4096),_t.mount(mt,{},"/"),_t.createDefaultDirectories(),_t.createDefaultDevices(),_t.createSpecialDirectories(),_t.filesystems={MEMFS:mt}},init:(e,t,r)=>{I(!_t.init.initialized,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),_t.init.initialized=!0,_t.ensureErrnoError(),i.stdin=e||i.stdin,i.stdout=t||i.stdout,i.stderr=r||i.stderr,_t.createStandardStreams()},quit:()=>{_t.init.initialized=!1,Ud();for(var e=0;e<_t.streams.length;e++){var t=_t.streams[e];t&&_t.close(t)}},getMode:(e,t)=>{var r=0;return e&&(r|=365),t&&(r|=146),r},findObject:(e,t)=>{var r=_t.analyzePath(e,t);return r.exists?r.object:null},analyzePath:(e,t)=>{try{e=(n=_t.lookupPath(e,{follow:!t})).path}catch(e){}var r={isRoot:!1,exists:!1,error:0,name:null,path:null,object:null,parentExists:!1,parentPath:null,parentObject:null};try{var n=_t.lookupPath(e,{parent:!0});r.parentExists=!0,r.parentPath=n.path,r.parentObject=n.node,r.name=st.basename(e),n=_t.lookupPath(e,{follow:!t}),r.exists=!0,r.path=n.path,r.object=n.node,r.name=n.node.name,r.isRoot="/"===n.path}catch(e){r.error=e.errno}return r},createPath:(e,t,r,n)=>{e="string"==typeof e?e:_t.getPath(e);for(var o=t.split("/").reverse();o.length;){var i=o.pop();if(i){var a=st.join2(e,i);try{_t.mkdir(a)}catch(e){}e=a}}return a},createFile:(e,t,r,n,o)=>{var i=st.join2("string"==typeof e?e:_t.getPath(e),t),a=_t.getMode(n,o);return _t.create(i,a)},createDataFile:(e,t,r,n,o,i)=>{var a=t;e&&(e="string"==typeof e?e:_t.getPath(e),a=t?st.join2(e,t):e);var s=_t.getMode(n,o),c=_t.create(a,s);if(r){if("string"==typeof r){for(var u=new Array(r.length),l=0,d=r.length;l<d;++l)u[l]=r.charCodeAt(l);r=u}_t.chmod(c,146|s);var p=_t.open(c,577);_t.write(p,r,0,r.length,0,i),_t.close(p),_t.chmod(c,s)}return c},createDevice:(e,t,r,n)=>{var o=st.join2("string"==typeof e?e:_t.getPath(e),t),i=_t.getMode(!!r,!!n);_t.createDevice.major||(_t.createDevice.major=64);var a=_t.makedev(_t.createDevice.major++,0);return _t.registerDevice(a,{open:e=>{e.seekable=!1},close:e=>{n&&n.buffer&&n.buffer.length&&n(10)},read:(e,t,n,o,i)=>{for(var a=0,s=0;s<o;s++){var c;try{c=r()}catch(e){throw new _t.ErrnoError(29)}if(void 0===c&&0===a)throw new _t.ErrnoError(6);if(null==c)break;a++,t[n+s]=c}return a&&(e.node.timestamp=Date.now()),a},write:(e,t,r,o,i)=>{for(var a=0;a<o;a++)try{n(t[r+a])}catch(e){throw new _t.ErrnoError(29)}return o&&(e.node.timestamp=Date.now()),a}}),_t.mkdev(o,i,a)},forceLoadFile:e=>{if(e.isDevice||e.isFolder||e.link||e.contents)return!0;if("undefined"!=typeof XMLHttpRequest)throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!E)throw new Error("Cannot load without read() or XMLHttpRequest.");try{e.contents=Ad(E(e.url),!0),e.usedBytes=e.contents.length}catch(e){throw new _t.ErrnoError(29)}},createLazyFile:(e,t,r,n,o)=>{function i(){this.lengthKnown=!1,this.chunks=[]}if(i.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize,r=e/this.chunkSize|0;return this.getter(r)[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((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]=((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),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||[]):Ad(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(!m)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=_t.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((e=>{var t=c.stream_ops[e];u[e]=function(){return _t.forceLoadFile(c),t.apply(null,arguments)}})),u.read=(e,t,r,n,o)=>{_t.forceLoadFile(c);var i=e.node.contents;if(o>=i.length)return 0;var a=Math.min(i.length-o,n);if(I(a>=0),i.slice)for(var s=0;s<a;s++)t[r+s]=i[o+s];else for(s=0;s<a;s++)t[r+s]=i.get(o+s);return a},c.stream_ops=u,c},createPreloadedFile:(e,t,r,n,o,i,a,s,c,u)=>{var l=t?ut.resolve(st.join2(e,t)):e,d=Le("cp "+l);function p(r){function p(r){u&&u(),s||_t.createDataFile(e,t,r,n,o,c),i&&i(),Ue(d)}To.handledByPreloadPlugin(r,l,p,(()=>{a&&a(),Ue(d)}))||p(r)}je(d),"string"==typeof r?gt(r,(e=>p(e)),a):p(r)},indexedDB:()=>window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,DB_NAME:()=>"EM_FS_"+window.location.pathname,DB_VERSION:20,DB_STORE_NAME:"FILE_DATA",saveFilesToDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_t.indexedDB();try{var o=n.open(_t.DB_NAME(),_t.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=()=>{T("creating db"),o.result.createObjectStore(_t.DB_STORE_NAME)},o.onsuccess=()=>{var n=o.result.transaction([_t.DB_STORE_NAME],"readwrite"),i=n.objectStore(_t.DB_STORE_NAME),a=0,s=0,c=e.length;function u(){0==s?t():r()}e.forEach((e=>{var t=i.put(_t.analyzePath(e).object.contents,e);t.onsuccess=()=>{++a+s==c&&u()},t.onerror=()=>{s++,a+s==c&&u()}})),n.onerror=r},o.onerror=r},loadFilesFromDB:(e,t,r)=>{t=t||(()=>{}),r=r||(()=>{});var n=_t.indexedDB();try{var o=n.open(_t.DB_NAME(),_t.DB_VERSION)}catch(e){return r(e)}o.onupgradeneeded=r,o.onsuccess=()=>{var n=o.result;try{var i=n.transaction([_t.DB_STORE_NAME],"readonly")}catch(e){return void r(e)}var a=i.objectStore(_t.DB_STORE_NAME),s=0,c=0,u=e.length;function l(){0==c?t():r()}e.forEach((e=>{var t=a.get(e);t.onsuccess=()=>{_t.analyzePath(e).exists&&_t.unlink(e),_t.createDataFile(st.dirname(e),st.basename(e),t.result,!0,!0,!0),++s+c==u&&l()},t.onerror=()=>{c++,s+c==u&&l()}})),i.onerror=r},o.onerror=r},absolutePath:()=>{Ne("FS.absolutePath has been removed; use PATH_FS.resolve instead")},createFolder:()=>{Ne("FS.createFolder has been removed; use FS.mkdir instead")},createLink:()=>{Ne("FS.createLink has been removed; use FS.symlink instead")},joinPath:()=>{Ne("FS.joinPath has been removed; use PATH.join instead")},mmapAlloc:()=>{Ne("FS.mmapAlloc has been replaced by the top level function mmapAlloc")},standardizePath:()=>{Ne("FS.standardizePath has been removed; use PATH.normalize instead")}},yt={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if("/"===t[0])return t;var n;if(-100===e)n=_t.cwd();else{var o=_t.getStream(e);if(!o)throw new _t.ErrnoError(8);n=o.path}if(0==t.length){if(!r)throw new _t.ErrnoError(44);return n}return st.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&st.normalize(t)!==st.normalize(_t.getPath(e.node)))return-54;throw e}return W[r>>2]=n.dev,W[r+4>>2]=0,W[r+8>>2]=n.ino,W[r+12>>2]=n.mode,W[r+16>>2]=n.nlink,W[r+20>>2]=n.uid,W[r+24>>2]=n.gid,W[r+28>>2]=n.rdev,W[r+32>>2]=0,Xe=[n.size>>>0,(Be=n.size,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[r+40>>2]=Xe[0],W[r+44>>2]=Xe[1],W[r+48>>2]=4096,W[r+52>>2]=n.blocks,W[r+56>>2]=n.atime.getTime()/1e3|0,W[r+60>>2]=0,W[r+64>>2]=n.mtime.getTime()/1e3|0,W[r+68>>2]=0,W[r+72>>2]=n.ctime.getTime()/1e3|0,W[r+76>>2]=0,Xe=[n.ino>>>0,(Be=n.ino,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[r+80>>2]=Xe[0],W[r+84>>2]=Xe[1],0},doMsync:function(e,t,r,n,o){var i=Z.slice(e,e+r);_t.msync(t,i,o,r,n)},doMkdir:function(e,t){return"/"===(e=st.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),_t.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 _t.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-28;var n=_t.readlink(e),o=Math.min(r,B(n)),i=Q[t+o];return H(n,t,r+1),Q[t+o]=i,o},doAccess:function(e,t){if(-8&t)return-28;var r=_t.lookupPath(e,{follow:!0}).node;if(!r)return-44;var n="";return 4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),n&&_t.nodePermissions(r,n)?-2:0},doDup:function(e,t,r){var n=_t.getStream(r);return n&&_t.close(n),_t.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var a=W[t+8*i>>2],s=W[t+(8*i+4)>>2],c=_t.read(e,Q,a,s,n);if(c<0)return-1;if(o+=c,c<s)break}return o},doWritev:function(e,t,r,n){for(var o=0,i=0;i<r;i++){var a=W[t+8*i>>2],s=W[t+(8*i+4)>>2],c=_t.write(e,Q,a,s,n);if(c<0)return-1;o+=c}return o},varargs:void 0,get:function(){return I(null!=yt.varargs),yt.varargs+=4,W[yt.varargs-4>>2]},getStr:function(e){return U(e)},getStreamFromFD:function(e){var t=_t.getStream(e);if(!t)throw new _t.ErrnoError(8);return t},get64:function(e,t){return I(e>=0?0===t:-1===t),e}};function vt(e,t,r){yt.varargs=r;try{var n=yt.getStreamFromFD(e);switch(t){case 0:return(o=yt.get())<0?-28:_t.open(n.path,n.flags,0,o).fd;case 1:case 2:return 0;case 3:return n.flags;case 4:var o=yt.get();return n.flags|=o,0;case 5:return o=yt.get(),G[o+0>>1]=2,0;case 6:case 7:return 0;case 16:case 8:return-28;case 9:return at(28),-1;default:return-28}}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function bt(e,t){try{var r=yt.getStreamFromFD(e);return yt.doStat(_t.stat,r.path,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function wt(e,t,r,n){try{t=yt.getStr(t);var o=256&n,i=4096&n;return I(!(n&=-4353),n),t=yt.calculateAt(e,t,i),yt.doStat(o?_t.lstat:_t.stat,t,r)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Tt(e,t,r){try{var n=yt.getStreamFromFD(e);n.getdents||(n.getdents=_t.readdir(n.path));for(var o=280,i=0,a=_t.llseek(n,0,1),s=Math.floor(a/o);s<n.getdents.length&&i+o<=r;){var c,u,l=n.getdents[s];if("."===l)c=n.node.id,u=4;else if(".."===l)c=_t.lookupPath(n.path,{parent:!0}).node.id,u=4;else{var d=_t.lookupNode(n.node,l);c=d.id,u=_t.isChrdev(d.mode)?2:_t.isDir(d.mode)?4:_t.isLink(d.mode)?10:8}I(c),Xe=[c>>>0,(Be=c,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[t+i>>2]=Xe[0],W[t+i+4>>2]=Xe[1],Xe=[(s+1)*o>>>0,(Be=(s+1)*o,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[t+i+8>>2]=Xe[0],W[t+i+12>>2]=Xe[1],G[t+i+16>>1]=280,Q[t+i+18>>0]=u,H(l,t+i+19,256),i+=o,s+=1}return _t.llseek(n,s*o,0),i}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Ot(e,t,r){yt.varargs=r;try{var n=yt.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:if(!n.tty)return-59;var o=yt.get();return W[o>>2]=0,0;case 21520:return n.tty?-28:-59;case 21531:return o=yt.get(),_t.ioctl(n,t,o);case 21523:case 21524:return n.tty?0:-59;default:Ne("bad ioctl syscall "+t)}}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Pt(e,t){try{return e=yt.getStr(e),yt.doStat(_t.lstat,e,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function Dt(e,t,r){yt.varargs=r;try{var n=yt.getStr(e),o=r?yt.get():0;return _t.open(n,t,o).fd}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function xt(e,t){try{return e=yt.getStr(e),yt.doStat(_t.stat,e,t)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function St(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}function Rt(e,t){Ne("To use dlopen, you need to use Emscripten's linking support, see https://github.com/emscripten-core/emscripten/wiki/Linking")}var Mt={};function At(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function kt(e){return this.fromWireType(V[e>>2])}var Ft={},Ct={},It={},Lt=48,jt=57;function Ut(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=Lt&&t<=jt?"_"+e:e}function Nt(e,t){return e=Ut(e),new Function("body","return function "+e+'() {\n "use strict"; return body.apply(this, arguments);\n};\n')(t)}function Ht(e,t){var r=Nt(t,(function(e){this.name=t,this.message=e;var r=new Error(e).stack;void 0!==r&&(this.stack=this.toString()+"\n"+r.replace(/^Error(:[^\n]*)?\n/,""))}));return r.prototype=Object.create(e.prototype),r.prototype.constructor=r,r.prototype.toString=function(){return void 0===this.message?this.name:this.name+": "+this.message},r}var Bt=void 0;function Xt(e){throw new Bt(e)}function Qt(e,t,r){function n(t){var n=r(t);n.length!==e.length&&Xt("Mismatched type converter count");for(var o=0;o<e.length;++o)er(e[o],n[o])}e.forEach((function(e){It[e]=t}));var o=new Array(t.length),i=[],a=0;t.forEach((function(e,t){Ct.hasOwnProperty(e)?o[t]=Ct[e]:(i.push(e),Ft.hasOwnProperty(e)||(Ft[e]=[]),Ft[e].push((function(){o[t]=Ct[e],++a===i.length&&n(o)})))})),0===i.length&&n(o)}function Zt(e){var t=Mt[e];delete Mt[e];var r=t.elements,n=r.length,o=r.map((function(e){return e.getterReturnType})).concat(r.map((function(e){return e.setterArgumentType}))),i=t.rawConstructor,a=t.rawDestructor;Qt([e],o,(function(e){return r.forEach((function(t,r){var o=e[r],i=t.getter,a=t.getterContext,s=e[r+n],c=t.setter,u=t.setterContext;t.read=e=>o.fromWireType(i(a,e)),t.write=(e,t)=>{var r=[];c(u,e,s.toWireType(r,t)),At(r)}})),[{name:t.name,fromWireType:function(e){for(var t=new Array(n),o=0;o<n;++o)t[o]=r[o].read(e);return a(e),t},toWireType:function(e,o){if(n!==o.length)throw new TypeError("Incorrect number of tuple elements for "+t.name+": expected="+n+", actual="+o.length);for(var s=i(),c=0;c<n;++c)r[c].write(s,o[c]);return null!==e&&e.push(a,s),s},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:a}]}))}var Gt={};function qt(e){var t=Gt[e];delete Gt[e];var r=t.rawConstructor,n=t.rawDestructor,o=t.fields;Qt([e],o.map((function(e){return e.getterReturnType})).concat(o.map((function(e){return e.setterArgumentType}))),(function(e){var i={};return o.forEach((function(t,r){var n=t.fieldName,a=e[r],s=t.getter,c=t.getterContext,u=e[r+o.length],l=t.setter,d=t.setterContext;i[n]={read:function(e){return a.fromWireType(s(c,e))},write:function(e,t){var r=[];l(d,e,u.toWireType(r,t)),At(r)}}})),[{name:t.name,fromWireType:function(e){var t={};for(var r in i)t[r]=i[r].read(e);return n(e),t},toWireType:function(e,t){for(var o in i)if(!(o in t))throw new TypeError('Missing field: "'+o+'"');var a=r();for(o in i)i[o].write(a,t[o]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:n}]}))}function Wt(e,t,r,n,o){}function Vt(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw new TypeError("Unknown type size: "+e)}}function zt(){for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);$t=e}var $t=void 0;function Yt(e){for(var t="",r=e;Z[r];)t+=$t[Z[r++]];return t}var Kt=void 0;function Jt(e){throw new Kt(e)}function er(e,t,r={}){if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");var n=t.name;if(e||Jt('type "'+n+'" must have a positive integer typeid pointer'),Ct.hasOwnProperty(e)){if(r.ignoreDuplicateRegistrations)return;Jt("Cannot register type '"+n+"' twice")}if(Ct[e]=t,delete It[e],Ft.hasOwnProperty(e)){var o=Ft[e];delete Ft[e],o.forEach((function(e){e()}))}}function tr(e,t,r,n,o){var i=Vt(r);er(e,{name:t=Yt(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:o},argPackAdvance:8,readValueFromPointer:function(e){var n;if(1===r)n=Q;else if(2===r)n=G;else{if(4!==r)throw new TypeError("Unknown boolean type size: "+t);n=W}return this.fromWireType(n[e>>i])},destructorFunction:null})}function rr(e){if(!(this instanceof Rr))return!1;if(!(e instanceof Rr))return!1;for(var t=this.$$.ptrType.registeredClass,r=this.$$.ptr,n=e.$$.ptrType.registeredClass,o=e.$$.ptr;t.baseClass;)r=t.upcast(r),t=t.baseClass;for(;n.baseClass;)o=n.upcast(o),n=n.baseClass;return t===n&&r===o}function nr(e){return{count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}}function or(e){Jt(e.$$.ptrType.registeredClass.name+" instance already deleted")}var ir=!1;function ar(e){}function sr(e){e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)}function cr(e){e.count.value-=1,0===e.count.value&&sr(e)}function ur(e,t,r){if(t===r)return e;if(void 0===r.baseClass)return null;var n=ur(e,t,r.baseClass);return null===n?null:r.downcast(n)}var lr={};function dr(){return Object.keys(_r).length}function pr(){var e=[];for(var t in _r)_r.hasOwnProperty(t)&&e.push(_r[t]);return e}var fr=[];function mr(){for(;fr.length;){var e=fr.pop();e.$$.deleteScheduled=!1,e.delete()}}var gr=void 0;function hr(e){gr=e,fr.length&&gr&&gr(mr)}function Er(){i.getInheritedInstanceCount=dr,i.getLiveInheritedInstances=pr,i.flushPendingDeletes=mr,i.setDelayFunction=hr}var _r={};function yr(e,t){for(void 0===t&&Jt("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t}function vr(e,t){return t=yr(e,t),_r[t]}function br(e,t){return t.ptrType&&t.ptr||Xt("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!=!!t.smartPtr&&Xt("Both smartPtrType and smartPtr must be specified"),t.count={value:1},Tr(Object.create(e,{$$:{value:t}}))}function wr(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var r=vr(this.registeredClass,t);if(void 0!==r){if(0===r.$$.count.value)return r.$$.ptr=t,r.$$.smartPtr=e,r.clone();var n=r.clone();return this.destructor(e),n}function o(){return this.isSmartPointer?br(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):br(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i,a=this.registeredClass.getActualType(t),s=lr[a];if(!s)return o.call(this);i=this.isConst?s.constPointerType:s.pointerType;var c=ur(t,this.registeredClass,i.registeredClass);return null===c?o.call(this):this.isSmartPointer?br(i.registeredClass.instancePrototype,{ptrType:i,ptr:c,smartPtrType:this,smartPtr:e}):br(i.registeredClass.instancePrototype,{ptrType:i,ptr:c})}function Tr(e){return"undefined"==typeof FinalizationRegistry?(Tr=e=>e,e):(ir=new FinalizationRegistry((e=>{console.warn(e.leakWarning.stack.replace(/^Error: /,"")),cr(e.$$)})),ar=e=>ir.unregister(e),(Tr=e=>{var t=e.$$;if(t.smartPtr){var r={$$:t},n=t.ptrType.registeredClass;r.leakWarning=new Error("Embind found a leaked C++ instance "+n.name+" <0x"+t.ptr.toString(16)+">.\nWe'll free it automatically in this case, but this functionality is not reliable across various environments.\nMake sure to invoke .delete() manually once you're done with the instance instead.\nOriginally allocated"),"captureStackTrace"in Error&&Error.captureStackTrace(r.leakWarning,wr),ir.register(e,r,e)}return e})(e))}function Or(){if(this.$$.ptr||or(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Tr(Object.create(Object.getPrototypeOf(this),{$$:{value:nr(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e}function Pr(){this.$$.ptr||or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Jt("Object already scheduled for deletion"),ar(this),cr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)}function Dr(){return!this.$$.ptr}function xr(){return this.$$.ptr||or(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Jt("Object already scheduled for deletion"),fr.push(this),1===fr.length&&gr&&gr(mr),this.$$.deleteScheduled=!0,this}function Sr(){Rr.prototype.isAliasOf=rr,Rr.prototype.clone=Or,Rr.prototype.delete=Pr,Rr.prototype.isDeleted=Dr,Rr.prototype.deleteLater=xr}function Rr(){}function Mr(e,t,r){if(void 0===e[t].overloadTable){var n=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||Jt("Function '"+r+"' called with an invalid number of arguments ("+arguments.length+") - expects one of ("+e[t].overloadTable+")!"),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[n.argCount]=n}}function Ar(e,t,r){i.hasOwnProperty(e)?((void 0===r||void 0!==i[e].overloadTable&&void 0!==i[e].overloadTable[r])&&Jt("Cannot register public name '"+e+"' twice"),Mr(i,e,e),i.hasOwnProperty(r)&&Jt("Cannot register multiple overloads of a function with the same number of arguments ("+r+")!"),i[e].overloadTable[r]=t):(i[e]=t,void 0!==r&&(i[e].numArguments=r))}function kr(e,t,r,n,o,i,a,s){this.name=e,this.constructor=t,this.instancePrototype=r,this.rawDestructor=n,this.baseClass=o,this.getActualType=i,this.upcast=a,this.downcast=s,this.pureVirtualFunctions=[]}function Fr(e,t,r){for(;t!==r;)t.upcast||Jt("Expected null or instance of "+r.name+", got an instance of "+t.name),e=t.upcast(e),t=t.baseClass;return e}function Cr(e,t){if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name);var r=t.$$.ptrType.registeredClass;return Fr(t.$$.ptr,r,this.registeredClass)}function Ir(e,t){var r;if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),this.isSmartPointer?(r=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,r),r):0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name),!this.isConst&&t.$$.ptrType.isConst&&Jt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);var n=t.$$.ptrType.registeredClass;if(r=Fr(t.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&Jt("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?r=t.$$.smartPtr:Jt("Cannot convert argument of type "+(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name)+" to parameter type "+this.name);break;case 1:r=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)r=t.$$.smartPtr;else{var o=t.clone();r=this.rawShare(r,un.toHandle((function(){o.delete()}))),null!==e&&e.push(this.rawDestructor,r)}break;default:Jt("Unsupporting sharing policy")}return r}function Lr(e,t){if(null===t)return this.isReference&&Jt("null is not a valid "+this.name),0;t.$$||Jt('Cannot pass "'+gn(t)+'" as a '+this.name),t.$$.ptr||Jt("Cannot pass deleted object as a pointer of type "+this.name),t.$$.ptrType.isConst&&Jt("Cannot convert argument of type "+t.$$.ptrType.name+" to parameter type "+this.name);var r=t.$$.ptrType.registeredClass;return Fr(t.$$.ptr,r,this.registeredClass)}function jr(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e}function Ur(e){this.rawDestructor&&this.rawDestructor(e)}function Nr(e){null!==e&&e.delete()}function Hr(){Br.prototype.getPointee=jr,Br.prototype.destructor=Ur,Br.prototype.argPackAdvance=8,Br.prototype.readValueFromPointer=kt,Br.prototype.deleteObject=Nr,Br.prototype.fromWireType=wr}function Br(e,t,r,n,o,i,a,s,c,u,l){this.name=e,this.registeredClass=t,this.isReference=r,this.isConst=n,this.isSmartPointer=o,this.pointeeType=i,this.sharingPolicy=a,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=u,this.rawDestructor=l,o||void 0!==t.baseClass?this.toWireType=Ir:n?(this.toWireType=Cr,this.destructorFunction=null):(this.toWireType=Lr,this.destructorFunction=null)}function Xr(e,t,r){i.hasOwnProperty(e)||Xt("Replacing nonexistant public symbol"),void 0!==i[e].overloadTable&&void 0!==r?i[e].overloadTable[r]=t:(i[e]=t,i[e].argCount=r)}function Qr(e,t,r){I("dynCall_"+e in i,"bad function pointer type - no table for sig '"+e+"'"),r&&r.length?I(r.length===e.substring(1).replace(/j/g,"--").length):I(1==e.length);var n=i["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}function Zr(e,t,r){return e.includes("j")?Qr(e,t,r):(I(et(t),"missing table entry in dynCall: "+t),et(t).apply(null,r))}function Gr(e,t){I(e.includes("j"),"getDynCaller should only be called with i64 sigs");var r=[];return function(){return r.length=0,Object.assign(r,arguments),Zr(e,t,r)}}function qr(e,t){var r=(e=Yt(e)).includes("j")?Gr(e,t):et(t);return"function"!=typeof r&&Jt("unknown function pointer with signature "+e+": "+t),r}var Wr=void 0;function Vr(e){var t=jd(e),r=Yt(t);return Id(t),r}function zr(e,t){var r=[],n={};throw t.forEach((function e(t){n[t]||Ct[t]||(It[t]?It[t].forEach(e):(r.push(t),n[t]=!0))})),new Wr(e+": "+r.map(Vr).join([", "]))}function $r(e,t,r,n,o,i,a,s,c,u,l,d,p){l=Yt(l),i=qr(o,i),s&&(s=qr(a,s)),u&&(u=qr(c,u)),p=qr(d,p);var f=Ut(l);Ar(f,(function(){zr("Cannot construct "+l+" due to unbound types",[n])})),Qt([e,t,r],n?[n]:[],(function(t){var r,o;t=t[0],o=n?(r=t.registeredClass).instancePrototype:Rr.prototype;var a=Nt(f,(function(){if(Object.getPrototypeOf(this)!==c)throw new Kt("Use 'new' to construct "+l);if(void 0===d.constructor_body)throw new Kt(l+" has no accessible constructor");var e=d.constructor_body[arguments.length];if(void 0===e)throw new Kt("Tried to invoke ctor of "+l+" with invalid number of parameters ("+arguments.length+") - expected ("+Object.keys(d.constructor_body).toString()+") parameters instead!");return e.apply(this,arguments)})),c=Object.create(o,{constructor:{value:a}});a.prototype=c;var d=new kr(l,a,c,p,r,i,s,u),m=new Br(l,d,!0,!1,!1),g=new Br(l+"*",d,!1,!1,!1),h=new Br(l+" const*",d,!1,!0,!1);return lr[e]={pointerType:g,constPointerType:h},Xr(f,a),[m,g,h]}))}function Yr(e,t){for(var r=[],n=0;n<e;n++)r.push(W[(t>>2)+n]);return r}function Kr(e,t,r,n,o,i){I(t>0);var a=Yr(t,r);o=qr(n,o),Qt([],[e],(function(e){var r="constructor "+(e=e[0]).name;if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new Kt("Cannot register multiple constructors with identical number of parameters ("+(t-1)+") for class '"+e.name+"'! Overload resolution is currently only performed using the parameter count, not actual type info!");return e.registeredClass.constructor_body[t-1]=()=>{zr("Cannot construct "+e.name+" due to unbound types",a)},Qt([],a,(function(n){return n.splice(1,0,null),e.registeredClass.constructor_body[t-1]=en(r,n,null,o,i),[]})),[]}))}function Jr(e,t){if(!(e instanceof Function))throw new TypeError("new_ called with constructor type "+typeof e+" which is not a function");var r=Nt(e.name||"unknownFunctionName",(function(){}));r.prototype=e.prototype;var n=new r,o=e.apply(n,t);return o instanceof Object?o:n}function en(e,t,r,n,o){var i=t.length;i<2&&Jt("argTypes array size mismatch! Must at least get return value and 'this' types!");for(var a=null!==t[1]&&null!==r,s=!1,c=1;c<t.length;++c)if(null!==t[c]&&void 0===t[c].destructorFunction){s=!0;break}var u="void"!==t[0].name,l="",d="";for(c=0;c<i-2;++c)l+=(0!==c?", ":"")+"arg"+c,d+=(0!==c?", ":"")+"arg"+c+"Wired";var p="return function "+Ut(e)+"("+l+") {\nif (arguments.length !== "+(i-2)+") {\nthrowBindingError('function "+e+" called with ' + arguments.length + ' arguments, expected "+(i-2)+" args!');\n}\n";s&&(p+="var destructors = [];\n");var f=s?"destructors":"null",m=["throwBindingError","invoker","fn","runDestructors","retType","classParam"],g=[Jt,n,o,At,t[0],t[1]];for(a&&(p+="var thisWired = classParam.toWireType("+f+", this);\n"),c=0;c<i-2;++c)p+="var arg"+c+"Wired = argType"+c+".toWireType("+f+", arg"+c+"); // "+t[c+2].name+"\n",m.push("argType"+c),g.push(t[c+2]);if(a&&(d="thisWired"+(d.length>0?", ":"")+d),p+=(u?"var rv = ":"")+"invoker(fn"+(d.length>0?", ":"")+d+");\n",s)p+="runDestructors(destructors);\n";else for(c=a?1:2;c<t.length;++c){var h=1===c?"thisWired":"arg"+(c-2)+"Wired";null!==t[c].destructorFunction&&(p+=h+"_dtor("+h+"); // "+t[c].name+"\n",m.push(h+"_dtor"),g.push(t[c].destructorFunction))}return u&&(p+="var ret = retType.fromWireType(rv);\nreturn ret;\n"),p+="}\n",m.push(p),Jr(Function,m).apply(null,g)}function tn(e,t,r,n,o,i,a,s){var c=Yr(r,n);t=Yt(t),i=qr(o,i),Qt([],[e],(function(e){var n=(e=e[0]).name+"."+t;function o(){zr("Cannot call "+n+" due to unbound types",c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var u=e.registeredClass.instancePrototype,l=u[t];return void 0===l||void 0===l.overloadTable&&l.className!==e.name&&l.argCount===r-2?(o.argCount=r-2,o.className=e.name,u[t]=o):(Mr(u,t,n),u[t].overloadTable[r-2]=o),Qt([],c,(function(o){var s=en(n,o,e,i,a);return void 0===u[t].overloadTable?(s.argCount=r-2,u[t]=s):u[t].overloadTable[r-2]=s,[]})),[]}))}var rn=[],nn=[{},{value:void 0},{value:null},{value:!0},{value:!1}];function on(e){e>4&&0==--nn[e].refcount&&(nn[e]=void 0,rn.push(e))}function an(){for(var e=0,t=5;t<nn.length;++t)void 0!==nn[t]&&++e;return e}function sn(){for(var e=5;e<nn.length;++e)if(void 0!==nn[e])return nn[e];return null}function cn(){i.count_emval_handles=an,i.get_first_emval=sn}var un={toValue:function(e){return e||Jt("Cannot use deleted val. handle = "+e),nn[e].value},toHandle:function(e){switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:var t=rn.length?rn.pop():nn.length;return nn[t]={refcount:1,value:e},t}}};function ln(e,t){er(e,{name:t=Yt(t),fromWireType:function(e){var t=un.toValue(e);return on(e),t},toWireType:function(e,t){return un.toHandle(t)},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:null})}function dn(e,t,r){switch(t){case 0:return function(e){var t=r?Q:Z;return this.fromWireType(t[e])};case 1:return function(e){var t=r?G:q;return this.fromWireType(t[e>>1])};case 2:return function(e){var t=r?W:V;return this.fromWireType(t[e>>2])};default:throw new TypeError("Unknown integer type: "+e)}}function pn(e,t,r,n){var o=Vt(r);function i(){}t=Yt(t),i.values={},er(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:dn(t,o,n),destructorFunction:null}),Ar(t,i)}function fn(e,t){var r=Ct[e];return void 0===r&&Jt(t+" has unknown type "+Vr(e)),r}function mn(e,t,r){var n=fn(e,"enum");t=Yt(t);var o=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:r},constructor:{value:Nt(n.name+"_"+t,(function(){}))}});o.values[r]=i,o[t]=i}function gn(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}function hn(e,t){switch(t){case 2:return function(e){return this.fromWireType(z[e>>2])};case 3:return function(e){return this.fromWireType($[e>>3])};default:throw new TypeError("Unknown float type: "+e)}}function En(e,t,r){var n=Vt(r);er(e,{name:t=Yt(t),fromWireType:function(e){return e},toWireType:function(e,t){if("number"!=typeof t&&"boolean"!=typeof t)throw new TypeError('Cannot convert "'+gn(t)+'" to '+this.name);return t},argPackAdvance:8,readValueFromPointer:hn(t,n),destructorFunction:null})}function _n(e,t,r,n,o,i){var a=Yr(t,r);e=Yt(e),o=qr(n,o),Ar(e,(function(){zr("Cannot call "+e+" due to unbound types",a)}),t-1),Qt([],a,(function(r){var n=[r[0],null].concat(r.slice(1));return Xr(e,en(e,n,null,o,i),t-1),[]}))}function yn(e,t,r){switch(t){case 0:return r?function(e){return Q[e]}:function(e){return Z[e]};case 1:return r?function(e){return G[e>>1]}:function(e){return q[e>>1]};case 2:return r?function(e){return W[e>>2]}:function(e){return V[e>>2]};default:throw new TypeError("Unknown integer type: "+e)}}function vn(e,t,r,n,o){t=Yt(t),-1===o&&(o=4294967295);var i=Vt(r),a=e=>e;if(0===n){var s=32-8*r;a=e=>e<<s>>>s}var c=t.includes("unsigned"),u=(e,r)=>{if("number"!=typeof e&&"boolean"!=typeof e)throw new TypeError('Cannot convert "'+gn(e)+'" to '+r);if(e<n||e>o)throw new TypeError('Passing a number "'+gn(e)+'" from JS side to C/C++ side to an argument of type "'+t+'", which is outside the valid range ['+n+", "+o+"]!")};er(e,{name:t,fromWireType:a,toWireType:c?function(e,t){return u(t,this.name),t>>>0}:function(e,t){return u(t,this.name),t},argPackAdvance:8,readValueFromPointer:yn(t,i,0!==n),destructorFunction:null})}function bn(e,t,r){var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function o(e){var t=V,r=t[e>>=2],o=t[e+1];return new n(X,o,r)}er(e,{name:r=Yt(r),fromWireType:o,argPackAdvance:8,readValueFromPointer:o},{ignoreDuplicateRegistrations:!0})}function wn(e,t,r,n,o,i,a,s,c,u,l,d){r=Yt(r),i=qr(o,i),s=qr(a,s),u=qr(c,u),d=qr(l,d),Qt([e],[t],(function(e){return e=e[0],[new Br(r,e.registeredClass,!1,!1,!0,e,n,i,s,u,d)]}))}function Tn(e,t){var r="std::string"===(t=Yt(t));er(e,{name:t,fromWireType:function(e){var t,n=V[e>>2];if(r)for(var o=e+4,i=0;i<=n;++i){var a=e+4+i;if(i==n||0==Z[a]){var s=U(o,a-o);void 0===t?t=s:(t+=String.fromCharCode(0),t+=s),o=a+1}}else{var c=new Array(n);for(i=0;i<n;++i)c[i]=String.fromCharCode(Z[e+4+i]);t=c.join("")}return Id(e),t},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||Jt("Cannot pass non-string to std::string");var o=(r&&n?()=>B(t):()=>t.length)(),i=Cd(4+o+1);if(V[i>>2]=o,r&&n)H(t,i+4,o+1);else if(n)for(var a=0;a<o;++a){var s=t.charCodeAt(a);s>255&&(Id(i),Jt("String has UTF-16 code units that do not fit in 8 bits")),Z[i+4+a]=s}else for(a=0;a<o;++a)Z[i+4+a]=t[a];return null!==e&&e.push(Id,i),i},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:function(e){Id(e)}})}function On(e,t,r){var n,o,i,a,s;r=Yt(r),2===t?(n=K,o=J,a=ee,i=()=>q,s=1):4===t&&(n=te,o=re,a=ne,i=()=>V,s=2),er(e,{name:r,fromWireType:function(e){for(var r,o=V[e>>2],a=i(),c=e+4,u=0;u<=o;++u){var l=e+4+u*t;if(u==o||0==a[l>>s]){var d=n(c,l-c);void 0===r?r=d:(r+=String.fromCharCode(0),r+=d),c=l+t}}return Id(e),r},toWireType:function(e,n){"string"!=typeof n&&Jt("Cannot pass non-string to C++ string type "+r);var i=a(n),c=Cd(4+i+t);return V[c>>2]=i>>s,o(n,c+4,i+t),null!==e&&e.push(Id,c),c},argPackAdvance:8,readValueFromPointer:kt,destructorFunction:function(e){Id(e)}})}function Pn(e,t,r,n,o,i){Mt[e]={name:Yt(t),rawConstructor:qr(r,n),rawDestructor:qr(o,i),elements:[]}}function Dn(e,t,r,n,o,i,a,s,c){Mt[e].elements.push({getterReturnType:t,getter:qr(r,n),getterContext:o,setterArgumentType:i,setter:qr(a,s),setterContext:c})}function xn(e,t,r,n,o,i){Gt[e]={name:Yt(t),rawConstructor:qr(r,n),rawDestructor:qr(o,i),fields:[]}}function Sn(e,t,r,n,o,i,a,s,c,u){Gt[e].fields.push({fieldName:Yt(t),getterReturnType:r,getter:qr(n,o),getterContext:i,setterArgumentType:a,setter:qr(s,c),setterContext:u})}function Rn(e,t){er(e,{isVoid:!0,name:t=Yt(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(e,t){}})}function Mn(){throw"longjmp"}function An(e,t,r){e=un.toValue(e),t=fn(t,"emval::as");var n=[],o=un.toHandle(n);return W[r>>2]=o,t.toWireType(n,e)}function kn(e,t){for(var r=new Array(e),n=0;n<e;++n)r[n]=fn(W[(t>>2)+n],"parameter "+n);return r}function Fn(e,t,r,n){e=un.toValue(e);for(var o=kn(t,r),i=new Array(t),a=0;a<t;++a){var s=o[a];i[a]=s.readValueFromPointer(n),n+=s.argPackAdvance}var c=e.apply(void 0,i);return un.toHandle(c)}function Cn(e){var t=[];return W[e>>2]=un.toHandle(t),t}var In={};function Ln(e){var t=In[e];return void 0===t?Yt(e):t}var jn=[];function Un(e,t,r,n,o){return(e=jn[e])(t=un.toValue(t),r=Ln(r),Cn(n),o)}function Nn(e,t,r,n){(e=jn[e])(t=un.toValue(t),r=Ln(r),null,n)}function Hn(){return"object"==typeof globalThis?globalThis:Function("return this")()}function Bn(e){return 0===e?un.toHandle(Hn()):(e=Ln(e),un.toHandle(Hn()[e]))}function Xn(e){var t=jn.length;return jn.push(e),t}var Qn=[];function Zn(e,t){var r=kn(e,t),n=r[0],o=n.name+"_$"+r.slice(1).map((function(e){return e.name})).join("_")+"$",i=Qn[o];if(void 0!==i)return i;for(var a=["retType"],s=[n],c="",u=0;u<e-1;++u)c+=(0!==u?", ":"")+"arg"+u,a.push("argType"+u),s.push(r[1+u]);var l="return function "+Ut("methodCaller_"+o)+"(handle, name, destructors, args) {\n",d=0;for(u=0;u<e-1;++u)l+=" var arg"+u+" = argType"+u+".readValueFromPointer(args"+(d?"+"+d:"")+");\n",d+=r[u+1].argPackAdvance;for(l+=" var rv = handle[name]("+c+");\n",u=0;u<e-1;++u)r[u+1].deleteObject&&(l+=" argType"+u+".deleteObject(arg"+u+");\n");return n.isVoid||(l+=" return retType.toWireType(destructors, rv);\n"),l+="};\n",a.push(l),i=Xn(Jr(Function,a).apply(null,s)),Qn[o]=i,i}function Gn(e,t){return e=un.toValue(e),t=un.toValue(t),un.toHandle(e[t])}function qn(e){e>4&&(nn[e].refcount+=1)}function Wn(e,t){return(e=un.toValue(e))instanceof un.toValue(t)}function Vn(e){return"string"==typeof(e=un.toValue(e))}function zn(e){for(var t="",r=0;r<e;++r)t+=(0!==r?", ":"")+"arg"+r;var n="return function emval_allocator_"+e+"(constructor, argTypes, args) {\n";for(r=0;r<e;++r)n+="var argType"+r+" = requireRegisteredType(Module['HEAP32'][(argTypes >>> 2) + "+r+'], "parameter '+r+'");\nvar arg'+r+" = argType"+r+".readValueFromPointer(args);\nargs += argType"+r+"['argPackAdvance'];\n";return n+="var obj = new constructor("+t+");\nreturn valueToHandle(obj);\n}\n",new Function("requireRegisteredType","Module","valueToHandle",n)(fn,i,un.toHandle)}var $n,Yn={};function Kn(e,t,r,n){e=un.toValue(e);var o=Yn[t];return o||(o=zn(t),Yn[t]=o),o(e,r,n)}function Jn(){return un.toHandle([])}function eo(e){return un.toHandle(Ln(e))}function to(){return un.toHandle({})}function ro(e){At(un.toValue(e)),on(e)}function no(e,t,r){e=un.toValue(e),t=un.toValue(t),r=un.toValue(r),e[t]=r}function oo(e,t){var r=(e=fn(e,"_emval_take_value")).readValueFromPointer(t);return un.toHandle(r)}function io(e){throw un.toValue(e)}function ao(e,t){var r=new Date(1e3*W[e>>2]);W[t>>2]=r.getUTCSeconds(),W[t+4>>2]=r.getUTCMinutes(),W[t+8>>2]=r.getUTCHours(),W[t+12>>2]=r.getUTCDate(),W[t+16>>2]=r.getUTCMonth(),W[t+20>>2]=r.getUTCFullYear()-1900,W[t+24>>2]=r.getUTCDay();var n=Date.UTC(r.getUTCFullYear(),0,1,0,0,0,0),o=(r.getTime()-n)/864e5|0;W[t+28>>2]=o}function so(e,t){var r=new Date(1e3*W[e>>2]);W[t>>2]=r.getSeconds(),W[t+4>>2]=r.getMinutes(),W[t+8>>2]=r.getHours(),W[t+12>>2]=r.getDate(),W[t+16>>2]=r.getMonth(),W[t+20>>2]=r.getFullYear()-1900,W[t+24>>2]=r.getDay();var n=new Date(r.getFullYear(),0,1),o=(r.getTime()-n.getTime())/864e5|0;W[t+28>>2]=o,W[t+36>>2]=-60*r.getTimezoneOffset();var i=new Date(r.getFullYear(),6,1).getTimezoneOffset(),a=n.getTimezoneOffset(),s=0|(i!=a&&r.getTimezoneOffset()==Math.min(a,i));W[t+32>>2]=s}function co(e){var t=new Date(W[e+20>>2]+1900,W[e+16>>2],W[e+12>>2],W[e+8>>2],W[e+4>>2],W[e>>2],0),r=W[e+32>>2],n=t.getTimezoneOffset(),o=new Date(t.getFullYear(),0,1),i=new Date(t.getFullYear(),6,1).getTimezoneOffset(),a=o.getTimezoneOffset(),s=Math.min(a,i);if(r<0)W[e+32>>2]=Number(i!=a&&s==n);else if(r>0!=(s==n)){var c=Math.max(a,i),u=r>0?s:c;t.setTime(t.getTime()+6e4*(u-n))}W[e+24>>2]=t.getDay();var l=(t.getTime()-o.getTime())/864e5|0;return W[e+28>>2]=l,W[e>>2]=t.getSeconds(),W[e+4>>2]=t.getMinutes(),W[e+8>>2]=t.getHours(),W[e+12>>2]=t.getDate(),W[e+16>>2]=t.getMonth(),t.getTime()/1e3|0}function uo(e,t,r,n,o,i,a,s){try{var c=_t.getStream(o);if(!c)return-8;var u=_t.mmap(c,e,t,i,r,n),l=u.ptr;return W[a>>2]=u.allocated,l}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function lo(e,t,r,n,o,i){try{var a=_t.getStream(o);a&&(2&r&&yt.doMsync(e,a,t,n,i),_t.munmap(a))}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return-e.errno}}function po(e,t,r){var n=(new Date).getFullYear(),o=new Date(n,0,1),i=new Date(n,6,1),a=o.getTimezoneOffset(),s=i.getTimezoneOffset(),c=Math.max(a,s);function u(e){var t=e.toTimeString().match(/\(([A-Za-z ]+)\)$/);return t?t[1]:"GMT"}W[e>>2]=60*c,W[t>>2]=Number(a!=s);var l=u(o),d=u(i),p=oe(l),f=oe(d);s<a?(W[r>>2]=p,W[r+4>>2]=f):(W[r>>2]=f,W[r+4>>2]=p)}function fo(e,t,r){fo.called||(fo.called=!0,po(e,t,r))}function mo(){Ne("native code called abort()")}$n=()=>performance.now();var go=!0;function ho(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!go)return at(28),-1;r=$n()}return W[t>>2]=r/1e3|0,W[t+4>>2]=r%1e3*1e3*1e3|0,0}function Eo(e,t){if(To.mainLoop.timingMode=e,To.mainLoop.timingValue=t,!To.mainLoop.func)return O("emscripten_set_main_loop_timing: Cannot set timing mode for main loop since a main loop does not exist! Call emscripten_set_main_loop first to set one up."),1;if(To.mainLoop.running||(To.mainLoop.running=!0),0==e)To.mainLoop.scheduler=function(){var e=0|Math.max(0,To.mainLoop.tickStartTime+t-$n());setTimeout(To.mainLoop.runner,e)},To.mainLoop.method="timeout";else if(1==e)To.mainLoop.scheduler=function(){To.requestAnimationFrame(To.mainLoop.runner)},To.mainLoop.method="rAF";else if(2==e){if("undefined"==typeof setImmediate){var r=[],n="setimmediate";addEventListener("message",(function(e){e.data!==n&&e.data.target!==n||(e.stopPropagation(),r.shift()())}),!0),setImmediate=function(e){r.push(e),m?(void 0===i.setImmediates&&(i.setImmediates=[]),i.setImmediates.push(e),postMessage({target:n})):postMessage(n,"*")}}To.mainLoop.scheduler=function(){setImmediate(To.mainLoop.runner)},To.mainLoop.method="immediate"}return 0}function _o(e){dp(e)}function yo(){if(!Te())try{_o(F)}catch(e){tt(e)}}function vo(e,t,r,n,o){I(!To.mainLoop.func,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),To.mainLoop.func=e,To.mainLoop.arg=n;var a=To.mainLoop.currentlyRunningMainloop;function s(){return!(a<To.mainLoop.currentlyRunningMainloop&&(yo(),1))}if(To.mainLoop.running=!1,To.mainLoop.runner=function(){if(!C)if(To.mainLoop.queue.length>0){var t=Date.now(),r=To.mainLoop.queue.shift();if(r.func(r.arg),To.mainLoop.remainingBlockers){var n=To.mainLoop.remainingBlockers,o=n%1==0?n-1:Math.floor(n);r.counted?To.mainLoop.remainingBlockers=o:(o+=.5,To.mainLoop.remainingBlockers=(8*n+o)/9)}if(T('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),To.mainLoop.updateStatus(),!s())return;setTimeout(To.mainLoop.runner,0)}else s()&&(To.mainLoop.currentFrameNumber=To.mainLoop.currentFrameNumber+1|0,1==To.mainLoop.timingMode&&To.mainLoop.timingValue>1&&To.mainLoop.currentFrameNumber%To.mainLoop.timingValue!=0?To.mainLoop.scheduler():(0==To.mainLoop.timingMode&&(To.mainLoop.tickStartTime=$n()),"timeout"===To.mainLoop.method&&i.ctx&&(P("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),To.mainLoop.method=""),To.mainLoop.runIter(e),me(),s()&&("object"==typeof SDL&&SDL.audio&&SDL.audio.queueNewAudioData&&SDL.audio.queueNewAudioData(),To.mainLoop.scheduler())))},o||(t&&t>0?Eo(0,1e3/t):Eo(1,1),To.mainLoop.scheduler()),r)throw"unwind"}function bo(e,t){if(be||C)O("user callback triggered after runtime exited or application aborted. Ignoring.");else if(t)e();else try{e()}catch(e){tt(e)}}function wo(e,t){return setTimeout((function(){bo(e)}),t)}var To={mainLoop:{running:!1,scheduler:null,method:"",currentlyRunningMainloop:0,func:null,arg:0,timingMode:0,timingValue:0,currentFrameNumber:0,queue:[],pause:function(){To.mainLoop.scheduler=null,To.mainLoop.currentlyRunningMainloop++},resume:function(){To.mainLoop.currentlyRunningMainloop++;var e=To.mainLoop.timingMode,t=To.mainLoop.timingValue,r=To.mainLoop.func;To.mainLoop.func=null,vo(r,0,!1,To.mainLoop.arg,!0),Eo(e,t),To.mainLoop.scheduler()},updateStatus:function(){if(i.setStatus){var e=i.statusMessage||"Please wait...",t=To.mainLoop.remainingBlockers,r=To.mainLoop.expectedBlockers;t?t<r?i.setStatus(e+" ("+(r-t)+"/"+r+")"):i.setStatus(e):i.setStatus("")}},runIter:function(e){if(!C){if(i.preMainLoop&&!1===i.preMainLoop())return;bo(e),i.postMainLoop&&i.postMainLoop()}}},isFullscreen:!1,pointerLock:!1,moduleContextCreatedCallbacks:[],workers:[],init:function(){if(i.preloadPlugins||(i.preloadPlugins=[]),!To.initted){To.initted=!0;try{new Blob,To.hasBlobConstructor=!0}catch(e){To.hasBlobConstructor=!1,T("warning: no blob constructor, cannot create blobs with mimetypes")}To.BlobBuilder="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:To.hasBlobConstructor?null:T("warning: no BlobBuilder"),To.URLObject="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,i.noImageDecoding||void 0!==To.URLObject||(T("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),i.noImageDecoding=!0);var e={canHandle:function(e){return!i.noImageDecoding&&/\.(jpg|jpeg|png|bmp)$/i.test(e)},handle:function(e,t,r,n){var o=null;if(To.hasBlobConstructor)try{(o=new Blob([e],{type:To.getMimetype(t)})).size!==e.length&&(o=new Blob([new Uint8Array(e).buffer],{type:To.getMimetype(t)}))}catch(e){P("Blob constructor present but fails: "+e+"; falling back to blob builder")}if(!o){var a=new To.BlobBuilder;a.append(new Uint8Array(e).buffer),o=a.getBlob()}var s=To.URLObject.createObjectURL(o);I("string"==typeof s,"createObjectURL must return a url as a string");var c=new Image;c.onload=()=>{I(c.complete,"Image "+t+" could not be decoded");var n=document.createElement("canvas");n.width=c.width,n.height=c.height,n.getContext("2d").drawImage(c,0,0),i.preloadedImages[t]=n,To.URLObject.revokeObjectURL(s),r&&r(e)},c.onerror=e=>{T("Image "+s+" could not be decoded"),n&&n()},c.src=s}};i.preloadPlugins.push(e);var t={canHandle:function(e){return!i.noAudioDecoding&&e.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(e,t,r,n){var o=!1;function a(n){o||(o=!0,i.preloadedAudios[t]=n,r&&r(e))}function s(){o||(o=!0,i.preloadedAudios[t]=new Audio,n&&n())}if(!To.hasBlobConstructor)return s();try{var c=new Blob([e],{type:To.getMimetype(t)})}catch(e){return s()}var u=To.URLObject.createObjectURL(c);I("string"==typeof u,"createObjectURL must return a url as a string");var l=new Audio;l.addEventListener("canplaythrough",(function(){a(l)}),!1),l.onerror=function(r){o||(T("warning: browser could not fully decode audio "+t+", trying slower base64 approach"),l.src="data:audio/x-"+t.substr(-3)+";base64,"+function(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r="",n=0,o=0,i=0;i<e.length;i++)for(n=n<<8|e[i],o+=8;o>=6;){var a=n>>o-6&63;o-=6,r+=t[a]}return 2==o?(r+=t[(3&n)<<4],r+="=="):4==o&&(r+=t[(15&n)<<2],r+="="),r}(e),a(l))},l.src=u,wo((function(){a(l)}),1e4)}};i.preloadPlugins.push(t);var r=i.canvas;r&&(r.requestPointerLock=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.exitPointerLock=r.exitPointerLock.bind(document),document.addEventListener("pointerlockchange",n,!1),document.addEventListener("mozpointerlockchange",n,!1),document.addEventListener("webkitpointerlockchange",n,!1),document.addEventListener("mspointerlockchange",n,!1),i.elementPointerLock&&r.addEventListener("click",(function(e){!To.pointerLock&&i.canvas.requestPointerLock&&(i.canvas.requestPointerLock(),e.preventDefault())}),!1))}function n(){To.pointerLock=document.pointerLockElement===i.canvas||document.mozPointerLockElement===i.canvas||document.webkitPointerLockElement===i.canvas||document.msPointerLockElement===i.canvas}},handledByPreloadPlugin:function(e,t,r,n){To.init();var o=!1;return i.preloadPlugins.forEach((function(i){o||i.canHandle(t)&&(i.handle(e,t,r,n),o=!0)})),o},createContext:function(e,t,r,n){if(t&&i.ctx&&e==i.canvas)return i.ctx;var o,a;if(t){var s={antialias:!1,alpha:!1,majorVersion:"undefined"!=typeof WebGL2RenderingContext?2:1};if(n)for(var c in n)s[c]=n[c];void 0!==ko&&(a=ko.createContext(e,s))&&(o=ko.getContext(a).GLctx)}else o=e.getContext("2d");return o?(r&&(t||I(void 0===Od,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),i.ctx=o,t&&ko.makeContextCurrent(a),i.useWebGL=t,To.moduleContextCreatedCallbacks.forEach((function(e){e()})),To.init()),o):null},destroyContext:function(e,t,r){},fullscreenHandlersInstalled:!1,lockPointer:void 0,resizeCanvas:void 0,requestFullscreen:function(e,t){To.lockPointer=e,To.resizeCanvas=t,void 0===To.lockPointer&&(To.lockPointer=!0),void 0===To.resizeCanvas&&(To.resizeCanvas=!1);var r=i.canvas;function n(){To.isFullscreen=!1;var e=r.parentNode;(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e?(r.exitFullscreen=To.exitFullscreen,To.lockPointer&&r.requestPointerLock(),To.isFullscreen=!0,To.resizeCanvas?To.setFullscreenCanvasSize():To.updateCanvasDimensions(r)):(e.parentNode.insertBefore(r,e),e.parentNode.removeChild(e),To.resizeCanvas?To.setWindowedCanvasSize():To.updateCanvasDimensions(r)),i.onFullScreen&&i.onFullScreen(To.isFullscreen),i.onFullscreen&&i.onFullscreen(To.isFullscreen)}To.fullscreenHandlersInstalled||(To.fullscreenHandlersInstalled=!0,document.addEventListener("fullscreenchange",n,!1),document.addEventListener("mozfullscreenchange",n,!1),document.addEventListener("webkitfullscreenchange",n,!1),document.addEventListener("MSFullscreenChange",n,!1));var o=document.createElement("div");r.parentNode.insertBefore(o,r),o.appendChild(r),o.requestFullscreen=o.requestFullscreen||o.mozRequestFullScreen||o.msRequestFullscreen||(o.webkitRequestFullscreen?function(){o.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)||(o.webkitRequestFullScreen?function(){o.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),o.requestFullscreen()},requestFullScreen:function(){Ne("Module.requestFullScreen has been replaced by Module.requestFullscreen (without a capital S)")},exitFullscreen:function(){return!!To.isFullscreen&&((document.exitFullscreen||document.cancelFullScreen||document.mozCancelFullScreen||document.msExitFullscreen||document.webkitCancelFullScreen||function(){}).apply(document,[]),!0)},nextRAF:0,fakeRequestAnimationFrame:function(e){var t=Date.now();if(0===To.nextRAF)To.nextRAF=t+1e3/60;else for(;t+2>=To.nextRAF;)To.nextRAF+=1e3/60;var r=Math.max(To.nextRAF-t,0);setTimeout(e,r)},requestAnimationFrame:function(e){"function"!=typeof requestAnimationFrame?(0,To.fakeRequestAnimationFrame)(e):requestAnimationFrame(e)},safeSetTimeout:function(e){return wo(e)},safeRequestAnimationFrame:function(e){return To.requestAnimationFrame((function(){bo(e)}))},getMimetype:function(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]},getUserMedia:function(e){window.getUserMedia||(window.getUserMedia=navigator.getUserMedia||navigator.mozGetUserMedia),window.getUserMedia(e)},getMovementX:function(e){return e.movementX||e.mozMovementX||e.webkitMovementX||0},getMovementY:function(e){return e.movementY||e.mozMovementY||e.webkitMovementY||0},getMouseWheelDelta:function(e){var t=0;switch(e.type){case"DOMMouseScroll":t=e.detail/3;break;case"mousewheel":t=e.wheelDelta/120;break;case"wheel":switch(t=e.deltaY,e.deltaMode){case 0:t/=100;break;case 1:t/=3;break;case 2:t*=80;break;default:throw"unrecognized mouse wheel delta mode: "+e.deltaMode}break;default:throw"unrecognized mouse wheel event: "+e.type}return t},mouseX:0,mouseY:0,mouseMovementX:0,mouseMovementY:0,touches:{},lastTouches:{},calculateMouseEvent:function(e){if(To.pointerLock)"mousemove"!=e.type&&"mozMovementX"in e?To.mouseMovementX=To.mouseMovementY=0:(To.mouseMovementX=To.getMovementX(e),To.mouseMovementY=To.getMovementY(e)),"undefined"!=typeof SDL?(To.mouseX=SDL.mouseX+To.mouseMovementX,To.mouseY=SDL.mouseY+To.mouseMovementY):(To.mouseX+=To.mouseMovementX,To.mouseY+=To.mouseMovementY);else{var t=i.canvas.getBoundingClientRect(),r=i.canvas.width,n=i.canvas.height,o=void 0!==window.scrollX?window.scrollX:window.pageXOffset,a=void 0!==window.scrollY?window.scrollY:window.pageYOffset;if(I(void 0!==o&&void 0!==a,"Unable to retrieve scroll position, mouse positions likely broken."),"touchstart"===e.type||"touchend"===e.type||"touchmove"===e.type){var s=e.touch;if(void 0===s)return;var c=s.pageX-(o+t.left),u=s.pageY-(a+t.top),l={x:c*=r/t.width,y:u*=n/t.height};if("touchstart"===e.type)To.lastTouches[s.identifier]=l,To.touches[s.identifier]=l;else if("touchend"===e.type||"touchmove"===e.type){var d=To.touches[s.identifier];d||(d=l),To.lastTouches[s.identifier]=d,To.touches[s.identifier]=l}return}var p=e.pageX-(o+t.left),f=e.pageY-(a+t.top);p*=r/t.width,f*=n/t.height,To.mouseMovementX=p-To.mouseX,To.mouseMovementY=f-To.mouseY,To.mouseX=p,To.mouseY=f}},resizeListeners:[],updateResizeListeners:function(){var e=i.canvas;To.resizeListeners.forEach((function(t){t(e.width,e.height)}))},setCanvasSize:function(e,t,r){var n=i.canvas;To.updateCanvasDimensions(n,e,t),r||To.updateResizeListeners()},windowedWidth:0,windowedHeight:0,setFullscreenCanvasSize:function(){if("undefined"!=typeof SDL){var e=V[SDL.screen>>2];e|=8388608,W[SDL.screen>>2]=e}To.updateCanvasDimensions(i.canvas),To.updateResizeListeners()},setWindowedCanvasSize:function(){if("undefined"!=typeof SDL){var e=V[SDL.screen>>2];e&=-8388609,W[SDL.screen>>2]=e}To.updateCanvasDimensions(i.canvas),To.updateResizeListeners()},updateCanvasDimensions:function(e,t,r){t&&r?(e.widthNative=t,e.heightNative=r):(t=e.widthNative,r=e.heightNative);var n=t,o=r;if(i.forcedAspectRatio&&i.forcedAspectRatio>0&&(n/o<i.forcedAspectRatio?n=Math.round(o*i.forcedAspectRatio):o=Math.round(n/i.forcedAspectRatio)),(document.fullscreenElement||document.mozFullScreenElement||document.msFullscreenElement||document.webkitFullscreenElement||document.webkitCurrentFullScreenElement)===e.parentNode&&"undefined"!=typeof screen){var a=Math.min(screen.width/n,screen.height/o);n=Math.round(n*a),o=Math.round(o*a)}To.resizeCanvas?(e.width!=n&&(e.width=n),e.height!=o&&(e.height=o),void 0!==e.style&&(e.style.removeProperty("width"),e.style.removeProperty("height"))):(e.width!=t&&(e.width=t),e.height!=r&&(e.height=r),void 0!==e.style&&(n!=t||o!=r?(e.style.setProperty("width",n+"px","important"),e.style.setProperty("height",o+"px","important")):(e.style.removeProperty("width"),e.style.removeProperty("height"))))}},Oo={errorCode:12288,defaultDisplayInitialized:!1,currentContext:0,currentReadSurface:0,currentDrawSurface:0,contextAttributes:{alpha:!1,depth:!1,stencil:!1,antialias:!1},stringCache:{},setErrorCode:function(e){Oo.errorCode=e},chooseConfig:function(e,t,r,n,o){if(62e3!=e)return Oo.setErrorCode(12296),0;if(t)for(;;){var i=W[t>>2];if(12321==i){var a=W[t+4>>2];Oo.contextAttributes.alpha=a>0}else if(12325==i){var s=W[t+4>>2];Oo.contextAttributes.depth=s>0}else if(12326==i){var c=W[t+4>>2];Oo.contextAttributes.stencil=c>0}else if(12337==i){var u=W[t+4>>2];Oo.contextAttributes.antialias=u>0}else if(12338==i)u=W[t+4>>2],Oo.contextAttributes.antialias=1==u;else if(12544==i){var l=W[t+4>>2];Oo.contextAttributes.lowLatency=12547!=l}else if(12344==i)break;t+=8}return r&&n||o?(o&&(W[o>>2]=1),r&&n>0&&(W[r>>2]=62002),Oo.setErrorCode(12288),1):(Oo.setErrorCode(12300),0)}};function Po(e,t,r,n,o){return Oo.chooseConfig(e,t,r,n,o)}function Do(e){var t=e.getExtension("ANGLE_instanced_arrays");if(t)return e.vertexAttribDivisor=function(e,r){t.vertexAttribDivisorANGLE(e,r)},e.drawArraysInstanced=function(e,r,n,o){t.drawArraysInstancedANGLE(e,r,n,o)},e.drawElementsInstanced=function(e,r,n,o,i){t.drawElementsInstancedANGLE(e,r,n,o,i)},1}function xo(e){var t=e.getExtension("OES_vertex_array_object");if(t)return e.createVertexArray=function(){return t.createVertexArrayOES()},e.deleteVertexArray=function(e){t.deleteVertexArrayOES(e)},e.bindVertexArray=function(e){t.bindVertexArrayOES(e)},e.isVertexArray=function(e){return t.isVertexArrayOES(e)},1}function So(e){var t=e.getExtension("WEBGL_draw_buffers");if(t)return e.drawBuffers=function(e,r){t.drawBuffersWEBGL(e,r)},1}function Ro(e){return!!(e.dibvbi=e.getExtension("WEBGL_draw_instanced_base_vertex_base_instance"))}function Mo(e){return!!(e.mdibvbi=e.getExtension("WEBGL_multi_draw_instanced_base_vertex_base_instance"))}function Ao(e){return!!(e.multiDrawWebgl=e.getExtension("WEBGL_multi_draw"))}var ko={counter:1,buffers:[],programs:[],framebuffers:[],renderbuffers:[],textures:[],shaders:[],vaos:[],contexts:[],offscreenCanvases:{},queries:[],samplers:[],transformFeedbacks:[],syncs:[],stringCache:{},stringiCache:{},unpackAlignment:4,recordError:function(e){ko.lastError||(ko.lastError=e)},getNewId:function(e){for(var t=ko.counter++,r=e.length;r<t;r++)e[r]=null;return t},getSource:function(e,t,r,n){for(var o="",i=0;i<t;++i){var a=n?W[n+4*i>>2]:-1;o+=U(W[r+4*i>>2],a<0?void 0:a)}return o},createContext:function(e,t){if(!e.getContextSafariWebGL2Fixed){function t(t,r){var n=e.getContextSafariWebGL2Fixed(t,r);return"webgl"==t==n instanceof WebGLRenderingContext?n:null}e.getContextSafariWebGL2Fixed=e.getContext,e.getContext=t}var r=t.majorVersion>1?e.getContext("webgl2",t):e.getContext("webgl",t);return r?ko.registerContext(r,t):0},registerContext:function(e,t){var r=ko.getNewId(ko.contexts),n={handle:r,attributes:t,version:t.majorVersion,GLctx:e};return e.canvas&&(e.canvas.GLctxObject=n),ko.contexts[r]=n,(void 0===t.enableExtensionsByDefault||t.enableExtensionsByDefault)&&ko.initExtensions(n),r},makeContextCurrent:function(e){return ko.currentContext=ko.contexts[e],i.ctx=Od=ko.currentContext&&ko.currentContext.GLctx,!(e&&!Od)},getContext:function(e){return ko.contexts[e]},deleteContext:function(e){ko.currentContext===ko.contexts[e]&&(ko.currentContext=null),"object"==typeof ql&&ql.removeAllHandlersOnTarget(ko.contexts[e].GLctx.canvas),ko.contexts[e]&&ko.contexts[e].GLctx.canvas&&(ko.contexts[e].GLctx.canvas.GLctxObject=void 0),ko.contexts[e]=null},initExtensions:function(e){if(e||(e=ko.currentContext),!e.initExtensionsDone){e.initExtensionsDone=!0;var t=e.GLctx;Do(t),xo(t),So(t),Ro(t),Mo(t),e.version>=2&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query_webgl2")),(e.version<2||!t.disjointTimerQueryExt)&&(t.disjointTimerQueryExt=t.getExtension("EXT_disjoint_timer_query")),Ao(t),(t.getSupportedExtensions()||[]).forEach((function(e){e.includes("lose_context")||e.includes("debug")||t.getExtension(e)}))}}};function Fo(e,t,r,n){if(62e3!=e)return Oo.setErrorCode(12296),0;for(var o=1;;){var a=W[n>>2];if(12440!=a){if(12344==a)break;return Oo.setErrorCode(12292),0}o=W[n+4>>2],n+=8}return o<2||o>3?(Oo.setErrorCode(12293),0):(Oo.contextAttributes.majorVersion=o-1,Oo.contextAttributes.minorVersion=0,Oo.context=ko.createContext(i.canvas,Oo.contextAttributes),0!=Oo.context?(Oo.setErrorCode(12288),ko.makeContextCurrent(Oo.context),i.useWebGL=!0,To.moduleContextCreatedCallbacks.forEach((function(e){e()})),ko.makeContextCurrent(null),62004):(Oo.setErrorCode(12297),0))}function Co(e,t,r,n){return 62e3!=e?(Oo.setErrorCode(12296),0):62002!=t?(Oo.setErrorCode(12293),0):(Oo.setErrorCode(12288),62006)}function Io(e,t){return 62e3!=e?(Oo.setErrorCode(12296),0):62004!=t?(Oo.setErrorCode(12294),0):(ko.deleteContext(Oo.context),Oo.setErrorCode(12288),Oo.currentContext==t&&(Oo.currentContext=0),1)}function Lo(e,t){return 62e3!=e?(Oo.setErrorCode(12296),0):62006!=t?(Oo.setErrorCode(12301),1):(Oo.currentReadSurface==t&&(Oo.currentReadSurface=0),Oo.currentDrawSurface==t&&(Oo.currentDrawSurface=0),Oo.setErrorCode(12288),1)}function jo(e,t,r,n){if(62e3!=e)return Oo.setErrorCode(12296),0;if(62002!=t)return Oo.setErrorCode(12293),0;if(!n)return Oo.setErrorCode(12300),0;switch(Oo.setErrorCode(12288),r){case 12320:return W[n>>2]=Oo.contextAttributes.alpha?32:24,1;case 12321:return W[n>>2]=Oo.contextAttributes.alpha?8:0,1;case 12322:case 12323:case 12324:return W[n>>2]=8,1;case 12325:return W[n>>2]=Oo.contextAttributes.depth?24:0,1;case 12326:return W[n>>2]=Oo.contextAttributes.stencil?8:0,1;case 12327:return W[n>>2]=12344,1;case 12328:return W[n>>2]=62002,1;case 12329:return W[n>>2]=0,1;case 12330:return W[n>>2]=4096,1;case 12331:return W[n>>2]=16777216,1;case 12332:return W[n>>2]=4096,1;case 12333:case 12334:return W[n>>2]=0,1;case 12335:return W[n>>2]=12344,1;case 12337:return W[n>>2]=Oo.contextAttributes.antialias?4:0,1;case 12338:return W[n>>2]=Oo.contextAttributes.antialias?1:0,1;case 12339:return W[n>>2]=4,1;case 12340:return W[n>>2]=12344,1;case 12341:case 12342:case 12343:return W[n>>2]=-1,1;case 12345:case 12346:case 12347:return W[n>>2]=0,1;case 12348:return W[n>>2]=1,1;case 12349:case 12350:return W[n>>2]=0,1;case 12351:return W[n>>2]=12430,1;case 12352:return W[n>>2]=4,1;case 12354:return W[n>>2]=0,1;default:return Oo.setErrorCode(12292),0}}function Uo(e){return Oo.setErrorCode(12288),62e3}function No(){return Oo.errorCode}function Ho(e,t,r){return 62e3==e?(t&&(W[t>>2]=1),r&&(W[r>>2]=4),Oo.defaultDisplayInitialized=!0,Oo.setErrorCode(12288),1):(Oo.setErrorCode(12296),0)}function Bo(e,t,r,n){return 62e3!=e?(Oo.setErrorCode(12296),0):0!=n&&62004!=n?(Oo.setErrorCode(12294),0):0!=r&&62006!=r||0!=t&&62006!=t?(Oo.setErrorCode(12301),0):(ko.makeContextCurrent(n?Oo.context:null),Oo.currentContext=n,Oo.currentDrawSurface=t,Oo.currentReadSurface=r,Oo.setErrorCode(12288),1)}function Xo(){if(Oo.defaultDisplayInitialized)if(i.ctx){if(!i.ctx.isContextLost())return Oo.setErrorCode(12288),1;Oo.setErrorCode(12302)}else Oo.setErrorCode(12290);else Oo.setErrorCode(12289);return 0}function Qo(e){return 62e3!=e?(Oo.setErrorCode(12296),0):(Oo.currentContext=0,Oo.currentReadSurface=0,Oo.currentDrawSurface=0,Oo.defaultDisplayInitialized=!1,Oo.setErrorCode(12288),1)}function Zo(e){I("number"==typeof e),console.error(U(e))}function Go(e){I("number"==typeof e),console.log(U(e))}function qo(e){I("number"==typeof e),console.warn(U(e))}function Wo(){}function Vo(){return 2147483648}function zo(e){Od.activeTexture(e)}function $o(e,t){Od.attachShader(ko.programs[e],ko.shaders[t])}function Yo(e,t){Od.beginQuery(e,ko.queries[t])}function Ko(e,t){Od.disjointTimerQueryExt.beginQueryEXT(e,ko.queries[t])}function Jo(e){Od.beginTransformFeedback(e)}function ei(e,t,r){Od.bindAttribLocation(ko.programs[e],t,U(r))}function ti(e,t){35051==e?Od.currentPixelPackBufferBinding=t:35052==e&&(Od.currentPixelUnpackBufferBinding=t),Od.bindBuffer(e,ko.buffers[t])}function ri(e,t,r){Od.bindBufferBase(e,t,ko.buffers[r])}function ni(e,t,r,n,o){Od.bindBufferRange(e,t,ko.buffers[r],n,o)}function oi(e,t){Od.bindFramebuffer(e,ko.framebuffers[t])}function ii(e,t){Od.bindRenderbuffer(e,ko.renderbuffers[t])}function ai(e,t){Od.bindSampler(e,ko.samplers[t])}function si(e,t){Od.bindTexture(e,ko.textures[t])}function ci(e,t){Od.bindTransformFeedback(e,ko.transformFeedbacks[t])}function ui(e){Od.bindVertexArray(ko.vaos[e])}function li(e){Od.bindVertexArray(ko.vaos[e])}function di(e,t,r,n){Od.blendColor(e,t,r,n)}function pi(e){Od.blendEquation(e)}function fi(e,t){Od.blendEquationSeparate(e,t)}function mi(e,t){Od.blendFunc(e,t)}function gi(e,t,r,n){Od.blendFuncSeparate(e,t,r,n)}function hi(e,t,r,n,o,i,a,s,c,u){Od.blitFramebuffer(e,t,r,n,o,i,a,s,c,u)}function Ei(e,t,r,n){ko.currentContext.version>=2?r?Od.bufferData(e,Z,n,r,t):Od.bufferData(e,t,n):Od.bufferData(e,r?Z.subarray(r,r+t):t,n)}function _i(e,t,r,n){ko.currentContext.version>=2?Od.bufferSubData(e,t,Z,n,r):Od.bufferSubData(e,t,Z.subarray(n,n+r))}function yi(e){return Od.checkFramebufferStatus(e)}function vi(e){Od.clear(e)}function bi(e,t,r,n){Od.clearBufferfi(e,t,r,n)}function wi(e,t,r){Od.clearBufferfv(e,t,z,r>>2)}function Ti(e,t,r){Od.clearBufferiv(e,t,W,r>>2)}function Oi(e,t,r){Od.clearBufferuiv(e,t,V,r>>2)}function Pi(e,t,r,n){Od.clearColor(e,t,r,n)}function Di(e){Od.clearDepth(e)}function xi(e){Od.clearStencil(e)}function Si(e,t){return I(t===(0|t)),(e>>>0)+4294967296*t}function Ri(e,t,r,n){return Od.clientWaitSync(ko.syncs[e],t,Si(r,n))}function Mi(e,t,r,n){Od.colorMask(!!e,!!t,!!r,!!n)}function Ai(e){Od.compileShader(ko.shaders[e])}function ki(e,t,r,n,o,i,a,s){ko.currentContext.version>=2?Od.currentPixelUnpackBufferBinding?Od.compressedTexImage2D(e,t,r,n,o,i,a,s):Od.compressedTexImage2D(e,t,r,n,o,i,Z,s,a):Od.compressedTexImage2D(e,t,r,n,o,i,s?Z.subarray(s,s+a):null)}function Fi(e,t,r,n,o,i,a,s,c){Od.currentPixelUnpackBufferBinding?Od.compressedTexImage3D(e,t,r,n,o,i,a,s,c):Od.compressedTexImage3D(e,t,r,n,o,i,a,Z,c,s)}function Ci(e,t,r,n,o,i,a,s,c){ko.currentContext.version>=2?Od.currentPixelUnpackBufferBinding?Od.compressedTexSubImage2D(e,t,r,n,o,i,a,s,c):Od.compressedTexSubImage2D(e,t,r,n,o,i,a,Z,c,s):Od.compressedTexSubImage2D(e,t,r,n,o,i,a,c?Z.subarray(c,c+s):null)}function Ii(e,t,r,n,o,i,a,s,c,u,l){Od.currentPixelUnpackBufferBinding?Od.compressedTexSubImage3D(e,t,r,n,o,i,a,s,c,u,l):Od.compressedTexSubImage3D(e,t,r,n,o,i,a,s,c,Z,l,u)}function Li(e,t,r,n,o){Od.copyBufferSubData(e,t,r,n,o)}function ji(e,t,r,n,o,i,a,s){Od.copyTexImage2D(e,t,r,n,o,i,a,s)}function Ui(e,t,r,n,o,i,a,s){Od.copyTexSubImage2D(e,t,r,n,o,i,a,s)}function Ni(e,t,r,n,o,i,a,s,c){Od.copyTexSubImage3D(e,t,r,n,o,i,a,s,c)}function Hi(){var e=ko.getNewId(ko.programs),t=Od.createProgram();return t.name=e,t.maxUniformLength=t.maxAttributeLength=t.maxUniformBlockNameLength=0,t.uniformIdCounter=1,ko.programs[e]=t,e}function Bi(e){var t=ko.getNewId(ko.shaders);return ko.shaders[t]=Od.createShader(e),t}function Xi(e){Od.cullFace(e)}function Qi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.buffers[n];o&&(Od.deleteBuffer(o),o.name=0,ko.buffers[n]=null,n==Od.currentPixelPackBufferBinding&&(Od.currentPixelPackBufferBinding=0),n==Od.currentPixelUnpackBufferBinding&&(Od.currentPixelUnpackBufferBinding=0))}}function Zi(e,t){for(var r=0;r<e;++r){var n=W[t+4*r>>2],o=ko.framebuffers[n];o&&(Od.deleteFramebuffer(o),o.name=0,ko.framebuffers[n]=null)}}function Gi(e){if(e){var t=ko.programs[e];t?(Od.deleteProgram(t),t.name=0,ko.programs[e]=null):ko.recordError(1281)}}function qi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.queries[n];o&&(Od.deleteQuery(o),ko.queries[n]=null)}}function Wi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.queries[n];o&&(Od.disjointTimerQueryExt.deleteQueryEXT(o),ko.queries[n]=null)}}function Vi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.renderbuffers[n];o&&(Od.deleteRenderbuffer(o),o.name=0,ko.renderbuffers[n]=null)}}function zi(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.samplers[n];o&&(Od.deleteSampler(o),o.name=0,ko.samplers[n]=null)}}function $i(e){if(e){var t=ko.shaders[e];t?(Od.deleteShader(t),ko.shaders[e]=null):ko.recordError(1281)}}function Yi(e){if(e){var t=ko.syncs[e];t?(Od.deleteSync(t),t.name=0,ko.syncs[e]=null):ko.recordError(1281)}}function Ki(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.textures[n];o&&(Od.deleteTexture(o),o.name=0,ko.textures[n]=null)}}function Ji(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2],o=ko.transformFeedbacks[n];o&&(Od.deleteTransformFeedback(o),o.name=0,ko.transformFeedbacks[n]=null)}}function ea(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2];Od.deleteVertexArray(ko.vaos[n]),ko.vaos[n]=null}}function ta(e,t){for(var r=0;r<e;r++){var n=W[t+4*r>>2];Od.deleteVertexArray(ko.vaos[n]),ko.vaos[n]=null}}function ra(e){Od.depthFunc(e)}function na(e){Od.depthMask(!!e)}function oa(e,t){Od.depthRange(e,t)}function ia(e,t){Od.detachShader(ko.programs[e],ko.shaders[t])}function aa(e){Od.disable(e)}function sa(e){Od.disableVertexAttribArray(e)}function ca(e,t,r){Od.drawArrays(e,t,r)}function ua(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function la(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function da(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function pa(e,t,r,n,o){Od.dibvbi.drawArraysInstancedBaseInstanceWEBGL(e,t,r,n,o)}function fa(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}function ma(e,t,r,n){Od.drawArraysInstanced(e,t,r,n)}var ga=[];function ha(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function Ea(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function _a(e,t){for(var r=ga[e],n=0;n<e;n++)r[n]=W[t+4*n>>2];Od.drawBuffers(r)}function ya(e,t,r,n){Od.drawElements(e,t,r,n)}function va(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function ba(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function wa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Ta(e,t,r,n,o,i,a){Od.dibvbi.drawElementsInstancedBaseVertexBaseInstanceWEBGL(e,t,r,n,o,i,a)}function Oa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Pa(e,t,r,n,o){Od.drawElementsInstanced(e,t,r,n,o)}function Da(e,t,r,n){Od.drawElements(e,t,r,n)}function xa(e,t,r,n,o,i){Da(e,n,o,i)}function Sa(e){Od.enable(e)}function Ra(e){Od.enableVertexAttribArray(e)}function Ma(e){Od.endQuery(e)}function Aa(e){Od.disjointTimerQueryExt.endQueryEXT(e)}function ka(){Od.endTransformFeedback()}function Fa(e,t){var r=Od.fenceSync(e,t);if(r){var n=ko.getNewId(ko.syncs);return r.name=n,ko.syncs[n]=r,n}return 0}function Ca(){Od.finish()}function Ia(){Od.flush()}function La(e,t,r,n){Od.framebufferRenderbuffer(e,t,r,ko.renderbuffers[n])}function ja(e,t,r,n,o){Od.framebufferTexture2D(e,t,r,ko.textures[n],o)}function Ua(e,t,r,n,o){Od.framebufferTextureLayer(e,t,ko.textures[r],n,o)}function Na(e){Od.frontFace(e)}function Ha(e,t,r,n){for(var o=0;o<e;o++){var i=Od[r](),a=i&&ko.getNewId(n);i?(i.name=a,n[a]=i):ko.recordError(1282),W[t+4*o>>2]=a}}function Ba(e,t){Ha(e,t,"createBuffer",ko.buffers)}function Xa(e,t){Ha(e,t,"createFramebuffer",ko.framebuffers)}function Qa(e,t){Ha(e,t,"createQuery",ko.queries)}function Za(e,t){for(var r=0;r<e;r++){var n=Od.disjointTimerQueryExt.createQueryEXT();if(!n){for(ko.recordError(1282);r<e;)W[t+4*r++>>2]=0;return}var o=ko.getNewId(ko.queries);n.name=o,ko.queries[o]=n,W[t+4*r>>2]=o}}function Ga(e,t){Ha(e,t,"createRenderbuffer",ko.renderbuffers)}function qa(e,t){Ha(e,t,"createSampler",ko.samplers)}function Wa(e,t){Ha(e,t,"createTexture",ko.textures)}function Va(e,t){Ha(e,t,"createTransformFeedback",ko.transformFeedbacks)}function za(e,t){Ha(e,t,"createVertexArray",ko.vaos)}function $a(e,t){Ha(e,t,"createVertexArray",ko.vaos)}function Ya(e){Od.generateMipmap(e)}function Ka(e,t,r,n,o,i,a,s){t=ko.programs[t];var c=Od[e](t,r);if(c){var u=s&&H(c.name,s,n);o&&(W[o>>2]=u),i&&(W[i>>2]=c.size),a&&(W[a>>2]=c.type)}}function Ja(e,t,r,n,o,i,a){Ka("getActiveAttrib",e,t,r,n,o,i,a)}function es(e,t,r,n,o,i,a){Ka("getActiveUniform",e,t,r,n,o,i,a)}function ts(e,t,r,n,o){e=ko.programs[e];var i=Od.getActiveUniformBlockName(e,t);if(i)if(o&&r>0){var a=H(i,o,r);n&&(W[n>>2]=a)}else n&&(W[n>>2]=0)}function rs(e,t,r,n){if(n)if(e=ko.programs[e],35393!=r){var o=Od.getActiveUniformBlockParameter(e,t,r);if(null!==o)if(35395==r)for(var i=0;i<o.length;i++)W[n+4*i>>2]=o[i];else W[n>>2]=o}else{var a=Od.getActiveUniformBlockName(e,t);W[n>>2]=a.length+1}else ko.recordError(1281)}function ns(e,t,r,n,o){if(o)if(t>0&&0==r)ko.recordError(1281);else{e=ko.programs[e];for(var i=[],a=0;a<t;a++)i.push(W[r+4*a>>2]);var s=Od.getActiveUniforms(e,i,n);if(s){var c=s.length;for(a=0;a<c;a++)W[o+4*a>>2]=s[a]}}else ko.recordError(1281)}function os(e,t,r,n){var o=Od.getAttachedShaders(ko.programs[e]),i=o.length;i>t&&(i=t),W[r>>2]=i;for(var a=0;a<i;++a){var s=ko.shaders.indexOf(o[a]);W[n+4*a>>2]=s}}function is(e,t){return Od.getAttribLocation(ko.programs[e],U(t))}function as(e){return V[e>>2]+4294967296*W[e+4>>2]}function ss(e){return V[e>>2]+4294967296*V[e+4>>2]}function cs(e,t){V[e>>2]=t,V[e+4>>2]=(t-V[e>>2])/4294967296;var r=t>=0?ss(e):as(e);r!=t&&P("writeI53ToI64() out of range: serialized JS Number "+t+" to Wasm heap as bytes lo=0x"+V[e>>2].toString(16)+", hi=0x"+V[e+4>>2].toString(16)+", which deserializes back to "+r+" instead!")}function us(e,t,r){if(t){var n=void 0;switch(e){case 36346:n=1;break;case 36344:return void(0!=r&&1!=r&&ko.recordError(1280));case 34814:case 36345:n=0;break;case 34466:var o=Od.getParameter(34467);n=o?o.length:0;break;case 33309:if(ko.currentContext.version<2)return void ko.recordError(1282);n=2*(Od.getSupportedExtensions()||[]).length;break;case 33307:case 33308:if(ko.currentContext.version<2)return void ko.recordError(1280);n=33307==e?3:0}if(void 0===n){var i=Od.getParameter(e);switch(typeof i){case"number":n=i;break;case"boolean":n=i?1:0;break;case"string":return void ko.recordError(1280);case"object":if(null===i)switch(e){case 34964:case 35725:case 34965:case 36006:case 36007:case 32873:case 34229:case 36662:case 36663:case 35053:case 35055:case 36010:case 35097:case 35869:case 32874:case 36389:case 35983:case 35368:case 34068:n=0;break;default:return void ko.recordError(1280)}else{if(i instanceof Float32Array||i instanceof Uint32Array||i instanceof Int32Array||i instanceof Array){for(var a=0;a<i.length;++a)switch(r){case 0:W[t+4*a>>2]=i[a];break;case 2:z[t+4*a>>2]=i[a];break;case 4:Q[t+a>>0]=i[a]?1:0}return}try{n=0|i.name}catch(t){return ko.recordError(1280),void O("GL_INVALID_ENUM in glGet"+r+"v: Unknown object returned from WebGL getParameter("+e+")! (error: "+t+")")}}break;default:return ko.recordError(1280),void O("GL_INVALID_ENUM in glGet"+r+"v: Native code calling glGet"+r+"v("+e+") and it returns "+i+" of type "+typeof i+"!")}}switch(r){case 1:cs(t,n);break;case 0:W[t>>2]=n;break;case 2:z[t>>2]=n;break;case 4:Q[t>>0]=n?1:0}}else ko.recordError(1281)}function ls(e,t){us(e,t,4)}function ds(e,t,r){r?cs(r,Od.getBufferParameter(e,t)):ko.recordError(1281)}function ps(e,t,r){r?W[r>>2]=Od.getBufferParameter(e,t):ko.recordError(1281)}function fs(){var e=Od.getError()||ko.lastError;return ko.lastError=0,e}function ms(e,t){us(e,t,2)}function gs(e,t){return Od.getFragDataLocation(ko.programs[e],U(t))}function hs(e,t,r,n){var o=Od.getFramebufferAttachmentParameter(e,t,r);(o instanceof WebGLRenderbuffer||o instanceof WebGLTexture)&&(o=0|o.name),W[n>>2]=o}function Es(e,t,r,n){if(r){var o,i=Od.getIndexedParameter(e,t);switch(typeof i){case"boolean":o=i?1:0;break;case"number":o=i;break;case"object":if(null===i)switch(e){case 35983:case 35368:o=0;break;default:return void ko.recordError(1280)}else{if(!(i instanceof WebGLBuffer))return void ko.recordError(1280);o=0|i.name}break;default:return void ko.recordError(1280)}switch(n){case 1:cs(r,o);break;case 0:W[r>>2]=o;break;case 2:z[r>>2]=o;break;case 4:Q[r>>0]=o?1:0;break;default:throw"internal emscriptenWebGLGetIndexed() error, bad type: "+n}}else ko.recordError(1281)}function _s(e,t,r){Es(e,t,r,1)}function ys(e,t){us(e,t,1)}function vs(e,t,r){Es(e,t,r,0)}function bs(e,t){us(e,t,0)}function ws(e,t,r,n,o){if(n<0)ko.recordError(1281);else if(o){var i=Od.getInternalformatParameter(e,t,r);if(null!==i)for(var a=0;a<i.length&&a<n;++a)W[o+4*a>>2]=i[a]}else ko.recordError(1281)}function Ts(e,t,r,n,o){ko.recordError(1282)}function Os(e,t,r,n){var o=Od.getProgramInfoLog(ko.programs[e]);null===o&&(o="(unknown error)");var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}function Ps(e,t,r){if(r)if(e>=ko.counter)ko.recordError(1281);else if(e=ko.programs[e],35716==t){var n=Od.getProgramInfoLog(e);null===n&&(n="(unknown error)"),W[r>>2]=n.length+1}else if(35719==t){if(!e.maxUniformLength)for(var o=0;o<Od.getProgramParameter(e,35718);++o)e.maxUniformLength=Math.max(e.maxUniformLength,Od.getActiveUniform(e,o).name.length+1);W[r>>2]=e.maxUniformLength}else if(35722==t){if(!e.maxAttributeLength)for(o=0;o<Od.getProgramParameter(e,35721);++o)e.maxAttributeLength=Math.max(e.maxAttributeLength,Od.getActiveAttrib(e,o).name.length+1);W[r>>2]=e.maxAttributeLength}else if(35381==t){if(!e.maxUniformBlockNameLength)for(o=0;o<Od.getProgramParameter(e,35382);++o)e.maxUniformBlockNameLength=Math.max(e.maxUniformBlockNameLength,Od.getActiveUniformBlockName(e,o).length+1);W[r>>2]=e.maxUniformBlockNameLength}else W[r>>2]=Od.getProgramParameter(e,t);else ko.recordError(1281)}function Ds(e,t,r){if(r){var n,o=ko.queries[e];cs(r,"boolean"==typeof(n=ko.currentContext.version<2?Od.disjointTimerQueryExt.getQueryObjectEXT(o,t):Od.getQueryParameter(o,t))?n?1:0:n)}else ko.recordError(1281)}function xs(e,t,r){if(r){var n,o=ko.queries[e],i=Od.disjointTimerQueryExt.getQueryObjectEXT(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else ko.recordError(1281)}function Ss(e,t,r){if(r){var n,o=ko.queries[e];cs(r,"boolean"==typeof(n=ko.currentContext.version<2?Od.disjointTimerQueryExt.getQueryObjectEXT(o,t):Od.getQueryParameter(o,t))?n?1:0:n)}else ko.recordError(1281)}function Rs(e,t,r){if(r){var n,o=ko.queries[e],i=Od.getQueryParameter(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else ko.recordError(1281)}function Ms(e,t,r){if(r){var n,o=ko.queries[e],i=Od.disjointTimerQueryExt.getQueryObjectEXT(o,t);n="boolean"==typeof i?i?1:0:i,W[r>>2]=n}else ko.recordError(1281)}function As(e,t,r){r?W[r>>2]=Od.getQuery(e,t):ko.recordError(1281)}function ks(e,t,r){r?W[r>>2]=Od.disjointTimerQueryExt.getQueryEXT(e,t):ko.recordError(1281)}function Fs(e,t,r){r?W[r>>2]=Od.getRenderbufferParameter(e,t):ko.recordError(1281)}function Cs(e,t,r){r?z[r>>2]=Od.getSamplerParameter(ko.samplers[e],t):ko.recordError(1281)}function Is(e,t,r){r?W[r>>2]=Od.getSamplerParameter(ko.samplers[e],t):ko.recordError(1281)}function Ls(e,t,r,n){var o=Od.getShaderInfoLog(ko.shaders[e]);null===o&&(o="(unknown error)");var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}function js(e,t,r,n){var o=Od.getShaderPrecisionFormat(e,t);W[r>>2]=o.rangeMin,W[r+4>>2]=o.rangeMax,W[n>>2]=o.precision}function Us(e,t,r,n){var o=Od.getShaderSource(ko.shaders[e]);if(o){var i=t>0&&n?H(o,n,t):0;r&&(W[r>>2]=i)}}function Ns(e,t,r){if(r)if(35716==t){var n=Od.getShaderInfoLog(ko.shaders[e]);null===n&&(n="(unknown error)");var o=n?n.length+1:0;W[r>>2]=o}else if(35720==t){var i=Od.getShaderSource(ko.shaders[e]),a=i?i.length+1:0;W[r>>2]=a}else W[r>>2]=Od.getShaderParameter(ko.shaders[e],t);else ko.recordError(1281)}function Hs(e){var t=B(e)+1,r=Cd(t);return H(e,r,t),r}function Bs(e){var t=ko.stringCache[e];if(!t){switch(e){case 7939:var r=Od.getSupportedExtensions()||[];t=Hs((r=r.concat(r.map((function(e){return"GL_"+e})))).join(" "));break;case 7936:case 7937:case 37445:case 37446:var n=Od.getParameter(e);n||ko.recordError(1280),t=n&&Hs(n);break;case 7938:var o=Od.getParameter(7938);t=Hs(o=ko.currentContext.version>=2?"OpenGL ES 3.0 ("+o+")":"OpenGL ES 2.0 ("+o+")");break;case 35724:var i=Od.getParameter(35724),a=i.match(/^WebGL GLSL ES ([0-9]\.[0-9][0-9]?)(?:$| .*)/);null!==a&&(3==a[1].length&&(a[1]=a[1]+"0"),i="OpenGL ES GLSL ES "+a[1]+" ("+i+")"),t=Hs(i);break;default:ko.recordError(1280)}ko.stringCache[e]=t}return t}function Xs(e,t){if(ko.currentContext.version<2)return ko.recordError(1282),0;var r=ko.stringiCache[e];if(r)return t<0||t>=r.length?(ko.recordError(1281),0):r[t];switch(e){case 7939:var n=Od.getSupportedExtensions()||[];return n=(n=n.concat(n.map((function(e){return"GL_"+e})))).map((function(e){return Hs(e)})),r=ko.stringiCache[e]=n,t<0||t>=r.length?(ko.recordError(1281),0):r[t];default:return ko.recordError(1280),0}}function Qs(e,t,r,n,o){if(r<0)ko.recordError(1281);else if(o){var i=Od.getSyncParameter(ko.syncs[e],t);null!==i&&(W[o>>2]=i,n&&(W[n>>2]=1))}else ko.recordError(1281)}function Zs(e,t,r){r?z[r>>2]=Od.getTexParameter(e,t):ko.recordError(1281)}function Gs(e,t,r){r?W[r>>2]=Od.getTexParameter(e,t):ko.recordError(1281)}function qs(e,t,r,n,o,i,a){e=ko.programs[e];var s=Od.getTransformFeedbackVarying(e,t);if(s){if(a&&r>0){var c=H(s.name,a,r);n&&(W[n>>2]=c)}else n&&(W[n>>2]=0);o&&(W[o>>2]=s.size),i&&(W[i>>2]=s.type)}}function Ws(e,t){return Od.getUniformBlockIndex(ko.programs[e],U(t))}function Vs(e,t,r,n){if(n)if(t>0&&(0==r||0==n))ko.recordError(1281);else{e=ko.programs[e];for(var o=[],i=0;i<t;i++)o.push(U(W[r+4*i>>2]));var a=Od.getUniformIndices(e,o);if(a){var s=a.length;for(i=0;i<s;i++)W[n+4*i>>2]=a[i]}}else ko.recordError(1281)}function zs(e){return parseInt(e)}function $s(e){return"]"==e.slice(-1)&&e.lastIndexOf("[")}function Ys(e){var t,r,n=e.uniformLocsById,o=e.uniformSizeAndIdsByName;if(!n)for(e.uniformLocsById=n={},e.uniformArrayNamesById={},t=0;t<Od.getProgramParameter(e,35718);++t){var i=Od.getActiveUniform(e,t),a=i.name,s=i.size,c=$s(a),u=c>0?a.slice(0,c):a,l=e.uniformIdCounter;for(e.uniformIdCounter+=s,o[u]=[s,l],r=0;r<s;++r)n[l]=r,e.uniformArrayNamesById[l++]=u}}function Ks(e,t){if(t=U(t),e=ko.programs[e]){Ys(e);var r=e.uniformLocsById,n=0,o=t,i=$s(t);i>0&&(n=zs(t.slice(i+1))>>>0,o=t.slice(0,i));var a=e.uniformSizeAndIdsByName[o];if(a&&n<a[0]&&(r[n+=a[1]]=r[n]||Od.getUniformLocation(e,t)))return n}else ko.recordError(1281);return-1}function Js(e){var t=Od.currentProgram;if(t){var r=t.uniformLocsById[e];return"number"==typeof r&&(t.uniformLocsById[e]=r=Od.getUniformLocation(t,t.uniformArrayNamesById[e]+(r>0?"["+r+"]":""))),r}ko.recordError(1282)}function ec(e,t,r,n){if(r){Ys(e=ko.programs[e]);var o=Od.getUniform(e,Js(t));if("number"==typeof o||"boolean"==typeof o)switch(n){case 0:W[r>>2]=o;break;case 2:z[r>>2]=o}else for(var i=0;i<o.length;i++)switch(n){case 0:W[r+4*i>>2]=o[i];break;case 2:z[r+4*i>>2]=o[i]}}else ko.recordError(1281)}function tc(e,t,r){ec(e,t,r,2)}function rc(e,t,r){ec(e,t,r,0)}function nc(e,t,r){ec(e,t,r,0)}function oc(e,t,r,n){if(r){var o=Od.getVertexAttrib(e,t);if(34975==t)W[r>>2]=o&&o.name;else if("number"==typeof o||"boolean"==typeof o)switch(n){case 0:W[r>>2]=o;break;case 2:z[r>>2]=o;break;case 5:W[r>>2]=Math.fround(o)}else for(var i=0;i<o.length;i++)switch(n){case 0:W[r+4*i>>2]=o[i];break;case 2:z[r+4*i>>2]=o[i];break;case 5:W[r+4*i>>2]=Math.fround(o[i])}}else ko.recordError(1281)}function ic(e,t,r){oc(e,t,r,0)}function ac(e,t,r){oc(e,t,r,0)}function sc(e,t,r){r?W[r>>2]=Od.getVertexAttribOffset(e,t):ko.recordError(1281)}function cc(e,t,r){oc(e,t,r,2)}function uc(e,t,r){oc(e,t,r,5)}function lc(e,t){Od.hint(e,t)}function dc(e,t,r){for(var n=ga[t],o=0;o<t;o++)n[o]=W[r+4*o>>2];Od.invalidateFramebuffer(e,n)}function pc(e,t,r,n,o,i,a){for(var s=ga[t],c=0;c<t;c++)s[c]=W[r+4*c>>2];Od.invalidateSubFramebuffer(e,s,n,o,i,a)}function fc(e){var t=ko.buffers[e];return t?Od.isBuffer(t):0}function mc(e){return Od.isEnabled(e)}function gc(e){var t=ko.framebuffers[e];return t?Od.isFramebuffer(t):0}function hc(e){return(e=ko.programs[e])?Od.isProgram(e):0}function Ec(e){var t=ko.queries[e];return t?Od.isQuery(t):0}function _c(e){var t=ko.queries[e];return t?Od.disjointTimerQueryExt.isQueryEXT(t):0}function yc(e){var t=ko.renderbuffers[e];return t?Od.isRenderbuffer(t):0}function vc(e){var t=ko.samplers[e];return t?Od.isSampler(t):0}function bc(e){var t=ko.shaders[e];return t?Od.isShader(t):0}function wc(e){return Od.isSync(ko.syncs[e])}function Tc(e){var t=ko.textures[e];return t?Od.isTexture(t):0}function Oc(e){return Od.isTransformFeedback(ko.transformFeedbacks[e])}function Pc(e){var t=ko.vaos[e];return t?Od.isVertexArray(t):0}function Dc(e){var t=ko.vaos[e];return t?Od.isVertexArray(t):0}function xc(e){Od.lineWidth(e)}function Sc(e){e=ko.programs[e],Od.linkProgram(e),e.uniformLocsById=0,e.uniformSizeAndIdsByName={}}function Rc(e,t,r,n,o,i){Od.mdibvbi.multiDrawArraysInstancedBaseInstanceWEBGL(e,W,t>>2,W,r>>2,W,n>>2,V,o>>2,i)}function Mc(e,t,r,n,o,i,a,s){Od.mdibvbi.multiDrawElementsInstancedBaseVertexBaseInstanceWEBGL(e,W,t>>2,r,W,n>>2,W,o>>2,W,i>>2,V,a>>2,s)}function Ac(){Od.pauseTransformFeedback()}function kc(e,t){3317==e&&(ko.unpackAlignment=t),Od.pixelStorei(e,t)}function Fc(e,t){Od.polygonOffset(e,t)}function Cc(e,t,r,n){ko.recordError(1280)}function Ic(e,t,r){ko.recordError(1280)}function Lc(e,t){Od.disjointTimerQueryExt.queryCounterEXT(ko.queries[e],t)}function jc(e){Od.readBuffer(e)}function Uc(e,t,r,n){var o;return t*(e*r+(o=n)-1&-o)}function Nc(e){return{5:3,6:4,8:2,29502:3,29504:4,26917:2,26918:2,29846:3,29847:4}[e-6402]||1}function Hc(e){return 0==(e-=5120)?Q:1==e?Z:2==e?G:4==e?W:6==e?z:5==e||28922==e||28520==e||30779==e||30782==e?V:q}function Bc(e){return 31-Math.clz32(e.BYTES_PER_ELEMENT)}function Xc(e,t,r,n,o,i){var a=Hc(e),s=Bc(a),c=1<<s,u=Uc(r,n,Nc(t)*c,ko.unpackAlignment);return a.subarray(o>>s,o+u>>s)}function Qc(e,t,r,n,o,i,a){if(ko.currentContext.version>=2)if(Od.currentPixelPackBufferBinding)Od.readPixels(e,t,r,n,o,i,a);else{var s=Hc(i);Od.readPixels(e,t,r,n,o,i,s,a>>Bc(s))}else{var c=Xc(i,o,r,n,a);c?Od.readPixels(e,t,r,n,o,i,c):ko.recordError(1280)}}function Zc(){}function Gc(e,t,r,n){Od.renderbufferStorage(e,t,r,n)}function qc(e,t,r,n,o){Od.renderbufferStorageMultisample(e,t,r,n,o)}function Wc(){Od.resumeTransformFeedback()}function Vc(e,t){Od.sampleCoverage(e,!!t)}function zc(e,t,r){Od.samplerParameterf(ko.samplers[e],t,r)}function $c(e,t,r){var n=z[r>>2];Od.samplerParameterf(ko.samplers[e],t,n)}function Yc(e,t,r){Od.samplerParameteri(ko.samplers[e],t,r)}function Kc(e,t,r){var n=W[r>>2];Od.samplerParameteri(ko.samplers[e],t,n)}function Jc(e,t,r,n){Od.scissor(e,t,r,n)}function eu(){ko.recordError(1280)}function tu(e,t,r,n){var o=ko.getSource(e,t,r,n);if(ko.currentContext.version>=2&&o.includes("#version 100")){var i="";(o=(o=o.replace(/#extension GL_OES_standard_derivatives : enable/g,"")).replace(/#extension GL_EXT_shader_texture_lod : enable/g,"")).includes("gl_FragColor")&&(i+="out mediump vec4 GL_FragColor;\n",o=o.replace(/gl_FragColor/g,"GL_FragColor")),o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=o.includes("attribute")?(o=o.replace(/attribute/g,"in")).replace(/varying/g,"out"):o.replace(/varying/g,"in")).replace(/textureCubeLodEXT/g,"textureCubeLod")).replace(/texture2DLodEXT/g,"texture2DLod")).replace(/texture2DProjLodEXT/g,"texture2DProjLod")).replace(/texture2DGradEXT/g,"texture2DGrad")).replace(/texture2DProjGradEXT/g,"texture2DProjGrad")).replace(/textureCubeGradEXT/g,"textureCubeGrad")).replace(/textureCube/g,"texture")).replace(/texture1D/g,"texture")).replace(/texture2D/g,"texture")).replace(/texture3D/g,"texture")).replace(/#version 100/g,"#version 300 es\n"+i)}Od.shaderSource(ko.shaders[e],o)}function ru(e,t,r){Od.stencilFunc(e,t,r)}function nu(e,t,r,n){Od.stencilFuncSeparate(e,t,r,n)}function ou(e){Od.stencilMask(e)}function iu(e,t){Od.stencilMaskSeparate(e,t)}function au(e,t,r){Od.stencilOp(e,t,r)}function su(e,t,r,n){Od.stencilOpSeparate(e,t,r,n)}function cu(e,t,r,n,o,i,a,s,c){if(ko.currentContext.version>=2&&(6402==a&&6402==r&&5125==s&&(r=33190),36193==s&&(s=5131,6408==a&&6408==r&&(r=34842)),34041==r&&(r=35056)),ko.currentContext.version>=2)if(Od.currentPixelUnpackBufferBinding)Od.texImage2D(e,t,r,n,o,i,a,s,c);else if(c){var u=Hc(s);Od.texImage2D(e,t,r,n,o,i,a,s,u,c>>Bc(u))}else Od.texImage2D(e,t,r,n,o,i,a,s,null);else Od.texImage2D(e,t,r,n,o,i,a,s,c?Xc(s,a,n,o,c):null)}function uu(e,t,r,n,o,i,a,s,c,u){if(Od.currentPixelUnpackBufferBinding)Od.texImage3D(e,t,r,n,o,i,a,s,c,u);else if(u){var l=Hc(c);Od.texImage3D(e,t,r,n,o,i,a,s,c,l,u>>Bc(l))}else Od.texImage3D(e,t,r,n,o,i,a,s,c,null)}function lu(e,t,r){Od.texParameterf(e,t,r)}function du(e,t,r){var n=z[r>>2];Od.texParameterf(e,t,n)}function pu(e,t,r){Od.texParameteri(e,t,r)}function fu(e,t,r){var n=W[r>>2];Od.texParameteri(e,t,n)}function mu(e,t,r,n,o){Od.texStorage2D(e,t,r,n,o)}function gu(e,t,r,n,o,i){Od.texStorage3D(e,t,r,n,o,i)}function hu(e,t,r,n,o,i,a,s,c){if(ko.currentContext.version>=2&&36193==s&&(s=5131),ko.currentContext.version>=2)if(Od.currentPixelUnpackBufferBinding)Od.texSubImage2D(e,t,r,n,o,i,a,s,c);else if(c){var u=Hc(s);Od.texSubImage2D(e,t,r,n,o,i,a,s,u,c>>Bc(u))}else Od.texSubImage2D(e,t,r,n,o,i,a,s,null);else{var l=null;c&&(l=Xc(s,a,o,i,c)),Od.texSubImage2D(e,t,r,n,o,i,a,s,l)}}function Eu(e,t,r,n,o,i,a,s,c,u,l){if(Od.currentPixelUnpackBufferBinding)Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,l);else if(l){var d=Hc(u);Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,d,l>>Bc(d))}else Od.texSubImage3D(e,t,r,n,o,i,a,s,c,u,null)}function _u(e,t,r,n){e=ko.programs[e];for(var o=[],i=0;i<t;i++)o.push(U(W[r+4*i>>2]));Od.transformFeedbackVaryings(e,o,n)}function yu(e,t){Od.uniform1f(Js(e),t)}var vu=[];function bu(e,t,r){if(ko.currentContext.version>=2)Od.uniform1fv(Js(e),z,r>>2,t);else{if(t<=288)for(var n=vu[t-1],o=0;o<t;++o)n[o]=z[r+4*o>>2];else n=z.subarray(r>>2,r+4*t>>2);Od.uniform1fv(Js(e),n)}}function wu(e,t){Od.uniform1i(Js(e),t)}var Tu=[];function Ou(e,t,r){if(ko.currentContext.version>=2)Od.uniform1iv(Js(e),W,r>>2,t);else{if(t<=288)for(var n=Tu[t-1],o=0;o<t;++o)n[o]=W[r+4*o>>2];else n=W.subarray(r>>2,r+4*t>>2);Od.uniform1iv(Js(e),n)}}function Pu(e,t){Od.uniform1ui(Js(e),t)}function Du(e,t,r){Od.uniform1uiv(Js(e),V,r>>2,t)}function xu(e,t,r){Od.uniform2f(Js(e),t,r)}function Su(e,t,r){if(ko.currentContext.version>=2)Od.uniform2fv(Js(e),z,r>>2,2*t);else{if(t<=144)for(var n=vu[2*t-1],o=0;o<2*t;o+=2)n[o]=z[r+4*o>>2],n[o+1]=z[r+(4*o+4)>>2];else n=z.subarray(r>>2,r+8*t>>2);Od.uniform2fv(Js(e),n)}}function Ru(e,t,r){Od.uniform2i(Js(e),t,r)}function Mu(e,t,r){if(ko.currentContext.version>=2)Od.uniform2iv(Js(e),W,r>>2,2*t);else{if(t<=144)for(var n=Tu[2*t-1],o=0;o<2*t;o+=2)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2];else n=W.subarray(r>>2,r+8*t>>2);Od.uniform2iv(Js(e),n)}}function Au(e,t,r){Od.uniform2ui(Js(e),t,r)}function ku(e,t,r){Od.uniform2uiv(Js(e),V,r>>2,2*t)}function Fu(e,t,r,n){Od.uniform3f(Js(e),t,r,n)}function Cu(e,t,r){if(ko.currentContext.version>=2)Od.uniform3fv(Js(e),z,r>>2,3*t);else{if(t<=96)for(var n=vu[3*t-1],o=0;o<3*t;o+=3)n[o]=z[r+4*o>>2],n[o+1]=z[r+(4*o+4)>>2],n[o+2]=z[r+(4*o+8)>>2];else n=z.subarray(r>>2,r+12*t>>2);Od.uniform3fv(Js(e),n)}}function Iu(e,t,r,n){Od.uniform3i(Js(e),t,r,n)}function Lu(e,t,r){if(ko.currentContext.version>=2)Od.uniform3iv(Js(e),W,r>>2,3*t);else{if(t<=96)for(var n=Tu[3*t-1],o=0;o<3*t;o+=3)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2],n[o+2]=W[r+(4*o+8)>>2];else n=W.subarray(r>>2,r+12*t>>2);Od.uniform3iv(Js(e),n)}}function ju(e,t,r,n){Od.uniform3ui(Js(e),t,r,n)}function Uu(e,t,r){Od.uniform3uiv(Js(e),V,r>>2,3*t)}function Nu(e,t,r,n,o){Od.uniform4f(Js(e),t,r,n,o)}function Hu(e,t,r){if(ko.currentContext.version>=2)Od.uniform4fv(Js(e),z,r>>2,4*t);else{if(t<=72){var n=vu[4*t-1],o=z;r>>=2;for(var i=0;i<4*t;i+=4){var a=r+i;n[i]=o[a],n[i+1]=o[a+1],n[i+2]=o[a+2],n[i+3]=o[a+3]}}else n=z.subarray(r>>2,r+16*t>>2);Od.uniform4fv(Js(e),n)}}function Bu(e,t,r,n,o){Od.uniform4i(Js(e),t,r,n,o)}function Xu(e,t,r){if(ko.currentContext.version>=2)Od.uniform4iv(Js(e),W,r>>2,4*t);else{if(t<=72)for(var n=Tu[4*t-1],o=0;o<4*t;o+=4)n[o]=W[r+4*o>>2],n[o+1]=W[r+(4*o+4)>>2],n[o+2]=W[r+(4*o+8)>>2],n[o+3]=W[r+(4*o+12)>>2];else n=W.subarray(r>>2,r+16*t>>2);Od.uniform4iv(Js(e),n)}}function Qu(e,t,r,n,o){Od.uniform4ui(Js(e),t,r,n,o)}function Zu(e,t,r){Od.uniform4uiv(Js(e),V,r>>2,4*t)}function Gu(e,t,r){e=ko.programs[e],Od.uniformBlockBinding(e,t,r)}function qu(e,t,r,n){if(ko.currentContext.version>=2)Od.uniformMatrix2fv(Js(e),!!r,z,n>>2,4*t);else{if(t<=72)for(var o=vu[4*t-1],i=0;i<4*t;i+=4)o[i]=z[n+4*i>>2],o[i+1]=z[n+(4*i+4)>>2],o[i+2]=z[n+(4*i+8)>>2],o[i+3]=z[n+(4*i+12)>>2];else o=z.subarray(n>>2,n+16*t>>2);Od.uniformMatrix2fv(Js(e),!!r,o)}}function Wu(e,t,r,n){Od.uniformMatrix2x3fv(Js(e),!!r,z,n>>2,6*t)}function Vu(e,t,r,n){Od.uniformMatrix2x4fv(Js(e),!!r,z,n>>2,8*t)}function zu(e,t,r,n){if(ko.currentContext.version>=2)Od.uniformMatrix3fv(Js(e),!!r,z,n>>2,9*t);else{if(t<=32)for(var o=vu[9*t-1],i=0;i<9*t;i+=9)o[i]=z[n+4*i>>2],o[i+1]=z[n+(4*i+4)>>2],o[i+2]=z[n+(4*i+8)>>2],o[i+3]=z[n+(4*i+12)>>2],o[i+4]=z[n+(4*i+16)>>2],o[i+5]=z[n+(4*i+20)>>2],o[i+6]=z[n+(4*i+24)>>2],o[i+7]=z[n+(4*i+28)>>2],o[i+8]=z[n+(4*i+32)>>2];else o=z.subarray(n>>2,n+36*t>>2);Od.uniformMatrix3fv(Js(e),!!r,o)}}function $u(e,t,r,n){Od.uniformMatrix3x2fv(Js(e),!!r,z,n>>2,6*t)}function Yu(e,t,r,n){Od.uniformMatrix3x4fv(Js(e),!!r,z,n>>2,12*t)}function Ku(e,t,r,n){if(ko.currentContext.version>=2)Od.uniformMatrix4fv(Js(e),!!r,z,n>>2,16*t);else{if(t<=18){var o=vu[16*t-1],i=z;n>>=2;for(var a=0;a<16*t;a+=16){var s=n+a;o[a]=i[s],o[a+1]=i[s+1],o[a+2]=i[s+2],o[a+3]=i[s+3],o[a+4]=i[s+4],o[a+5]=i[s+5],o[a+6]=i[s+6],o[a+7]=i[s+7],o[a+8]=i[s+8],o[a+9]=i[s+9],o[a+10]=i[s+10],o[a+11]=i[s+11],o[a+12]=i[s+12],o[a+13]=i[s+13],o[a+14]=i[s+14],o[a+15]=i[s+15]}}else o=z.subarray(n>>2,n+64*t>>2);Od.uniformMatrix4fv(Js(e),!!r,o)}}function Ju(e,t,r,n){Od.uniformMatrix4x2fv(Js(e),!!r,z,n>>2,8*t)}function el(e,t,r,n){Od.uniformMatrix4x3fv(Js(e),!!r,z,n>>2,12*t)}function tl(e){e=ko.programs[e],Od.useProgram(e),Od.currentProgram=e}function rl(e){Od.validateProgram(ko.programs[e])}function nl(e,t){Od.vertexAttrib1f(e,t)}function ol(e,t){Od.vertexAttrib1f(e,z[t>>2])}function il(e,t,r){Od.vertexAttrib2f(e,t,r)}function al(e,t){Od.vertexAttrib2f(e,z[t>>2],z[t+4>>2])}function sl(e,t,r,n){Od.vertexAttrib3f(e,t,r,n)}function cl(e,t){Od.vertexAttrib3f(e,z[t>>2],z[t+4>>2],z[t+8>>2])}function ul(e,t,r,n,o){Od.vertexAttrib4f(e,t,r,n,o)}function ll(e,t){Od.vertexAttrib4f(e,z[t>>2],z[t+4>>2],z[t+8>>2],z[t+12>>2])}function dl(e,t){Od.vertexAttribDivisor(e,t)}function pl(e,t){Od.vertexAttribDivisor(e,t)}function fl(e,t){Od.vertexAttribDivisor(e,t)}function ml(e,t){Od.vertexAttribDivisor(e,t)}function gl(e,t){Od.vertexAttribDivisor(e,t)}function hl(e,t,r,n,o){Od.vertexAttribI4i(e,t,r,n,o)}function El(e,t){Od.vertexAttribI4i(e,W[t>>2],W[t+4>>2],W[t+8>>2],W[t+12>>2])}function _l(e,t,r,n,o){Od.vertexAttribI4ui(e,t,r,n,o)}function yl(e,t){Od.vertexAttribI4ui(e,V[t>>2],V[t+4>>2],V[t+8>>2],V[t+12>>2])}function vl(e,t,r,n,o){Od.vertexAttribIPointer(e,t,r,n,o)}function bl(e,t,r,n,o,i){Od.vertexAttribPointer(e,t,r,!!n,o,i)}function wl(e,t,r,n){Od.viewport(e,t,r,n)}function Tl(e,t,r,n){Od.waitSync(ko.syncs[e],t,Si(r,n))}function Ol(e,t,r){Z.copyWithin(e,t,t+r)}function Pl(e){try{return M.grow(e-X.byteLength+65535>>>16),ue(M.buffer),1}catch(t){O("emscripten_realloc_buffer: Attempted to grow heap from "+X.byteLength+" bytes to "+e+" bytes, but got error: "+t)}}function Dl(e){var t=Z.length;I((e>>>=0)>t);var r=2147483648;if(e>r)return O("Cannot enlarge memory, asked to go up to "+e+" bytes, but the limit is 2147483648 bytes!"),!1;for(var n=1;n<=4;n*=2){var o=t*(1+.2/n);o=Math.min(o,e+100663296);var i=Math.min(r,ce(Math.max(e,o),65536));if(Pl(i))return!0}return O("Failed to grow the heap from "+t+" bytes to "+i+" bytes, not enough memory!"),!1}function xl(e,t,r,n,o,a,s){const c=i.UTF8ToString(e,e+t),u=i.HEAPU8.subarray(o,o+a);let l=i.emscripten_ubq_codec_decoderNextHandle++;var d=ko.textures[s];const p=i.emscripten_ubq_codec_createVideoDecoder(d),f={codec:c,codedWidth:r,codedHeight:n,description:new Uint8Array(u)};return p.configure(f),i.emscripten_ubq_codec_decoders.set(l,{videoDecoder:p,decoderConfig:f,texture:d}),l}function Sl(e,t,r,n,o,a){const s=i.emscripten_ubq_codec_decoders.get(e);"closed"===s.videoDecoder.state&&(s.videoDecoder=i.emscripten_ubq_codec_createVideoDecoder(s.texture),s.videoDecoder.configure(s.decoderConfig));const c=s.videoDecoder,u=i.HEAPU8.subarray(o,o+a),l=new EncodedVideoChunk({type:t?"key":"delta",timestamp:r,duration:n,data:u});try{c.decode(l)}catch(e){return console.error(e),!1}return!0}function Rl(e){i.emscripten_ubq_codec_decoders.get(e).videoDecoder.close(),i.emscripten_ubq_codec_decoders.delete(e)}async function Ml(e){const t=i.emscripten_ubq_codec_decoders.get(e).videoDecoder;await t.flush()}function Al(e){return i.emscripten_ubq_codec_decoders.get(e).videoDecoder.presentedFrames}function kl(){return"VideoFrame"in window}function Fl(e){const t=i.emscripten_ubq_codec_decoders.get(e).videoDecoder;t.presentedFrames=0,t.probing=!0}function Cl(e){i.emscripten_ubq_codec_decoders.get(e).videoDecoder.probing=!1}function Il(e){const t=i.emscripten_ubq_codec_decoders.get(e),r=!0===t.videoDecoder.textureUploadFlag;return t.videoDecoder.textureUploadFlag=!1,r}function Ll(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return!0;if(t.state==s.FINISHED){const r=t.result.length,n=i._malloc(r);return i.HEAPU8.set(t.result,n),t.resultAddress=n,t.resultLength=r,t.state=s.ALLOCATED,i.emscripten_ubq_asyncFetchStates.set(e,t),!0}}return!1}function jl(e,t,r,n){let o=i.UTF8ToString(e,t),a=i.UTF8ToString(r,n),s=i.emscripten_ubq_asyncFetchNextHeaderHandle++;return i.emscripten_ubq_asyncFetchHeaders.set(s,{key:o,value:a}),s}function Ul(e){return i.emscripten_ubq_asyncFetchHeaders.has(e)?i.emscripten_ubq_asyncFetchHeaders.get(e):0}function Nl(e,t,r,n,o,a,u,l,d){let p=i.UTF8ToString(t,r),f=i.UTF8ToString(l,d),m=i.emscripten_ubq_asyncFetchNextHandle++;i.emscripten_ubq_asyncFetchStates.set(m,{state:s.PENDING});let g={};for(let e=0;e<o;e++){const t=i.getValue(n+4*e,"i32"),r=i.emscripten_ubq_asyncFetchHeaders.get(t);g[r.key]=r.value}const h=c[e];let E;return"GET"!==h&&"HEAD"!==h&&(E=new Uint8Array(i.HEAPU8.buffer,a,u)),fetch(p,{method:h,headers:g,body:E,mode:"cors",credentials:f}).then((e=>{if(e.status>=200&&e.status<=209){let t=0;async function r(e,t){const r=e.getReader();let n=0,o=[];for(;;){const{done:e,value:t}=await r.read();if(e)break;o.push(t),n+=t.length,i.emscripten_ubq_asyncFetchCompletedBytes.set(m,n)}let a=new Uint8Array(n),s=0;for(let e of o)a.set(e,s),s+=e.length;return a}return e.headers.has("Content-Length")&&(t=+e.headers.get("Content-Length")),i.emscripten_ubq_asyncFetchTotalBytes.set(m,t),r(e.body)}return Promise.reject(e.statusText)})).then((e=>{i.emscripten_ubq_asyncFetchStates.set(m,{state:s.FINISHED,result:e})})).catch((e=>{i.emscripten_ubq_asyncFetchStates.set(m,{state:s.ERROR,error:e})})),m}function Hl(e){return!!i.emscripten_ubq_asyncFetchStates.has(e)&&(i.emscripten_ubq_asyncFetchStates.delete(e),!0)}function Bl(e){return i.emscripten_ubq_asyncFetchCompletedBytes.has(e)?i.emscripten_ubq_asyncFetchCompletedBytes.get(e):0}function Xl(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return t.resultAddress}return-1}function Ql(e){if(i.emscripten_ubq_asyncFetchStates.has(e)){const t=i.emscripten_ubq_asyncFetchStates.get(e);if(t.state==s.ALLOCATED)return t.resultLength}return-1}function Zl(e){return i.emscripten_ubq_asyncFetchStates.has(e)?i.emscripten_ubq_asyncFetchStates.get(e).state:-1}function Gl(e){return i.emscripten_ubq_asyncFetchTotalBytes.has(e)?i.emscripten_ubq_asyncFetchTotalBytes.get(e):0}var ql={inEventHandler:0,removeAllEventListeners:function(){for(var e=ql.eventHandlers.length-1;e>=0;--e)ql._removeHandler(e);ql.eventHandlers=[],ql.deferredCalls=[]},registerRemoveEventListeners:function(){ql.removeEventListenersRegistered||(_e.push(ql.removeAllEventListeners),ql.removeEventListenersRegistered=!0)},deferredCalls:[],deferCall:function(e,t,r){function n(e,t){if(e.length!=t.length)return!1;for(var r in e)if(e[r]!=t[r])return!1;return!0}for(var o in ql.deferredCalls){var i=ql.deferredCalls[o];if(i.targetFunction==e&&n(i.argsList,r))return}ql.deferredCalls.push({targetFunction:e,precedence:t,argsList:r}),ql.deferredCalls.sort((function(e,t){return e.precedence<t.precedence}))},removeDeferredCalls:function(e){for(var t=0;t<ql.deferredCalls.length;++t)ql.deferredCalls[t].targetFunction==e&&(ql.deferredCalls.splice(t,1),--t)},canPerformEventHandlerRequests:function(){return ql.inEventHandler&&ql.currentEventHandler.allowsDeferredCalls},runDeferredCalls:function(){if(ql.canPerformEventHandlerRequests())for(var e=0;e<ql.deferredCalls.length;++e){var t=ql.deferredCalls[e];ql.deferredCalls.splice(e,1),--e,t.targetFunction.apply(null,t.argsList)}},eventHandlers:[],removeAllHandlersOnTarget:function(e,t){for(var r=0;r<ql.eventHandlers.length;++r)ql.eventHandlers[r].target!=e||t&&t!=ql.eventHandlers[r].eventTypeString||ql._removeHandler(r--)},_removeHandler:function(e){var t=ql.eventHandlers[e];t.target.removeEventListener(t.eventTypeString,t.eventListenerFunc,t.useCapture),ql.eventHandlers.splice(e,1)},registerOrRemoveHandler:function(e){var t=function(t){++ql.inEventHandler,ql.currentEventHandler=e,ql.runDeferredCalls(),e.handlerFunc(t),ql.runDeferredCalls(),--ql.inEventHandler};if(e.callbackfunc)e.eventListenerFunc=t,e.target.addEventListener(e.eventTypeString,t,e.useCapture),ql.eventHandlers.push(e),ql.registerRemoveEventListeners();else for(var r=0;r<ql.eventHandlers.length;++r)ql.eventHandlers[r].target==e.target&&ql.eventHandlers[r].eventTypeString==e.eventTypeString&&ql._removeHandler(r--)},getNodeNameForTarget:function(e){return e?e==window?"#window":e==screen?"#screen":e&&e.nodeName?e.nodeName:"":""},fullscreenEnabled:function(){return document.fullscreenEnabled||document.webkitFullscreenEnabled}},Wl=["default","low-power","high-performance"];function Vl(e){return e>2?U(e):e}var zl=[0,document,window];function $l(e){return e=Vl(e),zl[e]||document.querySelector(e)}function Yl(e){return $l(e)}function Kl(e,t){I(t);var r=t>>2,n=W[r+6],o={alpha:!!W[r+0],depth:!!W[r+1],stencil:!!W[r+2],antialias:!!W[r+3],premultipliedAlpha:!!W[r+4],preserveDrawingBuffer:!!W[r+5],powerPreference:Wl[n],failIfMajorPerformanceCaveat:!!W[r+7],majorVersion:W[r+8],minorVersion:W[r+9],enableExtensionsByDefault:W[r+10],explicitSwapControl:W[r+11],proxyContextToMainThread:W[r+12],renderViaOffscreenBackBuffer:W[r+13]},i=Yl(e);return i?o.explicitSwapControl?0:ko.createContext(i,o):0}function Jl(e,t){return Kl(e,t)}function ed(e){ko.currentContext==e&&(ko.currentContext=0),ko.deleteContext(e)}function td(e){I(e);for(var t=e>>2,r=0;r<14;++r)W[t+r]=0;W[t+0]=W[t+1]=W[t+3]=W[t+4]=W[t+8]=W[t+10]=1}function rd(e){return ko.makeContextCurrent(e)?0:-5}var nd={};function od(){return d||"./this.program"}function id(){if(!id.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",_:od()};for(var t in nd)void 0===nd[t]?delete e[t]:e[t]=nd[t];var r=[];for(var t in e)r.push(t+"="+e[t]);id.strings=r}return id.strings}function ad(e,t){var r=0;return id().forEach((function(n,o){var i=t+r;W[e+4*o>>2]=i,se(n,i),r+=n.length+1})),0}function sd(e,t){var r=id();W[e>>2]=r.length;var n=0;return r.forEach((function(e){n+=e.length+1})),W[t>>2]=n,0}function cd(e){try{var t=yt.getStreamFromFD(e);return _t.close(t),0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function ud(e,t,r,n,o,i){try{I(!o,"offsets over 2^32 not yet supported");var a=yt.getStreamFromFD(e),s=yt.doReadv(a,t,r,n);return W[i>>2]=s,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function ld(e,t,r,n){try{var o=yt.getStreamFromFD(e),i=yt.doReadv(o,t,r);return W[n>>2]=i,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function dd(e,t,r,n,o){try{var i=yt.getStreamFromFD(e),a=4294967296*r+(t>>>0),s=9007199254740992;return a<=-s||a>=s?-61:(_t.llseek(i,a,n),Xe=[i.position>>>0,(Be=i.position,+Math.abs(Be)>=1?Be>0?(0|Math.min(+Math.floor(Be/4294967296),4294967295))>>>0:~~+Math.ceil((Be-+(~~Be>>>0))/4294967296)>>>0:0)],W[o>>2]=Xe[0],W[o+4>>2]=Xe[1],i.getdents&&0===a&&0===n&&(i.getdents=null),0)}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function pd(e,t,r,n){try{var o=yt.getStreamFromFD(e),i=yt.doWritev(o,t,r);return W[n>>2]=i,0}catch(e){if(void 0===_t||!(e instanceof _t.ErrnoError))throw e;return e.errno}}function fd(){return R()}function md(e){var t=Date.now();return W[e>>2]=t/1e3|0,W[e+4>>2]=t%1e3*1e3|0,0}function gd(e){S(e)}function hd(e){return e%4==0&&(e%100!=0||e%400==0)}function Ed(e,t){for(var r=0,n=0;n<=t;r+=e[n++]);return r}var _d=[31,29,31,30,31,30,31,31,30,31,30,31],yd=[31,28,31,30,31,30,31,31,30,31,30,31];function vd(e,t){for(var r=new Date(e.getTime());t>0;){var n=hd(r.getFullYear()),o=r.getMonth(),i=(n?_d:yd)[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 bd(e,t,r,n){var o=W[n+40>>2],i={tm_sec:W[n>>2],tm_min:W[n+4>>2],tm_hour:W[n+8>>2],tm_mday:W[n+12>>2],tm_mon:W[n+16>>2],tm_year:W[n+20>>2],tm_wday:W[n+24>>2],tm_yday:W[n+28>>2],tm_isdst:W[n+32>>2],tm_gmtoff:W[n+36>>2],tm_zone:o?U(o):""},a=U(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"],l=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,r){for(var n="number"==typeof e?e.toString():e||"";n.length<t;)n=r[0]+n;return n}function p(e,t){return d(e,t,"0")}function f(e,t){function r(e){return e<0?-1:e>0?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 m(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 g(e){var t=vd(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=m(r),i=m(n);return f(o,t)<=0?f(i,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var h={"%a":function(e){return u[e.tm_wday].substring(0,3)},"%A":function(e){return u[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 p((e.tm_year+1900)/100|0,2)},"%d":function(e){return p(e.tm_mday,2)},"%e":function(e){return d(e.tm_mday,2," ")},"%g":function(e){return g(e).toString().substring(2)},"%G":function(e){return g(e)},"%H":function(e){return p(e.tm_hour,2)},"%I":function(e){var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),p(t,2)},"%j":function(e){return p(e.tm_mday+Ed(hd(e.tm_year+1900)?_d:yd,e.tm_mon-1),3)},"%m":function(e){return p(e.tm_mon+1,2)},"%M":function(e){return p(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 p(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:vd(t,7-t.getDay()),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ed(hd(n.getFullYear())?_d:yd,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(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=m(r),i=m(n),a=vd(new Date(e.tm_year+1900,0,1),e.tm_yday);return f(a,o)<0?"53":f(i,a)<=0?"01":(t=o.getFullYear()<e.tm_year+1900?e.tm_yday+32-o.getDate():e.tm_yday+1-o.getDate(),p(Math.ceil(t/7),2))},"%w":function(e){return e.tm_wday},"%W":function(e){var t=new Date(e.tm_year,0,1),r=1===t.getDay()?t:vd(t,0===t.getDay()?1:7-t.getDay()+1),n=new Date(e.tm_year+1900,e.tm_mon,e.tm_mday);if(f(r,n)<0){var o=Ed(hd(n.getFullYear())?_d:yd,n.getMonth()-1)-31,i=31-r.getDate()+o+n.getDate();return p(Math.ceil(i/7),2)}return 0===f(r,t)?"01":"00"},"%y":function(e){return(e.tm_year+1900).toString().substring(2)},"%Y":function(e){return e.tm_year+1900},"%z":function(e){var t=e.tm_gmtoff,r=t>=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 a=a.replace(/%%/g,"\0\0"),h)a.includes(c)&&(a=a.replace(new RegExp(c,"g"),h[c](i)));var E=Ad(a=a.replace(/\0\0/g,"%"),!1);return E.length>t?0:(ae(E,e),E.length-1)}function wd(e,t,r,n){return bd(e,t,r,n)}function Td(e){var t=Date.now()/1e3|0;return e&&(W[e>>2]=t),t}var Od,Pd=function(e,t,r,n){e||(e=this),this.parent=e,this.mount=e.mount,this.mounted=null,this.id=_t.nextInode++,this.name=t,this.mode=r,this.node_ops={},this.stream_ops={},this.rdev=n},Dd=365,xd=146;Object.defineProperties(Pd.prototype,{read:{get:function(){return(this.mode&Dd)===Dd},set:function(e){e?this.mode|=Dd:this.mode&=~Dd}},write:{get:function(){return(this.mode&xd)===xd},set:function(e){e?this.mode|=xd:this.mode&=~xd}},isFolder:{get:function(){return _t.isDir(this.mode)}},isDevice:{get:function(){return _t.isChrdev(this.mode)}}}),_t.FSNode=Pd,_t.staticInit(),i.FS_createPath=_t.createPath,i.FS_createDataFile=_t.createDataFile,i.FS_createPreloadedFile=_t.createPreloadedFile,i.FS_createLazyFile=_t.createLazyFile,i.FS_createDevice=_t.createDevice,i.FS_unlink=_t.unlink,Et={EPERM:63,ENOENT:44,ESRCH:71,EINTR:27,EIO:29,ENXIO:60,E2BIG:1,ENOEXEC:45,EBADF:8,ECHILD:12,EAGAIN:6,EWOULDBLOCK:6,ENOMEM:48,EACCES:2,EFAULT:21,ENOTBLK:105,EBUSY:10,EEXIST:20,EXDEV:75,ENODEV:43,ENOTDIR:54,EISDIR:31,EINVAL:28,ENFILE:41,EMFILE:33,ENOTTY:59,ETXTBSY:74,EFBIG:22,ENOSPC:51,ESPIPE:70,EROFS:69,EMLINK:34,EPIPE:64,EDOM:18,ERANGE:68,ENOMSG:49,EIDRM:24,ECHRNG:106,EL2NSYNC:156,EL3HLT:107,EL3RST:108,ELNRNG:109,EUNATCH:110,ENOCSI:111,EL2HLT:112,EDEADLK:16,ENOLCK:46,EBADE:113,EBADR:114,EXFULL:115,ENOANO:104,EBADRQC:103,EBADSLT:102,EDEADLOCK:16,EBFONT:101,ENOSTR:100,ENODATA:116,ETIME:117,ENOSR:118,ENONET:119,ENOPKG:120,EREMOTE:121,ENOLINK:47,EADV:122,ESRMNT:123,ECOMM:124,EPROTO:65,EMULTIHOP:36,EDOTDOT:125,EBADMSG:9,ENOTUNIQ:126,EBADFD:127,EREMCHG:128,ELIBACC:129,ELIBBAD:130,ELIBSCN:131,ELIBMAX:132,ELIBEXEC:133,ENOSYS:52,ENOTEMPTY:55,ENAMETOOLONG:37,ELOOP:32,EOPNOTSUPP:138,EPFNOSUPPORT:139,ECONNRESET:15,ENOBUFS:42,EAFNOSUPPORT:5,EPROTOTYPE:67,ENOTSOCK:57,ENOPROTOOPT:50,ESHUTDOWN:140,ECONNREFUSED:14,EADDRINUSE:3,ECONNABORTED:13,ENETUNREACH:40,ENETDOWN:38,ETIMEDOUT:73,EHOSTDOWN:142,EHOSTUNREACH:23,EINPROGRESS:26,EALREADY:7,EDESTADDRREQ:17,EMSGSIZE:35,EPROTONOSUPPORT:66,ESOCKTNOSUPPORT:137,EADDRNOTAVAIL:4,ENETRESET:39,EISCONN:30,ENOTCONN:53,ETOOMANYREFS:141,EUSERS:136,EDQUOT:19,ESTALE:72,ENOTSUP:138,ENOMEDIUM:148,EILSEQ:25,EOVERFLOW:61,ECANCELED:11,ENOTRECOVERABLE:56,EOWNERDEAD:62,ESTRPIPE:135},Bt=i.InternalError=Ht(Error,"InternalError"),zt(),Kt=i.BindingError=Ht(Error,"BindingError"),Sr(),Er(),Hr(),Wr=i.UnboundTypeError=Ht(Error,"UnboundTypeError"),cn(),i.requestFullscreen=function(e,t){To.requestFullscreen(e,t)},i.requestFullScreen=function(){To.requestFullScreen()},i.requestAnimationFrame=function(e){To.requestAnimationFrame(e)},i.setCanvasSize=function(e,t,r){To.setCanvasSize(e,t,r)},i.pauseMainLoop=function(){To.mainLoop.pause()},i.resumeMainLoop=function(){To.mainLoop.resume()},i.getUserMedia=function(){To.getUserMedia()},i.createContext=function(e,t,r,n){return To.createContext(e,t,r,n)};for(var Sd=0;Sd<32;++Sd)ga.push(new Array(Sd));var Rd=new Float32Array(288);for(Sd=0;Sd<288;++Sd)vu[Sd]=Rd.subarray(0,Sd+1);var Md=new Int32Array(288);for(Sd=0;Sd<288;++Sd)Tu[Sd]=Md.subarray(0,Sd+1);function Ad(e,t,r){var n=r>0?r:B(e)+1,o=new Array(n),i=N(e,o,0,o.length);return t&&(o.length=i),o}"function"==typeof atob&&atob;var kd,Fd={__assert_fail:rt,__cxa_allocate_exception:nt,__cxa_throw:it,__syscall_fcntl64:vt,__syscall_fstat64:bt,__syscall_fstatat64:wt,__syscall_getdents64:Tt,__syscall_ioctl:Ot,__syscall_lstat64:Pt,__syscall_open:Dt,__syscall_stat64:xt,_dlopen_js:St,_dlsym_js:Rt,_embind_finalize_value_array:Zt,_embind_finalize_value_object:qt,_embind_register_bigint:Wt,_embind_register_bool:tr,_embind_register_class:$r,_embind_register_class_constructor:Kr,_embind_register_class_function:tn,_embind_register_emval:ln,_embind_register_enum:pn,_embind_register_enum_value:mn,_embind_register_float:En,_embind_register_function:_n,_embind_register_integer:vn,_embind_register_memory_view:bn,_embind_register_smart_ptr:wn,_embind_register_std_string:Tn,_embind_register_std_wstring:On,_embind_register_value_array:Pn,_embind_register_value_array_element:Dn,_embind_register_value_object:xn,_embind_register_value_object_field:Sn,_embind_register_void:Rn,_emscripten_throw_longjmp:Mn,_emval_as:An,_emval_call:Fn,_emval_call_method:Un,_emval_call_void_method:Nn,_emval_decref:on,_emval_get_global:Bn,_emval_get_method_caller:Zn,_emval_get_property:Gn,_emval_incref:qn,_emval_instanceof:Wn,_emval_is_string:Vn,_emval_new:Kn,_emval_new_array:Jn,_emval_new_cstring:eo,_emval_new_object:to,_emval_run_destructors:ro,_emval_set_property:no,_emval_take_value:oo,_emval_throw:io,_gmtime_js:ao,_localtime_js:so,_mktime_js:co,_mmap_js:uo,_munmap_js:lo,_tzset_js:fo,abort:mo,clock_gettime:ho,eglChooseConfig:Po,eglCreateContext:Fo,eglCreateWindowSurface:Co,eglDestroyContext:Io,eglDestroySurface:Lo,eglGetConfigAttrib:jo,eglGetDisplay:Uo,eglGetError:No,eglInitialize:Ho,eglMakeCurrent:Bo,eglSwapBuffers:Xo,eglTerminate:Qo,emscripten_console_error:Zo,emscripten_console_log:Go,emscripten_console_warn:qo,emscripten_debugger:Wo,emscripten_get_heap_max:Vo,emscripten_get_now:$n,emscripten_glActiveTexture:zo,emscripten_glAttachShader:$o,emscripten_glBeginQuery:Yo,emscripten_glBeginQueryEXT:Ko,emscripten_glBeginTransformFeedback:Jo,emscripten_glBindAttribLocation:ei,emscripten_glBindBuffer:ti,emscripten_glBindBufferBase:ri,emscripten_glBindBufferRange:ni,emscripten_glBindFramebuffer:oi,emscripten_glBindRenderbuffer:ii,emscripten_glBindSampler:ai,emscripten_glBindTexture:si,emscripten_glBindTransformFeedback:ci,emscripten_glBindVertexArray:ui,emscripten_glBindVertexArrayOES:li,emscripten_glBlendColor:di,emscripten_glBlendEquation:pi,emscripten_glBlendEquationSeparate:fi,emscripten_glBlendFunc:mi,emscripten_glBlendFuncSeparate:gi,emscripten_glBlitFramebuffer:hi,emscripten_glBufferData:Ei,emscripten_glBufferSubData:_i,emscripten_glCheckFramebufferStatus:yi,emscripten_glClear:vi,emscripten_glClearBufferfi:bi,emscripten_glClearBufferfv:wi,emscripten_glClearBufferiv:Ti,emscripten_glClearBufferuiv:Oi,emscripten_glClearColor:Pi,emscripten_glClearDepthf:Di,emscripten_glClearStencil:xi,emscripten_glClientWaitSync:Ri,emscripten_glColorMask:Mi,emscripten_glCompileShader:Ai,emscripten_glCompressedTexImage2D:ki,emscripten_glCompressedTexImage3D:Fi,emscripten_glCompressedTexSubImage2D:Ci,emscripten_glCompressedTexSubImage3D:Ii,emscripten_glCopyBufferSubData:Li,emscripten_glCopyTexImage2D:ji,emscripten_glCopyTexSubImage2D:Ui,emscripten_glCopyTexSubImage3D:Ni,emscripten_glCreateProgram:Hi,emscripten_glCreateShader:Bi,emscripten_glCullFace:Xi,emscripten_glDeleteBuffers:Qi,emscripten_glDeleteFramebuffers:Zi,emscripten_glDeleteProgram:Gi,emscripten_glDeleteQueries:qi,emscripten_glDeleteQueriesEXT:Wi,emscripten_glDeleteRenderbuffers:Vi,emscripten_glDeleteSamplers:zi,emscripten_glDeleteShader:$i,emscripten_glDeleteSync:Yi,emscripten_glDeleteTextures:Ki,emscripten_glDeleteTransformFeedbacks:Ji,emscripten_glDeleteVertexArrays:ea,emscripten_glDeleteVertexArraysOES:ta,emscripten_glDepthFunc:ra,emscripten_glDepthMask:na,emscripten_glDepthRangef:oa,emscripten_glDetachShader:ia,emscripten_glDisable:aa,emscripten_glDisableVertexAttribArray:sa,emscripten_glDrawArrays:ca,emscripten_glDrawArraysInstanced:ua,emscripten_glDrawArraysInstancedANGLE:la,emscripten_glDrawArraysInstancedARB:da,emscripten_glDrawArraysInstancedBaseInstanceWEBGL:pa,emscripten_glDrawArraysInstancedEXT:fa,emscripten_glDrawArraysInstancedNV:ma,emscripten_glDrawBuffers:ha,emscripten_glDrawBuffersEXT:Ea,emscripten_glDrawBuffersWEBGL:_a,emscripten_glDrawElements:ya,emscripten_glDrawElementsInstanced:va,emscripten_glDrawElementsInstancedANGLE:ba,emscripten_glDrawElementsInstancedARB:wa,emscripten_glDrawElementsInstancedBaseVertexBaseInstanceWEBGL:Ta,emscripten_glDrawElementsInstancedEXT:Oa,emscripten_glDrawElementsInstancedNV:Pa,emscripten_glDrawRangeElements:xa,emscripten_glEnable:Sa,emscripten_glEnableVertexAttribArray:Ra,emscripten_glEndQuery:Ma,emscripten_glEndQueryEXT:Aa,emscripten_glEndTransformFeedback:ka,emscripten_glFenceSync:Fa,emscripten_glFinish:Ca,emscripten_glFlush:Ia,emscripten_glFramebufferRenderbuffer:La,emscripten_glFramebufferTexture2D:ja,emscripten_glFramebufferTextureLayer:Ua,emscripten_glFrontFace:Na,emscripten_glGenBuffers:Ba,emscripten_glGenFramebuffers:Xa,emscripten_glGenQueries:Qa,emscripten_glGenQueriesEXT:Za,emscripten_glGenRenderbuffers:Ga,emscripten_glGenSamplers:qa,emscripten_glGenTextures:Wa,emscripten_glGenTransformFeedbacks:Va,emscripten_glGenVertexArrays:za,emscripten_glGenVertexArraysOES:$a,emscripten_glGenerateMipmap:Ya,emscripten_glGetActiveAttrib:Ja,emscripten_glGetActiveUniform:es,emscripten_glGetActiveUniformBlockName:ts,emscripten_glGetActiveUniformBlockiv:rs,emscripten_glGetActiveUniformsiv:ns,emscripten_glGetAttachedShaders:os,emscripten_glGetAttribLocation:is,emscripten_glGetBooleanv:ls,emscripten_glGetBufferParameteri64v:ds,emscripten_glGetBufferParameteriv:ps,emscripten_glGetError:fs,emscripten_glGetFloatv:ms,emscripten_glGetFragDataLocation:gs,emscripten_glGetFramebufferAttachmentParameteriv:hs,emscripten_glGetInteger64i_v:_s,emscripten_glGetInteger64v:ys,emscripten_glGetIntegeri_v:vs,emscripten_glGetIntegerv:bs,emscripten_glGetInternalformativ:ws,emscripten_glGetProgramBinary:Ts,emscripten_glGetProgramInfoLog:Os,emscripten_glGetProgramiv:Ps,emscripten_glGetQueryObjecti64vEXT:Ds,emscripten_glGetQueryObjectivEXT:xs,emscripten_glGetQueryObjectui64vEXT:Ss,emscripten_glGetQueryObjectuiv:Rs,emscripten_glGetQueryObjectuivEXT:Ms,emscripten_glGetQueryiv:As,emscripten_glGetQueryivEXT:ks,emscripten_glGetRenderbufferParameteriv:Fs,emscripten_glGetSamplerParameterfv:Cs,emscripten_glGetSamplerParameteriv:Is,emscripten_glGetShaderInfoLog:Ls,emscripten_glGetShaderPrecisionFormat:js,emscripten_glGetShaderSource:Us,emscripten_glGetShaderiv:Ns,emscripten_glGetString:Bs,emscripten_glGetStringi:Xs,emscripten_glGetSynciv:Qs,emscripten_glGetTexParameterfv:Zs,emscripten_glGetTexParameteriv:Gs,emscripten_glGetTransformFeedbackVarying:qs,emscripten_glGetUniformBlockIndex:Ws,emscripten_glGetUniformIndices:Vs,emscripten_glGetUniformLocation:Ks,emscripten_glGetUniformfv:tc,emscripten_glGetUniformiv:rc,emscripten_glGetUniformuiv:nc,emscripten_glGetVertexAttribIiv:ic,emscripten_glGetVertexAttribIuiv:ac,emscripten_glGetVertexAttribPointerv:sc,emscripten_glGetVertexAttribfv:cc,emscripten_glGetVertexAttribiv:uc,emscripten_glHint:lc,emscripten_glInvalidateFramebuffer:dc,emscripten_glInvalidateSubFramebuffer:pc,emscripten_glIsBuffer:fc,emscripten_glIsEnabled:mc,emscripten_glIsFramebuffer:gc,emscripten_glIsProgram:hc,emscripten_glIsQuery:Ec,emscripten_glIsQueryEXT:_c,emscripten_glIsRenderbuffer:yc,emscripten_glIsSampler:vc,emscripten_glIsShader:bc,emscripten_glIsSync:wc,emscripten_glIsTexture:Tc,emscripten_glIsTransformFeedback:Oc,emscripten_glIsVertexArray:Pc,emscripten_glIsVertexArrayOES:Dc,emscripten_glLineWidth:xc,emscripten_glLinkProgram:Sc,emscripten_glMultiDrawArraysInstancedBaseInstanceWEBGL:Rc,emscripten_glMultiDrawElementsInstancedBaseVertexBaseInstanceWEBGL:Mc,emscripten_glPauseTransformFeedback:Ac,emscripten_glPixelStorei:kc,emscripten_glPolygonOffset:Fc,emscripten_glProgramBinary:Cc,emscripten_glProgramParameteri:Ic,emscripten_glQueryCounterEXT:Lc,emscripten_glReadBuffer:jc,emscripten_glReadPixels:Qc,emscripten_glReleaseShaderCompiler:Zc,emscripten_glRenderbufferStorage:Gc,emscripten_glRenderbufferStorageMultisample:qc,emscripten_glResumeTransformFeedback:Wc,emscripten_glSampleCoverage:Vc,emscripten_glSamplerParameterf:zc,emscripten_glSamplerParameterfv:$c,emscripten_glSamplerParameteri:Yc,emscripten_glSamplerParameteriv:Kc,emscripten_glScissor:Jc,emscripten_glShaderBinary:eu,emscripten_glShaderSource:tu,emscripten_glStencilFunc:ru,emscripten_glStencilFuncSeparate:nu,emscripten_glStencilMask:ou,emscripten_glStencilMaskSeparate:iu,emscripten_glStencilOp:au,emscripten_glStencilOpSeparate:su,emscripten_glTexImage2D:cu,emscripten_glTexImage3D:uu,emscripten_glTexParameterf:lu,emscripten_glTexParameterfv:du,emscripten_glTexParameteri:pu,emscripten_glTexParameteriv:fu,emscripten_glTexStorage2D:mu,emscripten_glTexStorage3D:gu,emscripten_glTexSubImage2D:hu,emscripten_glTexSubImage3D:Eu,emscripten_glTransformFeedbackVaryings:_u,emscripten_glUniform1f:yu,emscripten_glUniform1fv:bu,emscripten_glUniform1i:wu,emscripten_glUniform1iv:Ou,emscripten_glUniform1ui:Pu,emscripten_glUniform1uiv:Du,emscripten_glUniform2f:xu,emscripten_glUniform2fv:Su,emscripten_glUniform2i:Ru,emscripten_glUniform2iv:Mu,emscripten_glUniform2ui:Au,emscripten_glUniform2uiv:ku,emscripten_glUniform3f:Fu,emscripten_glUniform3fv:Cu,emscripten_glUniform3i:Iu,emscripten_glUniform3iv:Lu,emscripten_glUniform3ui:ju,emscripten_glUniform3uiv:Uu,emscripten_glUniform4f:Nu,emscripten_glUniform4fv:Hu,emscripten_glUniform4i:Bu,emscripten_glUniform4iv:Xu,emscripten_glUniform4ui:Qu,emscripten_glUniform4uiv:Zu,emscripten_glUniformBlockBinding:Gu,emscripten_glUniformMatrix2fv:qu,emscripten_glUniformMatrix2x3fv:Wu,emscripten_glUniformMatrix2x4fv:Vu,emscripten_glUniformMatrix3fv:zu,emscripten_glUniformMatrix3x2fv:$u,emscripten_glUniformMatrix3x4fv:Yu,emscripten_glUniformMatrix4fv:Ku,emscripten_glUniformMatrix4x2fv:Ju,emscripten_glUniformMatrix4x3fv:el,emscripten_glUseProgram:tl,emscripten_glValidateProgram:rl,emscripten_glVertexAttrib1f:nl,emscripten_glVertexAttrib1fv:ol,emscripten_glVertexAttrib2f:il,emscripten_glVertexAttrib2fv:al,emscripten_glVertexAttrib3f:sl,emscripten_glVertexAttrib3fv:cl,emscripten_glVertexAttrib4f:ul,emscripten_glVertexAttrib4fv:ll,emscripten_glVertexAttribDivisor:dl,emscripten_glVertexAttribDivisorANGLE:pl,emscripten_glVertexAttribDivisorARB:fl,emscripten_glVertexAttribDivisorEXT:ml,emscripten_glVertexAttribDivisorNV:gl,emscripten_glVertexAttribI4i:hl,emscripten_glVertexAttribI4iv:El,emscripten_glVertexAttribI4ui:_l,emscripten_glVertexAttribI4uiv:yl,emscripten_glVertexAttribIPointer:vl,emscripten_glVertexAttribPointer:bl,emscripten_glViewport:wl,emscripten_glWaitSync:Tl,emscripten_memcpy_big:Ol,emscripten_resize_heap:Dl,emscripten_ubq_codec_createDecoder:xl,emscripten_ubq_codec_decodeSample:Sl,emscripten_ubq_codec_destroyDecoder:Rl,emscripten_ubq_codec_flushDecoder:Ml,emscripten_ubq_codec_getNumberOfDecodedFrames:Al,emscripten_ubq_codec_isSupported:kl,emscripten_ubq_codec_startProbing:Fl,emscripten_ubq_codec_stopProbing:Cl,emscripten_ubq_codec_testAndClearTextureUpdateFlag:Il,emscripten_ubq_fetch_allocateFetchResult:Ll,emscripten_ubq_fetch_createHeader:jl,emscripten_ubq_fetch_deleteHeader:Ul,emscripten_ubq_fetch_dispatchAsyncFetch:Nl,emscripten_ubq_fetch_freeFetchResult:Hl,emscripten_ubq_fetch_getFetchCompletedBytes:Bl,emscripten_ubq_fetch_getFetchResultAddress:Xl,emscripten_ubq_fetch_getFetchResultLength:Ql,emscripten_ubq_fetch_getFetchState:Zl,emscripten_ubq_fetch_getFetchTotalBytes:Gl,emscripten_webgl_create_context:Jl,emscripten_webgl_destroy_context:ed,emscripten_webgl_init_context_attributes:td,emscripten_webgl_make_context_current:rd,environ_get:ad,environ_sizes_get:sd,exit:_o,fd_close:cd,fd_pread:ud,fd_read:ld,fd_seek:dd,fd_write:pd,getTempRet0:fd,gettimeofday:md,invoke_ii:qd,invoke_iii:Wd,invoke_iiii:zd,invoke_iiiii:tp,invoke_iiiiii:Kd,invoke_iiiiiii:ep,invoke_v:op,invoke_vi:$d,invoke_vii:Yd,invoke_viii:Vd,invoke_viiii:Jd,invoke_viiiii:rp,invoke_viiiiii:ip,invoke_viiiiiiiii:np,setTempRet0:gd,strftime_l:wd,time:Td},Cd=(ze(),i.___wasm_call_ctors=qe("__wasm_call_ctors"),i._malloc=qe("malloc")),Id=(i._main=qe("main"),i._free=qe("free")),Ld=i.___errno_location=qe("__errno_location"),jd=(i._saveSetjmp=qe("saveSetjmp"),i.___getTypeName=qe("__getTypeName")),Ud=(i.___embind_register_native_and_builtin_types=qe("__embind_register_native_and_builtin_types"),i.___stdio_exit=qe("__stdio_exit")),Nd=(i.___dl_seterr=qe("__dl_seterr"),i._emscripten_main_thread_process_queued_calls=qe("emscripten_main_thread_process_queued_calls"),i._emscripten_builtin_memalign=qe("emscripten_builtin_memalign")),Hd=i._setThrew=qe("setThrew"),Bd=i._emscripten_stack_init=function(){return(Bd=i._emscripten_stack_init=i.asm.emscripten_stack_init).apply(null,arguments)},Xd=(i._emscripten_stack_get_free=function(){return(i._emscripten_stack_get_free=i.asm.emscripten_stack_get_free).apply(null,arguments)},i._emscripten_stack_get_base=function(){return(i._emscripten_stack_get_base=i.asm.emscripten_stack_get_base).apply(null,arguments)},i._emscripten_stack_get_end=function(){return(Xd=i._emscripten_stack_get_end=i.asm.emscripten_stack_get_end).apply(null,arguments)}),Qd=i.stackSave=qe("stackSave"),Zd=i.stackRestore=qe("stackRestore"),Gd=i.stackAlloc=qe("stackAlloc");function qd(e,t){var r=Qd();try{return et(e)(t)}catch(e){if(Zd(r),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Wd(e,t,r){var n=Qd();try{return et(e)(t,r)}catch(e){if(Zd(n),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Vd(e,t,r,n){var o=Qd();try{et(e)(t,r,n)}catch(e){if(Zd(o),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function zd(e,t,r,n){var o=Qd();try{return et(e)(t,r,n)}catch(e){if(Zd(o),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function $d(e,t){var r=Qd();try{et(e)(t)}catch(e){if(Zd(r),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Yd(e,t,r){var n=Qd();try{et(e)(t,r)}catch(e){if(Zd(n),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Kd(e,t,r,n,o,i){var a=Qd();try{return et(e)(t,r,n,o,i)}catch(e){if(Zd(a),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function Jd(e,t,r,n,o){var i=Qd();try{et(e)(t,r,n,o)}catch(e){if(Zd(i),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ep(e,t,r,n,o,i,a){var s=Qd();try{return et(e)(t,r,n,o,i,a)}catch(e){if(Zd(s),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function tp(e,t,r,n,o){var i=Qd();try{return et(e)(t,r,n,o)}catch(e){if(Zd(i),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function rp(e,t,r,n,o,i){var a=Qd();try{et(e)(t,r,n,o,i)}catch(e){if(Zd(a),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function np(e,t,r,n,o,i,a,s,c,u){var l=Qd();try{et(e)(t,r,n,o,i,a,s,c,u)}catch(e){if(Zd(l),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function op(e){var t=Qd();try{et(e)()}catch(e){if(Zd(t),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ip(e,t,r,n,o,i,a){var s=Qd();try{et(e)(t,r,n,o,i,a)}catch(e){if(Zd(s),e!==e+0&&"longjmp"!==e)throw e;Hd(1,0)}}function ap(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}function sp(e){I(0==ke,'cannot call main when async dependencies remain! (listen on Module["onRuntimeInitialized"])'),I(0==ge.length,"cannot call main when preRun functions remain to be called");var t=i._main,r=(e=e||[]).length+1,n=Gd(4*(r+1));W[n>>2]=ie(d);for(var o=1;o<r;o++)W[(n>>2)+o]=ie(e[o-1]);W[(n>>2)+r]=0;try{var a=t(r,n);return dp(a,!0),a}catch(e){return tt(e)}}function cp(){Bd(),fe()}function up(e){function r(){kd||(kd=!0,i.calledRun=!0,C||(Pe(),De(),t(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),fp&&sp(e),Se()))}e=e||l,ke>0||(cp(),Oe(),ke>0||(i.setStatus?(i.setStatus("Running..."),setTimeout((function(){setTimeout((function(){i.setStatus("")}),1),r()}),1)):r(),me()))}function lp(){var e=T,t=O,r=!1;T=O=e=>{r=!0};try{Ud(),["stdout","stderr"].forEach((function(e){var t=_t.analyzePath("/dev/"+e);if(t){var n=t.object.rdev,o=lt.ttys[n];o&&o.output&&o.output.length&&(r=!0)}}))}catch(e){}T=e,O=t,r&&P("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 dp(e,t){if(F=e,we||lp(),Te()){if(!t){var r="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)";o(r),O(r)}}else xe();pp(e)}function pp(e){F=e,Te()||(i.onExit&&i.onExit(e),C=!0),p(e,new ap(e))}if(i.dynCall_ji=qe("dynCall_ji"),i.dynCall_ijiii=qe("dynCall_ijiii"),i.dynCall_jij=qe("dynCall_jij"),i.dynCall_iiiijii=qe("dynCall_iiiijii"),i.dynCall_jiiji=qe("dynCall_jiiji"),i.dynCall_jj=qe("dynCall_jj"),i.dynCall_iiij=qe("dynCall_iiij"),i.dynCall_jiiiji=qe("dynCall_jiiiji"),i.dynCall_viiij=qe("dynCall_viiij"),i.dynCall_viji=qe("dynCall_viji"),i.dynCall_vijiii=qe("dynCall_vijiii"),i.dynCall_viiiiij=qe("dynCall_viiiiij"),i.dynCall_jiiiijiiiii=qe("dynCall_jiiiijiiiii"),i.dynCall_jii=qe("dynCall_jii"),i.dynCall_iiiij=qe("dynCall_iiiij"),i.dynCall_viij=qe("dynCall_viij"),i.dynCall_iij=qe("dynCall_iij"),i.dynCall_vij=qe("dynCall_vij"),i.dynCall_jiiii=qe("dynCall_jiiii"),i.dynCall_jiiiiii=qe("dynCall_jiiiiii"),i.dynCall_jiiiiji=qe("dynCall_jiiiiji"),i.dynCall_iijj=qe("dynCall_iijj"),i.dynCall_jiji=qe("dynCall_jiji"),i.dynCall_viijii=qe("dynCall_viijii"),i.dynCall_iiiiij=qe("dynCall_iiiiij"),i.dynCall_iiiiijj=qe("dynCall_iiiiijj"),i.dynCall_iiiiiijj=qe("dynCall_iiiiiijj"),Object.getOwnPropertyDescriptor(i,"intArrayFromString")||(i.intArrayFromString=()=>Ne("'intArrayFromString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"intArrayToString")||(i.intArrayToString=()=>Ne("'intArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ccall")||(i.ccall=()=>Ne("'ccall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"cwrap")||(i.cwrap=()=>Ne("'cwrap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setValue")||(i.setValue=()=>Ne("'setValue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.getValue=k,Object.getOwnPropertyDescriptor(i,"allocate")||(i.allocate=()=>Ne("'allocate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF8ArrayToString")||(i.UTF8ArrayToString=()=>Ne("'UTF8ArrayToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.UTF8ToString=U,Object.getOwnPropertyDescriptor(i,"stringToUTF8Array")||(i.stringToUTF8Array=()=>Ne("'stringToUTF8Array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF8")||(i.stringToUTF8=()=>Ne("'stringToUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF8")||(i.lengthBytesUTF8=()=>Ne("'lengthBytesUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=()=>Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPreRun")||(i.addOnPreRun=()=>Ne("'addOnPreRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnInit")||(i.addOnInit=()=>Ne("'addOnInit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPreMain")||(i.addOnPreMain=()=>Ne("'addOnPreMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnExit")||(i.addOnExit=()=>Ne("'addOnExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addOnPostRun")||(i.addOnPostRun=()=>Ne("'addOnPostRun' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeStringToMemory")||(i.writeStringToMemory=()=>Ne("'writeStringToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeArrayToMemory")||(i.writeArrayToMemory=()=>Ne("'writeArrayToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeAsciiToMemory")||(i.writeAsciiToMemory=()=>Ne("'writeAsciiToMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.addRunDependency=je,i.removeRunDependency=Ue,Object.getOwnPropertyDescriptor(i,"FS_createFolder")||(i.FS_createFolder=()=>Ne("'FS_createFolder' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.FS_createPath=_t.createPath,i.FS_createDataFile=_t.createDataFile,i.FS_createPreloadedFile=_t.createPreloadedFile,i.FS_createLazyFile=_t.createLazyFile,Object.getOwnPropertyDescriptor(i,"FS_createLink")||(i.FS_createLink=()=>Ne("'FS_createLink' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.FS_createDevice=_t.createDevice,i.FS_unlink=_t.unlink,Object.getOwnPropertyDescriptor(i,"getLEB")||(i.getLEB=()=>Ne("'getLEB' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFunctionTables")||(i.getFunctionTables=()=>Ne("'getFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"alignFunctionTables")||(i.alignFunctionTables=()=>Ne("'alignFunctionTables' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFunctions")||(i.registerFunctions=()=>Ne("'registerFunctions' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"addFunction")||(i.addFunction=()=>Ne("'addFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"removeFunction")||(i.removeFunction=()=>Ne("'removeFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=()=>Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"prettyPrint")||(i.prettyPrint=()=>Ne("'prettyPrint' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=()=>Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getCompilerSetting")||(i.getCompilerSetting=()=>Ne("'getCompilerSetting' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"print")||(i.print=()=>Ne("'print' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"printErr")||(i.printErr=()=>Ne("'printErr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getTempRet0")||(i.getTempRet0=()=>Ne("'getTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setTempRet0")||(i.setTempRet0=()=>Ne("'setTempRet0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callMain")||(i.callMain=()=>Ne("'callMain' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"abort")||(i.abort=()=>Ne("'abort' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"keepRuntimeAlive")||(i.keepRuntimeAlive=()=>Ne("'keepRuntimeAlive' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"zeroMemory")||(i.zeroMemory=()=>Ne("'zeroMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToNewUTF8")||(i.stringToNewUTF8=()=>Ne("'stringToNewUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscripten_realloc_buffer")||(i.emscripten_realloc_buffer=()=>Ne("'emscripten_realloc_buffer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ENV")||(i.ENV=()=>Ne("'ENV' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"withStackSave")||(i.withStackSave=()=>Ne("'withStackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ERRNO_CODES")||(i.ERRNO_CODES=()=>Ne("'ERRNO_CODES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ERRNO_MESSAGES")||(i.ERRNO_MESSAGES=()=>Ne("'ERRNO_MESSAGES' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setErrNo")||(i.setErrNo=()=>Ne("'setErrNo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetPton4")||(i.inetPton4=()=>Ne("'inetPton4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetNtop4")||(i.inetNtop4=()=>Ne("'inetNtop4' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetPton6")||(i.inetPton6=()=>Ne("'inetPton6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"inetNtop6")||(i.inetNtop6=()=>Ne("'inetNtop6' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readSockaddr")||(i.readSockaddr=()=>Ne("'readSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeSockaddr")||(i.writeSockaddr=()=>Ne("'writeSockaddr' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"DNS")||(i.DNS=()=>Ne("'DNS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getHostByName")||(i.getHostByName=()=>Ne("'getHostByName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Protocols")||(i.Protocols=()=>Ne("'Protocols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Sockets")||(i.Sockets=()=>Ne("'Sockets' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getRandomDevice")||(i.getRandomDevice=()=>Ne("'getRandomDevice' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"traverseStack")||(i.traverseStack=()=>Ne("'traverseStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertFrameToPC")||(i.convertFrameToPC=()=>Ne("'convertFrameToPC' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UNWIND_CACHE")||(i.UNWIND_CACHE=()=>Ne("'UNWIND_CACHE' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"saveInUnwindCache")||(i.saveInUnwindCache=()=>Ne("'saveInUnwindCache' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertPCtoSourceLocation")||(i.convertPCtoSourceLocation=()=>Ne("'convertPCtoSourceLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readAsmConstArgsArray")||(i.readAsmConstArgsArray=()=>Ne("'readAsmConstArgsArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readAsmConstArgs")||(i.readAsmConstArgs=()=>Ne("'readAsmConstArgs' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"mainThreadEM_ASM")||(i.mainThreadEM_ASM=()=>Ne("'mainThreadEM_ASM' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jstoi_q")||(i.jstoi_q=()=>Ne("'jstoi_q' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jstoi_s")||(i.jstoi_s=()=>Ne("'jstoi_s' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getExecutableName")||(i.getExecutableName=()=>Ne("'getExecutableName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"listenOnce")||(i.listenOnce=()=>Ne("'listenOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"autoResumeAudioContext")||(i.autoResumeAudioContext=()=>Ne("'autoResumeAudioContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCallLegacy")||(i.dynCallLegacy=()=>Ne("'dynCallLegacy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getDynCaller")||(i.getDynCaller=()=>Ne("'getDynCaller' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"dynCall")||(i.dynCall=()=>Ne("'dynCall' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callRuntimeCallbacks")||(i.callRuntimeCallbacks=()=>Ne("'callRuntimeCallbacks' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"wasmTableMirror")||(i.wasmTableMirror=()=>Ne("'wasmTableMirror' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setWasmTableEntry")||(i.setWasmTableEntry=()=>Ne("'setWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getWasmTableEntry")||(i.getWasmTableEntry=()=>Ne("'getWasmTableEntry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"handleException")||(i.handleException=()=>Ne("'handleException' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runtimeKeepalivePush")||(i.runtimeKeepalivePush=()=>Ne("'runtimeKeepalivePush' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runtimeKeepalivePop")||(i.runtimeKeepalivePop=()=>Ne("'runtimeKeepalivePop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"callUserCallback")||(i.callUserCallback=()=>Ne("'callUserCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"maybeExit")||(i.maybeExit=()=>Ne("'maybeExit' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"safeSetTimeout")||(i.safeSetTimeout=()=>Ne("'safeSetTimeout' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"asmjsMangle")||(i.asmjsMangle=()=>Ne("'asmjsMangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"asyncLoad")||(i.asyncLoad=()=>Ne("'asyncLoad' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"alignMemory")||(i.alignMemory=()=>Ne("'alignMemory' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"mmapAlloc")||(i.mmapAlloc=()=>Ne("'mmapAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"reallyNegative")||(i.reallyNegative=()=>Ne("'reallyNegative' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"unSign")||(i.unSign=()=>Ne("'unSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"reSign")||(i.reSign=()=>Ne("'reSign' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"formatString")||(i.formatString=()=>Ne("'formatString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PATH")||(i.PATH=()=>Ne("'PATH' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PATH_FS")||(i.PATH_FS=()=>Ne("'PATH_FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SYSCALLS")||(i.SYSCALLS=()=>Ne("'SYSCALLS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getSocketFromFD")||(i.getSocketFromFD=()=>Ne("'getSocketFromFD' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getSocketAddress")||(i.getSocketAddress=()=>Ne("'getSocketAddress' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"JSEvents")||(i.JSEvents=()=>Ne("'JSEvents' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerKeyEventCallback")||(i.registerKeyEventCallback=()=>Ne("'registerKeyEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.specialHTMLTargets=zl,Object.getOwnPropertyDescriptor(i,"maybeCStringToJsString")||(i.maybeCStringToJsString=()=>Ne("'maybeCStringToJsString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"findEventTarget")||(i.findEventTarget=()=>Ne("'findEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"findCanvasEventTarget")||(i.findCanvasEventTarget=()=>Ne("'findCanvasEventTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getBoundingClientRect")||(i.getBoundingClientRect=()=>Ne("'getBoundingClientRect' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillMouseEventData")||(i.fillMouseEventData=()=>Ne("'fillMouseEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerMouseEventCallback")||(i.registerMouseEventCallback=()=>Ne("'registerMouseEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerWheelEventCallback")||(i.registerWheelEventCallback=()=>Ne("'registerWheelEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerUiEventCallback")||(i.registerUiEventCallback=()=>Ne("'registerUiEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFocusEventCallback")||(i.registerFocusEventCallback=()=>Ne("'registerFocusEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillDeviceOrientationEventData")||(i.fillDeviceOrientationEventData=()=>Ne("'fillDeviceOrientationEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerDeviceOrientationEventCallback")||(i.registerDeviceOrientationEventCallback=()=>Ne("'registerDeviceOrientationEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillDeviceMotionEventData")||(i.fillDeviceMotionEventData=()=>Ne("'fillDeviceMotionEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerDeviceMotionEventCallback")||(i.registerDeviceMotionEventCallback=()=>Ne("'registerDeviceMotionEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"screenOrientation")||(i.screenOrientation=()=>Ne("'screenOrientation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillOrientationChangeEventData")||(i.fillOrientationChangeEventData=()=>Ne("'fillOrientationChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerOrientationChangeEventCallback")||(i.registerOrientationChangeEventCallback=()=>Ne("'registerOrientationChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillFullscreenChangeEventData")||(i.fillFullscreenChangeEventData=()=>Ne("'fillFullscreenChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerFullscreenChangeEventCallback")||(i.registerFullscreenChangeEventCallback=()=>Ne("'registerFullscreenChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerRestoreOldStyle")||(i.registerRestoreOldStyle=()=>Ne("'registerRestoreOldStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"hideEverythingExceptGivenElement")||(i.hideEverythingExceptGivenElement=()=>Ne("'hideEverythingExceptGivenElement' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"restoreHiddenElements")||(i.restoreHiddenElements=()=>Ne("'restoreHiddenElements' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setLetterbox")||(i.setLetterbox=()=>Ne("'setLetterbox' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"currentFullscreenStrategy")||(i.currentFullscreenStrategy=()=>Ne("'currentFullscreenStrategy' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"restoreOldWindowedStyle")||(i.restoreOldWindowedStyle=()=>Ne("'restoreOldWindowedStyle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"softFullscreenResizeWebGLRenderTarget")||(i.softFullscreenResizeWebGLRenderTarget=()=>Ne("'softFullscreenResizeWebGLRenderTarget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"doRequestFullscreen")||(i.doRequestFullscreen=()=>Ne("'doRequestFullscreen' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillPointerlockChangeEventData")||(i.fillPointerlockChangeEventData=()=>Ne("'fillPointerlockChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerPointerlockChangeEventCallback")||(i.registerPointerlockChangeEventCallback=()=>Ne("'registerPointerlockChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerPointerlockErrorEventCallback")||(i.registerPointerlockErrorEventCallback=()=>Ne("'registerPointerlockErrorEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"requestPointerLock")||(i.requestPointerLock=()=>Ne("'requestPointerLock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillVisibilityChangeEventData")||(i.fillVisibilityChangeEventData=()=>Ne("'fillVisibilityChangeEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerVisibilityChangeEventCallback")||(i.registerVisibilityChangeEventCallback=()=>Ne("'registerVisibilityChangeEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerTouchEventCallback")||(i.registerTouchEventCallback=()=>Ne("'registerTouchEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillGamepadEventData")||(i.fillGamepadEventData=()=>Ne("'fillGamepadEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerGamepadEventCallback")||(i.registerGamepadEventCallback=()=>Ne("'registerGamepadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerBeforeUnloadEventCallback")||(i.registerBeforeUnloadEventCallback=()=>Ne("'registerBeforeUnloadEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"fillBatteryEventData")||(i.fillBatteryEventData=()=>Ne("'fillBatteryEventData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"battery")||(i.battery=()=>Ne("'battery' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerBatteryEventCallback")||(i.registerBatteryEventCallback=()=>Ne("'registerBatteryEventCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setCanvasElementSize")||(i.setCanvasElementSize=()=>Ne("'setCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getCanvasElementSize")||(i.getCanvasElementSize=()=>Ne("'getCanvasElementSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"demangle")||(i.demangle=()=>Ne("'demangle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"demangleAll")||(i.demangleAll=()=>Ne("'demangleAll' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"jsStackTrace")||(i.jsStackTrace=()=>Ne("'jsStackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackTrace")||(i.stackTrace=()=>Ne("'stackTrace' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getEnvStrings")||(i.getEnvStrings=()=>Ne("'getEnvStrings' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"checkWasiClock")||(i.checkWasiClock=()=>Ne("'checkWasiClock' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64")||(i.writeI53ToI64=()=>Ne("'writeI53ToI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Clamped")||(i.writeI53ToI64Clamped=()=>Ne("'writeI53ToI64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToI64Signaling")||(i.writeI53ToI64Signaling=()=>Ne("'writeI53ToI64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Clamped")||(i.writeI53ToU64Clamped=()=>Ne("'writeI53ToU64Clamped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeI53ToU64Signaling")||(i.writeI53ToU64Signaling=()=>Ne("'writeI53ToU64Signaling' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readI53FromI64")||(i.readI53FromI64=()=>Ne("'readI53FromI64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readI53FromU64")||(i.readI53FromU64=()=>Ne("'readI53FromU64' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertI32PairToI53")||(i.convertI32PairToI53=()=>Ne("'convertI32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"convertU32PairToI53")||(i.convertU32PairToI53=()=>Ne("'convertU32PairToI53' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setImmediateWrapped")||(i.setImmediateWrapped=()=>Ne("'setImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"clearImmediateWrapped")||(i.clearImmediateWrapped=()=>Ne("'clearImmediateWrapped' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"polyfillSetImmediate")||(i.polyfillSetImmediate=()=>Ne("'polyfillSetImmediate' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"uncaughtExceptionCount")||(i.uncaughtExceptionCount=()=>Ne("'uncaughtExceptionCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exceptionLast")||(i.exceptionLast=()=>Ne("'exceptionLast' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exceptionCaught")||(i.exceptionCaught=()=>Ne("'exceptionCaught' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ExceptionInfo")||(i.ExceptionInfo=()=>Ne("'ExceptionInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"CatchInfo")||(i.CatchInfo=()=>Ne("'CatchInfo' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exception_addRef")||(i.exception_addRef=()=>Ne("'exception_addRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exception_decRef")||(i.exception_decRef=()=>Ne("'exception_decRef' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Browser")||(i.Browser=()=>Ne("'Browser' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"funcWrappers")||(i.funcWrappers=()=>Ne("'funcWrappers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getFuncWrapper")||(i.getFuncWrapper=()=>Ne("'getFuncWrapper' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setMainLoop")||(i.setMainLoop=()=>Ne("'setMainLoop' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"wget")||(i.wget=()=>Ne("'wget' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"FS")||(i.FS=()=>Ne("'FS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"MEMFS")||(i.MEMFS=()=>Ne("'MEMFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"TTY")||(i.TTY=()=>Ne("'TTY' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PIPEFS")||(i.PIPEFS=()=>Ne("'PIPEFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SOCKFS")||(i.SOCKFS=()=>Ne("'SOCKFS' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"_setNetworkCallback")||(i._setNetworkCallback=()=>Ne("'_setNetworkCallback' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"tempFixedLengthArray")||(i.tempFixedLengthArray=()=>Ne("'tempFixedLengthArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"miniTempWebGLFloatBuffers")||(i.miniTempWebGLFloatBuffers=()=>Ne("'miniTempWebGLFloatBuffers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heapObjectForWebGLType")||(i.heapObjectForWebGLType=()=>Ne("'heapObjectForWebGLType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heapAccessShiftForWebGLHeap")||(i.heapAccessShiftForWebGLHeap=()=>Ne("'heapAccessShiftForWebGLHeap' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GL")||(i.GL=()=>Ne("'GL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGet")||(i.emscriptenWebGLGet=()=>Ne("'emscriptenWebGLGet' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"computeUnpackAlignedImageSize")||(i.computeUnpackAlignedImageSize=()=>Ne("'computeUnpackAlignedImageSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetTexPixelData")||(i.emscriptenWebGLGetTexPixelData=()=>Ne("'emscriptenWebGLGetTexPixelData' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetUniform")||(i.emscriptenWebGLGetUniform=()=>Ne("'emscriptenWebGLGetUniform' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglGetUniformLocation")||(i.webglGetUniformLocation=()=>Ne("'webglGetUniformLocation' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglPrepareUniformLocationsBeforeFirstUse")||(i.webglPrepareUniformLocationsBeforeFirstUse=()=>Ne("'webglPrepareUniformLocationsBeforeFirstUse' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"webglGetLeftBracePos")||(i.webglGetLeftBracePos=()=>Ne("'webglGetLeftBracePos' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetVertexAttrib")||(i.emscriptenWebGLGetVertexAttrib=()=>Ne("'emscriptenWebGLGetVertexAttrib' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"writeGLArray")||(i.writeGLArray=()=>Ne("'writeGLArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"AL")||(i.AL=()=>Ne("'AL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_unicode")||(i.SDL_unicode=()=>Ne("'SDL_unicode' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_ttfContext")||(i.SDL_ttfContext=()=>Ne("'SDL_ttfContext' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_audio")||(i.SDL_audio=()=>Ne("'SDL_audio' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL")||(i.SDL=()=>Ne("'SDL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"SDL_gfx")||(i.SDL_gfx=()=>Ne("'SDL_gfx' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLUT")||(i.GLUT=()=>Ne("'GLUT' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"EGL")||(i.EGL=()=>Ne("'EGL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLFW_Window")||(i.GLFW_Window=()=>Ne("'GLFW_Window' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLFW")||(i.GLFW=()=>Ne("'GLFW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"GLEW")||(i.GLEW=()=>Ne("'GLEW' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"IDBStore")||(i.IDBStore=()=>Ne("'IDBStore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runAndAbortIfError")||(i.runAndAbortIfError=()=>Ne("'runAndAbortIfError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emscriptenWebGLGetIndexed")||(i.emscriptenWebGLGetIndexed=()=>Ne("'emscriptenWebGLGetIndexed' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"InternalError")||(i.InternalError=()=>Ne("'InternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"BindingError")||(i.BindingError=()=>Ne("'BindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UnboundTypeError")||(i.UnboundTypeError=()=>Ne("'UnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"PureVirtualError")||(i.PureVirtualError=()=>Ne("'PureVirtualError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_embind")||(i.init_embind=()=>Ne("'init_embind' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwInternalError")||(i.throwInternalError=()=>Ne("'throwInternalError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwBindingError")||(i.throwBindingError=()=>Ne("'throwBindingError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwUnboundTypeError")||(i.throwUnboundTypeError=()=>Ne("'throwUnboundTypeError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ensureOverloadTable")||(i.ensureOverloadTable=()=>Ne("'ensureOverloadTable' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"exposePublicSymbol")||(i.exposePublicSymbol=()=>Ne("'exposePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"replacePublicSymbol")||(i.replacePublicSymbol=()=>Ne("'replacePublicSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"extendError")||(i.extendError=()=>Ne("'extendError' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"createNamedFunction")||(i.createNamedFunction=()=>Ne("'createNamedFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredInstances")||(i.registeredInstances=()=>Ne("'registeredInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getBasestPointer")||(i.getBasestPointer=()=>Ne("'getBasestPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerInheritedInstance")||(i.registerInheritedInstance=()=>Ne("'registerInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"unregisterInheritedInstance")||(i.unregisterInheritedInstance=()=>Ne("'unregisterInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getInheritedInstance")||(i.getInheritedInstance=()=>Ne("'getInheritedInstance' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getInheritedInstanceCount")||(i.getInheritedInstanceCount=()=>Ne("'getInheritedInstanceCount' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getLiveInheritedInstances")||(i.getLiveInheritedInstances=()=>Ne("'getLiveInheritedInstances' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredTypes")||(i.registeredTypes=()=>Ne("'registeredTypes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"awaitingDependencies")||(i.awaitingDependencies=()=>Ne("'awaitingDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"typeDependencies")||(i.typeDependencies=()=>Ne("'typeDependencies' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registeredPointers")||(i.registeredPointers=()=>Ne("'registeredPointers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"registerType")||(i.registerType=()=>Ne("'registerType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"whenDependentTypesAreResolved")||(i.whenDependentTypesAreResolved=()=>Ne("'whenDependentTypesAreResolved' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind_charCodes")||(i.embind_charCodes=()=>Ne("'embind_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind_init_charCodes")||(i.embind_init_charCodes=()=>Ne("'embind_init_charCodes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"readLatin1String")||(i.readLatin1String=()=>Ne("'readLatin1String' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getTypeName")||(i.getTypeName=()=>Ne("'getTypeName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"heap32VectorToArray")||(i.heap32VectorToArray=()=>Ne("'heap32VectorToArray' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"requireRegisteredType")||(i.requireRegisteredType=()=>Ne("'requireRegisteredType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getShiftFromSize")||(i.getShiftFromSize=()=>Ne("'getShiftFromSize' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"integerReadValueFromPointer")||(i.integerReadValueFromPointer=()=>Ne("'integerReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"enumReadValueFromPointer")||(i.enumReadValueFromPointer=()=>Ne("'enumReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"floatReadValueFromPointer")||(i.floatReadValueFromPointer=()=>Ne("'floatReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"simpleReadValueFromPointer")||(i.simpleReadValueFromPointer=()=>Ne("'simpleReadValueFromPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runDestructors")||(i.runDestructors=()=>Ne("'runDestructors' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"new_")||(i.new_=()=>Ne("'new_' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"craftInvokerFunction")||(i.craftInvokerFunction=()=>Ne("'craftInvokerFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"embind__requireFunction")||(i.embind__requireFunction=()=>Ne("'embind__requireFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"tupleRegistrations")||(i.tupleRegistrations=()=>Ne("'tupleRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"structRegistrations")||(i.structRegistrations=()=>Ne("'structRegistrations' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"genericPointerToWireType")||(i.genericPointerToWireType=()=>Ne("'genericPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"constNoSmartPtrRawPointerToWireType")||(i.constNoSmartPtrRawPointerToWireType=()=>Ne("'constNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"nonConstNoSmartPtrRawPointerToWireType")||(i.nonConstNoSmartPtrRawPointerToWireType=()=>Ne("'nonConstNoSmartPtrRawPointerToWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_RegisteredPointer")||(i.init_RegisteredPointer=()=>Ne("'init_RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer")||(i.RegisteredPointer=()=>Ne("'RegisteredPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_getPointee")||(i.RegisteredPointer_getPointee=()=>Ne("'RegisteredPointer_getPointee' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_destructor")||(i.RegisteredPointer_destructor=()=>Ne("'RegisteredPointer_destructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_deleteObject")||(i.RegisteredPointer_deleteObject=()=>Ne("'RegisteredPointer_deleteObject' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredPointer_fromWireType")||(i.RegisteredPointer_fromWireType=()=>Ne("'RegisteredPointer_fromWireType' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"runDestructor")||(i.runDestructor=()=>Ne("'runDestructor' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"releaseClassHandle")||(i.releaseClassHandle=()=>Ne("'releaseClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"finalizationRegistry")||(i.finalizationRegistry=()=>Ne("'finalizationRegistry' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"detachFinalizer_deps")||(i.detachFinalizer_deps=()=>Ne("'detachFinalizer_deps' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"detachFinalizer")||(i.detachFinalizer=()=>Ne("'detachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"attachFinalizer")||(i.attachFinalizer=()=>Ne("'attachFinalizer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"makeClassHandle")||(i.makeClassHandle=()=>Ne("'makeClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_ClassHandle")||(i.init_ClassHandle=()=>Ne("'init_ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle")||(i.ClassHandle=()=>Ne("'ClassHandle' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_isAliasOf")||(i.ClassHandle_isAliasOf=()=>Ne("'ClassHandle_isAliasOf' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"throwInstanceAlreadyDeleted")||(i.throwInstanceAlreadyDeleted=()=>Ne("'throwInstanceAlreadyDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_clone")||(i.ClassHandle_clone=()=>Ne("'ClassHandle_clone' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_delete")||(i.ClassHandle_delete=()=>Ne("'ClassHandle_delete' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"deletionQueue")||(i.deletionQueue=()=>Ne("'deletionQueue' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_isDeleted")||(i.ClassHandle_isDeleted=()=>Ne("'ClassHandle_isDeleted' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"ClassHandle_deleteLater")||(i.ClassHandle_deleteLater=()=>Ne("'ClassHandle_deleteLater' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"flushPendingDeletes")||(i.flushPendingDeletes=()=>Ne("'flushPendingDeletes' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"delayFunction")||(i.delayFunction=()=>Ne("'delayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"setDelayFunction")||(i.setDelayFunction=()=>Ne("'setDelayFunction' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"RegisteredClass")||(i.RegisteredClass=()=>Ne("'RegisteredClass' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"shallowCopyInternalPointer")||(i.shallowCopyInternalPointer=()=>Ne("'shallowCopyInternalPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"downcastPointer")||(i.downcastPointer=()=>Ne("'downcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"upcastPointer")||(i.upcastPointer=()=>Ne("'upcastPointer' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"validateThis")||(i.validateThis=()=>Ne("'validateThis' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"char_0")||(i.char_0=()=>Ne("'char_0' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"char_9")||(i.char_9=()=>Ne("'char_9' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"makeLegalFunctionName")||(i.makeLegalFunctionName=()=>Ne("'makeLegalFunctionName' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_handle_array")||(i.emval_handle_array=()=>Ne("'emval_handle_array' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_free_list")||(i.emval_free_list=()=>Ne("'emval_free_list' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_symbols")||(i.emval_symbols=()=>Ne("'emval_symbols' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"init_emval")||(i.init_emval=()=>Ne("'init_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"count_emval_handles")||(i.count_emval_handles=()=>Ne("'count_emval_handles' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"get_first_emval")||(i.get_first_emval=()=>Ne("'get_first_emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"getStringOrSymbol")||(i.getStringOrSymbol=()=>Ne("'getStringOrSymbol' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"Emval")||(i.Emval=()=>Ne("'Emval' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_newers")||(i.emval_newers=()=>Ne("'emval_newers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"craftEmvalAllocator")||(i.craftEmvalAllocator=()=>Ne("'craftEmvalAllocator' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_get_global")||(i.emval_get_global=()=>Ne("'emval_get_global' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_methodCallers")||(i.emval_methodCallers=()=>Ne("'emval_methodCallers' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"emval_registeredMethods")||(i.emval_registeredMethods=()=>Ne("'emval_registeredMethods' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"warnOnce")||(i.warnOnce=()=>Ne("'warnOnce' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackSave")||(i.stackSave=()=>Ne("'stackSave' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackRestore")||(i.stackRestore=()=>Ne("'stackRestore' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stackAlloc")||(i.stackAlloc=()=>Ne("'stackAlloc' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"AsciiToString")||(i.AsciiToString=()=>Ne("'AsciiToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToAscii")||(i.stringToAscii=()=>Ne("'stringToAscii' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF16ToString")||(i.UTF16ToString=()=>Ne("'UTF16ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF16")||(i.stringToUTF16=()=>Ne("'stringToUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF16")||(i.lengthBytesUTF16=()=>Ne("'lengthBytesUTF16' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"UTF32ToString")||(i.UTF32ToString=()=>Ne("'UTF32ToString' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"stringToUTF32")||(i.stringToUTF32=()=>Ne("'stringToUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"lengthBytesUTF32")||(i.lengthBytesUTF32=()=>Ne("'lengthBytesUTF32' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"allocateUTF8")||(i.allocateUTF8=()=>Ne("'allocateUTF8' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),Object.getOwnPropertyDescriptor(i,"allocateUTF8OnStack")||(i.allocateUTF8OnStack=()=>Ne("'allocateUTF8OnStack' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")),i.writeStackCookie=fe,i.checkStackCookie=me,Object.getOwnPropertyDescriptor(i,"ALLOC_NORMAL")||Object.defineProperty(i,"ALLOC_NORMAL",{configurable:!0,get:function(){Ne("'ALLOC_NORMAL' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Object.getOwnPropertyDescriptor(i,"ALLOC_STACK")||Object.defineProperty(i,"ALLOC_STACK",{configurable:!0,get:function(){Ne("'ALLOC_STACK' was not exported. add it to EXPORTED_RUNTIME_METHODS (see the FAQ)")}}),Ce=function e(){kd||up(),kd||(Ce=e)},i.run=up,i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();var fp=!0;return i.noInitialRun&&(fp=!1),up(),e.ready});var l=r(52934),d=r(7984);const p=u,f=(e,t)=>null!=t?[t,e.split("/").pop()].join(""):new URL(e,window.location.origin);function m(e,t){const r=(0,o.QG)(t),{core:n}=r,u=(0,c.Z)(r);return new Promise(((t,o)=>{let c,m;return p({locateFile:(e,t)=>{if(e.endsWith(".wasm")){const e=f(l,n.baseURL).toString();return c=e,e}if(e.endsWith(".data")){const e=f(d,n.baseURL).toString();return m=e,e}return t+e},print:e=>{e&&"undefined"!==e&&u(e,i.i.Info)},printErr:e=>{e&&"undefined"!==e&&u(e,i.i.Error)},onRuntimeInitialized:()=>{u("Engine has been initialized.",i.i.Info)},logReadFiles:!1,printWithColors:!0}).then((n=>{let i="";"string"==typeof e?i=e:(n.specialHTMLTargets["!canvas"]=e,i="!canvas");const c=n.createEngine(i);if(c.isValid()){const e=c.value();!function(e,t){var r;const n=new s.Z(e);function o(e,t){return n.execute("ubq/settings/set",[e,t])}o("ubq://license",t.license||""),o("ubq://role",(0,a.QL)(t.role)),o("ubq://basePath",t.baseURL),o("ubq://touchScrollingEnabled",!(null===(r=t.featureFlags)||void 0===r?void 0:r.preventScrolling)),Object.entries(t.presets.images||{}).forEach((([e,t])=>{n.execute("ubq/assets/registerImage",[e,t.thumbnailURL||t.imageURL,t.imageURL,t.width,t.height])})),Object.entries(t.presets.typefaces||{}).forEach((([e,t])=>{(t.fonts||[]).forEach((r=>{const o=`${e}_${r.weight}_${r.style}`;n.execute("ubq/assets/registerFont",[o,r.fontURL,t.family,r.weight,r.style])}))})),function(){const{imageMattingOnly:e,singlePageMode:r}=t.featureFlags||{};"VideoFrame"in window||o("ubq://features/videosEnabled",!1),o("ubq://features/singlePageModeEnabled",r),o("cesdk://trackActivePage",!r),o("ubq://features/effectsEnabled",!0)}(),o("ubq://page/title/fontFileUri",t.page.title.fontFileUri),o("ubq://page/title/show",t.page.title.show),o("ubq://page/dimOutOfPageAreas",t.page.dimOutOfPageAreas),function(){if(void 0!==t.scene.maskSpotColor){const{rgbApproximation:e}=t.scene.maskSpotColor,r=(0,a.JY)(Object.assign(Object.assign({},e),{a:1}));n.execute("cesdk/setSpecialSpotColor",r)}}(),function(){var e;const r=null!==(e=t.extensions)&&void 0!==e?e:[];r.entries.forEach((e=>{n.execute("ubq/extension/register",`${r.baseURL+e}`)}))}(),function(){var r;const n=null!==(r=t.variables)&&void 0!==r?r:{};Object.entries(n).forEach((([t,r])=>{(0,s.L)(e.setVariableString(t,r.value.toString()))}))}()}(e,r),t(e)}else{const e=c.error();o(new Error(e.publicMessage())),e.delete()}c.delete()})).catch((e=>{e instanceof Error&&(e.wasmPath=c,e.dataPath=m),o(e)}))}))}},58645:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o}),function(e){e.Pixel="px",e.Millimeter="mm",e.Inch="in"}(n||(n={}));const o=n},1440:(e,t,r)=>{"use strict";var n;r.d(t,{i:()=>n}),function(e){e.Info="Info",e.Warning="Warning",e.Error="Error"}(n||(n={}))},81867:(e,t,r)=>{"use strict";var n;r.d(t,{Z:()=>o}),function(e){e.Png="image/png",e.Jpeg="image/jpeg",e.Tga="image/x-tga",e.Binary="application/octet-stream",e.Pdf="application/pdf",e.Zip="application/zip"}(n||(n={}));const o=n;n.Png,n.Jpeg,n.Tga,n.Binary,n.Pdf,n.Zip},68876:(e,t,r)=>{"use strict";var n,o,i,a,s,c;r.d(t,{_h:()=>s,$R:()=>c,uY:()=>u,Gt:()=>l,QL:()=>h,JY:()=>A,tc:()=>w,BN:()=>T,u8:()=>O,fn:()=>k,Kc:()=>M}),r(58645),r(81867),function(e){e.Uninitialized="Uninitialized",e.EngineLoading="EngineLoading",e.AssetsLoading="AssetsLoading",e.EngineReady="EngineReady",e.SceneReady="SceneReady",e.EngineUnsupported="EngineUnsupported",e.EngineLoadingError="EngineLoadingError"}(n||(n={})),function(e){e.Download="download",e.Load="load",e.Decode="decode"}(o||(o={})),function(e){e[e.Pending=0]="Pending",e[e.Ready=1]="Ready",e[e.Error=2]="Error"}(i||(i={})),function(e){e.Added="DesignBlockAddedEvent",e.Updated="DesignBlockUpdatedEvent",e.Removed="DesignBlockRemovedEvent"}(a||(a={})),function(e){e.Scene="//ly.img.ubq/scene",e.Camera="//ly.img.ubq/camera",e.Page="//ly.img.ubq/page",e.Image="//ly.img.ubq/image",e.Video="//ly.img.ubq/video",e.Text="//ly.img.ubq/text",e.Sticker="//ly.img.ubq/sticker",e.VectorPath="//ly.img.ubq/vector_path",e.RectShape="//ly.img.ubq/shapes/rect",e.LineShape="//ly.img.ubq/shapes/line",e.StarShape="//ly.img.ubq/shapes/star",e.PolygonShape="//ly.img.ubq/shapes/polygon",e.EllipseShape="//ly.img.ubq/shapes/ellipse",e.Group="//ly.img.ubq/group"}(s||(s={})),function(e){e.Scene="ubq/designblocks/SceneProps",e.Camera="ubq/designblocks/Camera",e.Page="ubq/designblocks/Page",e.Image="ubq/designblocks/Image",e.Video="ubq/designblocks/Video",e.Sticker="ubq/designblocks/Sticker",e.Text="ubq/designblocks/CompositedText",e.Crop="ubq/types/Crop",e.Scale="ubq/scene/Scale",e.Opacity="ubq/types/Opacity",e.FillColor="ubq/types/FillColor",e.BackgroundColor="ubq/types/BackgroundColor",e.Stroke="ubq/types/Stroke",e.Group="ubq/designblocks/Group",e.VectorPath="ubq/designblocks/VectorPath",e.PendingState="ubq/designblocks/PendingState",e.ErrorState="ubq/designblocks/ErrorState"}(c||(c={}));const u="ubq/designblocks/CommonDesignBlockProps";var l,d,p,f,m,g;function h(e){switch(e){case"Creator":return g.Creator;case"Adopter":return g.Adopter;case"Viewer":return g.Viewer;case"Presenter":return g.Presenter;default:return}}!function(e){e.Transform="ubq/editMode/transform",e.Crop="ubq/editMode/crop",e.Text="ubq/editMode/text"}(l||(l={})),function(e){e[e.Arrow=0]="Arrow",e[e.Move=1]="Move",e[e.MoveNotPermitted=2]="MoveNotPermitted",e[e.Resize=3]="Resize",e[e.Rotate=4]="Rotate",e[e.Text=5]="Text"}(d||(d={})),function(e){e.None="None",e.Normal="Normal",e.Darken="Darken",e.Multiply="Multiply",e.ColorBurn="ColorBurn",e.LinearBurn="LinearBurn",e.DarkenColor="DarkenColor",e.Lighten="Lighten",e.Screen="Screen",e.ColorDodge="ColorDodge",e.Add="Add",e.LightenColor="LightenColor",e.Overlay="Overlay",e.SoftLight="SoftLight",e.HardLight="HardLight",e.VividLight="VividLight",e.LinearLight="LinearLight",e.PinLight="PinLight",e.HardMix="HardMix",e.Difference="Difference",e.Exclusion="Exclusion",e.Subtract="Subtract",e.Divide="Divide"}(p||(p={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Center=2]="Center"}(f||(f={})),function(e){e[e.Top=0]="Top",e[e.Bottom=1]="Bottom",e[e.Center=2]="Center"}(m||(m={})),function(e){e[e.Creator=0]="Creator",e[e.Adopter=1]="Adopter",e[e.Viewer=2]="Viewer",e[e.Presenter=3]="Presenter"}(g||(g={}));const E={c:.75,m:.68,y:.67,k:.9};var _,y,v,b,w,T,O,P,D,x,S,R,M;function A(e){return{colorSpace:_.sRGB,components:{x:e.r,y:e.g,z:e.b,w:e.a},spotColor:{name:"",rgbApproximation:e,cmykApproximation:E}}}function k(e){switch(e){case 0:return w.Left;case 1:return w.Middle;case 2:return w.Right;default:return w.Unknown}}!function(e){e[e.sRGB=0]="sRGB",e[e.CMYK=1]="CMYK",e[e.SpotColor=2]="SpotColor"}(_||(_={})),function(e){e[e.Information=0]="Information",e[e.Warning=1]="Warning",e[e.Error=2]="Error"}(y||(y={})),function(e){e[e.Pixel=0]="Pixel",e[e.Millimeter=1]="Millimeter",e[e.Inch=2]="Inch"}(v||(v={})),function(e){e[e.Began=0]="Began",e[e.Changed=1]="Changed",e[e.Ended=2]="Ended"}(b||(b={})),function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Middle=2]="Middle",e[e.Unknown=255]="Unknown"}(w||(w={})),function(e){e[e.Up=0]="Up",e[e.Down=1]="Down"}(T||(T={})),function(e){e[e.Key0=0]="Key0",e[e.Key1=1]="Key1",e[e.Key2=2]="Key2",e[e.Key3=3]="Key3",e[e.Key4=4]="Key4",e[e.Key5=5]="Key5",e[e.Key6=6]="Key6",e[e.Key7=7]="Key7",e[e.Key8=8]="Key8",e[e.Key9=9]="Key9",e[e.A=10]="A",e[e.B=11]="B",e[e.C=12]="C",e[e.D=13]="D",e[e.E=14]="E",e[e.F=15]="F",e[e.G=16]="G",e[e.H=17]="H",e[e.I=18]="I",e[e.J=19]="J",e[e.K=20]="K",e[e.L=21]="L",e[e.M=22]="M",e[e.N=23]="N",e[e.O=24]="O",e[e.P=25]="P",e[e.Q=26]="Q",e[e.R=27]="R",e[e.S=28]="S",e[e.T=29]="T",e[e.U=30]="U",e[e.V=31]="V",e[e.W=32]="W",e[e.X=33]="X",e[e.Y=34]="Y",e[e.Z=35]="Z",e[e.ArrowLeft=36]="ArrowLeft",e[e.ArrowRight=37]="ArrowRight",e[e.ArrowUp=38]="ArrowUp",e[e.ArrowDown=39]="ArrowDown",e[e.Backspace=40]="Backspace",e[e.Enter=41]="Enter",e[e.Space=42]="Space",e[e.Escape=43]="Escape",e[e.Delete=44]="Delete",e[e.Control=45]="Control",e[e.Option=46]="Option",e[e.Shift=47]="Shift",e[e.Unknown=255]="Unknown"}(O||(O={})),function(e){e.ImageMatting="imageMatting",e.ImageMattingBackground="imageMattingBackground",e.ImageMattingBackgroundForInpainting="imageMattingBackgroundForInpainting",e.ImageMattingAlphaMatte="imageMattingAlphaMatte",e.ImageMattingInvertedAlphaMatte="imageMattingInvertedAlphaMatte",e.Inpainting="inpainting",e.InpaintingHighRes="inpaintingHighRes",e.SmartCrop="smartCrop",e.SuperResolution="superResolution"}(P||(P={})),function(e){e[e.Thin=100]="Thin",e[e.ExtraLight=200]="ExtraLight",e[e.Light=300]="Light",e[e.Normal=400]="Normal",e[e.Medium=500]="Medium",e[e.SemiBold=600]="SemiBold",e[e.Bold=700]="Bold",e[e.ExtraBold=800]="ExtraBold",e[e.Heavy=900]="Heavy"}(D||(D={})),function(e){e[e.Normal=0]="Normal",e[e.Italic=1]="Italic"}(x||(x={})),function(e){e.Bold="bold",e.Italic="italic"}(S||(S={})),function(e){e[e.Undefined=0]="Undefined",e[e.DesignUnit=1]="DesignUnit",e[e.Percent=2]="Percent",e[e.Auto=3]="Auto"}(R||(R={})),function(e){e[e.Free=0]="Free",e[e.VerticalStack=1]="VerticalStack",e[e.HorizontalStack=2]="HorizontalStack"}(M||(M={}))},72472:(e,t,r)=>{"use strict";var n;r(68876),function(e){e.Unknown="",e.Boolean="bool",e.Boolean2="ubq/math/bool2",e.Int="int",e.UInt8="uint8_t",e.Int32="int32_t",e.UInt32="uint32_t",e.Int2="ubq/math/ivec2",e.Size2="ubq/types/Size2",e.Color="ubq/types/Color",e.Double="double",e.Float="float",e.Float2="ubq/math/vec2",e.Float3="ubq/math/vec3",e.Float4="ubq/math/vec4",e.String="string",e.HorizontalTextAlignment="ubq/types/HorizontalTextAlignment",e.VerticalTextAlignment="ubq/types/VerticalTextAlignment",e.Margin2D="ubq/types/OuterMargin2D"}(n||(n={}))},14545:(e,t,r)=>{"use strict";r(68876),r(72472)},48641:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o,L:()=>i}),r(68876);var n=r(45111);r(72472),r(14545);class o{constructor(e){Object.defineProperty(this,"ubq",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.ubq=e}useInternalAPI(e){const t=this.ubq.getInternalAPI();try{return e(t)}finally{t.delete()}}async createElement(e,t,r){const o=await this.execute("ubq/designblocks/create",e);this.execute("ubq/designblocks/addToParent",[o,t]);const a=i(this.ubq.getLastFrameWidth(t)),s=i(this.ubq.getLastFrameHeight(t)),{position:c,size:u}=(0,n.A5)({x:a,y:s},{x:r.width,y:r.height},8/13);this.execute("ubq/layout/setAbsoluteSize",{id:o,size:{width:u.x,height:u.y}}),u.x||this.execute("ubq/layout/setAutoWidth",{id:o}),u.y||this.execute("ubq/layout/setAutoHeight",{id:o});const l=(0,n.Vg)({x:.08*a,y:.08*s});return await this.execute("ubq/layout/setAbsolutePosition",{id:o,position:{left:c.x+l.x,top:c.y+l.y}}),o}setValue(e,t,r,n){return this.useInternalAPI((o=>i(o.setValue(e,t,r,n))))}getValue(e,t,r){return this.useInternalAPI((n=>i(n.getValue(e,t,r))))}async getEditorState(){return this.execute("ubq/editor/getEditorState")}async setEditorState(e){return this.execute("ubq/editor/setEditorState",e)}async execute(e,t){return new Promise((r=>{this.useInternalAPI((n=>n.ubqExecute(e,t,(e=>{const t=i(e);r(t)})))).delete()}))}}function i(e){if(e.isValid()){const t=e.value();return e.delete(),t}{const t=e.error(),r=t.publicMessage();throw t.delete(),e.delete(),new Error(r)}}},15684:(e,t,r)=>{"use strict";r.d(t,{Z:()=>n}),r(68876);const n=(e,t=!0)=>{const r=[];for(let t=0;t<e.size();t+=1)r.push(e.get(t));return t&&e.delete(),r}},48473:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(68876);function o(e){const t={key:n.u8.Unknown,characters:e.key,shiftIsHeld:e.shiftKey,commandIsHeld:e.metaKey||e.ctrlKey,optionIsHeld:e.altKey,timestamp:Date.now()};switch(e.key.toUpperCase()){case"0":t.key=n.u8.Key0;break;case"1":t.key=n.u8.Key1;break;case"2":t.key=n.u8.Key2;break;case"3":t.key=n.u8.Key3;break;case"4":t.key=n.u8.Key4;break;case"5":t.key=n.u8.Key5;break;case"6":t.key=n.u8.Key6;break;case"7":t.key=n.u8.Key7;break;case"8":t.key=n.u8.Key8;break;case"9":t.key=n.u8.Key9;break;case"A":t.key=n.u8.A;break;case"B":t.key=n.u8.B;break;case"C":t.key=n.u8.C;break;case"D":t.key=n.u8.D;break;case"E":t.key=n.u8.E;break;case"F":t.key=n.u8.F;break;case"G":t.key=n.u8.G;break;case"H":t.key=n.u8.H;break;case"I":t.key=n.u8.I;break;case"J":t.key=n.u8.J;break;case"K":t.key=n.u8.K;break;case"L":t.key=n.u8.L;break;case"M":t.key=n.u8.M;break;case"N":t.key=n.u8.N;break;case"O":t.key=n.u8.O;break;case"P":t.key=n.u8.P;break;case"Q":t.key=n.u8.Q;break;case"R":t.key=n.u8.R;break;case"S":t.key=n.u8.S;break;case"T":t.key=n.u8.T;break;case"U":t.key=n.u8.U;break;case"V":t.key=n.u8.V;break;case"W":t.key=n.u8.W;break;case"X":t.key=n.u8.X;break;case"Y":t.key=n.u8.Y;break;case"Z":t.key=n.u8.Z;break;case" ":t.key=n.u8.Space;break;case"ESCAPE":t.key=n.u8.Escape,t.characters="";break;case"BACKSPACE":t.key=n.u8.Backspace,t.characters="";break;case"DELETE":t.key=n.u8.Delete,t.characters="";break;case"ENTER":t.key=n.u8.Enter,t.characters="\n";break;case"CONTROL":t.key=n.u8.Control,t.characters="";break;case"ALT":t.key=n.u8.Option,t.characters="";break;case"SHIFT":t.key=n.u8.Shift,t.characters="";break;case"ARROWLEFT":t.key=n.u8.ArrowLeft,t.characters="";break;case"ARROWRIGHT":t.key=n.u8.ArrowRight,t.characters="";break;case"ARROWUP":t.key=n.u8.ArrowUp,t.characters="";break;case"ARROWDOWN":t.key=n.u8.ArrowDown,t.characters="";break;case"DEAD":t.key=n.u8.Unknown,t.characters=""}return t}},45111:(e,t,r)=>{"use strict";r.d(t,{A5:()=>o,Vg:()=>i,dA:()=>a});const n=(e,t)=>({x:e.x*t,y:e.y*t});function o(e,t,r=8/13){const o=((e,t)=>{const r=e.x/e.y,o=t.x/t.y;return n(t,r>o?e.y/t.y:e.x/t.x)})(e,t),i=n(o,r);return{position:{x:.5*(e.x-i.x),y:.5*(e.y-i.y)},size:i}}function i(e={x:50,y:50}){return{x:Math.random()*e.x,y:Math.random()*e.y}}function a(e,t,r=Number.EPSILON){return Math.abs(e-t)<r}},7984:(e,t,r)=>{"use strict";e.exports=r.p+"assets/core/cesdk.data"},52934:(e,t,r)=>{"use strict";e.exports=r.p+"assets/core/cesdk.wasm"},17019:(e,t,r)=>{"use strict";r.d(t,{IX:()=>p,O7:()=>f,Ou:()=>d,_L:()=>m,VV:()=>E,PV:()=>_,Rx:()=>g,Z_:()=>h,Gu:()=>l});class n extends TypeError{constructor(e,t){let r;const{message:n,...o}=e,{path:i}=e;super(0===i.length?n:"At path: "+i.join(".")+" -- "+n),this.value=void 0,this.key=void 0,this.type=void 0,this.refinement=void 0,this.path=void 0,this.branch=void 0,this.failures=void 0,Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>{var n;return null!=(n=r)?n:r=[e,...t()]}}}function o(e){return"object"==typeof e&&null!=e}function i(e){return"string"==typeof e?JSON.stringify(e):""+e}function a(e,t,r,n){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});const{path:o,branch:a}=t,{type:s}=r,{refinement:c,message:u="Expected a value of type `"+s+"`"+(c?" with refinement `"+c+"`":"")+", but received: `"+i(n)+"`"}=e;return{value:n,type:s,refinement:c,key:o[o.length-1],path:o,branch:a,...e,message:u}}function*s(e,t,r,n){var i;o(i=e)&&"function"==typeof i[Symbol.iterator]||(e=[e]);for(const o of e){const e=a(o,t,r,n);e&&(yield e)}}function*c(e,t,r={}){const{path:n=[],branch:i=[e],coerce:a=!1,mask:s=!1}=r,u={path:n,branch:i};if(a&&(e=t.coercer(e,u),s&&"type"!==t.type&&o(t.schema)&&o(e)&&!Array.isArray(e)))for(const r in e)void 0===t.schema[r]&&delete e[r];let l=!0;for(const r of t.validator(e,u))l=!1,yield[r,void 0];for(let[r,d,p]of t.entries(e,u)){const t=c(d,p,{path:void 0===r?n:[...n,r],branch:void 0===r?i:[...i,d],coerce:a,mask:s});for(const n of t)n[0]?(l=!1,yield[n[0],void 0]):a&&(d=n[1],void 0===r?e=d:e instanceof Map?e.set(r,d):e instanceof Set?e.add(d):o(e)&&(e[r]=d))}if(l)for(const r of t.refiner(e,u))l=!1,yield[r,void 0];l&&(yield[void 0,e])}class u{constructor(e){this.TYPE=void 0,this.type=void 0,this.schema=void 0,this.coercer=void 0,this.validator=void 0,this.refiner=void 0,this.entries=void 0;const{type:t,schema:r,validator:n,refiner:o,coercer:i=(e=>e),entries:a=function*(){}}=e;this.type=t,this.schema=r,this.entries=a,this.coercer=i,this.validator=n?(e,t)=>s(n(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>s(o(e,t),t,this,e):()=>[]}assert(e){return function(e,t){const r=l(e,t);if(r[0])throw r[0]}(e,this)}create(e){return function(e,t){const r=l(e,t,{coerce:!0});if(r[0])throw r[0];return r[1]}(e,this)}is(e){return function(e,t){return!l(e,t)[0]}(e,this)}mask(e){return function(e,t){const r=l(e,t,{coerce:!0,mask:!0});if(r[0])throw r[0];return r[1]}(e,this)}validate(e,t={}){return l(e,this,t)}}function l(e,t,r={}){const o=c(e,t,r),i=function(e){const{done:t,value:r}=e.next();return t?void 0:r}(o);return i[0]?[new n(i[0],(function*(){for(const e of o)e[0]&&(yield e[0])})),void 0]:[void 0,i[1]]}function d(e,t){return new u({type:e,schema:null,validator:t})}function p(e){return new u({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(const[r,n]of t.entries())yield[r,n,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||"Expected an array value, but received: "+i(e)})}function f(){return d("boolean",(e=>"boolean"==typeof e))}function m(){return d("integer",(e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||"Expected an integer, but received: "+i(e)))}function g(){return d("number",(e=>"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+i(e)))}function h(){return d("string",(e=>"string"==typeof e||"Expected a string, but received: "+i(e)))}function E(e,t,r={}){const{exclusive:n}=r;return y(e,"min",(r=>n?r>t:r>=t||"Expected a "+e.type+" greater than "+(n?"":"or equal to ")+t+" but received `"+r+"`"))}function _(e){return y(e,"nonempty",(t=>function(e){return e instanceof Map||e instanceof Set?e.size:e.length}(t)>0||"Expected a nonempty "+e.type+" but received an empty one"))}function y(e,t,r){return new u({...e,*refiner(n,o){yield*e.refiner(n,o);const i=s(r(n,o),o,e,n);for(const e of i)yield{...e,refinement:t}}})}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={id:e,loaded:!1,exports:{}};return t[e](i,i.exports,n),i.loaded=!0,i.exports}n.m=t,e=[],n.O=(t,r,o,i)=>{if(!r){var a=1/0;for(l=0;l<e.length;l++){for(var[r,o,i]=e[l],s=!0,c=0;c<r.length;c++)(!1&i||a>=i)&&Object.keys(n.O).every((e=>n.O[e](r[c])))?r.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.p="",(()=>{var e={763:0};n.O.j=t=>0===e[t];var t=(t,r)=>{var o,i,[a,s,c]=r,u=0;if(a.some((t=>0!==e[t]))){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(c)var l=c(n)}for(t&&t(r);u<a.length;u++)i=a[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=globalThis.webpackChunk_cesdk_cesdk_js=globalThis.webpackChunk_cesdk_cesdk_js||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})();var o={};return(()=>{"use strict";n.d(o,{default:()=>e});const e=n(86295).ZP})(),(o=n.O(o)).default})()}));