@agendize/vue-tools 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bloc/Bloc.d.ts +11 -11
- package/dist/bloc/useBlocState.d.ts +3 -3
- package/dist/index.d.ts +5 -3
- package/dist/presentation/component/qr-code/View.vue.d.ts +48 -0
- package/dist/utils/date.d.ts +1 -0
- package/dist/vue-tools.es.js +1976 -740
- package/dist/vue-tools.umd.js +5 -1
- package/package.json +54 -53
package/dist/vue-tools.umd.js
CHANGED
|
@@ -1 +1,5 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(nt,H){typeof exports=="object"&&typeof module!="undefined"?H(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],H):(nt=typeof globalThis!="undefined"?globalThis:nt||self,H((nt.agendize=nt.agendize||{},nt.agendize.tools={}),nt.Vue))})(this,function(nt,H){"use strict";var re=Object.defineProperty;var ne=(nt,H,Lt)=>H in nt?re(nt,H,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):nt[H]=Lt;var Vt=(nt,H,Lt)=>(ne(nt,typeof H!="symbol"?H+"":H,Lt),Lt);function Lt(J){const V=H.ref(J.state),at=st=>{V.value=st};return H.onMounted(()=>{J.subscribe(at)}),H.onUnmounted(()=>{J.unsubscribe(at)}),H.readonly(V)}function Wt(J,V=!1){var at=J.getFullYear(),st=J.getMonth()+1,ot=J.getDate(),G=J.getHours(),Z=J.getMinutes(),et=J.getSeconds();return V?(ot<10?"0"+ot:ot)+"/"+(st<10?"0"+st:st)+"/"+at:at+"-"+(st<10?"0"+st:st)+"-"+(ot<10?"0"+ot:ot)+"T"+(G<10?"0"+G:G)+":"+(Z<10?"0"+Z:Z)+":"+(et<10?"0"+et:et)}function Jt(J){return J&&J.__esModule&&Object.prototype.hasOwnProperty.call(J,"default")?J.default:J}var Xt={exports:{}};(function(J,V){(function(at,st){J.exports=st()})(self,function(){return(()=>{var at={192:(G,Z)=>{var et,jt,kt=function(){var gt=function(x,y){var v=x,g=At[y],d=null,p=0,z=null,D=[],O={},X=function(u,M){d=function(l){for(var w=new Array(l),_=0;_<l;_+=1){w[_]=new Array(l);for(var j=0;j<l;j+=1)w[_][j]=null}return w}(p=4*v+17),$(0,0),$(p-7,0),$(0,p-7),K(),Y(),ut(u,M),v>=7&&ht(u),z==null&&(z=Dt(v,g,D)),Ot(z,M)},$=function(u,M){for(var l=-1;l<=7;l+=1)if(!(u+l<=-1||p<=u+l))for(var w=-1;w<=7;w+=1)M+w<=-1||p<=M+w||(d[u+l][M+w]=0<=l&&l<=6&&(w==0||w==6)||0<=w&&w<=6&&(l==0||l==6)||2<=l&&l<=4&&2<=w&&w<=4)},Y=function(){for(var u=8;u<p-8;u+=1)d[u][6]==null&&(d[u][6]=u%2==0);for(var M=8;M<p-8;M+=1)d[6][M]==null&&(d[6][M]=M%2==0)},K=function(){for(var u=xt.getPatternPosition(v),M=0;M<u.length;M+=1)for(var l=0;l<u.length;l+=1){var w=u[M],_=u[l];if(d[w][_]==null)for(var j=-2;j<=2;j+=1)for(var Q=-2;Q<=2;Q+=1)d[w+j][_+Q]=j==-2||j==2||Q==-2||Q==2||j==0&&Q==0}},ht=function(u){for(var M=xt.getBCHTypeNumber(v),l=0;l<18;l+=1){var w=!u&&(M>>l&1)==1;d[Math.floor(l/3)][l%3+p-8-3]=w}for(l=0;l<18;l+=1)w=!u&&(M>>l&1)==1,d[l%3+p-8-3][Math.floor(l/3)]=w},ut=function(u,M){for(var l=g<<3|M,w=xt.getBCHTypeInfo(l),_=0;_<15;_+=1){var j=!u&&(w>>_&1)==1;_<6?d[_][8]=j:_<8?d[_+1][8]=j:d[p-15+_][8]=j}for(_=0;_<15;_+=1)j=!u&&(w>>_&1)==1,_<8?d[8][p-_-1]=j:_<9?d[8][15-_-1+1]=j:d[8][15-_-1]=j;d[p-8][8]=!u},Ot=function(u,M){for(var l=-1,w=p-1,_=7,j=0,Q=xt.getMaskFunction(M),E=p-1;E>0;E-=2)for(E==6&&(E-=1);;){for(var a=0;a<2;a+=1)if(d[w][E-a]==null){var t=!1;j<u.length&&(t=(u[j]>>>_&1)==1),Q(w,E-a)&&(t=!t),d[w][E-a]=t,(_-=1)==-1&&(j+=1,_=7)}if((w+=l)<0||p<=w){w-=l,l=-l;break}}},Dt=function(u,M,l){for(var w=Ut.getRSBlocks(u,M),_=it(),j=0;j<l.length;j+=1){var Q=l[j];_.put(Q.getMode(),4),_.put(Q.getLength(),xt.getLengthInBits(Q.getMode(),u)),Q.write(_)}var E=0;for(j=0;j<w.length;j+=1)E+=w[j].dataCount;if(_.getLengthInBits()>8*E)throw"code length overflow. ("+_.getLengthInBits()+">"+8*E+")";for(_.getLengthInBits()+4<=8*E&&_.put(0,4);_.getLengthInBits()%8!=0;)_.putBit(!1);for(;!(_.getLengthInBits()>=8*E||(_.put(236,8),_.getLengthInBits()>=8*E));)_.put(17,8);return function(a,t){for(var e=0,r=0,n=0,i=new Array(t.length),o=new Array(t.length),s=0;s<t.length;s+=1){var c=t[s].dataCount,f=t[s].totalCount-c;r=Math.max(r,c),n=Math.max(n,f),i[s]=new Array(c);for(var h=0;h<i[s].length;h+=1)i[s][h]=255&a.getBuffer()[h+e];e+=c;var m=xt.getErrorCorrectPolynomial(f),N=Ct(i[s],m.getLength()-1).mod(m);for(o[s]=new Array(m.getLength()-1),h=0;h<o[s].length;h+=1){var S=h+N.getLength()-o[s].length;o[s][h]=S>=0?N.getAt(S):0}}var P=0;for(h=0;h<t.length;h+=1)P+=t[h].totalCount;var U=new Array(P),L=0;for(h=0;h<r;h+=1)for(s=0;s<t.length;s+=1)h<i[s].length&&(U[L]=i[s][h],L+=1);for(h=0;h<n;h+=1)for(s=0;s<t.length;s+=1)h<o[s].length&&(U[L]=o[s][h],L+=1);return U}(_,w)};O.addData=function(u,M){var l=null;switch(M=M||"Byte"){case"Numeric":l=qt(u);break;case"Alphanumeric":l=Bt(u);break;case"Byte":l=Yt(u);break;case"Kanji":l=It(u);break;default:throw"mode:"+M}D.push(l),z=null},O.isDark=function(u,M){if(u<0||p<=u||M<0||p<=M)throw u+","+M;return d[u][M]},O.getModuleCount=function(){return p},O.make=function(){if(v<1){for(var u=1;u<40;u++){for(var M=Ut.getRSBlocks(u,g),l=it(),w=0;w<D.length;w++){var _=D[w];l.put(_.getMode(),4),l.put(_.getLength(),xt.getLengthInBits(_.getMode(),u)),_.write(l)}var j=0;for(w=0;w<M.length;w++)j+=M[w].dataCount;if(l.getLengthInBits()<=8*j)break}v=u}X(!1,function(){for(var Q=0,E=0,a=0;a<8;a+=1){X(!0,a);var t=xt.getLostPoint(O);(a==0||Q>t)&&(Q=t,E=a)}return E}())},O.createTableTag=function(u,M){u=u||2;var l="";l+='<table style="',l+=" border-width: 0px; border-style: none;",l+=" border-collapse: collapse;",l+=" padding: 0px; margin: "+(M=M===void 0?4*u:M)+"px;",l+='">',l+="<tbody>";for(var w=0;w<O.getModuleCount();w+=1){l+="<tr>";for(var _=0;_<O.getModuleCount();_+=1)l+='<td style="',l+=" border-width: 0px; border-style: none;",l+=" border-collapse: collapse;",l+=" padding: 0px; margin: 0px;",l+=" width: "+u+"px;",l+=" height: "+u+"px;",l+=" background-color: ",l+=O.isDark(w,_)?"#000000":"#ffffff",l+=";",l+='"/>';l+="</tr>"}return(l+="</tbody>")+"</table>"},O.createSvgTag=function(u,M,l,w){var _={};typeof arguments[0]=="object"&&(u=(_=arguments[0]).cellSize,M=_.margin,l=_.alt,w=_.title),u=u||2,M=M===void 0?4*u:M,(l=typeof l=="string"?{text:l}:l||{}).text=l.text||null,l.id=l.text?l.id||"qrcode-description":null,(w=typeof w=="string"?{text:w}:w||{}).text=w.text||null,w.id=w.text?w.id||"qrcode-title":null;var j,Q,E,a,t=O.getModuleCount()*u+2*M,e="";for(a="l"+u+",0 0,"+u+" -"+u+",0 0,-"+u+"z ",e+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',e+=_.scalable?"":' width="'+t+'px" height="'+t+'px"',e+=' viewBox="0 0 '+t+" "+t+'" ',e+=' preserveAspectRatio="xMinYMin meet"',e+=w.text||l.text?' role="img" aria-labelledby="'+B([w.id,l.id].join(" ").trim())+'"':"",e+=">",e+=w.text?'<title id="'+B(w.id)+'">'+B(w.text)+"</title>":"",e+=l.text?'<description id="'+B(l.id)+'">'+B(l.text)+"</description>":"",e+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',e+='<path d="',Q=0;Q<O.getModuleCount();Q+=1)for(E=Q*u+M,j=0;j<O.getModuleCount();j+=1)O.isDark(Q,j)&&(e+="M"+(j*u+M)+","+E+a);return(e+='" stroke="transparent" fill="black"/>')+"</svg>"},O.createDataURL=function(u,M){u=u||2,M=M===void 0?4*u:M;var l=O.getModuleCount()*u+2*M,w=M,_=l-M;return Pt(l,l,function(j,Q){if(w<=j&&j<_&&w<=Q&&Q<_){var E=Math.floor((j-w)/u),a=Math.floor((Q-w)/u);return O.isDark(a,E)?0:1}return 1})},O.createImgTag=function(u,M,l){u=u||2,M=M===void 0?4*u:M;var w=O.getModuleCount()*u+2*M,_="";return _+="<img",_+=' src="',_+=O.createDataURL(u,M),_+='"',_+=' width="',_+=w,_+='"',_+=' height="',_+=w,_+='"',l&&(_+=' alt="',_+=B(l),_+='"'),_+"/>"};var B=function(u){for(var M="",l=0;l<u.length;l+=1){var w=u.charAt(l);switch(w){case"<":M+="<";break;case">":M+=">";break;case"&":M+="&";break;case'"':M+=""";break;default:M+=w}}return M};return O.createASCII=function(u,M){if((u=u||1)<2)return function(i){i=i===void 0?2:i;var o,s,c,f,h,m=1*O.getModuleCount()+2*i,N=i,S=m-i,P={"\u2588\u2588":"\u2588","\u2588 ":"\u2580"," \u2588":"\u2584"," ":" "},U={"\u2588\u2588":"\u2580","\u2588 ":"\u2580"," \u2588":" "," ":" "},L="";for(o=0;o<m;o+=2){for(c=Math.floor((o-N)/1),f=Math.floor((o+1-N)/1),s=0;s<m;s+=1)h="\u2588",N<=s&&s<S&&N<=o&&o<S&&O.isDark(c,Math.floor((s-N)/1))&&(h=" "),N<=s&&s<S&&N<=o+1&&o+1<S&&O.isDark(f,Math.floor((s-N)/1))?h+=" ":h+="\u2588",L+=i<1&&o+1>=S?U[h]:P[h];L+=`
|
|
2
|
+
`}return m%2&&i>0?L.substring(0,L.length-m-1)+Array(m+1).join("\u2580"):L.substring(0,L.length-1)}(M);u-=1,M=M===void 0?2*u:M;var l,w,_,j,Q=O.getModuleCount()*u+2*M,E=M,a=Q-M,t=Array(u+1).join("\u2588\u2588"),e=Array(u+1).join(" "),r="",n="";for(l=0;l<Q;l+=1){for(_=Math.floor((l-E)/u),n="",w=0;w<Q;w+=1)j=1,E<=w&&w<a&&E<=l&&l<a&&O.isDark(_,Math.floor((w-E)/u))&&(j=0),n+=j?t:e;for(_=0;_<u;_+=1)r+=n+`
|
|
3
|
+
`}return r.substring(0,r.length-1)},O.renderTo2dContext=function(u,M){M=M||2;for(var l=O.getModuleCount(),w=0;w<l;w++)for(var _=0;_<l;_++)u.fillStyle=O.isDark(w,_)?"black":"white",u.fillRect(w*M,_*M,M,M)},O};gt.stringToBytes=(gt.stringToBytesFuncs={default:function(x){for(var y=[],v=0;v<x.length;v+=1){var g=x.charCodeAt(v);y.push(255&g)}return y}}).default,gt.createStringToBytes=function(x,y){var v=function(){for(var d=Ht(x),p=function(){var Y=d.read();if(Y==-1)throw"eof";return Y},z=0,D={};;){var O=d.read();if(O==-1)break;var X=p(),$=p()<<8|p();D[String.fromCharCode(O<<8|X)]=$,z+=1}if(z!=y)throw z+" != "+y;return D}(),g="?".charCodeAt(0);return function(d){for(var p=[],z=0;z<d.length;z+=1){var D=d.charCodeAt(z);if(D<128)p.push(D);else{var O=v[d.charAt(z)];typeof O=="number"?(255&O)==O?p.push(O):(p.push(O>>>8),p.push(255&O)):p.push(g)}}return p}};var wt,pt,vt,R,Mt,At={L:1,M:0,Q:3,H:2},xt=(wt=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],pt=1335,vt=7973,Mt=function(x){for(var y=0;x!=0;)y+=1,x>>>=1;return y},(R={}).getBCHTypeInfo=function(x){for(var y=x<<10;Mt(y)-Mt(pt)>=0;)y^=pt<<Mt(y)-Mt(pt);return 21522^(x<<10|y)},R.getBCHTypeNumber=function(x){for(var y=x<<12;Mt(y)-Mt(vt)>=0;)y^=vt<<Mt(y)-Mt(vt);return x<<12|y},R.getPatternPosition=function(x){return wt[x-1]},R.getMaskFunction=function(x){switch(x){case 0:return function(y,v){return(y+v)%2==0};case 1:return function(y,v){return y%2==0};case 2:return function(y,v){return v%3==0};case 3:return function(y,v){return(y+v)%3==0};case 4:return function(y,v){return(Math.floor(y/2)+Math.floor(v/3))%2==0};case 5:return function(y,v){return y*v%2+y*v%3==0};case 6:return function(y,v){return(y*v%2+y*v%3)%2==0};case 7:return function(y,v){return(y*v%3+(y+v)%2)%2==0};default:throw"bad maskPattern:"+x}},R.getErrorCorrectPolynomial=function(x){for(var y=Ct([1],0),v=0;v<x;v+=1)y=y.multiply(Ct([1,_t.gexp(v)],0));return y},R.getLengthInBits=function(x,y){if(1<=y&&y<10)switch(x){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+x}else if(y<27)switch(x){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+x}else{if(!(y<41))throw"type:"+y;switch(x){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+x}}},R.getLostPoint=function(x){for(var y=x.getModuleCount(),v=0,g=0;g<y;g+=1)for(var d=0;d<y;d+=1){for(var p=0,z=x.isDark(g,d),D=-1;D<=1;D+=1)if(!(g+D<0||y<=g+D))for(var O=-1;O<=1;O+=1)d+O<0||y<=d+O||D==0&&O==0||z==x.isDark(g+D,d+O)&&(p+=1);p>5&&(v+=3+p-5)}for(g=0;g<y-1;g+=1)for(d=0;d<y-1;d+=1){var X=0;x.isDark(g,d)&&(X+=1),x.isDark(g+1,d)&&(X+=1),x.isDark(g,d+1)&&(X+=1),x.isDark(g+1,d+1)&&(X+=1),X!=0&&X!=4||(v+=3)}for(g=0;g<y;g+=1)for(d=0;d<y-6;d+=1)x.isDark(g,d)&&!x.isDark(g,d+1)&&x.isDark(g,d+2)&&x.isDark(g,d+3)&&x.isDark(g,d+4)&&!x.isDark(g,d+5)&&x.isDark(g,d+6)&&(v+=40);for(d=0;d<y;d+=1)for(g=0;g<y-6;g+=1)x.isDark(g,d)&&!x.isDark(g+1,d)&&x.isDark(g+2,d)&&x.isDark(g+3,d)&&x.isDark(g+4,d)&&!x.isDark(g+5,d)&&x.isDark(g+6,d)&&(v+=40);var $=0;for(d=0;d<y;d+=1)for(g=0;g<y;g+=1)x.isDark(g,d)&&($+=1);return v+Math.abs(100*$/y/y-50)/5*10},R),_t=function(){for(var x=new Array(256),y=new Array(256),v=0;v<8;v+=1)x[v]=1<<v;for(v=8;v<256;v+=1)x[v]=x[v-4]^x[v-5]^x[v-6]^x[v-8];for(v=0;v<255;v+=1)y[x[v]]=v;return{glog:function(g){if(g<1)throw"glog("+g+")";return y[g]},gexp:function(g){for(;g<0;)g+=255;for(;g>=256;)g-=255;return x[g]}}}();function Ct(x,y){if(x.length===void 0)throw x.length+"/"+y;var v=function(){for(var d=0;d<x.length&&x[d]==0;)d+=1;for(var p=new Array(x.length-d+y),z=0;z<x.length-d;z+=1)p[z]=x[z+d];return p}(),g={getAt:function(d){return v[d]},getLength:function(){return v.length},multiply:function(d){for(var p=new Array(g.getLength()+d.getLength()-1),z=0;z<g.getLength();z+=1)for(var D=0;D<d.getLength();D+=1)p[z+D]^=_t.gexp(_t.glog(g.getAt(z))+_t.glog(d.getAt(D)));return Ct(p,0)},mod:function(d){if(g.getLength()-d.getLength()<0)return g;for(var p=_t.glog(g.getAt(0))-_t.glog(d.getAt(0)),z=new Array(g.getLength()),D=0;D<g.getLength();D+=1)z[D]=g.getAt(D);for(D=0;D<d.getLength();D+=1)z[D]^=_t.gexp(_t.glog(d.getAt(D))+p);return Ct(z,0).mod(d)}};return g}var Ut=function(){var x=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],y=function(g,d){var p={};return p.totalCount=g,p.dataCount=d,p},v={getRSBlocks:function(g,d){var p=function(ht,ut){switch(ut){case At.L:return x[4*(ht-1)+0];case At.M:return x[4*(ht-1)+1];case At.Q:return x[4*(ht-1)+2];case At.H:return x[4*(ht-1)+3];default:return}}(g,d);if(p===void 0)throw"bad rs block @ typeNumber:"+g+"/errorCorrectionLevel:"+d;for(var z=p.length/3,D=[],O=0;O<z;O+=1)for(var X=p[3*O+0],$=p[3*O+1],Y=p[3*O+2],K=0;K<X;K+=1)D.push(y($,Y));return D}};return v}(),it=function(){var x=[],y=0,v={getBuffer:function(){return x},getAt:function(g){var d=Math.floor(g/8);return(x[d]>>>7-g%8&1)==1},put:function(g,d){for(var p=0;p<d;p+=1)v.putBit((g>>>d-p-1&1)==1)},getLengthInBits:function(){return y},putBit:function(g){var d=Math.floor(y/8);x.length<=d&&x.push(0),g&&(x[d]|=128>>>y%8),y+=1}};return v},qt=function(x){var y=x,v={getMode:function(){return 1},getLength:function(p){return y.length},write:function(p){for(var z=y,D=0;D+2<z.length;)p.put(g(z.substring(D,D+3)),10),D+=3;D<z.length&&(z.length-D==1?p.put(g(z.substring(D,D+1)),4):z.length-D==2&&p.put(g(z.substring(D,D+2)),7))}},g=function(p){for(var z=0,D=0;D<p.length;D+=1)z=10*z+d(p.charAt(D));return z},d=function(p){if("0"<=p&&p<="9")return p.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+p};return v},Bt=function(x){var y=x,v={getMode:function(){return 2},getLength:function(d){return y.length},write:function(d){for(var p=y,z=0;z+1<p.length;)d.put(45*g(p.charAt(z))+g(p.charAt(z+1)),11),z+=2;z<p.length&&d.put(g(p.charAt(z)),6)}},g=function(d){if("0"<=d&&d<="9")return d.charCodeAt(0)-"0".charCodeAt(0);if("A"<=d&&d<="Z")return d.charCodeAt(0)-"A".charCodeAt(0)+10;switch(d){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+d}};return v},Yt=function(x){var y=gt.stringToBytes(x);return{getMode:function(){return 4},getLength:function(v){return y.length},write:function(v){for(var g=0;g<y.length;g+=1)v.put(y[g],8)}}},It=function(x){var y=gt.stringToBytesFuncs.SJIS;if(!y)throw"sjis not supported.";(function(g,d){var p=y("\u53CB");if(p.length!=2||(p[0]<<8|p[1])!=38726)throw"sjis not supported."})();var v=y(x);return{getMode:function(){return 8},getLength:function(g){return~~(v.length/2)},write:function(g){for(var d=v,p=0;p+1<d.length;){var z=(255&d[p])<<8|255&d[p+1];if(33088<=z&&z<=40956)z-=33088;else{if(!(57408<=z&&z<=60351))throw"illegal char at "+(p+1)+"/"+z;z-=49472}z=192*(z>>>8&255)+(255&z),g.put(z,13),p+=2}if(p<d.length)throw"illegal char at "+(p+1)}}},Ft=function(){var x=[],y={writeByte:function(v){x.push(255&v)},writeShort:function(v){y.writeByte(v),y.writeByte(v>>>8)},writeBytes:function(v,g,d){g=g||0,d=d||v.length;for(var p=0;p<d;p+=1)y.writeByte(v[p+g])},writeString:function(v){for(var g=0;g<v.length;g+=1)y.writeByte(v.charCodeAt(g))},toByteArray:function(){return x},toString:function(){var v="";v+="[";for(var g=0;g<x.length;g+=1)g>0&&(v+=","),v+=x[g];return v+"]"}};return y},Ht=function(x){var y=x,v=0,g=0,d=0,p={read:function(){for(;d<8;){if(v>=y.length){if(d==0)return-1;throw"unexpected end of file./"+d}var D=y.charAt(v);if(v+=1,D=="=")return d=0,-1;D.match(/^\s$/)||(g=g<<6|z(D.charCodeAt(0)),d+=6)}var O=g>>>d-8&255;return d-=8,O}},z=function(D){if(65<=D&&D<=90)return D-65;if(97<=D&&D<=122)return D-97+26;if(48<=D&&D<=57)return D-48+52;if(D==43)return 62;if(D==47)return 63;throw"c:"+D};return p},Pt=function(x,y,v){for(var g=function($,Y){var K=$,ht=Y,ut=new Array($*Y),Ot={setPixel:function(u,M,l){ut[M*K+u]=l},write:function(u){u.writeString("GIF87a"),u.writeShort(K),u.writeShort(ht),u.writeByte(128),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(0),u.writeByte(255),u.writeByte(255),u.writeByte(255),u.writeString(","),u.writeShort(0),u.writeShort(0),u.writeShort(K),u.writeShort(ht),u.writeByte(0);var M=Dt(2);u.writeByte(2);for(var l=0;M.length-l>255;)u.writeByte(255),u.writeBytes(M,l,255),l+=255;u.writeByte(M.length-l),u.writeBytes(M,l,M.length-l),u.writeByte(0),u.writeString(";")}},Dt=function(u){for(var M=1<<u,l=1+(1<<u),w=u+1,_=B(),j=0;j<M;j+=1)_.add(String.fromCharCode(j));_.add(String.fromCharCode(M)),_.add(String.fromCharCode(l));var Q,E,a,t=Ft(),e=(Q=t,E=0,a=0,{write:function(o,s){if(o>>>s!=0)throw"length over";for(;E+s>=8;)Q.writeByte(255&(o<<E|a)),s-=8-E,o>>>=8-E,a=0,E=0;a|=o<<E,E+=s},flush:function(){E>0&&Q.writeByte(a)}});e.write(M,w);var r=0,n=String.fromCharCode(ut[r]);for(r+=1;r<ut.length;){var i=String.fromCharCode(ut[r]);r+=1,_.contains(n+i)?n+=i:(e.write(_.indexOf(n),w),_.size()<4095&&(_.size()==1<<w&&(w+=1),_.add(n+i)),n=i)}return e.write(_.indexOf(n),w),e.write(l,w),e.flush(),t.toByteArray()},B=function(){var u={},M=0,l={add:function(w){if(l.contains(w))throw"dup key:"+w;u[w]=M,M+=1},size:function(){return M},indexOf:function(w){return u[w]},contains:function(w){return u[w]!==void 0}};return l};return Ot}(x,y),d=0;d<y;d+=1)for(var p=0;p<x;p+=1)g.setPixel(p,d,v(p,d));var z=Ft();g.write(z);for(var D=function(){var $=0,Y=0,K=0,ht="",ut={},Ot=function(B){ht+=String.fromCharCode(Dt(63&B))},Dt=function(B){if(!(B<0)){if(B<26)return 65+B;if(B<52)return B-26+97;if(B<62)return B-52+48;if(B==62)return 43;if(B==63)return 47}throw"n:"+B};return ut.writeByte=function(B){for($=$<<8|255&B,Y+=8,K+=1;Y>=6;)Ot($>>>Y-6),Y-=6},ut.flush=function(){if(Y>0&&(Ot($<<6-Y),$=0,Y=0),K%3!=0)for(var B=3-K%3,u=0;u<B;u+=1)ht+="="},ut.toString=function(){return ht},ut}(),O=z.toByteArray(),X=0;X<O.length;X+=1)D.writeByte(O[X]);return D.flush(),"data:image/gif;base64,"+D};return gt}();kt.stringToBytesFuncs["UTF-8"]=function(gt){return function(wt){for(var pt=[],vt=0;vt<wt.length;vt++){var R=wt.charCodeAt(vt);R<128?pt.push(R):R<2048?pt.push(192|R>>6,128|63&R):R<55296||R>=57344?pt.push(224|R>>12,128|R>>6&63,128|63&R):(vt++,R=65536+((1023&R)<<10|1023&wt.charCodeAt(vt)),pt.push(240|R>>18,128|R>>12&63,128|R>>6&63,128|63&R))}return pt}(gt)},(jt=typeof(et=function(){return kt})=="function"?et.apply(Z,[]):et)===void 0||(G.exports=jt)},796:(G,Z,et)=>{et.d(Z,{default:()=>E});var jt=function(){return(jt=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)},kt=function(){for(var a=0,t=0,e=arguments.length;t<e;t++)a+=arguments[t].length;var r=Array(a),n=0;for(t=0;t<e;t++)for(var i=arguments[t],o=0,s=i.length;o<s;o++,n++)r[n]=i[o];return r},gt=function(a){return!!a&&typeof a=="object"&&!Array.isArray(a)};function wt(a){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];if(!t.length)return a;var r=t.shift();return r!==void 0&>(a)&>(r)?(a=jt({},a),Object.keys(r).forEach(function(n){var i=a[n],o=r[n];Array.isArray(i)&&Array.isArray(o)?a[n]=o:gt(i)&>(o)?a[n]=wt(Object.assign({},i),o):a[n]=o}),wt.apply(void 0,kt([a],t))):a}function pt(a,t){var e=document.createElement("a");e.download=t,e.href=a,document.body.appendChild(e),e.click(),document.body.removeChild(e)}function vt(a){var t=a.originalHeight,e=a.originalWidth,r=a.maxHiddenDots,n=a.maxHiddenAxisDots,i=a.dotSize,o={x:0,y:0},s={x:0,y:0};if(t<=0||e<=0||r<=0||i<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};var c=t/e;return o.x=Math.floor(Math.sqrt(r/c)),o.x<=0&&(o.x=1),n&&n<o.x&&(o.x=n),o.x%2==0&&o.x--,s.x=o.x*i,o.y=1+2*Math.ceil((o.x*c-1)/2),s.y=Math.round(s.x*c),(o.y*o.x>r||n&&n<o.y)&&(n&&n<o.y?(o.y=n,o.y%2==0&&o.x--):o.y-=2,s.y=o.y*i,o.x=1+2*Math.ceil((o.y/c-1)/2),s.x=Math.round(s.y/c)),{height:s.y,width:s.x,hideYDots:o.y,hideXDots:o.x}}const R={L:.07,M:.15,Q:.25,H:.3},Mt="dots",At="rounded",xt="classy",_t="classy-rounded",Ct="square",Ut="extra-rounded";var it=function(){return(it=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const qt=function(){function a(t){var e=t.context,r=t.type;this._context=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i,o=this._context;switch(this._type){case Mt:i=this._drawDot;break;case xt:i=this._drawClassy;break;case _t:i=this._drawClassyRounded;break;case At:i=this._drawRounded;break;case Ut:i=this._drawExtraRounded;break;case Ct:default:i=this._drawSquare}i.call(this,{x:t,y:e,size:r,context:o,getNeighbor:n})},a.prototype._rotateFigure=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation,s=o===void 0?0:o,c=t.draw,f=e+n/2,h=r+n/2;i.translate(f,h),s&&i.rotate(s),c(),i.closePath(),s&&i.rotate(-s),i.translate(-f,-h)},a.prototype._basicDot=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI)}}))},a.prototype._basicSquare=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.rect(-e/2,-e/2,e,e)}}))},a.prototype._basicSideRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,Math.PI/2),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},a.prototype._basicCornerRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,0),r.lineTo(e/2,e/2),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},a.prototype._basicCornerExtraRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(-e/2,e/2,e,-Math.PI/2,0),r.lineTo(-e/2,e/2),r.lineTo(-e/2,-e/2)}}))},a.prototype._basicCornersRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(0,0,e/2,-Math.PI/2,0),r.lineTo(e/2,e/2),r.lineTo(0,e/2),r.arc(0,0,e/2,Math.PI/2,Math.PI),r.lineTo(-e/2,-e/2),r.lineTo(0,-e/2)}}))},a.prototype._basicCornersExtraRounded=function(t){var e=t.size,r=t.context;this._rotateFigure(it(it({},t),{draw:function(){r.arc(-e/2,e/2,e,-Math.PI/2,0),r.arc(e/2,-e/2,e,Math.PI/2,Math.PI)}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size,i=t.context;this._basicDot({x:e,y:r,size:n,context:i,rotation:0})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size,i=t.context;this._basicSquare({x:e,y:r,size:n,context:i,rotation:0})},a.prototype._drawRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.getNeighbor,s=o?+o(-1,0):0,c=o?+o(1,0):0,f=o?+o(0,-1):0,h=o?+o(0,1):0,m=s+c+f+h;if(m!==0)if(m>2||s&&c||f&&h)this._basicSquare({x:e,y:r,size:n,context:i,rotation:0});else{if(m===2){var N=0;return s&&f?N=Math.PI/2:f&&c?N=Math.PI:c&&h&&(N=-Math.PI/2),void this._basicCornerRounded({x:e,y:r,size:n,context:i,rotation:N})}if(m===1)return N=0,f?N=Math.PI/2:c?N=Math.PI:h&&(N=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:n,context:i,rotation:N})}else this._basicDot({x:e,y:r,size:n,context:i,rotation:0})},a.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.getNeighbor,s=o?+o(-1,0):0,c=o?+o(1,0):0,f=o?+o(0,-1):0,h=o?+o(0,1):0,m=s+c+f+h;if(m!==0)if(m>2||s&&c||f&&h)this._basicSquare({x:e,y:r,size:n,context:i,rotation:0});else{if(m===2){var N=0;return s&&f?N=Math.PI/2:f&&c?N=Math.PI:c&&h&&(N=-Math.PI/2),void this._basicCornerExtraRounded({x:e,y:r,size:n,context:i,rotation:N})}if(m===1)return N=0,f?N=Math.PI/2:c?N=Math.PI:h&&(N=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:n,context:i,rotation:N})}else this._basicDot({x:e,y:r,size:n,context:i,rotation:0})},a.prototype._drawClassy=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.getNeighbor,s=o?+o(-1,0):0,c=o?+o(1,0):0,f=o?+o(0,-1):0,h=o?+o(0,1):0;s+c+f+h!==0?s||f?c||h?this._basicSquare({x:e,y:r,size:n,context:i,rotation:0}):this._basicCornerRounded({x:e,y:r,size:n,context:i,rotation:Math.PI/2}):this._basicCornerRounded({x:e,y:r,size:n,context:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:n,context:i,rotation:Math.PI/2})},a.prototype._drawClassyRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.getNeighbor,s=o?+o(-1,0):0,c=o?+o(1,0):0,f=o?+o(0,-1):0,h=o?+o(0,1):0;s+c+f+h!==0?s||f?c||h?this._basicSquare({x:e,y:r,size:n,context:i,rotation:0}):this._basicCornerExtraRounded({x:e,y:r,size:n,context:i,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:e,y:r,size:n,context:i,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:n,context:i,rotation:Math.PI/2})},a}(),Bt="square",Yt="extra-rounded";var It=function(){return(It=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const Ft=function(){function a(t){var e=t.context,r=t.type;this._context=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i,o=this._context;switch(this._type){case Bt:i=this._drawSquare;break;case Yt:i=this._drawExtraRounded;break;case"dot":default:i=this._drawDot}i.call(this,{x:t,y:e,size:r,context:o,rotation:n})},a.prototype._rotateFigure=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation,s=o===void 0?0:o,c=t.draw,f=e+n/2,h=r+n/2;i.translate(f,h),s&&i.rotate(s),c(),i.closePath(),s&&i.rotate(-s),i.translate(-f,-h)},a.prototype._basicDot=function(t){var e=t.size,r=t.context,n=e/7;this._rotateFigure(It(It({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI),r.arc(0,0,e/2-n,0,2*Math.PI)}}))},a.prototype._basicSquare=function(t){var e=t.size,r=t.context,n=e/7;this._rotateFigure(It(It({},t),{draw:function(){r.rect(-e/2,-e/2,e,e),r.rect(-e/2+n,-e/2+n,e-2*n,e-2*n)}}))},a.prototype._basicExtraRounded=function(t){var e=t.size,r=t.context,n=e/7;this._rotateFigure(It(It({},t),{draw:function(){r.arc(-n,-n,2.5*n,Math.PI,-Math.PI/2),r.lineTo(n,-3.5*n),r.arc(n,-n,2.5*n,-Math.PI/2,0),r.lineTo(3.5*n,-n),r.arc(n,n,2.5*n,0,Math.PI/2),r.lineTo(-n,3.5*n),r.arc(-n,n,2.5*n,Math.PI/2,Math.PI),r.lineTo(-3.5*n,-n),r.arc(-n,-n,1.5*n,Math.PI,-Math.PI/2),r.lineTo(n,-2.5*n),r.arc(n,-n,1.5*n,-Math.PI/2,0),r.lineTo(2.5*n,-n),r.arc(n,n,1.5*n,0,Math.PI/2),r.lineTo(-n,2.5*n),r.arc(-n,n,1.5*n,Math.PI/2,Math.PI),r.lineTo(-2.5*n,-n)}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation;this._basicDot({x:e,y:r,size:n,context:i,rotation:o})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation;this._basicSquare({x:e,y:r,size:n,context:i,rotation:o})},a.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation;this._basicExtraRounded({x:e,y:r,size:n,context:i,rotation:o})},a}(),Ht="square";var Pt=function(){return(Pt=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const x=function(){function a(t){var e=t.context,r=t.type;this._context=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i,o=this._context;switch(this._type){case Ht:i=this._drawSquare;break;case"dot":default:i=this._drawDot}i.call(this,{x:t,y:e,size:r,context:o,rotation:n})},a.prototype._rotateFigure=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation,s=o===void 0?0:o,c=t.draw,f=e+n/2,h=r+n/2;i.translate(f,h),s&&i.rotate(s),c(),i.closePath(),s&&i.rotate(-s),i.translate(-f,-h)},a.prototype._basicDot=function(t){var e=t.size,r=t.context;this._rotateFigure(Pt(Pt({},t),{draw:function(){r.arc(0,0,e/2,0,2*Math.PI)}}))},a.prototype._basicSquare=function(t){var e=t.size,r=t.context;this._rotateFigure(Pt(Pt({},t),{draw:function(){r.rect(-e/2,-e/2,e,e)}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation;this._basicDot({x:e,y:r,size:n,context:i,rotation:o})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size,i=t.context,o=t.rotation;this._basicSquare({x:e,y:r,size:n,context:i,rotation:o})},a}(),y="radial";var v=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],g=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const d=function(){function a(t){this._canvas=document.createElement("canvas"),this._canvas.width=t.width,this._canvas.height=t.height,this._options=t}return Object.defineProperty(a.prototype,"context",{get:function(){return this._canvas.getContext("2d")},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"width",{get:function(){return this._canvas.width},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this._canvas.height},enumerable:!1,configurable:!0}),a.prototype.getCanvas=function(){return this._canvas},a.prototype.clear=function(){var t=this.context;t&&t.clearRect(0,0,this._canvas.width,this._canvas.height)},a.prototype.drawQR=function(t){return e=this,r=void 0,i=function(){var o,s,c,f,h,m,N,S,P,U=this;return function(L,k){var A,C,b,q,T={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return q={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function W(tt){return function(ft){return function(I){if(A)throw new TypeError("Generator is already executing.");for(;T;)try{if(A=1,C&&(b=2&I[0]?C.return:I[0]?C.throw||((b=C.return)&&b.call(C),0):C.next)&&!(b=b.call(C,I[1])).done)return b;switch(C=0,b&&(I=[2&I[0],b.value]),I[0]){case 0:case 1:b=I;break;case 4:return T.label++,{value:I[1],done:!1};case 5:T.label++,C=I[1],I=[0];continue;case 7:I=T.ops.pop(),T.trys.pop();continue;default:if(!((b=(b=T.trys).length>0&&b[b.length-1])||I[0]!==6&&I[0]!==2)){T=0;continue}if(I[0]===3&&(!b||I[1]>b[0]&&I[1]<b[3])){T.label=I[1];break}if(I[0]===6&&T.label<b[1]){T.label=b[1],b=I;break}if(b&&T.label<b[2]){T.label=b[2],T.ops.push(I);break}b[2]&&T.ops.pop(),T.trys.pop();continue}I=k.call(L,T)}catch(ct){I=[6,ct],C=0}finally{A=b=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([tt,ft])}}}(this,function(L){switch(L.label){case 0:return o=t.getModuleCount(),s=Math.min(this._options.width,this._options.height)-2*this._options.margin,c=Math.floor(s/o),f={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(L.sent(),!this._image)return[2];h=this._options,m=h.imageOptions,N=h.qrOptions,S=m.imageSize*R[N.errorCorrectionLevel],P=Math.floor(S*o*o),f=vt({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:P,maxHiddenAxisDots:o-14,dotSize:c}),L.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(k,A){var C,b,q,T,W,tt;return!(U._options.imageOptions.hideBackgroundDots&&k>=(o-f.hideXDots)/2&&k<(o+f.hideXDots)/2&&A>=(o-f.hideYDots)/2&&A<(o+f.hideYDots)/2||((C=v[k])===null||C===void 0?void 0:C[A])||((b=v[k-o+7])===null||b===void 0?void 0:b[A])||((q=v[k])===null||q===void 0?void 0:q[A-o+7])||((T=g[k])===null||T===void 0?void 0:T[A])||((W=g[k-o+7])===null||W===void 0?void 0:W[A])||((tt=g[k])===null||tt===void 0?void 0:tt[A-o+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:f.width,height:f.height,count:o,dotSize:c}),[2]}})},new((n=void 0)||(n=Promise))(function(o,s){function c(m){try{h(i.next(m))}catch(N){s(N)}}function f(m){try{h(i.throw(m))}catch(N){s(N)}}function h(m){var N;m.done?o(m.value):(N=m.value,N instanceof n?N:new n(function(S){S(N)})).then(c,f)}h((i=i.apply(e,r||[])).next())});var e,r,n,i},a.prototype.drawBackground=function(){var t=this.context,e=this._options;if(t){if(e.backgroundOptions.gradient){var r=e.backgroundOptions.gradient,n=this._createGradient({context:t,options:r,additionalRotation:0,x:0,y:0,size:this._canvas.width>this._canvas.height?this._canvas.width:this._canvas.height});r.colorStops.forEach(function(i){var o=i.offset,s=i.color;n.addColorStop(o,s)}),t.fillStyle=n}else e.backgroundOptions.color&&(t.fillStyle=e.backgroundOptions.color);t.fillRect(0,0,this._canvas.width,this._canvas.height)}},a.prototype.drawDots=function(t){var e=this;if(!this._qr)throw"QR code is not defined";var r=this.context;if(!r)throw"QR code is not defined";var n=this._options,i=this._qr.getModuleCount();if(i>n.width||i>n.height)throw"The canvas is too small.";var o=Math.min(n.width,n.height)-2*n.margin,s=Math.floor(o/i),c=Math.floor((n.width-i*s)/2),f=Math.floor((n.height-i*s)/2),h=new qt({context:r,type:n.dotsOptions.type});r.beginPath();for(var m=function(L){for(var k=function(C){return t&&!t(L,C)?"continue":N._qr.isDark(L,C)?void h.draw(c+L*s,f+C*s,s,function(b,q){return!(L+b<0||C+q<0||L+b>=i||C+q>=i)&&!(t&&!t(L+b,C+q))&&!!e._qr&&e._qr.isDark(L+b,C+q)}):"continue"},A=0;A<i;A++)k(A)},N=this,S=0;S<i;S++)m(S);if(n.dotsOptions.gradient){var P=n.dotsOptions.gradient,U=this._createGradient({context:r,options:P,additionalRotation:0,x:c,y:f,size:i*s});P.colorStops.forEach(function(L){var k=L.offset,A=L.color;U.addColorStop(k,A)}),r.fillStyle=r.strokeStyle=U}else n.dotsOptions.color&&(r.fillStyle=r.strokeStyle=n.dotsOptions.color);r.fill("evenodd")},a.prototype.drawCorners=function(t){var e=this;if(!this._qr)throw"QR code is not defined";var r=this.context;if(!r)throw"QR code is not defined";var n=this._options,i=this._qr.getModuleCount(),o=Math.min(n.width,n.height)-2*n.margin,s=Math.floor(o/i),c=7*s,f=3*s,h=Math.floor((n.width-i*s)/2),m=Math.floor((n.height-i*s)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(N){var S,P,U,L,k,A,C,b,q,T,W=N[0],tt=N[1],ft=N[2];if(!t||t(W,tt)){var I=h+W*s*(i-7),ct=m+tt*s*(i-7);if(!((S=n.cornersSquareOptions)===null||S===void 0)&&S.type){var Tt=new Ft({context:r,type:(P=n.cornersSquareOptions)===null||P===void 0?void 0:P.type});r.beginPath(),Tt.draw(I,ct,c,ft)}else{var mt=new qt({context:r,type:n.dotsOptions.type});r.beginPath();for(var zt=function(F){for(var bt=function(dt){if(!(!((U=v[F])===null||U===void 0)&&U[dt]))return"continue";mt.draw(I+F*s,ct+dt*s,s,function(Et,Qt){var lt;return!!(!((lt=v[F+Et])===null||lt===void 0)&<[dt+Qt])})},rt=0;rt<v[F].length;rt++)bt(rt)},Nt=0;Nt<v.length;Nt++)zt(Nt)}if(!((L=n.cornersSquareOptions)===null||L===void 0)&&L.gradient){var yt=n.cornersSquareOptions.gradient,Gt=e._createGradient({context:r,options:yt,additionalRotation:ft,x:I,y:ct,size:c});yt.colorStops.forEach(function(F){var bt=F.offset,rt=F.color;Gt.addColorStop(bt,rt)}),r.fillStyle=r.strokeStyle=Gt}else!((k=n.cornersSquareOptions)===null||k===void 0)&&k.color&&(r.fillStyle=r.strokeStyle=n.cornersSquareOptions.color);if(r.fill("evenodd"),(A=n.cornersDotOptions)===null||A===void 0?void 0:A.type){var St=new x({context:r,type:(C=n.cornersDotOptions)===null||C===void 0?void 0:C.type});r.beginPath(),St.draw(I+2*s,ct+2*s,f,ft)}else{mt=new qt({context:r,type:n.dotsOptions.type}),r.beginPath();var Rt=function(F){for(var bt=function(dt){if(!(!((b=g[F])===null||b===void 0)&&b[dt]))return"continue";mt.draw(I+F*s,ct+dt*s,s,function(Et,Qt){var lt;return!!(!((lt=g[F+Et])===null||lt===void 0)&<[dt+Qt])})},rt=0;rt<g[F].length;rt++)bt(rt)};for(Nt=0;Nt<g.length;Nt++)Rt(Nt)}if(!((q=n.cornersDotOptions)===null||q===void 0)&&q.gradient){yt=n.cornersDotOptions.gradient;var Zt=e._createGradient({context:r,options:yt,additionalRotation:ft,x:I+2*s,y:ct+2*s,size:f});yt.colorStops.forEach(function(F){var bt=F.offset,rt=F.color;Zt.addColorStop(bt,rt)}),r.fillStyle=r.strokeStyle=Zt}else!((T=n.cornersDotOptions)===null||T===void 0)&&T.color&&(r.fillStyle=r.strokeStyle=n.cornersDotOptions.color);r.fill("evenodd")}})},a.prototype.loadImage=function(){var t=this;return new Promise(function(e,r){var n=t._options,i=new Image;if(!n.image)return r("Image is not defined");typeof n.imageOptions.crossOrigin=="string"&&(i.crossOrigin=n.imageOptions.crossOrigin),t._image=i,i.onload=function(){e()},i.src=n.image})},a.prototype.drawImage=function(t){var e=t.width,r=t.height,n=t.count,i=t.dotSize,o=this.context;if(!o)throw"canvasContext is not defined";if(!this._image)throw"image is not defined";var s=this._options,c=Math.floor((s.width-n*i)/2),f=Math.floor((s.height-n*i)/2),h=c+s.imageOptions.margin+(n*i-e)/2,m=f+s.imageOptions.margin+(n*i-r)/2,N=e-2*s.imageOptions.margin,S=r-2*s.imageOptions.margin;o.drawImage(this._image,h,m,N<0?0:N,S<0?0:S)},a.prototype._createGradient=function(t){var e,r=t.context,n=t.options,i=t.additionalRotation,o=t.x,s=t.y,c=t.size;if(n.type===y)e=r.createRadialGradient(o+c/2,s+c/2,0,o+c/2,s+c/2,c/2);else{var f=((n.rotation||0)+i)%(2*Math.PI),h=(f+2*Math.PI)%(2*Math.PI),m=o+c/2,N=s+c/2,S=o+c/2,P=s+c/2;h>=0&&h<=.25*Math.PI||h>1.75*Math.PI&&h<=2*Math.PI?(m-=c/2,N-=c/2*Math.tan(f),S+=c/2,P+=c/2*Math.tan(f)):h>.25*Math.PI&&h<=.75*Math.PI?(N-=c/2,m-=c/2/Math.tan(f),P+=c/2,S+=c/2/Math.tan(f)):h>.75*Math.PI&&h<=1.25*Math.PI?(m+=c/2,N+=c/2*Math.tan(f),S-=c/2,P-=c/2*Math.tan(f)):h>1.25*Math.PI&&h<=1.75*Math.PI&&(N+=c/2,m+=c/2/Math.tan(f),P-=c/2,S-=c/2/Math.tan(f)),e=r.createLinearGradient(Math.round(m),Math.round(N),Math.round(S),Math.round(P))}return e},a}();var p=function(){return(p=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const z=function(){function a(t){var e=t.svg,r=t.type;this._svg=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i;switch(this._type){case Mt:i=this._drawDot;break;case xt:i=this._drawClassy;break;case _t:i=this._drawClassyRounded;break;case At:i=this._drawRounded;break;case Ut:i=this._drawExtraRounded;break;case Ct:default:i=this._drawSquare}i.call(this,{x:t,y:e,size:r,getNeighbor:n})},a.prototype._rotateFigure=function(t){var e,r=t.x,n=t.y,i=t.size,o=t.rotation,s=o===void 0?0:o,c=r+i/2,f=n+i/2;(0,t.draw)(),(e=this._element)===null||e===void 0||e.setAttribute("transform","rotate("+180*s/Math.PI+","+c+","+f+")")},a.prototype._basicDot=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(n+r/2)),e._element.setAttribute("cy",String(i+r/2)),e._element.setAttribute("r",String(r/2))}}))},a.prototype._basicSquare=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(n)),e._element.setAttribute("y",String(i)),e._element.setAttribute("width",String(r)),e._element.setAttribute("height",String(r))}}))},a.prototype._basicSideRounded=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+n+" "+i+"v "+r+"h "+r/2+"a "+r/2+" "+r/2+", 0, 0, 0, 0 "+-r)}}))},a.prototype._basicCornerRounded=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+n+" "+i+"v "+r+"h "+r+"v "+-r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+-r/2+" "+-r/2)}}))},a.prototype._basicCornerExtraRounded=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+n+" "+i+"v "+r+"h "+r+"a "+r+" "+r+", 0, 0, 0, "+-r+" "+-r)}}))},a.prototype._basicCornersRounded=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(p(p({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("d","M "+n+" "+i+"v "+r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+r/2+" "+r/2+"h "+r/2+"v "+-r/2+"a "+r/2+" "+r/2+", 0, 0, 0, "+-r/2+" "+-r/2)}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size;this._basicDot({x:e,y:r,size:n,rotation:0})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size;this._basicSquare({x:e,y:r,size:n,rotation:0})},a.prototype._drawRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.getNeighbor,o=i?+i(-1,0):0,s=i?+i(1,0):0,c=i?+i(0,-1):0,f=i?+i(0,1):0,h=o+s+c+f;if(h!==0)if(h>2||o&&s||c&&f)this._basicSquare({x:e,y:r,size:n,rotation:0});else{if(h===2){var m=0;return o&&c?m=Math.PI/2:c&&s?m=Math.PI:s&&f&&(m=-Math.PI/2),void this._basicCornerRounded({x:e,y:r,size:n,rotation:m})}if(h===1)return m=0,c?m=Math.PI/2:s?m=Math.PI:f&&(m=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:n,rotation:m})}else this._basicDot({x:e,y:r,size:n,rotation:0})},a.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.getNeighbor,o=i?+i(-1,0):0,s=i?+i(1,0):0,c=i?+i(0,-1):0,f=i?+i(0,1):0,h=o+s+c+f;if(h!==0)if(h>2||o&&s||c&&f)this._basicSquare({x:e,y:r,size:n,rotation:0});else{if(h===2){var m=0;return o&&c?m=Math.PI/2:c&&s?m=Math.PI:s&&f&&(m=-Math.PI/2),void this._basicCornerExtraRounded({x:e,y:r,size:n,rotation:m})}if(h===1)return m=0,c?m=Math.PI/2:s?m=Math.PI:f&&(m=-Math.PI/2),void this._basicSideRounded({x:e,y:r,size:n,rotation:m})}else this._basicDot({x:e,y:r,size:n,rotation:0})},a.prototype._drawClassy=function(t){var e=t.x,r=t.y,n=t.size,i=t.getNeighbor,o=i?+i(-1,0):0,s=i?+i(1,0):0,c=i?+i(0,-1):0,f=i?+i(0,1):0;o+s+c+f!==0?o||c?s||f?this._basicSquare({x:e,y:r,size:n,rotation:0}):this._basicCornerRounded({x:e,y:r,size:n,rotation:Math.PI/2}):this._basicCornerRounded({x:e,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:n,rotation:Math.PI/2})},a.prototype._drawClassyRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.getNeighbor,o=i?+i(-1,0):0,s=i?+i(1,0):0,c=i?+i(0,-1):0,f=i?+i(0,1):0;o+s+c+f!==0?o||c?s||f?this._basicSquare({x:e,y:r,size:n,rotation:0}):this._basicCornerExtraRounded({x:e,y:r,size:n,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:e,y:r,size:n,rotation:-Math.PI/2}):this._basicCornersRounded({x:e,y:r,size:n,rotation:Math.PI/2})},a}();var D=function(){return(D=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const O=function(){function a(t){var e=t.svg,r=t.type;this._svg=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i;switch(this._type){case Bt:i=this._drawSquare;break;case Yt:i=this._drawExtraRounded;break;case"dot":default:i=this._drawDot}i.call(this,{x:t,y:e,size:r,rotation:n})},a.prototype._rotateFigure=function(t){var e,r=t.x,n=t.y,i=t.size,o=t.rotation,s=o===void 0?0:o,c=r+i/2,f=n+i/2;(0,t.draw)(),(e=this._element)===null||e===void 0||e.setAttribute("transform","rotate("+180*s/Math.PI+","+c+","+f+")")},a.prototype._basicDot=function(t){var e=this,r=t.size,n=t.x,i=t.y,o=r/7;this._rotateFigure(D(D({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+(n+r/2)+" "+i+"a "+r/2+" "+r/2+" 0 1 0 0.1 0zm 0 "+o+"a "+(r/2-o)+" "+(r/2-o)+" 0 1 1 -0.1 0Z")}}))},a.prototype._basicSquare=function(t){var e=this,r=t.size,n=t.x,i=t.y,o=r/7;this._rotateFigure(D(D({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+n+" "+i+"v "+r+"h "+r+"v "+-r+"zM "+(n+o)+" "+(i+o)+"h "+(r-2*o)+"v "+(r-2*o)+"h "+(2*o-r)+"z")}}))},a.prototype._basicExtraRounded=function(t){var e=this,r=t.size,n=t.x,i=t.y,o=r/7;this._rotateFigure(D(D({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","path"),e._element.setAttribute("clip-rule","evenodd"),e._element.setAttribute("d","M "+n+" "+(i+2.5*o)+"v "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*o+"h "+2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*o+" "+2.5*-o+"v "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*-o+"h "+-2*o+"a "+2.5*o+" "+2.5*o+", 0, 0, 0, "+2.5*-o+" "+2.5*o+"M "+(n+2.5*o)+" "+(i+o)+"h "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*o+"v "+2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*o+"h "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*-o+" "+1.5*-o+"v "+-2*o+"a "+1.5*o+" "+1.5*o+", 0, 0, 1, "+1.5*o+" "+1.5*-o)}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size,i=t.rotation;this._basicDot({x:e,y:r,size:n,rotation:i})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size,i=t.rotation;this._basicSquare({x:e,y:r,size:n,rotation:i})},a.prototype._drawExtraRounded=function(t){var e=t.x,r=t.y,n=t.size,i=t.rotation;this._basicExtraRounded({x:e,y:r,size:n,rotation:i})},a}();var X=function(){return(X=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};const $=function(){function a(t){var e=t.svg,r=t.type;this._svg=e,this._type=r}return a.prototype.draw=function(t,e,r,n){var i;switch(this._type){case Ht:i=this._drawSquare;break;case"dot":default:i=this._drawDot}i.call(this,{x:t,y:e,size:r,rotation:n})},a.prototype._rotateFigure=function(t){var e,r=t.x,n=t.y,i=t.size,o=t.rotation,s=o===void 0?0:o,c=r+i/2,f=n+i/2;(0,t.draw)(),(e=this._element)===null||e===void 0||e.setAttribute("transform","rotate("+180*s/Math.PI+","+c+","+f+")")},a.prototype._basicDot=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(X(X({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","circle"),e._element.setAttribute("cx",String(n+r/2)),e._element.setAttribute("cy",String(i+r/2)),e._element.setAttribute("r",String(r/2))}}))},a.prototype._basicSquare=function(t){var e=this,r=t.size,n=t.x,i=t.y;this._rotateFigure(X(X({},t),{draw:function(){e._element=document.createElementNS("http://www.w3.org/2000/svg","rect"),e._element.setAttribute("x",String(n)),e._element.setAttribute("y",String(i)),e._element.setAttribute("width",String(r)),e._element.setAttribute("height",String(r))}}))},a.prototype._drawDot=function(t){var e=t.x,r=t.y,n=t.size,i=t.rotation;this._basicDot({x:e,y:r,size:n,rotation:i})},a.prototype._drawSquare=function(t){var e=t.x,r=t.y,n=t.size,i=t.rotation;this._basicSquare({x:e,y:r,size:n,rotation:i})},a}();var Y=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],K=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];const ht=function(){function a(t){this._element=document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(t.width)),this._element.setAttribute("height",String(t.height)),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._options=t}return Object.defineProperty(a.prototype,"width",{get:function(){return this._options.width},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"height",{get:function(){return this._options.height},enumerable:!1,configurable:!0}),a.prototype.getElement=function(){return this._element},a.prototype.clear=function(){var t,e=this._element;this._element=e.cloneNode(!1),(t=e==null?void 0:e.parentNode)===null||t===void 0||t.replaceChild(this._element,e),this._defs=document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs)},a.prototype.drawQR=function(t){return e=this,r=void 0,i=function(){var o,s,c,f,h,m,N,S,P,U=this;return function(L,k){var A,C,b,q,T={label:0,sent:function(){if(1&b[0])throw b[1];return b[1]},trys:[],ops:[]};return q={next:W(0),throw:W(1),return:W(2)},typeof Symbol=="function"&&(q[Symbol.iterator]=function(){return this}),q;function W(tt){return function(ft){return function(I){if(A)throw new TypeError("Generator is already executing.");for(;T;)try{if(A=1,C&&(b=2&I[0]?C.return:I[0]?C.throw||((b=C.return)&&b.call(C),0):C.next)&&!(b=b.call(C,I[1])).done)return b;switch(C=0,b&&(I=[2&I[0],b.value]),I[0]){case 0:case 1:b=I;break;case 4:return T.label++,{value:I[1],done:!1};case 5:T.label++,C=I[1],I=[0];continue;case 7:I=T.ops.pop(),T.trys.pop();continue;default:if(!((b=(b=T.trys).length>0&&b[b.length-1])||I[0]!==6&&I[0]!==2)){T=0;continue}if(I[0]===3&&(!b||I[1]>b[0]&&I[1]<b[3])){T.label=I[1];break}if(I[0]===6&&T.label<b[1]){T.label=b[1],b=I;break}if(b&&T.label<b[2]){T.label=b[2],T.ops.push(I);break}b[2]&&T.ops.pop(),T.trys.pop();continue}I=k.call(L,T)}catch(ct){I=[6,ct],C=0}finally{A=b=0}if(5&I[0])throw I[1];return{value:I[0]?I[1]:void 0,done:!0}}([tt,ft])}}}(this,function(L){switch(L.label){case 0:return o=t.getModuleCount(),s=Math.min(this._options.width,this._options.height)-2*this._options.margin,c=Math.floor(s/o),f={hideXDots:0,hideYDots:0,width:0,height:0},this._qr=t,this._options.image?[4,this.loadImage()]:[3,2];case 1:if(L.sent(),!this._image)return[2];h=this._options,m=h.imageOptions,N=h.qrOptions,S=m.imageSize*R[N.errorCorrectionLevel],P=Math.floor(S*o*o),f=vt({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:P,maxHiddenAxisDots:o-14,dotSize:c}),L.label=2;case 2:return this.clear(),this.drawBackground(),this.drawDots(function(k,A){var C,b,q,T,W,tt;return!(U._options.imageOptions.hideBackgroundDots&&k>=(o-f.hideXDots)/2&&k<(o+f.hideXDots)/2&&A>=(o-f.hideYDots)/2&&A<(o+f.hideYDots)/2||((C=Y[k])===null||C===void 0?void 0:C[A])||((b=Y[k-o+7])===null||b===void 0?void 0:b[A])||((q=Y[k])===null||q===void 0?void 0:q[A-o+7])||((T=K[k])===null||T===void 0?void 0:T[A])||((W=K[k-o+7])===null||W===void 0?void 0:W[A])||((tt=K[k])===null||tt===void 0?void 0:tt[A-o+7]))}),this.drawCorners(),this._options.image&&this.drawImage({width:f.width,height:f.height,count:o,dotSize:c}),[2]}})},new((n=void 0)||(n=Promise))(function(o,s){function c(m){try{h(i.next(m))}catch(N){s(N)}}function f(m){try{h(i.throw(m))}catch(N){s(N)}}function h(m){var N;m.done?o(m.value):(N=m.value,N instanceof n?N:new n(function(S){S(N)})).then(c,f)}h((i=i.apply(e,r||[])).next())});var e,r,n,i},a.prototype.drawBackground=function(){var t,e,r=this._element,n=this._options;if(r){var i=(t=n.backgroundOptions)===null||t===void 0?void 0:t.gradient,o=(e=n.backgroundOptions)===null||e===void 0?void 0:e.color;(i||o)&&this._createColor({options:i,color:o,additionalRotation:0,x:0,y:0,height:n.height,width:n.width,name:"background-color"})}},a.prototype.drawDots=function(t){var e,r,n=this;if(!this._qr)throw"QR code is not defined";var i=this._options,o=this._qr.getModuleCount();if(o>i.width||o>i.height)throw"The canvas is too small.";var s=Math.min(i.width,i.height)-2*i.margin,c=Math.floor(s/o),f=Math.floor((i.width-o*c)/2),h=Math.floor((i.height-o*c)/2),m=new z({svg:this._element,type:i.dotsOptions.type});this._dotsClipPath=document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color"),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(e=i.dotsOptions)===null||e===void 0?void 0:e.gradient,color:i.dotsOptions.color,additionalRotation:0,x:f,y:h,height:o*c,width:o*c,name:"dot-color"});for(var N=function(U){for(var L=function(A){return t&&!t(U,A)?"continue":!((r=S._qr)===null||r===void 0)&&r.isDark(U,A)?(m.draw(f+U*c,h+A*c,c,function(C,b){return!(U+C<0||A+b<0||U+C>=o||A+b>=o)&&!(t&&!t(U+C,A+b))&&!!n._qr&&n._qr.isDark(U+C,A+b)}),void(m._element&&S._dotsClipPath&&S._dotsClipPath.appendChild(m._element))):"continue"},k=0;k<o;k++)L(k)},S=this,P=0;P<o;P++)N(P)},a.prototype.drawCorners=function(){var t=this;if(!this._qr)throw"QR code is not defined";var e=this._element,r=this._options;if(!e)throw"Element code is not defined";var n=this._qr.getModuleCount(),i=Math.min(r.width,r.height)-2*r.margin,o=Math.floor(i/n),s=7*o,c=3*o,f=Math.floor((r.width-n*o)/2),h=Math.floor((r.height-n*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(function(m){var N,S,P,U,L,k,A,C,b,q,T,W,tt=m[0],ft=m[1],I=m[2],ct=f+tt*o*(n-7),Tt=h+ft*o*(n-7),mt=t._dotsClipPath,zt=t._dotsClipPath;if((((N=r.cornersSquareOptions)===null||N===void 0?void 0:N.gradient)||((S=r.cornersSquareOptions)===null||S===void 0?void 0:S.color))&&((mt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-square-color-"+tt+"-"+ft),t._defs.appendChild(mt),t._cornersSquareClipPath=t._cornersDotClipPath=zt=mt,t._createColor({options:(P=r.cornersSquareOptions)===null||P===void 0?void 0:P.gradient,color:(U=r.cornersSquareOptions)===null||U===void 0?void 0:U.color,additionalRotation:I,x:ct,y:Tt,height:s,width:s,name:"corners-square-color-"+tt+"-"+ft})),(L=r.cornersSquareOptions)===null||L===void 0?void 0:L.type){var Nt=new O({svg:t._element,type:r.cornersSquareOptions.type});Nt.draw(ct,Tt,s,I),Nt._element&&mt&&mt.appendChild(Nt._element)}else for(var yt=new z({svg:t._element,type:r.dotsOptions.type}),Gt=function(F){for(var bt=function(dt){if(!(!((k=Y[F])===null||k===void 0)&&k[dt]))return"continue";yt.draw(ct+F*o,Tt+dt*o,o,function(Et,Qt){var lt;return!!(!((lt=Y[F+Et])===null||lt===void 0)&<[dt+Qt])}),yt._element&&mt&&mt.appendChild(yt._element)},rt=0;rt<Y[F].length;rt++)bt(rt)},St=0;St<Y.length;St++)Gt(St);if((((A=r.cornersDotOptions)===null||A===void 0?void 0:A.gradient)||((C=r.cornersDotOptions)===null||C===void 0?void 0:C.color))&&((zt=document.createElementNS("http://www.w3.org/2000/svg","clipPath")).setAttribute("id","clip-path-corners-dot-color-"+tt+"-"+ft),t._defs.appendChild(zt),t._cornersDotClipPath=zt,t._createColor({options:(b=r.cornersDotOptions)===null||b===void 0?void 0:b.gradient,color:(q=r.cornersDotOptions)===null||q===void 0?void 0:q.color,additionalRotation:I,x:ct+2*o,y:Tt+2*o,height:c,width:c,name:"corners-dot-color-"+tt+"-"+ft})),(T=r.cornersDotOptions)===null||T===void 0?void 0:T.type){var Rt=new $({svg:t._element,type:r.cornersDotOptions.type});Rt.draw(ct+2*o,Tt+2*o,c,I),Rt._element&&zt&&zt.appendChild(Rt._element)}else{yt=new z({svg:t._element,type:r.dotsOptions.type});var Zt=function(F){for(var bt=function(dt){if(!(!((W=K[F])===null||W===void 0)&&W[dt]))return"continue";yt.draw(ct+F*o,Tt+dt*o,o,function(Et,Qt){var lt;return!!(!((lt=K[F+Et])===null||lt===void 0)&<[dt+Qt])}),yt._element&&zt&&zt.appendChild(yt._element)},rt=0;rt<K[F].length;rt++)bt(rt)};for(St=0;St<K.length;St++)Zt(St)}})},a.prototype.loadImage=function(){var t=this;return new Promise(function(e,r){var n=t._options,i=new Image;if(!n.image)return r("Image is not defined");typeof n.imageOptions.crossOrigin=="string"&&(i.crossOrigin=n.imageOptions.crossOrigin),t._image=i,i.onload=function(){e()},i.src=n.image})},a.prototype.drawImage=function(t){var e=t.width,r=t.height,n=t.count,i=t.dotSize,o=this._options,s=Math.floor((o.width-n*i)/2),c=Math.floor((o.height-n*i)/2),f=s+o.imageOptions.margin+(n*i-e)/2,h=c+o.imageOptions.margin+(n*i-r)/2,m=e-2*o.imageOptions.margin,N=r-2*o.imageOptions.margin,S=document.createElementNS("http://www.w3.org/2000/svg","image");S.setAttribute("href",o.image||""),S.setAttribute("x",String(f)),S.setAttribute("y",String(h)),S.setAttribute("width",m+"px"),S.setAttribute("height",N+"px"),this._element.appendChild(S)},a.prototype._createColor=function(t){var e=t.options,r=t.color,n=t.additionalRotation,i=t.x,o=t.y,s=t.height,c=t.width,f=t.name,h=c>s?c:s,m=document.createElementNS("http://www.w3.org/2000/svg","rect");if(m.setAttribute("x",String(i)),m.setAttribute("y",String(o)),m.setAttribute("height",String(s)),m.setAttribute("width",String(c)),m.setAttribute("clip-path","url('#clip-path-"+f+"')"),e){var N;if(e.type===y)(N=document.createElementNS("http://www.w3.org/2000/svg","radialGradient")).setAttribute("id",f),N.setAttribute("gradientUnits","userSpaceOnUse"),N.setAttribute("fx",String(i+c/2)),N.setAttribute("fy",String(o+s/2)),N.setAttribute("cx",String(i+c/2)),N.setAttribute("cy",String(o+s/2)),N.setAttribute("r",String(h/2));else{var S=((e.rotation||0)+n)%(2*Math.PI),P=(S+2*Math.PI)%(2*Math.PI),U=i+c/2,L=o+s/2,k=i+c/2,A=o+s/2;P>=0&&P<=.25*Math.PI||P>1.75*Math.PI&&P<=2*Math.PI?(U-=c/2,L-=s/2*Math.tan(S),k+=c/2,A+=s/2*Math.tan(S)):P>.25*Math.PI&&P<=.75*Math.PI?(L-=s/2,U-=c/2/Math.tan(S),A+=s/2,k+=c/2/Math.tan(S)):P>.75*Math.PI&&P<=1.25*Math.PI?(U+=c/2,L+=s/2*Math.tan(S),k-=c/2,A-=s/2*Math.tan(S)):P>1.25*Math.PI&&P<=1.75*Math.PI&&(L+=s/2,U+=c/2/Math.tan(S),A-=s/2,k-=c/2/Math.tan(S)),(N=document.createElementNS("http://www.w3.org/2000/svg","linearGradient")).setAttribute("id",f),N.setAttribute("gradientUnits","userSpaceOnUse"),N.setAttribute("x1",String(Math.round(U))),N.setAttribute("y1",String(Math.round(L))),N.setAttribute("x2",String(Math.round(k))),N.setAttribute("y2",String(Math.round(A)))}e.colorStops.forEach(function(C){var b=C.offset,q=C.color,T=document.createElementNS("http://www.w3.org/2000/svg","stop");T.setAttribute("offset",100*b+"%"),T.setAttribute("stop-color",q),N.appendChild(T)}),m.setAttribute("fill","url('#"+f+"')"),this._defs.appendChild(N)}else r&&m.setAttribute("fill",r);this._element.appendChild(m)},a}(),ut="canvas";for(var Ot={},Dt=0;Dt<=40;Dt++)Ot[Dt]=Dt;const B={type:ut,width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:Ot[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000"},backgroundOptions:{color:"#fff"}};var u=function(){return(u=Object.assign||function(a){for(var t,e=1,r=arguments.length;e<r;e++)for(var n in t=arguments[e])Object.prototype.hasOwnProperty.call(t,n)&&(a[n]=t[n]);return a}).apply(this,arguments)};function M(a){var t=u({},a);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(function(e){return u(u({},e),{offset:Number(e.offset)})}),t}function l(a){var t=u({},a);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=u(u({},t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=u({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=M(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=u({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=M(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=u({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=M(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=u({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=M(t.backgroundOptions.gradient))),t}var w=et(192),_=et.n(w),j=function(a,t,e,r){return new(e||(e=Promise))(function(n,i){function o(f){try{c(r.next(f))}catch(h){i(h)}}function s(f){try{c(r.throw(f))}catch(h){i(h)}}function c(f){var h;f.done?n(f.value):(h=f.value,h instanceof e?h:new e(function(m){m(h)})).then(o,s)}c((r=r.apply(a,t||[])).next())})},Q=function(a,t){var e,r,n,i,o={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(c){return function(f){return function(h){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(n=2&h[0]?r.return:h[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,h[1])).done)return n;switch(r=0,n&&(h=[2&h[0],n.value]),h[0]){case 0:case 1:n=h;break;case 4:return o.label++,{value:h[1],done:!1};case 5:o.label++,r=h[1],h=[0];continue;case 7:h=o.ops.pop(),o.trys.pop();continue;default:if(!((n=(n=o.trys).length>0&&n[n.length-1])||h[0]!==6&&h[0]!==2)){o=0;continue}if(h[0]===3&&(!n||h[1]>n[0]&&h[1]<n[3])){o.label=h[1];break}if(h[0]===6&&o.label<n[1]){o.label=n[1],n=h;break}if(n&&o.label<n[2]){o.label=n[2],o.ops.push(h);break}n[2]&&o.ops.pop(),o.trys.pop();continue}h=t.call(a,o)}catch(m){h=[6,m],r=0}finally{e=n=0}if(5&h[0])throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}([c,f])}}};const E=function(){function a(t){this._options=t?l(wt(B,t)):B,this.update()}return a._clearContainer=function(t){t&&(t.innerHTML="")},a.prototype._getQRStylingElement=function(t){return t===void 0&&(t="png"),j(this,void 0,void 0,function(){var e,r,n;return Q(this,function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return t.toLowerCase()!=="svg"?[3,2]:(r=void 0,e=void 0,this._svg&&this._svgDrawingPromise?(e=this._svg,r=this._svgDrawingPromise):(e=new ht(this._options),r=e.drawQR(this._qr)),[4,r]);case 1:return i.sent(),[2,e];case 2:return r=void 0,n=void 0,this._canvas&&this._canvasDrawingPromise?(n=this._canvas,r=this._canvasDrawingPromise):(n=new d(this._options),r=n.drawQR(this._qr)),[4,r];case 3:return i.sent(),[2,n]}})})},a.prototype.update=function(t){a._clearContainer(this._container),this._options=t?l(wt(this._options,t)):this._options,this._options.data&&(this._qr=_()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===ut?(this._canvas=new d(this._options),this._canvasDrawingPromise=this._canvas.drawQR(this._qr),this._svgDrawingPromise=void 0,this._svg=void 0):(this._svg=new ht(this._options),this._svgDrawingPromise=this._svg.drawQR(this._qr),this._canvasDrawingPromise=void 0,this._canvas=void 0),this.append(this._container))},a.prototype.append=function(t){if(t){if(typeof t.appendChild!="function")throw"Container should be a single DOM node";this._options.type===ut?this._canvas&&t.appendChild(this._canvas.getCanvas()):this._svg&&t.appendChild(this._svg.getElement()),this._container=t}},a.prototype.getRawData=function(t){return t===void 0&&(t="png"),j(this,void 0,void 0,function(){var e,r,n;return Q(this,function(i){switch(i.label){case 0:if(!this._qr)throw"QR code is empty";return[4,this._getQRStylingElement(t)];case 1:return e=i.sent(),t.toLowerCase()==="svg"?(r=new XMLSerializer,n=r.serializeToString(e.getElement()),[2,new Blob([`<?xml version="1.0" standalone="no"?>\r
|
|
4
|
+
`+n],{type:"image/svg+xml"})]):[2,new Promise(function(o){return e.getCanvas().toBlob(o,"image/"+t,1)})]}})})},a.prototype.download=function(t){return j(this,void 0,void 0,function(){var e,r,n,i,o;return Q(this,function(s){switch(s.label){case 0:if(!this._qr)throw"QR code is empty";return e="png",r="qr",typeof t=="string"?(e=t,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof t=="object"&&t!==null&&(t.name&&(r=t.name),t.extension&&(e=t.extension)),[4,this._getQRStylingElement(e)];case 1:return n=s.sent(),e.toLowerCase()==="svg"?(i=new XMLSerializer,o=`<?xml version="1.0" standalone="no"?>\r
|
|
5
|
+
`+(o=i.serializeToString(n.getElement())),pt("data:image/svg+xml;charset=utf-8,"+encodeURIComponent(o),r+".svg")):pt(n.getCanvas().toDataURL("image/"+e),r+"."+e),[2]}})})},a}()}},st={};function ot(G){if(st[G])return st[G].exports;var Z=st[G]={exports:{}};return at[G](Z,Z.exports,ot),Z.exports}return ot.n=G=>{var Z=G&&G.__esModule?()=>G.default:()=>G;return ot.d(Z,{a:Z}),Z},ot.d=(G,Z)=>{for(var et in Z)ot.o(Z,et)&&!ot.o(G,et)&&Object.defineProperty(G,et,{enumerable:!0,get:Z[et]})},ot.o=(G,Z)=>Object.prototype.hasOwnProperty.call(G,Z),ot(796)})().default})})(Xt);var $t=Jt(Xt.exports),Kt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEwMCAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgICA8ZyBjbGlwLXBhdGg9InVybCgjY2xpcDBfNDYzXzEwNTE5KSI+CiAgICAgICAgPHBhdGggZD0iTTg2LjIyNzEgMEgxMi41ODk2QzkuMjU1MTYgMC4wMTQ3NTA3IDYuMDYxNTEgMS4zNDU4OSAzLjcwMzcgMy43MDM3QzEuMzQ1ODkgNi4wNjE1MSAwLjAxNDc1MDcgOS4yNTUxNiAwIDEyLjU4OTZMMCA4Ni4yODMyQzAuMDE0NzUwNyA4OS42MTc2IDEuMzQ1ODkgOTIuODExMiAzLjcwMzcgOTUuMTY5QzYuMDYxNTEgOTcuNTI2OCA5LjI1NTE2IDk4Ljg1OCAxMi41ODk2IDk4Ljg3MjdINDIuMTEwNlYxMTguOTMxTDY4LjA2ODQgOTguODcyN0g4Ni4yMjcxQzg5LjU2MTUgOTguODU4IDkyLjc1NTEgOTcuNTI2OCA5NS4xMTMgOTUuMTY5Qzk3LjQ3MDggOTIuODExMiA5OC44MDE5IDg5LjYxNzYgOTguODE2NyA4Ni4yODMyVjEyLjU4OTZDOTguODExNyA5LjI1MjEzIDk3LjQ4MzcgNi4wNTI4IDk1LjEyMzggMy42OTI4NkM5Mi43NjM5IDEuMzMyOTMgODkuNTY0NSAwLjAwNDk0MzE1IDg2LjIyNzEgMFYwWk04NS41MDQ1IDc2LjI2MDFDODUuNTA4NiA3Ny40NjA1IDg1LjI3NTIgNzguNjQ5OSA4NC44MTc3IDc5Ljc1OTdDODQuMzYwMiA4MC44Njk2IDgzLjY4NzcgODEuODc3OSA4Mi44Mzg5IDgyLjcyNjhDODEuOTkgODMuNTc1NiA4MC45ODE3IDg0LjI0ODEgNzkuODcxOCA4NC43MDU2Qzc4Ljc2MiA4NS4xNjMxIDc3LjU3MjYgODUuMzk2NSA3Ni4zNzIyIDg1LjM5MjRIMjIuNTYyOEMyMS4zNjE5IDg1LjM5NzMgMjAuMTcxOCA4NS4xNjQ1IDE5LjA2MTMgODQuNzA3NEMxNy45NTA3IDg0LjI1MDMgMTYuOTQxNiA4My41Nzc5IDE2LjA5MjEgODIuNzI5QzE1LjI0MjYgODEuODgwMSAxNC41Njk1IDgwLjg3MTQgMTQuMTExNyA3OS43NjEyQzEzLjY1MzggNzguNjUwOSAxMy40MjAyIDc3LjQ2MSAxMy40MjQzIDc2LjI2MDFWMjIuNjE4OUMxMy40MjAyIDIxLjQxNzYgMTMuNjUzOCAyMC4yMjc1IDE0LjExMTYgMTkuMTE2OUMxNC41Njk0IDE4LjAwNjMgMTUuMjQyMyAxNi45OTcyIDE2LjA5MTcgMTYuMTQ3OEMxNi45NDEyIDE1LjI5ODQgMTcuOTUwMiAxNC42MjU0IDE5LjA2MDggMTQuMTY3NkMyMC4xNzE0IDEzLjcwOTggMjEuMzYxNiAxMy40NzYzIDIyLjU2MjggMTMuNDgwNEg3Ni4yMDRDNzcuNDA1NSAxMy40NzU0IDc4LjU5NiAxMy43MDg0IDc5LjcwNyAxNC4xNjU5QzgwLjgxOCAxNC42MjM0IDgxLjgyNzQgMTUuMjk2NCA4Mi42NzY5IDE2LjE0NkM4My41MjY1IDE2Ljk5NTUgODQuMTk5NSAxOC4wMDQ5IDg0LjY1NyAxOS4xMTU5Qzg1LjExNDUgMjAuMjI2OSA4NS4zNDc1IDIxLjQxNzQgODUuMzQyNSAyMi42MTg5Vjc2LjI2MDFIODUuNTA0NVoiIGZpbGw9IiM2NzM4RTEiLz4KICAgICAgICA8cGF0aCBkPSJNNjUuNzMyNiAyMy42MTU2SDMzLjA5MDZDMzEuODM5MSAyMy42MTQ4IDMwLjU5OTcgMjMuODYwOCAyOS40NDMzIDI0LjMzOTZDMjguMjg2OSAyNC44MTgzIDI3LjIzNjMgMjUuNTIwNCAyNi4zNTE2IDI2LjQwNTdDMjUuNDY2OSAyNy4yOTEgMjQuNzY1NSAyOC4zNDIgMjQuMjg3NSAyOS40OTg3QzIzLjgwOTUgMzAuNjU1NCAyMy41NjQzIDMxLjg5NSAyMy41NjU5IDMzLjE0NjZWNjUuNzg4NUMyMy41NjUxIDY3LjAzOTYgMjMuODEwOSA2OC4yNzg1IDI0LjI4OTMgNjkuNDM0NEMyNC43Njc3IDcwLjU5MDQgMjUuNDY5MiA3MS42NDA3IDI2LjM1MzggNzIuNTI1M0MyNy4yMzg0IDczLjQxIDI4LjI4ODggNzQuMTExNSAyOS40NDQ3IDc0LjU4OTlDMzAuNjAwNyA3NS4wNjgzIDMxLjgzOTYgNzUuMzE0MSAzMy4wOTA2IDc1LjMxMzJINjUuNzMyNkM2OC4yNTg3IDc1LjMxMzIgNzAuNjgxNCA3NC4zMDk3IDcyLjQ2NzYgNzIuNTIzNUM3NC4yNTM4IDcwLjczNzMgNzUuMjU3MyA2OC4zMTQ2IDc1LjI1NzMgNjUuNzg4NVYzMy4xNDY2Qzc1LjIxMTEgMzAuNjM0MyA3NC4xOTI5IDI4LjIzNzggNzIuNDE2OCAyNi40NjA1QzcwLjY0MDYgMjQuNjgzMyA2OC4yNDQ4IDIzLjY2MzUgNjUuNzMyNiAyMy42MTU2VjIzLjYxNTZaTTY0Ljg0MTggNTkuMjE2NUM2NC44MTQ4IDYwLjcxMTYgNjQuMjEwMSA2Mi4xMzgyIDYzLjE1NDUgNjMuMTk3M0M2Mi4wOTg5IDY0LjI1NjQgNjAuNjc0MyA2NC44NjU4IDU5LjE3OTMgNjQuODk3N0gzOS42NjI2QzM4LjE2MDkgNjQuODgxNSAzNi43MjUzIDY0LjI3NzggMzUuNjYzMyA2My4yMTU4QzM0LjYwMTQgNjIuMTUzOSAzMy45OTc3IDYwLjcxODIgMzMuOTgxNSA1OS4yMTY1VjM5LjY2MjVDMzQuMDA1NSAzOC4xNjMzIDM0LjYxMTggMzYuNzMyMiAzNS42NzIxIDM1LjY3MTlDMzYuNzMyMyAzNC42MTE2IDM4LjE2MzQgMzQuMDA1NCAzOS42NjI2IDMzLjk4MTNINTkuMjE2N0M2MC43MTg0IDMzLjk5NzUgNjIuMTU0IDM0LjYwMTMgNjMuMjE2IDM1LjY2MzJDNjQuMjc3OSAzNi43MjUxIDY0Ljg4MTcgMzguMTYwOCA2NC44OTc5IDM5LjY2MjVMNjQuODQxOCA1OS4yMTY1VjU5LjIxNjVaIiBmaWxsPSIjNjczOEUxIi8+CiAgICAgICAgPHBhdGggZD0iTTU1LjgxNTIgNTMuNTI5MUM1NS44MTE5IDU0LjE0OTMgNTUuNTY0MSA1NC43NDMxIDU1LjEyNTYgNTUuMTgxN0M1NC42ODcgNTUuNjIwMiA1NC4wOTMyIDU1Ljg2ODEgNTMuNDczIDU1Ljg3MTNINDUuMjg3NkM0NC42Njc0IDU1Ljg2ODEgNDQuMDczNSA1NS42MjAyIDQzLjYzNSA1NS4xODE3QzQzLjE5NjQgNTQuNzQzMSA0Mi45NDg2IDU0LjE0OTMgNDIuOTQ1MyA1My41MjkxVjQ1LjM5OTdDNDIuOTQ4NiA0NC43Nzk1IDQzLjE5NjQgNDQuMTg1NyA0My42MzUgNDMuNzQ3MUM0NC4wNzM1IDQzLjMwODYgNDQuNjY3NCA0My4wNjA4IDQ1LjI4NzYgNDMuMDU3NUg1My40NzNDNTQuMDkzMiA0My4wNjA4IDU0LjY4NyA0My4zMDg2IDU1LjEyNTYgNDMuNzQ3MUM1NS41NjQxIDQ0LjE4NTcgNTUuODExOSA0NC43Nzk1IDU1LjgxNTIgNDUuMzk5N1Y1My41MjkxWiIgZmlsbD0iIzY3MzhFMSIvPgogICAgPC9nPgo8L3N2Zz4K";const te=H.defineComponent({__name:"View",props:{clazz:null,width:null,height:null,bgColor:null,dotsColor:null,value:null},setup(J){var G,Z,et,jt;const V=J,at=H.ref({width:V.width,height:V.height,type:"svg",data:V.value,image:Kt,qrOptions:{typeNumber:0,mode:"Byte",errorCorrectionLevel:"H"},backgroundOptions:{color:(G=V.bgColor)!=null?G:"white"},imageOptions:{hideBackgroundDots:!0,imageSize:.4,margin:4,crossOrigin:"anonymous"},dotsOptions:{color:(Z=V.dotsColor)!=null?Z:"black",type:"square"},cornersSquareOptions:{color:(et=V.dotsColor)!=null?et:"black",type:"square"},cornersDotOptions:{color:(jt=V.dotsColor)!=null?jt:"black",type:"square"}}),st=new $t(at.value),ot=H.ref();return H.onMounted(()=>{st.append(ot.value)}),H.watch(()=>V.value,kt=>{at.value.data=kt,st.update(at.value)}),(kt,gt)=>(H.openBlock(),H.createElementBlock("div",{class:H.normalizeClass(V.clazz),ref_key:"qrCode",ref:ot},null,2))}});class ee{constructor(V){Vt(this,"internalState");Vt(this,"listeners",[]);this.internalState=V}get state(){return this.internalState}changeState(V){this.internalState=V,this.listeners.length>0&&this.listeners.forEach(at=>at(this.state))}subscribe(V){this.listeners.push(V)}unsubscribe(V){const at=this.listeners.indexOf(V);at>-1&&this.listeners.splice(at,1)}}nt.Bloc=ee,nt.QRCode=te,nt.dateToString=Wt,nt.useBlocState=Lt,Object.defineProperties(nt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,53 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@agendize/vue-tools",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "Agendize tools",
|
|
5
|
-
"private": false,
|
|
6
|
-
"keywords": [
|
|
7
|
-
"agendize",
|
|
8
|
-
"tools"
|
|
9
|
-
],
|
|
10
|
-
"homepage": "https://github.com/agendize/vue-tools",
|
|
11
|
-
"bugs": {
|
|
12
|
-
"url": "https://github.com/agendize/vue-tools/issues"
|
|
13
|
-
},
|
|
14
|
-
"repository": {
|
|
15
|
-
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/agendize/vue-tools.git"
|
|
17
|
-
},
|
|
18
|
-
"license": "Apache-2.0",
|
|
19
|
-
"author": "David Tant",
|
|
20
|
-
"main": "./dist/vue-tools.umd.js",
|
|
21
|
-
"module": "./dist/vue-tools.es.js",
|
|
22
|
-
"unpkg": "./dist/vue-tools.min.js",
|
|
23
|
-
"types": "./dist/index.d.ts",
|
|
24
|
-
"files": [
|
|
25
|
-
"dist/"
|
|
26
|
-
],
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"import": "./dist/vue-tools.es.js",
|
|
30
|
-
"require": "./dist/vue-tools.umd.js"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"scripts": {
|
|
34
|
-
"dev": "vite",
|
|
35
|
-
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
36
|
-
"build-quick": "vite build",
|
|
37
|
-
"preview": "vite preview",
|
|
38
|
-
"test": "jest",
|
|
39
|
-
"publish-public": "npm publish --access=public",
|
|
40
|
-
"publish-beta": "npm publish --access=public --tag=beta"
|
|
41
|
-
},
|
|
42
|
-
"dependencies": {
|
|
43
|
-
"vue": "^3.2.37"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
"@
|
|
48
|
-
"@
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
|
|
53
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@agendize/vue-tools",
|
|
3
|
+
"version": "0.0.3",
|
|
4
|
+
"description": "Agendize tools",
|
|
5
|
+
"private": false,
|
|
6
|
+
"keywords": [
|
|
7
|
+
"agendize",
|
|
8
|
+
"tools"
|
|
9
|
+
],
|
|
10
|
+
"homepage": "https://github.com/agendize/vue-tools",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/agendize/vue-tools/issues"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/agendize/vue-tools.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"author": "David Tant",
|
|
20
|
+
"main": "./dist/vue-tools.umd.js",
|
|
21
|
+
"module": "./dist/vue-tools.es.js",
|
|
22
|
+
"unpkg": "./dist/vue-tools.min.js",
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"files": [
|
|
25
|
+
"dist/"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/vue-tools.es.js",
|
|
30
|
+
"require": "./dist/vue-tools.umd.js"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"scripts": {
|
|
34
|
+
"dev": "vite",
|
|
35
|
+
"build": "vite build && vue-tsc --emitDeclarationOnly",
|
|
36
|
+
"build-quick": "vite build",
|
|
37
|
+
"preview": "vite preview",
|
|
38
|
+
"test": "jest",
|
|
39
|
+
"publish-public": "npm publish --access=public",
|
|
40
|
+
"publish-beta": "npm publish --access=public --tag=beta"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"vue": "^3.2.37",
|
|
44
|
+
"qr-code-styling":"^1.5.0"
|
|
45
|
+
},
|
|
46
|
+
"devDependencies": {
|
|
47
|
+
"@intlify/vite-plugin-vue-i18n": "^3.4.0",
|
|
48
|
+
"@types/node": "^17.0.45",
|
|
49
|
+
"@vitejs/plugin-vue": "^2.3.3",
|
|
50
|
+
"typescript": "4.7.4",
|
|
51
|
+
"vite": "^2.9.14",
|
|
52
|
+
"vue-tsc": "^0.29.8"
|
|
53
|
+
}
|
|
54
|
+
}
|