import{tasCe,adas_e,OasSe,_asEe}from"./index.d0ae69d5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{dasBe,jaswt,rasIe,oasTe,aYasAe,c0asPe,bYasNe,b3asMe,bSasFe,bIasRe,CasO,Dasq,aIasC,aHasE,aMasL,aNasv,G,uasDe,a$asZt,b0asWt,aKasnt,aJasot,aEasrt,nasXt,bcasLe,bkasUe,b$asve,b8aske,biasVe,c1as$e,bGasOe,bKasHe,bOasze,bmasYe,bnasxe}from"./arco.b087a425.js";import{easyt,gaste,hasT,basM,sasJe}from"./serial.c6b76da8.js";import{uasKe}from"./loading.9d534c38.js";import"./chart.836a9fe2.js";import"./vue.23fb8a9a.js";varW={},je=function(){returntypeofPromise=="function"&&Promise.prototype&&Promise.prototype.then},re={},k={};letPt;constqe=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];k.getSymbolSize=function(n){if(!n)thrownewError('"version" cannot be null or undefined');if(n<1||n>40)thrownewError('"version" should be in range from 1 to 40');returnn*4+17};k.getSymbolTotalCodewords=function(n){returnqe[n]};k.getBCHDigit=function(o){letn=0;for(;o!==0;)n++,o>>>=1;returnn};k.setToSJISFunction=function(n){if(typeofn!="function")thrownewError('"toSJISFunc" is not a valid function.');Pt=n};k.isKanjiModeEnabled=function(){returntypeofPt<"u"};k.toSJIS=function(n){returnPt(n)};varut={};(function(o){o.L={bit:1},o.M={bit:0},o.Q={bit:3},o.H={bit:2};functionn(i){if(typeofi!="string")thrownewError("Param is not a string");switch(i.toLowerCase()){case"l":case"low":returno.L;case"m":case"medium":returno.M;case"q":case"quartile":returno.Q;case"h":case"high":returno.H;default:thrownewError("Unknown EC Level: "+i)}}o.isValid=function(e){returne&&typeofe.bit<"u"&&e.bit>=0&&e.bit<4},o.from=function(e,r){if(o.isValid(e))returne;try{returnn(e)}catch{returnr}}})(ut);functionae(){this.buffer=[],this.length=0}ae.prototype={get:function(o){constn=Math.floor(o/8);return(this.buffer[n]>>>7-o%8&1)===1},put:function(o,n){for(leti=0;i<n;i++)this.putBit((o>>>n-i-1&1)===1)},getLengthInBits:function(){returnthis.length},putBit:function(o){constn=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),o&&(this.buffer[n]|=128>>>this.length%8),this.length++}};varGe=ae;functionX(o){if(!o||o<1)thrownewError("BitMatrix size must be defined and greater than 0");this.size=o,this.data=newUint8Array(o*o),this.reservedBit=newUint8Array(o*o)}X.prototype.set=function(o,n,i,e){constr=o*this.size+n;this.data[r]=i,e&&(this.reservedBit[r]=!0)};X.prototype.get=function(o,n){returnthis.data[o*this.size+n]};X.prototype.xor=function(o,n,i){this.data[o*this.size+n]^=i};X.prototype.isReserved=function(o,n){returnthis.reservedBit[o*this.size+n]};varQe=X,ie={};(function(o){constn=k.getSymbolSize;o.getRowColCoords=function(e){if(e===1)return[];constr=Math.floor(e/7)+2,a=n(e),s=a===145?26:Math.ceil((a-13)/(2*r-2))*2,t=[a-7];for(letl=1;l<r-1;l++)t[l]=t[l-1]-s;returnt.push(6),t.reverse()},o.getPositions=function(e){constr=[],a=o.getRowColCoords(e),s=a.length;for(lett=0;t<s;t++)for(letl=0;l<s;l++)t===0&&l===0||t===0&&l===s-1||t===s-1&&l===0||r.push([a[t],a[l]]);returnr}})(ie);varse={};constZe=k.getSymbolSize,ee=7;se.getPositions=function(n){consti=Ze(n);return[[0,0],[i-ee,0],[0,i-ee]]};varle={};(function(o){o.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};constn={N1:3,N2:3,N3:40,N4:10};o.isValid=function(r){returnr!=null&&r!==""&&!isNaN(r)&&r>=0&&r<=7},o.from=function(r){returno.isValid(r)?parseInt(r,10):void0},o.getPenaltyN1=function(r){consta=r.size;lets=0,t=0,l=0,g=null,h=null;for(letI=0;I<a;I++){t=l=0,g=h=null;for(lety=0;y<a;y++){letm=r.get(I,y);m===g?t++:(t>=5&&(s+=n.N1+(t-5)),g=
]))+`;$.KANJI=new RegExp(Z,"g");$.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");$.BYTE=new RegExp(tn,"g");$.NUMERIC=new RegExp(fe,"g");$.ALPHANUMERIC=new RegExp(Xe,"g");const en=new RegExp("^"+Z+"$"),nn=new RegExp("^"+fe+"$"),on=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");$.testKanji=function(n){return en.test(n)};$.testNumeric=function(n){return nn.test(n)};$.testAlphanumeric=function(n){return on.test(n)};(function(o){const n=Mt,i=$;o.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},o.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},o.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},o.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},o.MIXED={bit:-1},o.getCharCountIndicator=function(a,s){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!n.isValid(s))throw new Error("Invalid version: "+s);return s>=1&&s<10?a.ccBits[0]:s<27?a.ccBits[1]:a.ccBits[2]},o.getBestModeForData=function(a){return i.testNumeric(a)?o.NUMERIC:i.testAlphanumeric(a)?o.ALPHANUMERIC:i.testKanji(a)?o.KANJI:o.BYTE},o.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},o.isValid=function(a){return a&&a.bit&&a.ccBits};function e(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return o.NUMERIC;case"alphanumeric":return o.ALPHANUMERIC;case"kanji":return o.KANJI;case"byte":return o.BYTE;default:throw new Error("Unknown mode: "+r)}}o.from=function(a,s){if(o.isValid(a))return a;try{return e(a)}catch{return s}}})(z);(function(o){const n=k,i=ct,e=ut,r=z,a=Mt,s=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,t=n.getBCHDigit(s);function l(y,m,_){for(let S=1;S<=40;S++)if(m<=o.getCapacity(S,_,y))return S}function g(y,m){return r.getCharCountIndicator(y,m)+4}function h(y,m){let _=0;return y.forEach(function(S){const A=g(S.mode,m);_+=A+S.getBitsLength()}),_}function I(y,m){for(let _=1;_<=40;_++)if(h(y,_)<=o.getCapacity(_,m,r.MIXED))return _}o.from=function(m,_){return a.isValid(m)?parseInt(m,10):_},o.getCapacity=function(m,_,S){if(!a.isValid(m))throw new Error("Invalid QR Code version");typeof S>"u"&&(S=r.BYTE);const A=n.getSymbolTotalCodewords(m),b=i.getTotalCodewordsCount(m,_),c=(A-b)*8;if(S===r.MIXED)return c;const u=c-g(S,m);switch(S){case r.NUMERIC:return Math.floor(u/10*3);case r.ALPHANUMERIC:return Math.floor(u/11*2);case r.KANJI:return Math.floor(u/13);case r.BYTE:default:return Math.floor(u/8)}},o.getBestVersionForData=function(m,_){let S;const A=e.from(_,e.M);if(Array.isArray(m)){if(m.length>1)return I(m,A);if(m.length===0)return 1;S=m[0]}else S=m;return l(S.mode,S.getLength(),A)},o.getEncodedBits=function(m){if(!a.isValid(m)||m<7)throw new Error("Invalid QR Code version");let _=m<<12;for(;n.getBCHDigit(_)-t>=0;)_^=s<<n.getBCHDigit(_)-t;return m<<12|_}})(de);var ge={};const Bt=k,he=1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,rn=1<<14|1<<12|1<<10|1<<4|1<<1,ne=Bt.getBCHDigit(he);ge.getEncodedBits=function(n,i){const e=n.bit<<3|i;let r=e<<10;for(;Bt.getBCHDigit(r)-ne>=0;)r^=he<<Bt.getBCHDigit(r)-ne;return(e<<10|r)^rn};var pe={};const an=z;function x(o){this.mode=an.NUMERIC,this.data=o.toString()}x.getBitsLength=function(n){return 10*Math.floor(n/3)+(n%3?n%3*3+1:0)};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(n){let i,e,r;for(i=0;i+3<=this.data.length;i+=3)e=this.data.substr(i,3),r=parseInt(e,10),n.put(r,10);const a=this.data.length-i;a>0&&(e=this.data.substr(i),r=parseInt(e,10),n.put(r,a*3+1))};var sn=x;const ln=z,bt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function J(o){this.mode=ln.ALPHANUMERIC,this.data=o}J.getBitsLength=function(n){return 11*Math.floor(n/2)+6*(n%2)};J.prototype.getLength=function(){return this.data.length};J.prototype.getBitsLength=function(){return J.getBitsLength(this.data.length)};J.prototype.write=function(n){let i;for(i=0;i+2<=this.data.length;i+=2){let e=bt.indexOf(this.data[i])*45;e+=bt.indexOf(this.data[i+1]),