import{Gas$,HasN,rasS,Iasae,oasne,Fasue,aasj,casx,d,AasV,gasz,JasK,xasQ,tasde,wasB,qasU,masq,Casee,jasce,k}from"./index-BsVv6gaD.js";import{SasO}from"./vendor-ui-jlFFG6nm.js";import{aaste,_asre}from"./ConfirmModal-CzamKe9d.js";import"./vendor-charts-Bcjh2pZL.js";varT=function(){returnT=Object.assign||function(c){for(varf,u=1,h=arguments.length;u<h;u++){f=arguments[u];for(varminf)Object.prototype.hasOwnProperty.call(f,m)&&(c[m]=f[m])}returnc},T.apply(this,arguments)};varD;(function(s){varc=(function(){functiona(e,t,r,n){if(this.version=e,this.errorCorrectionLevel=t,this.modules=[],this.isFunction=[],e<a.MIN_VERSION||e>a.MAX_VERSION)thrownewRangeError("Version value out of range");if(n<-1||n>7)thrownewRangeError("Mask value out of range");this.size=e*4+17;for(varo=[],i=0;i<this.size;i++)o.push(!1);for(vari=0;i<this.size;i++)this.modules.push(o.slice()),this.isFunction.push(o.slice());this.drawFunctionPatterns();varv=this.addEccAndInterleave(r);if(this.drawCodewords(v),n==-1)for(varp=1e9,i=0;i<8;i++){this.applyMask(i),this.drawFormatBits(i);varM=this.getPenaltyScore();M<p&&(n=i,p=M),this.applyMask(i)}h(0<=n&&n<=7),this.mask=n,this.applyMask(n),this.drawFormatBits(n),this.isFunction=[]}returna.encodeText=function(e,t){varr=s.QrSegment.makeSegments(e);returna.encodeSegments(r,t)},a.encodeBinary=function(e,t){varr=s.QrSegment.makeBytes(e);returna.encodeSegments([r],t)},a.encodeSegments=function(e,t,r,n,o,i){if(r===void0&&(r=1),n===void0&&(n=40),o===void0&&(o=-1),i===void0&&(i=!0),!(a.MIN_VERSION<=r&&r<=n&&n<=a.MAX_VERSION)||o<-1||o>7)thrownewRangeError("Invalid value");varv,p;for(v=r;;v++){varM=a.getNumDataCodewords(v,t)*8,w=m.getTotalBits(e,v);if(w<=M){p=w;break}if(v>=n)thrownewRangeError("Data too long")}for(varC=0,A=[a.Ecc.MEDIUM,a.Ecc.QUARTILE,a.Ecc.HIGH];C<A.length;C++){vary=A[C];i&&p<=a.getNumDataCodewords(v,y)*8&&(t=y)}for(varb=[],_=0,R=e;_<R.length;_++){varP=R[_];f(P.mode.modeBits,4,b),f(P.numChars,P.mode.numCharCountBits(v),b);for(varF=0,g=P.getData();F<g.length;F++){varl=g[F];b.push(l)}}h(b.length==p);varE=a.getNumDataCodewords(v,t)*8;h(b.length<=E),f(0,Math.min(4,E-b.length),b),f(0,(8-b.length%8)%8,b),h(b.length%8==0);for(varI=236;b.length<E;I^=253)f(I,8,b);for(varL=[];L.length*8<b.length;)L.push(0);returnb.forEach(function(Y,G){returnL[G>>>3]|=Y<<7-(G&7)}),newa(v,t,L,o)},a.prototype.getModule=function(e,t){return0<=e&&e<this.size&&0<=t&&t<this.size&&this.modules[t][e]},a.prototype.getModules=function(){returnthis.modules},a.prototype.drawFunctionPatterns=function(){for(vare=0;e<this.size;e++)this.setFunctionModule(6,e,e%2==0),this.setFunctionModule(e,6,e%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);for(vart=this.getAlignmentPatternPositions(),r=t.length,e=0;e<r;e++)for(varn=0;n<r;n++)e==0&&n==0||e==0&&n==r-1||e==r-1&&n==0||this.drawAlignmentPattern(t[e],t[n]);this.drawFormatBits(0),this.drawVersion()},a.prototype.drawFormatBits=function(e){for(vart=this.errorCorrectionLevel.formatBits<<3|e,r=t,n=0;n<10;n++)r=r<<1^(r>>>9)*1335;varo=(t<<10|r)^21522;h(o>>>15==0);for(varn=0;n<=5;n++)this.setFunctionModule(8,n,u(o,n));this.setFunctionModule(8,7,u(o,6)),this.setFunctionModule(8,8,u(o,7)),this.setFunctionModule(7,8,u(o,8));for(varn=9;n<15;n++)this.setFunctionModule(14-n,8,u(o,n));for(varn=0;n<8;n++)this.setFunctionModule(this.size-1-n,8,u(o,n));for(varn=8;n<15;n++)this.setFunctionModule(8,this.size-15+n,u(o,n));this.setFunctionModule(8,this.size-8,!0)},a.prototype.drawVersion=function(){if(!(this.version<7)){for(vare=this.version,t=0;t<12;t++)e=e<<1^(e>>>11)*7973;varr=this.version<<12|e;h(r>>>18==0);for(vart=0;t<18;t++){varn=u(r,t),o=this.size-11+t%3,i=Math.floor(t/3);this.setFunctionModule(o,i,n),this.setFunctionModule(i,o,n)}}},a.prototype.drawFinderPattern=function(e,t){for(varr=-4;r<=4;r++)for(varn=-4;n<=4;n++){varo=Math.max(Math.abs(n),Math.abs(r)),i=e+n,v=t+r;0<=i&&i<this.size&&0<=v&&v<this.size&&this.setFunctionModule(i,v,o!=2&&o!=4)}},a.prototyp