(function(ee,O){typeofexports=="object"&&typeofmodule<"u"?O(exports,require("vue")):typeofdefine=="function"&&define.amd?define(["exports","vue"],O):(ee=typeofglobalThis<"u"?globalThis:ee||self,O(ee.VueQrcodeReader={},ee.Vue))})(this,function(ee,O){"use strict";varWt=(r,o,i)=>{if(!o.has(r))throwTypeError("Cannot "+i)},jt=(r,o,i)=>(Wt(r,o,"read from private field"),i?i.call(r):o.get(r)),tn=(r,o,i)=>{if(o.has(r))throwTypeError("Cannot add the same private member more than once");oinstanceofWeakSet?o.add(r):o.set(r,i)},rn=(r,o,i,c)=>(Wt(r,o,"write to private field"),o.set(r,i),i);constLt=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],nn=[...Lt,["unknown"]].map(r=>r[0]),Le=newMap(Lt);functionan(r){for(const[o,i]ofLe)if(r===i)returno;return"unknown"}functionon(r){if(Ht(r))return{width:r.naturalWidth,height:r.naturalHeight};if(Bt(r))return{width:r.width.baseVal.value,height:r.height.baseVal.value};if(Vt(r))return{width:r.videoWidth,height:r.videoHeight};if(Nt(r))return{width:r.width,height:r.height};if(Gt(r))return{width:r.displayWidth,height:r.displayHeight};if(qt(r))return{width:r.width,height:r.height};if(zt(r))return{width:r.width,height:r.height};thrownewTypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}functionHt(r){try{returnrinstanceofHTMLImageElement}catch(o){return!1}}functionBt(r){try{returnrinstanceofSVGImageElement}catch(o){return!1}}functionVt(r){try{returnrinstanceofHTMLVideoElement}catch(o){return!1}}functionqt(r){try{returnrinstanceofHTMLCanvasElement}catch(o){return!1}}functionNt(r){try{returnrinstanceofImageBitmap}catch(o){return!1}}functionzt(r){try{returnrinstanceofOffscreenCanvas}catch(o){return!1}}functionGt(r){try{returnrinstanceofVideoFrame}catch(o){return!1}}functionYt(r){try{returnrinstanceofBlob}catch(o){return!1}}functionsn(r){try{returnrinstanceofImageData}catch(o){return!1}}functioncn(r,o){try{consti=newOffscreenCanvas(r,o);if(i.getContext("2d")instanceofOffscreenCanvasRenderingContext2D)returni;throwvoid0}catch(i){constc=document.createElement("canvas");returnc.width=r,c.height=o,c}}asyncfunctionJt(r){if(Ht(r)&&!awaitfn(r))thrownewDOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(Bt(r)&&!awaithn(r))thrownewDOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(Gt(r)&&pn(r))thrownewDOMException("VideoFrame is closed.","InvalidStateError");if(Vt(r)&&(r.readyState===0||r.readyState===1))thrownewDOMException("Invalid element or state.","InvalidStateError");if(Nt(r)&&vn(r))thrownewDOMException("The image source is detached.","InvalidStateError");const{width:o,height:i}=on(r);if(o===0||i===0)returnnull;constc=cn(o,i).getContext("2d");c.drawImage(r,0,0);try{returnc.getImageData(0,0,o,i)}catch(l){thrownewDOMException("Source would taint origin.","SecurityError")}}asyncfunctionun(r){leto;try{if(globalThis.createImageBitmap)o=awaitcreateImageBitmap(r);elseif(globalThis.Image){o=newImage;leti="";try{i=URL.createObjectURL(r),o.src=i,awaito.decode()}finally{URL.revokeObjectURL(i)}}elsereturnr}catch(i){thrownewDOMException("Failed to load or decode Blob.","InvalidStateError")}returnawaitJt(o)}functionln(r){const{width:o,height:i}=r;if(o===0||i===0)returnnull;constc=r.getContext("2d");try{returnc.getImageData(0,0,o,i)}catch(l){thrownewDOMException("Source would taint origin.","SecurityError")}}asyncfunctiondn(r){if(Yt(r))returnawaitun(r);if(sn(r)){if(mn(r))
`+s.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return this.message===void 0?this.name:`${this.name}:${this.message}`},n},Ir,Fr=e=>{var t=zr(e),n=J(t);return de(t),n},ot=(e,t)=>{var n=[],a={};function s(u){if(!a[u]&&!we[u]){if(Ke[u]){Ke[u].forEach(s);return}n.push(u),a[u]=!0}}throw t.forEach(s),new Ir(`${e}:`+n.map(Fr).join([", "]))},no=(e,t,n,a,s,u,d,f,m,w,_,T,E)=>{_=J(_),u=re(s,u),f&&(f=re(d,f)),w&&(w=re(m,w)),E=re(T,E);var M=Ga(_);Et(M,function(){ot(`Cannotconstruct${_}duetounboundtypes`,[a])}),be([e,t,n],a?[a]:[],function(H){H=H[0];var N,F;a?(N=H.registeredClass,F=N.instancePrototype):F=rt.prototype;var Q=Ue(_,function(){if(Object.getPrototypeOf(this)!==y)throw new Ee("Use 'new' to construct "+_);if(P.constructor_body===void 0)throw new Ee(_+" has no accessible constructor");var en=P.constructor_body[arguments.length];if(en===void 0)throw new Ee(`Triedtoinvokectorof${_}withinvalidnumberofparameters(${arguments.length})-expected(${Object.keys(P.constructor_body).toString()})parametersinstead!`);return en.apply(this,arguments)}),y=Object.create(F,{constructor:{value:Q}});Q.prototype=y;var P=new Ya(_,Q,y,E,N,u,f,w);if(P.baseClass){var z,Y;(Y=(z=P.baseClass).__derivedClasses)!==null&&Y!==void 0||(z.__derivedClasses=[]),P.baseClass.__derivedClasses.push(P)}var Oe=new nt(_,P,!0,!1,!1),ct=new nt(_+"*",P,!1,!1,!1),Kr=new nt(_+" const*",P,!1,!0,!1);return Dr[e]={pointerType:ct,constPointerType:Kr},xr(M,Q),[Oe,ct,Kr]})},Mt=(e,t)=>{for(var n=[],a=0;a<e;a++)n.push(A[t+a*4>>2]);return n};function ao(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}function Dt(e,t,n,a,s,u){var d=t.length;d<2&&x("argTypes array size mismatch! Must at least get return value and 'this' types!");var f=t[1]!==null&&n!==null,m=ao(t),w=t[0].name!=="void",_=d-2,T=new Array(_),E=[],M=[],H=function(){arguments.length!==_&&x(`function${e}calledwith${arguments.length}arguments,expected${_}`),M.length=0;var N;E.length=f?2:1,E[0]=s,f&&(N=t[1].toWireType(M,this),E[1]=N);for(var F=0;F<_;++F)T[F]=t[F+2].toWireType(M,arguments[F]),E.push(T[F]);var Q=a.apply(null,E);function y(P){if(m)$t(M);else for(var z=f?1:2;z<t.length;z++){var Y=z===1?N:T[z-2];t[z].destructorFunction!==null&&t[z].destructorFunction(Y)}if(w)return t[0].fromWireType(P)}return y(Q)};return Ue(e,H)}var oo=(e,t,n,a,s,u)=>{var d=Mt(t,n);s=re(a,s),be([],[e],function(f){f=f[0];var m=`constructor${f.name}`;if(f.registeredClass.constructor_body===void 0&&(f.registeredClass.constructor_body=[]),f.registeredClass.constructor_body[t-1]!==void 0)throw new Ee(`Cannotregistermultipleconstructorswithidenticalnumberofparameters(${t-1})forclass'${f.name}'!Overloadresolutioniscurrentlyonlyperformedusingtheparametercount,notactualtypeinfo!`);return f.registeredClass.constructor_body[t-1]=()=>{ot(`Cannotconstruct${f.name}duetounboundtypes`,d)},be([],d,w=>(w.splice(1,0,null),f.registeredClass.constructor_body[t-1]=Dt(m,w,null,s,u),[])),[]})},Ur=e=>{e=e.trim();const t=e.indexOf("(");return t!==-1?e.substr(0,t):e},io=(e,t,n,a,s,u,d,f,m)=>{var w=Mt(n,a);t=J(t),t=Ur(t),u=re(s,u),be([],[e],function(_){_=_[0];var T=`${_.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),f&&_.registeredClass.pureVirtualFunctions.push(t);function E(){ot(`Cannotcall${T}duetounboundtypes`,w)}var M=_.registeredClass.instancePrototype,H=M[t];return H===void 0||H.overloadTable===void 0&&H.className!==_.name&&H.argCount===n-2?(E.argCount=n-2,E.className=_.name,M[t]=E):(Ar(M,t,T),M[t].overloadTable[n-2]=E),be([],w,function(N){var F=Dt(T,N,_,u,d);return M[t].overloadTable===void 0?(F.argCount=n-2,M[t]=F):M[t].overloadTable[n-2]=F,[]}),[]})};function so(){Object.assign(Wr.prototype,{get(e){return this.allocated[e]},has(e){return this.allocated[e]!==void 0},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}})}function Wr(){this.allocated=[