Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zxing-wasm

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zxing-wasm - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5-rc.0

dist/cjs/core-KsT7VSRf.cjs

6

dist/cjs/full/index.js

@@ -1,3 +0,3 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../core-Bq4cWic1.cjs");var cr=(()=>{var k=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(L={}){var l=L,Jr,vr;l.ready=new Promise((e,r)=>{Jr=e,vr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",dr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Ye(e){return l.locateFile?l.locateFile(e,I):I+e}var Dr;(re||dr||ee)&&(dr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),k&&(I=k),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),dr&&(Dr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var Le=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary),typeof WebAssembly!="object"&&hr("no native wasm support detected");var pr,te=!1,M,D,G,er,O,y,ne,ae;function ie(){var e=pr.buffer;l.HEAP8=M=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=O=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Ne(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)Ze(l.preRun.shift());Or(oe)}function ze(){Or(se)}function Xe(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)qe(l.postRun.shift());Or(ue)}function Ze(e){oe.unshift(e)}function Ge(e){se.unshift(e)}function qe(e){ue.unshift(e)}var N=0,tr=null;function Je(e){var r;N++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N)}function Ke(e){var r;if(N--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N),N==0&&tr){var t=tr;tr=null,t()}}function hr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw vr(t),t}var Qe="data:application/octet-stream;base64,",le=e=>e.startsWith(Qe),q;q="zxing_full.wasm",le(q)||(q=Ye(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Dr)return Dr(e);throw"both async and sync fetching of the wasm failed"}function rt(e){return!rr&&(re||dr||ee)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return rt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),hr(n)})}function et(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function tt(){var e={a:Zn};function r(n,a){return P=n.exports,pr=P.na,ie(),$e=P.ra,Ge(P.oa),Ke(),P}Je();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),vr(n)}return et(rr,q,e,t).catch(vr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var _r=[],gr=0,nt=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),gr--),r.set_rethrown(!1),_r.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,at=()=>{m(0,0);var e=_r.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,M[this.ptr+12]=r}get_caught(){return M[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,M[this.ptr+13]=r}get_rethrown(){return M[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var it=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ot=()=>kr([]),st=e=>kr([e]),ut=(e,r)=>kr([e,r]),lt=()=>{var e=_r.pop();e||hr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(_r.push(e),e.set_rethrown(!0),e.set_caught(!1),gr++),x=r,x},ft=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,gr++,x},ct=()=>gr,yr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},z={},mr={},ve,$r=e=>{throw new ve(e)},X=(e,r,t)=>{e.forEach(function(s){mr[s]=r});function n(s){var u=t(s);u.length!==e.length&&$r("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{z.hasOwnProperty(s)?a[u]=z[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=z[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},vt=e=>{var r=yr[e];delete yr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));X([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],W=u.setter,T=u.setterContext;s[v]={read:E=>h.fromWireType(p(_,E)),write:(E,f)=>{var d=[];W(T,E,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},dt=(e,r,t,n,a)=>{},pt=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,R=e=>{for(var r="",t=e;D[t];)r+=de[D[t++]];return r},K,g=e=>{throw new K(e)};function ht(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(z[e]=r,delete mr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ht(e,r,t)}var H=8,_t=(e,r,t,n)=>{r=R(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(D[a])},destructorFunction:null})},gt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},yt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&yt(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},mt=()=>Object.keys(or).length,$t=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,bt=e=>{ir=e,ar.length&&ir&&ir(Ur)},wt=()=>{l.getInheritedInstanceCount=mt,l.getLiveInheritedInstances=$t,l.flushPendingDeletes=Ur,l.setDelayFunction=bt},or={},Tt=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},Pt=(e,r)=>(r=Tt(e,r),or[r]),br=(e,r)=>{(!r.ptrType||!r.ptr)&&$r("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&$r("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Ct(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=Pt(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?br(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):br(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?br(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):br(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),At=()=>{Object.assign(wr.prototype,{isAliasOf(e){if(!(this instanceof wr)||!(e instanceof wr))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:gt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function wr(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},Ft=48,Et=57,St=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=Ft&&r<=Et?`_${e}`:e};function Rt(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Dt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function Ot(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,B.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var kt=()=>{Object.assign(Tr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Ct})};function Tr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Dt,this.destructorFunction=null):(this.toWireType=Wt,this.destructorFunction=null):this.toWireType=Ot}var me=(e,r,t)=>{l.hasOwnProperty(e)||$r("Replacing nonexistant public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},Mt=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Pr=[],$e,$=e=>{var r=Pr[e];return r||(e>=Pr.length&&(Pr.length=e+1),Pr[e]=r=$e.get(e)),r},jt=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return Mt(e,r,t);var n=$(r)(...t);return n},It=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return jt(e,r,n)},j=(e,r)=>{e=R(e);function t(){return e.includes("j")?It(e,r):$(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},Ut=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=R(r);return Y(r),t},Cr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!z[i]){if(mr[i]){mr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Ht=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=R(v),i=j(a,i),s&&(s=j(o,s)),c&&(c=j(u,c)),p=j(h,p);var _=St(v);Hr(_,function(){Cr(`Cannot construct ${v} due to unbound types`,[n])}),X([e,r,t],n?[n]:[],C=>{C=C[0];var W,T;n?(W=C.registeredClass,T=W.instancePrototype):T=wr.prototype;var E=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Ve=arguments.length,Sr=new Array(Ve),Rr=0;Rr<Ve;Rr++)Sr[Rr]=arguments[Rr];var Be=d.constructor_body[Sr.length];if(Be===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Sr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Be.apply(this,Sr)}),f=Object.create(T,{constructor:{value:E}});E.prototype=f;var d=new Rt(v,E,f,p,W,i,s,c);if(d.baseClass){var A,F;(F=(A=d.baseClass).__derivedClasses)!==null&&F!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new Tr(v,d,!0,!1,!1),Er=new Tr(v+"*",d,!1,!1,!1),xe=new Tr(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Er,constPointerType:xe},me(_,E),[Q,Er,xe]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function xt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Br(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=xt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var W;p.length=s?2:1,p[0]=a,s&&(W=r[1].toWireType(_,this),p[1]=W);for(var T=0;T<v;++T)h[T]=r[T+2].toWireType(_,T<0||arguments.length<=T?void 0:arguments[T]),p.push(h[T]);var E=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var F=A===1?W:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(F)}if(c)return r[0].fromWireType(d)}return f(E)};return ur(e,C)}var Vt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=j(n,a),X([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Cr(`Cannot construct ${s.name} due to unbound types`,o)},X([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Br(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Bt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=R(r),r=Te(r),i=j(a,i),X([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Cr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),X([],c,W=>{var T=Br(h,W,v,i,o);return _[r].overloadTable===void 0?(T.argCount=t-2,_[r]=T):_[r].overloadTable[t-2]=T,[]}),[]})},Yr=[],V=[],Lr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Yr.push(e))},Yt=()=>V.length/2-5-Yr.length,Lt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Yt},B={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Yr.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Nt={name:"emscripten::val",fromWireType:e=>{var r=B.toValue(e);return Lr(e),r},toWireType:(e,r)=>B.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Nt),zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(M[n])}:function(n){return this.fromWireType(D[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(O[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Xt=(e,r,t,n)=>{r=R(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:zt(r,t,n),destructorFunction:null}),Hr(r,a)},Nr=(e,r)=>{var t=z[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},Zt=(e,r,t)=>{var n=Nr(e,"enum");r=R(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Gt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},qt=(e,r,t)=>{r=R(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Gt(r,t),destructorFunction:null})},Jt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=R(e),e=Te(e),a=j(n,a),Hr(e,function(){Cr(`Cannot call ${e} due to unbound types`,s)},r-1),X([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Br(e,c,null,a,i),r-1),[]})},Kt=(e,r,t)=>{switch(r){case 1:return t?n=>M[n]:n=>D[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>O[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Qt=(e,r,t,n,a)=>{r=R(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:Kt(r,t,n!==0),destructorFunction:null})},rn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(M.buffer,u,s)}t=R(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},en=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},tn=(e,r,t)=>Ce(e,D,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Fe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ee=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Fe)return Fe.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Ee(D,e,r):"",nn=(e,r)=>{r=R(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||D[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(D[i+u]);o=p.join("")}return Y(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)tn(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(Y(u),g("String has UTF-16 code units that do not fit in 8 bits")),D[u+c]=v}else for(var c=0;c<i;++c)D[u+c]=a[c];return n!==null&&n.push(Y,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){Y(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(D.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},on=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},sn=e=>e.length*2,un=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=O[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},ln=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(O[r>>2]=s,r+=4,r+4>i)break}return O[r>>2]=0,r-a},fn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},cn=(e,r,t)=>{t=R(t);var n,a,i,o;r===2?(n=an,a=on,o=sn,i=s=>er[s>>1]):r===4&&(n=un,a=ln,o=fn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return Y(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(Y,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){Y(s)}})},vn=(e,r,t,n,a,i)=>{yr[e]={name:R(r),rawConstructor:j(t,n),rawDestructor:j(a,i),fields:[]}},dn=(e,r,t,n,a,i,o,s,u,c)=>{yr[e].fields.push({fieldName:R(r),getterReturnType:t,getter:j(n,a),getterContext:i,setterArgumentType:o,setter:j(s,u),setterContext:c})},pn=(e,r)=>{r=R(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],hn=(e,r,t,n)=>(e=Zr[e],r=B.toValue(r),e(null,r,t,n)),_n={},gn=e=>{var r=_n[e];return r===void 0?R(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},yn=e=>e===0?B.toHandle(Re()):(e=gn(e),B.toHandle(Re()[e])),mn=e=>{var r=Zr.length;return Zr.push(e),r},$n=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Nr(y[r+n*4>>2],"parameter "+n);return t},bn=Reflect.construct,wn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=B.toHandle(n)),a},Tn=(e,r,t)=>{var n=$n(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?bn(c,i):c.apply(u,i);return wn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return mn(ur(s,o))},Pn=e=>{e>9&&(V[e+1]+=1)},Cn=e=>{var r=B.toValue(e);Mr(r),Lr(e)},An=(e,r)=>{e=Nr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return B.toHandle(t)},Fn=()=>{hr("")},En=(e,r,t)=>D.copyWithin(e,r,r+t),Sn=()=>2147483648,Rn=e=>{var r=pr.buffer,t=(e-r.byteLength+65535)/65536;try{return pr.grow(t),ie(),1}catch{}},Dn=e=>{var r=D.length;e>>>=0;var t=Sn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=Rn(o);if(s)return!0}return!1},Gr={},On=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:On()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Wn=(e,r)=>{for(var t=0;t<e.length;++t)M[r++]=e.charCodeAt(t);M[r]=0},kn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Wn(n,i),t+=n.length+1}),0},Mn=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},jn=e=>52;function In(e,r,t,n,a){return 70}var Un=[null,[],[]],Hn=(e,r)=>{var t=Un[e];r===0||r===10?((e===1?Le:Z)(Ee(t,0)),t.length=0):t.push(r)},xn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Hn(e,D[o+u]);a+=s}return y[n>>2]=a,0},Vn=e=>e,Ar=e=>e%4===0&&(e%100!==0||e%400===0),Bn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Yn=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Ar(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function Ln(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Nn=(e,r)=>{M.set(e,r)},zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:O[n>>2],tm_min:O[n+4>>2],tm_hour:O[n+8>>2],tm_mday:O[n+12>>2],tm_mon:O[n+16>>2],tm_year:O[n+20>>2],tm_wday:O[n+24>>2],tm_yday:O[n+28>>2],tm_isdst:O[n+32>>2],tm_gmtoff:O[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var F=typeof f=="number"?f.toString():f||"";F.length<d;)F=A[0]+F;return F}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var F;return(F=A(f.getFullYear()-d.getFullYear()))===0&&(F=A(f.getMonth()-d.getMonth()))===0&&(F=A(f.getDate()-d.getDate())),F}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function W(f){var d=Yn(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),F=new Date(d.getFullYear()+1,0,4),Q=C(A),Er=C(F);return _(Q,d)<=0?_(Er,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>W(f).toString().substring(2),"%G":W,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Bn(Ar(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>`
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var F=(f.tm_wday+371-f.tm_yday)%7;F!=4&&(F!=3||!Ar(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Ar(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in T)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),T[u](i)));o=o.replace(/\0\0/g,"%");var E=Ln(o,!1);return E.length>r?0:(Nn(E,e),E.length-1)},Xn=(e,r,t,n,a)=>zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},pt(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},At(),wt(),kt(),be=l.UnboundTypeError=Ut(Error,"UnboundTypeError"),Lt();var Zn={s:nt,t:at,b:ot,g:st,m:ut,L:lt,f:ft,_:ct,d:it,ja:vt,W:dt,da:_t,ha:Ht,ga:Vt,x:Bt,ca:Pe,y:Xt,j:Zt,P:qt,E:Jt,u:Qt,p:rn,ia:en,N:nn,D:cn,w:vn,ka:dn,ea:pn,G:hn,ma:Lr,S:yn,O:Tn,Q:Pn,T:Cn,fa:An,C:Fn,ba:En,$:Dn,Y:kn,Z:Mn,aa:jn,V:In,M:xn,H:ca,B:Qn,I:fa,o:va,a:Gn,e:ea,q:Kn,k:la,K:sa,v:oa,J:ua,A:pa,U:_a,l:ta,i:ra,c:Jn,n:qn,F:aa,la:na,r:da,h:ia,z:ha,R:Vn,X:Xn},P=tt(),Y=l._free=e=>(Y=l._free=P.pa)(e),qr=l._malloc=e=>(qr=l._malloc=P.qa)(e),We=e=>(We=P.sa)(e),m=(e,r)=>(m=P.ta)(e,r),fr=e=>(fr=P.ua)(e),b=()=>(b=P.va)(),w=e=>(w=P.wa)(e),ke=e=>(ke=P.xa)(e),Me=e=>(Me=P.ya)(e),je=(e,r,t)=>(je=P.za)(e,r,t),Ie=e=>(Ie=P.Aa)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=P.Ba)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=P.Ca)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=P.Da)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=P.Ea)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=P.Fa)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=P.Ga)(e,r,t,n,a,i,o,s,u,c);function Gn(e,r){var t=b();try{return $(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function qn(e,r,t,n){var a=b();try{$(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Jn(e,r,t){var n=b();try{$(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function Kn(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function ra(e,r){var t=b();try{$(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function ea(e,r,t){var n=b();try{return $(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function ta(e){var r=b();try{$(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function na(e,r,t,n,a,i){var o=b();try{$(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function aa(e,r,t,n,a){var i=b();try{$(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function ia(e,r,t,n,a,i,o,s,u,c,v){var h=b();try{$(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(w(h),p!==p+0)throw p;m(1,0)}}function oa(e,r,t,n,a,i,o){var s=b();try{return $(e)(r,t,n,a,i,o)}catch(u){if(w(s),u!==u+0)throw u;m(1,0)}}function sa(e,r,t,n,a,i){var o=b();try{return $(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function ua(e,r,t,n,a,i,o,s){var u=b();try{return $(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function la(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function fa(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function ca(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function va(e){var r=b();try{return $(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function da(e,r,t,n,a,i,o,s){var u=b();try{$(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function pa(e,r,t,n,a,i,o,s,u,c,v,h){var p=b();try{return $(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(w(p),_!==_+0)throw _;m(1,0)}}function ha(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,W){var T=b();try{$(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,W)}catch(E){if(w(T),E!==E+0)throw E;m(1,0)}}function _a(e,r,t,n,a){var i=b();try{return Ue(e,r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}var Fr;tr=function e(){Fr||He(),Fr||(tr=e)};function He(){if(N>0||(Ne(),N>0))return;function e(){Fr||(Fr=!0,l.calledRun=!0,!te&&(ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Xe()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),L.ready}})();function ga(k){return S.getZXingModuleWithFactory(cr,k)}function ya(k){return S.setZXingModuleOverridesWithFactory(cr,k)}async function ma(k,L){return S.readBarcodesFromImageFileWithFactory(cr,k,L)}async function $a(k,L){return S.readBarcodesFromImageDataWithFactory(cr,k,L)}async function ba(k,L){return S.writeBarcodeToImageFileWithFactory(cr,k,L)}exports.barcodeFormats=S.barcodeFormats;exports.binarizers=S.binarizers;exports.characterSets=S.characterSets;exports.contentTypes=S.contentTypes;exports.defaultDecodeHints=S.defaultReaderOptions;exports.defaultEncodeHints=S.defaultWriterOptions;exports.defaultReaderOptions=S.defaultReaderOptions;exports.defaultWriterOptions=S.defaultWriterOptions;exports.eanAddOnSymbols=S.eanAddOnSymbols;exports.purgeZXingModule=S.purgeZXingModule;exports.readOutputEccLevels=S.readOutputEccLevels;exports.textModes=S.textModes;exports.writeInputEccLevels=S.writeInputEccLevels;exports.getZXingModule=ga;exports.readBarcodesFromImageData=$a;exports.readBarcodesFromImageFile=ma;exports.setZXingModuleOverrides=ya;exports.writeBarcodeToImageFile=ba;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("../core-KsT7VSRf.cjs");var cr=(()=>{var k=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(N={}){var xe;var l=N,Jr,vr;l.ready=new Promise((e,r)=>{Jr=e,vr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",dr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Dr;(re||dr||ee)&&(dr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),k&&(I=k),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),dr&&(Dr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary),typeof WebAssembly!="object"&&hr("no native wasm support detected");var pr,te=!1,M,D,G,er,O,y,ne,ae;function ie(){var e=pr.buffer;l.HEAP8=M=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=D=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=O=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var L=0,tr=null;function Qe(e){var r;L++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L)}function rt(e){var r;if(L--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,L),L==0&&tr){var t=tr;tr=null,t()}}function hr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw vr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_full.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Dr)return Dr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||dr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),hr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return P=n.exports,pr=P.na,ie(),$e=P.ra,Je(P.oa),rt(),P}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),vr(n)}return nt(rr,q,e,t).catch(vr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var _r=[],gr=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),gr--),r.set_rethrown(!1),_r.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=_r.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,M[this.ptr+12]=r}get_caught(){return M[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,M[this.ptr+13]=r}get_rethrown(){return M[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=_r.pop();e||hr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(_r.push(e),e.set_rethrown(!0),e.set_caught(!1),gr++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,gr++,x},dt=()=>gr,yr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},z={},mr={},ve,$r=e=>{throw new ve(e)},X=(e,r,t)=>{e.forEach(function(s){mr[s]=r});function n(s){var u=t(s);u.length!==e.length&&$r("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{z.hasOwnProperty(s)?a[u]=z[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=z[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=yr[e];delete yr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));X([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],W=u.setter,T=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];W(T,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,R=e=>{for(var r="",t=e;D[t];)r+=de[D[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),z.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(z[e]=r,delete mr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=R(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(D[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),br=(e,r)=>{(!r.ptrType||!r.ptr)&&$r("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&$r("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?br(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):br(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?br(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):br(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign(wr.prototype,{isAliasOf(e){if(!(this instanceof wr)||!(e instanceof wr))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function wr(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,B.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(Tr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function Tr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||$r("Replacing nonexistant public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Pr=[],$e,$=e=>{var r=Pr[e];return r||(e>=Pr.length&&(Pr.length=e+1),Pr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=$(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},j=(e,r)=>{e=R(e);function t(){return e.includes("j")?Ht(e,r):$(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=R(r);return Y(r),t},Cr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!z[i]){if(mr[i]){mr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Vt=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=R(v),i=j(a,i),s&&(s=j(o,s)),c&&(c=j(u,c)),p=j(h,p);var _=Dt(v);Hr(_,function(){Cr(`Cannot construct ${v} due to unbound types`,[n])}),X([e,r,t],n?[n]:[],C=>{C=C[0];var W,T;n?(W=C.registeredClass,T=W.instancePrototype):T=wr.prototype;var F=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Be=arguments.length,Sr=new Array(Be),Rr=0;Rr<Be;Rr++)Sr[Rr]=arguments[Rr];var Ye=d.constructor_body[Sr.length];if(Ye===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Sr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Ye.apply(this,Sr)}),f=Object.create(T,{constructor:{value:F}});F.prototype=f;var d=new Ot(v,F,f,p,W,i,s,c);if(d.baseClass){var A,E;(E=(A=d.baseClass).__derivedClasses)!==null&&E!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new Tr(v,d,!0,!1,!1),Fr=new Tr(v+"*",d,!1,!1,!1),Ve=new Tr(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Fr,constPointerType:Ve},me(_,F),[Q,Fr,Ve]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function Bt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Br(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=Bt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var W;p.length=s?2:1,p[0]=a,s&&(W=r[1].toWireType(_,this),p[1]=W);for(var T=0;T<v;++T)h[T]=r[T+2].toWireType(_,T<0||arguments.length<=T?void 0:arguments[T]),p.push(h[T]);var F=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var E=A===1?W:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(E)}if(c)return r[0].fromWireType(d)}return f(F)};return ur(e,C)}var Yt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=j(n,a),X([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Cr(`Cannot construct ${s.name} due to unbound types`,o)},X([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Br(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Nt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=R(r),r=Te(r),i=j(a,i),X([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Cr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),X([],c,W=>{var T=Br(h,W,v,i,o);return _[r].overloadTable===void 0?(T.argCount=t-2,_[r]=T):_[r].overloadTable[t-2]=T,[]}),[]})},Yr=[],V=[],Nr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Yr.push(e))},Lt=()=>V.length/2-5-Yr.length,zt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Lt},B={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Yr.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Xt={name:"emscripten::val",fromWireType:e=>{var r=B.toValue(e);return Nr(e),r},toWireType:(e,r)=>B.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Xt),Zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(M[n])}:function(n){return this.fromWireType(D[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(O[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Gt=(e,r,t,n)=>{r=R(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:Zt(r,t,n),destructorFunction:null}),Hr(r,a)},Lr=(e,r)=>{var t=z[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},qt=(e,r,t)=>{var n=Lr(e,"enum");r=R(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Jt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Kt=(e,r,t)=>{r=R(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Jt(r,t),destructorFunction:null})},Qt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=R(e),e=Te(e),a=j(n,a),Hr(e,function(){Cr(`Cannot call ${e} due to unbound types`,s)},r-1),X([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Br(e,c,null,a,i),r-1),[]})},rn=(e,r,t)=>{switch(r){case 1:return t?n=>M[n]:n=>D[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>O[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},en=(e,r,t,n,a)=>{r=R(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:rn(r,t,n!==0),destructorFunction:null})},tn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(M.buffer,u,s)}t=R(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},nn=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},an=(e,r,t)=>Ce(e,D,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Ee=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Fe=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ee)return Ee.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Fe(D,e,r):"",on=(e,r)=>{r=R(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||D[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(D[i+u]);o=p.join("")}return Y(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)an(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(Y(u),g("String has UTF-16 code units that do not fit in 8 bits")),D[u+c]=v}else for(var c=0;c<i;++c)D[u+c]=a[c];return n!==null&&n.push(Y,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){Y(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,sn=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(D.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},un=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},ln=e=>e.length*2,fn=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=O[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},cn=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(O[r>>2]=s,r+=4,r+4>i)break}return O[r>>2]=0,r-a},vn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},dn=(e,r,t)=>{t=R(t);var n,a,i,o;r===2?(n=sn,a=un,o=ln,i=s=>er[s>>1]):r===4&&(n=fn,a=cn,o=vn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return Y(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(Y,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){Y(s)}})},pn=(e,r,t,n,a,i)=>{yr[e]={name:R(r),rawConstructor:j(t,n),rawDestructor:j(a,i),fields:[]}},hn=(e,r,t,n,a,i,o,s,u,c)=>{yr[e].fields.push({fieldName:R(r),getterReturnType:t,getter:j(n,a),getterContext:i,setterArgumentType:o,setter:j(s,u),setterContext:c})},_n=(e,r)=>{r=R(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],gn=(e,r,t,n)=>(e=Zr[e],r=B.toValue(r),e(null,r,t,n)),yn={},mn=e=>{var r=yn[e];return r===void 0?R(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},$n=e=>e===0?B.toHandle(Re()):(e=mn(e),B.toHandle(Re()[e])),bn=e=>{var r=Zr.length;return Zr.push(e),r},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Lr(y[r+n*4>>2],"parameter "+n);return t},Tn=Reflect.construct,Pn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=B.toHandle(n)),a},Cn=(e,r,t)=>{var n=wn(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?Tn(c,i):c.apply(u,i);return Pn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return bn(ur(s,o))},An=e=>{e>9&&(V[e+1]+=1)},En=e=>{var r=B.toValue(e);Mr(r),Nr(e)},Fn=(e,r)=>{e=Lr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return B.toHandle(t)},Sn=()=>{hr("")},Rn=(e,r,t)=>D.copyWithin(e,r,r+t),Dn=()=>2147483648,On=e=>{var r=pr.buffer,t=(e-r.byteLength+65535)/65536;try{return pr.grow(t),ie(),1}catch{}},Wn=e=>{var r=D.length;e>>>=0;var t=Dn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=On(o);if(s)return!0}return!1},Gr={},kn=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:kn()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Mn=(e,r)=>{for(var t=0;t<e.length;++t)M[r++]=e.charCodeAt(t);M[r]=0},jn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Mn(n,i),t+=n.length+1}),0},In=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},Un=e=>52;function Hn(e,r,t,n,a){return 70}var xn=[null,[],[]],Vn=(e,r)=>{var t=xn[e];r===0||r===10?((e===1?ze:Z)(Fe(t,0)),t.length=0):t.push(r)},Bn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Vn(e,D[o+u]);a+=s}return y[n>>2]=a,0},Yn=e=>e,Ar=e=>e%4===0&&(e%100!==0||e%400===0),Nn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ln=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Ar(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function zn(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Xn=(e,r)=>{M.set(e,r)},Zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:O[n>>2],tm_min:O[n+4>>2],tm_hour:O[n+8>>2],tm_mday:O[n+12>>2],tm_mon:O[n+16>>2],tm_year:O[n+20>>2],tm_wday:O[n+24>>2],tm_yday:O[n+28>>2],tm_isdst:O[n+32>>2],tm_gmtoff:O[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var E=typeof f=="number"?f.toString():f||"";E.length<d;)E=A[0]+E;return E}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var E;return(E=A(f.getFullYear()-d.getFullYear()))===0&&(E=A(f.getMonth()-d.getMonth()))===0&&(E=A(f.getDate()-d.getDate())),E}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function W(f){var d=Ln(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),E=new Date(d.getFullYear()+1,0,4),Q=C(A),Fr=C(E);return _(Q,d)<=0?_(Fr,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>W(f).toString().substring(2),"%G":W,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Nn(Ar(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>`
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var E=(f.tm_wday+371-f.tm_yday)%7;E!=4&&(E!=3||!Ar(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Ar(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in T)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),T[u](i)));o=o.replace(/\0\0/g,"%");var F=zn(o,!1);return F.length>r?0:(Xn(F,e),F.length-1)},Gn=(e,r,t,n,a)=>Zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},_t(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Ft(),Pt(),jt(),be=l.UnboundTypeError=xt(Error,"UnboundTypeError"),zt();var qn={s:it,t:ot,b:ut,g:lt,m:ft,L:ct,f:vt,_:dt,d:st,ja:pt,W:ht,da:yt,ha:Vt,ga:Yt,x:Nt,ca:Pe,y:Gt,j:qt,P:Kt,E:Qt,u:en,p:tn,ia:nn,N:on,D:dn,w:pn,ka:hn,ea:_n,G:gn,ma:Nr,S:$n,O:Cn,Q:An,T:En,fa:Fn,C:Sn,ba:Rn,$:Wn,Y:jn,Z:In,aa:Un,V:Hn,M:Bn,H:da,B:ea,I:va,o:pa,a:Jn,e:na,q:ra,k:ca,K:la,v:ua,J:fa,A:_a,U:ya,l:aa,i:ta,c:Qn,n:Kn,F:oa,la:ia,r:ha,h:sa,z:ga,R:Yn,X:Gn},P=at(),Y=l._free=e=>(Y=l._free=P.pa)(e),qr=l._malloc=e=>(qr=l._malloc=P.qa)(e),We=e=>(We=P.sa)(e),m=(e,r)=>(m=P.ta)(e,r),fr=e=>(fr=P.ua)(e),b=()=>(b=P.va)(),w=e=>(w=P.wa)(e),ke=e=>(ke=P.xa)(e),Me=e=>(Me=P.ya)(e),je=(e,r,t)=>(je=P.za)(e,r,t),Ie=e=>(Ie=P.Aa)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=P.Ba)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=P.Ca)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=P.Da)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=P.Ea)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=P.Fa)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=P.Ga)(e,r,t,n,a,i,o,s,u,c);function Jn(e,r){var t=b();try{return $(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function Kn(e,r,t,n){var a=b();try{$(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t){var n=b();try{$(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function ra(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function ea(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function ta(e,r){var t=b();try{$(e)(r)}catch(n){if(w(t),n!==n+0)throw n;m(1,0)}}function na(e,r,t){var n=b();try{return $(e)(r,t)}catch(a){if(w(n),a!==a+0)throw a;m(1,0)}}function aa(e){var r=b();try{$(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function ia(e,r,t,n,a,i){var o=b();try{$(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function oa(e,r,t,n,a){var i=b();try{$(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function sa(e,r,t,n,a,i,o,s,u,c,v){var h=b();try{$(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(w(h),p!==p+0)throw p;m(1,0)}}function ua(e,r,t,n,a,i,o){var s=b();try{return $(e)(r,t,n,a,i,o)}catch(u){if(w(s),u!==u+0)throw u;m(1,0)}}function la(e,r,t,n,a,i){var o=b();try{return $(e)(r,t,n,a,i)}catch(s){if(w(o),s!==s+0)throw s;m(1,0)}}function fa(e,r,t,n,a,i,o,s){var u=b();try{return $(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function ca(e,r,t,n,a){var i=b();try{return $(e)(r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}function va(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function da(e,r,t,n){var a=b();try{return $(e)(r,t,n)}catch(i){if(w(a),i!==i+0)throw i;m(1,0)}}function pa(e){var r=b();try{return $(e)()}catch(t){if(w(r),t!==t+0)throw t;m(1,0)}}function ha(e,r,t,n,a,i,o,s){var u=b();try{$(e)(r,t,n,a,i,o,s)}catch(c){if(w(u),c!==c+0)throw c;m(1,0)}}function _a(e,r,t,n,a,i,o,s,u,c,v,h){var p=b();try{return $(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(w(p),_!==_+0)throw _;m(1,0)}}function ga(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,W){var T=b();try{$(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,W)}catch(F){if(w(T),F!==F+0)throw F;m(1,0)}}function ya(e,r,t,n,a){var i=b();try{return Ue(e,r,t,n,a)}catch(o){if(w(i),o!==o+0)throw o;m(1,0)}}var Er;tr=function e(){Er||He(),Er||(tr=e)};function He(){if(L>0||(Xe(),L>0))return;function e(){Er||(Er=!0,l.calledRun=!0,!te&&(Ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Ge()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),N.ready}})();function ma(k){return S.getZXingModuleWithFactory(cr,k)}function $a(k){return S.setZXingModuleOverridesWithFactory(cr,k)}async function ba(k,N){return S.readBarcodesFromImageFileWithFactory(cr,k,N)}async function wa(k,N){return S.readBarcodesFromImageDataWithFactory(cr,k,N)}async function Ta(k,N){return S.writeBarcodeToImageFileWithFactory(cr,k,N)}exports.barcodeFormats=S.barcodeFormats;exports.binarizers=S.binarizers;exports.characterSets=S.characterSets;exports.contentTypes=S.contentTypes;exports.defaultDecodeHints=S.defaultReaderOptions;exports.defaultEncodeHints=S.defaultWriterOptions;exports.defaultReaderOptions=S.defaultReaderOptions;exports.defaultWriterOptions=S.defaultWriterOptions;exports.eanAddOnSymbols=S.eanAddOnSymbols;exports.purgeZXingModule=S.purgeZXingModule;exports.readOutputEccLevels=S.readOutputEccLevels;exports.textModes=S.textModes;exports.writeInputEccLevels=S.writeInputEccLevels;exports.getZXingModule=ma;exports.readBarcodesFromImageData=wa;exports.readBarcodesFromImageFile=ba;exports.setZXingModuleOverrides=$a;exports.writeBarcodeToImageFile=Ta;

@@ -1,3 +0,3 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Bq4cWic1.cjs");var Rr=(()=>{var j=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(X={}){var l=X,Jr,cr;l.ready=new Promise((e,r)=>{Jr=e,cr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",vr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Be(e){return l.locateFile?l.locateFile(e,I):I+e}var Dr;(re||vr||ee)&&(vr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),j&&(I=j),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),vr&&(Dr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var Ne=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary),typeof WebAssembly!="object"&&pr("no native wasm support detected");var dr,te=!1,k,R,G,er,D,y,ne,ae;function ie(){var e=dr.buffer;l.HEAP8=k=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=R=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=D=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Le(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)Ze(l.preRun.shift());Or(oe)}function ze(){Or(se)}function Xe(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)qe(l.postRun.shift());Or(ue)}function Ze(e){oe.unshift(e)}function Ge(e){se.unshift(e)}function qe(e){ue.unshift(e)}var N=0,tr=null;function Je(e){var r;N++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N)}function Ke(e){var r;if(N--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N),N==0&&tr){var t=tr;tr=null,t()}}function pr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw cr(t),t}var Qe="data:application/octet-stream;base64,",le=e=>e.startsWith(Qe),q;q="zxing_reader.wasm",le(q)||(q=Be(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Dr)return Dr(e);throw"both async and sync fetching of the wasm failed"}function rt(e){return!rr&&(re||vr||ee)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return rt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),pr(n)})}function et(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function tt(){var e={a:Zn};function r(n,a){return w=n.exports,dr=w.ma,ie(),$e=w.qa,Ge(w.na),Ke(),w}Je();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),cr(n)}return et(rr,q,e,t).catch(cr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var hr=[],_r=0,nt=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),_r--),r.set_rethrown(!1),hr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,at=()=>{m(0,0);var e=hr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,k[this.ptr+12]=r}get_caught(){return k[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,k[this.ptr+13]=r}get_rethrown(){return k[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var it=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ot=()=>kr([]),st=e=>kr([e]),ut=(e,r)=>kr([e,r]),lt=()=>{var e=hr.pop();e||pr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(hr.push(e),e.set_rethrown(!0),e.set_caught(!1),_r++),x=r,x},ft=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,_r++,x},ct=()=>_r,gr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},L={},yr={},ve,mr=e=>{throw new ve(e)},z=(e,r,t)=>{e.forEach(function(s){yr[s]=r});function n(s){var u=t(s);u.length!==e.length&&mr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{L.hasOwnProperty(s)?a[u]=L[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=L[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},vt=e=>{var r=gr[e];delete gr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));z([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],O=u.setter,$=u.setterContext;s[v]={read:E=>h.fromWireType(p(_,E)),write:(E,f)=>{var d=[];O($,E,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},dt=(e,r,t,n,a)=>{},pt=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,S=e=>{for(var r="",t=e;R[t];)r+=de[R[t++]];return r},K,g=e=>{throw new K(e)};function ht(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(L[e]=r,delete yr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return ht(e,r,t)}var H=8,_t=(e,r,t,n)=>{r=S(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(R[a])},destructorFunction:null})},gt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},yt=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&yt(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},mt=()=>Object.keys(or).length,$t=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,bt=e=>{ir=e,ar.length&&ir&&ir(Ur)},wt=()=>{l.getInheritedInstanceCount=mt,l.getLiveInheritedInstances=$t,l.flushPendingDeletes=Ur,l.setDelayFunction=bt},or={},Tt=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},Pt=(e,r)=>(r=Tt(e,r),or[r]),$r=(e,r)=>{(!r.ptrType||!r.ptr)&&mr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&mr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Ct(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=Pt(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?$r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):$r(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),At=()=>{Object.assign(br.prototype,{isAliasOf(e){if(!(this instanceof br)||!(e instanceof br))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:gt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function br(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},Ft=48,Et=57,St=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=Ft&&r<=Et?`_${e}`:e};function Rt(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Dt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function Ot(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,Y.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var kt=()=>{Object.assign(wr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Ct})};function wr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Dt,this.destructorFunction=null):(this.toWireType=Wt,this.destructorFunction=null):this.toWireType=Ot}var me=(e,r,t)=>{l.hasOwnProperty(e)||mr("Replacing nonexistant public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},Mt=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Tr=[],$e,b=e=>{var r=Tr[e];return r||(e>=Tr.length&&(Tr.length=e+1),Tr[e]=r=$e.get(e)),r},jt=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return Mt(e,r,t);var n=b(r)(...t);return n},It=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return jt(e,r,n)},M=(e,r)=>{e=S(e);function t(){return e.includes("j")?It(e,r):b(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},Ut=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=S(r);return B(r),t},Pr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!L[i]){if(yr[i]){yr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Ht=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=S(v),i=M(a,i),s&&(s=M(o,s)),c&&(c=M(u,c)),p=M(h,p);var _=St(v);Hr(_,function(){Pr(`Cannot construct ${v} due to unbound types`,[n])}),z([e,r,t],n?[n]:[],C=>{C=C[0];var O,$;n?(O=C.registeredClass,$=O.instancePrototype):$=br.prototype;var E=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Ve=arguments.length,Er=new Array(Ve),Sr=0;Sr<Ve;Sr++)Er[Sr]=arguments[Sr];var Ye=d.constructor_body[Er.length];if(Ye===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Er.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Ye.apply(this,Er)}),f=Object.create($,{constructor:{value:E}});E.prototype=f;var d=new Rt(v,E,f,p,O,i,s,c);if(d.baseClass){var A,F;(F=(A=d.baseClass).__derivedClasses)!==null&&F!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new wr(v,d,!0,!1,!1),Fr=new wr(v+"*",d,!1,!1,!1),xe=new wr(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Fr,constPointerType:xe},me(_,E),[Q,Fr,xe]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function xt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Yr(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=xt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var O;p.length=s?2:1,p[0]=a,s&&(O=r[1].toWireType(_,this),p[1]=O);for(var $=0;$<v;++$)h[$]=r[$+2].toWireType(_,$<0||arguments.length<=$?void 0:arguments[$]),p.push(h[$]);var E=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var F=A===1?O:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(F)}if(c)return r[0].fromWireType(d)}return f(E)};return ur(e,C)}var Vt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=M(n,a),z([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Pr(`Cannot construct ${s.name} due to unbound types`,o)},z([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Yr(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Yt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=S(r),r=Te(r),i=M(a,i),z([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Pr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),z([],c,O=>{var $=Yr(h,O,v,i,o);return _[r].overloadTable===void 0?($.argCount=t-2,_[r]=$):_[r].overloadTable[t-2]=$,[]}),[]})},Br=[],V=[],Nr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Br.push(e))},Bt=()=>V.length/2-5-Br.length,Nt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Bt},Y={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Br.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Lt={name:"emscripten::val",fromWireType:e=>{var r=Y.toValue(e);return Nr(e),r},toWireType:(e,r)=>Y.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Lt),zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(R[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Xt=(e,r,t,n)=>{r=S(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:zt(r,t,n),destructorFunction:null}),Hr(r,a)},Lr=(e,r)=>{var t=L[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},Zt=(e,r,t)=>{var n=Lr(e,"enum");r=S(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Gt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},qt=(e,r,t)=>{r=S(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Gt(r,t),destructorFunction:null})},Jt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=S(e),e=Te(e),a=M(n,a),Hr(e,function(){Pr(`Cannot call ${e} due to unbound types`,s)},r-1),z([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Yr(e,c,null,a,i),r-1),[]})},Kt=(e,r,t)=>{switch(r){case 1:return t?n=>k[n]:n=>R[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>D[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Qt=(e,r,t,n,a)=>{r=S(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:Kt(r,t,n!==0),destructorFunction:null})},rn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(k.buffer,u,s)}t=S(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},en=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},tn=(e,r,t)=>Ce(e,R,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Fe=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ee=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Fe)return Fe.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Ee(R,e,r):"",nn=(e,r)=>{r=S(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||R[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(R[i+u]);o=p.join("")}return B(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)tn(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(B(u),g("String has UTF-16 code units that do not fit in 8 bits")),R[u+c]=v}else for(var c=0;c<i;++c)R[u+c]=a[c];return n!==null&&n.push(B,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){B(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,an=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(R.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},on=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},sn=e=>e.length*2,un=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=D[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},ln=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[r>>2]=s,r+=4,r+4>i)break}return D[r>>2]=0,r-a},fn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},cn=(e,r,t)=>{t=S(t);var n,a,i,o;r===2?(n=an,a=on,o=sn,i=s=>er[s>>1]):r===4&&(n=un,a=ln,o=fn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return B(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(B,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){B(s)}})},vn=(e,r,t,n,a,i)=>{gr[e]={name:S(r),rawConstructor:M(t,n),rawDestructor:M(a,i),fields:[]}},dn=(e,r,t,n,a,i,o,s,u,c)=>{gr[e].fields.push({fieldName:S(r),getterReturnType:t,getter:M(n,a),getterContext:i,setterArgumentType:o,setter:M(s,u),setterContext:c})},pn=(e,r)=>{r=S(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],hn=(e,r,t,n)=>(e=Zr[e],r=Y.toValue(r),e(null,r,t,n)),_n={},gn=e=>{var r=_n[e];return r===void 0?S(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},yn=e=>e===0?Y.toHandle(Re()):(e=gn(e),Y.toHandle(Re()[e])),mn=e=>{var r=Zr.length;return Zr.push(e),r},$n=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Lr(y[r+n*4>>2],"parameter "+n);return t},bn=Reflect.construct,wn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=Y.toHandle(n)),a},Tn=(e,r,t)=>{var n=$n(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?bn(c,i):c.apply(u,i);return wn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return mn(ur(s,o))},Pn=e=>{e>9&&(V[e+1]+=1)},Cn=e=>{var r=Y.toValue(e);Mr(r),Nr(e)},An=(e,r)=>{e=Lr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return Y.toHandle(t)},Fn=()=>{pr("")},En=(e,r,t)=>R.copyWithin(e,r,r+t),Sn=()=>2147483648,Rn=e=>{var r=dr.buffer,t=(e-r.byteLength+65535)/65536;try{return dr.grow(t),ie(),1}catch{}},Dn=e=>{var r=R.length;e>>>=0;var t=Sn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=Rn(o);if(s)return!0}return!1},Gr={},On=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:On()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Wn=(e,r)=>{for(var t=0;t<e.length;++t)k[r++]=e.charCodeAt(t);k[r]=0},kn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Wn(n,i),t+=n.length+1}),0},Mn=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},jn=e=>52;function In(e,r,t,n,a){return 70}var Un=[null,[],[]],Hn=(e,r)=>{var t=Un[e];r===0||r===10?((e===1?Ne:Z)(Ee(t,0)),t.length=0):t.push(r)},xn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Hn(e,R[o+u]);a+=s}return y[n>>2]=a,0},Vn=e=>e,Cr=e=>e%4===0&&(e%100!==0||e%400===0),Yn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Bn=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Cr(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function Nn(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Ln=(e,r)=>{k.set(e,r)},zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:D[n>>2],tm_min:D[n+4>>2],tm_hour:D[n+8>>2],tm_mday:D[n+12>>2],tm_mon:D[n+16>>2],tm_year:D[n+20>>2],tm_wday:D[n+24>>2],tm_yday:D[n+28>>2],tm_isdst:D[n+32>>2],tm_gmtoff:D[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var F=typeof f=="number"?f.toString():f||"";F.length<d;)F=A[0]+F;return F}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var F;return(F=A(f.getFullYear()-d.getFullYear()))===0&&(F=A(f.getMonth()-d.getMonth()))===0&&(F=A(f.getDate()-d.getDate())),F}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function O(f){var d=Bn(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),F=new Date(d.getFullYear()+1,0,4),Q=C(A),Fr=C(F);return _(Q,d)<=0?_(Fr,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var $={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>O(f).toString().substring(2),"%G":O,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Yn(Cr(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>`
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var F=(f.tm_wday+371-f.tm_yday)%7;F!=4&&(F!=3||!Cr(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Cr(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in $)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),$[u](i)));o=o.replace(/\0\0/g,"%");var E=Nn(o,!1);return E.length>r?0:(Ln(E,e),E.length-1)},Xn=(e,r,t,n,a)=>zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},pt(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},At(),wt(),kt(),be=l.UnboundTypeError=Ut(Error,"UnboundTypeError"),Nt();var Zn={s:nt,u:at,b:ot,g:st,q:ut,K:lt,f:ft,Y:ct,d:it,ha:vt,U:dt,ba:_t,fa:Ht,ea:Vt,w:Yt,aa:Pe,x:Xt,h:Zt,O:qt,P:Jt,t:Qt,o:rn,ga:en,N:nn,C:cn,A:vn,ia:dn,ca:pn,E:hn,ka:Nr,la:yn,M:Tn,Q:Pn,R:Cn,da:An,B:Fn,$:En,Z:Dn,W:kn,X:Mn,_:jn,T:In,L:xn,F:fa,D:Qn,G:la,m:ca,a:Gn,e:ea,p:Kn,k:ua,I:oa,v:aa,H:sa,z:da,S:ha,l:ta,j:ra,c:Jn,n:qn,J:ia,r:va,i:na,y:pa,ja:Vn,V:Xn},w=tt(),B=l._free=e=>(B=l._free=w.oa)(e),qr=l._malloc=e=>(qr=l._malloc=w.pa)(e),We=e=>(We=w.ra)(e),m=(e,r)=>(m=w.sa)(e,r),fr=e=>(fr=w.ta)(e),T=()=>(T=w.ua)(),P=e=>(P=w.va)(e),ke=e=>(ke=w.wa)(e),Me=e=>(Me=w.xa)(e),je=(e,r,t)=>(je=w.ya)(e,r,t),Ie=e=>(Ie=w.za)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=w.Aa)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=w.Ba)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=w.Ca)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=w.Da)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=w.Ea)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=w.Fa)(e,r,t,n,a,i,o,s,u,c);function Gn(e,r){var t=T();try{return b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function qn(e,r,t,n){var a=T();try{b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function Jn(e,r,t){var n=T();try{b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function Kn(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ra(e,r){var t=T();try{b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function ea(e,r,t){var n=T();try{return b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function ta(e){var r=T();try{b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function na(e,r,t,n,a,i,o,s,u,c,v){var h=T();try{b(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(P(h),p!==p+0)throw p;m(1,0)}}function aa(e,r,t,n,a,i,o){var s=T();try{return b(e)(r,t,n,a,i,o)}catch(u){if(P(s),u!==u+0)throw u;m(1,0)}}function ia(e,r,t,n,a){var i=T();try{b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function oa(e,r,t,n,a,i){var o=T();try{return b(e)(r,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;m(1,0)}}function sa(e,r,t,n,a,i,o,s){var u=T();try{return b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function ua(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function la(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function fa(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function ca(e){var r=T();try{return b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function va(e,r,t,n,a,i,o,s){var u=T();try{b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function da(e,r,t,n,a,i,o,s,u,c,v,h){var p=T();try{return b(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(P(p),_!==_+0)throw _;m(1,0)}}function pa(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,O){var $=T();try{b(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,O)}catch(E){if(P($),E!==E+0)throw E;m(1,0)}}function ha(e,r,t,n,a){var i=T();try{return Ue(e,r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}var Ar;tr=function e(){Ar||He(),Ar||(tr=e)};function He(){if(N>0||(Le(),N>0))return;function e(){Ar||(Ar=!0,l.calledRun=!0,!te&&(ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Xe()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),X.ready}})();function _a(j){return W.getZXingModuleWithFactory(Rr,j)}function ga(j){return W.setZXingModuleOverridesWithFactory(Rr,j)}async function ya(j,X){return W.readBarcodesFromImageFileWithFactory(Rr,j,X)}async function ma(j,X){return W.readBarcodesFromImageDataWithFactory(Rr,j,X)}exports.barcodeFormats=W.barcodeFormats;exports.binarizers=W.binarizers;exports.characterSets=W.characterSets;exports.contentTypes=W.contentTypes;exports.defaultDecodeHints=W.defaultReaderOptions;exports.defaultReaderOptions=W.defaultReaderOptions;exports.eanAddOnSymbols=W.eanAddOnSymbols;exports.purgeZXingModule=W.purgeZXingModule;exports.readOutputEccLevels=W.readOutputEccLevels;exports.textModes=W.textModes;exports.getZXingModule=_a;exports.readBarcodesFromImageData=ma;exports.readBarcodesFromImageFile=ya;exports.setZXingModuleOverrides=ga;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-KsT7VSRf.cjs");var Rr=(()=>{var j=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(X={}){var xe;var l=X,Jr,cr;l.ready=new Promise((e,r)=>{Jr=e,cr=r});var Kr=Object.assign({},l),Qr="./this.program",re=typeof window=="object",ee=typeof Bun<"u",Ne=typeof((xe=globalThis.WebAssembly)==null?void 0:xe.instantiate)=="function",vr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Le(e){return l.locateFile?l.locateFile(e,I):I+e}var Dr;(re||vr||ee)&&(vr?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),j&&(I=j),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),vr&&(Dr=e=>{var r=new XMLHttpRequest;return r.open("GET",e,!1),r.responseType="arraybuffer",r.send(null),new Uint8Array(r.response)}));var ze=l.print||console.log.bind(console),Z=l.printErr||console.error.bind(console);Object.assign(l,Kr),Kr=null,l.arguments&&l.arguments,l.thisProgram&&(Qr=l.thisProgram),l.quit&&l.quit;var rr;l.wasmBinary&&(rr=l.wasmBinary),typeof WebAssembly!="object"&&pr("no native wasm support detected");var dr,te=!1,k,R,G,er,D,y,ne,ae;function ie(){var e=dr.buffer;l.HEAP8=k=new Int8Array(e),l.HEAP16=G=new Int16Array(e),l.HEAPU8=R=new Uint8Array(e),l.HEAPU16=er=new Uint16Array(e),l.HEAP32=D=new Int32Array(e),l.HEAPU32=y=new Uint32Array(e),l.HEAPF32=ne=new Float32Array(e),l.HEAPF64=ae=new Float64Array(e)}var oe=[],se=[],ue=[];function Xe(){if(l.preRun)for(typeof l.preRun=="function"&&(l.preRun=[l.preRun]);l.preRun.length;)qe(l.preRun.shift());Or(oe)}function Ze(){Or(se)}function Ge(){if(l.postRun)for(typeof l.postRun=="function"&&(l.postRun=[l.postRun]);l.postRun.length;)Ke(l.postRun.shift());Or(ue)}function qe(e){oe.unshift(e)}function Je(e){se.unshift(e)}function Ke(e){ue.unshift(e)}var N=0,tr=null;function Qe(e){var r;N++,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N)}function rt(e){var r;if(N--,(r=l.monitorRunDependencies)===null||r===void 0||r.call(l,N),N==0&&tr){var t=tr;tr=null,t()}}function pr(e){var r;(r=l.onAbort)===null||r===void 0||r.call(l,e),e="Aborted("+e+")",Z(e),te=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw cr(t),t}var et="data:application/octet-stream;base64,",le=e=>e.startsWith(et),q;q="zxing_reader.wasm",le(q)||(q=Le(q));function fe(e){if(e==q&&rr)return new Uint8Array(rr);if(Dr)return Dr(e);throw"both async and sync fetching of the wasm failed"}function tt(e){return!rr&&(re||vr||ee||Ne)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(r=>{if(!r.ok)throw`failed to load wasm binary file at '${e}'`;return r.arrayBuffer()}).catch(()=>fe(e)):Promise.resolve().then(()=>fe(e))}function ce(e,r,t){return tt(e).then(n=>WebAssembly.instantiate(n,r)).then(t,n=>{Z(`failed to asynchronously prepare wasm: ${n}`),pr(n)})}function nt(e,r,t,n){return!e&&typeof WebAssembly.instantiateStreaming=="function"&&!le(r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return Z(`wasm streaming compile failed: ${o}`),Z("falling back to ArrayBuffer instantiation"),ce(r,t,n)})}):ce(r,t,n)}function at(){var e={a:qn};function r(n,a){return w=n.exports,dr=w.ma,ie(),$e=w.qa,Je(w.na),rt(),w}Qe();function t(n){r(n.instance)}if(l.instantiateWasm)try{return l.instantiateWasm(e,r)}catch(n){Z(`Module.instantiateWasm callback failed with error: ${n}`),cr(n)}return nt(rr,q,e,t).catch(cr),{}}var Or=e=>{for(;e.length>0;)e.shift()(l)};l.noExitRuntime;var hr=[],_r=0,it=e=>{var r=new Wr(e);return r.get_caught()||(r.set_caught(!0),_r--),r.set_rethrown(!1),hr.push(r),Me(r.excPtr),r.get_exception_ptr()},x=0,ot=()=>{m(0,0);var e=hr.pop();ke(e.excPtr),x=0};class Wr{constructor(r){this.excPtr=r,this.ptr=r-24}set_type(r){y[this.ptr+4>>2]=r}get_type(){return y[this.ptr+4>>2]}set_destructor(r){y[this.ptr+8>>2]=r}get_destructor(){return y[this.ptr+8>>2]}set_caught(r){r=r?1:0,k[this.ptr+12]=r}get_caught(){return k[this.ptr+12]!=0}set_rethrown(r){r=r?1:0,k[this.ptr+13]=r}get_rethrown(){return k[this.ptr+13]!=0}init(r,t){this.set_adjusted_ptr(0),this.set_type(r),this.set_destructor(t)}set_adjusted_ptr(r){y[this.ptr+16>>2]=r}get_adjusted_ptr(){return y[this.ptr+16>>2]}get_exception_ptr(){var r=Ie(this.get_type());if(r)return y[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var st=e=>{throw x||(x=e),x},kr=e=>{var r=x;if(!r)return fr(0),0;var t=new Wr(r);t.set_adjusted_ptr(r);var n=t.get_type();if(!n)return fr(0),r;for(var a in e){var i=e[a];if(i===0||i===n)break;var o=t.ptr+16;if(je(i,n,o))return fr(i),r}return fr(n),r},ut=()=>kr([]),lt=e=>kr([e]),ft=(e,r)=>kr([e,r]),ct=()=>{var e=hr.pop();e||pr("no exception to throw");var r=e.excPtr;throw e.get_rethrown()||(hr.push(e),e.set_rethrown(!0),e.set_caught(!1),_r++),x=r,x},vt=(e,r,t)=>{var n=new Wr(e);throw n.init(r,t),x=e,_r++,x},dt=()=>_r,gr={},Mr=e=>{for(;e.length;){var r=e.pop(),t=e.pop();t(r)}};function nr(e){return this.fromWireType(y[e>>2])}var J={},L={},yr={},ve,mr=e=>{throw new ve(e)},z=(e,r,t)=>{e.forEach(function(s){yr[s]=r});function n(s){var u=t(s);u.length!==e.length&&mr("Mismatched type converter count");for(var c=0;c<e.length;++c)U(e[c],u[c])}var a=new Array(r.length),i=[],o=0;r.forEach((s,u)=>{L.hasOwnProperty(s)?a[u]=L[s]:(i.push(s),J.hasOwnProperty(s)||(J[s]=[]),J[s].push(()=>{a[u]=L[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},pt=e=>{var r=gr[e];delete gr[e];var t=r.rawConstructor,n=r.rawDestructor,a=r.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));z([e],i,o=>{var s={};return a.forEach((u,c)=>{var v=u.fieldName,h=o[c],p=u.getter,_=u.getterContext,C=o[c+a.length],O=u.setter,$=u.setterContext;s[v]={read:F=>h.fromWireType(p(_,F)),write:(F,f)=>{var d=[];O($,F,C.toWireType(d,f)),Mr(d)}}}),[{name:r.name,fromWireType:u=>{var c={};for(var v in s)c[v]=s[v].read(u);return n(u),c},toWireType:(u,c)=>{for(var v in s)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var h=t();for(v in s)s[v].write(h,c[v]);return u!==null&&u.push(n,h),h},argPackAdvance:H,readValueFromPointer:nr,destructorFunction:n}]})},ht=(e,r,t,n,a)=>{},_t=()=>{for(var e=new Array(256),r=0;r<256;++r)e[r]=String.fromCharCode(r);de=e},de,S=e=>{for(var r="",t=e;R[t];)r+=de[R[t++]];return r},K,g=e=>{throw new K(e)};function gt(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=r.name;if(e||g(`type "${n}" must have a positive integer typeid pointer`),L.hasOwnProperty(e)){if(t.ignoreDuplicateRegistrations)return;g(`Cannot register type '${n}' twice`)}if(L[e]=r,delete yr[e],J.hasOwnProperty(e)){var a=J[e];delete J[e],a.forEach(i=>i())}}function U(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in r))throw new TypeError("registerType registeredInstance requires argPackAdvance");return gt(e,r,t)}var H=8,yt=(e,r,t,n)=>{r=S(r),U(e,{name:r,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:H,readValueFromPointer:function(a){return this.fromWireType(R[a])},destructorFunction:null})},mt=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),jr=e=>{function r(t){return t.$$.ptrType.registeredClass.name}g(r(e)+" instance already deleted")},Ir=!1,pe=e=>{},$t=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},he=e=>{e.count.value-=1;var r=e.count.value===0;r&&$t(e)},_e=(e,r,t)=>{if(r===t)return e;if(t.baseClass===void 0)return null;var n=_e(e,r,t.baseClass);return n===null?null:t.downcast(n)},ge={},bt=()=>Object.keys(or).length,wt=()=>{var e=[];for(var r in or)or.hasOwnProperty(r)&&e.push(or[r]);return e},ar=[],Ur=()=>{for(;ar.length;){var e=ar.pop();e.$$.deleteScheduled=!1,e.delete()}},ir,Tt=e=>{ir=e,ar.length&&ir&&ir(Ur)},Pt=()=>{l.getInheritedInstanceCount=bt,l.getLiveInheritedInstances=wt,l.flushPendingDeletes=Ur,l.setDelayFunction=Tt},or={},Ct=(e,r)=>{for(r===void 0&&g("ptr should not be undefined");e.baseClass;)r=e.upcast(r),e=e.baseClass;return r},At=(e,r)=>(r=Ct(e,r),or[r]),$r=(e,r)=>{(!r.ptrType||!r.ptr)&&mr("makeClassHandle requires ptr and ptrType");var t=!!r.smartPtrType,n=!!r.smartPtr;return t!==n&&mr("Both smartPtrType and smartPtr must be specified"),r.count={value:1},sr(Object.create(e,{$$:{value:r,writable:!0}}))};function Et(e){var r=this.getPointee(e);if(!r)return this.destructor(e),null;var t=At(this.registeredClass,r);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=r,t.$$.smartPtr=e,t.clone();var n=t.clone();return this.destructor(e),n}function a(){return this.isSmartPointer?$r(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:r,smartPtrType:this,smartPtr:e}):$r(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var i=this.registeredClass.getActualType(r),o=ge[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var u=_e(r,this.registeredClass,s.registeredClass);return u===null?a.call(this):this.isSmartPointer?$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u,smartPtrType:this,smartPtr:e}):$r(s.registeredClass.instancePrototype,{ptrType:s,ptr:u})}var sr=e=>typeof FinalizationRegistry>"u"?(sr=r=>r,e):(Ir=new FinalizationRegistry(r=>{he(r.$$)}),sr=r=>{var t=r.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ir.register(r,a,r)}return r},pe=r=>Ir.unregister(r),sr(e)),Ft=()=>{Object.assign(br.prototype,{isAliasOf(e){if(!(this instanceof br)||!(e instanceof br))return!1;var r=this.$$.ptrType.registeredClass,t=this.$$.ptr;e.$$=e.$$;for(var n=e.$$.ptrType.registeredClass,a=e.$$.ptr;r.baseClass;)t=r.upcast(t),r=r.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return r===n&&t===a},clone(){if(this.$$.ptr||jr(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=sr(Object.create(Object.getPrototypeOf(this),{$$:{value:mt(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),pe(this),he(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||jr(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&g("Object already scheduled for deletion"),ar.push(this),ar.length===1&&ir&&ir(Ur),this.$$.deleteScheduled=!0,this}})};function br(){}var ur=(e,r)=>Object.defineProperty(r,"name",{value:e}),ye=(e,r,t)=>{if(e[r].overloadTable===void 0){var n=e[r];e[r]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return e[r].overloadTable.hasOwnProperty(i.length)||g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`),e[r].overloadTable[i.length].apply(this,i)},e[r].overloadTable=[],e[r].overloadTable[n.argCount]=n}},Hr=(e,r,t)=>{l.hasOwnProperty(e)?((t===void 0||l[e].overloadTable!==void 0&&l[e].overloadTable[t]!==void 0)&&g(`Cannot register public name '${e}' twice`),ye(l,e,e),l.hasOwnProperty(t)&&g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),l[e].overloadTable[t]=r):(l[e]=r,t!==void 0&&(l[e].numArguments=t))},St=48,Rt=57,Dt=e=>{if(e===void 0)return"_unknown";e=e.replace(/[^a-zA-Z0-9_]/g,"$");var r=e.charCodeAt(0);return r>=St&&r<=Rt?`_${e}`:e};function Ot(e,r,t,n,a,i,o,s){this.name=e,this.constructor=r,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var xr=(e,r,t)=>{for(;r!==t;)r.upcast||g(`Expected null or instance of ${t.name}, got an instance of ${r.name}`),e=r.upcast(e),r=r.baseClass;return e};function Wt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}function kt(e,r){var t;if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,t),t):0;(!r||!r.$$)&&g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);var n=r.$$.ptrType.registeredClass;if(t=xr(r.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(r.$$.smartPtr===void 0&&g("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:r.$$.smartPtrType===this?t=r.$$.smartPtr:g(`Cannot convert argument of type ${r.$$.smartPtrType?r.$$.smartPtrType.name:r.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=r.$$.smartPtr;break;case 2:if(r.$$.smartPtrType===this)t=r.$$.smartPtr;else{var a=r.clone();t=this.rawShare(t,Y.toHandle(()=>a.delete())),e!==null&&e.push(this.rawDestructor,t)}break;default:g("Unsupporting sharing policy")}return t}function Mt(e,r){if(r===null)return this.isReference&&g(`null is not a valid ${this.name}`),0;r.$$||g(`Cannot pass "${zr(r)}" as a ${this.name}`),r.$$.ptr||g(`Cannot pass deleted object as a pointer of type ${this.name}`),r.$$.ptrType.isConst&&g(`Cannot convert argument of type ${r.$$.ptrType.name} to parameter type ${this.name}`);var t=r.$$.ptrType.registeredClass,n=xr(r.$$.ptr,t,this.registeredClass);return n}var jt=()=>{Object.assign(wr.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var r;(r=this.rawDestructor)===null||r===void 0||r.call(this,e)},argPackAdvance:H,readValueFromPointer:nr,fromWireType:Et})};function wr(e,r,t,n,a,i,o,s,u,c,v){this.name=e,this.registeredClass=r,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=u,this.rawShare=c,this.rawDestructor=v,!a&&r.baseClass===void 0?n?(this.toWireType=Wt,this.destructorFunction=null):(this.toWireType=Mt,this.destructorFunction=null):this.toWireType=kt}var me=(e,r,t)=>{l.hasOwnProperty(e)||mr("Replacing nonexistant public symbol"),l[e].overloadTable!==void 0&&t!==void 0?l[e].overloadTable[t]=r:(l[e]=r,l[e].argCount=t)},It=(e,r,t)=>{var n=l["dynCall_"+e];return n(r,...t)},Tr=[],$e,b=e=>{var r=Tr[e];return r||(e>=Tr.length&&(Tr.length=e+1),Tr[e]=r=$e.get(e)),r},Ut=function(e,r){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(e.includes("j"))return It(e,r,t);var n=b(r)(...t);return n},Ht=(e,r)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ut(e,r,n)},M=(e,r)=>{e=S(e);function t(){return e.includes("j")?Ht(e,r):b(r)}var n=t();return typeof n!="function"&&g(`unknown function pointer with signature ${e}: ${r}`),n},xt=(e,r)=>{var t=ur(r,function(n){this.name=r,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},be,we=e=>{var r=We(e),t=S(r);return B(r),t},Pr=(e,r)=>{var t=[],n={};function a(i){if(!n[i]&&!L[i]){if(yr[i]){yr[i].forEach(a);return}t.push(i),n[i]=!0}}throw r.forEach(a),new be(`${e}: `+t.map(we).join([", "]))},Vt=(e,r,t,n,a,i,o,s,u,c,v,h,p)=>{v=S(v),i=M(a,i),s&&(s=M(o,s)),c&&(c=M(u,c)),p=M(h,p);var _=Dt(v);Hr(_,function(){Pr(`Cannot construct ${v} due to unbound types`,[n])}),z([e,r,t],n?[n]:[],C=>{C=C[0];var O,$;n?(O=C.registeredClass,$=O.instancePrototype):$=br.prototype;var F=ur(v,function(){if(Object.getPrototypeOf(this)!==f)throw new K("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new K(v+" has no accessible constructor");for(var Ye=arguments.length,Fr=new Array(Ye),Sr=0;Sr<Ye;Sr++)Fr[Sr]=arguments[Sr];var Be=d.constructor_body[Fr.length];if(Be===void 0)throw new K(`Tried to invoke ctor of ${v} with invalid number of parameters (${Fr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Be.apply(this,Fr)}),f=Object.create($,{constructor:{value:F}});F.prototype=f;var d=new Ot(v,F,f,p,O,i,s,c);if(d.baseClass){var A,E;(E=(A=d.baseClass).__derivedClasses)!==null&&E!==void 0||(A.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var Q=new wr(v,d,!0,!1,!1),Er=new wr(v+"*",d,!1,!1,!1),Ve=new wr(v+" const*",d,!1,!0,!1);return ge[e]={pointerType:Er,constPointerType:Ve},me(_,F),[Q,Er,Ve]})},Vr=(e,r)=>{for(var t=[],n=0;n<e;n++)t.push(y[r+n*4>>2]);return t};function Yt(e){for(var r=1;r<e.length;++r)if(e[r]!==null&&e[r].destructorFunction===void 0)return!0;return!1}function Yr(e,r,t,n,a,i){var o=r.length;o<2&&g("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=r[1]!==null&&t!==null,u=Yt(r),c=r[0].name!=="void",v=o-2,h=new Array(v),p=[],_=[],C=function(){arguments.length!==v&&g(`function ${e} called with ${arguments.length} arguments, expected ${v}`),_.length=0;var O;p.length=s?2:1,p[0]=a,s&&(O=r[1].toWireType(_,this),p[1]=O);for(var $=0;$<v;++$)h[$]=r[$+2].toWireType(_,$<0||arguments.length<=$?void 0:arguments[$]),p.push(h[$]);var F=n(...p);function f(d){if(u)Mr(_);else for(var A=s?1:2;A<r.length;A++){var E=A===1?O:h[A-2];r[A].destructorFunction!==null&&r[A].destructorFunction(E)}if(c)return r[0].fromWireType(d)}return f(F)};return ur(e,C)}var Bt=(e,r,t,n,a,i)=>{var o=Vr(r,t);a=M(n,a),z([],[e],s=>{s=s[0];var u=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[r-1]!==void 0)throw new K(`Cannot register multiple constructors with identical number of parameters (${r-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[r-1]=()=>{Pr(`Cannot construct ${s.name} due to unbound types`,o)},z([],o,c=>(c.splice(1,0,null),s.registeredClass.constructor_body[r-1]=Yr(u,c,null,a,i),[])),[]})},Te=e=>{e=e.trim();const r=e.indexOf("(");return r!==-1?e.substr(0,r):e},Nt=(e,r,t,n,a,i,o,s,u)=>{var c=Vr(t,n);r=S(r),r=Te(r),i=M(a,i),z([],[e],v=>{v=v[0];var h=`${v.name}.${r}`;r.startsWith("@@")&&(r=Symbol[r.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(r);function p(){Pr(`Cannot call ${h} due to unbound types`,c)}var _=v.registeredClass.instancePrototype,C=_[r];return C===void 0||C.overloadTable===void 0&&C.className!==v.name&&C.argCount===t-2?(p.argCount=t-2,p.className=v.name,_[r]=p):(ye(_,r,h),_[r].overloadTable[t-2]=p),z([],c,O=>{var $=Yr(h,O,v,i,o);return _[r].overloadTable===void 0?($.argCount=t-2,_[r]=$):_[r].overloadTable[t-2]=$,[]}),[]})},Br=[],V=[],Nr=e=>{e>9&&--V[e+1]===0&&(V[e]=void 0,Br.push(e))},Lt=()=>V.length/2-5-Br.length,zt=()=>{V.push(0,1,void 0,1,null,1,!0,1,!1,1),l.count_emval_handles=Lt},Y={toValue:e=>(e||g("Cannot use deleted val. handle = "+e),V[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const r=Br.pop()||V.length;return V[r]=e,V[r+1]=1,r}}}},Xt={name:"emscripten::val",fromWireType:e=>{var r=Y.toValue(e);return Nr(e),r},toWireType:(e,r)=>Y.toHandle(r),argPackAdvance:H,readValueFromPointer:nr,destructorFunction:null},Pe=e=>U(e,Xt),Zt=(e,r,t)=>{switch(r){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(R[n])};case 2:return t?function(n){return this.fromWireType(G[n>>1])}:function(n){return this.fromWireType(er[n>>1])};case 4:return t?function(n){return this.fromWireType(D[n>>2])}:function(n){return this.fromWireType(y[n>>2])};default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},Gt=(e,r,t,n)=>{r=S(r);function a(){}a.values={},U(e,{name:r,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:H,readValueFromPointer:Zt(r,t,n),destructorFunction:null}),Hr(r,a)},Lr=(e,r)=>{var t=L[e];return t===void 0&&g(`${r} has unknown type ${we(e)}`),t},qt=(e,r,t)=>{var n=Lr(e,"enum");r=S(r);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ur(`${n.name}_${r}`,function(){})}});a.values[t]=i,a[r]=i},zr=e=>{if(e===null)return"null";var r=typeof e;return r==="object"||r==="array"||r==="function"?e.toString():""+e},Jt=(e,r)=>{switch(r){case 4:return function(t){return this.fromWireType(ne[t>>2])};case 8:return function(t){return this.fromWireType(ae[t>>3])};default:throw new TypeError(`invalid float width (${r}): ${e}`)}},Kt=(e,r,t)=>{r=S(r),U(e,{name:r,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:H,readValueFromPointer:Jt(r,t),destructorFunction:null})},Qt=(e,r,t,n,a,i,o)=>{var s=Vr(r,t);e=S(e),e=Te(e),a=M(n,a),Hr(e,function(){Pr(`Cannot call ${e} due to unbound types`,s)},r-1),z([],s,u=>{var c=[u[0],null].concat(u.slice(1));return me(e,Yr(e,c,null,a,i),r-1),[]})},rn=(e,r,t)=>{switch(r){case 1:return t?n=>k[n]:n=>R[n];case 2:return t?n=>G[n>>1]:n=>er[n>>1];case 4:return t?n=>D[n>>2]:n=>y[n>>2];default:throw new TypeError(`invalid integer width (${r}): ${e}`)}},en=(e,r,t,n,a)=>{r=S(r);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=r.includes("unsigned"),u=(v,h)=>{},c;s?c=function(v,h){return u(h,this.name),h>>>0}:c=function(v,h){return u(h,this.name),h},U(e,{name:r,fromWireType:i,toWireType:c,argPackAdvance:H,readValueFromPointer:rn(r,t,n!==0),destructorFunction:null})},tn=(e,r,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[r];function i(o){var s=y[o>>2],u=y[o+4>>2];return new a(k.buffer,u,s)}t=S(t),U(e,{name:t,fromWireType:i,argPackAdvance:H,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},nn=(e,r)=>{Pe(e)},Ce=(e,r,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(s<=127){if(t>=i)break;r[t++]=s}else if(s<=2047){if(t+1>=i)break;r[t++]=192|s>>6,r[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;r[t++]=224|s>>12,r[t++]=128|s>>6&63,r[t++]=128|s&63}else{if(t+3>=i)break;r[t++]=240|s>>18,r[t++]=128|s>>12&63,r[t++]=128|s>>6&63,r[t++]=128|s&63}}return r[t]=0,t-a},an=(e,r,t)=>Ce(e,R,r,t),Ae=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n<=127?r++:n<=2047?r+=2:n>=55296&&n<=57343?(r+=4,++t):r+=3}return r},Ee=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Fe=(e,r,t)=>{for(var n=r+t,a=r;e[a]&&!(a>=n);)++a;if(a-r>16&&e.buffer&&Ee)return Ee.decode(e.subarray(r,a));for(var i="";r<a;){var o=e[r++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=e[r++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var u=e[r++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|u:o=(o&7)<<18|s<<12|u<<6|e[r++]&63,o<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},Xr=(e,r)=>e?Fe(R,e,r):"",on=(e,r)=>{r=S(r);var t=r==="std::string";U(e,{name:r,fromWireType(n){var a=y[n>>2],i=n+4,o;if(t)for(var s=i,u=0;u<=a;++u){var c=i+u;if(u==a||R[c]==0){var v=c-s,h=Xr(s,v);o===void 0?o=h:(o+="\0",o+=h),s=c+1}}else{for(var p=new Array(a),u=0;u<a;++u)p[u]=String.fromCharCode(R[i+u]);o=p.join("")}return B(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||g("Cannot pass non-string to std::string"),t&&o?i=Ae(a):i=a.length;var s=qr(4+i+1),u=s+4;if(y[s>>2]=i,t&&o)an(a,u,i+1);else if(o)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(B(u),g("String has UTF-16 code units that do not fit in 8 bits")),R[u+c]=v}else for(var c=0;c<i;++c)R[u+c]=a[c];return n!==null&&n.push(B,s),s},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(n){B(n)}})},Se=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,sn=(e,r)=>{for(var t=e,n=t>>1,a=n+r/2;!(n>=a)&&er[n];)++n;if(t=n<<1,t-e>32&&Se)return Se.decode(R.subarray(e,t));for(var i="",o=0;!(o>=r/2);++o){var s=G[e+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},un=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=r,i=t<e.length*2?t/2:e.length,o=0;o<i;++o){var s=e.charCodeAt(o);G[r>>1]=s,r+=2}return G[r>>1]=0,r-a},ln=e=>e.length*2,fn=(e,r)=>{for(var t=0,n="";!(t>=r/4);){var a=D[e+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},cn=(e,r,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=r,i=a+t-4,o=0;o<e.length;++o){var s=e.charCodeAt(o);if(s>=55296&&s<=57343){var u=e.charCodeAt(++o);s=65536+((s&1023)<<10)|u&1023}if(D[r>>2]=s,r+=4,r+4>i)break}return D[r>>2]=0,r-a},vn=e=>{for(var r=0,t=0;t<e.length;++t){var n=e.charCodeAt(t);n>=55296&&n<=57343&&++t,r+=4}return r},dn=(e,r,t)=>{t=S(t);var n,a,i,o;r===2?(n=sn,a=un,o=ln,i=s=>er[s>>1]):r===4&&(n=fn,a=cn,o=vn,i=s=>y[s>>2]),U(e,{name:t,fromWireType:s=>{for(var u=y[s>>2],c,v=s+4,h=0;h<=u;++h){var p=s+4+h*r;if(h==u||i(p)==0){var _=p-v,C=n(v,_);c===void 0?c=C:(c+="\0",c+=C),v=p+r}}return B(s),c},toWireType:(s,u)=>{typeof u!="string"&&g(`Cannot pass non-string to C++ string type ${t}`);var c=o(u),v=qr(4+c+r);return y[v>>2]=c/r,a(u,v+4,c+r),s!==null&&s.push(B,v),v},argPackAdvance:H,readValueFromPointer:nr,destructorFunction(s){B(s)}})},pn=(e,r,t,n,a,i)=>{gr[e]={name:S(r),rawConstructor:M(t,n),rawDestructor:M(a,i),fields:[]}},hn=(e,r,t,n,a,i,o,s,u,c)=>{gr[e].fields.push({fieldName:S(r),getterReturnType:t,getter:M(n,a),getterContext:i,setterArgumentType:o,setter:M(s,u),setterContext:c})},_n=(e,r)=>{r=S(r),U(e,{isVoid:!0,name:r,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},Zr=[],gn=(e,r,t,n)=>(e=Zr[e],r=Y.toValue(r),e(null,r,t,n)),yn={},mn=e=>{var r=yn[e];return r===void 0?S(e):r},Re=()=>{if(typeof globalThis=="object")return globalThis;function e(r){r.$$$embind_global$$$=r;var t=typeof $$$embind_global$$$=="object"&&r.$$$embind_global$$$==r;return t||delete r.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&e(global)?$$$embind_global$$$=global:typeof self=="object"&&e(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},$n=e=>e===0?Y.toHandle(Re()):(e=mn(e),Y.toHandle(Re()[e])),bn=e=>{var r=Zr.length;return Zr.push(e),r},wn=(e,r)=>{for(var t=new Array(e),n=0;n<e;++n)t[n]=Lr(y[r+n*4>>2],"parameter "+n);return t},Tn=Reflect.construct,Pn=(e,r,t)=>{var n=[],a=e.toWireType(n,t);return n.length&&(y[r>>2]=Y.toHandle(n)),a},Cn=(e,r,t)=>{var n=wn(e,r),a=n.shift();e--;var i=new Array(e),o=(u,c,v,h)=>{for(var p=0,_=0;_<e;++_)i[_]=n[_].readValueFromPointer(h+p),p+=n[_].argPackAdvance;var C=t===1?Tn(c,i):c.apply(u,i);return Pn(a,v,C)},s=`methodCaller<(${n.map(u=>u.name).join(", ")}) => ${a.name}>`;return bn(ur(s,o))},An=e=>{e>9&&(V[e+1]+=1)},En=e=>{var r=Y.toValue(e);Mr(r),Nr(e)},Fn=(e,r)=>{e=Lr(e,"_emval_take_value");var t=e.readValueFromPointer(r);return Y.toHandle(t)},Sn=()=>{pr("")},Rn=(e,r,t)=>R.copyWithin(e,r,r+t),Dn=()=>2147483648,On=e=>{var r=dr.buffer,t=(e-r.byteLength+65535)/65536;try{return dr.grow(t),ie(),1}catch{}},Wn=e=>{var r=R.length;e>>>=0;var t=Dn();if(e>t)return!1;for(var n=(u,c)=>u+(c-u%c)%c,a=1;a<=4;a*=2){var i=r*(1+.2/a);i=Math.min(i,e+100663296);var o=Math.min(t,n(Math.max(e,i),65536)),s=On(o);if(s)return!0}return!1},Gr={},kn=()=>Qr||"./this.program",lr=()=>{if(!lr.strings){var e=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",r={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:e,_:kn()};for(var t in Gr)Gr[t]===void 0?delete r[t]:r[t]=Gr[t];var n=[];for(var t in r)n.push(`${t}=${r[t]}`);lr.strings=n}return lr.strings},Mn=(e,r)=>{for(var t=0;t<e.length;++t)k[r++]=e.charCodeAt(t);k[r]=0},jn=(e,r)=>{var t=0;return lr().forEach((n,a)=>{var i=r+t;y[e+a*4>>2]=i,Mn(n,i),t+=n.length+1}),0},In=(e,r)=>{var t=lr();y[e>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),y[r>>2]=n,0},Un=e=>52;function Hn(e,r,t,n,a){return 70}var xn=[null,[],[]],Vn=(e,r)=>{var t=xn[e];r===0||r===10?((e===1?ze:Z)(Fe(t,0)),t.length=0):t.push(r)},Yn=(e,r,t,n)=>{for(var a=0,i=0;i<t;i++){var o=y[r>>2],s=y[r+4>>2];r+=8;for(var u=0;u<s;u++)Vn(e,R[o+u]);a+=s}return y[n>>2]=a,0},Bn=e=>e,Cr=e=>e%4===0&&(e%100!==0||e%400===0),Nn=(e,r)=>{for(var t=0,n=0;n<=r;t+=e[n++]);return t},De=[31,29,31,30,31,30,31,31,30,31,30,31],Oe=[31,28,31,30,31,30,31,31,30,31,30,31],Ln=(e,r)=>{for(var t=new Date(e.getTime());r>0;){var n=Cr(t.getFullYear()),a=t.getMonth(),i=(n?De:Oe)[a];if(r>i-t.getDate())r-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+r),t}return t};function zn(e,r,t){var n=t>0?t:Ae(e)+1,a=new Array(n),i=Ce(e,a,0,a.length);return r&&(a.length=i),a}var Xn=(e,r)=>{k.set(e,r)},Zn=(e,r,t,n)=>{var a=y[n+40>>2],i={tm_sec:D[n>>2],tm_min:D[n+4>>2],tm_hour:D[n+8>>2],tm_mday:D[n+12>>2],tm_mon:D[n+16>>2],tm_year:D[n+20>>2],tm_wday:D[n+24>>2],tm_yday:D[n+28>>2],tm_isdst:D[n+32>>2],tm_gmtoff:D[n+36>>2],tm_zone:a?Xr(a):""},o=Xr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var u in s)o=o.replace(new RegExp(u,"g"),s[u]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function h(f,d,A){for(var E=typeof f=="number"?f.toString():f||"";E.length<d;)E=A[0]+E;return E}function p(f,d){return h(f,d,"0")}function _(f,d){function A(Q){return Q<0?-1:Q>0?1:0}var E;return(E=A(f.getFullYear()-d.getFullYear()))===0&&(E=A(f.getMonth()-d.getMonth()))===0&&(E=A(f.getDate()-d.getDate())),E}function C(f){switch(f.getDay()){case 0:return new Date(f.getFullYear()-1,11,29);case 1:return f;case 2:return new Date(f.getFullYear(),0,3);case 3:return new Date(f.getFullYear(),0,2);case 4:return new Date(f.getFullYear(),0,1);case 5:return new Date(f.getFullYear()-1,11,31);case 6:return new Date(f.getFullYear()-1,11,30)}}function O(f){var d=Ln(new Date(f.tm_year+1900,0,1),f.tm_yday),A=new Date(d.getFullYear(),0,4),E=new Date(d.getFullYear()+1,0,4),Q=C(A),Er=C(E);return _(Q,d)<=0?_(Er,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var $={"%a":f=>c[f.tm_wday].substring(0,3),"%A":f=>c[f.tm_wday],"%b":f=>v[f.tm_mon].substring(0,3),"%B":f=>v[f.tm_mon],"%C":f=>{var d=f.tm_year+1900;return p(d/100|0,2)},"%d":f=>p(f.tm_mday,2),"%e":f=>h(f.tm_mday,2," "),"%g":f=>O(f).toString().substring(2),"%G":O,"%H":f=>p(f.tm_hour,2),"%I":f=>{var d=f.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":f=>p(f.tm_mday+Nn(Cr(f.tm_year+1900)?De:Oe,f.tm_mon-1),3),"%m":f=>p(f.tm_mon+1,2),"%M":f=>p(f.tm_min,2),"%n":()=>`
`,"%p":f=>f.tm_hour>=0&&f.tm_hour<12?"AM":"PM","%S":f=>p(f.tm_sec,2),"%t":()=>" ","%u":f=>f.tm_wday||7,"%U":f=>{var d=f.tm_yday+7-f.tm_wday;return p(Math.floor(d/7),2)},"%V":f=>{var d=Math.floor((f.tm_yday+7-(f.tm_wday+6)%7)/7);if((f.tm_wday+371-f.tm_yday-2)%7<=2&&d++,d){if(d==53){var E=(f.tm_wday+371-f.tm_yday)%7;E!=4&&(E!=3||!Cr(f.tm_year))&&(d=1)}}else{d=52;var A=(f.tm_wday+7-f.tm_yday-1)%7;(A==4||A==5&&Cr(f.tm_year%400-1))&&d++}return p(d,2)},"%w":f=>f.tm_wday,"%W":f=>{var d=f.tm_yday+7-(f.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":f=>(f.tm_year+1900).toString().substring(2),"%Y":f=>f.tm_year+1900,"%z":f=>{var d=f.tm_gmtoff,A=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(A?"+":"-")+("0000"+d).slice(-4)},"%Z":f=>f.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var u in $)o.includes(u)&&(o=o.replace(new RegExp(u,"g"),$[u](i)));o=o.replace(/\0\0/g,"%");var F=zn(o,!1);return F.length>r?0:(Xn(F,e),F.length-1)},Gn=(e,r,t,n,a)=>Zn(e,r,t,n);ve=l.InternalError=class extends Error{constructor(r){super(r),this.name="InternalError"}},_t(),K=l.BindingError=class extends Error{constructor(r){super(r),this.name="BindingError"}},Ft(),Pt(),jt(),be=l.UnboundTypeError=xt(Error,"UnboundTypeError"),zt();var qn={s:it,u:ot,b:ut,g:lt,q:ft,K:ct,f:vt,Y:dt,d:st,ha:pt,U:ht,ba:yt,fa:Vt,ea:Bt,w:Nt,aa:Pe,x:Gt,h:qt,O:Kt,P:Qt,t:en,o:tn,ga:nn,N:on,C:dn,A:pn,ia:hn,ca:_n,E:gn,ka:Nr,la:$n,M:Cn,Q:An,R:En,da:Fn,B:Sn,$:Rn,Z:Wn,W:jn,X:In,_:Un,T:Hn,L:Yn,F:va,D:ea,G:ca,m:da,a:Jn,e:na,p:ra,k:fa,I:ua,v:oa,H:la,z:ha,S:ga,l:aa,j:ta,c:Qn,n:Kn,J:sa,r:pa,i:ia,y:_a,ja:Bn,V:Gn},w=at(),B=l._free=e=>(B=l._free=w.oa)(e),qr=l._malloc=e=>(qr=l._malloc=w.pa)(e),We=e=>(We=w.ra)(e),m=(e,r)=>(m=w.sa)(e,r),fr=e=>(fr=w.ta)(e),T=()=>(T=w.ua)(),P=e=>(P=w.va)(e),ke=e=>(ke=w.wa)(e),Me=e=>(Me=w.xa)(e),je=(e,r,t)=>(je=w.ya)(e,r,t),Ie=e=>(Ie=w.za)(e);l.dynCall_viijii=(e,r,t,n,a,i,o)=>(l.dynCall_viijii=w.Aa)(e,r,t,n,a,i,o),l.dynCall_jiji=(e,r,t,n,a)=>(l.dynCall_jiji=w.Ba)(e,r,t,n,a);var Ue=l.dynCall_jiiii=(e,r,t,n,a)=>(Ue=l.dynCall_jiiii=w.Ca)(e,r,t,n,a);l.dynCall_iiiiij=(e,r,t,n,a,i,o)=>(l.dynCall_iiiiij=w.Da)(e,r,t,n,a,i,o),l.dynCall_iiiiijj=(e,r,t,n,a,i,o,s,u)=>(l.dynCall_iiiiijj=w.Ea)(e,r,t,n,a,i,o,s,u),l.dynCall_iiiiiijj=(e,r,t,n,a,i,o,s,u,c)=>(l.dynCall_iiiiiijj=w.Fa)(e,r,t,n,a,i,o,s,u,c);function Jn(e,r){var t=T();try{return b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function Kn(e,r,t,n){var a=T();try{b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function Qn(e,r,t){var n=T();try{b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function ra(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function ea(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ta(e,r){var t=T();try{b(e)(r)}catch(n){if(P(t),n!==n+0)throw n;m(1,0)}}function na(e,r,t){var n=T();try{return b(e)(r,t)}catch(a){if(P(n),a!==a+0)throw a;m(1,0)}}function aa(e){var r=T();try{b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function ia(e,r,t,n,a,i,o,s,u,c,v){var h=T();try{b(e)(r,t,n,a,i,o,s,u,c,v)}catch(p){if(P(h),p!==p+0)throw p;m(1,0)}}function oa(e,r,t,n,a,i,o){var s=T();try{return b(e)(r,t,n,a,i,o)}catch(u){if(P(s),u!==u+0)throw u;m(1,0)}}function sa(e,r,t,n,a){var i=T();try{b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ua(e,r,t,n,a,i){var o=T();try{return b(e)(r,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;m(1,0)}}function la(e,r,t,n,a,i,o,s){var u=T();try{return b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function fa(e,r,t,n,a){var i=T();try{return b(e)(r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}function ca(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function va(e,r,t,n){var a=T();try{return b(e)(r,t,n)}catch(i){if(P(a),i!==i+0)throw i;m(1,0)}}function da(e){var r=T();try{return b(e)()}catch(t){if(P(r),t!==t+0)throw t;m(1,0)}}function pa(e,r,t,n,a,i,o,s){var u=T();try{b(e)(r,t,n,a,i,o,s)}catch(c){if(P(u),c!==c+0)throw c;m(1,0)}}function ha(e,r,t,n,a,i,o,s,u,c,v,h){var p=T();try{return b(e)(r,t,n,a,i,o,s,u,c,v,h)}catch(_){if(P(p),_!==_+0)throw _;m(1,0)}}function _a(e,r,t,n,a,i,o,s,u,c,v,h,p,_,C,O){var $=T();try{b(e)(r,t,n,a,i,o,s,u,c,v,h,p,_,C,O)}catch(F){if(P($),F!==F+0)throw F;m(1,0)}}function ga(e,r,t,n,a){var i=T();try{return Ue(e,r,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;m(1,0)}}var Ar;tr=function e(){Ar||He(),Ar||(tr=e)};function He(){if(N>0||(Xe(),N>0))return;function e(){Ar||(Ar=!0,l.calledRun=!0,!te&&(Ze(),Jr(l),l.onRuntimeInitialized&&l.onRuntimeInitialized(),Ge()))}l.setStatus?(l.setStatus("Running..."),setTimeout(function(){setTimeout(function(){l.setStatus("")},1),e()},1)):e()}if(l.preInit)for(typeof l.preInit=="function"&&(l.preInit=[l.preInit]);l.preInit.length>0;)l.preInit.pop()();return He(),X.ready}})();function ya(j){return W.getZXingModuleWithFactory(Rr,j)}function ma(j){return W.setZXingModuleOverridesWithFactory(Rr,j)}async function $a(j,X){return W.readBarcodesFromImageFileWithFactory(Rr,j,X)}async function ba(j,X){return W.readBarcodesFromImageDataWithFactory(Rr,j,X)}exports.barcodeFormats=W.barcodeFormats;exports.binarizers=W.binarizers;exports.characterSets=W.characterSets;exports.contentTypes=W.contentTypes;exports.defaultDecodeHints=W.defaultReaderOptions;exports.defaultReaderOptions=W.defaultReaderOptions;exports.eanAddOnSymbols=W.eanAddOnSymbols;exports.purgeZXingModule=W.purgeZXingModule;exports.readOutputEccLevels=W.readOutputEccLevels;exports.textModes=W.textModes;exports.getZXingModule=ya;exports.readBarcodesFromImageData=ba;exports.readBarcodesFromImageFile=$a;exports.setZXingModuleOverrides=ma;

@@ -1,2 +0,2 @@

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-Bq4cWic1.cjs");var yr=(()=>{var k=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(Q={}){var u=Q,br,Y;u.ready=new Promise((r,e)=>{br=r,Y=e});var wr=Object.assign({},u),Tr=typeof window=="object",$r=typeof Bun<"u",z=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var A="";function re(r){return u.locateFile?u.locateFile(r,A):A+r}var ur;(Tr||z||$r)&&(z?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),k&&(A=k),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),z&&(ur=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),u.print||console.log.bind(console);var N=u.printErr||console.error.bind(console);Object.assign(u,wr),wr=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram,u.quit&&u.quit;var X;u.wasmBinary&&(X=u.wasmBinary),typeof WebAssembly!="object"&&fr("no native wasm support detected");var rr,Ar=!1,S,g,D,Z,x,d,Er,Cr;function Rr(){var r=rr.buffer;u.HEAP8=S=new Int8Array(r),u.HEAP16=D=new Int16Array(r),u.HEAPU8=g=new Uint8Array(r),u.HEAPU16=Z=new Uint16Array(r),u.HEAP32=x=new Int32Array(r),u.HEAPU32=d=new Uint32Array(r),u.HEAPF32=Er=new Float32Array(r),u.HEAPF64=Cr=new Float64Array(r)}var Fr=[],Pr=[],Wr=[];function ee(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)ae(u.preRun.shift());cr(Fr)}function te(){cr(Pr)}function ne(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)oe(u.postRun.shift());cr(Wr)}function ae(r){Fr.unshift(r)}function ie(r){Pr.unshift(r)}function oe(r){Wr.unshift(r)}var M=0,L=null;function se(r){var e;M++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M)}function ue(r){var e;if(M--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M),M==0&&L){var t=L;L=null,t()}}function fr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",N(r),Ar=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw Y(t),t}var fe="data:application/octet-stream;base64,",kr=r=>r.startsWith(fe),V;V="zxing_writer.wasm",kr(V)||(V=re(V));function Sr(r){if(r==V&&X)return new Uint8Array(X);if(ur)return ur(r);throw"both async and sync fetching of the wasm failed"}function ce(r){return!X&&(Tr||z||$r)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Sr(r)):Promise.resolve().then(()=>Sr(r))}function Ur(r,e,t){return ce(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{N(`failed to asynchronously prepare wasm: ${n}`),fr(n)})}function ve(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!kr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(s){return N(`wasm streaming compile failed: ${s}`),N("falling back to ArrayBuffer instantiation"),Ur(e,t,n)})}):Ur(e,t,n)}function le(){var r={a:Ft};function e(n,a){return p=n.exports,rr=p.R,Rr(),Nr=p.V,ie(p.S),ue(),p}se();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){N(`Module.instantiateWasm callback failed with error: ${n}`),Y(n)}return ve(X,V,r,t).catch(Y),{}}var cr=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Mr=[],de=r=>{var e=new vr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),Mr.push(e),Jr(e.excPtr),e.get_exception_ptr()},I=0,_e=()=>{w(0,0);var r=Mr.pop();Kr(r.excPtr),I=0};class vr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){d[this.ptr+4>>2]=e}get_type(){return d[this.ptr+4>>2]}set_destructor(e){d[this.ptr+8>>2]=e}get_destructor(){return d[this.ptr+8>>2]}set_caught(e){e=e?1:0,S[this.ptr+12]=e}get_caught(){return S[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,S[this.ptr+13]=e}get_rethrown(){return S[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){d[this.ptr+16>>2]=e}get_adjusted_ptr(){return d[this.ptr+16>>2]}get_exception_ptr(){var e=Yr(this.get_type());if(e)return d[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var pe=r=>{throw I||(I=r),I},lr=r=>{var e=I;if(!e)return G(0),0;var t=new vr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return G(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var s=t.ptr+16;if(Qr(i,n,s))return G(i),e}return G(n),e},ge=()=>lr([]),he=r=>lr([r]),me=(r,e)=>lr([r,e]),ye=(r,e,t)=>{var n=new vr(r);throw n.init(e,t),I=r,I},er={},dr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(d[r>>2])}var H={},O={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(function(o){nr[o]=e});function n(o){var f=t(o);f.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c<r.length;++c)E(r[c],f[c])}var a=new Array(e.length),i=[],s=0;e.forEach((o,f)=>{O.hasOwnProperty(o)?a[f]=O[o]:(i.push(o),H.hasOwnProperty(o)||(H[o]=[]),H[o].push(()=>{a[f]=O[o],++s,s===i.length&&n(a)}))}),i.length===0&&n(a)},be=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(s=>s.getterReturnType).concat(a.map(s=>s.setterArgumentType));jr([r],i,s=>{var o={};return a.forEach((f,c)=>{var v=f.fieldName,l=s[c],_=f.getter,m=f.getterContext,U=s[c+a.length],K=f.setter,C=f.setterContext;o[v]={read:J=>l.fromWireType(_(m,J)),write:(J,mr)=>{var sr=[];K(C,J,U.toWireType(sr,mr)),dr(sr)}}}),[{name:e.name,fromWireType:f=>{var c={};for(var v in o)c[v]=o[v].read(f);return n(f),c},toWireType:(f,c)=>{for(var v in o)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in o)o[v].write(l,c[v]);return f!==null&&f.push(n,l),l},argPackAdvance:R,readValueFromPointer:tr,destructorFunction:n}]})},we=(r,e,t,n,a)=>{},Te=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,h=r=>{for(var e="",t=r;g[t];)e+=Dr[g[t++]];return e},xr,y=r=>{throw new xr(r)};function $e(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),O.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(O[r]=e,delete nr[r],H.hasOwnProperty(r)){var a=H[r];delete H[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return $e(r,e,t)}var R=8,Ae=(r,e,t,n)=>{e=h(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:R,readValueFromPointer:function(a){return this.fromWireType(g[a])},destructorFunction:null})},_r=[],F=[],pr=r=>{r>9&&--F[r+1]===0&&(F[r]=void 0,_r.push(r))},Ee=()=>F.length/2-5-_r.length,Ce=()=>{F.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Ee},j={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),F[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=_r.pop()||F.length;return F[e]=r,F[e+1]=1,e}}}},Re={name:"emscripten::val",fromWireType:r=>{var e=j.toValue(r);return pr(r),e},toWireType:(r,e)=>j.toHandle(e),argPackAdvance:R,readValueFromPointer:tr,destructorFunction:null},Fe=r=>E(r,Re),Pe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Vr=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Pe(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},We=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(S[n])}:function(n){return this.fromWireType(g[n])};case 2:return t?function(n){return this.fromWireType(D[n>>1])}:function(n){return this.fromWireType(Z[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(d[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},ke=(r,e,t,n)=>{e=h(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,s)=>s.value,argPackAdvance:R,readValueFromPointer:We(e,t,n),destructorFunction:null}),Vr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Hr=r=>{var e=Gr(r),t=h(e);return P(e),t},Br=(r,e)=>{var t=O[r];return t===void 0&&y(`${e} has unknown type ${Hr(r)}`),t},Se=(r,e,t)=>{var n=Br(r,"enum");e=h(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ue=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Er[t>>2])};case 8:return function(t){return this.fromWireType(Cr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Me=(r,e,t)=>{e=h(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:R,readValueFromPointer:Ue(e,t),destructorFunction:null})};function Ie(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Oe(r,e,t,n,a,i){var s=e.length;s<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,f=Ie(e),c=e[0].name!=="void",v=s-2,l=new Array(v),_=[],m=[],U=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var K;_.length=o?2:1,_[0]=a,o&&(K=e[1].toWireType(m,this),_[1]=K);for(var C=0;C<v;++C)l[C]=e[C+2].toWireType(m,C<0||arguments.length<=C?void 0:arguments[C]),_.push(l[C]);var J=n(..._);function mr(sr){if(f)dr(m);else for(var B=o?1:2;B<e.length;B++){var Vt=B===1?K:l[B-2];e[B].destructorFunction!==null&&e[B].destructorFunction(Vt)}if(c)return e[0].fromWireType(sr)}return mr(J)};return ar(r,U)}var je=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(d[e+n*4>>2]);return t},De=(r,e,t)=>{u.hasOwnProperty(r)||Or("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},xe=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},ir=[],Nr,b=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Nr.get(r)),e},Ve=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return xe(r,e,t);var n=b(e)(...t);return n},He=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Ve(r,e,n)},q=(r,e)=>{r=h(r);function t(){return r.includes("j")?He(r,e):b(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Be=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Xr,Ne=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!O[i]){if(nr[i]){nr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Xr(`${r}: `+t.map(Hr).join([", "]))},Xe=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Ze=(r,e,t,n,a,i,s)=>{var o=je(e,t);r=h(r),r=Xe(r),a=q(n,a),Vr(r,function(){Ne(`Cannot call ${r} due to unbound types`,o)},e-1),jr([],o,f=>{var c=[f[0],null].concat(f.slice(1));return De(r,Oe(r,c,null,a,i),e-1),[]})},Le=(r,e,t)=>{switch(e){case 1:return t?n=>S[n]:n=>g[n];case 2:return t?n=>D[n>>1]:n=>Z[n>>1];case 4:return t?n=>x[n>>2]:n=>d[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},qe=(r,e,t,n,a)=>{e=h(e);var i=v=>v;if(n===0){var s=32-8*t;i=v=>v<<s>>>s}var o=e.includes("unsigned"),f=(v,l)=>{},c;o?c=function(v,l){return f(l,this.name),l>>>0}:c=function(v,l){return f(l,this.name),l},E(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:R,readValueFromPointer:Le(e,t,n!==0),destructorFunction:null})},Ge=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(s){var o=d[s>>2],f=d[s+4>>2];return new a(S.buffer,f,o)}t=h(t),E(r,{name:t,fromWireType:i,argPackAdvance:R,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Ke=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},Je=(r,e,t)=>Ke(r,g,e,t),Qe=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Zr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Ye=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Zr)return Zr.decode(r.subarray(e,a));for(var i="";e<a;){var s=r[e++];if(!(s&128)){i+=String.fromCharCode(s);continue}var o=r[e++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|o);continue}var f=r[e++]&63;if((s&240)==224?s=(s&15)<<12|o<<6|f:s=(s&7)<<18|o<<12|f<<6|r[e++]&63,s<65536)i+=String.fromCharCode(s);else{var c=s-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},ze=(r,e)=>r?Ye(g,r,e):"",rt=(r,e)=>{e=h(e);var t=e==="std::string";E(r,{name:e,fromWireType(n){var a=d[n>>2],i=n+4,s;if(t)for(var o=i,f=0;f<=a;++f){var c=i+f;if(f==a||g[c]==0){var v=c-o,l=ze(o,v);s===void 0?s=l:(s+="\0",s+=l),o=c+1}}else{for(var _=new Array(a),f=0;f<a;++f)_[f]=String.fromCharCode(g[i+f]);s=_.join("")}return P(n),s},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,s=typeof a=="string";s||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&s?i=Qe(a):i=a.length;var o=hr(4+i+1),f=o+4;if(d[o>>2]=i,t&&s)Je(a,f,i+1);else if(s)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(P(f),y("String has UTF-16 code units that do not fit in 8 bits")),g[f+c]=v}else for(var c=0;c<i;++c)g[f+c]=a[c];return n!==null&&n.push(P,o),o},argPackAdvance:R,readValueFromPointer:tr,destructorFunction(n){P(n)}})},Lr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,et=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&Z[n];)++n;if(t=n<<1,t-r>32&&Lr)return Lr.decode(g.subarray(r,t));for(var i="",s=0;!(s>=e/2);++s){var o=D[r+s*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},tt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,s=0;s<i;++s){var o=r.charCodeAt(s);D[e>>1]=o,e+=2}return D[e>>1]=0,e-a},nt=r=>r.length*2,at=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},it=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(x[e>>2]=o,e+=4,e+4>i)break}return x[e>>2]=0,e-a},ot=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},st=(r,e,t)=>{t=h(t);var n,a,i,s;e===2?(n=et,a=tt,s=nt,i=o=>Z[o>>1]):e===4&&(n=at,a=it,s=ot,i=o=>d[o>>2]),E(r,{name:t,fromWireType:o=>{for(var f=d[o>>2],c,v=o+4,l=0;l<=f;++l){var _=o+4+l*e;if(l==f||i(_)==0){var m=_-v,U=n(v,m);c===void 0?c=U:(c+="\0",c+=U),v=_+e}}return P(o),c},toWireType:(o,f)=>{typeof f!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var c=s(f),v=hr(4+c+e);return d[v>>2]=c/e,a(f,v+4,c+e),o!==null&&o.push(P,v),v},argPackAdvance:R,readValueFromPointer:tr,destructorFunction(o){P(o)}})},ut=(r,e,t,n,a,i)=>{er[r]={name:h(e),rawConstructor:q(t,n),rawDestructor:q(a,i),fields:[]}},ft=(r,e,t,n,a,i,s,o,f,c)=>{er[r].fields.push({fieldName:h(e),getterReturnType:t,getter:q(n,a),getterContext:i,setterArgumentType:s,setter:q(o,f),setterContext:c})},ct=(r,e)=>{e=h(e),E(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},gr=[],vt=(r,e,t,n)=>(r=gr[r],e=j.toValue(e),r(null,e,t,n)),lt={},dt=r=>{var e=lt[r];return e===void 0?h(r):e},qr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},_t=r=>r===0?j.toHandle(qr()):(r=dt(r),j.toHandle(qr()[r])),pt=r=>{var e=gr.length;return gr.push(r),e},gt=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Br(d[e+n*4>>2],"parameter "+n);return t},ht=Reflect.construct,mt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(d[e>>2]=j.toHandle(n)),a},yt=(r,e,t)=>{var n=gt(r,e),a=n.shift();r--;var i=new Array(r),s=(f,c,v,l)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(l+_),_+=n[m].argPackAdvance;var U=t===1?ht(c,i):c.apply(f,i);return mt(a,v,U)},o=`methodCaller<(${n.map(f=>f.name).join(", ")}) => ${a.name}>`;return pt(ar(o,s))},bt=r=>{r>9&&(F[r+1]+=1)},wt=r=>{var e=j.toValue(r);dr(e),pr(r)},Tt=()=>{fr("")},$t=(r,e,t)=>g.copyWithin(r,e,e+t),At=()=>2147483648,Et=r=>{var e=rr.buffer,t=(r-e.byteLength+65535)/65536;try{return rr.grow(t),Rr(),1}catch{}},Ct=r=>{var e=g.length;r>>>=0;var t=At();if(r>t)return!1;for(var n=(f,c)=>f+(c-f%c)%c,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var s=Math.min(t,n(Math.max(r,i),65536)),o=Et(s);if(o)return!0}return!1},Rt=r=>r;Ir=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Te(),xr=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Ce(),Xr=u.UnboundTypeError=Be(Error,"UnboundTypeError");var Ft={r:de,q:_e,g:ge,d:he,k:me,a:ye,i:pe,M:be,C:we,H:Ae,G:Fe,K:ke,b:Se,v:Me,L:Ze,h:qe,e:Ge,u:rt,p:st,w:ut,N:ft,I:ct,z:vt,P:pr,B:_t,A:yt,x:bt,Q:wt,s:Tt,F:$t,E:Ct,y:Mt,c:Pt,l:It,n:Ut,o:Ot,f:Wt,t:xt,m:Dt,D:St,J:kt,j:jt,O:Rt},p=le(),hr=u._malloc=r=>(hr=u._malloc=p.T)(r),P=u._free=r=>(P=u._free=p.U)(r),Gr=r=>(Gr=p.W)(r),w=(r,e)=>(w=p.X)(r,e),G=r=>(G=p.Y)(r),T=()=>(T=p.Z)(),$=r=>($=p._)(r),Kr=r=>(Kr=p.$)(r),Jr=r=>(Jr=p.aa)(r),Qr=(r,e,t)=>(Qr=p.ba)(r,e,t),Yr=r=>(Yr=p.ca)(r);function Pt(r,e){var t=T();try{return b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function Wt(r,e){var t=T();try{b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function kt(r,e,t,n,a,i){var s=T();try{b(r)(e,t,n,a,i)}catch(o){if($(s),o!==o+0)throw o;w(1,0)}}function St(r,e,t,n,a){var i=T();try{b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function Ut(r,e,t,n){var a=T();try{return b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function Mt(r,e,t,n,a){var i=T();try{return b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function It(r,e,t){var n=T();try{return b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}function Ot(r){var e=T();try{b(r)()}catch(t){if($(e),t!==t+0)throw t;w(1,0)}}function jt(r,e,t,n,a,i,s,o,f,c,v){var l=T();try{b(r)(e,t,n,a,i,s,o,f,c,v)}catch(_){if($(l),_!==_+0)throw _;w(1,0)}}function Dt(r,e,t,n){var a=T();try{b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function xt(r,e,t){var n=T();try{b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}var or;L=function r(){or||zr(),or||(L=r)};function zr(){if(M>0||(ee(),M>0))return;function r(){or||(or=!0,u.calledRun=!0,!Ar&&(te(),br(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),ne()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return zr(),Q.ready}})();function Ht(k){return W.getZXingModuleWithFactory(yr,k)}function Bt(k){return W.setZXingModuleOverridesWithFactory(yr,k)}async function Nt(k,Q){return W.writeBarcodeToImageFileWithFactory(yr,k,Q)}exports.barcodeFormats=W.barcodeFormats;exports.characterSets=W.characterSets;exports.defaultEncodeHints=W.defaultWriterOptions;exports.defaultWriterOptions=W.defaultWriterOptions;exports.purgeZXingModule=W.purgeZXingModule;exports.writeInputEccLevels=W.writeInputEccLevels;exports.getZXingModule=Ht;exports.setZXingModuleOverrides=Bt;exports.writeBarcodeToImageFile=Nt;
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../core-KsT7VSRf.cjs");var yr=(()=>{var S=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(J={}){var re;var u=J,br,Q;u.ready=new Promise((r,e)=>{br=r,Q=e});var wr=Object.assign({},u),Tr=typeof window=="object",$r=typeof Bun<"u",ee=typeof((re=globalThis.WebAssembly)==null?void 0:re.instantiate)=="function",z=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var A="";function te(r){return u.locateFile?u.locateFile(r,A):A+r}var ur;(Tr||z||$r)&&(z?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),S&&(A=S),A.startsWith("blob:")?A="":A=A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),z&&(ur=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),u.print||console.log.bind(console);var N=u.printErr||console.error.bind(console);Object.assign(u,wr),wr=null,u.arguments&&u.arguments,u.thisProgram&&u.thisProgram,u.quit&&u.quit;var X;u.wasmBinary&&(X=u.wasmBinary),typeof WebAssembly!="object"&&fr("no native wasm support detected");var rr,Ar=!1,k,g,D,Z,V,d,Er,Rr;function Cr(){var r=rr.buffer;u.HEAP8=k=new Int8Array(r),u.HEAP16=D=new Int16Array(r),u.HEAPU8=g=new Uint8Array(r),u.HEAPU16=Z=new Uint16Array(r),u.HEAP32=V=new Int32Array(r),u.HEAPU32=d=new Uint32Array(r),u.HEAPF32=Er=new Float32Array(r),u.HEAPF64=Rr=new Float64Array(r)}var Fr=[],Pr=[],Wr=[];function ne(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)oe(u.preRun.shift());cr(Fr)}function ae(){cr(Pr)}function ie(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)ue(u.postRun.shift());cr(Wr)}function oe(r){Fr.unshift(r)}function se(r){Pr.unshift(r)}function ue(r){Wr.unshift(r)}var M=0,L=null;function fe(r){var e;M++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M)}function ce(r){var e;if(M--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,M),M==0&&L){var t=L;L=null,t()}}function fr(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",N(r),Ar=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw Q(t),t}var ve="data:application/octet-stream;base64,",Sr=r=>r.startsWith(ve),x;x="zxing_writer.wasm",Sr(x)||(x=te(x));function kr(r){if(r==x&&X)return new Uint8Array(X);if(ur)return ur(r);throw"both async and sync fetching of the wasm failed"}function le(r){return!X&&(Tr||z||$r||ee)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>kr(r)):Promise.resolve().then(()=>kr(r))}function Ur(r,e,t){return le(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{N(`failed to asynchronously prepare wasm: ${n}`),fr(n)})}function de(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Sr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(s){return N(`wasm streaming compile failed: ${s}`),N("falling back to ArrayBuffer instantiation"),Ur(e,t,n)})}):Ur(e,t,n)}function _e(){var r={a:Wt};function e(n,a){return p=n.exports,rr=p.R,Cr(),Nr=p.V,se(p.S),ce(),p}fe();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){N(`Module.instantiateWasm callback failed with error: ${n}`),Q(n)}return de(X,x,r,t).catch(Q),{}}var cr=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Mr=[],pe=r=>{var e=new vr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),Mr.push(e),Yr(e.excPtr),e.get_exception_ptr()},I=0,ge=()=>{w(0,0);var r=Mr.pop();Kr(r.excPtr),I=0};class vr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){d[this.ptr+4>>2]=e}get_type(){return d[this.ptr+4>>2]}set_destructor(e){d[this.ptr+8>>2]=e}get_destructor(){return d[this.ptr+8>>2]}set_caught(e){e=e?1:0,k[this.ptr+12]=e}get_caught(){return k[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,k[this.ptr+13]=e}get_rethrown(){return k[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){d[this.ptr+16>>2]=e}get_adjusted_ptr(){return d[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return d[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var he=r=>{throw I||(I=r),I},lr=r=>{var e=I;if(!e)return G(0),0;var t=new vr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return G(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var s=t.ptr+16;if(Jr(i,n,s))return G(i),e}return G(n),e},me=()=>lr([]),ye=r=>lr([r]),be=(r,e)=>lr([r,e]),we=(r,e,t)=>{var n=new vr(r);throw n.init(e,t),I=r,I},er={},dr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function tr(r){return this.fromWireType(d[r>>2])}var H={},O={},nr={},Ir,Or=r=>{throw new Ir(r)},jr=(r,e,t)=>{r.forEach(function(o){nr[o]=e});function n(o){var f=t(o);f.length!==r.length&&Or("Mismatched type converter count");for(var c=0;c<r.length;++c)E(r[c],f[c])}var a=new Array(e.length),i=[],s=0;e.forEach((o,f)=>{O.hasOwnProperty(o)?a[f]=O[o]:(i.push(o),H.hasOwnProperty(o)||(H[o]=[]),H[o].push(()=>{a[f]=O[o],++s,s===i.length&&n(a)}))}),i.length===0&&n(a)},Te=r=>{var e=er[r];delete er[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(s=>s.getterReturnType).concat(a.map(s=>s.setterArgumentType));jr([r],i,s=>{var o={};return a.forEach((f,c)=>{var v=f.fieldName,l=s[c],_=f.getter,m=f.getterContext,U=s[c+a.length],K=f.setter,R=f.setterContext;o[v]={read:Y=>l.fromWireType(_(m,Y)),write:(Y,mr)=>{var sr=[];K(R,Y,U.toWireType(sr,mr)),dr(sr)}}}),[{name:e.name,fromWireType:f=>{var c={};for(var v in o)c[v]=o[v].read(f);return n(f),c},toWireType:(f,c)=>{for(var v in o)if(!(v in c))throw new TypeError(`Missing field: "${v}"`);var l=t();for(v in o)o[v].write(l,c[v]);return f!==null&&f.push(n,l),l},argPackAdvance:C,readValueFromPointer:tr,destructorFunction:n}]})},$e=(r,e,t,n,a)=>{},Ae=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Dr=r},Dr,h=r=>{for(var e="",t=r;g[t];)e+=Dr[g[t++]];return e},Vr,y=r=>{throw new Vr(r)};function Ee(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),O.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(O[r]=e,delete nr[r],H.hasOwnProperty(r)){var a=H[r];delete H[r],a.forEach(i=>i())}}function E(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ee(r,e,t)}var C=8,Re=(r,e,t,n)=>{e=h(e),E(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:C,readValueFromPointer:function(a){return this.fromWireType(g[a])},destructorFunction:null})},_r=[],F=[],pr=r=>{r>9&&--F[r+1]===0&&(F[r]=void 0,_r.push(r))},Ce=()=>F.length/2-5-_r.length,Fe=()=>{F.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Ce},j={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),F[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=_r.pop()||F.length;return F[e]=r,F[e+1]=1,e}}}},Pe={name:"emscripten::val",fromWireType:r=>{var e=j.toValue(r);return pr(r),e},toWireType:(r,e)=>j.toHandle(e),argPackAdvance:C,readValueFromPointer:tr,destructorFunction:null},We=r=>E(r,Pe),Se=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},xr=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Se(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},ke=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(k[n])}:function(n){return this.fromWireType(g[n])};case 2:return t?function(n){return this.fromWireType(D[n>>1])}:function(n){return this.fromWireType(Z[n>>1])};case 4:return t?function(n){return this.fromWireType(V[n>>2])}:function(n){return this.fromWireType(d[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ue=(r,e,t,n)=>{e=h(e);function a(){}a.values={},E(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,s)=>s.value,argPackAdvance:C,readValueFromPointer:ke(e,t,n),destructorFunction:null}),xr(e,a)},ar=(r,e)=>Object.defineProperty(e,"name",{value:r}),Hr=r=>{var e=Gr(r),t=h(e);return P(e),t},Br=(r,e)=>{var t=O[r];return t===void 0&&y(`${e} has unknown type ${Hr(r)}`),t},Me=(r,e,t)=>{var n=Br(r,"enum");e=h(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ar(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ie=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Er[t>>2])};case 8:return function(t){return this.fromWireType(Rr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Oe=(r,e,t)=>{e=h(e),E(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:C,readValueFromPointer:Ie(e,t),destructorFunction:null})};function je(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function De(r,e,t,n,a,i){var s=e.length;s<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,f=je(e),c=e[0].name!=="void",v=s-2,l=new Array(v),_=[],m=[],U=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var K;_.length=o?2:1,_[0]=a,o&&(K=e[1].toWireType(m,this),_[1]=K);for(var R=0;R<v;++R)l[R]=e[R+2].toWireType(m,R<0||arguments.length<=R?void 0:arguments[R]),_.push(l[R]);var Y=n(..._);function mr(sr){if(f)dr(m);else for(var B=o?1:2;B<e.length;B++){var Bt=B===1?K:l[B-2];e[B].destructorFunction!==null&&e[B].destructorFunction(Bt)}if(c)return e[0].fromWireType(sr)}return mr(Y)};return ar(r,U)}var Ve=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(d[e+n*4>>2]);return t},xe=(r,e,t)=>{u.hasOwnProperty(r)||Or("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},He=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},ir=[],Nr,b=r=>{var e=ir[r];return e||(r>=ir.length&&(ir.length=r+1),ir[r]=e=Nr.get(r)),e},Be=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return He(r,e,t);var n=b(e)(...t);return n},Ne=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return Be(r,e,n)},q=(r,e)=>{r=h(r);function t(){return r.includes("j")?Ne(r,e):b(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Xe=(r,e)=>{var t=ar(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Xr,Ze=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!O[i]){if(nr[i]){nr[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Xr(`${r}: `+t.map(Hr).join([", "]))},Le=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},qe=(r,e,t,n,a,i,s)=>{var o=Ve(e,t);r=h(r),r=Le(r),a=q(n,a),xr(r,function(){Ze(`Cannot call ${r} due to unbound types`,o)},e-1),jr([],o,f=>{var c=[f[0],null].concat(f.slice(1));return xe(r,De(r,c,null,a,i),e-1),[]})},Ge=(r,e,t)=>{switch(e){case 1:return t?n=>k[n]:n=>g[n];case 2:return t?n=>D[n>>1]:n=>Z[n>>1];case 4:return t?n=>V[n>>2]:n=>d[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Ke=(r,e,t,n,a)=>{e=h(e);var i=v=>v;if(n===0){var s=32-8*t;i=v=>v<<s>>>s}var o=e.includes("unsigned"),f=(v,l)=>{},c;o?c=function(v,l){return f(l,this.name),l>>>0}:c=function(v,l){return f(l,this.name),l},E(r,{name:e,fromWireType:i,toWireType:c,argPackAdvance:C,readValueFromPointer:Ge(e,t,n!==0),destructorFunction:null})},Ye=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(s){var o=d[s>>2],f=d[s+4>>2];return new a(k.buffer,f,o)}t=h(t),E(r,{name:t,fromWireType:i,argPackAdvance:C,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Je=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},Qe=(r,e,t)=>Je(r,g,e,t),ze=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Zr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,rt=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Zr)return Zr.decode(r.subarray(e,a));for(var i="";e<a;){var s=r[e++];if(!(s&128)){i+=String.fromCharCode(s);continue}var o=r[e++]&63;if((s&224)==192){i+=String.fromCharCode((s&31)<<6|o);continue}var f=r[e++]&63;if((s&240)==224?s=(s&15)<<12|o<<6|f:s=(s&7)<<18|o<<12|f<<6|r[e++]&63,s<65536)i+=String.fromCharCode(s);else{var c=s-65536;i+=String.fromCharCode(55296|c>>10,56320|c&1023)}}return i},et=(r,e)=>r?rt(g,r,e):"",tt=(r,e)=>{e=h(e);var t=e==="std::string";E(r,{name:e,fromWireType(n){var a=d[n>>2],i=n+4,s;if(t)for(var o=i,f=0;f<=a;++f){var c=i+f;if(f==a||g[c]==0){var v=c-o,l=et(o,v);s===void 0?s=l:(s+="\0",s+=l),o=c+1}}else{for(var _=new Array(a),f=0;f<a;++f)_[f]=String.fromCharCode(g[i+f]);s=_.join("")}return P(n),s},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,s=typeof a=="string";s||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&s?i=ze(a):i=a.length;var o=hr(4+i+1),f=o+4;if(d[o>>2]=i,t&&s)Qe(a,f,i+1);else if(s)for(var c=0;c<i;++c){var v=a.charCodeAt(c);v>255&&(P(f),y("String has UTF-16 code units that do not fit in 8 bits")),g[f+c]=v}else for(var c=0;c<i;++c)g[f+c]=a[c];return n!==null&&n.push(P,o),o},argPackAdvance:C,readValueFromPointer:tr,destructorFunction(n){P(n)}})},Lr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,nt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&Z[n];)++n;if(t=n<<1,t-r>32&&Lr)return Lr.decode(g.subarray(r,t));for(var i="",s=0;!(s>=e/2);++s){var o=D[r+s*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},at=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,s=0;s<i;++s){var o=r.charCodeAt(s);D[e>>1]=o,e+=2}return D[e>>1]=0,e-a},it=r=>r.length*2,ot=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=V[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},st=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,s=0;s<r.length;++s){var o=r.charCodeAt(s);if(o>=55296&&o<=57343){var f=r.charCodeAt(++s);o=65536+((o&1023)<<10)|f&1023}if(V[e>>2]=o,e+=4,e+4>i)break}return V[e>>2]=0,e-a},ut=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},ft=(r,e,t)=>{t=h(t);var n,a,i,s;e===2?(n=nt,a=at,s=it,i=o=>Z[o>>1]):e===4&&(n=ot,a=st,s=ut,i=o=>d[o>>2]),E(r,{name:t,fromWireType:o=>{for(var f=d[o>>2],c,v=o+4,l=0;l<=f;++l){var _=o+4+l*e;if(l==f||i(_)==0){var m=_-v,U=n(v,m);c===void 0?c=U:(c+="\0",c+=U),v=_+e}}return P(o),c},toWireType:(o,f)=>{typeof f!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var c=s(f),v=hr(4+c+e);return d[v>>2]=c/e,a(f,v+4,c+e),o!==null&&o.push(P,v),v},argPackAdvance:C,readValueFromPointer:tr,destructorFunction(o){P(o)}})},ct=(r,e,t,n,a,i)=>{er[r]={name:h(e),rawConstructor:q(t,n),rawDestructor:q(a,i),fields:[]}},vt=(r,e,t,n,a,i,s,o,f,c)=>{er[r].fields.push({fieldName:h(e),getterReturnType:t,getter:q(n,a),getterContext:i,setterArgumentType:s,setter:q(o,f),setterContext:c})},lt=(r,e)=>{e=h(e),E(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},gr=[],dt=(r,e,t,n)=>(r=gr[r],e=j.toValue(e),r(null,e,t,n)),_t={},pt=r=>{var e=_t[r];return e===void 0?h(r):e},qr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},gt=r=>r===0?j.toHandle(qr()):(r=pt(r),j.toHandle(qr()[r])),ht=r=>{var e=gr.length;return gr.push(r),e},mt=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Br(d[e+n*4>>2],"parameter "+n);return t},yt=Reflect.construct,bt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(d[e>>2]=j.toHandle(n)),a},wt=(r,e,t)=>{var n=mt(r,e),a=n.shift();r--;var i=new Array(r),s=(f,c,v,l)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(l+_),_+=n[m].argPackAdvance;var U=t===1?yt(c,i):c.apply(f,i);return bt(a,v,U)},o=`methodCaller<(${n.map(f=>f.name).join(", ")}) => ${a.name}>`;return ht(ar(o,s))},Tt=r=>{r>9&&(F[r+1]+=1)},$t=r=>{var e=j.toValue(r);dr(e),pr(r)},At=()=>{fr("")},Et=(r,e,t)=>g.copyWithin(r,e,e+t),Rt=()=>2147483648,Ct=r=>{var e=rr.buffer,t=(r-e.byteLength+65535)/65536;try{return rr.grow(t),Cr(),1}catch{}},Ft=r=>{var e=g.length;r>>>=0;var t=Rt();if(r>t)return!1;for(var n=(f,c)=>f+(c-f%c)%c,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var s=Math.min(t,n(Math.max(r,i),65536)),o=Ct(s);if(o)return!0}return!1},Pt=r=>r;Ir=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Ae(),Vr=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Fe(),Xr=u.UnboundTypeError=Xe(Error,"UnboundTypeError");var Wt={r:pe,q:ge,g:me,d:ye,k:be,a:we,i:he,M:Te,C:$e,H:Re,G:We,K:Ue,b:Me,v:Oe,L:qe,h:Ke,e:Ye,u:tt,p:ft,w:ct,N:vt,I:lt,z:dt,P:pr,B:gt,A:wt,x:Tt,Q:$t,s:At,F:Et,E:Ft,y:Ot,c:St,l:jt,n:It,o:Dt,f:kt,t:Ht,m:xt,D:Mt,J:Ut,j:Vt,O:Pt},p=_e(),hr=u._malloc=r=>(hr=u._malloc=p.T)(r),P=u._free=r=>(P=u._free=p.U)(r),Gr=r=>(Gr=p.W)(r),w=(r,e)=>(w=p.X)(r,e),G=r=>(G=p.Y)(r),T=()=>(T=p.Z)(),$=r=>($=p._)(r),Kr=r=>(Kr=p.$)(r),Yr=r=>(Yr=p.aa)(r),Jr=(r,e,t)=>(Jr=p.ba)(r,e,t),Qr=r=>(Qr=p.ca)(r);function St(r,e){var t=T();try{return b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function kt(r,e){var t=T();try{b(r)(e)}catch(n){if($(t),n!==n+0)throw n;w(1,0)}}function Ut(r,e,t,n,a,i){var s=T();try{b(r)(e,t,n,a,i)}catch(o){if($(s),o!==o+0)throw o;w(1,0)}}function Mt(r,e,t,n,a){var i=T();try{b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function It(r,e,t,n){var a=T();try{return b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function Ot(r,e,t,n,a){var i=T();try{return b(r)(e,t,n,a)}catch(s){if($(i),s!==s+0)throw s;w(1,0)}}function jt(r,e,t){var n=T();try{return b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}function Dt(r){var e=T();try{b(r)()}catch(t){if($(e),t!==t+0)throw t;w(1,0)}}function Vt(r,e,t,n,a,i,s,o,f,c,v){var l=T();try{b(r)(e,t,n,a,i,s,o,f,c,v)}catch(_){if($(l),_!==_+0)throw _;w(1,0)}}function xt(r,e,t,n){var a=T();try{b(r)(e,t,n)}catch(i){if($(a),i!==i+0)throw i;w(1,0)}}function Ht(r,e,t){var n=T();try{b(r)(e,t)}catch(a){if($(n),a!==a+0)throw a;w(1,0)}}var or;L=function r(){or||zr(),or||(L=r)};function zr(){if(M>0||(ne(),M>0))return;function r(){or||(or=!0,u.calledRun=!0,!Ar&&(ae(),br(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),ie()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return zr(),J.ready}})();function Nt(S){return W.getZXingModuleWithFactory(yr,S)}function Xt(S){return W.setZXingModuleOverridesWithFactory(yr,S)}async function Zt(S,J){return W.writeBarcodeToImageFileWithFactory(yr,S,J)}exports.barcodeFormats=W.barcodeFormats;exports.characterSets=W.characterSets;exports.defaultEncodeHints=W.defaultWriterOptions;exports.defaultWriterOptions=W.defaultWriterOptions;exports.purgeZXingModule=W.purgeZXingModule;exports.writeInputEccLevels=W.writeInputEccLevels;exports.getZXingModule=Nt;exports.setZXingModuleOverrides=Xt;exports.writeBarcodeToImageFile=Zt;

@@ -1,6 +0,7 @@

import { g as _a, s as ga, r as ya, a as ma, w as $a } from "../core-aa7d7gNw.js";
import { b as Da, c as Wa, e as Oa, f as ka, d as ja, j as Ma, d as Ia, j as Ua, h as Ha, p as xa, i as Va, t as Ya, k as Ba } from "../core-aa7d7gNw.js";
import { g as ya, s as ma, r as $a, a as ba, w as wa } from "../core-2TjCkkNo.js";
import { b as Oa, c as ka, e as ja, f as Ma, d as Ia, j as Ua, d as Ha, j as xa, h as Va, p as Ya, i as Ba, t as Na, k as La } from "../core-2TjCkkNo.js";
var fr = (() => {
var O = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
return function(B = {}) {
var He;
var l = B, qr, cr;

@@ -10,6 +11,6 @@ l.ready = new Promise((e, r) => {

});
var Jr = Object.assign({}, l), Kr = "./this.program", Qr = typeof window == "object", re = typeof Bun < "u", vr = typeof importScripts == "function";
var Jr = Object.assign({}, l), Kr = "./this.program", Qr = typeof window == "object", re = typeof Bun < "u", Be = typeof ((He = globalThis.WebAssembly) == null ? void 0 : He.instantiate) == "function", vr = typeof importScripts == "function";
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
var M = "";
function Ye(e) {
function Ne(e) {
return l.locateFile ? l.locateFile(e, M) : M + e;

@@ -22,3 +23,3 @@ }

}));
var Be = l.print || console.log.bind(console), X = l.printErr || console.error.bind(console);
var Le = l.print || console.log.bind(console), X = l.printErr || console.error.bind(console);
Object.assign(l, Jr), Jr = null, l.arguments && l.arguments, l.thisProgram && (Kr = l.thisProgram), l.quit && l.quit;

@@ -33,32 +34,32 @@ var Q;

var ie = [], oe = [], se = [];
function Ne() {
function ze() {
if (l.preRun)
for (typeof l.preRun == "function" && (l.preRun = [l.preRun]); l.preRun.length; )
Xe(l.preRun.shift());
Ze(l.preRun.shift());
Dr(ie);
}
function Le() {
function Xe() {
Dr(oe);
}
function ze() {
function Ge() {
if (l.postRun)
for (typeof l.postRun == "function" && (l.postRun = [l.postRun]); l.postRun.length; )
Ze(l.postRun.shift());
Je(l.postRun.shift());
Dr(se);
}
function Xe(e) {
function Ze(e) {
ie.unshift(e);
}
function Ge(e) {
function qe(e) {
oe.unshift(e);
}
function Ze(e) {
function Je(e) {
se.unshift(e);
}
var N = 0, er = null;
function qe(e) {
function Ke(e) {
var r;
N++, (r = l.monitorRunDependencies) === null || r === void 0 || r.call(l, N);
}
function Je(e) {
function Qe(e) {
var r;

@@ -76,4 +77,4 @@ if (N--, (r = l.monitorRunDependencies) === null || r === void 0 || r.call(l, N), N == 0 && er) {

}
var Ke = "data:application/octet-stream;base64,", ue = (e) => e.startsWith(Ke), Z;
Z = "zxing_full.wasm", ue(Z) || (Z = Ye(Z));
var rt = "data:application/octet-stream;base64,", ue = (e) => e.startsWith(rt), Z;
Z = "zxing_full.wasm", ue(Z) || (Z = Ne(Z));
function le(e) {

@@ -86,4 +87,4 @@ if (e == Z && Q)

}
function Qe(e) {
return !Q && (Qr || vr || re) && typeof fetch == "function" ? fetch(e, {
function et(e) {
return !Q && (Qr || vr || re || Be) && typeof fetch == "function" ? fetch(e, {
credentials: "same-origin"

@@ -97,7 +98,7 @@ }).then((r) => {

function fe(e, r, t) {
return Qe(e).then((n) => WebAssembly.instantiate(n, r)).then(t, (n) => {
return et(e).then((n) => WebAssembly.instantiate(n, r)).then(t, (n) => {
X(`failed to asynchronously prepare wasm: ${n}`), pr(n);
});
}
function rt(e, r, t, n) {
function tt(e, r, t, n) {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !ue(r) && typeof fetch == "function" ? fetch(r, {

@@ -112,10 +113,10 @@ credentials: "same-origin"

}
function et() {
function nt() {
var e = {
a: Xn
a: Zn
};
function r(n, a) {
return P = n.exports, dr = P.na, ae(), me = P.ra, Ge(P.oa), Je(), P;
return P = n.exports, dr = P.na, ae(), me = P.ra, qe(P.oa), Qe(), P;
}
qe();
Ke();
function t(n) {

@@ -130,3 +131,3 @@ r(n.instance);

}
return rt(Q, Z, e, t).catch(cr), {};
return tt(Q, Z, e, t).catch(cr), {};
}

@@ -138,6 +139,6 @@ var Dr = (e) => {

l.noExitRuntime;
var hr = [], _r = 0, tt = (e) => {
var hr = [], _r = 0, at = (e) => {
var r = new Wr(e);
return r.get_caught() || (r.set_caught(!0), _r--), r.set_rethrown(!1), hr.push(r), ke(r.excPtr), r.get_exception_ptr();
}, H = 0, nt = () => {
}, H = 0, it = () => {
m(0, 0);

@@ -192,3 +193,3 @@ var e = hr.pop();

}
var at = (e) => {
var ot = (e) => {
throw H || (H = e), H;

@@ -213,3 +214,3 @@ }, Or = (e) => {

return lr(n), r;
}, it = () => Or([]), ot = (e) => Or([e]), st = (e, r) => Or([e, r]), ut = () => {
}, st = () => Or([]), ut = (e) => Or([e]), lt = (e, r) => Or([e, r]), ft = () => {
var e = hr.pop();

@@ -219,6 +220,6 @@ e || pr("no exception to throw");

throw e.get_rethrown() || (hr.push(e), e.set_rethrown(!0), e.set_caught(!1), _r++), H = r, H;
}, lt = (e, r, t) => {
}, ct = (e, r, t) => {
var n = new Wr(e);
throw n.init(r, t), H = e, _r++, H;
}, ft = () => _r, gr = {}, kr = (e) => {
}, vt = () => _r, gr = {}, kr = (e) => {
for (; e.length; ) {

@@ -250,3 +251,3 @@ var r = e.pop(), t = e.pop();

}), i.length === 0 && n(a);
}, ct = (e) => {
}, dt = (e) => {
var r = gr[e];

@@ -260,6 +261,6 @@ delete gr[e];

s[v] = {
read: (E) => h.fromWireType(p(_, E)),
write: (E, f) => {
read: (F) => h.fromWireType(p(_, F)),
write: (F, f) => {
var d = [];
W(T, E, C.toWireType(d, f)), kr(d);
W(T, F, C.toWireType(d, f)), kr(d);
}

@@ -289,4 +290,4 @@ };

});
}, vt = (e, r, t, n, a) => {
}, dt = () => {
}, pt = (e, r, t, n, a) => {
}, ht = () => {
for (var e = new Array(256), r = 0; r < 256; ++r)

@@ -302,3 +303,3 @@ e[r] = String.fromCharCode(r);

};
function pt(e, r) {
function _t(e, r) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};

@@ -320,5 +321,5 @@ var n = r.name;

throw new TypeError("registerType registeredInstance requires argPackAdvance");
return pt(e, r, t);
return _t(e, r, t);
}
var U = 8, ht = (e, r, t, n) => {
var U = 8, gt = (e, r, t, n) => {
r = S(r), I(e, {

@@ -338,3 +339,3 @@ name: r,

});
}, _t = (e) => ({
}, yt = (e) => ({
count: e.count,

@@ -353,3 +354,3 @@ deleteScheduled: e.deleteScheduled,

}, Mr = !1, de = (e) => {
}, gt = (e) => {
}, mt = (e) => {
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);

@@ -359,3 +360,3 @@ }, pe = (e) => {

var r = e.count.value === 0;
r && gt(e);
r && mt(e);
}, he = (e, r, t) => {

@@ -368,3 +369,3 @@ if (r === t)

return n === null ? null : t.downcast(n);
}, _e = {}, yt = () => Object.keys(ir).length, mt = () => {
}, _e = {}, $t = () => Object.keys(ir).length, bt = () => {
var e = [];

@@ -379,11 +380,11 @@ for (var r in ir)

}
}, ar, $t = (e) => {
}, ar, wt = (e) => {
ar = e, nr.length && ar && ar(Ir);
}, bt = () => {
l.getInheritedInstanceCount = yt, l.getLiveInheritedInstances = mt, l.flushPendingDeletes = Ir, l.setDelayFunction = $t;
}, ir = {}, wt = (e, r) => {
}, Tt = () => {
l.getInheritedInstanceCount = $t, l.getLiveInheritedInstances = bt, l.flushPendingDeletes = Ir, l.setDelayFunction = wt;
}, ir = {}, Pt = (e, r) => {
for (r === void 0 && g("ptr should not be undefined"); e.baseClass; )
r = e.upcast(r), e = e.baseClass;
return r;
}, Tt = (e, r) => (r = wt(e, r), ir[r]), $r = (e, r) => {
}, Ct = (e, r) => (r = Pt(e, r), ir[r]), $r = (e, r) => {
(!r.ptrType || !r.ptr) && mr("makeClassHandle requires ptr and ptrType");

@@ -400,7 +401,7 @@ var t = !!r.smartPtrType, n = !!r.smartPtr;

};
function Pt(e) {
function At(e) {
var r = this.getPointee(e);
if (!r)
return this.destructor(e), null;
var t = Tt(this.registeredClass, r);
var t = Ct(this.registeredClass, r);
if (t !== void 0) {

@@ -450,3 +451,3 @@ if (t.$$.count.value === 0)

return r;
}, de = (r) => Mr.unregister(r), or(e)), Ct = () => {
}, de = (r) => Mr.unregister(r), or(e)), Et = () => {
Object.assign(br.prototype, {

@@ -469,3 +470,3 @@ isAliasOf(e) {

$$: {
value: _t(this.$$)
value: yt(this.$$)
}

@@ -501,3 +502,3 @@ }));

l.hasOwnProperty(e) ? ((t === void 0 || l[e].overloadTable !== void 0 && l[e].overloadTable[t] !== void 0) && g(`Cannot register public name '${e}' twice`), ge(l, e, e), l.hasOwnProperty(t) && g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), l[e].overloadTable[t] = r) : (l[e] = r, t !== void 0 && (l[e].numArguments = t));
}, At = 48, Ft = 57, Et = (e) => {
}, Ft = 48, St = 57, Rt = (e) => {
if (e === void 0)

@@ -507,5 +508,5 @@ return "_unknown";

var r = e.charCodeAt(0);
return r >= At && r <= Ft ? `_${e}` : e;
return r >= Ft && r <= St ? `_${e}` : e;
};
function St(e, r, t, n, a, i, o, s) {
function Dt(e, r, t, n, a, i, o, s) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];

@@ -518,3 +519,3 @@ }

};
function Rt(e, r) {
function Wt(e, r) {
if (r === null)

@@ -526,3 +527,3 @@ return this.isReference && g(`null is not a valid ${this.name}`), 0;

}
function Dt(e, r) {
function Ot(e, r) {
var t;

@@ -554,3 +555,3 @@ if (r === null)

}
function Wt(e, r) {
function kt(e, r) {
if (r === null)

@@ -562,3 +563,3 @@ return this.isReference && g(`null is not a valid ${this.name}`), 0;

}
var Ot = () => {
var jt = () => {
Object.assign(wr.prototype, {

@@ -574,11 +575,11 @@ getPointee(e) {

readValueFromPointer: tr,
fromWireType: Pt
fromWireType: At
});
};
function wr(e, r, t, n, a, i, o, s, u, c, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = u, this.rawShare = c, this.rawDestructor = v, !a && r.baseClass === void 0 ? n ? (this.toWireType = Rt, this.destructorFunction = null) : (this.toWireType = Wt, this.destructorFunction = null) : this.toWireType = Dt;
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = u, this.rawShare = c, this.rawDestructor = v, !a && r.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = kt, this.destructorFunction = null) : this.toWireType = Ot;
}
var ye = (e, r, t) => {
l.hasOwnProperty(e) || mr("Replacing nonexistant public symbol"), l[e].overloadTable !== void 0 && t !== void 0 ? l[e].overloadTable[t] = r : (l[e] = r, l[e].argCount = t);
}, kt = (e, r, t) => {
}, Mt = (e, r, t) => {
var n = l["dynCall_" + e];

@@ -589,20 +590,20 @@ return n(r, ...t);

return r || (e >= Tr.length && (Tr.length = e + 1), Tr[e] = r = me.get(e)), r;
}, jt = function(e, r) {
}, It = function(e, r) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
if (e.includes("j"))
return kt(e, r, t);
return Mt(e, r, t);
var n = $(r)(...t);
return n;
}, Mt = (e, r) => function() {
}, Ut = (e, r) => function() {
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
n[a] = arguments[a];
return jt(e, r, n);
return It(e, r, n);
}, j = (e, r) => {
e = S(e);
function t() {
return e.includes("j") ? Mt(e, r) : $(r);
return e.includes("j") ? Ut(e, r) : $(r);
}
var n = t();
return typeof n != "function" && g(`unknown function pointer with signature ${e}: ${r}`), n;
}, It = (e, r) => {
}, Ht = (e, r) => {
var t = sr(r, function(n) {

@@ -632,5 +633,5 @@ this.name = r, this.message = n;

throw r.forEach(a), new $e(`${e}: ` + t.map(be).join([", "]));
}, Ut = (e, r, t, n, a, i, o, s, u, c, v, h, p) => {
}, xt = (e, r, t, n, a, i, o, s, u, c, v, h, p) => {
v = S(v), i = j(a, i), s && (s = j(o, s)), c && (c = j(u, c)), p = j(h, p);
var _ = Et(v);
var _ = Rt(v);
Ur(_, function() {

@@ -642,3 +643,3 @@ Pr(`Cannot construct ${v} due to unbound types`, [n]);

n ? (W = C.registeredClass, T = W.instancePrototype) : T = br.prototype;
var E = sr(v, function() {
var F = sr(v, function() {
if (Object.getPrototypeOf(this) !== f)

@@ -648,24 +649,24 @@ throw new J("Use 'new' to construct " + v);

throw new J(v + " has no accessible constructor");
for (var xe = arguments.length, Er = new Array(xe), Sr = 0; Sr < xe; Sr++)
Er[Sr] = arguments[Sr];
var Ve = d.constructor_body[Er.length];
if (Ve === void 0)
throw new J(`Tried to invoke ctor of ${v} with invalid number of parameters (${Er.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Ve.apply(this, Er);
for (var Ve = arguments.length, Fr = new Array(Ve), Sr = 0; Sr < Ve; Sr++)
Fr[Sr] = arguments[Sr];
var Ye = d.constructor_body[Fr.length];
if (Ye === void 0)
throw new J(`Tried to invoke ctor of ${v} with invalid number of parameters (${Fr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Ye.apply(this, Fr);
}), f = Object.create(T, {
constructor: {
value: E
value: F
}
});
E.prototype = f;
var d = new St(v, E, f, p, W, i, s, c);
F.prototype = f;
var d = new Dt(v, F, f, p, W, i, s, c);
if (d.baseClass) {
var A, F;
(F = (A = d.baseClass).__derivedClasses) !== null && F !== void 0 || (A.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
var A, E;
(E = (A = d.baseClass).__derivedClasses) !== null && E !== void 0 || (A.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
}
var K = new wr(v, d, !0, !1, !1), Fr = new wr(v + "*", d, !1, !1, !1), He = new wr(v + " const*", d, !1, !0, !1);
var K = new wr(v, d, !0, !1, !1), Er = new wr(v + "*", d, !1, !1, !1), xe = new wr(v + " const*", d, !1, !0, !1);
return _e[e] = {
pointerType: Fr,
constPointerType: He
}, ye(_, E), [K, Fr, He];
pointerType: Er,
constPointerType: xe
}, ye(_, F), [K, Er, xe];
});

@@ -677,3 +678,3 @@ }, xr = (e, r) => {

};
function Ht(e) {
function Vt(e) {
for (var r = 1; r < e.length; ++r)

@@ -687,3 +688,3 @@ if (e[r] !== null && e[r].destructorFunction === void 0)

o < 2 && g("argTypes array size mismatch! Must at least get return value and 'this' types!");
var s = r[1] !== null && t !== null, u = Ht(r), c = r[0].name !== "void", v = o - 2, h = new Array(v), p = [], _ = [], C = function() {
var s = r[1] !== null && t !== null, u = Vt(r), c = r[0].name !== "void", v = o - 2, h = new Array(v), p = [], _ = [], C = function() {
arguments.length !== v && g(`function ${e} called with ${arguments.length} arguments, expected ${v}`), _.length = 0;

@@ -694,3 +695,3 @@ var W;

h[T] = r[T + 2].toWireType(_, T < 0 || arguments.length <= T ? void 0 : arguments[T]), p.push(h[T]);
var E = n(...p);
var F = n(...p);
function f(d) {

@@ -701,4 +702,4 @@ if (u)

for (var A = s ? 1 : 2; A < r.length; A++) {
var F = A === 1 ? W : h[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(F);
var E = A === 1 ? W : h[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(E);
}

@@ -708,7 +709,7 @@ if (c)

}
return f(E);
return f(F);
};
return sr(e, C);
}
var xt = (e, r, t, n, a, i) => {
var Yt = (e, r, t, n, a, i) => {
var o = xr(r, t);

@@ -728,3 +729,3 @@ a = j(n, a), z([], [e], (s) => {

return r !== -1 ? e.substr(0, r) : e;
}, Vt = (e, r, t, n, a, i, o, s, u) => {
}, Bt = (e, r, t, n, a, i, o, s, u) => {
var c = xr(t, n);

@@ -746,4 +747,4 @@ r = S(r), r = we(r), i = j(a, i), z([], [e], (v) => {

e > 9 && --x[e + 1] === 0 && (x[e] = void 0, Yr.push(e));
}, Yt = () => x.length / 2 - 5 - Yr.length, Bt = () => {
x.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), l.count_emval_handles = Yt;
}, Nt = () => x.length / 2 - 5 - Yr.length, Lt = () => {
x.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), l.count_emval_handles = Nt;
}, V = {

@@ -767,3 +768,3 @@ toValue: (e) => (e || g("Cannot use deleted val. handle = " + e), x[e]),

}
}, Nt = {
}, zt = {
name: "emscripten::val",

@@ -778,3 +779,3 @@ fromWireType: (e) => {

destructorFunction: null
}, Te = (e) => I(e, Nt), Lt = (e, r, t) => {
}, Te = (e) => I(e, zt), Xt = (e, r, t) => {
switch (r) {

@@ -802,3 +803,3 @@ case 1:

}
}, zt = (e, r, t, n) => {
}, Gt = (e, r, t, n) => {
r = S(r);

@@ -815,3 +816,3 @@ function a() {

argPackAdvance: U,
readValueFromPointer: Lt(r, t, n),
readValueFromPointer: Xt(r, t, n),
destructorFunction: null

@@ -822,3 +823,3 @@ }), Ur(r, a);

return t === void 0 && g(`${r} has unknown type ${be(e)}`), t;
}, Xt = (e, r, t) => {
}, Zt = (e, r, t) => {
var n = Nr(e, "enum");

@@ -841,3 +842,3 @@ r = S(r);

return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e;
}, Gt = (e, r) => {
}, qt = (e, r) => {
switch (r) {

@@ -855,3 +856,3 @@ case 4:

}
}, Zt = (e, r, t) => {
}, Jt = (e, r, t) => {
r = S(r), I(e, {

@@ -862,6 +863,6 @@ name: r,

argPackAdvance: U,
readValueFromPointer: Gt(r, t),
readValueFromPointer: qt(r, t),
destructorFunction: null
});
}, qt = (e, r, t, n, a, i, o) => {
}, Kt = (e, r, t, n, a, i, o) => {
var s = xr(r, t);

@@ -874,3 +875,3 @@ e = S(e), e = we(e), a = j(n, a), Ur(e, function() {

});
}, Jt = (e, r, t) => {
}, Qt = (e, r, t) => {
switch (r) {

@@ -886,3 +887,3 @@ case 1:

}
}, Kt = (e, r, t, n, a) => {
}, rn = (e, r, t, n, a) => {
r = S(r);

@@ -905,6 +906,6 @@ var i = (v) => v;

argPackAdvance: U,
readValueFromPointer: Jt(r, t, n !== 0),
readValueFromPointer: Qt(r, t, n !== 0),
destructorFunction: null
});
}, Qt = (e, r, t) => {
}, en = (e, r, t) => {
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[r];

@@ -923,3 +924,3 @@ function i(o) {

});
}, rn = (e, r) => {
}, tn = (e, r) => {
Te(e);

@@ -954,3 +955,3 @@ }, Pe = (e, r, t, n) => {

return r[t] = 0, t - a;
}, en = (e, r, t) => Pe(e, R, r, t), Ce = (e) => {
}, nn = (e, r, t) => Pe(e, R, r, t), Ce = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -961,3 +962,3 @@ var n = e.charCodeAt(t);

return r;
}, Ae = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Fe = (e, r, t) => {
}, Ae = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Ee = (e, r, t) => {
for (var n = r + t, a = r; e[a] && !(a >= n); )

@@ -987,3 +988,3 @@ ++a;

return i;
}, zr = (e, r) => e ? Fe(R, e, r) : "", tn = (e, r) => {
}, zr = (e, r) => e ? Ee(R, e, r) : "", an = (e, r) => {
r = S(r);

@@ -1016,3 +1017,3 @@ var t = r === "std::string";

if (y[s >> 2] = i, t && o)
en(a, u, i + 1);
nn(a, u, i + 1);
else if (o)

@@ -1034,7 +1035,7 @@ for (var c = 0; c < i; ++c) {

});
}, Ee = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, nn = (e, r) => {
}, Fe = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, on = (e, r) => {
for (var t = e, n = t >> 1, a = n + r / 2; !(n >= a) && rr[n]; )
++n;
if (t = n << 1, t - e > 32 && Ee)
return Ee.decode(R.subarray(e, t));
if (t = n << 1, t - e > 32 && Fe)
return Fe.decode(R.subarray(e, t));
for (var i = "", o = 0; !(o >= r / 2); ++o) {

@@ -1047,3 +1048,3 @@ var s = G[e + o * 2 >> 1];

return i;
}, an = (e, r, t) => {
}, sn = (e, r, t) => {
var n;

@@ -1058,3 +1059,3 @@ if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2)

return G[r >> 1] = 0, r - a;
}, on = (e) => e.length * 2, sn = (e, r) => {
}, un = (e) => e.length * 2, ln = (e, r) => {
for (var t = 0, n = ""; !(t >= r / 4); ) {

@@ -1071,3 +1072,3 @@ var a = D[e + t * 4 >> 2];

return n;
}, un = (e, r, t) => {
}, fn = (e, r, t) => {
var n;

@@ -1086,3 +1087,3 @@ if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4)

return D[r >> 2] = 0, r - a;
}, ln = (e) => {
}, cn = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -1093,6 +1094,6 @@ var n = e.charCodeAt(t);

return r;
}, fn = (e, r, t) => {
}, vn = (e, r, t) => {
t = S(t);
var n, a, i, o;
r === 2 ? (n = nn, a = an, o = on, i = (s) => rr[s >> 1]) : r === 4 && (n = sn, a = un, o = ln, i = (s) => y[s >> 2]), I(e, {
r === 2 ? (n = on, a = sn, o = un, i = (s) => rr[s >> 1]) : r === 4 && (n = ln, a = fn, o = cn, i = (s) => y[s >> 2]), I(e, {
name: t,

@@ -1120,3 +1121,3 @@ fromWireType: (s) => {

});
}, cn = (e, r, t, n, a, i) => {
}, dn = (e, r, t, n, a, i) => {
gr[e] = {

@@ -1128,3 +1129,3 @@ name: S(r),

};
}, vn = (e, r, t, n, a, i, o, s, u, c) => {
}, pn = (e, r, t, n, a, i, o, s, u, c) => {
gr[e].fields.push({

@@ -1139,3 +1140,3 @@ fieldName: S(r),

});
}, dn = (e, r) => {
}, hn = (e, r) => {
r = S(r), I(e, {

@@ -1150,4 +1151,4 @@ isVoid: !0,

});
}, Xr = [], pn = (e, r, t, n) => (e = Xr[e], r = V.toValue(r), e(null, r, t, n)), hn = {}, _n = (e) => {
var r = hn[e];
}, Xr = [], _n = (e, r, t, n) => (e = Xr[e], r = V.toValue(r), e(null, r, t, n)), gn = {}, yn = (e) => {
var r = gn[e];
return r === void 0 ? S(e) : r;

@@ -1165,14 +1166,14 @@ }, Se = () => {

throw Error("unable to get global object.");
}, gn = (e) => e === 0 ? V.toHandle(Se()) : (e = _n(e), V.toHandle(Se()[e])), yn = (e) => {
}, mn = (e) => e === 0 ? V.toHandle(Se()) : (e = yn(e), V.toHandle(Se()[e])), $n = (e) => {
var r = Xr.length;
return Xr.push(e), r;
}, mn = (e, r) => {
}, bn = (e, r) => {
for (var t = new Array(e), n = 0; n < e; ++n)
t[n] = Nr(y[r + n * 4 >> 2], "parameter " + n);
return t;
}, $n = Reflect.construct, bn = (e, r, t) => {
}, wn = Reflect.construct, Tn = (e, r, t) => {
var n = [], a = e.toWireType(n, t);
return n.length && (y[r >> 2] = V.toHandle(n)), a;
}, wn = (e, r, t) => {
var n = mn(e, r), a = n.shift();
}, Pn = (e, r, t) => {
var n = bn(e, r), a = n.shift();
e--;

@@ -1182,18 +1183,18 @@ var i = new Array(e), o = (u, c, v, h) => {

i[_] = n[_].readValueFromPointer(h + p), p += n[_].argPackAdvance;
var C = t === 1 ? $n(c, i) : c.apply(u, i);
return bn(a, v, C);
var C = t === 1 ? wn(c, i) : c.apply(u, i);
return Tn(a, v, C);
}, s = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${a.name}>`;
return yn(sr(s, o));
}, Tn = (e) => {
return $n(sr(s, o));
}, Cn = (e) => {
e > 9 && (x[e + 1] += 1);
}, Pn = (e) => {
}, An = (e) => {
var r = V.toValue(e);
kr(r), Br(e);
}, Cn = (e, r) => {
}, En = (e, r) => {
e = Nr(e, "_emval_take_value");
var t = e.readValueFromPointer(r);
return V.toHandle(t);
}, An = () => {
}, Fn = () => {
pr("");
}, Fn = (e, r, t) => R.copyWithin(e, r, r + t), En = () => 2147483648, Sn = (e) => {
}, Sn = (e, r, t) => R.copyWithin(e, r, r + t), Rn = () => 2147483648, Dn = (e) => {
var r = dr.buffer, t = (e - r.byteLength + 65535) / 65536;

@@ -1204,6 +1205,6 @@ try {

}
}, Rn = (e) => {
}, Wn = (e) => {
var r = R.length;
e >>>= 0;
var t = En();
var t = Rn();
if (e > t)

@@ -1214,3 +1215,3 @@ return !1;

i = Math.min(i, e + 100663296);
var o = Math.min(t, n(Math.max(e, i), 65536)), s = Sn(o);
var o = Math.min(t, n(Math.max(e, i), 65536)), s = Dn(o);
if (s)

@@ -1220,3 +1221,3 @@ return !0;

return !1;
}, Gr = {}, Dn = () => Kr || "./this.program", ur = () => {
}, Gr = {}, On = () => Kr || "./this.program", ur = () => {
if (!ur.strings) {

@@ -1230,3 +1231,3 @@ var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = {

LANG: e,
_: Dn()
_: On()
};

@@ -1241,13 +1242,13 @@ for (var t in Gr)

return ur.strings;
}, Wn = (e, r) => {
}, kn = (e, r) => {
for (var t = 0; t < e.length; ++t)
k[r++] = e.charCodeAt(t);
k[r] = 0;
}, On = (e, r) => {
}, jn = (e, r) => {
var t = 0;
return ur().forEach((n, a) => {
var i = r + t;
y[e + a * 4 >> 2] = i, Wn(n, i), t += n.length + 1;
y[e + a * 4 >> 2] = i, kn(n, i), t += n.length + 1;
}), 0;
}, kn = (e, r) => {
}, Mn = (e, r) => {
var t = ur();

@@ -1257,10 +1258,10 @@ y[e >> 2] = t.length;

return t.forEach((a) => n += a.length + 1), y[r >> 2] = n, 0;
}, jn = (e) => 52;
function Mn(e, r, t, n, a) {
}, In = (e) => 52;
function Un(e, r, t, n, a) {
return 70;
}
var In = [null, [], []], Un = (e, r) => {
var t = In[e];
r === 0 || r === 10 ? ((e === 1 ? Be : X)(Fe(t, 0)), t.length = 0) : t.push(r);
}, Hn = (e, r, t, n) => {
var Hn = [null, [], []], xn = (e, r) => {
var t = Hn[e];
r === 0 || r === 10 ? ((e === 1 ? Le : X)(Ee(t, 0)), t.length = 0) : t.push(r);
}, Vn = (e, r, t, n) => {
for (var a = 0, i = 0; i < t; i++) {

@@ -1270,11 +1271,11 @@ var o = y[r >> 2], s = y[r + 4 >> 2];

for (var u = 0; u < s; u++)
Un(e, R[o + u]);
xn(e, R[o + u]);
a += s;
}
return y[n >> 2] = a, 0;
}, xn = (e) => e, Cr = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Vn = (e, r) => {
}, Yn = (e) => e, Cr = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Bn = (e, r) => {
for (var t = 0, n = 0; n <= r; t += e[n++])
;
return t;
}, Re = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], De = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yn = (e, r) => {
}, Re = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], De = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Nn = (e, r) => {
for (var t = new Date(e.getTime()); r > 0; ) {

@@ -1289,9 +1290,9 @@ var n = Cr(t.getFullYear()), a = t.getMonth(), i = (n ? Re : De)[a];

};
function Bn(e, r, t) {
function Ln(e, r, t) {
var n = t > 0 ? t : Ce(e) + 1, a = new Array(n), i = Pe(e, a, 0, a.length);
return r && (a.length = i), a;
}
var Nn = (e, r) => {
var zn = (e, r) => {
k.set(e, r);
}, Ln = (e, r, t, n) => {
}, Xn = (e, r, t, n) => {
var a = y[n + 40 >> 2], i = {

@@ -1343,5 +1344,5 @@ tm_sec: D[n >> 2],

function h(f, d, A) {
for (var F = typeof f == "number" ? f.toString() : f || ""; F.length < d; )
F = A[0] + F;
return F;
for (var E = typeof f == "number" ? f.toString() : f || ""; E.length < d; )
E = A[0] + E;
return E;
}

@@ -1355,4 +1356,4 @@ function p(f, d) {

}
var F;
return (F = A(f.getFullYear() - d.getFullYear())) === 0 && (F = A(f.getMonth() - d.getMonth())) === 0 && (F = A(f.getDate() - d.getDate())), F;
var E;
return (E = A(f.getFullYear() - d.getFullYear())) === 0 && (E = A(f.getMonth() - d.getMonth())) === 0 && (E = A(f.getDate() - d.getDate())), E;
}

@@ -1378,4 +1379,4 @@ function C(f) {

function W(f) {
var d = Yn(new Date(f.tm_year + 1900, 0, 1), f.tm_yday), A = new Date(d.getFullYear(), 0, 4), F = new Date(d.getFullYear() + 1, 0, 4), K = C(A), Fr = C(F);
return _(K, d) <= 0 ? _(Fr, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
var d = Nn(new Date(f.tm_year + 1900, 0, 1), f.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), K = C(A), Er = C(E);
return _(K, d) <= 0 ? _(Er, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;
}

@@ -1400,3 +1401,3 @@ var T = {

},
"%j": (f) => p(f.tm_mday + Vn(Cr(f.tm_year + 1900) ? Re : De, f.tm_mon - 1), 3),
"%j": (f) => p(f.tm_mday + Bn(Cr(f.tm_year + 1900) ? Re : De, f.tm_mon - 1), 3),
"%m": (f) => p(f.tm_mon + 1, 2),

@@ -1418,4 +1419,4 @@ "%M": (f) => p(f.tm_min, 2),

if (d == 53) {
var F = (f.tm_wday + 371 - f.tm_yday) % 7;
F != 4 && (F != 3 || !Cr(f.tm_year)) && (d = 1);
var E = (f.tm_wday + 371 - f.tm_yday) % 7;
E != 4 && (E != 3 || !Cr(f.tm_year)) && (d = 1);
}

@@ -1447,5 +1448,5 @@ } else {

o = o.replace(/\0\0/g, "%");
var E = Bn(o, !1);
return E.length > r ? 0 : (Nn(E, e), E.length - 1);
}, zn = (e, r, t, n, a) => Ln(e, r, t, n);
var F = Ln(o, !1);
return F.length > r ? 0 : (zn(F, e), F.length - 1);
}, Gn = (e, r, t, n, a) => Xn(e, r, t, n);
ce = l.InternalError = class extends Error {

@@ -1455,80 +1456,80 @@ constructor(r) {

}
}, dt(), J = l.BindingError = class extends Error {
}, ht(), J = l.BindingError = class extends Error {
constructor(r) {
super(r), this.name = "BindingError";
}
}, Ct(), bt(), Ot(), $e = l.UnboundTypeError = It(Error, "UnboundTypeError"), Bt();
var Xn = {
s: tt,
t: nt,
b: it,
g: ot,
m: st,
L: ut,
f: lt,
_: ft,
d: at,
ja: ct,
W: vt,
da: ht,
ha: Ut,
ga: xt,
x: Vt,
}, Et(), Tt(), jt(), $e = l.UnboundTypeError = Ht(Error, "UnboundTypeError"), Lt();
var Zn = {
s: at,
t: it,
b: st,
g: ut,
m: lt,
L: ft,
f: ct,
_: vt,
d: ot,
ja: dt,
W: pt,
da: gt,
ha: xt,
ga: Yt,
x: Bt,
ca: Te,
y: zt,
j: Xt,
P: Zt,
E: qt,
u: Kt,
p: Qt,
ia: rn,
N: tn,
D: fn,
w: cn,
ka: vn,
ea: dn,
G: pn,
y: Gt,
j: Zt,
P: Jt,
E: Kt,
u: rn,
p: en,
ia: tn,
N: an,
D: vn,
w: dn,
ka: pn,
ea: hn,
G: _n,
ma: Br,
S: gn,
O: wn,
Q: Tn,
T: Pn,
fa: Cn,
C: An,
ba: Fn,
$: Rn,
Y: On,
Z: kn,
aa: jn,
V: Mn,
M: Hn,
H: fa,
B: Kn,
I: la,
o: ca,
a: Gn,
e: ra,
q: Jn,
k: ua,
K: oa,
v: ia,
J: sa,
A: da,
U: ha,
l: ea,
i: Qn,
c: qn,
n: Zn,
F: na,
la: ta,
r: va,
h: aa,
z: pa,
R: xn,
X: zn
}, P = et(), Y = l._free = (e) => (Y = l._free = P.pa)(e), Zr = l._malloc = (e) => (Zr = l._malloc = P.qa)(e), We = (e) => (We = P.sa)(e), m = (e, r) => (m = P.ta)(e, r), lr = (e) => (lr = P.ua)(e), b = () => (b = P.va)(), w = (e) => (w = P.wa)(e), Oe = (e) => (Oe = P.xa)(e), ke = (e) => (ke = P.ya)(e), je = (e, r, t) => (je = P.za)(e, r, t), Me = (e) => (Me = P.Aa)(e);
S: mn,
O: Pn,
Q: Cn,
T: An,
fa: En,
C: Fn,
ba: Sn,
$: Wn,
Y: jn,
Z: Mn,
aa: In,
V: Un,
M: Vn,
H: va,
B: ra,
I: ca,
o: da,
a: qn,
e: ta,
q: Qn,
k: fa,
K: ua,
v: sa,
J: la,
A: ha,
U: ga,
l: na,
i: ea,
c: Kn,
n: Jn,
F: ia,
la: aa,
r: pa,
h: oa,
z: _a,
R: Yn,
X: Gn
}, P = nt(), Y = l._free = (e) => (Y = l._free = P.pa)(e), Zr = l._malloc = (e) => (Zr = l._malloc = P.qa)(e), We = (e) => (We = P.sa)(e), m = (e, r) => (m = P.ta)(e, r), lr = (e) => (lr = P.ua)(e), b = () => (b = P.va)(), w = (e) => (w = P.wa)(e), Oe = (e) => (Oe = P.xa)(e), ke = (e) => (ke = P.ya)(e), je = (e, r, t) => (je = P.za)(e, r, t), Me = (e) => (Me = P.Aa)(e);
l.dynCall_viijii = (e, r, t, n, a, i, o) => (l.dynCall_viijii = P.Ba)(e, r, t, n, a, i, o), l.dynCall_jiji = (e, r, t, n, a) => (l.dynCall_jiji = P.Ca)(e, r, t, n, a);
var Ie = l.dynCall_jiiii = (e, r, t, n, a) => (Ie = l.dynCall_jiiii = P.Da)(e, r, t, n, a);
l.dynCall_iiiiij = (e, r, t, n, a, i, o) => (l.dynCall_iiiiij = P.Ea)(e, r, t, n, a, i, o), l.dynCall_iiiiijj = (e, r, t, n, a, i, o, s, u) => (l.dynCall_iiiiijj = P.Fa)(e, r, t, n, a, i, o, s, u), l.dynCall_iiiiiijj = (e, r, t, n, a, i, o, s, u, c) => (l.dynCall_iiiiiijj = P.Ga)(e, r, t, n, a, i, o, s, u, c);
function Gn(e, r) {
function qn(e, r) {
var t = b();

@@ -1543,3 +1544,3 @@ try {

}
function Zn(e, r, t, n) {
function Jn(e, r, t, n) {
var a = b();

@@ -1554,3 +1555,3 @@ try {

}
function qn(e, r, t) {
function Kn(e, r, t) {
var n = b();

@@ -1565,3 +1566,3 @@ try {

}
function Jn(e, r, t, n) {
function Qn(e, r, t, n) {
var a = b();

@@ -1576,3 +1577,3 @@ try {

}
function Kn(e, r, t, n, a) {
function ra(e, r, t, n, a) {
var i = b();

@@ -1587,3 +1588,3 @@ try {

}
function Qn(e, r) {
function ea(e, r) {
var t = b();

@@ -1598,3 +1599,3 @@ try {

}
function ra(e, r, t) {
function ta(e, r, t) {
var n = b();

@@ -1609,3 +1610,3 @@ try {

}
function ea(e) {
function na(e) {
var r = b();

@@ -1620,3 +1621,3 @@ try {

}
function ta(e, r, t, n, a, i) {
function aa(e, r, t, n, a, i) {
var o = b();

@@ -1631,3 +1632,3 @@ try {

}
function na(e, r, t, n, a) {
function ia(e, r, t, n, a) {
var i = b();

@@ -1642,3 +1643,3 @@ try {

}
function aa(e, r, t, n, a, i, o, s, u, c, v) {
function oa(e, r, t, n, a, i, o, s, u, c, v) {
var h = b();

@@ -1653,3 +1654,3 @@ try {

}
function ia(e, r, t, n, a, i, o) {
function sa(e, r, t, n, a, i, o) {
var s = b();

@@ -1664,3 +1665,3 @@ try {

}
function oa(e, r, t, n, a, i) {
function ua(e, r, t, n, a, i) {
var o = b();

@@ -1675,3 +1676,3 @@ try {

}
function sa(e, r, t, n, a, i, o, s) {
function la(e, r, t, n, a, i, o, s) {
var u = b();

@@ -1686,3 +1687,3 @@ try {

}
function ua(e, r, t, n, a) {
function fa(e, r, t, n, a) {
var i = b();

@@ -1697,3 +1698,3 @@ try {

}
function la(e, r, t, n) {
function ca(e, r, t, n) {
var a = b();

@@ -1708,3 +1709,3 @@ try {

}
function fa(e, r, t, n) {
function va(e, r, t, n) {
var a = b();

@@ -1719,3 +1720,3 @@ try {

}
function ca(e) {
function da(e) {
var r = b();

@@ -1730,3 +1731,3 @@ try {

}
function va(e, r, t, n, a, i, o, s) {
function pa(e, r, t, n, a, i, o, s) {
var u = b();

@@ -1741,3 +1742,3 @@ try {

}
function da(e, r, t, n, a, i, o, s, u, c, v, h) {
function ha(e, r, t, n, a, i, o, s, u, c, v, h) {
var p = b();

@@ -1752,13 +1753,13 @@ try {

}
function pa(e, r, t, n, a, i, o, s, u, c, v, h, p, _, C, W) {
function _a(e, r, t, n, a, i, o, s, u, c, v, h, p, _, C, W) {
var T = b();
try {
$(e)(r, t, n, a, i, o, s, u, c, v, h, p, _, C, W);
} catch (E) {
if (w(T), E !== E + 0)
throw E;
} catch (F) {
if (w(T), F !== F + 0)
throw F;
m(1, 0);
}
}
function ha(e, r, t, n, a) {
function ga(e, r, t, n, a) {
var i = b();

@@ -1778,6 +1779,6 @@ try {

function Ue() {
if (N > 0 || (Ne(), N > 0))
if (N > 0 || (ze(), N > 0))
return;
function e() {
Ar || (Ar = !0, l.calledRun = !0, !ee && (Le(), qr(l), l.onRuntimeInitialized && l.onRuntimeInitialized(), ze()));
Ar || (Ar = !0, l.calledRun = !0, !ee && (Xe(), qr(l), l.onRuntimeInitialized && l.onRuntimeInitialized(), Ge()));
}

@@ -1796,4 +1797,4 @@ l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {

})();
function Pa(O) {
return _a(
function Aa(O) {
return ya(
fr,

@@ -1803,4 +1804,4 @@ O

}
function Ca(O) {
return ga(
function Ea(O) {
return ma(
fr,

@@ -1810,4 +1811,4 @@ O

}
async function Aa(O, B) {
return ya(
async function Fa(O, B) {
return $a(
fr,

@@ -1818,4 +1819,4 @@ O,

}
async function Fa(O, B) {
return ma(
async function Sa(O, B) {
return ba(
fr,

@@ -1826,4 +1827,4 @@ O,

}
async function Ea(O, B) {
return $a(
async function Ra(O, B) {
return wa(
fr,

@@ -1835,20 +1836,20 @@ O,

export {
Da as barcodeFormats,
Wa as binarizers,
Oa as characterSets,
ka as contentTypes,
ja as defaultDecodeHints,
Ma as defaultEncodeHints,
Ia as defaultReaderOptions,
Ua as defaultWriterOptions,
Ha as eanAddOnSymbols,
Pa as getZXingModule,
xa as purgeZXingModule,
Fa as readBarcodesFromImageData,
Aa as readBarcodesFromImageFile,
Va as readOutputEccLevels,
Ca as setZXingModuleOverrides,
Ya as textModes,
Ea as writeBarcodeToImageFile,
Ba as writeInputEccLevels
Oa as barcodeFormats,
ka as binarizers,
ja as characterSets,
Ma as contentTypes,
Ia as defaultDecodeHints,
Ua as defaultEncodeHints,
Ha as defaultReaderOptions,
xa as defaultWriterOptions,
Va as eanAddOnSymbols,
Aa as getZXingModule,
Ya as purgeZXingModule,
Sa as readBarcodesFromImageData,
Fa as readBarcodesFromImageFile,
Ba as readOutputEccLevels,
Ea as setZXingModuleOverrides,
Na as textModes,
Ra as writeBarcodeToImageFile,
La as writeInputEccLevels
};

@@ -1,6 +0,7 @@

import { g as ha, s as _a, r as ga, a as ya } from "../core-aa7d7gNw.js";
import { b as Ea, c as Sa, e as Ra, f as Da, d as Wa, d as Oa, h as ka, p as ja, i as Ma, t as Ua } from "../core-aa7d7gNw.js";
import { g as ga, s as ya, r as ma, a as $a } from "../core-2TjCkkNo.js";
import { b as Ra, c as Da, e as Wa, f as Oa, d as ka, d as Ma, h as ja, p as Ia, i as Ua, t as Ha } from "../core-2TjCkkNo.js";
var Sr = (() => {
var j = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
var M = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
return function(z = {}) {
var He;
var l = z, qr, fr;

@@ -10,14 +11,14 @@ l.ready = new Promise((e, r) => {

});
var Jr = Object.assign({}, l), Kr = "./this.program", Qr = typeof window == "object", re = typeof Bun < "u", cr = typeof importScripts == "function";
var Jr = Object.assign({}, l), Kr = "./this.program", Qr = typeof window == "object", re = typeof Bun < "u", Be = typeof ((He = globalThis.WebAssembly) == null ? void 0 : He.instantiate) == "function", cr = typeof importScripts == "function";
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
var M = "";
function Ye(e) {
return l.locateFile ? l.locateFile(e, M) : M + e;
var j = "";
function Ne(e) {
return l.locateFile ? l.locateFile(e, j) : j + e;
}
var Rr;
(Qr || cr || re) && (cr ? M = self.location.href : typeof document < "u" && document.currentScript && (M = document.currentScript.src), j && (M = j), M.startsWith("blob:") ? M = "" : M = M.substr(0, M.replace(/[?#].*/, "").lastIndexOf("/") + 1), cr && (Rr = (e) => {
(Qr || cr || re) && (cr ? j = self.location.href : typeof document < "u" && document.currentScript && (j = document.currentScript.src), M && (j = M), j.startsWith("blob:") ? j = "" : j = j.substr(0, j.replace(/[?#].*/, "").lastIndexOf("/") + 1), cr && (Rr = (e) => {
var r = new XMLHttpRequest();
return r.open("GET", e, !1), r.responseType = "arraybuffer", r.send(null), new Uint8Array(r.response);
}));
var Be = l.print || console.log.bind(console), X = l.printErr || console.error.bind(console);
var Le = l.print || console.log.bind(console), X = l.printErr || console.error.bind(console);
Object.assign(l, Jr), Jr = null, l.arguments && l.arguments, l.thisProgram && (Kr = l.thisProgram), l.quit && l.quit;

@@ -31,33 +32,33 @@ var Q;

}
var ie = [], oe = [], se = [];
function Ne() {
var ie = [], se = [], oe = [];
function ze() {
if (l.preRun)
for (typeof l.preRun == "function" && (l.preRun = [l.preRun]); l.preRun.length; )
Xe(l.preRun.shift());
Ze(l.preRun.shift());
Dr(ie);
}
function Le() {
Dr(oe);
function Xe() {
Dr(se);
}
function ze() {
function Ge() {
if (l.postRun)
for (typeof l.postRun == "function" && (l.postRun = [l.postRun]); l.postRun.length; )
Ze(l.postRun.shift());
Dr(se);
Je(l.postRun.shift());
Dr(oe);
}
function Xe(e) {
function Ze(e) {
ie.unshift(e);
}
function Ge(e) {
function qe(e) {
se.unshift(e);
}
function Je(e) {
oe.unshift(e);
}
function Ze(e) {
se.unshift(e);
}
var B = 0, er = null;
function qe(e) {
function Ke(e) {
var r;
B++, (r = l.monitorRunDependencies) === null || r === void 0 || r.call(l, B);
}
function Je(e) {
function Qe(e) {
var r;

@@ -75,4 +76,4 @@ if (B--, (r = l.monitorRunDependencies) === null || r === void 0 || r.call(l, B), B == 0 && er) {

}
var Ke = "data:application/octet-stream;base64,", ue = (e) => e.startsWith(Ke), Z;
Z = "zxing_reader.wasm", ue(Z) || (Z = Ye(Z));
var rt = "data:application/octet-stream;base64,", ue = (e) => e.startsWith(rt), Z;
Z = "zxing_reader.wasm", ue(Z) || (Z = Ne(Z));
function le(e) {

@@ -85,4 +86,4 @@ if (e == Z && Q)

}
function Qe(e) {
return !Q && (Qr || cr || re) && typeof fetch == "function" ? fetch(e, {
function et(e) {
return !Q && (Qr || cr || re || Be) && typeof fetch == "function" ? fetch(e, {
credentials: "same-origin"

@@ -96,7 +97,7 @@ }).then((r) => {

function fe(e, r, t) {
return Qe(e).then((n) => WebAssembly.instantiate(n, r)).then(t, (n) => {
return et(e).then((n) => WebAssembly.instantiate(n, r)).then(t, (n) => {
X(`failed to asynchronously prepare wasm: ${n}`), dr(n);
});
}
function rt(e, r, t, n) {
function tt(e, r, t, n) {
return !e && typeof WebAssembly.instantiateStreaming == "function" && !ue(r) && typeof fetch == "function" ? fetch(r, {

@@ -106,15 +107,15 @@ credentials: "same-origin"

var i = WebAssembly.instantiateStreaming(a, t);
return i.then(n, function(o) {
return X(`wasm streaming compile failed: ${o}`), X("falling back to ArrayBuffer instantiation"), fe(r, t, n);
return i.then(n, function(s) {
return X(`wasm streaming compile failed: ${s}`), X("falling back to ArrayBuffer instantiation"), fe(r, t, n);
});
}) : fe(r, t, n);
}
function et() {
function nt() {
var e = {
a: Xn
a: Zn
};
function r(n, a) {
return w = n.exports, vr = w.ma, ae(), me = w.qa, Ge(w.na), Je(), w;
return w = n.exports, vr = w.ma, ae(), me = w.qa, qe(w.na), Qe(), w;
}
qe();
Ke();
function t(n) {

@@ -129,3 +130,3 @@ r(n.instance);

}
return rt(Q, Z, e, t).catch(fr), {};
return tt(Q, Z, e, t).catch(fr), {};
}

@@ -137,6 +138,6 @@ var Dr = (e) => {

l.noExitRuntime;
var pr = [], hr = 0, tt = (e) => {
var pr = [], hr = 0, at = (e) => {
var r = new Wr(e);
return r.get_caught() || (r.set_caught(!0), hr--), r.set_rethrown(!1), pr.push(r), ke(r.excPtr), r.get_exception_ptr();
}, H = 0, nt = () => {
}, H = 0, it = () => {
m(0, 0);

@@ -184,3 +185,3 @@ var e = pr.pop();

get_exception_ptr() {
var r = Me(this.get_type());
var r = je(this.get_type());
if (r)

@@ -192,3 +193,3 @@ return y[this.excPtr >> 2];

}
var at = (e) => {
var st = (e) => {
throw H || (H = e), H;

@@ -208,8 +209,8 @@ }, Or = (e) => {

break;
var o = t.ptr + 16;
if (je(i, n, o))
var s = t.ptr + 16;
if (Me(i, n, s))
return lr(i), r;
}
return lr(n), r;
}, it = () => Or([]), ot = (e) => Or([e]), st = (e, r) => Or([e, r]), ut = () => {
}, ot = () => Or([]), ut = (e) => Or([e]), lt = (e, r) => Or([e, r]), ft = () => {
var e = pr.pop();

@@ -219,6 +220,6 @@ e || dr("no exception to throw");

throw e.get_rethrown() || (pr.push(e), e.set_rethrown(!0), e.set_caught(!1), hr++), H = r, H;
}, lt = (e, r, t) => {
}, ct = (e, r, t) => {
var n = new Wr(e);
throw n.init(r, t), H = e, hr++, H;
}, ft = () => hr, _r = {}, kr = (e) => {
}, vt = () => hr, _r = {}, kr = (e) => {
for (; e.length; ) {

@@ -235,30 +236,30 @@ var r = e.pop(), t = e.pop();

}, L = (e, r, t) => {
e.forEach(function(s) {
gr[s] = r;
e.forEach(function(o) {
gr[o] = r;
});
function n(s) {
var u = t(s);
function n(o) {
var u = t(o);
u.length !== e.length && yr("Mismatched type converter count");
for (var c = 0; c < e.length; ++c)
U(e[c], u[c]);
I(e[c], u[c]);
}
var a = new Array(r.length), i = [], o = 0;
r.forEach((s, u) => {
N.hasOwnProperty(s) ? a[u] = N[s] : (i.push(s), q.hasOwnProperty(s) || (q[s] = []), q[s].push(() => {
a[u] = N[s], ++o, o === i.length && n(a);
var a = new Array(r.length), i = [], s = 0;
r.forEach((o, u) => {
N.hasOwnProperty(o) ? a[u] = N[o] : (i.push(o), q.hasOwnProperty(o) || (q[o] = []), q[o].push(() => {
a[u] = N[o], ++s, s === i.length && n(a);
}));
}), i.length === 0 && n(a);
}, ct = (e) => {
}, dt = (e) => {
var r = _r[e];
delete _r[e];
var t = r.rawConstructor, n = r.rawDestructor, a = r.fields, i = a.map((o) => o.getterReturnType).concat(a.map((o) => o.setterArgumentType));
L([e], i, (o) => {
var s = {};
var t = r.rawConstructor, n = r.rawDestructor, a = r.fields, i = a.map((s) => s.getterReturnType).concat(a.map((s) => s.setterArgumentType));
L([e], i, (s) => {
var o = {};
return a.forEach((u, c) => {
var v = u.fieldName, h = o[c], p = u.getter, _ = u.getterContext, C = o[c + a.length], W = u.setter, $ = u.setterContext;
s[v] = {
read: (E) => h.fromWireType(p(_, E)),
write: (E, f) => {
var v = u.fieldName, h = s[c], p = u.getter, _ = u.getterContext, C = s[c + a.length], W = u.setter, $ = u.setterContext;
o[v] = {
read: (F) => h.fromWireType(p(_, F)),
write: (F, f) => {
var d = [];
W($, E, C.toWireType(d, f)), kr(d);
W($, F, C.toWireType(d, f)), kr(d);
}

@@ -270,16 +271,16 @@ };

var c = {};
for (var v in s)
c[v] = s[v].read(u);
for (var v in o)
c[v] = o[v].read(u);
return n(u), c;
},
toWireType: (u, c) => {
for (var v in s)
for (var v in o)
if (!(v in c))
throw new TypeError(`Missing field: "${v}"`);
var h = t();
for (v in s)
s[v].write(h, c[v]);
for (v in o)
o[v].write(h, c[v]);
return u !== null && u.push(n, h), h;
},
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: tr,

@@ -289,4 +290,4 @@ destructorFunction: n

});
}, vt = (e, r, t, n, a) => {
}, dt = () => {
}, pt = (e, r, t, n, a) => {
}, ht = () => {
for (var e = new Array(256), r = 0; r < 256; ++r)

@@ -302,3 +303,3 @@ e[r] = String.fromCharCode(r);

};
function pt(e, r) {
function _t(e, r) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};

@@ -316,10 +317,10 @@ var n = r.name;

}
function U(e, r) {
function I(e, r) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
if (!("argPackAdvance" in r))
throw new TypeError("registerType registeredInstance requires argPackAdvance");
return pt(e, r, t);
return _t(e, r, t);
}
var I = 8, ht = (e, r, t, n) => {
r = S(r), U(e, {
var U = 8, gt = (e, r, t, n) => {
r = S(r), I(e, {
name: r,

@@ -332,3 +333,3 @@ fromWireType: function(a) {

},
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: function(a) {

@@ -339,3 +340,3 @@ return this.fromWireType(R[a]);

});
}, _t = (e) => ({
}, yt = (e) => ({
count: e.count,

@@ -348,3 +349,3 @@ deleteScheduled: e.deleteScheduled,

smartPtrType: e.smartPtrType
}), jr = (e) => {
}), Mr = (e) => {
function r(t) {

@@ -354,4 +355,4 @@ return t.$$.ptrType.registeredClass.name;

g(r(e) + " instance already deleted");
}, Mr = !1, de = (e) => {
}, gt = (e) => {
}, jr = !1, de = (e) => {
}, mt = (e) => {
e.smartPtr ? e.smartPtrType.rawDestructor(e.smartPtr) : e.ptrType.registeredClass.rawDestructor(e.ptr);

@@ -361,3 +362,3 @@ }, pe = (e) => {

var r = e.count.value === 0;
r && gt(e);
r && mt(e);
}, he = (e, r, t) => {

@@ -370,3 +371,3 @@ if (r === t)

return n === null ? null : t.downcast(n);
}, _e = {}, yt = () => Object.keys(ir).length, mt = () => {
}, _e = {}, $t = () => Object.keys(ir).length, bt = () => {
var e = [];

@@ -376,3 +377,3 @@ for (var r in ir)

return e;
}, nr = [], Ur = () => {
}, nr = [], Ir = () => {
for (; nr.length; ) {

@@ -382,11 +383,11 @@ var e = nr.pop();

}
}, ar, $t = (e) => {
ar = e, nr.length && ar && ar(Ur);
}, bt = () => {
l.getInheritedInstanceCount = yt, l.getLiveInheritedInstances = mt, l.flushPendingDeletes = Ur, l.setDelayFunction = $t;
}, ir = {}, wt = (e, r) => {
}, ar, wt = (e) => {
ar = e, nr.length && ar && ar(Ir);
}, Tt = () => {
l.getInheritedInstanceCount = $t, l.getLiveInheritedInstances = bt, l.flushPendingDeletes = Ir, l.setDelayFunction = wt;
}, ir = {}, Pt = (e, r) => {
for (r === void 0 && g("ptr should not be undefined"); e.baseClass; )
r = e.upcast(r), e = e.baseClass;
return r;
}, Tt = (e, r) => (r = wt(e, r), ir[r]), mr = (e, r) => {
}, Ct = (e, r) => (r = Pt(e, r), ir[r]), mr = (e, r) => {
(!r.ptrType || !r.ptr) && yr("makeClassHandle requires ptr and ptrType");

@@ -396,3 +397,3 @@ var t = !!r.smartPtrType, n = !!r.smartPtr;

value: 1
}, or(Object.create(e, {
}, sr(Object.create(e, {
$$: {

@@ -404,7 +405,7 @@ value: r,

};
function Pt(e) {
function At(e) {
var r = this.getPointee(e);
if (!r)
return this.destructor(e), null;
var t = Tt(this.registeredClass, r);
var t = Ct(this.registeredClass, r);
if (t !== void 0) {

@@ -427,21 +428,21 @@ if (t.$$.count.value === 0)

}
var i = this.registeredClass.getActualType(r), o = _e[i];
if (!o)
var i = this.registeredClass.getActualType(r), s = _e[i];
if (!s)
return a.call(this);
var s;
this.isConst ? s = o.constPointerType : s = o.pointerType;
var u = he(r, this.registeredClass, s.registeredClass);
return u === null ? a.call(this) : this.isSmartPointer ? mr(s.registeredClass.instancePrototype, {
ptrType: s,
var o;
this.isConst ? o = s.constPointerType : o = s.pointerType;
var u = he(r, this.registeredClass, o.registeredClass);
return u === null ? a.call(this) : this.isSmartPointer ? mr(o.registeredClass.instancePrototype, {
ptrType: o,
ptr: u,
smartPtrType: this,
smartPtr: e
}) : mr(s.registeredClass.instancePrototype, {
ptrType: s,
}) : mr(o.registeredClass.instancePrototype, {
ptrType: o,
ptr: u
});
}
var or = (e) => typeof FinalizationRegistry > "u" ? (or = (r) => r, e) : (Mr = new FinalizationRegistry((r) => {
var sr = (e) => typeof FinalizationRegistry > "u" ? (sr = (r) => r, e) : (jr = new FinalizationRegistry((r) => {
pe(r.$$);
}), or = (r) => {
}), sr = (r) => {
var t = r.$$, n = !!t.smartPtr;

@@ -452,6 +453,6 @@ if (n) {

};
Mr.register(r, a, r);
jr.register(r, a, r);
}
return r;
}, de = (r) => Mr.unregister(r), or(e)), Ct = () => {
}, de = (r) => jr.unregister(r), sr(e)), Et = () => {
Object.assign($r.prototype, {

@@ -470,7 +471,7 @@ isAliasOf(e) {

clone() {
if (this.$$.ptr || jr(this), this.$$.preservePointerOnDelete)
if (this.$$.ptr || Mr(this), this.$$.preservePointerOnDelete)
return this.$$.count.value += 1, this;
var e = or(Object.create(Object.getPrototypeOf(this), {
var e = sr(Object.create(Object.getPrototypeOf(this), {
$$: {
value: _t(this.$$)
value: yt(this.$$)
}

@@ -481,3 +482,3 @@ }));

delete() {
this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), de(this), pe(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
this.$$.ptr || Mr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), de(this), pe(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
},

@@ -488,3 +489,3 @@ isDeleted() {

deleteLater() {
return this.$$.ptr || jr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), nr.push(this), nr.length === 1 && ar && ar(Ur), this.$$.deleteScheduled = !0, this;
return this.$$.ptr || Mr(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && g("Object already scheduled for deletion"), nr.push(this), nr.length === 1 && ar && ar(Ir), this.$$.deleteScheduled = !0, this;
}

@@ -495,3 +496,3 @@ });

}
var sr = (e, r) => Object.defineProperty(r, "name", {
var or = (e, r) => Object.defineProperty(r, "name", {
value: e

@@ -502,10 +503,10 @@ }), ge = (e, r, t) => {

e[r] = function() {
for (var a = arguments.length, i = new Array(a), o = 0; o < a; o++)
i[o] = arguments[o];
for (var a = arguments.length, i = new Array(a), s = 0; s < a; s++)
i[s] = arguments[s];
return e[r].overloadTable.hasOwnProperty(i.length) || g(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${e[r].overloadTable})!`), e[r].overloadTable[i.length].apply(this, i);
}, e[r].overloadTable = [], e[r].overloadTable[n.argCount] = n;
}
}, Ir = (e, r, t) => {
}, Ur = (e, r, t) => {
l.hasOwnProperty(e) ? ((t === void 0 || l[e].overloadTable !== void 0 && l[e].overloadTable[t] !== void 0) && g(`Cannot register public name '${e}' twice`), ge(l, e, e), l.hasOwnProperty(t) && g(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), l[e].overloadTable[t] = r) : (l[e] = r, t !== void 0 && (l[e].numArguments = t));
}, At = 48, Ft = 57, Et = (e) => {
}, Ft = 48, St = 57, Rt = (e) => {
if (e === void 0)

@@ -515,6 +516,6 @@ return "_unknown";

var r = e.charCodeAt(0);
return r >= At && r <= Ft ? `_${e}` : e;
return r >= Ft && r <= St ? `_${e}` : e;
};
function St(e, r, t, n, a, i, o, s) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = o, this.downcast = s, this.pureVirtualFunctions = [];
function Dt(e, r, t, n, a, i, s, o) {
this.name = e, this.constructor = r, this.instancePrototype = t, this.rawDestructor = n, this.baseClass = a, this.getActualType = i, this.upcast = s, this.downcast = o, this.pureVirtualFunctions = [];
}

@@ -526,3 +527,3 @@ var Hr = (e, r, t) => {

};
function Rt(e, r) {
function Wt(e, r) {
if (r === null)

@@ -534,3 +535,3 @@ return this.isReference && g(`null is not a valid ${this.name}`), 0;

}
function Dt(e, r) {
function Ot(e, r) {
var t;

@@ -562,3 +563,3 @@ if (r === null)

}
function Wt(e, r) {
function kt(e, r) {
if (r === null)

@@ -570,3 +571,3 @@ return this.isReference && g(`null is not a valid ${this.name}`), 0;

}
var Ot = () => {
var Mt = () => {
Object.assign(br.prototype, {

@@ -580,13 +581,13 @@ getPointee(e) {

},
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: tr,
fromWireType: Pt
fromWireType: At
});
};
function br(e, r, t, n, a, i, o, s, u, c, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = o, this.rawGetPointee = s, this.rawConstructor = u, this.rawShare = c, this.rawDestructor = v, !a && r.baseClass === void 0 ? n ? (this.toWireType = Rt, this.destructorFunction = null) : (this.toWireType = Wt, this.destructorFunction = null) : this.toWireType = Dt;
function br(e, r, t, n, a, i, s, o, u, c, v) {
this.name = e, this.registeredClass = r, this.isReference = t, this.isConst = n, this.isSmartPointer = a, this.pointeeType = i, this.sharingPolicy = s, this.rawGetPointee = o, this.rawConstructor = u, this.rawShare = c, this.rawDestructor = v, !a && r.baseClass === void 0 ? n ? (this.toWireType = Wt, this.destructorFunction = null) : (this.toWireType = kt, this.destructorFunction = null) : this.toWireType = Ot;
}
var ye = (e, r, t) => {
l.hasOwnProperty(e) || yr("Replacing nonexistant public symbol"), l[e].overloadTable !== void 0 && t !== void 0 ? l[e].overloadTable[t] = r : (l[e] = r, l[e].argCount = t);
}, kt = (e, r, t) => {
}, jt = (e, r, t) => {
var n = l["dynCall_" + e];

@@ -597,21 +598,21 @@ return n(r, ...t);

return r || (e >= wr.length && (wr.length = e + 1), wr[e] = r = me.get(e)), r;
}, jt = function(e, r) {
}, It = function(e, r) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
if (e.includes("j"))
return kt(e, r, t);
return jt(e, r, t);
var n = b(r)(...t);
return n;
}, Mt = (e, r) => function() {
}, Ut = (e, r) => function() {
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
n[a] = arguments[a];
return jt(e, r, n);
return It(e, r, n);
}, k = (e, r) => {
e = S(e);
function t() {
return e.includes("j") ? Mt(e, r) : b(r);
return e.includes("j") ? Ut(e, r) : b(r);
}
var n = t();
return typeof n != "function" && g(`unknown function pointer with signature ${e}: ${r}`), n;
}, Ut = (e, r) => {
var t = sr(r, function(n) {
}, Ht = (e, r) => {
var t = or(r, function(n) {
this.name = r, this.message = n;

@@ -640,6 +641,6 @@ var a = new Error(n).stack;

throw r.forEach(a), new $e(`${e}: ` + t.map(be).join([", "]));
}, It = (e, r, t, n, a, i, o, s, u, c, v, h, p) => {
v = S(v), i = k(a, i), s && (s = k(o, s)), c && (c = k(u, c)), p = k(h, p);
var _ = Et(v);
Ir(_, function() {
}, xt = (e, r, t, n, a, i, s, o, u, c, v, h, p) => {
v = S(v), i = k(a, i), o && (o = k(s, o)), c && (c = k(u, c)), p = k(h, p);
var _ = Rt(v);
Ur(_, function() {
Tr(`Cannot construct ${v} due to unbound types`, [n]);

@@ -650,3 +651,3 @@ }), L([e, r, t], n ? [n] : [], (C) => {

n ? (W = C.registeredClass, $ = W.instancePrototype) : $ = $r.prototype;
var E = sr(v, function() {
var F = or(v, function() {
if (Object.getPrototypeOf(this) !== f)

@@ -656,24 +657,24 @@ throw new J("Use 'new' to construct " + v);

throw new J(v + " has no accessible constructor");
for (var xe = arguments.length, Fr = new Array(xe), Er = 0; Er < xe; Er++)
Fr[Er] = arguments[Er];
var Ve = d.constructor_body[Fr.length];
if (Ve === void 0)
throw new J(`Tried to invoke ctor of ${v} with invalid number of parameters (${Fr.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Ve.apply(this, Fr);
for (var Ve = arguments.length, Er = new Array(Ve), Fr = 0; Fr < Ve; Fr++)
Er[Fr] = arguments[Fr];
var Ye = d.constructor_body[Er.length];
if (Ye === void 0)
throw new J(`Tried to invoke ctor of ${v} with invalid number of parameters (${Er.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);
return Ye.apply(this, Er);
}), f = Object.create($, {
constructor: {
value: E
value: F
}
});
E.prototype = f;
var d = new St(v, E, f, p, W, i, s, c);
F.prototype = f;
var d = new Dt(v, F, f, p, W, i, o, c);
if (d.baseClass) {
var A, F;
(F = (A = d.baseClass).__derivedClasses) !== null && F !== void 0 || (A.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
var A, E;
(E = (A = d.baseClass).__derivedClasses) !== null && E !== void 0 || (A.__derivedClasses = []), d.baseClass.__derivedClasses.push(d);
}
var K = new br(v, d, !0, !1, !1), Ar = new br(v + "*", d, !1, !1, !1), He = new br(v + " const*", d, !1, !0, !1);
var K = new br(v, d, !0, !1, !1), Ar = new br(v + "*", d, !1, !1, !1), xe = new br(v + " const*", d, !1, !0, !1);
return _e[e] = {
pointerType: Ar,
constPointerType: He
}, ye(_, E), [K, Ar, He];
constPointerType: xe
}, ye(_, F), [K, Ar, xe];
});

@@ -685,3 +686,3 @@ }, xr = (e, r) => {

};
function Ht(e) {
function Vt(e) {
for (var r = 1; r < e.length; ++r)

@@ -693,11 +694,11 @@ if (e[r] !== null && e[r].destructorFunction === void 0)

function Vr(e, r, t, n, a, i) {
var o = r.length;
o < 2 && g("argTypes array size mismatch! Must at least get return value and 'this' types!");
var s = r[1] !== null && t !== null, u = Ht(r), c = r[0].name !== "void", v = o - 2, h = new Array(v), p = [], _ = [], C = function() {
var s = r.length;
s < 2 && g("argTypes array size mismatch! Must at least get return value and 'this' types!");
var o = r[1] !== null && t !== null, u = Vt(r), c = r[0].name !== "void", v = s - 2, h = new Array(v), p = [], _ = [], C = function() {
arguments.length !== v && g(`function ${e} called with ${arguments.length} arguments, expected ${v}`), _.length = 0;
var W;
p.length = s ? 2 : 1, p[0] = a, s && (W = r[1].toWireType(_, this), p[1] = W);
p.length = o ? 2 : 1, p[0] = a, o && (W = r[1].toWireType(_, this), p[1] = W);
for (var $ = 0; $ < v; ++$)
h[$] = r[$ + 2].toWireType(_, $ < 0 || arguments.length <= $ ? void 0 : arguments[$]), p.push(h[$]);
var E = n(...p);
var F = n(...p);
function f(d) {

@@ -707,5 +708,5 @@ if (u)

else
for (var A = s ? 1 : 2; A < r.length; A++) {
var F = A === 1 ? W : h[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(F);
for (var A = o ? 1 : 2; A < r.length; A++) {
var E = A === 1 ? W : h[A - 2];
r[A].destructorFunction !== null && r[A].destructorFunction(E);
}

@@ -715,16 +716,16 @@ if (c)

}
return f(E);
return f(F);
};
return sr(e, C);
return or(e, C);
}
var xt = (e, r, t, n, a, i) => {
var o = xr(r, t);
a = k(n, a), L([], [e], (s) => {
s = s[0];
var u = `constructor ${s.name}`;
if (s.registeredClass.constructor_body === void 0 && (s.registeredClass.constructor_body = []), s.registeredClass.constructor_body[r - 1] !== void 0)
throw new J(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return s.registeredClass.constructor_body[r - 1] = () => {
Tr(`Cannot construct ${s.name} due to unbound types`, o);
}, L([], o, (c) => (c.splice(1, 0, null), s.registeredClass.constructor_body[r - 1] = Vr(u, c, null, a, i), [])), [];
var Yt = (e, r, t, n, a, i) => {
var s = xr(r, t);
a = k(n, a), L([], [e], (o) => {
o = o[0];
var u = `constructor ${o.name}`;
if (o.registeredClass.constructor_body === void 0 && (o.registeredClass.constructor_body = []), o.registeredClass.constructor_body[r - 1] !== void 0)
throw new J(`Cannot register multiple constructors with identical number of parameters (${r - 1}) for class '${o.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);
return o.registeredClass.constructor_body[r - 1] = () => {
Tr(`Cannot construct ${o.name} due to unbound types`, s);
}, L([], s, (c) => (c.splice(1, 0, null), o.registeredClass.constructor_body[r - 1] = Vr(u, c, null, a, i), [])), [];
});

@@ -735,3 +736,3 @@ }, we = (e) => {

return r !== -1 ? e.substr(0, r) : e;
}, Vt = (e, r, t, n, a, i, o, s, u) => {
}, Bt = (e, r, t, n, a, i, s, o, u) => {
var c = xr(t, n);

@@ -741,3 +742,3 @@ r = S(r), r = we(r), i = k(a, i), L([], [e], (v) => {

var h = `${v.name}.${r}`;
r.startsWith("@@") && (r = Symbol[r.substring(2)]), s && v.registeredClass.pureVirtualFunctions.push(r);
r.startsWith("@@") && (r = Symbol[r.substring(2)]), o && v.registeredClass.pureVirtualFunctions.push(r);
function p() {

@@ -748,3 +749,3 @@ Tr(`Cannot call ${h} due to unbound types`, c);

return C === void 0 || C.overloadTable === void 0 && C.className !== v.name && C.argCount === t - 2 ? (p.argCount = t - 2, p.className = v.name, _[r] = p) : (ge(_, r, h), _[r].overloadTable[t - 2] = p), L([], c, (W) => {
var $ = Vr(h, W, v, i, o);
var $ = Vr(h, W, v, i, s);
return _[r].overloadTable === void 0 ? ($.argCount = t - 2, _[r] = $) : _[r].overloadTable[t - 2] = $, [];

@@ -755,4 +756,4 @@ }), [];

e > 9 && --x[e + 1] === 0 && (x[e] = void 0, Yr.push(e));
}, Yt = () => x.length / 2 - 5 - Yr.length, Bt = () => {
x.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), l.count_emval_handles = Yt;
}, Nt = () => x.length / 2 - 5 - Yr.length, Lt = () => {
x.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), l.count_emval_handles = Nt;
}, V = {

@@ -776,3 +777,3 @@ toValue: (e) => (e || g("Cannot use deleted val. handle = " + e), x[e]),

}
}, Nt = {
}, zt = {
name: "emscripten::val",

@@ -784,6 +785,6 @@ fromWireType: (e) => {

toWireType: (e, r) => V.toHandle(r),
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: tr,
destructorFunction: null
}, Te = (e) => U(e, Nt), Lt = (e, r, t) => {
}, Te = (e) => I(e, zt), Xt = (e, r, t) => {
switch (r) {

@@ -811,7 +812,7 @@ case 1:

}
}, zt = (e, r, t, n) => {
}, Gt = (e, r, t, n) => {
r = S(r);
function a() {
}
a.values = {}, U(e, {
a.values = {}, I(e, {
name: r,

@@ -822,11 +823,11 @@ constructor: a,

},
toWireType: (i, o) => o.value,
argPackAdvance: I,
readValueFromPointer: Lt(r, t, n),
toWireType: (i, s) => s.value,
argPackAdvance: U,
readValueFromPointer: Xt(r, t, n),
destructorFunction: null
}), Ir(r, a);
}), Ur(r, a);
}, Nr = (e, r) => {
var t = N[e];
return t === void 0 && g(`${r} has unknown type ${be(e)}`), t;
}, Xt = (e, r, t) => {
}, Zt = (e, r, t) => {
var n = Nr(e, "enum");

@@ -839,3 +840,3 @@ r = S(r);

constructor: {
value: sr(`${n.name}_${r}`, function() {
value: or(`${n.name}_${r}`, function() {
})

@@ -850,3 +851,3 @@ }

return r === "object" || r === "array" || r === "function" ? e.toString() : "" + e;
}, Gt = (e, r) => {
}, qt = (e, r) => {
switch (r) {

@@ -864,20 +865,20 @@ case 4:

}
}, Zt = (e, r, t) => {
r = S(r), U(e, {
}, Jt = (e, r, t) => {
r = S(r), I(e, {
name: r,
fromWireType: (n) => n,
toWireType: (n, a) => a,
argPackAdvance: I,
readValueFromPointer: Gt(r, t),
argPackAdvance: U,
readValueFromPointer: qt(r, t),
destructorFunction: null
});
}, qt = (e, r, t, n, a, i, o) => {
var s = xr(r, t);
e = S(e), e = we(e), a = k(n, a), Ir(e, function() {
Tr(`Cannot call ${e} due to unbound types`, s);
}, r - 1), L([], s, (u) => {
}, Kt = (e, r, t, n, a, i, s) => {
var o = xr(r, t);
e = S(e), e = we(e), a = k(n, a), Ur(e, function() {
Tr(`Cannot call ${e} due to unbound types`, o);
}, r - 1), L([], o, (u) => {
var c = [u[0], null].concat(u.slice(1));
return ye(e, Vr(e, c, null, a, i), r - 1), [];
});
}, Jt = (e, r, t) => {
}, Qt = (e, r, t) => {
switch (r) {

@@ -893,33 +894,33 @@ case 1:

}
}, Kt = (e, r, t, n, a) => {
}, rn = (e, r, t, n, a) => {
r = S(r);
var i = (v) => v;
if (n === 0) {
var o = 32 - 8 * t;
i = (v) => v << o >>> o;
var s = 32 - 8 * t;
i = (v) => v << s >>> s;
}
var s = r.includes("unsigned"), u = (v, h) => {
var o = r.includes("unsigned"), u = (v, h) => {
}, c;
s ? c = function(v, h) {
o ? c = function(v, h) {
return u(h, this.name), h >>> 0;
} : c = function(v, h) {
return u(h, this.name), h;
}, U(e, {
}, I(e, {
name: r,
fromWireType: i,
toWireType: c,
argPackAdvance: I,
readValueFromPointer: Jt(r, t, n !== 0),
argPackAdvance: U,
readValueFromPointer: Qt(r, t, n !== 0),
destructorFunction: null
});
}, Qt = (e, r, t) => {
}, en = (e, r, t) => {
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[r];
function i(o) {
var s = y[o >> 2], u = y[o + 4 >> 2];
return new a(O.buffer, u, s);
function i(s) {
var o = y[s >> 2], u = y[s + 4 >> 2];
return new a(O.buffer, u, o);
}
t = S(t), U(e, {
t = S(t), I(e, {
name: t,
fromWireType: i,
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: i

@@ -929,3 +930,3 @@ }, {

});
}, rn = (e, r) => {
}, tn = (e, r) => {
Te(e);

@@ -935,28 +936,28 @@ }, Pe = (e, r, t, n) => {

return 0;
for (var a = t, i = t + n - 1, o = 0; o < e.length; ++o) {
var s = e.charCodeAt(o);
if (s >= 55296 && s <= 57343) {
var u = e.charCodeAt(++o);
s = 65536 + ((s & 1023) << 10) | u & 1023;
for (var a = t, i = t + n - 1, s = 0; s < e.length; ++s) {
var o = e.charCodeAt(s);
if (o >= 55296 && o <= 57343) {
var u = e.charCodeAt(++s);
o = 65536 + ((o & 1023) << 10) | u & 1023;
}
if (s <= 127) {
if (o <= 127) {
if (t >= i)
break;
r[t++] = s;
} else if (s <= 2047) {
r[t++] = o;
} else if (o <= 2047) {
if (t + 1 >= i)
break;
r[t++] = 192 | s >> 6, r[t++] = 128 | s & 63;
} else if (s <= 65535) {
r[t++] = 192 | o >> 6, r[t++] = 128 | o & 63;
} else if (o <= 65535) {
if (t + 2 >= i)
break;
r[t++] = 224 | s >> 12, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 224 | o >> 12, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
} else {
if (t + 3 >= i)
break;
r[t++] = 240 | s >> 18, r[t++] = 128 | s >> 12 & 63, r[t++] = 128 | s >> 6 & 63, r[t++] = 128 | s & 63;
r[t++] = 240 | o >> 18, r[t++] = 128 | o >> 12 & 63, r[t++] = 128 | o >> 6 & 63, r[t++] = 128 | o & 63;
}
}
return r[t] = 0, t - a;
}, en = (e, r, t) => Pe(e, R, r, t), Ce = (e) => {
}, nn = (e, r, t) => Pe(e, R, r, t), Ce = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -967,3 +968,3 @@ var n = e.charCodeAt(t);

return r;
}, Ae = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Fe = (e, r, t) => {
}, Ae = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Ee = (e, r, t) => {
for (var n = r + t, a = r; e[a] && !(a >= n); )

@@ -974,17 +975,17 @@ ++a;

for (var i = ""; r < a; ) {
var o = e[r++];
if (!(o & 128)) {
i += String.fromCharCode(o);
var s = e[r++];
if (!(s & 128)) {
i += String.fromCharCode(s);
continue;
}
var s = e[r++] & 63;
if ((o & 224) == 192) {
i += String.fromCharCode((o & 31) << 6 | s);
var o = e[r++] & 63;
if ((s & 224) == 192) {
i += String.fromCharCode((s & 31) << 6 | o);
continue;
}
var u = e[r++] & 63;
if ((o & 240) == 224 ? o = (o & 15) << 12 | s << 6 | u : o = (o & 7) << 18 | s << 12 | u << 6 | e[r++] & 63, o < 65536)
i += String.fromCharCode(o);
if ((s & 240) == 224 ? s = (s & 15) << 12 | o << 6 | u : s = (s & 7) << 18 | o << 12 | u << 6 | e[r++] & 63, s < 65536)
i += String.fromCharCode(s);
else {
var c = o - 65536;
var c = s - 65536;
i += String.fromCharCode(55296 | c >> 10, 56320 | c & 1023);

@@ -994,15 +995,15 @@ }

return i;
}, zr = (e, r) => e ? Fe(R, e, r) : "", tn = (e, r) => {
}, zr = (e, r) => e ? Ee(R, e, r) : "", an = (e, r) => {
r = S(r);
var t = r === "std::string";
U(e, {
I(e, {
name: r,
fromWireType(n) {
var a = y[n >> 2], i = n + 4, o;
var a = y[n >> 2], i = n + 4, s;
if (t)
for (var s = i, u = 0; u <= a; ++u) {
for (var o = i, u = 0; u <= a; ++u) {
var c = i + u;
if (u == a || R[c] == 0) {
var v = c - s, h = zr(s, v);
o === void 0 ? o = h : (o += "\0", o += h), s = c + 1;
var v = c - o, h = zr(o, v);
s === void 0 ? s = h : (s += "\0", s += h), o = c + 1;
}

@@ -1013,14 +1014,14 @@ }

p[u] = String.fromCharCode(R[i + u]);
o = p.join("");
s = p.join("");
}
return Y(n), o;
return Y(n), s;
},
toWireType(n, a) {
a instanceof ArrayBuffer && (a = new Uint8Array(a));
var i, o = typeof a == "string";
o || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || g("Cannot pass non-string to std::string"), t && o ? i = Ce(a) : i = a.length;
var s = Zr(4 + i + 1), u = s + 4;
if (y[s >> 2] = i, t && o)
en(a, u, i + 1);
else if (o)
var i, s = typeof a == "string";
s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || g("Cannot pass non-string to std::string"), t && s ? i = Ce(a) : i = a.length;
var o = Zr(4 + i + 1), u = o + 4;
if (y[o >> 2] = i, t && s)
nn(a, u, i + 1);
else if (s)
for (var c = 0; c < i; ++c) {

@@ -1033,5 +1034,5 @@ var v = a.charCodeAt(c);

R[u + c] = a[c];
return n !== null && n.push(Y, s), s;
return n !== null && n.push(Y, o), o;
},
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: tr,

@@ -1042,15 +1043,15 @@ destructorFunction(n) {

});
}, Ee = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, nn = (e, r) => {
}, Fe = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, sn = (e, r) => {
for (var t = e, n = t >> 1, a = n + r / 2; !(n >= a) && rr[n]; )
++n;
if (t = n << 1, t - e > 32 && Ee)
return Ee.decode(R.subarray(e, t));
for (var i = "", o = 0; !(o >= r / 2); ++o) {
var s = G[e + o * 2 >> 1];
if (s == 0)
if (t = n << 1, t - e > 32 && Fe)
return Fe.decode(R.subarray(e, t));
for (var i = "", s = 0; !(s >= r / 2); ++s) {
var o = G[e + s * 2 >> 1];
if (o == 0)
break;
i += String.fromCharCode(s);
i += String.fromCharCode(o);
}
return i;
}, an = (e, r, t) => {
}, on = (e, r, t) => {
var n;

@@ -1060,8 +1061,8 @@ if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2)

t -= 2;
for (var a = r, i = t < e.length * 2 ? t / 2 : e.length, o = 0; o < i; ++o) {
var s = e.charCodeAt(o);
G[r >> 1] = s, r += 2;
for (var a = r, i = t < e.length * 2 ? t / 2 : e.length, s = 0; s < i; ++s) {
var o = e.charCodeAt(s);
G[r >> 1] = o, r += 2;
}
return G[r >> 1] = 0, r - a;
}, on = (e) => e.length * 2, sn = (e, r) => {
}, un = (e) => e.length * 2, ln = (e, r) => {
for (var t = 0, n = ""; !(t >= r / 4); ) {

@@ -1078,17 +1079,17 @@ var a = D[e + t * 4 >> 2];

return n;
}, un = (e, r, t) => {
}, fn = (e, r, t) => {
var n;
if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4)
return 0;
for (var a = r, i = a + t - 4, o = 0; o < e.length; ++o) {
var s = e.charCodeAt(o);
if (s >= 55296 && s <= 57343) {
var u = e.charCodeAt(++o);
s = 65536 + ((s & 1023) << 10) | u & 1023;
for (var a = r, i = a + t - 4, s = 0; s < e.length; ++s) {
var o = e.charCodeAt(s);
if (o >= 55296 && o <= 57343) {
var u = e.charCodeAt(++s);
o = 65536 + ((o & 1023) << 10) | u & 1023;
}
if (D[r >> 2] = s, r += 4, r + 4 > i)
if (D[r >> 2] = o, r += 4, r + 4 > i)
break;
}
return D[r >> 2] = 0, r - a;
}, ln = (e) => {
}, cn = (e) => {
for (var r = 0, t = 0; t < e.length; ++t) {

@@ -1099,10 +1100,10 @@ var n = e.charCodeAt(t);

return r;
}, fn = (e, r, t) => {
}, vn = (e, r, t) => {
t = S(t);
var n, a, i, o;
r === 2 ? (n = nn, a = an, o = on, i = (s) => rr[s >> 1]) : r === 4 && (n = sn, a = un, o = ln, i = (s) => y[s >> 2]), U(e, {
var n, a, i, s;
r === 2 ? (n = sn, a = on, s = un, i = (o) => rr[o >> 1]) : r === 4 && (n = ln, a = fn, s = cn, i = (o) => y[o >> 2]), I(e, {
name: t,
fromWireType: (s) => {
for (var u = y[s >> 2], c, v = s + 4, h = 0; h <= u; ++h) {
var p = s + 4 + h * r;
fromWireType: (o) => {
for (var u = y[o >> 2], c, v = o + 4, h = 0; h <= u; ++h) {
var p = o + 4 + h * r;
if (h == u || i(p) == 0) {

@@ -1113,16 +1114,16 @@ var _ = p - v, C = n(v, _);

}
return Y(s), c;
return Y(o), c;
},
toWireType: (s, u) => {
toWireType: (o, u) => {
typeof u != "string" && g(`Cannot pass non-string to C++ string type ${t}`);
var c = o(u), v = Zr(4 + c + r);
return y[v >> 2] = c / r, a(u, v + 4, c + r), s !== null && s.push(Y, v), v;
var c = s(u), v = Zr(4 + c + r);
return y[v >> 2] = c / r, a(u, v + 4, c + r), o !== null && o.push(Y, v), v;
},
argPackAdvance: I,
argPackAdvance: U,
readValueFromPointer: tr,
destructorFunction(s) {
Y(s);
destructorFunction(o) {
Y(o);
}
});
}, cn = (e, r, t, n, a, i) => {
}, dn = (e, r, t, n, a, i) => {
_r[e] = {

@@ -1134,3 +1135,3 @@ name: S(r),

};
}, vn = (e, r, t, n, a, i, o, s, u, c) => {
}, pn = (e, r, t, n, a, i, s, o, u, c) => {
_r[e].fields.push({

@@ -1141,8 +1142,8 @@ fieldName: S(r),

getterContext: i,
setterArgumentType: o,
setter: k(s, u),
setterArgumentType: s,
setter: k(o, u),
setterContext: c
});
}, dn = (e, r) => {
r = S(r), U(e, {
}, hn = (e, r) => {
r = S(r), I(e, {
isVoid: !0,

@@ -1156,4 +1157,4 @@ name: r,

});
}, Xr = [], pn = (e, r, t, n) => (e = Xr[e], r = V.toValue(r), e(null, r, t, n)), hn = {}, _n = (e) => {
var r = hn[e];
}, Xr = [], _n = (e, r, t, n) => (e = Xr[e], r = V.toValue(r), e(null, r, t, n)), gn = {}, yn = (e) => {
var r = gn[e];
return r === void 0 ? S(e) : r;

@@ -1171,34 +1172,34 @@ }, Se = () => {

throw Error("unable to get global object.");
}, gn = (e) => e === 0 ? V.toHandle(Se()) : (e = _n(e), V.toHandle(Se()[e])), yn = (e) => {
}, mn = (e) => e === 0 ? V.toHandle(Se()) : (e = yn(e), V.toHandle(Se()[e])), $n = (e) => {
var r = Xr.length;
return Xr.push(e), r;
}, mn = (e, r) => {
}, bn = (e, r) => {
for (var t = new Array(e), n = 0; n < e; ++n)
t[n] = Nr(y[r + n * 4 >> 2], "parameter " + n);
return t;
}, $n = Reflect.construct, bn = (e, r, t) => {
}, wn = Reflect.construct, Tn = (e, r, t) => {
var n = [], a = e.toWireType(n, t);
return n.length && (y[r >> 2] = V.toHandle(n)), a;
}, wn = (e, r, t) => {
var n = mn(e, r), a = n.shift();
}, Pn = (e, r, t) => {
var n = bn(e, r), a = n.shift();
e--;
var i = new Array(e), o = (u, c, v, h) => {
var i = new Array(e), s = (u, c, v, h) => {
for (var p = 0, _ = 0; _ < e; ++_)
i[_] = n[_].readValueFromPointer(h + p), p += n[_].argPackAdvance;
var C = t === 1 ? $n(c, i) : c.apply(u, i);
return bn(a, v, C);
}, s = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${a.name}>`;
return yn(sr(s, o));
}, Tn = (e) => {
var C = t === 1 ? wn(c, i) : c.apply(u, i);
return Tn(a, v, C);
}, o = `methodCaller<(${n.map((u) => u.name).join(", ")}) => ${a.name}>`;
return $n(or(o, s));
}, Cn = (e) => {
e > 9 && (x[e + 1] += 1);
}, Pn = (e) => {
}, An = (e) => {
var r = V.toValue(e);
kr(r), Br(e);
}, Cn = (e, r) => {
}, En = (e, r) => {
e = Nr(e, "_emval_take_value");
var t = e.readValueFromPointer(r);
return V.toHandle(t);
}, An = () => {
}, Fn = () => {
dr("");
}, Fn = (e, r, t) => R.copyWithin(e, r, r + t), En = () => 2147483648, Sn = (e) => {
}, Sn = (e, r, t) => R.copyWithin(e, r, r + t), Rn = () => 2147483648, Dn = (e) => {
var r = vr.buffer, t = (e - r.byteLength + 65535) / 65536;

@@ -1209,6 +1210,6 @@ try {

}
}, Rn = (e) => {
}, Wn = (e) => {
var r = R.length;
e >>>= 0;
var t = En();
var t = Rn();
if (e > t)

@@ -1219,8 +1220,8 @@ return !1;

i = Math.min(i, e + 100663296);
var o = Math.min(t, n(Math.max(e, i), 65536)), s = Sn(o);
if (s)
var s = Math.min(t, n(Math.max(e, i), 65536)), o = Dn(s);
if (o)
return !0;
}
return !1;
}, Gr = {}, Dn = () => Kr || "./this.program", ur = () => {
}, Gr = {}, On = () => Kr || "./this.program", ur = () => {
if (!ur.strings) {

@@ -1234,3 +1235,3 @@ var e = (typeof navigator == "object" && navigator.languages && navigator.languages[0] || "C").replace("-", "_") + ".UTF-8", r = {

LANG: e,
_: Dn()
_: On()
};

@@ -1245,13 +1246,13 @@ for (var t in Gr)

return ur.strings;
}, Wn = (e, r) => {
}, kn = (e, r) => {
for (var t = 0; t < e.length; ++t)
O[r++] = e.charCodeAt(t);
O[r] = 0;
}, On = (e, r) => {
}, Mn = (e, r) => {
var t = 0;
return ur().forEach((n, a) => {
var i = r + t;
y[e + a * 4 >> 2] = i, Wn(n, i), t += n.length + 1;
y[e + a * 4 >> 2] = i, kn(n, i), t += n.length + 1;
}), 0;
}, kn = (e, r) => {
}, jn = (e, r) => {
var t = ur();

@@ -1261,23 +1262,23 @@ y[e >> 2] = t.length;

return t.forEach((a) => n += a.length + 1), y[r >> 2] = n, 0;
}, jn = (e) => 52;
function Mn(e, r, t, n, a) {
}, In = (e) => 52;
function Un(e, r, t, n, a) {
return 70;
}
var Un = [null, [], []], In = (e, r) => {
var t = Un[e];
r === 0 || r === 10 ? ((e === 1 ? Be : X)(Fe(t, 0)), t.length = 0) : t.push(r);
}, Hn = (e, r, t, n) => {
var Hn = [null, [], []], xn = (e, r) => {
var t = Hn[e];
r === 0 || r === 10 ? ((e === 1 ? Le : X)(Ee(t, 0)), t.length = 0) : t.push(r);
}, Vn = (e, r, t, n) => {
for (var a = 0, i = 0; i < t; i++) {
var o = y[r >> 2], s = y[r + 4 >> 2];
var s = y[r >> 2], o = y[r + 4 >> 2];
r += 8;
for (var u = 0; u < s; u++)
In(e, R[o + u]);
a += s;
for (var u = 0; u < o; u++)
xn(e, R[s + u]);
a += o;
}
return y[n >> 2] = a, 0;
}, xn = (e) => e, Pr = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Vn = (e, r) => {
}, Yn = (e) => e, Pr = (e) => e % 4 === 0 && (e % 100 !== 0 || e % 400 === 0), Bn = (e, r) => {
for (var t = 0, n = 0; n <= r; t += e[n++])
;
return t;
}, Re = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], De = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Yn = (e, r) => {
}, Re = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], De = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Nn = (e, r) => {
for (var t = new Date(e.getTime()); r > 0; ) {

@@ -1292,9 +1293,9 @@ var n = Pr(t.getFullYear()), a = t.getMonth(), i = (n ? Re : De)[a];

};
function Bn(e, r, t) {
function Ln(e, r, t) {
var n = t > 0 ? t : Ce(e) + 1, a = new Array(n), i = Pe(e, a, 0, a.length);
return r && (a.length = i), a;
}
var Nn = (e, r) => {
var zn = (e, r) => {
O.set(e, r);
}, Ln = (e, r, t, n) => {
}, Xn = (e, r, t, n) => {
var a = y[n + 40 >> 2], i = {

@@ -1312,3 +1313,3 @@ tm_sec: D[n >> 2],

tm_zone: a ? zr(a) : ""
}, o = zr(t), s = {
}, s = zr(t), o = {
"%c": "%a %b %d %H:%M:%S %Y",

@@ -1343,9 +1344,9 @@ "%D": "%m/%d/%y",

};
for (var u in s)
o = o.replace(new RegExp(u, "g"), s[u]);
for (var u in o)
s = s.replace(new RegExp(u, "g"), o[u]);
var c = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], v = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
function h(f, d, A) {
for (var F = typeof f == "number" ? f.toString() : f || ""; F.length < d; )
F = A[0] + F;
return F;
for (var E = typeof f == "number" ? f.toString() : f || ""; E.length < d; )
E = A[0] + E;
return E;
}

@@ -1359,4 +1360,4 @@ function p(f, d) {

}
var F;
return (F = A(f.getFullYear() - d.getFullYear())) === 0 && (F = A(f.getMonth() - d.getMonth())) === 0 && (F = A(f.getDate() - d.getDate())), F;
var E;
return (E = A(f.getFullYear() - d.getFullYear())) === 0 && (E = A(f.getMonth() - d.getMonth())) === 0 && (E = A(f.getDate() - d.getDate())), E;
}

@@ -1382,3 +1383,3 @@ function C(f) {

function W(f) {
var d = Yn(new Date(f.tm_year + 1900, 0, 1), f.tm_yday), A = new Date(d.getFullYear(), 0, 4), F = new Date(d.getFullYear() + 1, 0, 4), K = C(A), Ar = C(F);
var d = Nn(new Date(f.tm_year + 1900, 0, 1), f.tm_yday), A = new Date(d.getFullYear(), 0, 4), E = new Date(d.getFullYear() + 1, 0, 4), K = C(A), Ar = C(E);
return _(K, d) <= 0 ? _(Ar, d) <= 0 ? d.getFullYear() + 1 : d.getFullYear() : d.getFullYear() - 1;

@@ -1404,3 +1405,3 @@ }

},
"%j": (f) => p(f.tm_mday + Vn(Pr(f.tm_year + 1900) ? Re : De, f.tm_mon - 1), 3),
"%j": (f) => p(f.tm_mday + Bn(Pr(f.tm_year + 1900) ? Re : De, f.tm_mon - 1), 3),
"%m": (f) => p(f.tm_mon + 1, 2),

@@ -1422,4 +1423,4 @@ "%M": (f) => p(f.tm_min, 2),

if (d == 53) {
var F = (f.tm_wday + 371 - f.tm_yday) % 7;
F != 4 && (F != 3 || !Pr(f.tm_year)) && (d = 1);
var E = (f.tm_wday + 371 - f.tm_yday) % 7;
E != 4 && (E != 3 || !Pr(f.tm_year)) && (d = 1);
}

@@ -1447,9 +1448,9 @@ } else {

};
o = o.replace(/%%/g, "\0\0");
s = s.replace(/%%/g, "\0\0");
for (var u in $)
o.includes(u) && (o = o.replace(new RegExp(u, "g"), $[u](i)));
o = o.replace(/\0\0/g, "%");
var E = Bn(o, !1);
return E.length > r ? 0 : (Nn(E, e), E.length - 1);
}, zn = (e, r, t, n, a) => Ln(e, r, t, n);
s.includes(u) && (s = s.replace(new RegExp(u, "g"), $[u](i)));
s = s.replace(/\0\0/g, "%");
var F = Ln(s, !1);
return F.length > r ? 0 : (zn(F, e), F.length - 1);
}, Gn = (e, r, t, n, a) => Xn(e, r, t, n);
ce = l.InternalError = class extends Error {

@@ -1459,79 +1460,79 @@ constructor(r) {

}
}, dt(), J = l.BindingError = class extends Error {
}, ht(), J = l.BindingError = class extends Error {
constructor(r) {
super(r), this.name = "BindingError";
}
}, Ct(), bt(), Ot(), $e = l.UnboundTypeError = Ut(Error, "UnboundTypeError"), Bt();
var Xn = {
s: tt,
u: nt,
b: it,
g: ot,
q: st,
K: ut,
f: lt,
Y: ft,
d: at,
ha: ct,
U: vt,
ba: ht,
fa: It,
ea: xt,
w: Vt,
}, Et(), Tt(), Mt(), $e = l.UnboundTypeError = Ht(Error, "UnboundTypeError"), Lt();
var Zn = {
s: at,
u: it,
b: ot,
g: ut,
q: lt,
K: ft,
f: ct,
Y: vt,
d: st,
ha: dt,
U: pt,
ba: gt,
fa: xt,
ea: Yt,
w: Bt,
aa: Te,
x: zt,
h: Xt,
O: Zt,
P: qt,
t: Kt,
o: Qt,
ga: rn,
N: tn,
C: fn,
A: cn,
ia: vn,
ca: dn,
E: pn,
x: Gt,
h: Zt,
O: Jt,
P: Kt,
t: rn,
o: en,
ga: tn,
N: an,
C: vn,
A: dn,
ia: pn,
ca: hn,
E: _n,
ka: Br,
la: gn,
M: wn,
Q: Tn,
R: Pn,
da: Cn,
B: An,
$: Fn,
Z: Rn,
W: On,
X: kn,
_: jn,
T: Mn,
L: Hn,
F: la,
D: Kn,
G: ua,
m: fa,
a: Gn,
e: ra,
p: Jn,
k: sa,
I: ia,
v: na,
H: oa,
z: va,
S: pa,
l: ea,
j: Qn,
c: qn,
n: Zn,
J: aa,
r: ca,
i: ta,
y: da,
ja: xn,
V: zn
}, w = et(), Y = l._free = (e) => (Y = l._free = w.oa)(e), Zr = l._malloc = (e) => (Zr = l._malloc = w.pa)(e), We = (e) => (We = w.ra)(e), m = (e, r) => (m = w.sa)(e, r), lr = (e) => (lr = w.ta)(e), T = () => (T = w.ua)(), P = (e) => (P = w.va)(e), Oe = (e) => (Oe = w.wa)(e), ke = (e) => (ke = w.xa)(e), je = (e, r, t) => (je = w.ya)(e, r, t), Me = (e) => (Me = w.za)(e);
l.dynCall_viijii = (e, r, t, n, a, i, o) => (l.dynCall_viijii = w.Aa)(e, r, t, n, a, i, o), l.dynCall_jiji = (e, r, t, n, a) => (l.dynCall_jiji = w.Ba)(e, r, t, n, a);
var Ue = l.dynCall_jiiii = (e, r, t, n, a) => (Ue = l.dynCall_jiiii = w.Ca)(e, r, t, n, a);
l.dynCall_iiiiij = (e, r, t, n, a, i, o) => (l.dynCall_iiiiij = w.Da)(e, r, t, n, a, i, o), l.dynCall_iiiiijj = (e, r, t, n, a, i, o, s, u) => (l.dynCall_iiiiijj = w.Ea)(e, r, t, n, a, i, o, s, u), l.dynCall_iiiiiijj = (e, r, t, n, a, i, o, s, u, c) => (l.dynCall_iiiiiijj = w.Fa)(e, r, t, n, a, i, o, s, u, c);
function Gn(e, r) {
la: mn,
M: Pn,
Q: Cn,
R: An,
da: En,
B: Fn,
$: Sn,
Z: Wn,
W: Mn,
X: jn,
_: In,
T: Un,
L: Vn,
F: ca,
D: ra,
G: fa,
m: va,
a: qn,
e: ta,
p: Qn,
k: la,
I: oa,
v: ia,
H: ua,
z: pa,
S: _a,
l: na,
j: ea,
c: Kn,
n: Jn,
J: sa,
r: da,
i: aa,
y: ha,
ja: Yn,
V: Gn
}, w = nt(), Y = l._free = (e) => (Y = l._free = w.oa)(e), Zr = l._malloc = (e) => (Zr = l._malloc = w.pa)(e), We = (e) => (We = w.ra)(e), m = (e, r) => (m = w.sa)(e, r), lr = (e) => (lr = w.ta)(e), T = () => (T = w.ua)(), P = (e) => (P = w.va)(e), Oe = (e) => (Oe = w.wa)(e), ke = (e) => (ke = w.xa)(e), Me = (e, r, t) => (Me = w.ya)(e, r, t), je = (e) => (je = w.za)(e);
l.dynCall_viijii = (e, r, t, n, a, i, s) => (l.dynCall_viijii = w.Aa)(e, r, t, n, a, i, s), l.dynCall_jiji = (e, r, t, n, a) => (l.dynCall_jiji = w.Ba)(e, r, t, n, a);
var Ie = l.dynCall_jiiii = (e, r, t, n, a) => (Ie = l.dynCall_jiiii = w.Ca)(e, r, t, n, a);
l.dynCall_iiiiij = (e, r, t, n, a, i, s) => (l.dynCall_iiiiij = w.Da)(e, r, t, n, a, i, s), l.dynCall_iiiiijj = (e, r, t, n, a, i, s, o, u) => (l.dynCall_iiiiijj = w.Ea)(e, r, t, n, a, i, s, o, u), l.dynCall_iiiiiijj = (e, r, t, n, a, i, s, o, u, c) => (l.dynCall_iiiiiijj = w.Fa)(e, r, t, n, a, i, s, o, u, c);
function qn(e, r) {
var t = T();

@@ -1546,3 +1547,3 @@ try {

}
function Zn(e, r, t, n) {
function Jn(e, r, t, n) {
var a = T();

@@ -1557,3 +1558,3 @@ try {

}
function qn(e, r, t) {
function Kn(e, r, t) {
var n = T();

@@ -1568,3 +1569,3 @@ try {

}
function Jn(e, r, t, n) {
function Qn(e, r, t, n) {
var a = T();

@@ -1579,13 +1580,13 @@ try {

}
function Kn(e, r, t, n, a) {
function ra(e, r, t, n, a) {
var i = T();
try {
return b(e)(r, t, n, a);
} catch (o) {
if (P(i), o !== o + 0)
throw o;
} catch (s) {
if (P(i), s !== s + 0)
throw s;
m(1, 0);
}
}
function Qn(e, r) {
function ea(e, r) {
var t = T();

@@ -1600,3 +1601,3 @@ try {

}
function ra(e, r, t) {
function ta(e, r, t) {
var n = T();

@@ -1611,3 +1612,3 @@ try {

}
function ea(e) {
function na(e) {
var r = T();

@@ -1622,6 +1623,6 @@ try {

}
function ta(e, r, t, n, a, i, o, s, u, c, v) {
function aa(e, r, t, n, a, i, s, o, u, c, v) {
var h = T();
try {
b(e)(r, t, n, a, i, o, s, u, c, v);
b(e)(r, t, n, a, i, s, o, u, c, v);
} catch (p) {

@@ -1633,8 +1634,8 @@ if (P(h), p !== p + 0)

}
function na(e, r, t, n, a, i, o) {
var s = T();
function ia(e, r, t, n, a, i, s) {
var o = T();
try {
return b(e)(r, t, n, a, i, o);
return b(e)(r, t, n, a, i, s);
} catch (u) {
if (P(s), u !== u + 0)
if (P(o), u !== u + 0)
throw u;

@@ -1644,26 +1645,26 @@ m(1, 0);

}
function aa(e, r, t, n, a) {
function sa(e, r, t, n, a) {
var i = T();
try {
b(e)(r, t, n, a);
} catch (o) {
if (P(i), o !== o + 0)
throw o;
} catch (s) {
if (P(i), s !== s + 0)
throw s;
m(1, 0);
}
}
function ia(e, r, t, n, a, i) {
var o = T();
function oa(e, r, t, n, a, i) {
var s = T();
try {
return b(e)(r, t, n, a, i);
} catch (s) {
if (P(o), s !== s + 0)
throw s;
} catch (o) {
if (P(s), o !== o + 0)
throw o;
m(1, 0);
}
}
function oa(e, r, t, n, a, i, o, s) {
function ua(e, r, t, n, a, i, s, o) {
var u = T();
try {
return b(e)(r, t, n, a, i, o, s);
return b(e)(r, t, n, a, i, s, o);
} catch (c) {

@@ -1675,13 +1676,13 @@ if (P(u), c !== c + 0)

}
function sa(e, r, t, n, a) {
function la(e, r, t, n, a) {
var i = T();
try {
return b(e)(r, t, n, a);
} catch (o) {
if (P(i), o !== o + 0)
throw o;
} catch (s) {
if (P(i), s !== s + 0)
throw s;
m(1, 0);
}
}
function ua(e, r, t, n) {
function fa(e, r, t, n) {
var a = T();

@@ -1696,3 +1697,3 @@ try {

}
function la(e, r, t, n) {
function ca(e, r, t, n) {
var a = T();

@@ -1707,3 +1708,3 @@ try {

}
function fa(e) {
function va(e) {
var r = T();

@@ -1718,6 +1719,6 @@ try {

}
function ca(e, r, t, n, a, i, o, s) {
function da(e, r, t, n, a, i, s, o) {
var u = T();
try {
b(e)(r, t, n, a, i, o, s);
b(e)(r, t, n, a, i, s, o);
} catch (c) {

@@ -1729,6 +1730,6 @@ if (P(u), c !== c + 0)

}
function va(e, r, t, n, a, i, o, s, u, c, v, h) {
function pa(e, r, t, n, a, i, s, o, u, c, v, h) {
var p = T();
try {
return b(e)(r, t, n, a, i, o, s, u, c, v, h);
return b(e)(r, t, n, a, i, s, o, u, c, v, h);
} catch (_) {

@@ -1740,19 +1741,19 @@ if (P(p), _ !== _ + 0)

}
function da(e, r, t, n, a, i, o, s, u, c, v, h, p, _, C, W) {
function ha(e, r, t, n, a, i, s, o, u, c, v, h, p, _, C, W) {
var $ = T();
try {
b(e)(r, t, n, a, i, o, s, u, c, v, h, p, _, C, W);
} catch (E) {
if (P($), E !== E + 0)
throw E;
b(e)(r, t, n, a, i, s, o, u, c, v, h, p, _, C, W);
} catch (F) {
if (P($), F !== F + 0)
throw F;
m(1, 0);
}
}
function pa(e, r, t, n, a) {
function _a(e, r, t, n, a) {
var i = T();
try {
return Ue(e, r, t, n, a);
} catch (o) {
if (P(i), o !== o + 0)
throw o;
return Ie(e, r, t, n, a);
} catch (s) {
if (P(i), s !== s + 0)
throw s;
m(1, 0);

@@ -1763,9 +1764,9 @@ }

er = function e() {
Cr || Ie(), Cr || (er = e);
Cr || Ue(), Cr || (er = e);
};
function Ie() {
if (B > 0 || (Ne(), B > 0))
function Ue() {
if (B > 0 || (ze(), B > 0))
return;
function e() {
Cr || (Cr = !0, l.calledRun = !0, !ee && (Le(), qr(l), l.onRuntimeInitialized && l.onRuntimeInitialized(), ze()));
Cr || (Cr = !0, l.calledRun = !0, !ee && (Xe(), qr(l), l.onRuntimeInitialized && l.onRuntimeInitialized(), Ge()));
}

@@ -1781,28 +1782,28 @@ l.setStatus ? (l.setStatus("Running..."), setTimeout(function() {

l.preInit.pop()();
return Ie(), z.ready;
return Ue(), z.ready;
};
})();
function wa(j) {
return ha(
function Pa(M) {
return ga(
Sr,
j
M
);
}
function Ta(j) {
return _a(
function Ca(M) {
return ya(
Sr,
j
M
);
}
async function Pa(j, z) {
return ga(
async function Aa(M, z) {
return ma(
Sr,
j,
M,
z
);
}
async function Ca(j, z) {
return ya(
async function Ea(M, z) {
return $a(
Sr,
j,
M,
z

@@ -1812,16 +1813,16 @@ );

export {
Ea as barcodeFormats,
Sa as binarizers,
Ra as characterSets,
Da as contentTypes,
Wa as defaultDecodeHints,
Oa as defaultReaderOptions,
ka as eanAddOnSymbols,
wa as getZXingModule,
ja as purgeZXingModule,
Ca as readBarcodesFromImageData,
Pa as readBarcodesFromImageFile,
Ma as readOutputEccLevels,
Ta as setZXingModuleOverrides,
Ua as textModes
Ra as barcodeFormats,
Da as binarizers,
Wa as characterSets,
Oa as contentTypes,
ka as defaultDecodeHints,
Ma as defaultReaderOptions,
ja as eanAddOnSymbols,
Pa as getZXingModule,
Ia as purgeZXingModule,
Ea as readBarcodesFromImageData,
Aa as readBarcodesFromImageFile,
Ua as readOutputEccLevels,
Ca as setZXingModuleOverrides,
Ha as textModes
};

@@ -1,18 +0,19 @@

import { g as Vt, s as Ht, w as Bt } from "../core-aa7d7gNw.js";
import { b as Qt, e as Yt, j as zt, j as rn, p as en, k as tn } from "../core-aa7d7gNw.js";
import { g as Bt, s as Nt, w as Lt } from "../core-2TjCkkNo.js";
import { b as zt, e as rn, j as en, j as tn, p as nn, k as an } from "../core-2TjCkkNo.js";
var mr = (() => {
var W = typeof document < "u" && document.currentScript ? document.currentScript.src : void 0;
return function(J = {}) {
var u = J, yr, Q;
return function(Y = {}) {
var zr;
var u = Y, yr, J;
u.ready = new Promise((r, e) => {
yr = r, Q = e;
yr = r, J = e;
});
var br = Object.assign({}, u), wr = typeof window == "object", Tr = typeof Bun < "u", Y = typeof importScripts == "function";
var br = Object.assign({}, u), wr = typeof window == "object", Tr = typeof Bun < "u", re = typeof ((zr = globalThis.WebAssembly) == null ? void 0 : zr.instantiate) == "function", Q = typeof importScripts == "function";
typeof process == "object" && typeof process.versions == "object" && process.versions.node;
var A = "";
function zr(r) {
function ee(r) {
return u.locateFile ? u.locateFile(r, A) : A + r;
}
var sr;
(wr || Y || Tr) && (Y ? A = self.location.href : typeof document < "u" && document.currentScript && (A = document.currentScript.src), W && (A = W), A.startsWith("blob:") ? A = "" : A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1), Y && (sr = (r) => {
(wr || Q || Tr) && (Q ? A = self.location.href : typeof document < "u" && document.currentScript && (A = document.currentScript.src), W && (A = W), A.startsWith("blob:") ? A = "" : A = A.substr(0, A.replace(/[?#].*/, "").lastIndexOf("/") + 1), Q && (sr = (r) => {
var e = new XMLHttpRequest();

@@ -25,42 +26,42 @@ return e.open("GET", r, !1), e.responseType = "arraybuffer", e.send(null), new Uint8Array(e.response);

u.wasmBinary && (N = u.wasmBinary), typeof WebAssembly != "object" && ur("no native wasm support detected");
var z, $r = !1, k, h, D, X, I, d, Ar, Er;
function Cr() {
var z, $r = !1, k, h, x, L, D, d, Ar, Er;
function Rr() {
var r = z.buffer;
u.HEAP8 = k = new Int8Array(r), u.HEAP16 = D = new Int16Array(r), u.HEAPU8 = h = new Uint8Array(r), u.HEAPU16 = X = new Uint16Array(r), u.HEAP32 = I = new Int32Array(r), u.HEAPU32 = d = new Uint32Array(r), u.HEAPF32 = Ar = new Float32Array(r), u.HEAPF64 = Er = new Float64Array(r);
u.HEAP8 = k = new Int8Array(r), u.HEAP16 = x = new Int16Array(r), u.HEAPU8 = h = new Uint8Array(r), u.HEAPU16 = L = new Uint16Array(r), u.HEAP32 = D = new Int32Array(r), u.HEAPU32 = d = new Uint32Array(r), u.HEAPF32 = Ar = new Float32Array(r), u.HEAPF64 = Er = new Float64Array(r);
}
var Rr = [], Fr = [], Pr = [];
function re() {
var Cr = [], Pr = [], Fr = [];
function te() {
if (u.preRun)
for (typeof u.preRun == "function" && (u.preRun = [u.preRun]); u.preRun.length; )
ne(u.preRun.shift());
fr(Rr);
ie(u.preRun.shift());
fr(Cr);
}
function ee() {
fr(Fr);
function ne() {
fr(Pr);
}
function te() {
function ae() {
if (u.postRun)
for (typeof u.postRun == "function" && (u.postRun = [u.postRun]); u.postRun.length; )
ie(u.postRun.shift());
fr(Pr);
se(u.postRun.shift());
fr(Fr);
}
function ne(r) {
Rr.unshift(r);
function ie(r) {
Cr.unshift(r);
}
function ae(r) {
function oe(r) {
Pr.unshift(r);
}
function se(r) {
Fr.unshift(r);
}
function ie(r) {
Pr.unshift(r);
}
var U = 0, L = null;
function oe(r) {
var U = 0, X = null;
function ue(r) {
var e;
U++, (e = u.monitorRunDependencies) === null || e === void 0 || e.call(u, U);
}
function se(r) {
function fe(r) {
var e;
if (U--, (e = u.monitorRunDependencies) === null || e === void 0 || e.call(u, U), U == 0 && L) {
var t = L;
L = null, t();
if (U--, (e = u.monitorRunDependencies) === null || e === void 0 || e.call(u, U), U == 0 && X) {
var t = X;
X = null, t();
}

@@ -72,6 +73,6 @@ }

var t = new WebAssembly.RuntimeError(r);
throw Q(t), t;
throw J(t), t;
}
var ue = "data:application/octet-stream;base64,", Wr = (r) => r.startsWith(ue), O;
O = "zxing_writer.wasm", Wr(O) || (O = zr(O));
var ce = "data:application/octet-stream;base64,", Wr = (r) => r.startsWith(ce), O;
O = "zxing_writer.wasm", Wr(O) || (O = ee(O));
function kr(r) {

@@ -84,4 +85,4 @@ if (r == O && N)

}
function fe(r) {
return !N && (wr || Y || Tr) && typeof fetch == "function" ? fetch(r, {
function ve(r) {
return !N && (wr || Q || Tr || re) && typeof fetch == "function" ? fetch(r, {
credentials: "same-origin"

@@ -95,7 +96,7 @@ }).then((e) => {

function Sr(r, e, t) {
return fe(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => {
return ve(r).then((n) => WebAssembly.instantiate(n, e)).then(t, (n) => {
B(`failed to asynchronously prepare wasm: ${n}`), ur(n);
});
}
function ce(r, e, t, n) {
function le(r, e, t, n) {
return !r && typeof WebAssembly.instantiateStreaming == "function" && !Wr(e) && typeof fetch == "function" ? fetch(e, {

@@ -110,10 +111,10 @@ credentials: "same-origin"

}
function ve() {
function de() {
var r = {
a: Rt
a: Ft
};
function e(n, a) {
return p = n.exports, z = p.R, Cr(), Br = p.V, ae(p.S), se(), p;
return p = n.exports, z = p.R, Rr(), Br = p.V, oe(p.S), fe(), p;
}
oe();
ue();
function t(n) {

@@ -126,5 +127,5 @@ e(n.instance);

} catch (n) {
B(`Module.instantiateWasm callback failed with error: ${n}`), Q(n);
B(`Module.instantiateWasm callback failed with error: ${n}`), J(n);
}
return ce(N, O, r, t).catch(Q), {};
return le(N, O, r, t).catch(J), {};
}

@@ -136,9 +137,9 @@ var fr = (r) => {

u.noExitRuntime;
var Ur = [], le = (r) => {
var Ur = [], _e = (r) => {
var e = new cr(r);
return e.get_caught() || e.set_caught(!0), e.set_rethrown(!1), Ur.push(e), Kr(e.excPtr), e.get_exception_ptr();
}, j = 0, de = () => {
}, M = 0, pe = () => {
w(0, 0);
var r = Ur.pop();
Gr(r.excPtr), j = 0;
Gr(r.excPtr), M = 0;
};

@@ -183,3 +184,3 @@ class cr {

get_exception_ptr() {
var e = Qr(this.get_type());
var e = Jr(this.get_type());
if (e)

@@ -191,6 +192,6 @@ return d[this.excPtr >> 2];

}
var _e = (r) => {
throw j || (j = r), j;
var he = (r) => {
throw M || (M = r), M;
}, vr = (r) => {
var e = j;
var e = M;
if (!e)

@@ -208,9 +209,9 @@ return q(0), 0;

var s = t.ptr + 16;
if (Jr(i, n, s))
if (Yr(i, n, s))
return q(i), e;
}
return q(n), e;
}, pe = () => vr([]), he = (r) => vr([r]), ge = (r, e) => vr([r, e]), me = (r, e, t) => {
}, ge = () => vr([]), me = (r) => vr([r]), ye = (r, e) => vr([r, e]), be = (r, e, t) => {
var n = new cr(r);
throw n.init(e, t), j = r, j;
throw n.init(e, t), M = r, M;
}, rr = {}, lr = (r) => {

@@ -225,5 +226,5 @@ for (; r.length; ) {

}
var V = {}, M = {}, tr = {}, jr, Mr = (r) => {
throw new jr(r);
}, xr = (r, e, t) => {
var V = {}, I = {}, tr = {}, Mr, Ir = (r) => {
throw new Mr(r);
}, jr = (r, e, t) => {
r.forEach(function(o) {

@@ -234,3 +235,3 @@ tr[o] = e;

var f = t(o);
f.length !== r.length && Mr("Mismatched type converter count");
f.length !== r.length && Ir("Mismatched type converter count");
for (var c = 0; c < r.length; ++c)

@@ -241,14 +242,14 @@ E(r[c], f[c]);

e.forEach((o, f) => {
M.hasOwnProperty(o) ? a[f] = M[o] : (i.push(o), V.hasOwnProperty(o) || (V[o] = []), V[o].push(() => {
a[f] = M[o], ++s, s === i.length && n(a);
I.hasOwnProperty(o) ? a[f] = I[o] : (i.push(o), V.hasOwnProperty(o) || (V[o] = []), V[o].push(() => {
a[f] = I[o], ++s, s === i.length && n(a);
}));
}), i.length === 0 && n(a);
}, ye = (r) => {
}, we = (r) => {
var e = rr[r];
delete rr[r];
var t = e.rawConstructor, n = e.rawDestructor, a = e.fields, i = a.map((s) => s.getterReturnType).concat(a.map((s) => s.setterArgumentType));
xr([r], i, (s) => {
jr([r], i, (s) => {
var o = {};
return a.forEach((f, c) => {
var v = f.fieldName, l = s[c], _ = f.getter, m = f.getterContext, S = s[c + a.length], G = f.setter, C = f.setterContext;
var v = f.fieldName, l = s[c], _ = f.getter, m = f.getterContext, S = s[c + a.length], G = f.setter, R = f.setterContext;
o[v] = {

@@ -258,3 +259,3 @@ read: (K) => l.fromWireType(_(m, K)),

var or = [];
G(C, K, S.toWireType(or, gr)), lr(or);
G(R, K, S.toWireType(or, gr)), lr(or);
}

@@ -279,3 +280,3 @@ };

},
argPackAdvance: R,
argPackAdvance: C,
readValueFromPointer: er,

@@ -285,18 +286,18 @@ destructorFunction: n

});
}, be = (r, e, t, n, a) => {
}, we = () => {
}, Te = (r, e, t, n, a) => {
}, $e = () => {
for (var r = new Array(256), e = 0; e < 256; ++e)
r[e] = String.fromCharCode(e);
Dr = r;
}, Dr, g = (r) => {
xr = r;
}, xr, g = (r) => {
for (var e = "", t = r; h[t]; )
e += Dr[h[t++]];
e += xr[h[t++]];
return e;
}, Ir, y = (r) => {
throw new Ir(r);
}, Dr, y = (r) => {
throw new Dr(r);
};
function Te(r, e) {
function Ae(r, e) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
var n = e.name;
if (r || y(`type "${n}" must have a positive integer typeid pointer`), M.hasOwnProperty(r)) {
if (r || y(`type "${n}" must have a positive integer typeid pointer`), I.hasOwnProperty(r)) {
if (t.ignoreDuplicateRegistrations)

@@ -306,3 +307,3 @@ return;

}
if (M[r] = e, delete tr[r], V.hasOwnProperty(r)) {
if (I[r] = e, delete tr[r], V.hasOwnProperty(r)) {
var a = V[r];

@@ -316,5 +317,5 @@ delete V[r], a.forEach((i) => i());

throw new TypeError("registerType registeredInstance requires argPackAdvance");
return Te(r, e, t);
return Ae(r, e, t);
}
var R = 8, $e = (r, e, t, n) => {
var C = 8, Ee = (r, e, t, n) => {
e = g(e), E(r, {

@@ -328,3 +329,3 @@ name: e,

},
argPackAdvance: R,
argPackAdvance: C,
readValueFromPointer: function(a) {

@@ -335,8 +336,8 @@ return this.fromWireType(h[a]);

});
}, dr = [], F = [], _r = (r) => {
r > 9 && --F[r + 1] === 0 && (F[r] = void 0, dr.push(r));
}, Ae = () => F.length / 2 - 5 - dr.length, Ee = () => {
F.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), u.count_emval_handles = Ae;
}, x = {
toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), F[r]),
}, dr = [], P = [], _r = (r) => {
r > 9 && --P[r + 1] === 0 && (P[r] = void 0, dr.push(r));
}, Re = () => P.length / 2 - 5 - dr.length, Ce = () => {
P.push(0, 1, void 0, 1, null, 1, !0, 1, !1, 1), u.count_emval_handles = Re;
}, j = {
toValue: (r) => (r || y("Cannot use deleted val. handle = " + r), P[r]),
toHandle: (r) => {

@@ -353,18 +354,18 @@ switch (r) {

default: {
const e = dr.pop() || F.length;
return F[e] = r, F[e + 1] = 1, e;
const e = dr.pop() || P.length;
return P[e] = r, P[e + 1] = 1, e;
}
}
}
}, Ce = {
}, Pe = {
name: "emscripten::val",
fromWireType: (r) => {
var e = x.toValue(r);
var e = j.toValue(r);
return _r(r), e;
},
toWireType: (r, e) => x.toHandle(e),
argPackAdvance: R,
toWireType: (r, e) => j.toHandle(e),
argPackAdvance: C,
readValueFromPointer: er,
destructorFunction: null
}, Re = (r) => E(r, Ce), Fe = (r, e, t) => {
}, Fe = (r) => E(r, Pe), We = (r, e, t) => {
if (r[e].overloadTable === void 0) {

@@ -379,4 +380,4 @@ var n = r[e];

}, Or = (r, e, t) => {
u.hasOwnProperty(r) ? ((t === void 0 || u[r].overloadTable !== void 0 && u[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), Fe(u, r, r), u.hasOwnProperty(t) && y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), u[r].overloadTable[t] = e) : (u[r] = e, t !== void 0 && (u[r].numArguments = t));
}, Pe = (r, e, t) => {
u.hasOwnProperty(r) ? ((t === void 0 || u[r].overloadTable !== void 0 && u[r].overloadTable[t] !== void 0) && y(`Cannot register public name '${r}' twice`), We(u, r, r), u.hasOwnProperty(t) && y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`), u[r].overloadTable[t] = e) : (u[r] = e, t !== void 0 && (u[r].numArguments = t));
}, ke = (r, e, t) => {
switch (e) {

@@ -391,9 +392,9 @@ case 1:

return t ? function(n) {
return this.fromWireType(D[n >> 1]);
return this.fromWireType(x[n >> 1]);
} : function(n) {
return this.fromWireType(X[n >> 1]);
return this.fromWireType(L[n >> 1]);
};
case 4:
return t ? function(n) {
return this.fromWireType(I[n >> 2]);
return this.fromWireType(D[n >> 2]);
} : function(n) {

@@ -405,3 +406,3 @@ return this.fromWireType(d[n >> 2]);

}
}, We = (r, e, t, n) => {
}, Se = (r, e, t, n) => {
e = g(e);

@@ -417,4 +418,4 @@ function a() {

toWireType: (i, s) => s.value,
argPackAdvance: R,
readValueFromPointer: Pe(e, t, n),
argPackAdvance: C,
readValueFromPointer: ke(e, t, n),
destructorFunction: null

@@ -426,7 +427,7 @@ }), Or(e, a);

var e = qr(r), t = g(e);
return P(e), t;
return F(e), t;
}, Hr = (r, e) => {
var t = M[r];
var t = I[r];
return t === void 0 && y(`${e} has unknown type ${Vr(r)}`), t;
}, ke = (r, e, t) => {
}, Ue = (r, e, t) => {
var n = Hr(r, "enum");

@@ -444,3 +445,3 @@ e = g(e);

a.values[t] = i, a[e] = i;
}, Se = (r, e) => {
}, Me = (r, e) => {
switch (e) {

@@ -458,3 +459,3 @@ case 4:

}
}, Ue = (r, e, t) => {
}, Ie = (r, e, t) => {
e = g(e), E(r, {

@@ -464,4 +465,4 @@ name: e,

toWireType: (n, a) => a,
argPackAdvance: R,
readValueFromPointer: Se(e, t),
argPackAdvance: C,
readValueFromPointer: Me(e, t),
destructorFunction: null

@@ -476,3 +477,3 @@ });

}
function Me(r, e, t, n, a, i) {
function xe(r, e, t, n, a, i) {
var s = e.length;

@@ -484,4 +485,4 @@ s < 2 && y("argTypes array size mismatch! Must at least get return value and 'this' types!");

_.length = o ? 2 : 1, _[0] = a, o && (G = e[1].toWireType(m, this), _[1] = G);
for (var C = 0; C < v; ++C)
l[C] = e[C + 2].toWireType(m, C < 0 || arguments.length <= C ? void 0 : arguments[C]), _.push(l[C]);
for (var R = 0; R < v; ++R)
l[R] = e[R + 2].toWireType(m, R < 0 || arguments.length <= R ? void 0 : arguments[R]), _.push(l[R]);
var K = n(..._);

@@ -493,4 +494,4 @@ function gr(or) {

for (var H = o ? 1 : 2; H < e.length; H++) {
var Ot = H === 1 ? G : l[H - 2];
e[H].destructorFunction !== null && e[H].destructorFunction(Ot);
var Ht = H === 1 ? G : l[H - 2];
e[H].destructorFunction !== null && e[H].destructorFunction(Ht);
}

@@ -504,9 +505,9 @@ if (c)

}
var xe = (r, e) => {
var De = (r, e) => {
for (var t = [], n = 0; n < r; n++)
t.push(d[e + n * 4 >> 2]);
return t;
}, De = (r, e, t) => {
u.hasOwnProperty(r) || Mr("Replacing nonexistant public symbol"), u[r].overloadTable !== void 0 && t !== void 0 ? u[r].overloadTable[t] = e : (u[r] = e, u[r].argCount = t);
}, Ie = (r, e, t) => {
}, Oe = (r, e, t) => {
u.hasOwnProperty(r) || Ir("Replacing nonexistant public symbol"), u[r].overloadTable !== void 0 && t !== void 0 ? u[r].overloadTable[t] = e : (u[r] = e, u[r].argCount = t);
}, Ve = (r, e, t) => {
var n = u["dynCall_" + r];

@@ -517,20 +518,20 @@ return n(e, ...t);

return e || (r >= ar.length && (ar.length = r + 1), ar[r] = e = Br.get(r)), e;
}, Oe = function(r, e) {
}, He = function(r, e) {
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : [];
if (r.includes("j"))
return Ie(r, e, t);
return Ve(r, e, t);
var n = b(e)(...t);
return n;
}, Ve = (r, e) => function() {
}, Be = (r, e) => function() {
for (var t = arguments.length, n = new Array(t), a = 0; a < t; a++)
n[a] = arguments[a];
return Oe(r, e, n);
return He(r, e, n);
}, Z = (r, e) => {
r = g(r);
function t() {
return r.includes("j") ? Ve(r, e) : b(e);
return r.includes("j") ? Be(r, e) : b(e);
}
var n = t();
return typeof n != "function" && y(`unknown function pointer with signature ${r}: ${e}`), n;
}, He = (r, e) => {
}, Ne = (r, e) => {
var t = nr(e, function(n) {

@@ -545,6 +546,6 @@ this.name = e, this.message = n;

}, t;
}, Nr, Be = (r, e) => {
}, Nr, Le = (r, e) => {
var t = [], n = {};
function a(i) {
if (!n[i] && !M[i]) {
if (!n[i] && !I[i]) {
if (tr[i]) {

@@ -558,15 +559,15 @@ tr[i].forEach(a);

throw e.forEach(a), new Nr(`${r}: ` + t.map(Vr).join([", "]));
}, Ne = (r) => {
}, Xe = (r) => {
r = r.trim();
const e = r.indexOf("(");
return e !== -1 ? r.substr(0, e) : r;
}, Xe = (r, e, t, n, a, i, s) => {
var o = xe(e, t);
r = g(r), r = Ne(r), a = Z(n, a), Or(r, function() {
Be(`Cannot call ${r} due to unbound types`, o);
}, e - 1), xr([], o, (f) => {
}, Ze = (r, e, t, n, a, i, s) => {
var o = De(e, t);
r = g(r), r = Xe(r), a = Z(n, a), Or(r, function() {
Le(`Cannot call ${r} due to unbound types`, o);
}, e - 1), jr([], o, (f) => {
var c = [f[0], null].concat(f.slice(1));
return De(r, Me(r, c, null, a, i), e - 1), [];
return Oe(r, xe(r, c, null, a, i), e - 1), [];
});
}, Le = (r, e, t) => {
}, qe = (r, e, t) => {
switch (e) {

@@ -576,9 +577,9 @@ case 1:

case 2:
return t ? (n) => D[n >> 1] : (n) => X[n >> 1];
return t ? (n) => x[n >> 1] : (n) => L[n >> 1];
case 4:
return t ? (n) => I[n >> 2] : (n) => d[n >> 2];
return t ? (n) => D[n >> 2] : (n) => d[n >> 2];
default:
throw new TypeError(`invalid integer width (${e}): ${r}`);
}
}, Ze = (r, e, t, n, a) => {
}, Ge = (r, e, t, n, a) => {
e = g(e);

@@ -600,7 +601,7 @@ var i = (v) => v;

toWireType: c,
argPackAdvance: R,
readValueFromPointer: Le(e, t, n !== 0),
argPackAdvance: C,
readValueFromPointer: qe(e, t, n !== 0),
destructorFunction: null
});
}, qe = (r, e, t) => {
}, Ke = (r, e, t) => {
var n = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array], a = n[e];

@@ -614,3 +615,3 @@ function i(s) {

fromWireType: i,
argPackAdvance: R,
argPackAdvance: C,
readValueFromPointer: i

@@ -620,3 +621,3 @@ }, {

});
}, Ge = (r, e, t, n) => {
}, Ye = (r, e, t, n) => {
if (!(n > 0))

@@ -649,3 +650,3 @@ return 0;

return e[t] = 0, t - a;
}, Ke = (r, e, t) => Ge(r, h, e, t), Je = (r) => {
}, Je = (r, e, t) => Ye(r, h, e, t), Qe = (r) => {
for (var e = 0, t = 0; t < r.length; ++t) {

@@ -656,7 +657,7 @@ var n = r.charCodeAt(t);

return e;
}, Xr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, Qe = (r, e, t) => {
}, Lr = typeof TextDecoder < "u" ? new TextDecoder("utf8") : void 0, ze = (r, e, t) => {
for (var n = e + t, a = e; r[a] && !(a >= n); )
++a;
if (a - e > 16 && r.buffer && Xr)
return Xr.decode(r.subarray(e, a));
if (a - e > 16 && r.buffer && Lr)
return Lr.decode(r.subarray(e, a));
for (var i = ""; e < a; ) {

@@ -682,3 +683,3 @@ var s = r[e++];

return i;
}, Ye = (r, e) => r ? Qe(h, r, e) : "", ze = (r, e) => {
}, rt = (r, e) => r ? ze(h, r, e) : "", et = (r, e) => {
e = g(e);

@@ -694,3 +695,3 @@ var t = e === "std::string";

if (f == a || h[c] == 0) {
var v = c - o, l = Ye(o, v);
var v = c - o, l = rt(o, v);
s === void 0 ? s = l : (s += "\0", s += l), o = c + 1;

@@ -704,3 +705,3 @@ }

}
return P(n), s;
return F(n), s;
},

@@ -710,10 +711,10 @@ toWireType(n, a) {

var i, s = typeof a == "string";
s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? i = Je(a) : i = a.length;
s || a instanceof Uint8Array || a instanceof Uint8ClampedArray || a instanceof Int8Array || y("Cannot pass non-string to std::string"), t && s ? i = Qe(a) : i = a.length;
var o = hr(4 + i + 1), f = o + 4;
if (d[o >> 2] = i, t && s)
Ke(a, f, i + 1);
Je(a, f, i + 1);
else if (s)
for (var c = 0; c < i; ++c) {
var v = a.charCodeAt(c);
v > 255 && (P(f), y("String has UTF-16 code units that do not fit in 8 bits")), h[f + c] = v;
v > 255 && (F(f), y("String has UTF-16 code units that do not fit in 8 bits")), h[f + c] = v;
}

@@ -723,17 +724,17 @@ else

h[f + c] = a[c];
return n !== null && n.push(P, o), o;
return n !== null && n.push(F, o), o;
},
argPackAdvance: R,
argPackAdvance: C,
readValueFromPointer: er,
destructorFunction(n) {
P(n);
F(n);
}
});
}, Lr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, rt = (r, e) => {
for (var t = r, n = t >> 1, a = n + e / 2; !(n >= a) && X[n]; )
}, Xr = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, tt = (r, e) => {
for (var t = r, n = t >> 1, a = n + e / 2; !(n >= a) && L[n]; )
++n;
if (t = n << 1, t - r > 32 && Lr)
return Lr.decode(h.subarray(r, t));
if (t = n << 1, t - r > 32 && Xr)
return Xr.decode(h.subarray(r, t));
for (var i = "", s = 0; !(s >= e / 2); ++s) {
var o = D[r + s * 2 >> 1];
var o = x[r + s * 2 >> 1];
if (o == 0)

@@ -744,3 +745,3 @@ break;

return i;
}, et = (r, e, t) => {
}, nt = (r, e, t) => {
var n;

@@ -752,8 +753,8 @@ if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 2)

var o = r.charCodeAt(s);
D[e >> 1] = o, e += 2;
x[e >> 1] = o, e += 2;
}
return D[e >> 1] = 0, e - a;
}, tt = (r) => r.length * 2, nt = (r, e) => {
return x[e >> 1] = 0, e - a;
}, at = (r) => r.length * 2, it = (r, e) => {
for (var t = 0, n = ""; !(t >= e / 4); ) {
var a = I[r + t * 4 >> 2];
var a = D[r + t * 4 >> 2];
if (a == 0)

@@ -768,3 +769,3 @@ break;

return n;
}, at = (r, e, t) => {
}, ot = (r, e, t) => {
var n;

@@ -779,7 +780,7 @@ if ((n = t) !== null && n !== void 0 || (t = 2147483647), t < 4)

}
if (I[e >> 2] = o, e += 4, e + 4 > i)
if (D[e >> 2] = o, e += 4, e + 4 > i)
break;
}
return I[e >> 2] = 0, e - a;
}, it = (r) => {
return D[e >> 2] = 0, e - a;
}, st = (r) => {
for (var e = 0, t = 0; t < r.length; ++t) {

@@ -790,6 +791,6 @@ var n = r.charCodeAt(t);

return e;
}, ot = (r, e, t) => {
}, ut = (r, e, t) => {
t = g(t);
var n, a, i, s;
e === 2 ? (n = rt, a = et, s = tt, i = (o) => X[o >> 1]) : e === 4 && (n = nt, a = at, s = it, i = (o) => d[o >> 2]), E(r, {
e === 2 ? (n = tt, a = nt, s = at, i = (o) => L[o >> 1]) : e === 4 && (n = it, a = ot, s = st, i = (o) => d[o >> 2]), E(r, {
name: t,

@@ -804,3 +805,3 @@ fromWireType: (o) => {

}
return P(o), c;
return F(o), c;
},

@@ -810,11 +811,11 @@ toWireType: (o, f) => {

var c = s(f), v = hr(4 + c + e);
return d[v >> 2] = c / e, a(f, v + 4, c + e), o !== null && o.push(P, v), v;
return d[v >> 2] = c / e, a(f, v + 4, c + e), o !== null && o.push(F, v), v;
},
argPackAdvance: R,
argPackAdvance: C,
readValueFromPointer: er,
destructorFunction(o) {
P(o);
F(o);
}
});
}, st = (r, e, t, n, a, i) => {
}, ft = (r, e, t, n, a, i) => {
rr[r] = {

@@ -826,3 +827,3 @@ name: g(e),

};
}, ut = (r, e, t, n, a, i, s, o, f, c) => {
}, ct = (r, e, t, n, a, i, s, o, f, c) => {
rr[r].fields.push({

@@ -837,3 +838,3 @@ fieldName: g(e),

});
}, ft = (r, e) => {
}, vt = (r, e) => {
e = g(e), E(r, {

@@ -848,4 +849,4 @@ isVoid: !0,

});
}, pr = [], ct = (r, e, t, n) => (r = pr[r], e = x.toValue(e), r(null, e, t, n)), vt = {}, lt = (r) => {
var e = vt[r];
}, pr = [], lt = (r, e, t, n) => (r = pr[r], e = j.toValue(e), r(null, e, t, n)), dt = {}, _t = (r) => {
var e = dt[r];
return e === void 0 ? g(r) : e;

@@ -863,14 +864,14 @@ }, Zr = () => {

throw Error("unable to get global object.");
}, dt = (r) => r === 0 ? x.toHandle(Zr()) : (r = lt(r), x.toHandle(Zr()[r])), _t = (r) => {
}, pt = (r) => r === 0 ? j.toHandle(Zr()) : (r = _t(r), j.toHandle(Zr()[r])), ht = (r) => {
var e = pr.length;
return pr.push(r), e;
}, pt = (r, e) => {
}, gt = (r, e) => {
for (var t = new Array(r), n = 0; n < r; ++n)
t[n] = Hr(d[e + n * 4 >> 2], "parameter " + n);
return t;
}, ht = Reflect.construct, gt = (r, e, t) => {
}, mt = Reflect.construct, yt = (r, e, t) => {
var n = [], a = r.toWireType(n, t);
return n.length && (d[e >> 2] = x.toHandle(n)), a;
}, mt = (r, e, t) => {
var n = pt(r, e), a = n.shift();
return n.length && (d[e >> 2] = j.toHandle(n)), a;
}, bt = (r, e, t) => {
var n = gt(r, e), a = n.shift();
r--;

@@ -880,23 +881,23 @@ var i = new Array(r), s = (f, c, v, l) => {

i[m] = n[m].readValueFromPointer(l + _), _ += n[m].argPackAdvance;
var S = t === 1 ? ht(c, i) : c.apply(f, i);
return gt(a, v, S);
var S = t === 1 ? mt(c, i) : c.apply(f, i);
return yt(a, v, S);
}, o = `methodCaller<(${n.map((f) => f.name).join(", ")}) => ${a.name}>`;
return _t(nr(o, s));
}, yt = (r) => {
r > 9 && (F[r + 1] += 1);
}, bt = (r) => {
var e = x.toValue(r);
return ht(nr(o, s));
}, wt = (r) => {
r > 9 && (P[r + 1] += 1);
}, Tt = (r) => {
var e = j.toValue(r);
lr(e), _r(r);
}, wt = () => {
}, $t = () => {
ur("");
}, Tt = (r, e, t) => h.copyWithin(r, e, e + t), $t = () => 2147483648, At = (r) => {
}, At = (r, e, t) => h.copyWithin(r, e, e + t), Et = () => 2147483648, Rt = (r) => {
var e = z.buffer, t = (r - e.byteLength + 65535) / 65536;
try {
return z.grow(t), Cr(), 1;
return z.grow(t), Rr(), 1;
} catch {
}
}, Et = (r) => {
}, Ct = (r) => {
var e = h.length;
r >>>= 0;
var t = $t();
var t = Et();
if (r > t)

@@ -907,3 +908,3 @@ return !1;

i = Math.min(i, r + 100663296);
var s = Math.min(t, n(Math.max(r, i), 65536)), o = At(s);
var s = Math.min(t, n(Math.max(r, i), 65536)), o = Rt(s);
if (o)

@@ -913,58 +914,58 @@ return !0;

return !1;
}, Ct = (r) => r;
jr = u.InternalError = class extends Error {
}, Pt = (r) => r;
Mr = u.InternalError = class extends Error {
constructor(e) {
super(e), this.name = "InternalError";
}
}, we(), Ir = u.BindingError = class extends Error {
}, $e(), Dr = u.BindingError = class extends Error {
constructor(e) {
super(e), this.name = "BindingError";
}
}, Ee(), Nr = u.UnboundTypeError = He(Error, "UnboundTypeError");
var Rt = {
r: le,
q: de,
g: pe,
d: he,
k: ge,
a: me,
i: _e,
M: ye,
C: be,
H: $e,
G: Re,
K: We,
b: ke,
v: Ue,
L: Xe,
h: Ze,
e: qe,
u: ze,
p: ot,
w: st,
N: ut,
I: ft,
z: ct,
}, Ce(), Nr = u.UnboundTypeError = Ne(Error, "UnboundTypeError");
var Ft = {
r: _e,
q: pe,
g: ge,
d: me,
k: ye,
a: be,
i: he,
M: we,
C: Te,
H: Ee,
G: Fe,
K: Se,
b: Ue,
v: Ie,
L: Ze,
h: Ge,
e: Ke,
u: et,
p: ut,
w: ft,
N: ct,
I: vt,
z: lt,
P: _r,
B: dt,
A: mt,
x: yt,
Q: bt,
s: wt,
F: Tt,
E: Et,
y: Ut,
c: Ft,
B: pt,
A: bt,
x: wt,
Q: Tt,
s: $t,
F: At,
E: Ct,
y: It,
c: Wt,
l: jt,
n: St,
o: Mt,
f: Pt,
t: It,
m: Dt,
D: kt,
J: Wt,
j: xt,
O: Ct
}, p = ve(), hr = u._malloc = (r) => (hr = u._malloc = p.T)(r), P = u._free = (r) => (P = u._free = p.U)(r), qr = (r) => (qr = p.W)(r), w = (r, e) => (w = p.X)(r, e), q = (r) => (q = p.Y)(r), T = () => (T = p.Z)(), $ = (r) => ($ = p._)(r), Gr = (r) => (Gr = p.$)(r), Kr = (r) => (Kr = p.aa)(r), Jr = (r, e, t) => (Jr = p.ba)(r, e, t), Qr = (r) => (Qr = p.ca)(r);
function Ft(r, e) {
n: Mt,
o: xt,
f: kt,
t: Vt,
m: Ot,
D: Ut,
J: St,
j: Dt,
O: Pt
}, p = de(), hr = u._malloc = (r) => (hr = u._malloc = p.T)(r), F = u._free = (r) => (F = u._free = p.U)(r), qr = (r) => (qr = p.W)(r), w = (r, e) => (w = p.X)(r, e), q = (r) => (q = p.Y)(r), T = () => (T = p.Z)(), $ = (r) => ($ = p._)(r), Gr = (r) => (Gr = p.$)(r), Kr = (r) => (Kr = p.aa)(r), Yr = (r, e, t) => (Yr = p.ba)(r, e, t), Jr = (r) => (Jr = p.ca)(r);
function Wt(r, e) {
var t = T();

@@ -979,3 +980,3 @@ try {

}
function Pt(r, e) {
function kt(r, e) {
var t = T();

@@ -990,3 +991,3 @@ try {

}
function Wt(r, e, t, n, a, i) {
function St(r, e, t, n, a, i) {
var s = T();

@@ -1001,3 +1002,3 @@ try {

}
function kt(r, e, t, n, a) {
function Ut(r, e, t, n, a) {
var i = T();

@@ -1012,3 +1013,3 @@ try {

}
function St(r, e, t, n) {
function Mt(r, e, t, n) {
var a = T();

@@ -1023,3 +1024,3 @@ try {

}
function Ut(r, e, t, n, a) {
function It(r, e, t, n, a) {
var i = T();

@@ -1044,3 +1045,3 @@ try {

}
function Mt(r) {
function xt(r) {
var e = T();

@@ -1055,3 +1056,3 @@ try {

}
function xt(r, e, t, n, a, i, s, o, f, c, v) {
function Dt(r, e, t, n, a, i, s, o, f, c, v) {
var l = T();

@@ -1066,3 +1067,3 @@ try {

}
function Dt(r, e, t, n) {
function Ot(r, e, t, n) {
var a = T();

@@ -1077,3 +1078,3 @@ try {

}
function It(r, e, t) {
function Vt(r, e, t) {
var n = T();

@@ -1089,10 +1090,10 @@ try {

var ir;
L = function r() {
ir || Yr(), ir || (L = r);
X = function r() {
ir || Qr(), ir || (X = r);
};
function Yr() {
if (U > 0 || (re(), U > 0))
function Qr() {
if (U > 0 || (te(), U > 0))
return;
function r() {
ir || (ir = !0, u.calledRun = !0, !$r && (ee(), yr(u), u.onRuntimeInitialized && u.onRuntimeInitialized(), te()));
ir || (ir = !0, u.calledRun = !0, !$r && (ne(), yr(u), u.onRuntimeInitialized && u.onRuntimeInitialized(), ae()));
}

@@ -1108,7 +1109,7 @@ u.setStatus ? (u.setStatus("Running..."), setTimeout(function() {

u.preInit.pop()();
return Yr(), J.ready;
return Qr(), Y.ready;
};
})();
function Zt(W) {
return Vt(
function Gt(W) {
return Bt(
mr,

@@ -1118,4 +1119,4 @@ W

}
function qt(W) {
return Ht(
function Kt(W) {
return Nt(
mr,

@@ -1125,19 +1126,19 @@ W

}
async function Gt(W, J) {
return Bt(
async function Yt(W, Y) {
return Lt(
mr,
W,
J
Y
);
}
export {
Qt as barcodeFormats,
Yt as characterSets,
zt as defaultEncodeHints,
rn as defaultWriterOptions,
Zt as getZXingModule,
en as purgeZXingModule,
qt as setZXingModuleOverrides,
Gt as writeBarcodeToImageFile,
tn as writeInputEccLevels
zt as barcodeFormats,
rn as characterSets,
en as defaultEncodeHints,
tn as defaultWriterOptions,
Gt as getZXingModule,
nn as purgeZXingModule,
Kt as setZXingModuleOverrides,
Yt as writeBarcodeToImageFile,
an as writeInputEccLevels
};

@@ -1,3 +0,3 @@

var ZXingWASM=function(R){"use strict";const xe=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function tt(h){return h.join("|")}function nt(h){const p=ur(h);let u=0,j=xe.length-1;for(;u<=j;){const b=Math.floor((u+j)/2),H=xe[b],N=ur(H);if(N===p)return H;N<p?u=b+1:j=b-1}return"None"}function ur(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const at=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function it(h,p){return h.Binarizer[p]}const ot=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function lr(h,p){return h.CharacterSet[p]}const cr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function st(h){return cr[h.value]}const ut=["Ignore","Read","Require"];function lt(h,p){return h.EanAddOnSymbol[p]}const ct=["Plain","ECI","HRI","Hex","Escaped"];function ft(h,p){return h.TextMode[p]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function fr(h,p){return{...p,formats:tt(p.formats),binarizer:it(h,p.binarizer),eanAddOnSymbol:lt(h,p.eanAddOnSymbol),textMode:ft(h,p.textMode),characterSet:lr(h,p.characterSet)}}const vt=[-1,0,1,2,3,4,5,6,7,8],dt=["L","M","Q","H"],Ve={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function ht(h,p){return{...p,characterSet:lr(h,p.characterSet)}}function vr(h){return{...h,format:nt(h.format),eccLevel:h.eccLevel,contentType:st(h.contentType)}}function pt(h){const{image:p,error:u}=h;return p?{image:new Blob([new Uint8Array(p)],{type:"image/png"}),error:""}:{image:null,error:u}}const _t={locateFile:(h,p)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.4/dist/${u[1]}/${h}`:p+h}};let be=new WeakMap;function we(h,p){var H;const u=be.get(h);if(u!=null&&u.modulePromise&&(p===void 0||Object.is(p,u.moduleOverrides)))return u.modulePromise;const j=(H=p!=null?p:u==null?void 0:u.moduleOverrides)!=null?H:_t,b=h({...j});return be.set(h,{moduleOverrides:j,modulePromise:b}),b}function gt(){be=new WeakMap}function mt(h,p){be.set(h,{moduleOverrides:p})}async function yt(h,p,u=te){const j={...te,...u},b=await we(h),{size:H}=p,N=new Uint8Array(await p.arrayBuffer()),q=b._malloc(H);b.HEAPU8.set(N,q);const Q=b.readBarcodesFromImage(q,H,fr(b,j));b._free(q);const B=[];for(let I=0;I<Q.size();++I)B.push(vr(Q.get(I)));return B}async function $t(h,p,u=te){const j={...te,...u},b=await we(h),{data:H,width:N,height:q,data:{byteLength:Q}}=p,B=b._malloc(Q);b.HEAPU8.set(H,B);const I=b.readBarcodesFromPixmap(B,N,q,fr(b,j));b._free(B);const Te=[];for(let J=0;J<I.size();++J)Te.push(vr(I.get(J)));return Te}async function bt(h,p,u=Ve){const j={...Ve,...u},b=await we(h),H=b.writeBarcodeToImage(p,ht(b,j));return pt(H)}var le=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(p={}){var u=p,j,b;u.ready=new Promise((r,e)=>{j=r,b=e});var H=Object.assign({},u),N="./this.program",q=typeof window=="object",Q=typeof Bun<"u",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var I="";function Te(r){return u.locateFile?u.locateFile(r,I):I+r}var J;(q||B||Q)&&(B?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),h&&(I=h),I.startsWith("blob:")?I="":I=I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(J=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var At=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,H),H=null,u.arguments&&u.arguments,u.thisProgram&&(N=u.thisProgram),u.quit&&u.quit;var ce;u.wasmBinary&&(ce=u.wasmBinary),typeof WebAssembly!="object"&&Pe("no native wasm support detected");var Ce,pr=!1,x,M,ae,fe,k,$,_r,gr;function mr(){var r=Ce.buffer;u.HEAP8=x=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=M=new Uint8Array(r),u.HEAPU16=fe=new Uint16Array(r),u.HEAP32=k=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=_r=new Float32Array(r),u.HEAPF64=gr=new Float64Array(r)}var yr=[],$r=[],br=[];function Et(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)Ot(u.preRun.shift());Le(yr)}function Ft(){Le($r)}function Rt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)It(u.postRun.shift());Le(br)}function Ot(r){yr.unshift(r)}function Dt(r){$r.unshift(r)}function It(r){br.unshift(r)}var K=0,ve=null;function Wt(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Mt(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&ve){var t=ve;ve=null,t()}}function Pe(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),pr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var kt="data:application/octet-stream;base64,",wr=r=>r.startsWith(kt),ie;ie="zxing_full.wasm",wr(ie)||(ie=Te(ie));function Tr(r){if(r==ie&&ce)return new Uint8Array(ce);if(J)return J(r);throw"both async and sync fetching of the wasm failed"}function Ut(r){return!ce&&(q||B||Q)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Tr(r)):Promise.resolve().then(()=>Tr(r))}function Cr(r,e,t){return Ut(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Pe(n)})}function jt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!wr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),Cr(e,t,n)})}):Cr(e,t,n)}function Ht(){var r={a:Oa};function e(n,a){return A=n.exports,Ce=A.na,mr(),Ir=A.ra,Dt(A.oa),Mt(),A}Wt();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return jt(ce,ie,r,t).catch(b),{}}var Le=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Se=[],Ae=0,Bt=r=>{var e=new Ye(r);return e.get_caught()||(e.set_caught(!0),Ae--),e.set_rethrown(!1),Se.push(e),Zr(e.excPtr),e.get_exception_ptr()},z=0,xt=()=>{w(0,0);var r=Se.pop();Xr(r.excPtr),z=0};class Ye{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,x[this.ptr+12]=e}get_caught(){return x[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,x[this.ptr+13]=e}get_rethrown(){return x[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=qr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Vt=r=>{throw z||(z=r),z},Ne=r=>{var e=z;if(!e)return $e(0),0;var t=new Ye(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return $e(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(Gr(i,n,o))return $e(i),e}return $e(n),e},Lt=()=>Ne([]),Yt=r=>Ne([r]),Nt=(r,e)=>Ne([r,e]),zt=()=>{var r=Se.pop();r||Pe("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Se.push(r),r.set_rethrown(!0),r.set_caught(!1),Ae++),z=e,z},Xt=(r,e,t)=>{var n=new Ye(r);throw n.init(e,t),z=r,Ae++,z},Zt=()=>Ae,Ee={},ze=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function de(r){return this.fromWireType($[r>>2])}var oe={},ee={},Fe={},Pr,Re=r=>{throw new Pr(r)},re=(r,e,t)=>{r.forEach(function(s){Fe[s]=e});function n(s){var l=t(s);l.length!==r.length&&Re("Mismatched type converter count");for(var f=0;f<r.length;++f)L(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Gt=r=>{var e=Ee[r];delete Ee[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,g=o[f],_=l.getter,m=l.getterContext,E=o[f+a.length],U=l.setter,S=l.setterContext;s[v]={read:D=>g.fromWireType(_(m,D)),write:(D,c)=>{var d=[];U(S,D,E.toWireType(d,c)),ze(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var g=t();for(v in s)s[v].write(g,f[v]);return l!==null&&l.push(n,g),g},argPackAdvance:Y,readValueFromPointer:de,destructorFunction:n}]})},qt=(r,e,t,n,a)=>{},Qt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Sr=r},Sr,W=r=>{for(var e="",t=r;M[t];)e+=Sr[M[t++]];return e},se,y=r=>{throw new se(r)};function Jt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Fe[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function L(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Jt(r,e,t)}var Y=8,Kt=(r,e,t,n)=>{e=W(e),L(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:Y,readValueFromPointer:function(a){return this.fromWireType(M[a])},destructorFunction:null})},en=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xe=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ze=!1,Ar=r=>{},rn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Er=r=>{r.count.value-=1;var e=r.count.value===0;e&&rn(r)},Fr=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Fr(r,e,t.baseClass);return n===null?null:t.downcast(n)},Rr={},tn=()=>Object.keys(_e).length,nn=()=>{var r=[];for(var e in _e)_e.hasOwnProperty(e)&&r.push(_e[e]);return r},he=[],Ge=()=>{for(;he.length;){var r=he.pop();r.$$.deleteScheduled=!1,r.delete()}},pe,an=r=>{pe=r,he.length&&pe&&pe(Ge)},on=()=>{u.getInheritedInstanceCount=tn,u.getLiveInheritedInstances=nn,u.flushPendingDeletes=Ge,u.setDelayFunction=an},_e={},sn=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},un=(r,e)=>(e=sn(r,e),_e[e]),Oe=(r,e)=>{(!e.ptrType||!e.ptr)&&Re("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Re("Both smartPtrType and smartPtr must be specified"),e.count={value:1},ge(Object.create(r,{$$:{value:e,writable:!0}}))};function ln(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=un(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Oe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Oe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Rr[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Fr(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Oe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Oe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var ge=r=>typeof FinalizationRegistry>"u"?(ge=e=>e,r):(Ze=new FinalizationRegistry(e=>{Er(e.$$)}),ge=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ze.register(e,a,e)}return e},Ar=e=>Ze.unregister(e),ge(r)),cn=()=>{Object.assign(De.prototype,{isAliasOf(r){if(!(this instanceof De)||!(r instanceof De))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||Xe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=ge(Object.create(Object.getPrototypeOf(this),{$$:{value:en(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Ar(this),Er(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),he.push(this),he.length===1&&pe&&pe(Ge),this.$$.deleteScheduled=!0,this}})};function De(){}var me=(r,e)=>Object.defineProperty(e,"name",{value:r}),Or=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Or(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},fn=48,vn=57,dn=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=fn&&e<=vn?`_${r}`:r};function hn(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Qe=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function pn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qe(e.$$.ptr,t,this.registeredClass);return n}function _n(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Qe(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function gn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Qe(e.$$.ptr,t,this.registeredClass);return n}var mn=()=>{Object.assign(Ie.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:Y,readValueFromPointer:de,fromWireType:ln})};function Ie(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=pn,this.destructorFunction=null):(this.toWireType=gn,this.destructorFunction=null):this.toWireType=_n}var Dr=(r,e,t)=>{u.hasOwnProperty(r)||Re("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},yn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},We=[],Ir,T=r=>{var e=We[r];return e||(r>=We.length&&(We.length=r+1),We[r]=e=Ir.get(r)),e},$n=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return yn(r,e,t);var n=T(e)(...t);return n},bn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return $n(r,e,n)},V=(r,e)=>{r=W(r);function t(){return r.includes("j")?bn(r,e):T(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},wn=(r,e)=>{var t=me(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Wr,Mr=r=>{var e=zr(r),t=W(e);return G(e),t},Me=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Fe[i]){Fe[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Wr(`${r}: `+t.map(Mr).join([", "]))},Tn=(r,e,t,n,a,i,o,s,l,f,v,g,_)=>{v=W(v),i=V(a,i),s&&(s=V(o,s)),f&&(f=V(l,f)),_=V(g,_);var m=dn(v);qe(m,function(){Me(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var U,S;n?(U=E.registeredClass,S=U.instancePrototype):S=De.prototype;var D=me(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var et=arguments.length,He=new Array(et),Be=0;Be<et;Be++)He[Be]=arguments[Be];var rt=d.constructor_body[He.length];if(rt===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${He.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return rt.apply(this,He)}),c=Object.create(S,{constructor:{value:D}});D.prototype=c;var d=new hn(v,D,c,_,U,i,s,f);if(d.baseClass){var F,O;(O=(F=d.baseClass).__derivedClasses)!==null&&O!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new Ie(v,d,!0,!1,!1),je=new Ie(v+"*",d,!1,!1,!1),Kr=new Ie(v+" const*",d,!1,!0,!1);return Rr[r]={pointerType:je,constPointerType:Kr},Dr(m,D),[ue,je,Kr]})},Je=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push($[e+n*4>>2]);return t};function Cn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Ke(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=Cn(e),f=e[0].name!=="void",v=o-2,g=new Array(v),_=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var U;_.length=s?2:1,_[0]=a,s&&(U=e[1].toWireType(m,this),_[1]=U);for(var S=0;S<v;++S)g[S]=e[S+2].toWireType(m,S<0||arguments.length<=S?void 0:arguments[S]),_.push(g[S]);var D=n(..._);function c(d){if(l)ze(m);else for(var F=s?1:2;F<e.length;F++){var O=F===1?U:g[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(O)}if(f)return e[0].fromWireType(d)}return c(D)};return me(r,E)}var Pn=(r,e,t,n,a,i)=>{var o=Je(e,t);a=V(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{Me(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=Ke(l,f,null,a,i),[])),[]})},kr=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},Sn=(r,e,t,n,a,i,o,s,l)=>{var f=Je(t,n);e=W(e),e=kr(e),i=V(a,i),re([],[r],v=>{v=v[0];var g=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function _(){Me(`Cannot call ${g} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(_.argCount=t-2,_.className=v.name,m[e]=_):(Or(m,e,g),m[e].overloadTable[t-2]=_),re([],f,U=>{var S=Ke(g,U,v,i,o);return m[e].overloadTable===void 0?(S.argCount=t-2,m[e]=S):m[e].overloadTable[t-2]=S,[]}),[]})},er=[],X=[],rr=r=>{r>9&&--X[r+1]===0&&(X[r]=void 0,er.push(r))},An=()=>X.length/2-5-er.length,En=()=>{X.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=An},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),X[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=er.pop()||X.length;return X[e]=r,X[e+1]=1,e}}}},Fn={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return rr(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:Y,readValueFromPointer:de,destructorFunction:null},Ur=r=>L(r,Fn),Rn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(x[n])}:function(n){return this.fromWireType(M[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(fe[n>>1])};case 4:return t?function(n){return this.fromWireType(k[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},On=(r,e,t,n)=>{e=W(e);function a(){}a.values={},L(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:Y,readValueFromPointer:Rn(e,t,n),destructorFunction:null}),qe(e,a)},tr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${Mr(r)}`),t},Dn=(r,e,t)=>{var n=tr(r,"enum");e=W(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:me(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},nr=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},In=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(_r[t>>2])};case 8:return function(t){return this.fromWireType(gr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Wn=(r,e,t)=>{e=W(e),L(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:Y,readValueFromPointer:In(e,t),destructorFunction:null})},Mn=(r,e,t,n,a,i,o)=>{var s=Je(e,t);r=W(r),r=kr(r),a=V(n,a),qe(r,function(){Me(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Dr(r,Ke(r,f,null,a,i),e-1),[]})},kn=(r,e,t)=>{switch(e){case 1:return t?n=>x[n]:n=>M[n];case 2:return t?n=>ae[n>>1]:n=>fe[n>>1];case 4:return t?n=>k[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Un=(r,e,t,n,a)=>{e=W(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,g)=>{},f;s?f=function(v,g){return l(g,this.name),g>>>0}:f=function(v,g){return l(g,this.name),g},L(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:Y,readValueFromPointer:kn(e,t,n!==0),destructorFunction:null})},jn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=$[o>>2],l=$[o+4>>2];return new a(x.buffer,l,s)}t=W(t),L(r,{name:t,fromWireType:i,argPackAdvance:Y,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Hn=(r,e)=>{Ur(r)},jr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},Bn=(r,e,t)=>jr(r,M,e,t),Hr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Br=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,xr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Br)return Br.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ar=(r,e)=>r?xr(M,r,e):"",xn=(r,e)=>{e=W(e);var t=e==="std::string";L(r,{name:e,fromWireType(n){var a=$[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||M[f]==0){var v=f-s,g=ar(s,v);o===void 0?o=g:(o+="\0",o+=g),s=f+1}}else{for(var _=new Array(a),l=0;l<a;++l)_[l]=String.fromCharCode(M[i+l]);o=_.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=Hr(a):i=a.length;var s=sr(4+i+1),l=s+4;if($[s>>2]=i,t&&o)Bn(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),M[l+f]=v}else for(var f=0;f<i;++f)M[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:Y,readValueFromPointer:de,destructorFunction(n){G(n)}})},Vr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Vn=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&fe[n];)++n;if(t=n<<1,t-r>32&&Vr)return Vr.decode(M.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},Ln=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},Yn=r=>r.length*2,Nn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=k[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},zn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(k[e>>2]=s,e+=4,e+4>i)break}return k[e>>2]=0,e-a},Xn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Zn=(r,e,t)=>{t=W(t);var n,a,i,o;e===2?(n=Vn,a=Ln,o=Yn,i=s=>fe[s>>1]):e===4&&(n=Nn,a=zn,o=Xn,i=s=>$[s>>2]),L(r,{name:t,fromWireType:s=>{for(var l=$[s>>2],f,v=s+4,g=0;g<=l;++g){var _=s+4+g*e;if(g==l||i(_)==0){var m=_-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=_+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=sr(4+f+e);return $[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:Y,readValueFromPointer:de,destructorFunction(s){G(s)}})},Gn=(r,e,t,n,a,i)=>{Ee[r]={name:W(e),rawConstructor:V(t,n),rawDestructor:V(a,i),fields:[]}},qn=(r,e,t,n,a,i,o,s,l,f)=>{Ee[r].fields.push({fieldName:W(e),getterReturnType:t,getter:V(n,a),getterContext:i,setterArgumentType:o,setter:V(s,l),setterContext:f})},Qn=(r,e)=>{e=W(e),L(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ir=[],Jn=(r,e,t,n)=>(r=ir[r],e=Z.toValue(e),r(null,e,t,n)),Kn={},ea=r=>{var e=Kn[r];return e===void 0?W(r):e},Lr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},ra=r=>r===0?Z.toHandle(Lr()):(r=ea(r),Z.toHandle(Lr()[r])),ta=r=>{var e=ir.length;return ir.push(r),e},na=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=tr($[e+n*4>>2],"parameter "+n);return t},aa=Reflect.construct,ia=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&($[e>>2]=Z.toHandle(n)),a},oa=(r,e,t)=>{var n=na(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,g)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(g+_),_+=n[m].argPackAdvance;var E=t===1?aa(f,i):f.apply(l,i);return ia(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return ta(me(s,o))},sa=r=>{r>9&&(X[r+1]+=1)},ua=r=>{var e=Z.toValue(r);ze(e),rr(r)},la=(r,e)=>{r=tr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},ca=()=>{Pe("")},fa=(r,e,t)=>M.copyWithin(r,e,e+t),va=()=>2147483648,da=r=>{var e=Ce.buffer,t=(r-e.byteLength+65535)/65536;try{return Ce.grow(t),mr(),1}catch{}},ha=r=>{var e=M.length;r>>>=0;var t=va();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=da(o);if(s)return!0}return!1},or={},pa=()=>N||"./this.program",ye=()=>{if(!ye.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:pa()};for(var t in or)or[t]===void 0?delete e[t]:e[t]=or[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);ye.strings=n}return ye.strings},_a=(r,e)=>{for(var t=0;t<r.length;++t)x[e++]=r.charCodeAt(t);x[e]=0},ga=(r,e)=>{var t=0;return ye().forEach((n,a)=>{var i=e+t;$[r+a*4>>2]=i,_a(n,i),t+=n.length+1}),0},ma=(r,e)=>{var t=ye();$[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),$[e>>2]=n,0},ya=r=>52;function $a(r,e,t,n,a){return 70}var ba=[null,[],[]],wa=(r,e)=>{var t=ba[r];e===0||e===10?((r===1?At:ne)(xr(t,0)),t.length=0):t.push(e)},Ta=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=$[e>>2],s=$[e+4>>2];e+=8;for(var l=0;l<s;l++)wa(r,M[o+l]);a+=s}return $[n>>2]=a,0},Ca=r=>r,ke=r=>r%4===0&&(r%100!==0||r%400===0),Pa=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},Yr=[31,29,31,30,31,30,31,31,30,31,30,31],Nr=[31,28,31,30,31,30,31,31,30,31,30,31],Sa=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=ke(t.getFullYear()),a=t.getMonth(),i=(n?Yr:Nr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function Aa(r,e,t){var n=t>0?t:Hr(r)+1,a=new Array(n),i=jr(r,a,0,a.length);return e&&(a.length=i),a}var Ea=(r,e)=>{x.set(r,e)},Fa=(r,e,t,n)=>{var a=$[n+40>>2],i={tm_sec:k[n>>2],tm_min:k[n+4>>2],tm_hour:k[n+8>>2],tm_mday:k[n+12>>2],tm_mon:k[n+16>>2],tm_year:k[n+20>>2],tm_wday:k[n+24>>2],tm_yday:k[n+28>>2],tm_isdst:k[n+32>>2],tm_gmtoff:k[n+36>>2],tm_zone:a?ar(a):""},o=ar(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function g(c,d,F){for(var O=typeof c=="number"?c.toString():c||"";O.length<d;)O=F[0]+O;return O}function _(c,d){return g(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var O;return(O=F(c.getFullYear()-d.getFullYear()))===0&&(O=F(c.getMonth()-d.getMonth()))===0&&(O=F(c.getDate()-d.getDate())),O}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function U(c){var d=Sa(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),O=new Date(d.getFullYear()+1,0,4),ue=E(F),je=E(O);return m(ue,d)<=0?m(je,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var S={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return _(d/100|0,2)},"%d":c=>_(c.tm_mday,2),"%e":c=>g(c.tm_mday,2," "),"%g":c=>U(c).toString().substring(2),"%G":U,"%H":c=>_(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),_(d,2)},"%j":c=>_(c.tm_mday+Pa(ke(c.tm_year+1900)?Yr:Nr,c.tm_mon-1),3),"%m":c=>_(c.tm_mon+1,2),"%M":c=>_(c.tm_min,2),"%n":()=>`
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>_(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return _(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var O=(c.tm_wday+371-c.tm_yday)%7;O!=4&&(O!=3||!ke(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&ke(c.tm_year%400-1))&&d++}return _(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return _(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in S)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),S[l](i)));o=o.replace(/\0\0/g,"%");var D=Aa(o,!1);return D.length>e?0:(Ea(D,r),D.length-1)},Ra=(r,e,t,n,a)=>Fa(r,e,t,n);Pr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Qt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},cn(),on(),mn(),Wr=u.UnboundTypeError=wn(Error,"UnboundTypeError"),En();var Oa={s:Bt,t:xt,b:Lt,g:Yt,m:Nt,L:zt,f:Xt,_:Zt,d:Vt,ja:Gt,W:qt,da:Kt,ha:Tn,ga:Pn,x:Sn,ca:Ur,y:On,j:Dn,P:Wn,E:Mn,u:Un,p:jn,ia:Hn,N:xn,D:Zn,w:Gn,ka:qn,ea:Qn,G:Jn,ma:rr,S:ra,O:oa,Q:sa,T:ua,fa:la,C:ca,ba:fa,$:ha,Y:ga,Z:ma,aa:ya,V:$a,M:Ta,H:Za,B:ka,I:Xa,o:Ga,a:Da,e:ja,q:Ma,k:za,K:Ya,v:La,J:Na,A:Qa,U:Ka,l:Ha,i:Ua,c:Wa,n:Ia,F:xa,la:Ba,r:qa,h:Va,z:Ja,R:Ca,X:Ra},A=Ht(),G=u._free=r=>(G=u._free=A.pa)(r),sr=u._malloc=r=>(sr=u._malloc=A.qa)(r),zr=r=>(zr=A.sa)(r),w=(r,e)=>(w=A.ta)(r,e),$e=r=>($e=A.ua)(r),C=()=>(C=A.va)(),P=r=>(P=A.wa)(r),Xr=r=>(Xr=A.xa)(r),Zr=r=>(Zr=A.ya)(r),Gr=(r,e,t)=>(Gr=A.za)(r,e,t),qr=r=>(qr=A.Aa)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=A.Ba)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=A.Ca)(r,e,t,n,a);var Qr=u.dynCall_jiiii=(r,e,t,n,a)=>(Qr=u.dynCall_jiiii=A.Da)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=A.Ea)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=A.Fa)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=A.Ga)(r,e,t,n,a,i,o,s,l,f);function Da(r,e){var t=C();try{return T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function Ia(r,e,t,n){var a=C();try{T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function Wa(r,e,t){var n=C();try{T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Ma(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function ka(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ua(r,e){var t=C();try{T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function ja(r,e,t){var n=C();try{return T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Ha(r){var e=C();try{T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function Ba(r,e,t,n,a,i){var o=C();try{T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function xa(r,e,t,n,a){var i=C();try{T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Va(r,e,t,n,a,i,o,s,l,f,v){var g=C();try{T(r)(e,t,n,a,i,o,s,l,f,v)}catch(_){if(P(g),_!==_+0)throw _;w(1,0)}}function La(r,e,t,n,a,i,o){var s=C();try{return T(r)(e,t,n,a,i,o)}catch(l){if(P(s),l!==l+0)throw l;w(1,0)}}function Ya(r,e,t,n,a,i){var o=C();try{return T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function Na(r,e,t,n,a,i,o,s){var l=C();try{return T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function za(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Xa(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function Za(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function Ga(r){var e=C();try{return T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function qa(r,e,t,n,a,i,o,s){var l=C();try{T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function Qa(r,e,t,n,a,i,o,s,l,f,v,g){var _=C();try{return T(r)(e,t,n,a,i,o,s,l,f,v,g)}catch(m){if(P(_),m!==m+0)throw m;w(1,0)}}function Ja(r,e,t,n,a,i,o,s,l,f,v,g,_,m,E,U){var S=C();try{T(r)(e,t,n,a,i,o,s,l,f,v,g,_,m,E,U)}catch(D){if(P(S),D!==D+0)throw D;w(1,0)}}function Ka(r,e,t,n,a){var i=C();try{return Qr(r,e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}var Ue;ve=function r(){Ue||Jr(),Ue||(ve=r)};function Jr(){if(K>0||(Et(),K>0))return;function r(){Ue||(Ue=!0,u.calledRun=!0,!pr&&(Ft(),j(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Rt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return Jr(),p.ready}})();const dr={...te,formats:[...te.formats]},hr={...Ve};function wt(h){return we(le,h)}function Tt(h){return mt(le,h)}async function Ct(h,p){return yt(le,h,p)}async function Pt(h,p){return $t(le,h,p)}async function St(h,p){return bt(le,h,p)}return R.barcodeFormats=xe,R.binarizers=at,R.characterSets=ot,R.contentTypes=cr,R.defaultDecodeHints=dr,R.defaultEncodeHints=hr,R.defaultReaderOptions=dr,R.defaultWriterOptions=hr,R.eanAddOnSymbols=ut,R.getZXingModule=wt,R.purgeZXingModule=gt,R.readBarcodesFromImageData=Pt,R.readBarcodesFromImageFile=Ct,R.readOutputEccLevels=dt,R.setZXingModuleOverrides=Tt,R.textModes=ct,R.writeBarcodeToImageFile=St,R.writeInputEccLevels=vt,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({});
var ZXingWASM=function(R){"use strict";const Ve=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function at(h){return h.join("|")}function it(h){const p=lr(h);let u=0,U=Ve.length-1;for(;u<=U;){const $=Math.floor((u+U)/2),j=Ve[$],N=lr(j);if(N===p)return j;N<p?u=$+1:U=$-1}return"None"}function lr(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const ot=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function st(h,p){return h.Binarizer[p]}const ut=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function cr(h,p){return h.CharacterSet[p]}const fr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function lt(h){return fr[h.value]}const ct=["Ignore","Read","Require"];function ft(h,p){return h.EanAddOnSymbol[p]}const vt=["Plain","ECI","HRI","Hex","Escaped"];function dt(h,p){return h.TextMode[p]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function vr(h,p){return{...p,formats:at(p.formats),binarizer:st(h,p.binarizer),eanAddOnSymbol:ft(h,p.eanAddOnSymbol),textMode:dt(h,p.textMode),characterSet:cr(h,p.characterSet)}}const ht=[-1,0,1,2,3,4,5,6,7,8],pt=["L","M","Q","H"],xe={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function _t(h,p){return{...p,characterSet:cr(h,p.characterSet)}}function dr(h){return{...h,format:it(h.format),eccLevel:h.eccLevel,contentType:lt(h.contentType)}}function gt(h){const{image:p,error:u}=h;return p?{image:new Blob([new Uint8Array(p)],{type:"image/png"}),error:""}:{image:null,error:u}}const mt={locateFile:(h,p)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.5-rc.0/dist/${u[1]}/${h}`:p+h}};let we=new WeakMap;function Te(h,p){var j;const u=we.get(h);if(u!=null&&u.modulePromise&&(p===void 0||Object.is(p,u.moduleOverrides)))return u.modulePromise;const U=(j=p!=null?p:u==null?void 0:u.moduleOverrides)!=null?j:mt,$=h({...U});return we.set(h,{moduleOverrides:U,modulePromise:$}),$}function yt(){we=new WeakMap}function bt(h,p){we.set(h,{moduleOverrides:p})}async function $t(h,p,u=te){const U={...te,...u},$=await Te(h),{size:j}=p,N=new Uint8Array(await p.arrayBuffer()),q=$._malloc(j);$.HEAPU8.set(N,q);const J=$.readBarcodesFromImage(q,j,vr($,U));$._free(q);const Q=[];for(let B=0;B<J.size();++B)Q.push(dr(J.get(B)));return Q}async function wt(h,p,u=te){const U={...te,...u},$=await Te(h),{data:j,width:N,height:q,data:{byteLength:J}}=p,Q=$._malloc(J);$.HEAPU8.set(j,Q);const B=$.readBarcodesFromPixmap(Q,N,q,vr($,U));$._free(Q);const H=[];for(let ce=0;ce<B.size();++ce)H.push(dr(B.get(ce)));return H}async function Tt(h,p,u=xe){const U={...xe,...u},$=await Te(h),j=$.writeBarcodeToImage(p,_t($,U));return gt(j)}var le=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(p={}){var et;var u=p,U,$;u.ready=new Promise((r,e)=>{U=r,$=e});var j=Object.assign({},u),N="./this.program",q=typeof window=="object",J=typeof Bun<"u",Q=typeof((et=globalThis.WebAssembly)==null?void 0:et.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function ce(r){return u.locateFile?u.locateFile(r,H):H+r}var Le;(q||B||J)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(Le=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var Ft=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(N=u.thisProgram),u.quit&&u.quit;var fe;u.wasmBinary&&(fe=u.wasmBinary),typeof WebAssembly!="object"&&Pe("no native wasm support detected");var Ce,_r=!1,V,W,ae,ve,M,b,gr,mr;function yr(){var r=Ce.buffer;u.HEAP8=V=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=ve=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=b=new Uint32Array(r),u.HEAPF32=gr=new Float32Array(r),u.HEAPF64=mr=new Float64Array(r)}var br=[],$r=[],wr=[];function Rt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)It(u.preRun.shift());Ye(br)}function Ot(){Ye($r)}function Dt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Mt(u.postRun.shift());Ye(wr)}function It(r){br.unshift(r)}function Wt(r){$r.unshift(r)}function Mt(r){wr.unshift(r)}var K=0,de=null;function kt(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Ut(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&de){var t=de;de=null,t()}}function Pe(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),_r=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw $(t),t}var jt="data:application/octet-stream;base64,",Tr=r=>r.startsWith(jt),ie;ie="zxing_full.wasm",Tr(ie)||(ie=ce(ie));function Cr(r){if(r==ie&&fe)return new Uint8Array(fe);if(Le)return Le(r);throw"both async and sync fetching of the wasm failed"}function Ht(r){return!fe&&(q||B||J||Q)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Cr(r)):Promise.resolve().then(()=>Cr(r))}function Pr(r,e,t){return Ht(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Pe(n)})}function Bt(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!Tr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),Pr(e,t,n)})}):Pr(e,t,n)}function Vt(){var r={a:Ia};function e(n,a){return A=n.exports,Ce=A.na,yr(),Wr=A.ra,Wt(A.oa),Ut(),A}kt();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),$(n)}return Bt(fe,ie,r,t).catch($),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Se=[],Ae=0,xt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Ae--),e.set_rethrown(!1),Se.push(e),Gr(e.excPtr),e.get_exception_ptr()},z=0,Lt=()=>{w(0,0);var r=Se.pop();Zr(r.excPtr),z=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){b[this.ptr+4>>2]=e}get_type(){return b[this.ptr+4>>2]}set_destructor(e){b[this.ptr+8>>2]=e}get_destructor(){return b[this.ptr+8>>2]}set_caught(e){e=e?1:0,V[this.ptr+12]=e}get_caught(){return V[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,V[this.ptr+13]=e}get_rethrown(){return V[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){b[this.ptr+16>>2]=e}get_adjusted_ptr(){return b[this.ptr+16>>2]}get_exception_ptr(){var e=Qr(this.get_type());if(e)return b[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Yt=r=>{throw z||(z=r),z},ze=r=>{var e=z;if(!e)return $e(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return $e(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(qr(i,n,o))return $e(i),e}return $e(n),e},Nt=()=>ze([]),zt=r=>ze([r]),Xt=(r,e)=>ze([r,e]),Zt=()=>{var r=Se.pop();r||Pe("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Se.push(r),r.set_rethrown(!0),r.set_caught(!1),Ae++),z=e,z},Gt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),z=r,Ae++,z},qt=()=>Ae,Ee={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function he(r){return this.fromWireType(b[r>>2])}var oe={},ee={},Fe={},Sr,Re=r=>{throw new Sr(r)},re=(r,e,t)=>{r.forEach(function(s){Fe[s]=e});function n(s){var l=t(s);l.length!==r.length&&Re("Mismatched type converter count");for(var f=0;f<r.length;++f)L(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Qt=r=>{var e=Ee[r];delete Ee[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,g=o[f],_=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,S=l.setterContext;s[v]={read:D=>g.fromWireType(_(m,D)),write:(D,c)=>{var d=[];k(S,D,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var g=t();for(v in s)s[v].write(g,f[v]);return l!==null&&l.push(n,g),g},argPackAdvance:Y,readValueFromPointer:he,destructorFunction:n}]})},Jt=(r,e,t,n,a)=>{},Kt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Ar=r},Ar,I=r=>{for(var e="",t=r;W[t];)e+=Ar[W[t++]];return e},se,y=r=>{throw new se(r)};function en(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Fe[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function L(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return en(r,e,t)}var Y=8,rn=(r,e,t,n)=>{e=I(e),L(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:Y,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},tn=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ge=!1,Er=r=>{},nn=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Fr=r=>{r.count.value-=1;var e=r.count.value===0;e&&nn(r)},Rr=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Rr(r,e,t.baseClass);return n===null?null:t.downcast(n)},Or={},an=()=>Object.keys(ge).length,on=()=>{var r=[];for(var e in ge)ge.hasOwnProperty(e)&&r.push(ge[e]);return r},pe=[],qe=()=>{for(;pe.length;){var r=pe.pop();r.$$.deleteScheduled=!1,r.delete()}},_e,sn=r=>{_e=r,pe.length&&_e&&_e(qe)},un=()=>{u.getInheritedInstanceCount=an,u.getLiveInheritedInstances=on,u.flushPendingDeletes=qe,u.setDelayFunction=sn},ge={},ln=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},cn=(r,e)=>(e=ln(r,e),ge[e]),Oe=(r,e)=>{(!e.ptrType||!e.ptr)&&Re("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Re("Both smartPtrType and smartPtr must be specified"),e.count={value:1},me(Object.create(r,{$$:{value:e,writable:!0}}))};function fn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=cn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Oe(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Oe(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Or[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Rr(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Oe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Oe(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var me=r=>typeof FinalizationRegistry>"u"?(me=e=>e,r):(Ge=new FinalizationRegistry(e=>{Fr(e.$$)}),me=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ge.register(e,a,e)}return e},Er=e=>Ge.unregister(e),me(r)),vn=()=>{Object.assign(De.prototype,{isAliasOf(r){if(!(this instanceof De)||!(r instanceof De))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||Ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=me(Object.create(Object.getPrototypeOf(this),{$$:{value:tn(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Er(this),Fr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),pe.push(this),pe.length===1&&_e&&_e(qe),this.$$.deleteScheduled=!0,this}})};function De(){}var ye=(r,e)=>Object.defineProperty(e,"name",{value:r}),Dr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Dr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},dn=48,hn=57,pn=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=dn&&e<=hn?`_${r}`:r};function _n(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function gn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function mn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function yn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${ar(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var bn=()=>{Object.assign(Ie.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:Y,readValueFromPointer:he,fromWireType:fn})};function Ie(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=gn,this.destructorFunction=null):(this.toWireType=yn,this.destructorFunction=null):this.toWireType=mn}var Ir=(r,e,t)=>{u.hasOwnProperty(r)||Re("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},$n=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},We=[],Wr,T=r=>{var e=We[r];return e||(r>=We.length&&(We.length=r+1),We[r]=e=Wr.get(r)),e},wn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return $n(r,e,t);var n=T(e)(...t);return n},Tn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return wn(r,e,n)},x=(r,e)=>{r=I(r);function t(){return r.includes("j")?Tn(r,e):T(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},Cn=(r,e)=>{var t=ye(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Mr,kr=r=>{var e=Xr(r),t=I(e);return G(e),t},Me=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Fe[i]){Fe[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Mr(`${r}: `+t.map(kr).join([", "]))},Pn=(r,e,t,n,a,i,o,s,l,f,v,g,_)=>{v=I(v),i=x(a,i),s&&(s=x(o,s)),f&&(f=x(l,f)),_=x(g,_);var m=pn(v);Qe(m,function(){Me(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var k,S;n?(k=E.registeredClass,S=k.instancePrototype):S=De.prototype;var D=ye(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var tt=arguments.length,He=new Array(tt),Be=0;Be<tt;Be++)He[Be]=arguments[Be];var nt=d.constructor_body[He.length];if(nt===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${He.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return nt.apply(this,He)}),c=Object.create(S,{constructor:{value:D}});D.prototype=c;var d=new _n(v,D,c,_,k,i,s,f);if(d.baseClass){var F,O;(O=(F=d.baseClass).__derivedClasses)!==null&&O!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new Ie(v,d,!0,!1,!1),je=new Ie(v+"*",d,!1,!1,!1),rt=new Ie(v+" const*",d,!1,!0,!1);return Or[r]={pointerType:je,constPointerType:rt},Ir(m,D),[ue,je,rt]})},Ke=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(b[e+n*4>>2]);return t};function Sn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function er(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=Sn(e),f=e[0].name!=="void",v=o-2,g=new Array(v),_=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var k;_.length=s?2:1,_[0]=a,s&&(k=e[1].toWireType(m,this),_[1]=k);for(var S=0;S<v;++S)g[S]=e[S+2].toWireType(m,S<0||arguments.length<=S?void 0:arguments[S]),_.push(g[S]);var D=n(..._);function c(d){if(l)Xe(m);else for(var F=s?1:2;F<e.length;F++){var O=F===1?k:g[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(O)}if(f)return e[0].fromWireType(d)}return c(D)};return ye(r,E)}var An=(r,e,t,n,a,i)=>{var o=Ke(e,t);a=x(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{Me(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=er(l,f,null,a,i),[])),[]})},Ur=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},En=(r,e,t,n,a,i,o,s,l)=>{var f=Ke(t,n);e=I(e),e=Ur(e),i=x(a,i),re([],[r],v=>{v=v[0];var g=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function _(){Me(`Cannot call ${g} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(_.argCount=t-2,_.className=v.name,m[e]=_):(Dr(m,e,g),m[e].overloadTable[t-2]=_),re([],f,k=>{var S=er(g,k,v,i,o);return m[e].overloadTable===void 0?(S.argCount=t-2,m[e]=S):m[e].overloadTable[t-2]=S,[]}),[]})},rr=[],X=[],tr=r=>{r>9&&--X[r+1]===0&&(X[r]=void 0,rr.push(r))},Fn=()=>X.length/2-5-rr.length,Rn=()=>{X.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=Fn},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),X[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=rr.pop()||X.length;return X[e]=r,X[e+1]=1,e}}}},On={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return tr(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:Y,readValueFromPointer:he,destructorFunction:null},jr=r=>L(r,On),Dn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(V[n])}:function(n){return this.fromWireType(W[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(ve[n>>1])};case 4:return t?function(n){return this.fromWireType(M[n>>2])}:function(n){return this.fromWireType(b[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},In=(r,e,t,n)=>{e=I(e);function a(){}a.values={},L(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:Y,readValueFromPointer:Dn(e,t,n),destructorFunction:null}),Qe(e,a)},nr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${kr(r)}`),t},Wn=(r,e,t)=>{var n=nr(r,"enum");e=I(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ye(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},ar=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Mn=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(gr[t>>2])};case 8:return function(t){return this.fromWireType(mr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},kn=(r,e,t)=>{e=I(e),L(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:Y,readValueFromPointer:Mn(e,t),destructorFunction:null})},Un=(r,e,t,n,a,i,o)=>{var s=Ke(e,t);r=I(r),r=Ur(r),a=x(n,a),Qe(r,function(){Me(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Ir(r,er(r,f,null,a,i),e-1),[]})},jn=(r,e,t)=>{switch(e){case 1:return t?n=>V[n]:n=>W[n];case 2:return t?n=>ae[n>>1]:n=>ve[n>>1];case 4:return t?n=>M[n>>2]:n=>b[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Hn=(r,e,t,n,a)=>{e=I(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,g)=>{},f;s?f=function(v,g){return l(g,this.name),g>>>0}:f=function(v,g){return l(g,this.name),g},L(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:Y,readValueFromPointer:jn(e,t,n!==0),destructorFunction:null})},Bn=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=b[o>>2],l=b[o+4>>2];return new a(V.buffer,l,s)}t=I(t),L(r,{name:t,fromWireType:i,argPackAdvance:Y,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Vn=(r,e)=>{jr(r)},Hr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},xn=(r,e,t)=>Hr(r,W,e,t),Br=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Vr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,xr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Vr)return Vr.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ir=(r,e)=>r?xr(W,r,e):"",Ln=(r,e)=>{e=I(e);var t=e==="std::string";L(r,{name:e,fromWireType(n){var a=b[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||W[f]==0){var v=f-s,g=ir(s,v);o===void 0?o=g:(o+="\0",o+=g),s=f+1}}else{for(var _=new Array(a),l=0;l<a;++l)_[l]=String.fromCharCode(W[i+l]);o=_.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=Br(a):i=a.length;var s=ur(4+i+1),l=s+4;if(b[s>>2]=i,t&&o)xn(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),W[l+f]=v}else for(var f=0;f<i;++f)W[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:Y,readValueFromPointer:he,destructorFunction(n){G(n)}})},Lr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Yn=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&ve[n];)++n;if(t=n<<1,t-r>32&&Lr)return Lr.decode(W.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},Nn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},zn=r=>r.length*2,Xn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=M[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Zn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(M[e>>2]=s,e+=4,e+4>i)break}return M[e>>2]=0,e-a},Gn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},qn=(r,e,t)=>{t=I(t);var n,a,i,o;e===2?(n=Yn,a=Nn,o=zn,i=s=>ve[s>>1]):e===4&&(n=Xn,a=Zn,o=Gn,i=s=>b[s>>2]),L(r,{name:t,fromWireType:s=>{for(var l=b[s>>2],f,v=s+4,g=0;g<=l;++g){var _=s+4+g*e;if(g==l||i(_)==0){var m=_-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=_+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=ur(4+f+e);return b[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:Y,readValueFromPointer:he,destructorFunction(s){G(s)}})},Qn=(r,e,t,n,a,i)=>{Ee[r]={name:I(e),rawConstructor:x(t,n),rawDestructor:x(a,i),fields:[]}},Jn=(r,e,t,n,a,i,o,s,l,f)=>{Ee[r].fields.push({fieldName:I(e),getterReturnType:t,getter:x(n,a),getterContext:i,setterArgumentType:o,setter:x(s,l),setterContext:f})},Kn=(r,e)=>{e=I(e),L(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},or=[],ea=(r,e,t,n)=>(r=or[r],e=Z.toValue(e),r(null,e,t,n)),ra={},ta=r=>{var e=ra[r];return e===void 0?I(r):e},Yr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},na=r=>r===0?Z.toHandle(Yr()):(r=ta(r),Z.toHandle(Yr()[r])),aa=r=>{var e=or.length;return or.push(r),e},ia=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=nr(b[e+n*4>>2],"parameter "+n);return t},oa=Reflect.construct,sa=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(b[e>>2]=Z.toHandle(n)),a},ua=(r,e,t)=>{var n=ia(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,g)=>{for(var _=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(g+_),_+=n[m].argPackAdvance;var E=t===1?oa(f,i):f.apply(l,i);return sa(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return aa(ye(s,o))},la=r=>{r>9&&(X[r+1]+=1)},ca=r=>{var e=Z.toValue(r);Xe(e),tr(r)},fa=(r,e)=>{r=nr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},va=()=>{Pe("")},da=(r,e,t)=>W.copyWithin(r,e,e+t),ha=()=>2147483648,pa=r=>{var e=Ce.buffer,t=(r-e.byteLength+65535)/65536;try{return Ce.grow(t),yr(),1}catch{}},_a=r=>{var e=W.length;r>>>=0;var t=ha();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=pa(o);if(s)return!0}return!1},sr={},ga=()=>N||"./this.program",be=()=>{if(!be.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:ga()};for(var t in sr)sr[t]===void 0?delete e[t]:e[t]=sr[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);be.strings=n}return be.strings},ma=(r,e)=>{for(var t=0;t<r.length;++t)V[e++]=r.charCodeAt(t);V[e]=0},ya=(r,e)=>{var t=0;return be().forEach((n,a)=>{var i=e+t;b[r+a*4>>2]=i,ma(n,i),t+=n.length+1}),0},ba=(r,e)=>{var t=be();b[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),b[e>>2]=n,0},$a=r=>52;function wa(r,e,t,n,a){return 70}var Ta=[null,[],[]],Ca=(r,e)=>{var t=Ta[r];e===0||e===10?((r===1?Ft:ne)(xr(t,0)),t.length=0):t.push(e)},Pa=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=b[e>>2],s=b[e+4>>2];e+=8;for(var l=0;l<s;l++)Ca(r,W[o+l]);a+=s}return b[n>>2]=a,0},Sa=r=>r,ke=r=>r%4===0&&(r%100!==0||r%400===0),Aa=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},Nr=[31,29,31,30,31,30,31,31,30,31,30,31],zr=[31,28,31,30,31,30,31,31,30,31,30,31],Ea=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=ke(t.getFullYear()),a=t.getMonth(),i=(n?Nr:zr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function Fa(r,e,t){var n=t>0?t:Br(r)+1,a=new Array(n),i=Hr(r,a,0,a.length);return e&&(a.length=i),a}var Ra=(r,e)=>{V.set(r,e)},Oa=(r,e,t,n)=>{var a=b[n+40>>2],i={tm_sec:M[n>>2],tm_min:M[n+4>>2],tm_hour:M[n+8>>2],tm_mday:M[n+12>>2],tm_mon:M[n+16>>2],tm_year:M[n+20>>2],tm_wday:M[n+24>>2],tm_yday:M[n+28>>2],tm_isdst:M[n+32>>2],tm_gmtoff:M[n+36>>2],tm_zone:a?ir(a):""},o=ir(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function g(c,d,F){for(var O=typeof c=="number"?c.toString():c||"";O.length<d;)O=F[0]+O;return O}function _(c,d){return g(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var O;return(O=F(c.getFullYear()-d.getFullYear()))===0&&(O=F(c.getMonth()-d.getMonth()))===0&&(O=F(c.getDate()-d.getDate())),O}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function k(c){var d=Ea(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),O=new Date(d.getFullYear()+1,0,4),ue=E(F),je=E(O);return m(ue,d)<=0?m(je,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var S={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return _(d/100|0,2)},"%d":c=>_(c.tm_mday,2),"%e":c=>g(c.tm_mday,2," "),"%g":c=>k(c).toString().substring(2),"%G":k,"%H":c=>_(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),_(d,2)},"%j":c=>_(c.tm_mday+Aa(ke(c.tm_year+1900)?Nr:zr,c.tm_mon-1),3),"%m":c=>_(c.tm_mon+1,2),"%M":c=>_(c.tm_min,2),"%n":()=>`
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>_(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return _(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var O=(c.tm_wday+371-c.tm_yday)%7;O!=4&&(O!=3||!ke(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&ke(c.tm_year%400-1))&&d++}return _(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return _(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in S)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),S[l](i)));o=o.replace(/\0\0/g,"%");var D=Fa(o,!1);return D.length>e?0:(Ra(D,r),D.length-1)},Da=(r,e,t,n,a)=>Oa(r,e,t,n);Sr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Kt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},vn(),un(),bn(),Mr=u.UnboundTypeError=Cn(Error,"UnboundTypeError"),Rn();var Ia={s:xt,t:Lt,b:Nt,g:zt,m:Xt,L:Zt,f:Gt,_:qt,d:Yt,ja:Qt,W:Jt,da:rn,ha:Pn,ga:An,x:En,ca:jr,y:In,j:Wn,P:kn,E:Un,u:Hn,p:Bn,ia:Vn,N:Ln,D:qn,w:Qn,ka:Jn,ea:Kn,G:ea,ma:tr,S:na,O:ua,Q:la,T:ca,fa,C:va,ba:da,$:_a,Y:ya,Z:ba,aa:$a,V:wa,M:Pa,H:qa,B:ja,I:Ga,o:Qa,a:Wa,e:Ba,q:Ua,k:Za,K:za,v:Na,J:Xa,A:Ka,U:ri,l:Va,i:Ha,c:ka,n:Ma,F:La,la:xa,r:Ja,h:Ya,z:ei,R:Sa,X:Da},A=Vt(),G=u._free=r=>(G=u._free=A.pa)(r),ur=u._malloc=r=>(ur=u._malloc=A.qa)(r),Xr=r=>(Xr=A.sa)(r),w=(r,e)=>(w=A.ta)(r,e),$e=r=>($e=A.ua)(r),C=()=>(C=A.va)(),P=r=>(P=A.wa)(r),Zr=r=>(Zr=A.xa)(r),Gr=r=>(Gr=A.ya)(r),qr=(r,e,t)=>(qr=A.za)(r,e,t),Qr=r=>(Qr=A.Aa)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=A.Ba)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=A.Ca)(r,e,t,n,a);var Jr=u.dynCall_jiiii=(r,e,t,n,a)=>(Jr=u.dynCall_jiiii=A.Da)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=A.Ea)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=A.Fa)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=A.Ga)(r,e,t,n,a,i,o,s,l,f);function Wa(r,e){var t=C();try{return T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function Ma(r,e,t,n){var a=C();try{T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function ka(r,e,t){var n=C();try{T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Ua(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function ja(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ha(r,e){var t=C();try{T(r)(e)}catch(n){if(P(t),n!==n+0)throw n;w(1,0)}}function Ba(r,e,t){var n=C();try{return T(r)(e,t)}catch(a){if(P(n),a!==a+0)throw a;w(1,0)}}function Va(r){var e=C();try{T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function xa(r,e,t,n,a,i){var o=C();try{T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function La(r,e,t,n,a){var i=C();try{T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ya(r,e,t,n,a,i,o,s,l,f,v){var g=C();try{T(r)(e,t,n,a,i,o,s,l,f,v)}catch(_){if(P(g),_!==_+0)throw _;w(1,0)}}function Na(r,e,t,n,a,i,o){var s=C();try{return T(r)(e,t,n,a,i,o)}catch(l){if(P(s),l!==l+0)throw l;w(1,0)}}function za(r,e,t,n,a,i){var o=C();try{return T(r)(e,t,n,a,i)}catch(s){if(P(o),s!==s+0)throw s;w(1,0)}}function Xa(r,e,t,n,a,i,o,s){var l=C();try{return T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function Za(r,e,t,n,a){var i=C();try{return T(r)(e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}function Ga(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function qa(r,e,t,n){var a=C();try{return T(r)(e,t,n)}catch(i){if(P(a),i!==i+0)throw i;w(1,0)}}function Qa(r){var e=C();try{return T(r)()}catch(t){if(P(e),t!==t+0)throw t;w(1,0)}}function Ja(r,e,t,n,a,i,o,s){var l=C();try{T(r)(e,t,n,a,i,o,s)}catch(f){if(P(l),f!==f+0)throw f;w(1,0)}}function Ka(r,e,t,n,a,i,o,s,l,f,v,g){var _=C();try{return T(r)(e,t,n,a,i,o,s,l,f,v,g)}catch(m){if(P(_),m!==m+0)throw m;w(1,0)}}function ei(r,e,t,n,a,i,o,s,l,f,v,g,_,m,E,k){var S=C();try{T(r)(e,t,n,a,i,o,s,l,f,v,g,_,m,E,k)}catch(D){if(P(S),D!==D+0)throw D;w(1,0)}}function ri(r,e,t,n,a){var i=C();try{return Jr(r,e,t,n,a)}catch(o){if(P(i),o!==o+0)throw o;w(1,0)}}var Ue;de=function r(){Ue||Kr(),Ue||(de=r)};function Kr(){if(K>0||(Rt(),K>0))return;function r(){Ue||(Ue=!0,u.calledRun=!0,!_r&&(Ot(),U(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Dt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return Kr(),p.ready}})();const hr={...te,formats:[...te.formats]},pr={...xe};function Ct(h){return Te(le,h)}function Pt(h){return bt(le,h)}async function St(h,p){return $t(le,h,p)}async function At(h,p){return wt(le,h,p)}async function Et(h,p){return Tt(le,h,p)}return R.barcodeFormats=Ve,R.binarizers=ot,R.characterSets=ut,R.contentTypes=fr,R.defaultDecodeHints=hr,R.defaultEncodeHints=pr,R.defaultReaderOptions=hr,R.defaultWriterOptions=pr,R.eanAddOnSymbols=ct,R.getZXingModule=Ct,R.purgeZXingModule=yt,R.readBarcodesFromImageData=At,R.readBarcodesFromImageFile=St,R.readOutputEccLevels=pt,R.setZXingModuleOverrides=Pt,R.textModes=vt,R.writeBarcodeToImageFile=Et,R.writeInputEccLevels=ht,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"}),R}({});

@@ -1,3 +0,3 @@

var ZXingWASM=function(W){"use strict";const Be=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function Kr(h){return h.join("|")}function et(h){const g=sr(h);let u=0,j=Be.length-1;for(;u<=j;){const b=Math.floor((u+j)/2),H=Be[b],N=sr(H);if(N===g)return H;N<g?u=b+1:j=b-1}return"None"}function sr(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const rt=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function tt(h,g){return h.Binarizer[g]}const nt=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function at(h,g){return h.CharacterSet[g]}const ur=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function it(h){return ur[h.value]}const ot=["Ignore","Read","Require"];function st(h,g){return h.EanAddOnSymbol[g]}const ut=["Plain","ECI","HRI","Hex","Escaped"];function lt(h,g){return h.TextMode[g]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function lr(h,g){return{...g,formats:Kr(g.formats),binarizer:tt(h,g.binarizer),eanAddOnSymbol:st(h,g.eanAddOnSymbol),textMode:lt(h,g.textMode),characterSet:at(h,g.characterSet)}}const ct=["L","M","Q","H"];function cr(h){return{...h,format:et(h.format),eccLevel:h.eccLevel,contentType:it(h.contentType)}}const ft={locateFile:(h,g)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.4/dist/${u[1]}/${h}`:g+h}};let $e=new WeakMap;function xe(h,g){var H;const u=$e.get(h);if(u!=null&&u.modulePromise&&(g===void 0||Object.is(g,u.moduleOverrides)))return u.modulePromise;const j=(H=g!=null?g:u==null?void 0:u.moduleOverrides)!=null?H:ft,b=h({...j});return $e.set(h,{moduleOverrides:j,modulePromise:b}),b}function vt(){$e=new WeakMap}function dt(h,g){$e.set(h,{moduleOverrides:g})}async function ht(h,g,u=te){const j={...te,...u},b=await xe(h),{size:H}=g,N=new Uint8Array(await g.arrayBuffer()),q=b._malloc(H);b.HEAPU8.set(N,q);const J=b.readBarcodesFromImage(q,H,lr(b,j));b._free(q);const B=[];for(let D=0;D<J.size();++D)B.push(cr(J.get(D)));return B}async function pt(h,g,u=te){const j={...te,...u},b=await xe(h),{data:H,width:N,height:q,data:{byteLength:J}}=g,B=b._malloc(J);b.HEAPU8.set(H,B);const D=b.readBarcodesFromPixmap(B,N,q,lr(b,j));b._free(B);const we=[];for(let Q=0;Q<D.size();++Q)we.push(cr(D.get(Q)));return we}var be=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(g={}){var u=g,j,b;u.ready=new Promise((r,e)=>{j=r,b=e});var H=Object.assign({},u),N="./this.program",q=typeof window=="object",J=typeof Bun<"u",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var D="";function we(r){return u.locateFile?u.locateFile(r,D):D+r}var Q;(q||B||J)&&(B?D=self.location.href:typeof document<"u"&&document.currentScript&&(D=document.currentScript.src),h&&(D=h),D.startsWith("blob:")?D="":D=D.substr(0,D.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(Q=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var $t=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,H),H=null,u.arguments&&u.arguments,u.thisProgram&&(N=u.thisProgram),u.quit&&u.quit;var le;u.wasmBinary&&(le=u.wasmBinary),typeof WebAssembly!="object"&&Ce("no native wasm support detected");var Te,vr=!1,x,M,ae,ce,k,$,dr,hr;function pr(){var r=Te.buffer;u.HEAP8=x=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=M=new Uint8Array(r),u.HEAPU16=ce=new Uint16Array(r),u.HEAP32=k=new Int32Array(r),u.HEAPU32=$=new Uint32Array(r),u.HEAPF32=dr=new Float32Array(r),u.HEAPF64=hr=new Float64Array(r)}var _r=[],gr=[],mr=[];function bt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)Ct(u.preRun.shift());Ve(_r)}function wt(){Ve(gr)}function Tt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)St(u.postRun.shift());Ve(mr)}function Ct(r){_r.unshift(r)}function Pt(r){gr.unshift(r)}function St(r){mr.unshift(r)}var K=0,fe=null;function At(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Et(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&fe){var t=fe;fe=null,t()}}function Ce(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),vr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw b(t),t}var Ft="data:application/octet-stream;base64,",yr=r=>r.startsWith(Ft),ie;ie="zxing_reader.wasm",yr(ie)||(ie=we(ie));function $r(r){if(r==ie&&le)return new Uint8Array(le);if(Q)return Q(r);throw"both async and sync fetching of the wasm failed"}function Rt(r){return!le&&(q||B||J)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>$r(r)):Promise.resolve().then(()=>$r(r))}function br(r,e,t){return Rt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Ce(n)})}function Ot(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!yr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),br(e,t,n)})}):br(e,t,n)}function Dt(){var r={a:Ca};function e(n,a){return P=n.exports,Te=P.ma,pr(),Rr=P.qa,Pt(P.na),Et(),P}At();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),b(n)}return Ot(le,ie,r,t).catch(b),{}}var Ve=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Pe=[],Se=0,It=r=>{var e=new Ye(r);return e.get_caught()||(e.set_caught(!0),Se--),e.set_rethrown(!1),Pe.push(e),Nr(e.excPtr),e.get_exception_ptr()},X=0,Wt=()=>{w(0,0);var r=Pe.pop();Lr(r.excPtr),X=0};class Ye{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){$[this.ptr+4>>2]=e}get_type(){return $[this.ptr+4>>2]}set_destructor(e){$[this.ptr+8>>2]=e}get_destructor(){return $[this.ptr+8>>2]}set_caught(e){e=e?1:0,x[this.ptr+12]=e}get_caught(){return x[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,x[this.ptr+13]=e}get_rethrown(){return x[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){$[this.ptr+16>>2]=e}get_adjusted_ptr(){return $[this.ptr+16>>2]}get_exception_ptr(){var e=zr(this.get_type());if(e)return $[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Mt=r=>{throw X||(X=r),X},Le=r=>{var e=X;if(!e)return ye(0),0;var t=new Ye(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return ye(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(Xr(i,n,o))return ye(i),e}return ye(n),e},kt=()=>Le([]),Ut=r=>Le([r]),jt=(r,e)=>Le([r,e]),Ht=()=>{var r=Pe.pop();r||Ce("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Pe.push(r),r.set_rethrown(!0),r.set_caught(!1),Se++),X=e,X},Bt=(r,e,t)=>{var n=new Ye(r);throw n.init(e,t),X=r,Se++,X},xt=()=>Se,Ae={},Ne=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ve(r){return this.fromWireType($[r>>2])}var oe={},ee={},Ee={},wr,Fe=r=>{throw new wr(r)},re=(r,e,t)=>{r.forEach(function(s){Ee[s]=e});function n(s){var l=t(s);l.length!==r.length&&Fe("Mismatched type converter count");for(var f=0;f<r.length;++f)Y(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Vt=r=>{var e=Ae[r];delete Ae[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,_=o[f],p=l.getter,m=l.getterContext,E=o[f+a.length],U=l.setter,T=l.setterContext;s[v]={read:O=>_.fromWireType(p(m,O)),write:(O,c)=>{var d=[];U(T,O,E.toWireType(d,c)),Ne(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var _=t();for(v in s)s[v].write(_,f[v]);return l!==null&&l.push(n,_),_},argPackAdvance:L,readValueFromPointer:ve,destructorFunction:n}]})},Yt=(r,e,t,n,a)=>{},Lt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Tr=r},Tr,I=r=>{for(var e="",t=r;M[t];)e+=Tr[M[t++]];return e},se,y=r=>{throw new se(r)};function Nt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ee[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function Y(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Nt(r,e,t)}var L=8,Xt=(r,e,t,n)=>{e=I(e),Y(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:L,readValueFromPointer:function(a){return this.fromWireType(M[a])},destructorFunction:null})},zt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),Xe=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},ze=!1,Cr=r=>{},Zt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Pr=r=>{r.count.value-=1;var e=r.count.value===0;e&&Zt(r)},Sr=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Sr(r,e,t.baseClass);return n===null?null:t.downcast(n)},Ar={},Gt=()=>Object.keys(pe).length,qt=()=>{var r=[];for(var e in pe)pe.hasOwnProperty(e)&&r.push(pe[e]);return r},de=[],Ze=()=>{for(;de.length;){var r=de.pop();r.$$.deleteScheduled=!1,r.delete()}},he,Jt=r=>{he=r,de.length&&he&&he(Ze)},Qt=()=>{u.getInheritedInstanceCount=Gt,u.getLiveInheritedInstances=qt,u.flushPendingDeletes=Ze,u.setDelayFunction=Jt},pe={},Kt=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},en=(r,e)=>(e=Kt(r,e),pe[e]),Re=(r,e)=>{(!e.ptrType||!e.ptr)&&Fe("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Fe("Both smartPtrType and smartPtr must be specified"),e.count={value:1},_e(Object.create(r,{$$:{value:e,writable:!0}}))};function rn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=en(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Re(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Re(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Ar[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Sr(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var _e=r=>typeof FinalizationRegistry>"u"?(_e=e=>e,r):(ze=new FinalizationRegistry(e=>{Pr(e.$$)}),_e=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};ze.register(e,a,e)}return e},Cr=e=>ze.unregister(e),_e(r)),tn=()=>{Object.assign(Oe.prototype,{isAliasOf(r){if(!(this instanceof Oe)||!(r instanceof Oe))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||Xe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=_e(Object.create(Object.getPrototypeOf(this),{$$:{value:zt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Cr(this),Pr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Xe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),de.push(this),de.length===1&&he&&he(Ze),this.$$.deleteScheduled=!0,this}})};function Oe(){}var ge=(r,e)=>Object.defineProperty(e,"name",{value:r}),Er=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Ge=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Er(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},nn=48,an=57,on=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=nn&&e<=an?`_${r}`:r};function sn(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var qe=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function un(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${tr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=qe(e.$$.ptr,t,this.registeredClass);return n}function ln(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${tr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=qe(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function cn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${tr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=qe(e.$$.ptr,t,this.registeredClass);return n}var fn=()=>{Object.assign(De.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:L,readValueFromPointer:ve,fromWireType:rn})};function De(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=un,this.destructorFunction=null):(this.toWireType=cn,this.destructorFunction=null):this.toWireType=ln}var Fr=(r,e,t)=>{u.hasOwnProperty(r)||Fe("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},vn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},Ie=[],Rr,C=r=>{var e=Ie[r];return e||(r>=Ie.length&&(Ie.length=r+1),Ie[r]=e=Rr.get(r)),e},dn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return vn(r,e,t);var n=C(e)(...t);return n},hn=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return dn(r,e,n)},V=(r,e)=>{r=I(r);function t(){return r.includes("j")?hn(r,e):C(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},pn=(r,e)=>{var t=ge(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Or,Dr=r=>{var e=Yr(r),t=I(e);return G(e),t},We=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Ee[i]){Ee[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Or(`${r}: `+t.map(Dr).join([", "]))},_n=(r,e,t,n,a,i,o,s,l,f,v,_,p)=>{v=I(v),i=V(a,i),s&&(s=V(o,s)),f&&(f=V(l,f)),p=V(_,p);var m=on(v);Ge(m,function(){We(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var U,T;n?(U=E.registeredClass,T=U.instancePrototype):T=Oe.prototype;var O=ge(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var Jr=arguments.length,je=new Array(Jr),He=0;He<Jr;He++)je[He]=arguments[He];var Qr=d.constructor_body[je.length];if(Qr===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${je.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return Qr.apply(this,je)}),c=Object.create(T,{constructor:{value:O}});O.prototype=c;var d=new sn(v,O,c,p,U,i,s,f);if(d.baseClass){var F,R;(R=(F=d.baseClass).__derivedClasses)!==null&&R!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new De(v,d,!0,!1,!1),Ue=new De(v+"*",d,!1,!1,!1),qr=new De(v+" const*",d,!1,!0,!1);return Ar[r]={pointerType:Ue,constPointerType:qr},Fr(m,O),[ue,Ue,qr]})},Je=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push($[e+n*4>>2]);return t};function gn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Qe(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=gn(e),f=e[0].name!=="void",v=o-2,_=new Array(v),p=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var U;p.length=s?2:1,p[0]=a,s&&(U=e[1].toWireType(m,this),p[1]=U);for(var T=0;T<v;++T)_[T]=e[T+2].toWireType(m,T<0||arguments.length<=T?void 0:arguments[T]),p.push(_[T]);var O=n(...p);function c(d){if(l)Ne(m);else for(var F=s?1:2;F<e.length;F++){var R=F===1?U:_[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(R)}if(f)return e[0].fromWireType(d)}return c(O)};return ge(r,E)}var mn=(r,e,t,n,a,i)=>{var o=Je(e,t);a=V(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{We(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=Qe(l,f,null,a,i),[])),[]})},Ir=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},yn=(r,e,t,n,a,i,o,s,l)=>{var f=Je(t,n);e=I(e),e=Ir(e),i=V(a,i),re([],[r],v=>{v=v[0];var _=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function p(){We(`Cannot call ${_} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(p.argCount=t-2,p.className=v.name,m[e]=p):(Er(m,e,_),m[e].overloadTable[t-2]=p),re([],f,U=>{var T=Qe(_,U,v,i,o);return m[e].overloadTable===void 0?(T.argCount=t-2,m[e]=T):m[e].overloadTable[t-2]=T,[]}),[]})},Ke=[],z=[],er=r=>{r>9&&--z[r+1]===0&&(z[r]=void 0,Ke.push(r))},$n=()=>z.length/2-5-Ke.length,bn=()=>{z.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=$n},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),z[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=Ke.pop()||z.length;return z[e]=r,z[e+1]=1,e}}}},wn={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return er(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:L,readValueFromPointer:ve,destructorFunction:null},Wr=r=>Y(r,wn),Tn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(x[n])}:function(n){return this.fromWireType(M[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(ce[n>>1])};case 4:return t?function(n){return this.fromWireType(k[n>>2])}:function(n){return this.fromWireType($[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Cn=(r,e,t,n)=>{e=I(e);function a(){}a.values={},Y(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:L,readValueFromPointer:Tn(e,t,n),destructorFunction:null}),Ge(e,a)},rr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${Dr(r)}`),t},Pn=(r,e,t)=>{var n=rr(r,"enum");e=I(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:ge(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},tr=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},Sn=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(dr[t>>2])};case 8:return function(t){return this.fromWireType(hr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},An=(r,e,t)=>{e=I(e),Y(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:L,readValueFromPointer:Sn(e,t),destructorFunction:null})},En=(r,e,t,n,a,i,o)=>{var s=Je(e,t);r=I(r),r=Ir(r),a=V(n,a),Ge(r,function(){We(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Fr(r,Qe(r,f,null,a,i),e-1),[]})},Fn=(r,e,t)=>{switch(e){case 1:return t?n=>x[n]:n=>M[n];case 2:return t?n=>ae[n>>1]:n=>ce[n>>1];case 4:return t?n=>k[n>>2]:n=>$[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Rn=(r,e,t,n,a)=>{e=I(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,_)=>{},f;s?f=function(v,_){return l(_,this.name),_>>>0}:f=function(v,_){return l(_,this.name),_},Y(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:L,readValueFromPointer:Fn(e,t,n!==0),destructorFunction:null})},On=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=$[o>>2],l=$[o+4>>2];return new a(x.buffer,l,s)}t=I(t),Y(r,{name:t,fromWireType:i,argPackAdvance:L,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Dn=(r,e)=>{Wr(r)},Mr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},In=(r,e,t)=>Mr(r,M,e,t),kr=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Ur=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,jr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Ur)return Ur.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},nr=(r,e)=>r?jr(M,r,e):"",Wn=(r,e)=>{e=I(e);var t=e==="std::string";Y(r,{name:e,fromWireType(n){var a=$[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||M[f]==0){var v=f-s,_=nr(s,v);o===void 0?o=_:(o+="\0",o+=_),s=f+1}}else{for(var p=new Array(a),l=0;l<a;++l)p[l]=String.fromCharCode(M[i+l]);o=p.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=kr(a):i=a.length;var s=or(4+i+1),l=s+4;if($[s>>2]=i,t&&o)In(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),M[l+f]=v}else for(var f=0;f<i;++f)M[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:L,readValueFromPointer:ve,destructorFunction(n){G(n)}})},Hr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Mn=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&ce[n];)++n;if(t=n<<1,t-r>32&&Hr)return Hr.decode(M.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},kn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},Un=r=>r.length*2,jn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=k[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Hn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(k[e>>2]=s,e+=4,e+4>i)break}return k[e>>2]=0,e-a},Bn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},xn=(r,e,t)=>{t=I(t);var n,a,i,o;e===2?(n=Mn,a=kn,o=Un,i=s=>ce[s>>1]):e===4&&(n=jn,a=Hn,o=Bn,i=s=>$[s>>2]),Y(r,{name:t,fromWireType:s=>{for(var l=$[s>>2],f,v=s+4,_=0;_<=l;++_){var p=s+4+_*e;if(_==l||i(p)==0){var m=p-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=p+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=or(4+f+e);return $[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:L,readValueFromPointer:ve,destructorFunction(s){G(s)}})},Vn=(r,e,t,n,a,i)=>{Ae[r]={name:I(e),rawConstructor:V(t,n),rawDestructor:V(a,i),fields:[]}},Yn=(r,e,t,n,a,i,o,s,l,f)=>{Ae[r].fields.push({fieldName:I(e),getterReturnType:t,getter:V(n,a),getterContext:i,setterArgumentType:o,setter:V(s,l),setterContext:f})},Ln=(r,e)=>{e=I(e),Y(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ar=[],Nn=(r,e,t,n)=>(r=ar[r],e=Z.toValue(e),r(null,e,t,n)),Xn={},zn=r=>{var e=Xn[r];return e===void 0?I(r):e},Br=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Zn=r=>r===0?Z.toHandle(Br()):(r=zn(r),Z.toHandle(Br()[r])),Gn=r=>{var e=ar.length;return ar.push(r),e},qn=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=rr($[e+n*4>>2],"parameter "+n);return t},Jn=Reflect.construct,Qn=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&($[e>>2]=Z.toHandle(n)),a},Kn=(r,e,t)=>{var n=qn(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,_)=>{for(var p=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(_+p),p+=n[m].argPackAdvance;var E=t===1?Jn(f,i):f.apply(l,i);return Qn(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return Gn(ge(s,o))},ea=r=>{r>9&&(z[r+1]+=1)},ra=r=>{var e=Z.toValue(r);Ne(e),er(r)},ta=(r,e)=>{r=rr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},na=()=>{Ce("")},aa=(r,e,t)=>M.copyWithin(r,e,e+t),ia=()=>2147483648,oa=r=>{var e=Te.buffer,t=(r-e.byteLength+65535)/65536;try{return Te.grow(t),pr(),1}catch{}},sa=r=>{var e=M.length;r>>>=0;var t=ia();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=oa(o);if(s)return!0}return!1},ir={},ua=()=>N||"./this.program",me=()=>{if(!me.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:ua()};for(var t in ir)ir[t]===void 0?delete e[t]:e[t]=ir[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);me.strings=n}return me.strings},la=(r,e)=>{for(var t=0;t<r.length;++t)x[e++]=r.charCodeAt(t);x[e]=0},ca=(r,e)=>{var t=0;return me().forEach((n,a)=>{var i=e+t;$[r+a*4>>2]=i,la(n,i),t+=n.length+1}),0},fa=(r,e)=>{var t=me();$[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),$[e>>2]=n,0},va=r=>52;function da(r,e,t,n,a){return 70}var ha=[null,[],[]],pa=(r,e)=>{var t=ha[r];e===0||e===10?((r===1?$t:ne)(jr(t,0)),t.length=0):t.push(e)},_a=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=$[e>>2],s=$[e+4>>2];e+=8;for(var l=0;l<s;l++)pa(r,M[o+l]);a+=s}return $[n>>2]=a,0},ga=r=>r,Me=r=>r%4===0&&(r%100!==0||r%400===0),ma=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},xr=[31,29,31,30,31,30,31,31,30,31,30,31],Vr=[31,28,31,30,31,30,31,31,30,31,30,31],ya=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Me(t.getFullYear()),a=t.getMonth(),i=(n?xr:Vr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function $a(r,e,t){var n=t>0?t:kr(r)+1,a=new Array(n),i=Mr(r,a,0,a.length);return e&&(a.length=i),a}var ba=(r,e)=>{x.set(r,e)},wa=(r,e,t,n)=>{var a=$[n+40>>2],i={tm_sec:k[n>>2],tm_min:k[n+4>>2],tm_hour:k[n+8>>2],tm_mday:k[n+12>>2],tm_mon:k[n+16>>2],tm_year:k[n+20>>2],tm_wday:k[n+24>>2],tm_yday:k[n+28>>2],tm_isdst:k[n+32>>2],tm_gmtoff:k[n+36>>2],tm_zone:a?nr(a):""},o=nr(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(c,d,F){for(var R=typeof c=="number"?c.toString():c||"";R.length<d;)R=F[0]+R;return R}function p(c,d){return _(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var R;return(R=F(c.getFullYear()-d.getFullYear()))===0&&(R=F(c.getMonth()-d.getMonth()))===0&&(R=F(c.getDate()-d.getDate())),R}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function U(c){var d=ya(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),R=new Date(d.getFullYear()+1,0,4),ue=E(F),Ue=E(R);return m(ue,d)<=0?m(Ue,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return p(d/100|0,2)},"%d":c=>p(c.tm_mday,2),"%e":c=>_(c.tm_mday,2," "),"%g":c=>U(c).toString().substring(2),"%G":U,"%H":c=>p(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":c=>p(c.tm_mday+ma(Me(c.tm_year+1900)?xr:Vr,c.tm_mon-1),3),"%m":c=>p(c.tm_mon+1,2),"%M":c=>p(c.tm_min,2),"%n":()=>`
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>p(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return p(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var R=(c.tm_wday+371-c.tm_yday)%7;R!=4&&(R!=3||!Me(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&Me(c.tm_year%400-1))&&d++}return p(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in T)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),T[l](i)));o=o.replace(/\0\0/g,"%");var O=$a(o,!1);return O.length>e?0:(ba(O,r),O.length-1)},Ta=(r,e,t,n,a)=>wa(r,e,t,n);wr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Lt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},tn(),Qt(),fn(),Or=u.UnboundTypeError=pn(Error,"UnboundTypeError"),bn();var Ca={s:It,u:Wt,b:kt,g:Ut,q:jt,K:Ht,f:Bt,Y:xt,d:Mt,ha:Vt,U:Yt,ba:Xt,fa:_n,ea:mn,w:yn,aa:Wr,x:Cn,h:Pn,O:An,P:En,t:Rn,o:On,ga:Dn,N:Wn,C:xn,A:Vn,ia:Yn,ca:Ln,E:Nn,ka:er,la:Zn,M:Kn,Q:ea,R:ra,da:ta,B:na,$:aa,Z:sa,W:ca,X:fa,_:va,T:da,L:_a,F:Ba,D:Fa,G:Ha,m:xa,a:Pa,e:Oa,p:Ea,k:ja,I:ka,v:Wa,H:Ua,z:Ya,S:Na,l:Da,j:Ra,c:Aa,n:Sa,J:Ma,r:Va,i:Ia,y:La,ja:ga,V:Ta},P=Dt(),G=u._free=r=>(G=u._free=P.oa)(r),or=u._malloc=r=>(or=u._malloc=P.pa)(r),Yr=r=>(Yr=P.ra)(r),w=(r,e)=>(w=P.sa)(r,e),ye=r=>(ye=P.ta)(r),S=()=>(S=P.ua)(),A=r=>(A=P.va)(r),Lr=r=>(Lr=P.wa)(r),Nr=r=>(Nr=P.xa)(r),Xr=(r,e,t)=>(Xr=P.ya)(r,e,t),zr=r=>(zr=P.za)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=P.Aa)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=P.Ba)(r,e,t,n,a);var Zr=u.dynCall_jiiii=(r,e,t,n,a)=>(Zr=u.dynCall_jiiii=P.Ca)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=P.Da)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=P.Ea)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=P.Fa)(r,e,t,n,a,i,o,s,l,f);function Pa(r,e){var t=S();try{return C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Sa(r,e,t,n){var a=S();try{C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Aa(r,e,t){var n=S();try{C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Ea(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Fa(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function Ra(r,e){var t=S();try{C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Oa(r,e,t){var n=S();try{return C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Da(r){var e=S();try{C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Ia(r,e,t,n,a,i,o,s,l,f,v){var _=S();try{C(r)(e,t,n,a,i,o,s,l,f,v)}catch(p){if(A(_),p!==p+0)throw p;w(1,0)}}function Wa(r,e,t,n,a,i,o){var s=S();try{return C(r)(e,t,n,a,i,o)}catch(l){if(A(s),l!==l+0)throw l;w(1,0)}}function Ma(r,e,t,n,a){var i=S();try{C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function ka(r,e,t,n,a,i){var o=S();try{return C(r)(e,t,n,a,i)}catch(s){if(A(o),s!==s+0)throw s;w(1,0)}}function Ua(r,e,t,n,a,i,o,s){var l=S();try{return C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function ja(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function Ha(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Ba(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function xa(r){var e=S();try{return C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Va(r,e,t,n,a,i,o,s){var l=S();try{C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function Ya(r,e,t,n,a,i,o,s,l,f,v,_){var p=S();try{return C(r)(e,t,n,a,i,o,s,l,f,v,_)}catch(m){if(A(p),m!==m+0)throw m;w(1,0)}}function La(r,e,t,n,a,i,o,s,l,f,v,_,p,m,E,U){var T=S();try{C(r)(e,t,n,a,i,o,s,l,f,v,_,p,m,E,U)}catch(O){if(A(T),O!==O+0)throw O;w(1,0)}}function Na(r,e,t,n,a){var i=S();try{return Zr(r,e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}var ke;fe=function r(){ke||Gr(),ke||(fe=r)};function Gr(){if(K>0||(bt(),K>0))return;function r(){ke||(ke=!0,u.calledRun=!0,!vr&&(wt(),j(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Tt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return Gr(),g.ready}})();const fr={...te,formats:[...te.formats]};function _t(h){return xe(be,h)}function gt(h){return dt(be,h)}async function mt(h,g){return ht(be,h,g)}async function yt(h,g){return pt(be,h,g)}return W.barcodeFormats=Be,W.binarizers=rt,W.characterSets=nt,W.contentTypes=ur,W.defaultDecodeHints=fr,W.defaultReaderOptions=fr,W.eanAddOnSymbols=ot,W.getZXingModule=_t,W.purgeZXingModule=vt,W.readBarcodesFromImageData=yt,W.readBarcodesFromImageFile=mt,W.readOutputEccLevels=ct,W.setZXingModuleOverrides=gt,W.textModes=ut,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),W}({});
var ZXingWASM=function(I){"use strict";const Be=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function rt(h){return h.join("|")}function tt(h){const g=ur(h);let u=0,U=Be.length-1;for(;u<=U;){const $=Math.floor((u+U)/2),j=Be[$],L=ur(j);if(L===g)return j;L<g?u=$+1:U=$-1}return"None"}function ur(h){return h.toLowerCase().replace(/_-\[\]/g,"")}const nt=["LocalAverage","GlobalHistogram","FixedThreshold","BoolCast"];function at(h,g){return h.Binarizer[g]}const it=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function ot(h,g){return h.CharacterSet[g]}const lr=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function st(h){return lr[h.value]}const ut=["Ignore","Read","Require"];function lt(h,g){return h.EanAddOnSymbol[g]}const ct=["Plain","ECI","HRI","Hex","Escaped"];function ft(h,g){return h.TextMode[g]}const te={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function cr(h,g){return{...g,formats:rt(g.formats),binarizer:at(h,g.binarizer),eanAddOnSymbol:lt(h,g.eanAddOnSymbol),textMode:ft(h,g.textMode),characterSet:ot(h,g.characterSet)}}const vt=["L","M","Q","H"];function fr(h){return{...h,format:tt(h.format),eccLevel:h.eccLevel,contentType:st(h.contentType)}}const dt={locateFile:(h,g)=>{const u=h.match(/_(.+?)\.wasm$/);return u?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.5-rc.0/dist/${u[1]}/${h}`:g+h}};let $e=new WeakMap;function xe(h,g){var j;const u=$e.get(h);if(u!=null&&u.modulePromise&&(g===void 0||Object.is(g,u.moduleOverrides)))return u.modulePromise;const U=(j=g!=null?g:u==null?void 0:u.moduleOverrides)!=null?j:dt,$=h({...U});return $e.set(h,{moduleOverrides:U,modulePromise:$}),$}function ht(){$e=new WeakMap}function pt(h,g){$e.set(h,{moduleOverrides:g})}async function _t(h,g,u=te){const U={...te,...u},$=await xe(h),{size:j}=g,L=new Uint8Array(await g.arrayBuffer()),q=$._malloc(j);$.HEAPU8.set(L,q);const Q=$.readBarcodesFromImage(q,j,cr($,U));$._free(q);const J=[];for(let B=0;B<Q.size();++B)J.push(fr(Q.get(B)));return J}async function gt(h,g,u=te){const U={...te,...u},$=await xe(h),{data:j,width:L,height:q,data:{byteLength:Q}}=g,J=$._malloc(Q);$.HEAPU8.set(j,J);const B=$.readBarcodesFromPixmap(J,L,q,cr($,U));$._free(J);const H=[];for(let le=0;le<B.size();++le)H.push(fr(B.get(le)));return H}var we=(()=>{var h=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(g={}){var Jr;var u=g,U,$;u.ready=new Promise((r,e)=>{U=r,$=e});var j=Object.assign({},u),L="./this.program",q=typeof window=="object",Q=typeof Bun<"u",J=typeof((Jr=globalThis.WebAssembly)==null?void 0:Jr.instantiate)=="function",B=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var H="";function le(r){return u.locateFile?u.locateFile(r,H):H+r}var Ve;(q||B||Q)&&(B?H=self.location.href:typeof document<"u"&&document.currentScript&&(H=document.currentScript.src),h&&(H=h),H.startsWith("blob:")?H="":H=H.substr(0,H.replace(/[?#].*/,"").lastIndexOf("/")+1),B&&(Ve=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}));var wt=u.print||console.log.bind(console),ne=u.printErr||console.error.bind(console);Object.assign(u,j),j=null,u.arguments&&u.arguments,u.thisProgram&&(L=u.thisProgram),u.quit&&u.quit;var ce;u.wasmBinary&&(ce=u.wasmBinary),typeof WebAssembly!="object"&&Ce("no native wasm support detected");var Te,dr=!1,x,W,ae,fe,M,b,hr,pr;function _r(){var r=Te.buffer;u.HEAP8=x=new Int8Array(r),u.HEAP16=ae=new Int16Array(r),u.HEAPU8=W=new Uint8Array(r),u.HEAPU16=fe=new Uint16Array(r),u.HEAP32=M=new Int32Array(r),u.HEAPU32=b=new Uint32Array(r),u.HEAPF32=hr=new Float32Array(r),u.HEAPF64=pr=new Float64Array(r)}var gr=[],mr=[],yr=[];function Tt(){if(u.preRun)for(typeof u.preRun=="function"&&(u.preRun=[u.preRun]);u.preRun.length;)St(u.preRun.shift());Ye(gr)}function Ct(){Ye(mr)}function Pt(){if(u.postRun)for(typeof u.postRun=="function"&&(u.postRun=[u.postRun]);u.postRun.length;)Et(u.postRun.shift());Ye(yr)}function St(r){gr.unshift(r)}function At(r){mr.unshift(r)}function Et(r){yr.unshift(r)}var K=0,ve=null;function Ft(r){var e;K++,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K)}function Rt(r){var e;if(K--,(e=u.monitorRunDependencies)===null||e===void 0||e.call(u,K),K==0&&ve){var t=ve;ve=null,t()}}function Ce(r){var e;(e=u.onAbort)===null||e===void 0||e.call(u,r),r="Aborted("+r+")",ne(r),dr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw $(t),t}var Ot="data:application/octet-stream;base64,",br=r=>r.startsWith(Ot),ie;ie="zxing_reader.wasm",br(ie)||(ie=le(ie));function $r(r){if(r==ie&&ce)return new Uint8Array(ce);if(Ve)return Ve(r);throw"both async and sync fetching of the wasm failed"}function Dt(r){return!ce&&(q||B||Q||J)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>$r(r)):Promise.resolve().then(()=>$r(r))}function wr(r,e,t){return Dt(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{ne(`failed to asynchronously prepare wasm: ${n}`),Ce(n)})}function It(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!br(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(o){return ne(`wasm streaming compile failed: ${o}`),ne("falling back to ArrayBuffer instantiation"),wr(e,t,n)})}):wr(e,t,n)}function Wt(){var r={a:Sa};function e(n,a){return P=n.exports,Te=P.ma,_r(),Or=P.qa,At(P.na),Rt(),P}Ft();function t(n){e(n.instance)}if(u.instantiateWasm)try{return u.instantiateWasm(r,e)}catch(n){ne(`Module.instantiateWasm callback failed with error: ${n}`),$(n)}return It(ce,ie,r,t).catch($),{}}var Ye=r=>{for(;r.length>0;)r.shift()(u)};u.noExitRuntime;var Pe=[],Se=0,Mt=r=>{var e=new Ne(r);return e.get_caught()||(e.set_caught(!0),Se--),e.set_rethrown(!1),Pe.push(e),Xr(e.excPtr),e.get_exception_ptr()},X=0,kt=()=>{w(0,0);var r=Pe.pop();Lr(r.excPtr),X=0};class Ne{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){b[this.ptr+4>>2]=e}get_type(){return b[this.ptr+4>>2]}set_destructor(e){b[this.ptr+8>>2]=e}get_destructor(){return b[this.ptr+8>>2]}set_caught(e){e=e?1:0,x[this.ptr+12]=e}get_caught(){return x[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,x[this.ptr+13]=e}get_rethrown(){return x[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){b[this.ptr+16>>2]=e}get_adjusted_ptr(){return b[this.ptr+16>>2]}get_exception_ptr(){var e=Zr(this.get_type());if(e)return b[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Ut=r=>{throw X||(X=r),X},Le=r=>{var e=X;if(!e)return be(0),0;var t=new Ne(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return be(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var o=t.ptr+16;if(zr(i,n,o))return be(i),e}return be(n),e},jt=()=>Le([]),Ht=r=>Le([r]),Bt=(r,e)=>Le([r,e]),xt=()=>{var r=Pe.pop();r||Ce("no exception to throw");var e=r.excPtr;throw r.get_rethrown()||(Pe.push(r),r.set_rethrown(!0),r.set_caught(!1),Se++),X=e,X},Vt=(r,e,t)=>{var n=new Ne(r);throw n.init(e,t),X=r,Se++,X},Yt=()=>Se,Ae={},Xe=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function de(r){return this.fromWireType(b[r>>2])}var oe={},ee={},Ee={},Tr,Fe=r=>{throw new Tr(r)},re=(r,e,t)=>{r.forEach(function(s){Ee[s]=e});function n(s){var l=t(s);l.length!==r.length&&Fe("Mismatched type converter count");for(var f=0;f<r.length;++f)Y(r[f],l[f])}var a=new Array(e.length),i=[],o=0;e.forEach((s,l)=>{ee.hasOwnProperty(s)?a[l]=ee[s]:(i.push(s),oe.hasOwnProperty(s)||(oe[s]=[]),oe[s].push(()=>{a[l]=ee[s],++o,o===i.length&&n(a)}))}),i.length===0&&n(a)},Nt=r=>{var e=Ae[r];delete Ae[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(o=>o.getterReturnType).concat(a.map(o=>o.setterArgumentType));re([r],i,o=>{var s={};return a.forEach((l,f)=>{var v=l.fieldName,_=o[f],p=l.getter,m=l.getterContext,E=o[f+a.length],k=l.setter,T=l.setterContext;s[v]={read:O=>_.fromWireType(p(m,O)),write:(O,c)=>{var d=[];k(T,O,E.toWireType(d,c)),Xe(d)}}}),[{name:e.name,fromWireType:l=>{var f={};for(var v in s)f[v]=s[v].read(l);return n(l),f},toWireType:(l,f)=>{for(var v in s)if(!(v in f))throw new TypeError(`Missing field: "${v}"`);var _=t();for(v in s)s[v].write(_,f[v]);return l!==null&&l.push(n,_),_},argPackAdvance:N,readValueFromPointer:de,destructorFunction:n}]})},Lt=(r,e,t,n,a)=>{},Xt=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Cr=r},Cr,D=r=>{for(var e="",t=r;W[t];)e+=Cr[W[t++]];return e},se,y=r=>{throw new se(r)};function zt(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||y(`type "${n}" must have a positive integer typeid pointer`),ee.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;y(`Cannot register type '${n}' twice`)}if(ee[r]=e,delete Ee[r],oe.hasOwnProperty(r)){var a=oe[r];delete oe[r],a.forEach(i=>i())}}function Y(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return zt(r,e,t)}var N=8,Zt=(r,e,t,n)=>{e=D(e),Y(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:N,readValueFromPointer:function(a){return this.fromWireType(W[a])},destructorFunction:null})},Gt=r=>({count:r.count,deleteScheduled:r.deleteScheduled,preservePointerOnDelete:r.preservePointerOnDelete,ptr:r.ptr,ptrType:r.ptrType,smartPtr:r.smartPtr,smartPtrType:r.smartPtrType}),ze=r=>{function e(t){return t.$$.ptrType.registeredClass.name}y(e(r)+" instance already deleted")},Ze=!1,Pr=r=>{},qt=r=>{r.smartPtr?r.smartPtrType.rawDestructor(r.smartPtr):r.ptrType.registeredClass.rawDestructor(r.ptr)},Sr=r=>{r.count.value-=1;var e=r.count.value===0;e&&qt(r)},Ar=(r,e,t)=>{if(e===t)return r;if(t.baseClass===void 0)return null;var n=Ar(r,e,t.baseClass);return n===null?null:t.downcast(n)},Er={},Jt=()=>Object.keys(_e).length,Qt=()=>{var r=[];for(var e in _e)_e.hasOwnProperty(e)&&r.push(_e[e]);return r},he=[],Ge=()=>{for(;he.length;){var r=he.pop();r.$$.deleteScheduled=!1,r.delete()}},pe,Kt=r=>{pe=r,he.length&&pe&&pe(Ge)},en=()=>{u.getInheritedInstanceCount=Jt,u.getLiveInheritedInstances=Qt,u.flushPendingDeletes=Ge,u.setDelayFunction=Kt},_e={},rn=(r,e)=>{for(e===void 0&&y("ptr should not be undefined");r.baseClass;)e=r.upcast(e),r=r.baseClass;return e},tn=(r,e)=>(e=rn(r,e),_e[e]),Re=(r,e)=>{(!e.ptrType||!e.ptr)&&Fe("makeClassHandle requires ptr and ptrType");var t=!!e.smartPtrType,n=!!e.smartPtr;return t!==n&&Fe("Both smartPtrType and smartPtr must be specified"),e.count={value:1},ge(Object.create(r,{$$:{value:e,writable:!0}}))};function nn(r){var e=this.getPointee(r);if(!e)return this.destructor(r),null;var t=tn(this.registeredClass,e);if(t!==void 0){if(t.$$.count.value===0)return t.$$.ptr=e,t.$$.smartPtr=r,t.clone();var n=t.clone();return this.destructor(r),n}function a(){return this.isSmartPointer?Re(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:e,smartPtrType:this,smartPtr:r}):Re(this.registeredClass.instancePrototype,{ptrType:this,ptr:r})}var i=this.registeredClass.getActualType(e),o=Er[i];if(!o)return a.call(this);var s;this.isConst?s=o.constPointerType:s=o.pointerType;var l=Ar(e,this.registeredClass,s.registeredClass);return l===null?a.call(this):this.isSmartPointer?Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l,smartPtrType:this,smartPtr:r}):Re(s.registeredClass.instancePrototype,{ptrType:s,ptr:l})}var ge=r=>typeof FinalizationRegistry>"u"?(ge=e=>e,r):(Ze=new FinalizationRegistry(e=>{Sr(e.$$)}),ge=e=>{var t=e.$$,n=!!t.smartPtr;if(n){var a={$$:t};Ze.register(e,a,e)}return e},Pr=e=>Ze.unregister(e),ge(r)),an=()=>{Object.assign(Oe.prototype,{isAliasOf(r){if(!(this instanceof Oe)||!(r instanceof Oe))return!1;var e=this.$$.ptrType.registeredClass,t=this.$$.ptr;r.$$=r.$$;for(var n=r.$$.ptrType.registeredClass,a=r.$$.ptr;e.baseClass;)t=e.upcast(t),e=e.baseClass;for(;n.baseClass;)a=n.upcast(a),n=n.baseClass;return e===n&&t===a},clone(){if(this.$$.ptr||ze(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var r=ge(Object.create(Object.getPrototypeOf(this),{$$:{value:Gt(this.$$)}}));return r.$$.count.value+=1,r.$$.deleteScheduled=!1,r},delete(){this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),Pr(this),Sr(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||ze(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&y("Object already scheduled for deletion"),he.push(this),he.length===1&&pe&&pe(Ge),this.$$.deleteScheduled=!0,this}})};function Oe(){}var me=(r,e)=>Object.defineProperty(e,"name",{value:r}),Fr=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return r[e].overloadTable.hasOwnProperty(i.length)||y(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},qe=(r,e,t)=>{u.hasOwnProperty(r)?((t===void 0||u[r].overloadTable!==void 0&&u[r].overloadTable[t]!==void 0)&&y(`Cannot register public name '${r}' twice`),Fr(u,r,r),u.hasOwnProperty(t)&&y(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),u[r].overloadTable[t]=e):(u[r]=e,t!==void 0&&(u[r].numArguments=t))},on=48,sn=57,un=r=>{if(r===void 0)return"_unknown";r=r.replace(/[^a-zA-Z0-9_]/g,"$");var e=r.charCodeAt(0);return e>=on&&e<=sn?`_${r}`:r};function ln(r,e,t,n,a,i,o,s){this.name=r,this.constructor=e,this.instancePrototype=t,this.rawDestructor=n,this.baseClass=a,this.getActualType=i,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var Je=(r,e,t)=>{for(;e!==t;)e.upcast||y(`Expected null or instance of ${t.name}, got an instance of ${e.name}`),r=e.upcast(r),e=e.baseClass;return r};function cn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}function fn(r,e){var t;if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),this.isSmartPointer?(t=this.rawConstructor(),r!==null&&r.push(this.rawDestructor,t),t):0;(!e||!e.$$)&&y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);var n=e.$$.ptrType.registeredClass;if(t=Je(e.$$.ptr,n,this.registeredClass),this.isSmartPointer)switch(e.$$.smartPtr===void 0&&y("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:e.$$.smartPtrType===this?t=e.$$.smartPtr:y(`Cannot convert argument of type ${e.$$.smartPtrType?e.$$.smartPtrType.name:e.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:t=e.$$.smartPtr;break;case 2:if(e.$$.smartPtrType===this)t=e.$$.smartPtr;else{var a=e.clone();t=this.rawShare(t,Z.toHandle(()=>a.delete())),r!==null&&r.push(this.rawDestructor,t)}break;default:y("Unsupporting sharing policy")}return t}function vn(r,e){if(e===null)return this.isReference&&y(`null is not a valid ${this.name}`),0;e.$$||y(`Cannot pass "${nr(e)}" as a ${this.name}`),e.$$.ptr||y(`Cannot pass deleted object as a pointer of type ${this.name}`),e.$$.ptrType.isConst&&y(`Cannot convert argument of type ${e.$$.ptrType.name} to parameter type ${this.name}`);var t=e.$$.ptrType.registeredClass,n=Je(e.$$.ptr,t,this.registeredClass);return n}var dn=()=>{Object.assign(De.prototype,{getPointee(r){return this.rawGetPointee&&(r=this.rawGetPointee(r)),r},destructor(r){var e;(e=this.rawDestructor)===null||e===void 0||e.call(this,r)},argPackAdvance:N,readValueFromPointer:de,fromWireType:nn})};function De(r,e,t,n,a,i,o,s,l,f,v){this.name=r,this.registeredClass=e,this.isReference=t,this.isConst=n,this.isSmartPointer=a,this.pointeeType=i,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=f,this.rawDestructor=v,!a&&e.baseClass===void 0?n?(this.toWireType=cn,this.destructorFunction=null):(this.toWireType=vn,this.destructorFunction=null):this.toWireType=fn}var Rr=(r,e,t)=>{u.hasOwnProperty(r)||Fe("Replacing nonexistant public symbol"),u[r].overloadTable!==void 0&&t!==void 0?u[r].overloadTable[t]=e:(u[r]=e,u[r].argCount=t)},hn=(r,e,t)=>{var n=u["dynCall_"+r];return n(e,...t)},Ie=[],Or,C=r=>{var e=Ie[r];return e||(r>=Ie.length&&(Ie.length=r+1),Ie[r]=e=Or.get(r)),e},pn=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return hn(r,e,t);var n=C(e)(...t);return n},_n=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return pn(r,e,n)},V=(r,e)=>{r=D(r);function t(){return r.includes("j")?_n(r,e):C(e)}var n=t();return typeof n!="function"&&y(`unknown function pointer with signature ${r}: ${e}`),n},gn=(r,e)=>{var t=me(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Dr,Ir=r=>{var e=Nr(r),t=D(e);return G(e),t},We=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!ee[i]){if(Ee[i]){Ee[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Dr(`${r}: `+t.map(Ir).join([", "]))},mn=(r,e,t,n,a,i,o,s,l,f,v,_,p)=>{v=D(v),i=V(a,i),s&&(s=V(o,s)),f&&(f=V(l,f)),p=V(_,p);var m=un(v);qe(m,function(){We(`Cannot construct ${v} due to unbound types`,[n])}),re([r,e,t],n?[n]:[],E=>{E=E[0];var k,T;n?(k=E.registeredClass,T=k.instancePrototype):T=Oe.prototype;var O=me(v,function(){if(Object.getPrototypeOf(this)!==c)throw new se("Use 'new' to construct "+v);if(d.constructor_body===void 0)throw new se(v+" has no accessible constructor");for(var Kr=arguments.length,je=new Array(Kr),He=0;He<Kr;He++)je[He]=arguments[He];var et=d.constructor_body[je.length];if(et===void 0)throw new se(`Tried to invoke ctor of ${v} with invalid number of parameters (${je.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return et.apply(this,je)}),c=Object.create(T,{constructor:{value:O}});O.prototype=c;var d=new ln(v,O,c,p,k,i,s,f);if(d.baseClass){var F,R;(R=(F=d.baseClass).__derivedClasses)!==null&&R!==void 0||(F.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var ue=new De(v,d,!0,!1,!1),Ue=new De(v+"*",d,!1,!1,!1),Qr=new De(v+" const*",d,!1,!0,!1);return Er[r]={pointerType:Ue,constPointerType:Qr},Rr(m,O),[ue,Ue,Qr]})},Qe=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(b[e+n*4>>2]);return t};function yn(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function Ke(r,e,t,n,a,i){var o=e.length;o<2&&y("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=e[1]!==null&&t!==null,l=yn(e),f=e[0].name!=="void",v=o-2,_=new Array(v),p=[],m=[],E=function(){arguments.length!==v&&y(`function ${r} called with ${arguments.length} arguments, expected ${v}`),m.length=0;var k;p.length=s?2:1,p[0]=a,s&&(k=e[1].toWireType(m,this),p[1]=k);for(var T=0;T<v;++T)_[T]=e[T+2].toWireType(m,T<0||arguments.length<=T?void 0:arguments[T]),p.push(_[T]);var O=n(...p);function c(d){if(l)Xe(m);else for(var F=s?1:2;F<e.length;F++){var R=F===1?k:_[F-2];e[F].destructorFunction!==null&&e[F].destructorFunction(R)}if(f)return e[0].fromWireType(d)}return c(O)};return me(r,E)}var bn=(r,e,t,n,a,i)=>{var o=Qe(e,t);a=V(n,a),re([],[r],s=>{s=s[0];var l=`constructor ${s.name}`;if(s.registeredClass.constructor_body===void 0&&(s.registeredClass.constructor_body=[]),s.registeredClass.constructor_body[e-1]!==void 0)throw new se(`Cannot register multiple constructors with identical number of parameters (${e-1}) for class '${s.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return s.registeredClass.constructor_body[e-1]=()=>{We(`Cannot construct ${s.name} due to unbound types`,o)},re([],o,f=>(f.splice(1,0,null),s.registeredClass.constructor_body[e-1]=Ke(l,f,null,a,i),[])),[]})},Wr=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},$n=(r,e,t,n,a,i,o,s,l)=>{var f=Qe(t,n);e=D(e),e=Wr(e),i=V(a,i),re([],[r],v=>{v=v[0];var _=`${v.name}.${e}`;e.startsWith("@@")&&(e=Symbol[e.substring(2)]),s&&v.registeredClass.pureVirtualFunctions.push(e);function p(){We(`Cannot call ${_} due to unbound types`,f)}var m=v.registeredClass.instancePrototype,E=m[e];return E===void 0||E.overloadTable===void 0&&E.className!==v.name&&E.argCount===t-2?(p.argCount=t-2,p.className=v.name,m[e]=p):(Fr(m,e,_),m[e].overloadTable[t-2]=p),re([],f,k=>{var T=Ke(_,k,v,i,o);return m[e].overloadTable===void 0?(T.argCount=t-2,m[e]=T):m[e].overloadTable[t-2]=T,[]}),[]})},er=[],z=[],rr=r=>{r>9&&--z[r+1]===0&&(z[r]=void 0,er.push(r))},wn=()=>z.length/2-5-er.length,Tn=()=>{z.push(0,1,void 0,1,null,1,!0,1,!1,1),u.count_emval_handles=wn},Z={toValue:r=>(r||y("Cannot use deleted val. handle = "+r),z[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=er.pop()||z.length;return z[e]=r,z[e+1]=1,e}}}},Cn={name:"emscripten::val",fromWireType:r=>{var e=Z.toValue(r);return rr(r),e},toWireType:(r,e)=>Z.toHandle(e),argPackAdvance:N,readValueFromPointer:de,destructorFunction:null},Mr=r=>Y(r,Cn),Pn=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(x[n])}:function(n){return this.fromWireType(W[n])};case 2:return t?function(n){return this.fromWireType(ae[n>>1])}:function(n){return this.fromWireType(fe[n>>1])};case 4:return t?function(n){return this.fromWireType(M[n>>2])}:function(n){return this.fromWireType(b[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Sn=(r,e,t,n)=>{e=D(e);function a(){}a.values={},Y(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,o)=>o.value,argPackAdvance:N,readValueFromPointer:Pn(e,t,n),destructorFunction:null}),qe(e,a)},tr=(r,e)=>{var t=ee[r];return t===void 0&&y(`${e} has unknown type ${Ir(r)}`),t},An=(r,e,t)=>{var n=tr(r,"enum");e=D(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:me(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},nr=r=>{if(r===null)return"null";var e=typeof r;return e==="object"||e==="array"||e==="function"?r.toString():""+r},En=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(hr[t>>2])};case 8:return function(t){return this.fromWireType(pr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Fn=(r,e,t)=>{e=D(e),Y(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:N,readValueFromPointer:En(e,t),destructorFunction:null})},Rn=(r,e,t,n,a,i,o)=>{var s=Qe(e,t);r=D(r),r=Wr(r),a=V(n,a),qe(r,function(){We(`Cannot call ${r} due to unbound types`,s)},e-1),re([],s,l=>{var f=[l[0],null].concat(l.slice(1));return Rr(r,Ke(r,f,null,a,i),e-1),[]})},On=(r,e,t)=>{switch(e){case 1:return t?n=>x[n]:n=>W[n];case 2:return t?n=>ae[n>>1]:n=>fe[n>>1];case 4:return t?n=>M[n>>2]:n=>b[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Dn=(r,e,t,n,a)=>{e=D(e);var i=v=>v;if(n===0){var o=32-8*t;i=v=>v<<o>>>o}var s=e.includes("unsigned"),l=(v,_)=>{},f;s?f=function(v,_){return l(_,this.name),_>>>0}:f=function(v,_){return l(_,this.name),_},Y(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:N,readValueFromPointer:On(e,t,n!==0),destructorFunction:null})},In=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(o){var s=b[o>>2],l=b[o+4>>2];return new a(x.buffer,l,s)}t=D(t),Y(r,{name:t,fromWireType:i,argPackAdvance:N,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},Wn=(r,e)=>{Mr(r)},kr=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(s<=127){if(t>=i)break;e[t++]=s}else if(s<=2047){if(t+1>=i)break;e[t++]=192|s>>6,e[t++]=128|s&63}else if(s<=65535){if(t+2>=i)break;e[t++]=224|s>>12,e[t++]=128|s>>6&63,e[t++]=128|s&63}else{if(t+3>=i)break;e[t++]=240|s>>18,e[t++]=128|s>>12&63,e[t++]=128|s>>6&63,e[t++]=128|s&63}}return e[t]=0,t-a},Mn=(r,e,t)=>kr(r,W,e,t),Ur=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},jr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,Hr=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&jr)return jr.decode(r.subarray(e,a));for(var i="";e<a;){var o=r[e++];if(!(o&128)){i+=String.fromCharCode(o);continue}var s=r[e++]&63;if((o&224)==192){i+=String.fromCharCode((o&31)<<6|s);continue}var l=r[e++]&63;if((o&240)==224?o=(o&15)<<12|s<<6|l:o=(o&7)<<18|s<<12|l<<6|r[e++]&63,o<65536)i+=String.fromCharCode(o);else{var f=o-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ar=(r,e)=>r?Hr(W,r,e):"",kn=(r,e)=>{e=D(e);var t=e==="std::string";Y(r,{name:e,fromWireType(n){var a=b[n>>2],i=n+4,o;if(t)for(var s=i,l=0;l<=a;++l){var f=i+l;if(l==a||W[f]==0){var v=f-s,_=ar(s,v);o===void 0?o=_:(o+="\0",o+=_),s=f+1}}else{for(var p=new Array(a),l=0;l<a;++l)p[l]=String.fromCharCode(W[i+l]);o=p.join("")}return G(n),o},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,o=typeof a=="string";o||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||y("Cannot pass non-string to std::string"),t&&o?i=Ur(a):i=a.length;var s=sr(4+i+1),l=s+4;if(b[s>>2]=i,t&&o)Mn(a,l,i+1);else if(o)for(var f=0;f<i;++f){var v=a.charCodeAt(f);v>255&&(G(l),y("String has UTF-16 code units that do not fit in 8 bits")),W[l+f]=v}else for(var f=0;f<i;++f)W[l+f]=a[f];return n!==null&&n.push(G,s),s},argPackAdvance:N,readValueFromPointer:de,destructorFunction(n){G(n)}})},Br=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,Un=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&fe[n];)++n;if(t=n<<1,t-r>32&&Br)return Br.decode(W.subarray(r,t));for(var i="",o=0;!(o>=e/2);++o){var s=ae[r+o*2>>1];if(s==0)break;i+=String.fromCharCode(s)}return i},jn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,o=0;o<i;++o){var s=r.charCodeAt(o);ae[e>>1]=s,e+=2}return ae[e>>1]=0,e-a},Hn=r=>r.length*2,Bn=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=M[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},xn=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,o=0;o<r.length;++o){var s=r.charCodeAt(o);if(s>=55296&&s<=57343){var l=r.charCodeAt(++o);s=65536+((s&1023)<<10)|l&1023}if(M[e>>2]=s,e+=4,e+4>i)break}return M[e>>2]=0,e-a},Vn=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Yn=(r,e,t)=>{t=D(t);var n,a,i,o;e===2?(n=Un,a=jn,o=Hn,i=s=>fe[s>>1]):e===4&&(n=Bn,a=xn,o=Vn,i=s=>b[s>>2]),Y(r,{name:t,fromWireType:s=>{for(var l=b[s>>2],f,v=s+4,_=0;_<=l;++_){var p=s+4+_*e;if(_==l||i(p)==0){var m=p-v,E=n(v,m);f===void 0?f=E:(f+="\0",f+=E),v=p+e}}return G(s),f},toWireType:(s,l)=>{typeof l!="string"&&y(`Cannot pass non-string to C++ string type ${t}`);var f=o(l),v=sr(4+f+e);return b[v>>2]=f/e,a(l,v+4,f+e),s!==null&&s.push(G,v),v},argPackAdvance:N,readValueFromPointer:de,destructorFunction(s){G(s)}})},Nn=(r,e,t,n,a,i)=>{Ae[r]={name:D(e),rawConstructor:V(t,n),rawDestructor:V(a,i),fields:[]}},Ln=(r,e,t,n,a,i,o,s,l,f)=>{Ae[r].fields.push({fieldName:D(e),getterReturnType:t,getter:V(n,a),getterContext:i,setterArgumentType:o,setter:V(s,l),setterContext:f})},Xn=(r,e)=>{e=D(e),Y(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},ir=[],zn=(r,e,t,n)=>(r=ir[r],e=Z.toValue(e),r(null,e,t,n)),Zn={},Gn=r=>{var e=Zn[r];return e===void 0?D(r):e},xr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},qn=r=>r===0?Z.toHandle(xr()):(r=Gn(r),Z.toHandle(xr()[r])),Jn=r=>{var e=ir.length;return ir.push(r),e},Qn=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=tr(b[e+n*4>>2],"parameter "+n);return t},Kn=Reflect.construct,ea=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(b[e>>2]=Z.toHandle(n)),a},ra=(r,e,t)=>{var n=Qn(r,e),a=n.shift();r--;var i=new Array(r),o=(l,f,v,_)=>{for(var p=0,m=0;m<r;++m)i[m]=n[m].readValueFromPointer(_+p),p+=n[m].argPackAdvance;var E=t===1?Kn(f,i):f.apply(l,i);return ea(a,v,E)},s=`methodCaller<(${n.map(l=>l.name).join(", ")}) => ${a.name}>`;return Jn(me(s,o))},ta=r=>{r>9&&(z[r+1]+=1)},na=r=>{var e=Z.toValue(r);Xe(e),rr(r)},aa=(r,e)=>{r=tr(r,"_emval_take_value");var t=r.readValueFromPointer(e);return Z.toHandle(t)},ia=()=>{Ce("")},oa=(r,e,t)=>W.copyWithin(r,e,e+t),sa=()=>2147483648,ua=r=>{var e=Te.buffer,t=(r-e.byteLength+65535)/65536;try{return Te.grow(t),_r(),1}catch{}},la=r=>{var e=W.length;r>>>=0;var t=sa();if(r>t)return!1;for(var n=(l,f)=>l+(f-l%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var o=Math.min(t,n(Math.max(r,i),65536)),s=ua(o);if(s)return!0}return!1},or={},ca=()=>L||"./this.program",ye=()=>{if(!ye.strings){var r=(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:r,_:ca()};for(var t in or)or[t]===void 0?delete e[t]:e[t]=or[t];var n=[];for(var t in e)n.push(`${t}=${e[t]}`);ye.strings=n}return ye.strings},fa=(r,e)=>{for(var t=0;t<r.length;++t)x[e++]=r.charCodeAt(t);x[e]=0},va=(r,e)=>{var t=0;return ye().forEach((n,a)=>{var i=e+t;b[r+a*4>>2]=i,fa(n,i),t+=n.length+1}),0},da=(r,e)=>{var t=ye();b[r>>2]=t.length;var n=0;return t.forEach(a=>n+=a.length+1),b[e>>2]=n,0},ha=r=>52;function pa(r,e,t,n,a){return 70}var _a=[null,[],[]],ga=(r,e)=>{var t=_a[r];e===0||e===10?((r===1?wt:ne)(Hr(t,0)),t.length=0):t.push(e)},ma=(r,e,t,n)=>{for(var a=0,i=0;i<t;i++){var o=b[e>>2],s=b[e+4>>2];e+=8;for(var l=0;l<s;l++)ga(r,W[o+l]);a+=s}return b[n>>2]=a,0},ya=r=>r,Me=r=>r%4===0&&(r%100!==0||r%400===0),ba=(r,e)=>{for(var t=0,n=0;n<=e;t+=r[n++]);return t},Vr=[31,29,31,30,31,30,31,31,30,31,30,31],Yr=[31,28,31,30,31,30,31,31,30,31,30,31],$a=(r,e)=>{for(var t=new Date(r.getTime());e>0;){var n=Me(t.getFullYear()),a=t.getMonth(),i=(n?Vr:Yr)[a];if(e>i-t.getDate())e-=i-t.getDate()+1,t.setDate(1),a<11?t.setMonth(a+1):(t.setMonth(0),t.setFullYear(t.getFullYear()+1));else return t.setDate(t.getDate()+e),t}return t};function wa(r,e,t){var n=t>0?t:Ur(r)+1,a=new Array(n),i=kr(r,a,0,a.length);return e&&(a.length=i),a}var Ta=(r,e)=>{x.set(r,e)},Ca=(r,e,t,n)=>{var a=b[n+40>>2],i={tm_sec:M[n>>2],tm_min:M[n+4>>2],tm_hour:M[n+8>>2],tm_mday:M[n+12>>2],tm_mon:M[n+16>>2],tm_year:M[n+20>>2],tm_wday:M[n+24>>2],tm_yday:M[n+28>>2],tm_isdst:M[n+32>>2],tm_gmtoff:M[n+36>>2],tm_zone:a?ar(a):""},o=ar(t),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)o=o.replace(new RegExp(l,"g"),s[l]);var f=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],v=["January","February","March","April","May","June","July","August","September","October","November","December"];function _(c,d,F){for(var R=typeof c=="number"?c.toString():c||"";R.length<d;)R=F[0]+R;return R}function p(c,d){return _(c,d,"0")}function m(c,d){function F(ue){return ue<0?-1:ue>0?1:0}var R;return(R=F(c.getFullYear()-d.getFullYear()))===0&&(R=F(c.getMonth()-d.getMonth()))===0&&(R=F(c.getDate()-d.getDate())),R}function E(c){switch(c.getDay()){case 0:return new Date(c.getFullYear()-1,11,29);case 1:return c;case 2:return new Date(c.getFullYear(),0,3);case 3:return new Date(c.getFullYear(),0,2);case 4:return new Date(c.getFullYear(),0,1);case 5:return new Date(c.getFullYear()-1,11,31);case 6:return new Date(c.getFullYear()-1,11,30)}}function k(c){var d=$a(new Date(c.tm_year+1900,0,1),c.tm_yday),F=new Date(d.getFullYear(),0,4),R=new Date(d.getFullYear()+1,0,4),ue=E(F),Ue=E(R);return m(ue,d)<=0?m(Ue,d)<=0?d.getFullYear()+1:d.getFullYear():d.getFullYear()-1}var T={"%a":c=>f[c.tm_wday].substring(0,3),"%A":c=>f[c.tm_wday],"%b":c=>v[c.tm_mon].substring(0,3),"%B":c=>v[c.tm_mon],"%C":c=>{var d=c.tm_year+1900;return p(d/100|0,2)},"%d":c=>p(c.tm_mday,2),"%e":c=>_(c.tm_mday,2," "),"%g":c=>k(c).toString().substring(2),"%G":k,"%H":c=>p(c.tm_hour,2),"%I":c=>{var d=c.tm_hour;return d==0?d=12:d>12&&(d-=12),p(d,2)},"%j":c=>p(c.tm_mday+ba(Me(c.tm_year+1900)?Vr:Yr,c.tm_mon-1),3),"%m":c=>p(c.tm_mon+1,2),"%M":c=>p(c.tm_min,2),"%n":()=>`
`,"%p":c=>c.tm_hour>=0&&c.tm_hour<12?"AM":"PM","%S":c=>p(c.tm_sec,2),"%t":()=>" ","%u":c=>c.tm_wday||7,"%U":c=>{var d=c.tm_yday+7-c.tm_wday;return p(Math.floor(d/7),2)},"%V":c=>{var d=Math.floor((c.tm_yday+7-(c.tm_wday+6)%7)/7);if((c.tm_wday+371-c.tm_yday-2)%7<=2&&d++,d){if(d==53){var R=(c.tm_wday+371-c.tm_yday)%7;R!=4&&(R!=3||!Me(c.tm_year))&&(d=1)}}else{d=52;var F=(c.tm_wday+7-c.tm_yday-1)%7;(F==4||F==5&&Me(c.tm_year%400-1))&&d++}return p(d,2)},"%w":c=>c.tm_wday,"%W":c=>{var d=c.tm_yday+7-(c.tm_wday+6)%7;return p(Math.floor(d/7),2)},"%y":c=>(c.tm_year+1900).toString().substring(2),"%Y":c=>c.tm_year+1900,"%z":c=>{var d=c.tm_gmtoff,F=d>=0;return d=Math.abs(d)/60,d=d/60*100+d%60,(F?"+":"-")+("0000"+d).slice(-4)},"%Z":c=>c.tm_zone,"%%":()=>"%"};o=o.replace(/%%/g,"\0\0");for(var l in T)o.includes(l)&&(o=o.replace(new RegExp(l,"g"),T[l](i)));o=o.replace(/\0\0/g,"%");var O=wa(o,!1);return O.length>e?0:(Ta(O,r),O.length-1)},Pa=(r,e,t,n,a)=>Ca(r,e,t,n);Tr=u.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Xt(),se=u.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},an(),en(),dn(),Dr=u.UnboundTypeError=gn(Error,"UnboundTypeError"),Tn();var Sa={s:Mt,u:kt,b:jt,g:Ht,q:Bt,K:xt,f:Vt,Y:Yt,d:Ut,ha:Nt,U:Lt,ba:Zt,fa:mn,ea:bn,w:$n,aa:Mr,x:Sn,h:An,O:Fn,P:Rn,t:Dn,o:In,ga:Wn,N:kn,C:Yn,A:Nn,ia:Ln,ca:Xn,E:zn,ka:rr,la:qn,M:ra,Q:ta,R:na,da:aa,B:ia,$:oa,Z:la,W:va,X:da,_:ha,T:pa,L:ma,F:Va,D:Oa,G:xa,m:Ya,a:Aa,e:Ia,p:Ra,k:Ba,I:ja,v:ka,H:Ha,z:La,S:za,l:Wa,j:Da,c:Fa,n:Ea,J:Ua,r:Na,i:Ma,y:Xa,ja:ya,V:Pa},P=Wt(),G=u._free=r=>(G=u._free=P.oa)(r),sr=u._malloc=r=>(sr=u._malloc=P.pa)(r),Nr=r=>(Nr=P.ra)(r),w=(r,e)=>(w=P.sa)(r,e),be=r=>(be=P.ta)(r),S=()=>(S=P.ua)(),A=r=>(A=P.va)(r),Lr=r=>(Lr=P.wa)(r),Xr=r=>(Xr=P.xa)(r),zr=(r,e,t)=>(zr=P.ya)(r,e,t),Zr=r=>(Zr=P.za)(r);u.dynCall_viijii=(r,e,t,n,a,i,o)=>(u.dynCall_viijii=P.Aa)(r,e,t,n,a,i,o),u.dynCall_jiji=(r,e,t,n,a)=>(u.dynCall_jiji=P.Ba)(r,e,t,n,a);var Gr=u.dynCall_jiiii=(r,e,t,n,a)=>(Gr=u.dynCall_jiiii=P.Ca)(r,e,t,n,a);u.dynCall_iiiiij=(r,e,t,n,a,i,o)=>(u.dynCall_iiiiij=P.Da)(r,e,t,n,a,i,o),u.dynCall_iiiiijj=(r,e,t,n,a,i,o,s,l)=>(u.dynCall_iiiiijj=P.Ea)(r,e,t,n,a,i,o,s,l),u.dynCall_iiiiiijj=(r,e,t,n,a,i,o,s,l,f)=>(u.dynCall_iiiiiijj=P.Fa)(r,e,t,n,a,i,o,s,l,f);function Aa(r,e){var t=S();try{return C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Ea(r,e,t,n){var a=S();try{C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Fa(r,e,t){var n=S();try{C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Ra(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Oa(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function Da(r,e){var t=S();try{C(r)(e)}catch(n){if(A(t),n!==n+0)throw n;w(1,0)}}function Ia(r,e,t){var n=S();try{return C(r)(e,t)}catch(a){if(A(n),a!==a+0)throw a;w(1,0)}}function Wa(r){var e=S();try{C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Ma(r,e,t,n,a,i,o,s,l,f,v){var _=S();try{C(r)(e,t,n,a,i,o,s,l,f,v)}catch(p){if(A(_),p!==p+0)throw p;w(1,0)}}function ka(r,e,t,n,a,i,o){var s=S();try{return C(r)(e,t,n,a,i,o)}catch(l){if(A(s),l!==l+0)throw l;w(1,0)}}function Ua(r,e,t,n,a){var i=S();try{C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function ja(r,e,t,n,a,i){var o=S();try{return C(r)(e,t,n,a,i)}catch(s){if(A(o),s!==s+0)throw s;w(1,0)}}function Ha(r,e,t,n,a,i,o,s){var l=S();try{return C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function Ba(r,e,t,n,a){var i=S();try{return C(r)(e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}function xa(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Va(r,e,t,n){var a=S();try{return C(r)(e,t,n)}catch(i){if(A(a),i!==i+0)throw i;w(1,0)}}function Ya(r){var e=S();try{return C(r)()}catch(t){if(A(e),t!==t+0)throw t;w(1,0)}}function Na(r,e,t,n,a,i,o,s){var l=S();try{C(r)(e,t,n,a,i,o,s)}catch(f){if(A(l),f!==f+0)throw f;w(1,0)}}function La(r,e,t,n,a,i,o,s,l,f,v,_){var p=S();try{return C(r)(e,t,n,a,i,o,s,l,f,v,_)}catch(m){if(A(p),m!==m+0)throw m;w(1,0)}}function Xa(r,e,t,n,a,i,o,s,l,f,v,_,p,m,E,k){var T=S();try{C(r)(e,t,n,a,i,o,s,l,f,v,_,p,m,E,k)}catch(O){if(A(T),O!==O+0)throw O;w(1,0)}}function za(r,e,t,n,a){var i=S();try{return Gr(r,e,t,n,a)}catch(o){if(A(i),o!==o+0)throw o;w(1,0)}}var ke;ve=function r(){ke||qr(),ke||(ve=r)};function qr(){if(K>0||(Tt(),K>0))return;function r(){ke||(ke=!0,u.calledRun=!0,!dr&&(Ct(),U(u),u.onRuntimeInitialized&&u.onRuntimeInitialized(),Pt()))}u.setStatus?(u.setStatus("Running..."),setTimeout(function(){setTimeout(function(){u.setStatus("")},1),r()},1)):r()}if(u.preInit)for(typeof u.preInit=="function"&&(u.preInit=[u.preInit]);u.preInit.length>0;)u.preInit.pop()();return qr(),g.ready}})();const vr={...te,formats:[...te.formats]};function mt(h){return xe(we,h)}function yt(h){return pt(we,h)}async function bt(h,g){return _t(we,h,g)}async function $t(h,g){return gt(we,h,g)}return I.barcodeFormats=Be,I.binarizers=nt,I.characterSets=it,I.contentTypes=lr,I.defaultDecodeHints=vr,I.defaultReaderOptions=vr,I.eanAddOnSymbols=ut,I.getZXingModule=mt,I.purgeZXingModule=ht,I.readBarcodesFromImageData=$t,I.readBarcodesFromImageFile=bt,I.readOutputEccLevels=vt,I.setZXingModuleOverrides=yt,I.textModes=ct,Object.defineProperty(I,Symbol.toStringTag,{value:"Module"}),I}({});

@@ -1,2 +0,2 @@

var ZXingWASM=function(E){"use strict";const ae=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],ie=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function oe(d,_){return d.CharacterSet[_]}const se=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function ue(d,_){return{..._,characterSet:oe(d,_.characterSet)}}function ce(d){const{image:_,error:s}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:s}}const fe={locateFile:(d,_)=>{const s=d.match(/_(.+?)\.wasm$/);return s?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.4/dist/${s[1]}/${d}`:_+d}};let er=new WeakMap;function Ar(d,_){var D;const s=er.get(d);if(s!=null&&s.modulePromise&&(_===void 0||Object.is(_,s.moduleOverrides)))return s.modulePromise;const M=(D=_!=null?_:s==null?void 0:s.moduleOverrides)!=null?D:fe,R=d({...M});return er.set(d,{moduleOverrides:M,modulePromise:R}),R}function le(){er=new WeakMap}function ve(d,_){er.set(d,{moduleOverrides:_})}async function de(d,_,s=lr){const M={...lr,...s},R=await Ar(d),D=R.writeBarcodeToImage(_,ue(R,M));return ce(D)}var vr=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(_={}){var s=_,M,R;s.ready=new Promise((r,e)=>{M=r,R=e});var D=Object.assign({},s),Er=typeof window=="object",Rr=typeof Bun<"u",tr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var F="";function ge(r){return s.locateFile?s.locateFile(r,F):F+r}var dr;(Er||tr||Rr)&&(tr?F=self.location.href:typeof document<"u"&&document.currentScript&&(F=document.currentScript.src),d&&(F=d),F.startsWith("blob:")?F="":F=F.substr(0,F.replace(/[?#].*/,"").lastIndexOf("/")+1),tr&&(dr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),s.print||console.log.bind(console);var q=s.printErr||console.error.bind(console);Object.assign(s,D),D=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit;var Q;s.wasmBinary&&(Q=s.wasmBinary),typeof WebAssembly!="object"&&_r("no native wasm support detected");var nr,Fr=!1,O,m,N,G,x,p,Pr,Sr;function Wr(){var r=nr.buffer;s.HEAP8=O=new Int8Array(r),s.HEAP16=N=new Int16Array(r),s.HEAPU8=m=new Uint8Array(r),s.HEAPU16=G=new Uint16Array(r),s.HEAP32=x=new Int32Array(r),s.HEAPU32=p=new Uint32Array(r),s.HEAPF32=Pr=new Float32Array(r),s.HEAPF64=Sr=new Float64Array(r)}var Ir=[],Ur=[],Or=[];function me(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)we(s.preRun.shift());pr(Ir)}function ye(){pr(Ur)}function be(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)$e(s.postRun.shift());pr(Or)}function we(r){Ir.unshift(r)}function Te(r){Ur.unshift(r)}function $e(r){Or.unshift(r)}var j=0,J=null;function Ae(r){var e;j++,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j)}function Ce(r){var e;if(j--,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j),j==0&&J){var t=J;J=null,t()}}function _r(r){var e;(e=s.onAbort)===null||e===void 0||e.call(s,r),r="Aborted("+r+")",q(r),Fr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw R(t),t}var Ee="data:application/octet-stream;base64,",kr=r=>r.startsWith(Ee),X;X="zxing_writer.wasm",kr(X)||(X=ge(X));function Mr(r){if(r==X&&Q)return new Uint8Array(Q);if(dr)return dr(r);throw"both async and sync fetching of the wasm failed"}function Re(r){return!Q&&(Er||tr||Rr)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Mr(r)):Promise.resolve().then(()=>Mr(r))}function Dr(r,e,t){return Re(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),_r(n)})}function Fe(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!kr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(u){return q(`wasm streaming compile failed: ${u}`),q("falling back to ArrayBuffer instantiation"),Dr(e,t,n)})}):Dr(e,t,n)}function Pe(){var r={a:Zt};function e(n,a){return g=n.exports,nr=g.R,Wr(),qr=g.V,Te(g.S),Ce(),g}Ae();function t(n){e(n.instance)}if(s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),R(n)}return Fe(Q,X,r,t).catch(R),{}}var pr=r=>{for(;r.length>0;)r.shift()(s)};s.noExitRuntime;var jr=[],Se=r=>{var e=new hr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),jr.push(e),re(e.excPtr),e.get_exception_ptr()},B=0,We=()=>{$(0,0);var r=jr.pop();zr(r.excPtr),B=0};class hr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){p[this.ptr+4>>2]=e}get_type(){return p[this.ptr+4>>2]}set_destructor(e){p[this.ptr+8>>2]=e}get_destructor(){return p[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){p[this.ptr+16>>2]=e}get_adjusted_ptr(){return p[this.ptr+16>>2]}get_exception_ptr(){var e=te(this.get_type());if(e)return p[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Ie=r=>{throw B||(B=r),B},gr=r=>{var e=B;if(!e)return Y(0),0;var t=new hr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Y(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var u=t.ptr+16;if(ee(i,n,u))return Y(i),e}return Y(n),e},Ue=()=>gr([]),Oe=r=>gr([r]),ke=(r,e)=>gr([r,e]),Me=(r,e,t)=>{var n=new hr(r);throw n.init(e,t),B=r,B},ar={},mr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ir(r){return this.fromWireType(p[r>>2])}var Z={},H={},or={},Br,Hr=r=>{throw new Br(r)},Vr=(r,e,t)=>{r.forEach(function(o){or[o]=e});function n(o){var c=t(o);c.length!==r.length&&Hr("Mismatched type converter count");for(var f=0;f<r.length;++f)P(r[f],c[f])}var a=new Array(e.length),i=[],u=0;e.forEach((o,c)=>{H.hasOwnProperty(o)?a[c]=H[o]:(i.push(o),Z.hasOwnProperty(o)||(Z[o]=[]),Z[o].push(()=>{a[c]=H[o],++u,u===i.length&&n(a)}))}),i.length===0&&n(a)},De=r=>{var e=ar[r];delete ar[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));Vr([r],i,u=>{var o={};return a.forEach((c,f)=>{var l=c.fieldName,v=u[f],h=c.getter,b=c.getterContext,k=u[f+a.length],z=c.setter,S=c.setterContext;o[l]={read:rr=>v.fromWireType(h(b,rr)),write:(rr,$r)=>{var fr=[];z(S,rr,k.toWireType(fr,$r)),mr(fr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var l in o)f[l]=o[l].read(c);return n(c),f},toWireType:(c,f)=>{for(var l in o)if(!(l in f))throw new TypeError(`Missing field: "${l}"`);var v=t();for(l in o)o[l].write(v,f[l]);return c!==null&&c.push(n,v),v},argPackAdvance:W,readValueFromPointer:ir,destructorFunction:n}]})},je=(r,e,t,n,a)=>{},Be=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Nr=r},Nr,y=r=>{for(var e="",t=r;m[t];)e+=Nr[m[t++]];return e},xr,w=r=>{throw new xr(r)};function He(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||w(`type "${n}" must have a positive integer typeid pointer`),H.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;w(`Cannot register type '${n}' twice`)}if(H[r]=e,delete or[r],Z.hasOwnProperty(r)){var a=Z[r];delete Z[r],a.forEach(i=>i())}}function P(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return He(r,e,t)}var W=8,Ve=(r,e,t,n)=>{e=y(e),P(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:W,readValueFromPointer:function(a){return this.fromWireType(m[a])},destructorFunction:null})},yr=[],I=[],br=r=>{r>9&&--I[r+1]===0&&(I[r]=void 0,yr.push(r))},Ne=()=>I.length/2-5-yr.length,xe=()=>{I.push(0,1,void 0,1,null,1,!0,1,!1,1),s.count_emval_handles=Ne},V={toValue:r=>(r||w("Cannot use deleted val. handle = "+r),I[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=yr.pop()||I.length;return I[e]=r,I[e+1]=1,e}}}},Xe={name:"emscripten::val",fromWireType:r=>{var e=V.toValue(r);return br(r),e},toWireType:(r,e)=>V.toHandle(e),argPackAdvance:W,readValueFromPointer:ir,destructorFunction:null},Ze=r=>P(r,Xe),Le=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r[e].overloadTable.hasOwnProperty(i.length)||w(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Xr=(r,e,t)=>{s.hasOwnProperty(r)?((t===void 0||s[r].overloadTable!==void 0&&s[r].overloadTable[t]!==void 0)&&w(`Cannot register public name '${r}' twice`),Le(s,r,r),s.hasOwnProperty(t)&&w(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),s[r].overloadTable[t]=e):(s[r]=e,t!==void 0&&(s[r].numArguments=t))},qe=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType(m[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(G[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(p[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Qe=(r,e,t,n)=>{e=y(e);function a(){}a.values={},P(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,u)=>u.value,argPackAdvance:W,readValueFromPointer:qe(e,t,n),destructorFunction:null}),Xr(e,a)},sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Zr=r=>{var e=Yr(r),t=y(e);return U(e),t},Lr=(r,e)=>{var t=H[r];return t===void 0&&w(`${e} has unknown type ${Zr(r)}`),t},Ge=(r,e,t)=>{var n=Lr(r,"enum");e=y(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:sr(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Je=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Pr[t>>2])};case 8:return function(t){return this.fromWireType(Sr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},Ke=(r,e,t)=>{e=y(e),P(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:W,readValueFromPointer:Je(e,t),destructorFunction:null})};function Ye(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function ze(r,e,t,n,a,i){var u=e.length;u<2&&w("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,c=Ye(e),f=e[0].name!=="void",l=u-2,v=new Array(l),h=[],b=[],k=function(){arguments.length!==l&&w(`function ${r} called with ${arguments.length} arguments, expected ${l}`),b.length=0;var z;h.length=o?2:1,h[0]=a,o&&(z=e[1].toWireType(b,this),h[1]=z);for(var S=0;S<l;++S)v[S]=e[S+2].toWireType(b,S<0||arguments.length<=S?void 0:arguments[S]),h.push(v[S]);var rr=n(...h);function $r(fr){if(c)mr(b);else for(var L=o?1:2;L<e.length;L++){var nn=L===1?z:v[L-2];e[L].destructorFunction!==null&&e[L].destructorFunction(nn)}if(f)return e[0].fromWireType(fr)}return $r(rr)};return sr(r,k)}var rt=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+n*4>>2]);return t},et=(r,e,t)=>{s.hasOwnProperty(r)||Hr("Replacing nonexistant public symbol"),s[r].overloadTable!==void 0&&t!==void 0?s[r].overloadTable[t]=e:(s[r]=e,s[r].argCount=t)},tt=(r,e,t)=>{var n=s["dynCall_"+r];return n(e,...t)},ur=[],qr,T=r=>{var e=ur[r];return e||(r>=ur.length&&(ur.length=r+1),ur[r]=e=qr.get(r)),e},nt=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return tt(r,e,t);var n=T(e)(...t);return n},at=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return nt(r,e,n)},K=(r,e)=>{r=y(r);function t(){return r.includes("j")?at(r,e):T(e)}var n=t();return typeof n!="function"&&w(`unknown function pointer with signature ${r}: ${e}`),n},it=(r,e)=>{var t=sr(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Qr,ot=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!H[i]){if(or[i]){or[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Qr(`${r}: `+t.map(Zr).join([", "]))},st=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},ut=(r,e,t,n,a,i,u)=>{var o=rt(e,t);r=y(r),r=st(r),a=K(n,a),Xr(r,function(){ot(`Cannot call ${r} due to unbound types`,o)},e-1),Vr([],o,c=>{var f=[c[0],null].concat(c.slice(1));return et(r,ze(r,f,null,a,i),e-1),[]})},ct=(r,e,t)=>{switch(e){case 1:return t?n=>O[n]:n=>m[n];case 2:return t?n=>N[n>>1]:n=>G[n>>1];case 4:return t?n=>x[n>>2]:n=>p[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},ft=(r,e,t,n,a)=>{e=y(e);var i=l=>l;if(n===0){var u=32-8*t;i=l=>l<<u>>>u}var o=e.includes("unsigned"),c=(l,v)=>{},f;o?f=function(l,v){return c(v,this.name),v>>>0}:f=function(l,v){return c(v,this.name),v},P(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:W,readValueFromPointer:ct(e,t,n!==0),destructorFunction:null})},lt=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(u){var o=p[u>>2],c=p[u+4>>2];return new a(O.buffer,c,o)}t=y(t),P(r,{name:t,fromWireType:i,argPackAdvance:W,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},vt=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},dt=(r,e,t)=>vt(r,m,e,t),_t=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Gr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,pt=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Gr)return Gr.decode(r.subarray(e,a));for(var i="";e<a;){var u=r[e++];if(!(u&128)){i+=String.fromCharCode(u);continue}var o=r[e++]&63;if((u&224)==192){i+=String.fromCharCode((u&31)<<6|o);continue}var c=r[e++]&63;if((u&240)==224?u=(u&15)<<12|o<<6|c:u=(u&7)<<18|o<<12|c<<6|r[e++]&63,u<65536)i+=String.fromCharCode(u);else{var f=u-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},ht=(r,e)=>r?pt(m,r,e):"",gt=(r,e)=>{e=y(e);var t=e==="std::string";P(r,{name:e,fromWireType(n){var a=p[n>>2],i=n+4,u;if(t)for(var o=i,c=0;c<=a;++c){var f=i+c;if(c==a||m[f]==0){var l=f-o,v=ht(o,l);u===void 0?u=v:(u+="\0",u+=v),o=f+1}}else{for(var h=new Array(a),c=0;c<a;++c)h[c]=String.fromCharCode(m[i+c]);u=h.join("")}return U(n),u},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,u=typeof a=="string";u||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||w("Cannot pass non-string to std::string"),t&&u?i=_t(a):i=a.length;var o=Tr(4+i+1),c=o+4;if(p[o>>2]=i,t&&u)dt(a,c,i+1);else if(u)for(var f=0;f<i;++f){var l=a.charCodeAt(f);l>255&&(U(c),w("String has UTF-16 code units that do not fit in 8 bits")),m[c+f]=l}else for(var f=0;f<i;++f)m[c+f]=a[f];return n!==null&&n.push(U,o),o},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(n){U(n)}})},Jr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,mt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&G[n];)++n;if(t=n<<1,t-r>32&&Jr)return Jr.decode(m.subarray(r,t));for(var i="",u=0;!(u>=e/2);++u){var o=N[r+u*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},yt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,u=0;u<i;++u){var o=r.charCodeAt(u);N[e>>1]=o,e+=2}return N[e>>1]=0,e-a},bt=r=>r.length*2,wt=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},Tt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(x[e>>2]=o,e+=4,e+4>i)break}return x[e>>2]=0,e-a},$t=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},At=(r,e,t)=>{t=y(t);var n,a,i,u;e===2?(n=mt,a=yt,u=bt,i=o=>G[o>>1]):e===4&&(n=wt,a=Tt,u=$t,i=o=>p[o>>2]),P(r,{name:t,fromWireType:o=>{for(var c=p[o>>2],f,l=o+4,v=0;v<=c;++v){var h=o+4+v*e;if(v==c||i(h)==0){var b=h-l,k=n(l,b);f===void 0?f=k:(f+="\0",f+=k),l=h+e}}return U(o),f},toWireType:(o,c)=>{typeof c!="string"&&w(`Cannot pass non-string to C++ string type ${t}`);var f=u(c),l=Tr(4+f+e);return p[l>>2]=f/e,a(c,l+4,f+e),o!==null&&o.push(U,l),l},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(o){U(o)}})},Ct=(r,e,t,n,a,i)=>{ar[r]={name:y(e),rawConstructor:K(t,n),rawDestructor:K(a,i),fields:[]}},Et=(r,e,t,n,a,i,u,o,c,f)=>{ar[r].fields.push({fieldName:y(e),getterReturnType:t,getter:K(n,a),getterContext:i,setterArgumentType:u,setter:K(o,c),setterContext:f})},Rt=(r,e)=>{e=y(e),P(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},wr=[],Ft=(r,e,t,n)=>(r=wr[r],e=V.toValue(e),r(null,e,t,n)),Pt={},St=r=>{var e=Pt[r];return e===void 0?y(r):e},Kr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Wt=r=>r===0?V.toHandle(Kr()):(r=St(r),V.toHandle(Kr()[r])),It=r=>{var e=wr.length;return wr.push(r),e},Ut=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Lr(p[e+n*4>>2],"parameter "+n);return t},Ot=Reflect.construct,kt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(p[e>>2]=V.toHandle(n)),a},Mt=(r,e,t)=>{var n=Ut(r,e),a=n.shift();r--;var i=new Array(r),u=(c,f,l,v)=>{for(var h=0,b=0;b<r;++b)i[b]=n[b].readValueFromPointer(v+h),h+=n[b].argPackAdvance;var k=t===1?Ot(f,i):f.apply(c,i);return kt(a,l,k)},o=`methodCaller<(${n.map(c=>c.name).join(", ")}) => ${a.name}>`;return It(sr(o,u))},Dt=r=>{r>9&&(I[r+1]+=1)},jt=r=>{var e=V.toValue(r);mr(e),br(r)},Bt=()=>{_r("")},Ht=(r,e,t)=>m.copyWithin(r,e,e+t),Vt=()=>2147483648,Nt=r=>{var e=nr.buffer,t=(r-e.byteLength+65535)/65536;try{return nr.grow(t),Wr(),1}catch{}},xt=r=>{var e=m.length;r>>>=0;var t=Vt();if(r>t)return!1;for(var n=(c,f)=>c+(f-c%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var u=Math.min(t,n(Math.max(r,i),65536)),o=Nt(u);if(o)return!0}return!1},Xt=r=>r;Br=s.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},Be(),xr=s.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},xe(),Qr=s.UnboundTypeError=it(Error,"UnboundTypeError");var Zt={r:Se,q:We,g:Ue,d:Oe,k:ke,a:Me,i:Ie,M:De,C:je,H:Ve,G:Ze,K:Qe,b:Ge,v:Ke,L:ut,h:ft,e:lt,u:gt,p:At,w:Ct,N:Et,I:Rt,z:Ft,P:br,B:Wt,A:Mt,x:Dt,Q:jt,s:Bt,F:Ht,E:xt,y:Kt,c:Lt,l:Yt,n:Jt,o:zt,f:qt,t:tn,m:en,D:Gt,J:Qt,j:rn,O:Xt},g=Pe(),Tr=s._malloc=r=>(Tr=s._malloc=g.T)(r),U=s._free=r=>(U=s._free=g.U)(r),Yr=r=>(Yr=g.W)(r),$=(r,e)=>($=g.X)(r,e),Y=r=>(Y=g.Y)(r),A=()=>(A=g.Z)(),C=r=>(C=g._)(r),zr=r=>(zr=g.$)(r),re=r=>(re=g.aa)(r),ee=(r,e,t)=>(ee=g.ba)(r,e,t),te=r=>(te=g.ca)(r);function Lt(r,e){var t=A();try{return T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function qt(r,e){var t=A();try{T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function Qt(r,e,t,n,a,i){var u=A();try{T(r)(e,t,n,a,i)}catch(o){if(C(u),o!==o+0)throw o;$(1,0)}}function Gt(r,e,t,n,a){var i=A();try{T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function Jt(r,e,t,n){var a=A();try{return T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function Kt(r,e,t,n,a){var i=A();try{return T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function Yt(r,e,t){var n=A();try{return T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}function zt(r){var e=A();try{T(r)()}catch(t){if(C(e),t!==t+0)throw t;$(1,0)}}function rn(r,e,t,n,a,i,u,o,c,f,l){var v=A();try{T(r)(e,t,n,a,i,u,o,c,f,l)}catch(h){if(C(v),h!==h+0)throw h;$(1,0)}}function en(r,e,t,n){var a=A();try{T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function tn(r,e,t){var n=A();try{T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}var cr;J=function r(){cr||ne(),cr||(J=r)};function ne(){if(j>0||(me(),j>0))return;function r(){cr||(cr=!0,s.calledRun=!0,!Fr&&(ye(),M(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),be()))}s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),r()},1)):r()}if(s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return ne(),_.ready}})();const Cr={...lr};function _e(d){return Ar(vr,d)}function pe(d){return ve(vr,d)}async function he(d,_){return de(vr,d,_)}return E.barcodeFormats=ae,E.characterSets=ie,E.defaultEncodeHints=Cr,E.defaultWriterOptions=Cr,E.getZXingModule=_e,E.purgeZXingModule=le,E.setZXingModuleOverrides=pe,E.writeBarcodeToImageFile=he,E.writeInputEccLevels=se,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});
var ZXingWASM=function(E){"use strict";const ie=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"],oe=["Unknown","ASCII","ISO8859_1","ISO8859_2","ISO8859_3","ISO8859_4","ISO8859_5","ISO8859_6","ISO8859_7","ISO8859_8","ISO8859_9","ISO8859_10","ISO8859_11","ISO8859_13","ISO8859_14","ISO8859_15","ISO8859_16","Cp437","Cp1250","Cp1251","Cp1252","Cp1256","Shift_JIS","Big5","GB2312","GB18030","EUC_JP","EUC_KR","UTF16BE","UTF8","UTF16LE","UTF32BE","UTF32LE","BINARY"];function se(d,_){return d.CharacterSet[_]}const ue=[-1,0,1,2,3,4,5,6,7,8],lr={width:200,height:200,format:"QRCode",characterSet:"UTF8",eccLevel:-1,margin:10};function ce(d,_){return{..._,characterSet:se(d,_.characterSet)}}function fe(d){const{image:_,error:s}=d;return _?{image:new Blob([new Uint8Array(_)],{type:"image/png"}),error:""}:{image:null,error:s}}const le={locateFile:(d,_)=>{const s=d.match(/_(.+?)\.wasm$/);return s?`https://fastly.jsdelivr.net/npm/zxing-wasm@1.2.5-rc.0/dist/${s[1]}/${d}`:_+d}};let er=new WeakMap;function Ar(d,_){var D;const s=er.get(d);if(s!=null&&s.modulePromise&&(_===void 0||Object.is(_,s.moduleOverrides)))return s.modulePromise;const M=(D=_!=null?_:s==null?void 0:s.moduleOverrides)!=null?D:le,R=d({...M});return er.set(d,{moduleOverrides:M,modulePromise:R}),R}function ve(){er=new WeakMap}function de(d,_){er.set(d,{moduleOverrides:_})}async function _e(d,_,s=lr){const M={...lr,...s},R=await Ar(d),D=R.writeBarcodeToImage(_,ce(R,M));return fe(D)}var vr=(()=>{var d=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(_={}){var ae;var s=_,M,R;s.ready=new Promise((r,e)=>{M=r,R=e});var D=Object.assign({},s),Er=typeof window=="object",Rr=typeof Bun<"u",me=typeof((ae=globalThis.WebAssembly)==null?void 0:ae.instantiate)=="function",tr=typeof importScripts=="function";typeof process=="object"&&typeof process.versions=="object"&&process.versions.node;var S="";function ye(r){return s.locateFile?s.locateFile(r,S):S+r}var dr;(Er||tr||Rr)&&(tr?S=self.location.href:typeof document<"u"&&document.currentScript&&(S=document.currentScript.src),d&&(S=d),S.startsWith("blob:")?S="":S=S.substr(0,S.replace(/[?#].*/,"").lastIndexOf("/")+1),tr&&(dr=r=>{var e=new XMLHttpRequest;return e.open("GET",r,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)})),s.print||console.log.bind(console);var q=s.printErr||console.error.bind(console);Object.assign(s,D),D=null,s.arguments&&s.arguments,s.thisProgram&&s.thisProgram,s.quit&&s.quit;var Q;s.wasmBinary&&(Q=s.wasmBinary),typeof WebAssembly!="object"&&_r("no native wasm support detected");var nr,Sr=!1,O,m,N,G,x,p,Fr,Pr;function Wr(){var r=nr.buffer;s.HEAP8=O=new Int8Array(r),s.HEAP16=N=new Int16Array(r),s.HEAPU8=m=new Uint8Array(r),s.HEAPU16=G=new Uint16Array(r),s.HEAP32=x=new Int32Array(r),s.HEAPU32=p=new Uint32Array(r),s.HEAPF32=Fr=new Float32Array(r),s.HEAPF64=Pr=new Float64Array(r)}var Ir=[],Ur=[],Or=[];function be(){if(s.preRun)for(typeof s.preRun=="function"&&(s.preRun=[s.preRun]);s.preRun.length;)$e(s.preRun.shift());pr(Ir)}function we(){pr(Ur)}function Te(){if(s.postRun)for(typeof s.postRun=="function"&&(s.postRun=[s.postRun]);s.postRun.length;)Ce(s.postRun.shift());pr(Or)}function $e(r){Ir.unshift(r)}function Ae(r){Ur.unshift(r)}function Ce(r){Or.unshift(r)}var j=0,J=null;function Ee(r){var e;j++,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j)}function Re(r){var e;if(j--,(e=s.monitorRunDependencies)===null||e===void 0||e.call(s,j),j==0&&J){var t=J;J=null,t()}}function _r(r){var e;(e=s.onAbort)===null||e===void 0||e.call(s,r),r="Aborted("+r+")",q(r),Sr=!0,r+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(r);throw R(t),t}var Se="data:application/octet-stream;base64,",kr=r=>r.startsWith(Se),X;X="zxing_writer.wasm",kr(X)||(X=ye(X));function Mr(r){if(r==X&&Q)return new Uint8Array(Q);if(dr)return dr(r);throw"both async and sync fetching of the wasm failed"}function Fe(r){return!Q&&(Er||tr||Rr||me)&&typeof fetch=="function"?fetch(r,{credentials:"same-origin"}).then(e=>{if(!e.ok)throw`failed to load wasm binary file at '${r}'`;return e.arrayBuffer()}).catch(()=>Mr(r)):Promise.resolve().then(()=>Mr(r))}function Dr(r,e,t){return Fe(r).then(n=>WebAssembly.instantiate(n,e)).then(t,n=>{q(`failed to asynchronously prepare wasm: ${n}`),_r(n)})}function Pe(r,e,t,n){return!r&&typeof WebAssembly.instantiateStreaming=="function"&&!kr(e)&&typeof fetch=="function"?fetch(e,{credentials:"same-origin"}).then(a=>{var i=WebAssembly.instantiateStreaming(a,t);return i.then(n,function(u){return q(`wasm streaming compile failed: ${u}`),q("falling back to ArrayBuffer instantiation"),Dr(e,t,n)})}):Dr(e,t,n)}function We(){var r={a:qt};function e(n,a){return g=n.exports,nr=g.R,Wr(),qr=g.V,Ae(g.S),Re(),g}Ee();function t(n){e(n.instance)}if(s.instantiateWasm)try{return s.instantiateWasm(r,e)}catch(n){q(`Module.instantiateWasm callback failed with error: ${n}`),R(n)}return Pe(Q,X,r,t).catch(R),{}}var pr=r=>{for(;r.length>0;)r.shift()(s)};s.noExitRuntime;var jr=[],Ie=r=>{var e=new hr(r);return e.get_caught()||e.set_caught(!0),e.set_rethrown(!1),jr.push(e),re(e.excPtr),e.get_exception_ptr()},B=0,Ue=()=>{$(0,0);var r=jr.pop();zr(r.excPtr),B=0};class hr{constructor(e){this.excPtr=e,this.ptr=e-24}set_type(e){p[this.ptr+4>>2]=e}get_type(){return p[this.ptr+4>>2]}set_destructor(e){p[this.ptr+8>>2]=e}get_destructor(){return p[this.ptr+8>>2]}set_caught(e){e=e?1:0,O[this.ptr+12]=e}get_caught(){return O[this.ptr+12]!=0}set_rethrown(e){e=e?1:0,O[this.ptr+13]=e}get_rethrown(){return O[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){p[this.ptr+16>>2]=e}get_adjusted_ptr(){return p[this.ptr+16>>2]}get_exception_ptr(){var e=te(this.get_type());if(e)return p[this.excPtr>>2];var t=this.get_adjusted_ptr();return t!==0?t:this.excPtr}}var Oe=r=>{throw B||(B=r),B},gr=r=>{var e=B;if(!e)return Y(0),0;var t=new hr(e);t.set_adjusted_ptr(e);var n=t.get_type();if(!n)return Y(0),e;for(var a in r){var i=r[a];if(i===0||i===n)break;var u=t.ptr+16;if(ee(i,n,u))return Y(i),e}return Y(n),e},ke=()=>gr([]),Me=r=>gr([r]),De=(r,e)=>gr([r,e]),je=(r,e,t)=>{var n=new hr(r);throw n.init(e,t),B=r,B},ar={},mr=r=>{for(;r.length;){var e=r.pop(),t=r.pop();t(e)}};function ir(r){return this.fromWireType(p[r>>2])}var L={},V={},or={},Br,Vr=r=>{throw new Br(r)},Hr=(r,e,t)=>{r.forEach(function(o){or[o]=e});function n(o){var c=t(o);c.length!==r.length&&Vr("Mismatched type converter count");for(var f=0;f<r.length;++f)F(r[f],c[f])}var a=new Array(e.length),i=[],u=0;e.forEach((o,c)=>{V.hasOwnProperty(o)?a[c]=V[o]:(i.push(o),L.hasOwnProperty(o)||(L[o]=[]),L[o].push(()=>{a[c]=V[o],++u,u===i.length&&n(a)}))}),i.length===0&&n(a)},Be=r=>{var e=ar[r];delete ar[r];var t=e.rawConstructor,n=e.rawDestructor,a=e.fields,i=a.map(u=>u.getterReturnType).concat(a.map(u=>u.setterArgumentType));Hr([r],i,u=>{var o={};return a.forEach((c,f)=>{var l=c.fieldName,v=u[f],h=c.getter,b=c.getterContext,k=u[f+a.length],z=c.setter,P=c.setterContext;o[l]={read:rr=>v.fromWireType(h(b,rr)),write:(rr,$r)=>{var fr=[];z(P,rr,k.toWireType(fr,$r)),mr(fr)}}}),[{name:e.name,fromWireType:c=>{var f={};for(var l in o)f[l]=o[l].read(c);return n(c),f},toWireType:(c,f)=>{for(var l in o)if(!(l in f))throw new TypeError(`Missing field: "${l}"`);var v=t();for(l in o)o[l].write(v,f[l]);return c!==null&&c.push(n,v),v},argPackAdvance:W,readValueFromPointer:ir,destructorFunction:n}]})},Ve=(r,e,t,n,a)=>{},He=()=>{for(var r=new Array(256),e=0;e<256;++e)r[e]=String.fromCharCode(e);Nr=r},Nr,y=r=>{for(var e="",t=r;m[t];)e+=Nr[m[t++]];return e},xr,w=r=>{throw new xr(r)};function Ne(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n=e.name;if(r||w(`type "${n}" must have a positive integer typeid pointer`),V.hasOwnProperty(r)){if(t.ignoreDuplicateRegistrations)return;w(`Cannot register type '${n}' twice`)}if(V[r]=e,delete or[r],L.hasOwnProperty(r)){var a=L[r];delete L[r],a.forEach(i=>i())}}function F(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!("argPackAdvance"in e))throw new TypeError("registerType registeredInstance requires argPackAdvance");return Ne(r,e,t)}var W=8,xe=(r,e,t,n)=>{e=y(e),F(r,{name:e,fromWireType:function(a){return!!a},toWireType:function(a,i){return i?t:n},argPackAdvance:W,readValueFromPointer:function(a){return this.fromWireType(m[a])},destructorFunction:null})},yr=[],I=[],br=r=>{r>9&&--I[r+1]===0&&(I[r]=void 0,yr.push(r))},Xe=()=>I.length/2-5-yr.length,Le=()=>{I.push(0,1,void 0,1,null,1,!0,1,!1,1),s.count_emval_handles=Xe},H={toValue:r=>(r||w("Cannot use deleted val. handle = "+r),I[r]),toHandle:r=>{switch(r){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{const e=yr.pop()||I.length;return I[e]=r,I[e+1]=1,e}}}},Ze={name:"emscripten::val",fromWireType:r=>{var e=H.toValue(r);return br(r),e},toWireType:(r,e)=>H.toHandle(e),argPackAdvance:W,readValueFromPointer:ir,destructorFunction:null},qe=r=>F(r,Ze),Qe=(r,e,t)=>{if(r[e].overloadTable===void 0){var n=r[e];r[e]=function(){for(var a=arguments.length,i=new Array(a),u=0;u<a;u++)i[u]=arguments[u];return r[e].overloadTable.hasOwnProperty(i.length)||w(`Function '${t}' called with an invalid number of arguments (${i.length}) - expects one of (${r[e].overloadTable})!`),r[e].overloadTable[i.length].apply(this,i)},r[e].overloadTable=[],r[e].overloadTable[n.argCount]=n}},Xr=(r,e,t)=>{s.hasOwnProperty(r)?((t===void 0||s[r].overloadTable!==void 0&&s[r].overloadTable[t]!==void 0)&&w(`Cannot register public name '${r}' twice`),Qe(s,r,r),s.hasOwnProperty(t)&&w(`Cannot register multiple overloads of a function with the same number of arguments (${t})!`),s[r].overloadTable[t]=e):(s[r]=e,t!==void 0&&(s[r].numArguments=t))},Ge=(r,e,t)=>{switch(e){case 1:return t?function(n){return this.fromWireType(O[n])}:function(n){return this.fromWireType(m[n])};case 2:return t?function(n){return this.fromWireType(N[n>>1])}:function(n){return this.fromWireType(G[n>>1])};case 4:return t?function(n){return this.fromWireType(x[n>>2])}:function(n){return this.fromWireType(p[n>>2])};default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},Je=(r,e,t,n)=>{e=y(e);function a(){}a.values={},F(r,{name:e,constructor:a,fromWireType:function(i){return this.constructor.values[i]},toWireType:(i,u)=>u.value,argPackAdvance:W,readValueFromPointer:Ge(e,t,n),destructorFunction:null}),Xr(e,a)},sr=(r,e)=>Object.defineProperty(e,"name",{value:r}),Lr=r=>{var e=Yr(r),t=y(e);return U(e),t},Zr=(r,e)=>{var t=V[r];return t===void 0&&w(`${e} has unknown type ${Lr(r)}`),t},Ke=(r,e,t)=>{var n=Zr(r,"enum");e=y(e);var a=n.constructor,i=Object.create(n.constructor.prototype,{value:{value:t},constructor:{value:sr(`${n.name}_${e}`,function(){})}});a.values[t]=i,a[e]=i},Ye=(r,e)=>{switch(e){case 4:return function(t){return this.fromWireType(Fr[t>>2])};case 8:return function(t){return this.fromWireType(Pr[t>>3])};default:throw new TypeError(`invalid float width (${e}): ${r}`)}},ze=(r,e,t)=>{e=y(e),F(r,{name:e,fromWireType:n=>n,toWireType:(n,a)=>a,argPackAdvance:W,readValueFromPointer:Ye(e,t),destructorFunction:null})};function rt(r){for(var e=1;e<r.length;++e)if(r[e]!==null&&r[e].destructorFunction===void 0)return!0;return!1}function et(r,e,t,n,a,i){var u=e.length;u<2&&w("argTypes array size mismatch! Must at least get return value and 'this' types!");var o=e[1]!==null&&t!==null,c=rt(e),f=e[0].name!=="void",l=u-2,v=new Array(l),h=[],b=[],k=function(){arguments.length!==l&&w(`function ${r} called with ${arguments.length} arguments, expected ${l}`),b.length=0;var z;h.length=o?2:1,h[0]=a,o&&(z=e[1].toWireType(b,this),h[1]=z);for(var P=0;P<l;++P)v[P]=e[P+2].toWireType(b,P<0||arguments.length<=P?void 0:arguments[P]),h.push(v[P]);var rr=n(...h);function $r(fr){if(c)mr(b);else for(var Z=o?1:2;Z<e.length;Z++){var on=Z===1?z:v[Z-2];e[Z].destructorFunction!==null&&e[Z].destructorFunction(on)}if(f)return e[0].fromWireType(fr)}return $r(rr)};return sr(r,k)}var tt=(r,e)=>{for(var t=[],n=0;n<r;n++)t.push(p[e+n*4>>2]);return t},nt=(r,e,t)=>{s.hasOwnProperty(r)||Vr("Replacing nonexistant public symbol"),s[r].overloadTable!==void 0&&t!==void 0?s[r].overloadTable[t]=e:(s[r]=e,s[r].argCount=t)},at=(r,e,t)=>{var n=s["dynCall_"+r];return n(e,...t)},ur=[],qr,T=r=>{var e=ur[r];return e||(r>=ur.length&&(ur.length=r+1),ur[r]=e=qr.get(r)),e},it=function(r,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(r.includes("j"))return at(r,e,t);var n=T(e)(...t);return n},ot=(r,e)=>function(){for(var t=arguments.length,n=new Array(t),a=0;a<t;a++)n[a]=arguments[a];return it(r,e,n)},K=(r,e)=>{r=y(r);function t(){return r.includes("j")?ot(r,e):T(e)}var n=t();return typeof n!="function"&&w(`unknown function pointer with signature ${r}: ${e}`),n},st=(r,e)=>{var t=sr(e,function(n){this.name=e,this.message=n;var a=new Error(n).stack;a!==void 0&&(this.stack=this.toString()+`
`+a.replace(/^Error(:[^\n]*)?\n/,""))});return t.prototype=Object.create(r.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}: ${this.message}`},t},Qr,ut=(r,e)=>{var t=[],n={};function a(i){if(!n[i]&&!V[i]){if(or[i]){or[i].forEach(a);return}t.push(i),n[i]=!0}}throw e.forEach(a),new Qr(`${r}: `+t.map(Lr).join([", "]))},ct=r=>{r=r.trim();const e=r.indexOf("(");return e!==-1?r.substr(0,e):r},ft=(r,e,t,n,a,i,u)=>{var o=tt(e,t);r=y(r),r=ct(r),a=K(n,a),Xr(r,function(){ut(`Cannot call ${r} due to unbound types`,o)},e-1),Hr([],o,c=>{var f=[c[0],null].concat(c.slice(1));return nt(r,et(r,f,null,a,i),e-1),[]})},lt=(r,e,t)=>{switch(e){case 1:return t?n=>O[n]:n=>m[n];case 2:return t?n=>N[n>>1]:n=>G[n>>1];case 4:return t?n=>x[n>>2]:n=>p[n>>2];default:throw new TypeError(`invalid integer width (${e}): ${r}`)}},vt=(r,e,t,n,a)=>{e=y(e);var i=l=>l;if(n===0){var u=32-8*t;i=l=>l<<u>>>u}var o=e.includes("unsigned"),c=(l,v)=>{},f;o?f=function(l,v){return c(v,this.name),v>>>0}:f=function(l,v){return c(v,this.name),v},F(r,{name:e,fromWireType:i,toWireType:f,argPackAdvance:W,readValueFromPointer:lt(e,t,n!==0),destructorFunction:null})},dt=(r,e,t)=>{var n=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array],a=n[e];function i(u){var o=p[u>>2],c=p[u+4>>2];return new a(O.buffer,c,o)}t=y(t),F(r,{name:t,fromWireType:i,argPackAdvance:W,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},_t=(r,e,t,n)=>{if(!(n>0))return 0;for(var a=t,i=t+n-1,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(o<=127){if(t>=i)break;e[t++]=o}else if(o<=2047){if(t+1>=i)break;e[t++]=192|o>>6,e[t++]=128|o&63}else if(o<=65535){if(t+2>=i)break;e[t++]=224|o>>12,e[t++]=128|o>>6&63,e[t++]=128|o&63}else{if(t+3>=i)break;e[t++]=240|o>>18,e[t++]=128|o>>12&63,e[t++]=128|o>>6&63,e[t++]=128|o&63}}return e[t]=0,t-a},pt=(r,e,t)=>_t(r,m,e,t),ht=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n<=127?e++:n<=2047?e+=2:n>=55296&&n<=57343?(e+=4,++t):e+=3}return e},Gr=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,gt=(r,e,t)=>{for(var n=e+t,a=e;r[a]&&!(a>=n);)++a;if(a-e>16&&r.buffer&&Gr)return Gr.decode(r.subarray(e,a));for(var i="";e<a;){var u=r[e++];if(!(u&128)){i+=String.fromCharCode(u);continue}var o=r[e++]&63;if((u&224)==192){i+=String.fromCharCode((u&31)<<6|o);continue}var c=r[e++]&63;if((u&240)==224?u=(u&15)<<12|o<<6|c:u=(u&7)<<18|o<<12|c<<6|r[e++]&63,u<65536)i+=String.fromCharCode(u);else{var f=u-65536;i+=String.fromCharCode(55296|f>>10,56320|f&1023)}}return i},mt=(r,e)=>r?gt(m,r,e):"",yt=(r,e)=>{e=y(e);var t=e==="std::string";F(r,{name:e,fromWireType(n){var a=p[n>>2],i=n+4,u;if(t)for(var o=i,c=0;c<=a;++c){var f=i+c;if(c==a||m[f]==0){var l=f-o,v=mt(o,l);u===void 0?u=v:(u+="\0",u+=v),o=f+1}}else{for(var h=new Array(a),c=0;c<a;++c)h[c]=String.fromCharCode(m[i+c]);u=h.join("")}return U(n),u},toWireType(n,a){a instanceof ArrayBuffer&&(a=new Uint8Array(a));var i,u=typeof a=="string";u||a instanceof Uint8Array||a instanceof Uint8ClampedArray||a instanceof Int8Array||w("Cannot pass non-string to std::string"),t&&u?i=ht(a):i=a.length;var o=Tr(4+i+1),c=o+4;if(p[o>>2]=i,t&&u)pt(a,c,i+1);else if(u)for(var f=0;f<i;++f){var l=a.charCodeAt(f);l>255&&(U(c),w("String has UTF-16 code units that do not fit in 8 bits")),m[c+f]=l}else for(var f=0;f<i;++f)m[c+f]=a[f];return n!==null&&n.push(U,o),o},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(n){U(n)}})},Jr=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,bt=(r,e)=>{for(var t=r,n=t>>1,a=n+e/2;!(n>=a)&&G[n];)++n;if(t=n<<1,t-r>32&&Jr)return Jr.decode(m.subarray(r,t));for(var i="",u=0;!(u>=e/2);++u){var o=N[r+u*2>>1];if(o==0)break;i+=String.fromCharCode(o)}return i},wt=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<2)return 0;t-=2;for(var a=e,i=t<r.length*2?t/2:r.length,u=0;u<i;++u){var o=r.charCodeAt(u);N[e>>1]=o,e+=2}return N[e>>1]=0,e-a},Tt=r=>r.length*2,$t=(r,e)=>{for(var t=0,n="";!(t>=e/4);){var a=x[r+t*4>>2];if(a==0)break;if(++t,a>=65536){var i=a-65536;n+=String.fromCharCode(55296|i>>10,56320|i&1023)}else n+=String.fromCharCode(a)}return n},At=(r,e,t)=>{var n;if((n=t)!==null&&n!==void 0||(t=2147483647),t<4)return 0;for(var a=e,i=a+t-4,u=0;u<r.length;++u){var o=r.charCodeAt(u);if(o>=55296&&o<=57343){var c=r.charCodeAt(++u);o=65536+((o&1023)<<10)|c&1023}if(x[e>>2]=o,e+=4,e+4>i)break}return x[e>>2]=0,e-a},Ct=r=>{for(var e=0,t=0;t<r.length;++t){var n=r.charCodeAt(t);n>=55296&&n<=57343&&++t,e+=4}return e},Et=(r,e,t)=>{t=y(t);var n,a,i,u;e===2?(n=bt,a=wt,u=Tt,i=o=>G[o>>1]):e===4&&(n=$t,a=At,u=Ct,i=o=>p[o>>2]),F(r,{name:t,fromWireType:o=>{for(var c=p[o>>2],f,l=o+4,v=0;v<=c;++v){var h=o+4+v*e;if(v==c||i(h)==0){var b=h-l,k=n(l,b);f===void 0?f=k:(f+="\0",f+=k),l=h+e}}return U(o),f},toWireType:(o,c)=>{typeof c!="string"&&w(`Cannot pass non-string to C++ string type ${t}`);var f=u(c),l=Tr(4+f+e);return p[l>>2]=f/e,a(c,l+4,f+e),o!==null&&o.push(U,l),l},argPackAdvance:W,readValueFromPointer:ir,destructorFunction(o){U(o)}})},Rt=(r,e,t,n,a,i)=>{ar[r]={name:y(e),rawConstructor:K(t,n),rawDestructor:K(a,i),fields:[]}},St=(r,e,t,n,a,i,u,o,c,f)=>{ar[r].fields.push({fieldName:y(e),getterReturnType:t,getter:K(n,a),getterContext:i,setterArgumentType:u,setter:K(o,c),setterContext:f})},Ft=(r,e)=>{e=y(e),F(r,{isVoid:!0,name:e,argPackAdvance:0,fromWireType:()=>{},toWireType:(t,n)=>{}})},wr=[],Pt=(r,e,t,n)=>(r=wr[r],e=H.toValue(e),r(null,e,t,n)),Wt={},It=r=>{var e=Wt[r];return e===void 0?y(r):e},Kr=()=>{if(typeof globalThis=="object")return globalThis;function r(e){e.$$$embind_global$$$=e;var t=typeof $$$embind_global$$$=="object"&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if(typeof $$$embind_global$$$=="object"||(typeof global=="object"&&r(global)?$$$embind_global$$$=global:typeof self=="object"&&r(self)&&($$$embind_global$$$=self),typeof $$$embind_global$$$=="object"))return $$$embind_global$$$;throw Error("unable to get global object.")},Ut=r=>r===0?H.toHandle(Kr()):(r=It(r),H.toHandle(Kr()[r])),Ot=r=>{var e=wr.length;return wr.push(r),e},kt=(r,e)=>{for(var t=new Array(r),n=0;n<r;++n)t[n]=Zr(p[e+n*4>>2],"parameter "+n);return t},Mt=Reflect.construct,Dt=(r,e,t)=>{var n=[],a=r.toWireType(n,t);return n.length&&(p[e>>2]=H.toHandle(n)),a},jt=(r,e,t)=>{var n=kt(r,e),a=n.shift();r--;var i=new Array(r),u=(c,f,l,v)=>{for(var h=0,b=0;b<r;++b)i[b]=n[b].readValueFromPointer(v+h),h+=n[b].argPackAdvance;var k=t===1?Mt(f,i):f.apply(c,i);return Dt(a,l,k)},o=`methodCaller<(${n.map(c=>c.name).join(", ")}) => ${a.name}>`;return Ot(sr(o,u))},Bt=r=>{r>9&&(I[r+1]+=1)},Vt=r=>{var e=H.toValue(r);mr(e),br(r)},Ht=()=>{_r("")},Nt=(r,e,t)=>m.copyWithin(r,e,e+t),xt=()=>2147483648,Xt=r=>{var e=nr.buffer,t=(r-e.byteLength+65535)/65536;try{return nr.grow(t),Wr(),1}catch{}},Lt=r=>{var e=m.length;r>>>=0;var t=xt();if(r>t)return!1;for(var n=(c,f)=>c+(f-c%f)%f,a=1;a<=4;a*=2){var i=e*(1+.2/a);i=Math.min(i,r+100663296);var u=Math.min(t,n(Math.max(r,i),65536)),o=Xt(u);if(o)return!0}return!1},Zt=r=>r;Br=s.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},He(),xr=s.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Le(),Qr=s.UnboundTypeError=st(Error,"UnboundTypeError");var qt={r:Ie,q:Ue,g:ke,d:Me,k:De,a:je,i:Oe,M:Be,C:Ve,H:xe,G:qe,K:Je,b:Ke,v:ze,L:ft,h:vt,e:dt,u:yt,p:Et,w:Rt,N:St,I:Ft,z:Pt,P:br,B:Ut,A:jt,x:Bt,Q:Vt,s:Ht,F:Nt,E:Lt,y:zt,c:Qt,l:rn,n:Yt,o:en,f:Gt,t:an,m:nn,D:Kt,J:Jt,j:tn,O:Zt},g=We(),Tr=s._malloc=r=>(Tr=s._malloc=g.T)(r),U=s._free=r=>(U=s._free=g.U)(r),Yr=r=>(Yr=g.W)(r),$=(r,e)=>($=g.X)(r,e),Y=r=>(Y=g.Y)(r),A=()=>(A=g.Z)(),C=r=>(C=g._)(r),zr=r=>(zr=g.$)(r),re=r=>(re=g.aa)(r),ee=(r,e,t)=>(ee=g.ba)(r,e,t),te=r=>(te=g.ca)(r);function Qt(r,e){var t=A();try{return T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function Gt(r,e){var t=A();try{T(r)(e)}catch(n){if(C(t),n!==n+0)throw n;$(1,0)}}function Jt(r,e,t,n,a,i){var u=A();try{T(r)(e,t,n,a,i)}catch(o){if(C(u),o!==o+0)throw o;$(1,0)}}function Kt(r,e,t,n,a){var i=A();try{T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function Yt(r,e,t,n){var a=A();try{return T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function zt(r,e,t,n,a){var i=A();try{return T(r)(e,t,n,a)}catch(u){if(C(i),u!==u+0)throw u;$(1,0)}}function rn(r,e,t){var n=A();try{return T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}function en(r){var e=A();try{T(r)()}catch(t){if(C(e),t!==t+0)throw t;$(1,0)}}function tn(r,e,t,n,a,i,u,o,c,f,l){var v=A();try{T(r)(e,t,n,a,i,u,o,c,f,l)}catch(h){if(C(v),h!==h+0)throw h;$(1,0)}}function nn(r,e,t,n){var a=A();try{T(r)(e,t,n)}catch(i){if(C(a),i!==i+0)throw i;$(1,0)}}function an(r,e,t){var n=A();try{T(r)(e,t)}catch(a){if(C(n),a!==a+0)throw a;$(1,0)}}var cr;J=function r(){cr||ne(),cr||(J=r)};function ne(){if(j>0||(be(),j>0))return;function r(){cr||(cr=!0,s.calledRun=!0,!Sr&&(we(),M(s),s.onRuntimeInitialized&&s.onRuntimeInitialized(),Te()))}s.setStatus?(s.setStatus("Running..."),setTimeout(function(){setTimeout(function(){s.setStatus("")},1),r()},1)):r()}if(s.preInit)for(typeof s.preInit=="function"&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();return ne(),_.ready}})();const Cr={...lr};function pe(d){return Ar(vr,d)}function he(d){return de(vr,d)}async function ge(d,_){return _e(vr,d,_)}return E.barcodeFormats=ie,E.characterSets=oe,E.defaultEncodeHints=Cr,E.defaultWriterOptions=Cr,E.getZXingModule=pe,E.purgeZXingModule=ve,E.setZXingModuleOverrides=he,E.writeBarcodeToImageFile=ge,E.writeInputEccLevels=ue,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"}),E}({});

@@ -5,3 +5,3 @@ {

"private": false,
"version": "1.2.4",
"version": "1.2.5-rc.0",
"type": "module",

@@ -96,3 +96,4 @@ "files": ["./dist"],

"postncu": "npm i",
"bump-biome": "npm i @biomejs/biome@latest --save-exact"
"bump-biome:latest": "npm i -DE @biomejs/biome@latest",
"bump-biome:nightly": "npm i -DE @biomejs/biome@nightly"
},

@@ -99,0 +100,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc