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