123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7cc1079b"],{"0880":function(t,e,r){"use strict";(function(t){function n(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const r=document.implementation.createHTMLDocument(),n=r.createElement("base"),o=r.createElement("a");return r.head.appendChild(n),r.body.appendChild(o),e&&(n.href=e),o.href=t,o.href}r.d(e,"g",(function(){return n})),r.d(e,"i",(function(){return o})),r.d(e,"h",(function(){return i})),r.d(e,"d",(function(){return l})),r.d(e,"e",(function(){return s})),r.d(e,"b",(function(){return h})),r.d(e,"a",(function(){return g})),r.d(e,"c",(function(){return d})),r.d(e,"f",(function(){return w}));const o=(()=>{let t=0;const e=()=>("0000"+(Math.random()*36**4<<0).toString(36)).slice(-4);return()=>(t+=1,`u${e()}${t}`)})();function i(t){const e=[];for(let r=0,n=t.length;r<n;r++)e.push(t[r]);return e}function a(t,e){const r=t.ownerDocument.defaultView||window,n=r.getComputedStyle(t).getPropertyValue(e);return n?parseFloat(n.replace("px","")):0}function u(t){const e=a(t,"border-left-width"),r=a(t,"border-right-width");return t.clientWidth+e+r}function c(t){const e=a(t,"border-top-width"),r=a(t,"border-bottom-width");return t.clientHeight+e+r}function l(t,e={}){const r=e.width||u(t),n=e.height||c(t);return{width:r,height:n}}function s(){let e,r;try{r=t}catch(o){}const n=r&&Object({VUE_APP_BASE_API:"api",NODE_ENV:"production",BASE_URL:""})?Object({VUE_APP_BASE_API:"api",NODE_ENV:"production",BASE_URL:""}).devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const f=16384;function h(t){(t.width>f||t.height>f)&&(t.width>f&&t.height>f?t.width>t.height?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f):t.width>f?(t.height*=f/t.width,t.width=f):(t.width*=f/t.height,t.height=f))}function g(t,e={}){return t.toBlob?new Promise(r=>{t.toBlob(r,e.type?e.type:"image/png",e.quality?e.quality:1)}):new Promise(r=>{const n=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),o=n.length,i=new Uint8Array(o);for(let t=0;t<o;t+=1)i[t]=n.charCodeAt(t);r(new Blob([i],{type:e.type?e.type:"image/png"}))})}function d(t){return new Promise((e,r)=>{const n=new Image;n.onload=()=>e(n),n.onerror=r,n.crossOrigin="anonymous",n.decoding="sync",n.src=t})}async function v(t){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(t=>"data:image/svg+xml;charset=utf-8,"+t)}async function w(t,e,r){const n="http://www.w3.org/2000/svg",o=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return o.setAttribute("width",""+e),o.setAttribute("height",""+r),o.setAttribute("viewBox",`0 0 ${e} ${r}`),i.setAttribute("width","100%"),i.setAttribute("height","100%"),i.setAttribute("x","0"),i.setAttribute("y","0"),i.setAttribute("externalResourcesRequired","true"),o.appendChild(i),i.appendChild(t),v(o)}}).call(this,r("4362"))},e0d33:function(t,e,r){var n,o,i,a=function(){var t=function(t,e){var n=236,i=17,g=t,d=r[e],v=null,w=0,y=null,m=[],b={},C=function(t,e){w=4*g+17,v=function(t){for(var e=new Array(t),r=0;r<t;r+=1){e[r]=new Array(t);for(var n=0;n<t;n+=1)e[r][n]=null}return e}(w),A(0,0),A(w-7,0),A(0,w-7),S(),E(),M(t,e),g>=7&&T(t),null==y&&(y=D(g,d,m)),B(y,e)},A=function(t,e){for(var r=-1;r<=7;r+=1)if(!(t+r<=-1||w<=t+r))for(var n=-1;n<=7;n+=1)e+n<=-1||w<=e+n||(v[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},x=function(){for(var t=0,e=0,r=0;r<8;r+=1){C(!0,r);var n=o.getLostPoint(b);(0==r||t>n)&&(t=n,e=r)}return e},E=function(){for(var t=8;t<w-8;t+=1)null==v[t][6]&&(v[t][6]=t%2==0);for(var e=8;e<w-8;e+=1)null==v[6][e]&&(v[6][e]=e%2==0)},S=function(){for(var t=o.getPatternPosition(g),e=0;e<t.length;e+=1)for(var r=0;r<t.length;r+=1){var n=t[e],i=t[r];if(null==v[n][i])for(var a=-2;a<=2;a+=1)for(var u=-2;u<=2;u+=1)v[n+a][i+u]=-2==a||2==a||-2==u||2==u||0==a&&0==u}},T=function(t){for(var e=o.getBCHTypeNumber(g),r=0;r<18;r+=1){var n=!t&&1==(e>>r&1);v[Math.floor(r/3)][r%3+w-8-3]=n}for(r=0;r<18;r+=1){n=!t&&1==(e>>r&1);v[r%3+w-8-3][Math.floor(r/3)]=n}},M=function(t,e){for(var r=d<<3|e,n=o.getBCHTypeInfo(r),i=0;i<15;i+=1){var a=!t&&1==(n>>i&1);i<6?v[i][8]=a:i<8?v[i+1][8]=a:v[w-15+i][8]=a}for(i=0;i<15;i+=1){a=!t&&1==(n>>i&1);i<8?v[8][w-i-1]=a:i<9?v[8][15-i-1+1]=a:v[8][15-i-1]=a}v[w-8][8]=!t},B=function(t,e){for(var r=-1,n=w-1,i=7,a=0,u=o.getMaskFunction(e),c=w-1;c>0;c-=2){6==c&&(c-=1);while(1){for(var l=0;l<2;l+=1)if(null==v[n][c-l]){var s=!1;a<t.length&&(s=1==(t[a]>>>i&1));var f=u(n,c-l);f&&(s=!s),v[n][c-l]=s,i-=1,-1==i&&(a+=1,i=7)}if(n+=r,n<0||w<=n){n-=r,r=-r;break}}}},k=function(t,e){for(var r=0,n=0,i=0,u=new Array(e.length),c=new Array(e.length),l=0;l<e.length;l+=1){var s=e[l].dataCount,f=e[l].totalCount-s;n=Math.max(n,s),i=Math.max(i,f),u[l]=new Array(s);for(var h=0;h<u[l].length;h+=1)u[l][h]=255&t.getBuffer()[h+r];r+=s;var g=o.getErrorCorrectPolynomial(f),d=a(u[l],g.getLength()-1),v=d.mod(g);c[l]=new Array(g.getLength()-1);for(h=0;h<c[l].length;h+=1){var w=h+v.getLength()-c[l].length;c[l][h]=w>=0?v.getAt(w):0}}var p=0;for(h=0;h<e.length;h+=1)p+=e[h].totalCount;var y=new Array(p),m=0;for(h=0;h<n;h+=1)for(l=0;l<e.length;l+=1)h<u[l].length&&(y[m]=u[l][h],m+=1);for(h=0;h<i;h+=1)for(l=0;l<e.length;l+=1)h<c[l].length&&(y[m]=c[l][h],m+=1);return y},D=function(t,e,r){for(var a=u.getRSBlocks(t,e),l=c(),s=0;s<r.length;s+=1){var f=r[s];l.put(f.getMode(),4),l.put(f.getLength(),o.getLengthInBits(f.getMode(),t)),f.write(l)}var h=0;for(s=0;s<a.length;s+=1)h+=a[s].dataCount;if(l.getLengthInBits()>8*h)throw"code length overflow. ("+l.getLengthInBits()+">"+8*h+")";l.getLengthInBits()+4<=8*h&&l.put(0,4);while(l.getLengthInBits()%8!=0)l.putBit(!1);while(1){if(l.getLengthInBits()>=8*h)break;if(l.put(n,8),l.getLengthInBits()>=8*h)break;l.put(i,8)}return k(l,a)};b.addData=function(t,e){e=e||"Byte";var r=null;switch(e){case"Numeric":r=l(t);break;case"Alphanumeric":r=s(t);break;case"Byte":r=f(t);break;case"Kanji":r=h(t);break;default:throw"mode:"+e}m.push(r),y=null},b.isDark=function(t,e){if(t<0||w<=t||e<0||w<=e)throw t+","+e;return v[t][e]},b.getModuleCount=function(){return w},b.make=function(){if(g<1){for(var t=1;t<40;t++){for(var e=u.getRSBlocks(t,d),r=c(),n=0;n<m.length;n++){var i=m[n];r.put(i.getMode(),4),r.put(i.getLength(),o.getLengthInBits(i.getMode(),t)),i.write(r)}var a=0;for(n=0;n<e.length;n++)a+=e[n].dataCount;if(r.getLengthInBits()<=8*a)break}g=t}C(!1,x())},b.createTableTag=function(t,e){t=t||2,e="undefined"==typeof e?4*t:e;var r="";r+='<table style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: "+e+"px;",r+='">',r+="<tbody>";for(var n=0;n<b.getModuleCount();n+=1){r+="<tr>";for(var o=0;o<b.getModuleCount();o+=1)r+='<td style="',r+=" border-width: 0px; border-style: none;",r+=" border-collapse: collapse;",r+=" padding: 0px; margin: 0px;",r+=" width: "+t+"px;",r+=" height: "+t+"px;",r+=" background-color: ",r+=b.isDark(n,o)?"#000000":"#ffffff",r+=";",r+='"/>';r+="</tr>"}return r+="</tbody>",r+="</table>",r},b.createSvgTag=function(t,e,r,n){var o={};"object"==typeof arguments[0]&&(o=arguments[0],t=o.cellSize,e=o.margin,r=o.alt,n=o.title),t=t||2,e="undefined"==typeof e?4*t:e,r="string"===typeof r?{text:r}:r||{},r.text=r.text||null,r.id=r.text?r.id||"qrcode-description":null,n="string"===typeof n?{text:n}:n||{},n.text=n.text||null,n.id=n.text?n.id||"qrcode-title":null;var i,a,u,c,l,s=b.getModuleCount()*t+2*e,f="";for(l="l"+t+",0 0,"+t+" -"+t+",0 0,-"+t+"z ",f+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',f+=o.scalable?"":' width="'+s+'px" height="'+s+'px"',f+=' viewBox="0 0 '+s+" "+s+'" ',f+=' preserveAspectRatio="xMinYMin meet"',f+=n.text||r.text?' role="img" aria-labelledby="'+P([n.id,r.id].join(" ").trim())+'"':"",f+=">",f+=n.text?'<title id="'+P(n.id)+'">'+P(n.text)+"</title>":"",f+=r.text?'<description id="'+P(r.id)+'">'+P(r.text)+"</description>":"",f+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',f+='<path d="',u=0;u<b.getModuleCount();u+=1)for(c=u*t+e,i=0;i<b.getModuleCount();i+=1)b.isDark(u,i)&&(a=i*t+e,f+="M"+a+","+c+l);return f+='" stroke="transparent" fill="black"/>',f+="</svg>",f},b.createDataURL=function(t,e){t=t||2,e="undefined"==typeof e?4*t:e;var r=b.getModuleCount()*t+2*e,n=e,o=r-e;return p(r,r,(function(e,r){if(n<=e&&e<o&&n<=r&&r<o){var i=Math.floor((e-n)/t),a=Math.floor((r-n)/t);return b.isDark(a,i)?0:1}return 1}))},b.createImgTag=function(t,e,r){t=t||2,e="undefined"==typeof e?4*t:e;var n=b.getModuleCount()*t+2*e,o="";return o+="<img",o+=' src="',o+=b.createDataURL(t,e),o+='"',o+=' width="',o+=n,o+='"',o+=' height="',o+=n,o+='"',r&&(o+=' alt="',o+=P(r),o+='"'),o+="/>",o};var P=function(t){for(var e="",r=0;r<t.length;r+=1){var n=t.charAt(r);switch(n){case"<":e+="<";break;case">":e+=">";break;case"&":e+="&";break;case'"':e+=""";break;default:e+=n;break}}return e},L=function(t){var e=1;t="undefined"==typeof t?2*e:t;var r,n,o,i,a,u=b.getModuleCount()*e+2*t,c=t,l=u-t,s={"██":"█","█ ":"▀"," █":"▄"," ":" "},f={"██":"▀","█ ":"▀"," █":" "," ":" "},h="";for(r=0;r<u;r+=2){for(o=Math.floor((r-c)/e),i=Math.floor((r+1-c)/e),n=0;n<u;n+=1)a="█",c<=n&&n<l&&c<=r&&r<l&&b.isDark(o,Math.floor((n-c)/e))&&(a=" "),c<=n&&n<l&&c<=r+1&&r+1<l&&b.isDark(i,Math.floor((n-c)/e))?a+=" ":a+="█",h+=t<1&&r+1>=l?f[a]:s[a];h+="\n"}return u%2&&t>0?h.substring(0,h.length-u-1)+Array(u+1).join("▀"):h.substring(0,h.length-1)};return b.createASCII=function(t,e){if(t=t||1,t<2)return L(e);t-=1,e="undefined"==typeof e?2*t:e;var r,n,o,i,a=b.getModuleCount()*t+2*e,u=e,c=a-e,l=Array(t+1).join("██"),s=Array(t+1).join(" "),f="",h="";for(r=0;r<a;r+=1){for(o=Math.floor((r-u)/t),h="",n=0;n<a;n+=1)i=1,u<=n&&n<c&&u<=r&&r<c&&b.isDark(o,Math.floor((n-u)/t))&&(i=0),h+=i?l:s;for(o=0;o<t;o+=1)f+=h+"\n"}return f.substring(0,f.length-1)},b.renderTo2dContext=function(t,e){e=e||2;for(var r=b.getModuleCount(),n=0;n<r;n++)for(var o=0;o<r;o++)t.fillStyle=b.isDark(n,o)?"black":"white",t.fillRect(n*e,o*e,e,e)},b};t.stringToBytesFuncs={default:function(t){for(var e=[],r=0;r<t.length;r+=1){var n=t.charCodeAt(r);e.push(255&n)}return e}},t.stringToBytes=t.stringToBytesFuncs["default"],t.createStringToBytes=function(t,e){var r=function(){var r=v(t),n=function(){var t=r.read();if(-1==t)throw"eof";return t},o=0,i={};while(1){var a=r.read();if(-1==a)break;var u=n(),c=n(),l=n(),s=String.fromCharCode(a<<8|u),f=c<<8|l;i[s]=f,o+=1}if(o!=e)throw o+" != "+e;return i}(),n="?".charCodeAt(0);return function(t){for(var e=[],o=0;o<t.length;o+=1){var i=t.charCodeAt(o);if(i<128)e.push(i);else{var a=r[t.charAt(o)];"number"==typeof a?(255&a)==a?e.push(a):(e.push(a>>>8),e.push(255&a)):e.push(n)}}return e}};var e={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},r={L:1,M:0,Q:3,H:2},n={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o=function(){var t=[[],[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]],r=1335,o=7973,u=21522,c={},l=function(t){var e=0;while(0!=t)e+=1,t>>>=1;return e};return c.getBCHTypeInfo=function(t){var e=t<<10;while(l(e)-l(r)>=0)e^=r<<l(e)-l(r);return(t<<10|e)^u},c.getBCHTypeNumber=function(t){var e=t<<12;while(l(e)-l(o)>=0)e^=o<<l(e)-l(o);return t<<12|e},c.getPatternPosition=function(e){return t[e-1]},c.getMaskFunction=function(t){switch(t){case n.PATTERN000:return function(t,e){return(t+e)%2==0};case n.PATTERN001:return function(t,e){return t%2==0};case n.PATTERN010:return function(t,e){return e%3==0};case n.PATTERN011:return function(t,e){return(t+e)%3==0};case n.PATTERN100:return function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0};case n.PATTERN101:return function(t,e){return t*e%2+t*e%3==0};case n.PATTERN110:return function(t,e){return(t*e%2+t*e%3)%2==0};case n.PATTERN111:return function(t,e){return(t*e%3+(t+e)%2)%2==0};default:throw"bad maskPattern:"+t}},c.getErrorCorrectPolynomial=function(t){for(var e=a([1],0),r=0;r<t;r+=1)e=e.multiply(a([1,i.gexp(r)],0));return e},c.getLengthInBits=function(t,r){if(1<=r&&r<10)switch(t){case e.MODE_NUMBER:return 10;case e.MODE_ALPHA_NUM:return 9;case e.MODE_8BIT_BYTE:return 8;case e.MODE_KANJI:return 8;default:throw"mode:"+t}else if(r<27)switch(t){case e.MODE_NUMBER:return 12;case e.MODE_ALPHA_NUM:return 11;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 10;default:throw"mode:"+t}else{if(!(r<41))throw"type:"+r;switch(t){case e.MODE_NUMBER:return 14;case e.MODE_ALPHA_NUM:return 13;case e.MODE_8BIT_BYTE:return 16;case e.MODE_KANJI:return 12;default:throw"mode:"+t}}},c.getLostPoint=function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n+=1)for(var o=0;o<e;o+=1){for(var i=0,a=t.isDark(n,o),u=-1;u<=1;u+=1)if(!(n+u<0||e<=n+u))for(var c=-1;c<=1;c+=1)o+c<0||e<=o+c||0==u&&0==c||a==t.isDark(n+u,o+c)&&(i+=1);i>5&&(r+=3+i-5)}for(n=0;n<e-1;n+=1)for(o=0;o<e-1;o+=1){var l=0;t.isDark(n,o)&&(l+=1),t.isDark(n+1,o)&&(l+=1),t.isDark(n,o+1)&&(l+=1),t.isDark(n+1,o+1)&&(l+=1),0!=l&&4!=l||(r+=3)}for(n=0;n<e;n+=1)for(o=0;o<e-6;o+=1)t.isDark(n,o)&&!t.isDark(n,o+1)&&t.isDark(n,o+2)&&t.isDark(n,o+3)&&t.isDark(n,o+4)&&!t.isDark(n,o+5)&&t.isDark(n,o+6)&&(r+=40);for(o=0;o<e;o+=1)for(n=0;n<e-6;n+=1)t.isDark(n,o)&&!t.isDark(n+1,o)&&t.isDark(n+2,o)&&t.isDark(n+3,o)&&t.isDark(n+4,o)&&!t.isDark(n+5,o)&&t.isDark(n+6,o)&&(r+=40);var s=0;for(o=0;o<e;o+=1)for(n=0;n<e;n+=1)t.isDark(n,o)&&(s+=1);var f=Math.abs(100*s/e/e-50)/5;return r+=10*f,r},c}(),i=function(){for(var t=new Array(256),e=new Array(256),r=0;r<8;r+=1)t[r]=1<<r;for(r=8;r<256;r+=1)t[r]=t[r-4]^t[r-5]^t[r-6]^t[r-8];for(r=0;r<255;r+=1)e[t[r]]=r;var n={glog:function(t){if(t<1)throw"glog("+t+")";return e[t]},gexp:function(e){while(e<0)e+=255;while(e>=256)e-=255;return t[e]}};return n}();function a(t,e){if("undefined"==typeof t.length)throw t.length+"/"+e;var r=function(){var r=0;while(r<t.length&&0==t[r])r+=1;for(var n=new Array(t.length-r+e),o=0;o<t.length-r;o+=1)n[o]=t[o+r];return n}(),n={getAt:function(t){return r[t]},getLength:function(){return r.length},multiply:function(t){for(var e=new Array(n.getLength()+t.getLength()-1),r=0;r<n.getLength();r+=1)for(var o=0;o<t.getLength();o+=1)e[r+o]^=i.gexp(i.glog(n.getAt(r))+i.glog(t.getAt(o)));return a(e,0)},mod:function(t){if(n.getLength()-t.getLength()<0)return n;for(var e=i.glog(n.getAt(0))-i.glog(t.getAt(0)),r=new Array(n.getLength()),o=0;o<n.getLength();o+=1)r[o]=n.getAt(o);for(o=0;o<t.getLength();o+=1)r[o]^=i.gexp(i.glog(t.getAt(o))+e);return a(r,0).mod(t)}};return n}var u=function(){var t=[[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]],e=function(t,e){var r={};return r.totalCount=t,r.dataCount=e,r},n={},o=function(e,n){switch(n){case r.L:return t[4*(e-1)+0];case r.M:return t[4*(e-1)+1];case r.Q:return t[4*(e-1)+2];case r.H:return t[4*(e-1)+3];default:return}};return n.getRSBlocks=function(t,r){var n=o(t,r);if("undefined"==typeof n)throw"bad rs block @ typeNumber:"+t+"/errorCorrectionLevel:"+r;for(var i=n.length/3,a=[],u=0;u<i;u+=1)for(var c=n[3*u+0],l=n[3*u+1],s=n[3*u+2],f=0;f<c;f+=1)a.push(e(l,s));return a},n}(),c=function(){var t=[],e=0,r={getBuffer:function(){return t},getAt:function(e){var r=Math.floor(e/8);return 1==(t[r]>>>7-e%8&1)},put:function(t,e){for(var n=0;n<e;n+=1)r.putBit(1==(t>>>e-n-1&1))},getLengthInBits:function(){return e},putBit:function(r){var n=Math.floor(e/8);t.length<=n&&t.push(0),r&&(t[n]|=128>>>e%8),e+=1}};return r},l=function(t){var r=e.MODE_NUMBER,n=t,o={getMode:function(){return r},getLength:function(t){return n.length},write:function(t){var e=n,r=0;while(r+2<e.length)t.put(i(e.substring(r,r+3)),10),r+=3;r<e.length&&(e.length-r==1?t.put(i(e.substring(r,r+1)),4):e.length-r==2&&t.put(i(e.substring(r,r+2)),7))}},i=function(t){for(var e=0,r=0;r<t.length;r+=1)e=10*e+a(t.charAt(r));return e},a=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+t};return o},s=function(t){var r=e.MODE_ALPHA_NUM,n=t,o={getMode:function(){return r},getLength:function(t){return n.length},write:function(t){var e=n,r=0;while(r+1<e.length)t.put(45*i(e.charAt(r))+i(e.charAt(r+1)),11),r+=2;r<e.length&&t.put(i(e.charAt(r)),6)}},i=function(t){if("0"<=t&&t<="9")return t.charCodeAt(0)-"0".charCodeAt(0);if("A"<=t&&t<="Z")return t.charCodeAt(0)-"A".charCodeAt(0)+10;switch(t){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 :"+t}};return o},f=function(r){var n=e.MODE_8BIT_BYTE,o=t.stringToBytes(r),i={getMode:function(){return n},getLength:function(t){return o.length},write:function(t){for(var e=0;e<o.length;e+=1)t.put(o[e],8)}};return i},h=function(r){var n=e.MODE_KANJI,o=t.stringToBytesFuncs["SJIS"];if(!o)throw"sjis not supported.";!function(t,e){var r=o(t);if(2!=r.length||(r[0]<<8|r[1])!=e)throw"sjis not supported."}("友",38726);var i=o(r),a={getMode:function(){return n},getLength:function(t){return~~(i.length/2)},write:function(t){var e=i,r=0;while(r+1<e.length){var n=(255&e[r])<<8|255&e[r+1];if(33088<=n&&n<=40956)n-=33088;else{if(!(57408<=n&&n<=60351))throw"illegal char at "+(r+1)+"/"+n;n-=49472}n=192*(n>>>8&255)+(255&n),t.put(n,13),r+=2}if(r<e.length)throw"illegal char at "+(r+1)}};return a},g=function(){var t=[],e={writeByte:function(e){t.push(255&e)},writeShort:function(t){e.writeByte(t),e.writeByte(t>>>8)},writeBytes:function(t,r,n){r=r||0,n=n||t.length;for(var o=0;o<n;o+=1)e.writeByte(t[o+r])},writeString:function(t){for(var r=0;r<t.length;r+=1)e.writeByte(t.charCodeAt(r))},toByteArray:function(){return t},toString:function(){var e="";e+="[";for(var r=0;r<t.length;r+=1)r>0&&(e+=","),e+=t[r];return e+="]",e}};return e},d=function(){var t=0,e=0,r=0,n="",o={},i=function(t){n+=String.fromCharCode(a(63&t))},a=function(t){if(t<0);else{if(t<26)return 65+t;if(t<52)return t-26+97;if(t<62)return t-52+48;if(62==t)return 43;if(63==t)return 47}throw"n:"+t};return o.writeByte=function(n){t=t<<8|255&n,e+=8,r+=1;while(e>=6)i(t>>>e-6),e-=6},o.flush=function(){if(e>0&&(i(t<<6-e),t=0,e=0),r%3!=0)for(var o=3-r%3,a=0;a<o;a+=1)n+="="},o.toString=function(){return n},o},v=function(t){var e=t,r=0,n=0,o=0,i={read:function(){while(o<8){if(r>=e.length){if(0==o)return-1;throw"unexpected end of file./"+o}var t=e.charAt(r);if(r+=1,"="==t)return o=0,-1;t.match(/^\s$/)||(n=n<<6|a(t.charCodeAt(0)),o+=6)}var i=n>>>o-8&255;return o-=8,i}},a=function(t){if(65<=t&&t<=90)return t-65;if(97<=t&&t<=122)return t-97+26;if(48<=t&&t<=57)return t-48+52;if(43==t)return 62;if(47==t)return 63;throw"c:"+t};return i},w=function(t,e){var r=t,n=e,o=new Array(t*e),i={setPixel:function(t,e,n){o[e*r+t]=n},write:function(t){t.writeString("GIF87a"),t.writeShort(r),t.writeShort(n),t.writeByte(128),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(0),t.writeByte(255),t.writeByte(255),t.writeByte(255),t.writeString(","),t.writeShort(0),t.writeShort(0),t.writeShort(r),t.writeShort(n),t.writeByte(0);var e=2,o=u(e);t.writeByte(e);var i=0;while(o.length-i>255)t.writeByte(255),t.writeBytes(o,i,255),i+=255;t.writeByte(o.length-i),t.writeBytes(o,i,o.length-i),t.writeByte(0),t.writeString(";")}},a=function(t){var e=t,r=0,n=0,o={write:function(t,o){if(t>>>o!=0)throw"length over";while(r+o>=8)e.writeByte(255&(t<<r|n)),o-=8-r,t>>>=8-r,n=0,r=0;n|=t<<r,r+=o},flush:function(){r>0&&e.writeByte(n)}};return o},u=function(t){for(var e=1<<t,r=1+(1<<t),n=t+1,i=c(),u=0;u<e;u+=1)i.add(String.fromCharCode(u));i.add(String.fromCharCode(e)),i.add(String.fromCharCode(r));var l=g(),s=a(l);s.write(e,n);var f=0,h=String.fromCharCode(o[f]);f+=1;while(f<o.length){var d=String.fromCharCode(o[f]);f+=1,i.contains(h+d)?h+=d:(s.write(i.indexOf(h),n),i.size()<4095&&(i.size()==1<<n&&(n+=1),i.add(h+d)),h=d)}return s.write(i.indexOf(h),n),s.write(r,n),s.flush(),l.toByteArray()},c=function(){var t={},e=0,r={add:function(n){if(r.contains(n))throw"dup key:"+n;t[n]=e,e+=1},size:function(){return e},indexOf:function(e){return t[e]},contains:function(e){return"undefined"!=typeof t[e]}};return r};return i},p=function(t,e,r){for(var n=w(t,e),o=0;o<e;o+=1)for(var i=0;i<t;i+=1)n.setPixel(i,o,r(i,o));var a=g();n.write(a);for(var u=d(),c=a.toByteArray(),l=0;l<c.length;l+=1)u.writeByte(c[l]);return u.flush(),"data:image/gif;base64,"+u};return t}();!function(){a.stringToBytesFuncs["UTF-8"]=function(t){function e(t){for(var e=[],r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e.push(n):n<2048?e.push(192|n>>6,128|63&n):n<55296||n>=57344?e.push(224|n>>12,128|n>>6&63,128|63&n):(r++,n=65536+((1023&n)<<10|1023&t.charCodeAt(r)),e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|63&n))}return e}return e(t)}}(),function(r){o=[],n=r,i="function"===typeof n?n.apply(e,o):n,void 0===i||(t.exports=i)}((function(){return a}))},e774:function(t,e,r){"use strict";const n="application/font-woff",o="image/jpeg",i={woff:n,woff2:n,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:o,jpeg:o,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function a(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}function u(t){const e=a(t).toLowerCase();return i[e]||""}function c(t){return t.split(/,/)[1]}function l(t){return-1!==t.search(/^(data:)/)}function s(t,e){return`data:${e};base64,${t}`}async function f(t,e,r){const n=await fetch(t,e);if(404===n.status)throw new Error(`Resource "${n.url}" not found`);const o=await n.blob();return new Promise((t,e)=>{const i=new FileReader;i.onerror=e,i.onloadend=()=>{try{t(r({res:n,result:i.result}))}catch(o){e(o)}},i.readAsDataURL(o)})}const h={};function g(t,e,r){let n=t.replace(/\?.*/,"");return r&&(n=t),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),e?`[${e}]${n}`:n}async function d(t,e,r){const n=g(t,e,r.includeQueryParams);if(null!=h[n])return h[n];let o;r.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const n=await f(t,r.fetchRequestInit,({res:t,result:r})=>(e||(e=t.headers.get("Content-Type")||""),c(r)));o=s(n,e)}catch(i){o=r.imagePlaceholder||"";let e="Failed to fetch resource: "+t;i&&(e="string"===typeof i?i:i.message),e&&console.warn(e)}return h[n]=o,o}var v=r("0880");function w(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}function p(t){return Object(v["h"])(t).map(e=>{const r=t.getPropertyValue(e),n=t.getPropertyPriority(e);return`${e}: ${r}${n?" !important":""};`}).join(" ")}function y(t,e,r){const n=`.${t}:${e}`,o=r.cssText?w(r):p(r);return document.createTextNode(`${n}{${o}}`)}function m(t,e,r){const n=window.getComputedStyle(t,r),o=n.getPropertyValue("content");if(""===o||"none"===o)return;const i=Object(v["i"])();try{e.className=`${e.className} ${i}`}catch(u){return}const a=document.createElement("style");a.appendChild(y(i,r,n)),e.appendChild(a)}function b(t,e){m(t,e,":before"),m(t,e,":after")}async function C(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):Object(v["c"])(e)}async function A(t,e){const r=t.poster,n=u(r),o=await d(r,n,e);return Object(v["c"])(o)}async function x(t,e){return t instanceof HTMLCanvasElement?C(t):t instanceof HTMLVideoElement&&t.poster?A(t,e):t.cloneNode(!1)}const E=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();async function S(t,e,r){var n;const o=E(t)&&t.assignedNodes?Object(v["h"])(t.assignedNodes()):Object(v["h"])((null!==(n=t.shadowRoot)&&void 0!==n?n:t).childNodes);return 0===o.length||t instanceof HTMLVideoElement||await o.reduce((t,n)=>t.then(()=>D(n,r)).then(t=>{t&&e.appendChild(t)}),Promise.resolve()),e}function T(t,e){const r=e.style;if(!r)return;const n=window.getComputedStyle(t);n.cssText?(r.cssText=n.cssText,r.transformOrigin=n.transformOrigin):Object(v["h"])(n).forEach(t=>{let e=n.getPropertyValue(t);if("font-size"===t&&e.endsWith("px")){const t=Math.floor(parseFloat(e.substring(0,e.length-2)))-.1;e=t+"px"}r.setProperty(t,e,n.getPropertyPriority(t))})}function M(t,e){t instanceof HTMLTextAreaElement&&(e.innerHTML=t.value),t instanceof HTMLInputElement&&e.setAttribute("value",t.value)}function B(t,e){if(t instanceof HTMLSelectElement){const r=e,n=Array.from(r.children).find(e=>t.value===e.getAttribute("value"));n&&n.setAttribute("selected","")}}function k(t,e){return e instanceof Element&&(T(t,e),b(t,e),M(t,e),B(t,e)),e}async function D(t,e,r){return r||!e.filter||e.filter(t)?Promise.resolve(t).then(t=>x(t,e)).then(r=>S(t,r,e)).then(e=>k(t,e)):null}const P=/url\((['"]?)([^'"]+?)\1\)/g,L=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,R=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function O(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}function N(t){const e=[];return t.replace(P,(t,r,n)=>(e.push(n),t)),e.filter(t=>!l(t))}async function I(t,e,r,n,o){try{const i=r?Object(v["g"])(e,r):e,a=u(e);let c;if(o){const t=await o(i);c=s(t,a)}else c=await d(i,a,n);return t.replace(O(e),`$1${c}$3`)}catch(i){}return t}function j(t,{preferredFontFormat:e}){return e?t.replace(R,t=>{while(1){const[r,,n]=L.exec(t)||[];if(!n)return"";if(n===e)return`src: ${r};`}}):t}function _(t){return-1!==t.search(P)}async function z(t,e,r){if(!_(t))return t;const n=j(t,r),o=N(n);return o.reduce((t,n)=>t.then(t=>I(t,n,e,r)),Promise.resolve(n))}async function $(t,e){var r;const n=null===(r=t.style)||void 0===r?void 0:r.getPropertyValue("background");if(n){const r=await z(n,null,e);t.style.setProperty("background",r,t.style.getPropertyPriority("background"))}}async function H(t,e){if((!(t instanceof HTMLImageElement)||l(t.src))&&(!(t instanceof SVGImageElement)||l(t.href.baseVal)))return;const r=t instanceof HTMLImageElement?t.src:t.href.baseVal,n=await d(r,u(r),e);await new Promise((e,r)=>{t.onload=e,t.onerror=r,t instanceof HTMLImageElement?(t.srcset="",t.src=n):t.href.baseVal=n})}async function U(t,e){const r=Object(v["h"])(t.childNodes),n=r.map(t=>F(t,e));await Promise.all(n).then(()=>t)}async function F(t,e){t instanceof Element&&(await $(t,e),await H(t,e),await U(t,e))}function V(t,e){const{style:r}=t;e.backgroundColor&&(r.backgroundColor=e.backgroundColor),e.width&&(r.width=e.width+"px"),e.height&&(r.height=e.height+"px");const n=e.style;return null!=n&&Object.keys(n).forEach(t=>{r[t]=n[t]}),t}const q={};async function J(t){let e=q[t];if(null!=e)return e;const r=await fetch(t),n=await r.text();return e={url:t,cssText:n},q[t]=e,e}async function K(t,e){let r=t.cssText;const n=/url\(["']?([^"')]+)["']?\)/g,o=r.match(/url\([^)]+\)/g)||[],i=o.map(async o=>{let i=o.replace(n,"$1");return i.startsWith("https://")||(i=new URL(i,t.url).href),f(i,e.fetchRequestInit,({result:t})=>(r=r.replace(o,`url(${t})`),[o,t]))});return Promise.all(i).then(()=>r)}function Y(t){if(null==t)return[];const e=[],r=/(\/\*[\s\S]*?\*\/)/gi;let n=t.replace(r,"");const o=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");while(1){const t=o.exec(n);if(null===t)break;e.push(t[0])}n=n.replace(o,"");const i=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",u=new RegExp(a,"gi");while(1){let t=i.exec(n);if(null===t){if(t=u.exec(n),null===t)break;i.lastIndex=u.lastIndex}else u.lastIndex=i.lastIndex;e.push(t[0])}return e}async function W(t,e){const r=[],n=[];return t.forEach(r=>{if("cssRules"in r)try{Object(v["h"])(r.cssRules||[]).forEach((t,o)=>{if(t.type===CSSRule.IMPORT_RULE){let i=o+1;const a=t.href,u=J(a).then(t=>K(t,e)).then(t=>Y(t).forEach(t=>{try{r.insertRule(t,t.startsWith("@import")?i+=1:r.cssRules.length)}catch(e){console.error("Error inserting rule from remote css",{rule:t,error:e})}})).catch(t=>{console.error("Error loading remote css",t.toString())});n.push(u)}})}catch(o){const i=t.find(t=>null==t.href)||document.styleSheets[0];null!=r.href&&n.push(J(r.href).then(t=>K(t,e)).then(t=>Y(t).forEach(t=>{i.insertRule(t,r.cssRules.length)})).catch(t=>{console.error("Error loading remote stylesheet",t.toString())})),console.error("Error inlining remote css file",o.toString())}}),Promise.all(n).then(()=>(t.forEach(t=>{if("cssRules"in t)try{Object(v["h"])(t.cssRules||[]).forEach(t=>{r.push(t)})}catch(e){console.error("Error while reading CSS rules from "+t.href,e.toString())}}),r))}function Q(t){return t.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>_(t.style.getPropertyValue("src")))}async function G(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const r=Object(v["h"])(t.ownerDocument.styleSheets),n=await W(r,e);return Q(n)}async function X(t,e){const r=await G(t,e),n=await Promise.all(r.map(t=>{const r=t.parentStyleSheet?t.parentStyleSheet.href:null;return z(t.cssText,r,e)}));return n.join("\n")}async function Z(t,e){const r=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:await X(t,e);if(r){const e=document.createElement("style"),n=document.createTextNode(r);e.appendChild(n),t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}}async function tt(t,e={}){const{width:r,height:n}=Object(v["d"])(t,e),o=await D(t,e,!0);await Z(o,e),await F(o,e),V(o,e);const i=await Object(v["f"])(o,r,n);return i}async function et(t,e={}){const{width:r,height:n}=Object(v["d"])(t,e),o=await tt(t,e),i=await Object(v["c"])(o),a=document.createElement("canvas"),u=a.getContext("2d"),c=e.pixelRatio||Object(v["e"])(),l=e.canvasWidth||r,s=e.canvasHeight||n;return a.width=l*c,a.height=s*c,e.skipAutoScale||Object(v["b"])(a),a.style.width=""+l,a.style.height=""+s,e.backgroundColor&&(u.fillStyle=e.backgroundColor,u.fillRect(0,0,a.width,a.height)),u.drawImage(i,0,0,a.width,a.height),a}async function rt(t,e={}){const r=await et(t,e);return r.toDataURL()}r.d(e,"a",(function(){return rt}))},f2e5:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}var o=r("c31d"),i=r("e0d33"),a=r.n(i);r.d(e,"a",(function(){return M}));
- /*! qrcanvas v3.1.2 | ISC License */
- var u="#000",c="#fff",l={createCanvas:s,isCanvas:f,isDrawable:h,getCanvas:g,updateCanvas:d,drawCanvas:v,drawText:w};function s(t,e){var r=document.createElement("canvas");return r.width=t,r.height=e,r}function f(t){return t instanceof HTMLCanvasElement}function h(t){return f(t)||t instanceof HTMLImageElement}function g(t,e){return l.createCanvas(t,null==e?t:e)}function d(t,e,r){return t?(t.width=e,t.height=null==r?e:r,t):g(e,r)}function v(t,e,r){void 0===r&&(r={});var n=r,o=n.cellSize,i=n.context,a=n.clear,u=void 0===a||a,c=t.width,s=t.height,f=[e],h=i||t.getContext("2d");u&&h.clearRect(0,0,c,s),h.globalCompositeOperation="source-over";while(f.length){var g=f.shift();if(Array.isArray(g))f=g.concat(f);else if(g){var d=void 0;d=l.isDrawable(g)?{image:g}:"string"===typeof g?{style:g}:g;var v=(null==d.col?d.x:d.col*o)||0,w=(null==d.row?d.y:d.row*o)||0;v<0&&(v+=c),w<0&&(w+=c);var p=("cols"in d?d.cols*o:d.w)||c,y=("rows"in d?d.rows*o:d.h)||c;d.image?h.drawImage(d.image,v,w,p,y):(h.fillStyle=d.style||"black",h.fillRect(v,w,p,y))}}return t}function w(t,e){var r,n=e||{},o=n.fontSize,i=void 0===o?64:o,a=n.fontStyle,l=void 0===a?"":a,s=n.fontFamily,f=void 0===s?"Cursive":s,h=n.color,d=void 0===h?null:h,v=n.pad,w=void 0===v?8:v,p=n.padColor,y=void 0===p?c:p,m=n.mode,b=void 0===m?1:m,C=g(1),A=C.getContext("2d");if(y){A.fillStyle=y,A.fillRect(0,0,1,1);var x=A.getImageData(0,0,1,1);r=x.data,r[3]||(r=null)}var E=i+2*w,S=[l,i+"px",f].filter(Boolean).join(" "),T=function(){A.textAlign="center",A.textBaseline="middle",A.font=S};T();var M=Math.ceil(A.measureText(t).width)+2*w;C.width=M,C.height=E,T();var B=function(){A.fillStyle=d||u,A.fillText(t,M/2,E/2)};return 1===b?(A.fillStyle=y,A.fillRect(0,0,M,E),B()):(B(),r&&function(){for(var t=A.getImageData(0,0,M,E),e=t.data,n=M*E,o=[],i=0,a=function(t){var a=[],u={};o[i]=a,i=1-i;var c=o[i];if(!c){c=[];for(var l=0;l<n;l+=1)c.push(l)}c.forEach((function(t){e[4*t+3]&&[t%M?t-1:-1,(t+1)%M?t+1:-1,t-M,t+M].forEach((function(t){var r=4*t;r>=0&&r<=e.length&&!u[t]&&(u[t]=1,a.push(t))}))})),a.forEach((function(t){var n=4*t;if(!e[n+3])for(var o=0;o<4;o+=1)e[n+o]=r[o]}))},u=0;u<w;u+=1)a();A.putImageData(t,0,0)}()),C}var p={default:y,round:m,fusion:b,spot:C};function y(t){var e=t.foreground,r=t.cellSize,n=t.isDark,o=t.count,i=l.getCanvas,a=l.drawCanvas,c=r*o,s=i(c),f=s.getContext("2d");f.fillStyle=u,A({cellSize:r,count:o},(function(t){var e=t.i,o=t.j,i=t.x,a=t.y;n(e,o)&&f.fillRect(i,a,r,r)}));var h=i(c);a(h,e,{cellSize:r});var g=h.getContext("2d");return g.globalCompositeOperation="destination-in",g.drawImage(s,0,0),h}function m(t,e){var r=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=l.getCanvas,c=l.drawCanvas,s=n*i,f=a(s),h=e.value,g=void 0===h?1:h,d=g*n/2,v=f.getContext("2d");v.fillStyle=u,A({cellSize:n,count:i},(function(t){var e=t.i,r=t.j,i=t.x,a=t.y;o(e,r)&&(v.beginPath(),v.moveTo(i+.5*n,a),x(v,i+n,a,i+n,a+.5*n,d),x(v,i+n,a+n,i+.5*n,a+n,d),x(v,i,a+n,i,a+.5*n,d),x(v,i,a,i+.5*n,a,d),v.fill())}));var w=a(s);c(w,r,{cellSize:n});var p=w.getContext("2d");return p.globalCompositeOperation="destination-in",p.drawImage(f,0,0),w}function b(t,e){var r=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=l.getCanvas,c=l.drawCanvas,s=n*i,f=a(s),h=f.getContext("2d");h.fillStyle=u;var g=e.value,d=void 0===g?1:g,v=d*n/2;A({cellSize:n,count:i},(function(t){var e=t.i,r=t.j,i=t.x,a=t.y,u=[0,0,0,0];o(e-1,r)&&(u[0]+=1,u[1]+=1),o(e+1,r)&&(u[2]+=1,u[3]+=1),o(e,r-1)&&(u[0]+=1,u[3]+=1),o(e,r+1)&&(u[1]+=1,u[2]+=1),o(e,r)?(o(e-1,r-1)&&(u[0]+=1),o(e-1,r+1)&&(u[1]+=1),o(e+1,r+1)&&(u[2]+=1),o(e+1,r-1)&&(u[3]+=1),h.beginPath(),h.moveTo(i+.5*n,a),x(h,i+n,a,i+n,a+.5*n,u[1]?0:v),x(h,i+n,a+n,i+.5*n,a+n,u[2]?0:v),x(h,i,a+n,i,a+.5*n,u[3]?0:v),x(h,i,a,i+.5*n,a,u[0]?0:v),h.fill()):(2===u[0]&&E(h,i,a+.5*n,i,a,i+.5*n,a,v),2===u[1]&&E(h,i+.5*n,a,i+n,a,i+n,a+.5*n,v),2===u[2]&&E(h,i+n,a+.5*n,i+n,a+n,i+.5*n,a+n,v),2===u[3]&&E(h,i+.5*n,a+n,i,a+n,i,a+.5*n,v))}));var w=a(s);c(w,r,{cellSize:n});var p=w.getContext("2d");return p.globalCompositeOperation="destination-in",p.drawImage(f,0,0),w}function C(t,e){var r=t.foreground,n=t.cellSize,o=t.isDark,i=t.count,a=l.getCanvas,s=l.drawCanvas,f=n*i,h=a(f),g=e.value,d=e.foregroundLight,v=void 0===d?c:d,w=h.getContext("2d"),p=a(f),y=a(f),m=p.getContext("2d");return[{dark:!0,foreground:r},{dark:!1,foreground:v}].forEach((function(t){w.fillStyle=u,w.clearRect(0,0,f,f),A({cellSize:n,count:i},(function(e){var r=e.i,a=e.j,u=e.x,c=e.y;if(o(r,a)^+!t.dark){var l;l=r<=7&&a<=7||r<=7&&i-a-1<=7||i-r-1<=7&&a<=7||r+5<=i&&r+9>=i&&a+5<=i&&a+9>=i||7===r||7===a?1-.1*g:.25;var s=(1-l)/2;w.fillRect(u+s*n,c+s*n,l*n,l*n)}})),s(p,t.foreground,{cellSize:n,context:m}),m.globalCompositeOperation="destination-in",m.drawImage(h,0,0),s(y,p,{cellSize:n,clear:!1})})),y}function A(t,e){for(var r=t.cellSize,n=t.count,o=0;o<n;o+=1)for(var i=0;i<n;i+=1){var a=i*r,u=o*r;e({i:o,j:i,x:a,y:u})}}function x(t,e,r,n,o,i){i?t.arcTo(e,r,n,o,i):(t.lineTo(e,r),t.lineTo(n,o))}function E(t,e,r,n,o,i,a,u){t.beginPath(),t.moveTo(e,r),x(t,n,o,i,a,u),t.lineTo(n,o),t.lineTo(e,r),t.fill()}a.a.stringToBytes=a.a.stringToBytesFuncs["UTF-8"];var S={background:"white",foreground:"black",typeNumber:0,correctLevel:"L",data:"",padding:0,resize:!0},T=function(){function t(t){var e=this;this.options=Object(o["a"])({},S),this.cache={},this.isDark=function(t,r){var n=e.cache,o=n.qr,i=n.count;return!(t<0||t>=i||r<0||r>=i)&&o.isDark(t,r)},this.setOptions(t)}var e=t.prototype;return e.render=function(t,e){void 0===e&&(e={});var r,n,i,a=this.options,u=a.background,c=a.foreground,s=a.padding,f=a.effect,h=a.logo,g=a.resize,d=p[f.type]||p["default"],v=this.cache.count,w=l.drawCanvas,y=e,m=y.size,b=e,C=b.cellSize;t||C||m||(C=6),C&&(m=v*C+s+s),m?r=g||!t?l.updateCanvas(t,m):t:(m=t.width,r=t);var A=m-s-s,x=Math.ceil(A/v),E=x*v;if(n=l.getCanvas(x*v),w(n,u,{cellSize:x}),i=d(Object(o["a"])({foreground:c,cellSize:x,isDark:this.isDark},this.cache),this.options.effect),h){var S=Object(o["a"])({},h);if(!h.w&&!h.h&&!h.cols&&!h.rows){var T=h.image,M=T.width,B=T.height,k=M/B,D=Math.min((v-18)/v,.38),P=Math.min(B,E*D,E*D/k),L=P*k,R=(E-L)/2,O=(E-P)/2;S.w=L,S.h=P,S.x=R,S.y=O}w(i,S,{clear:!1})}return w(r,[{image:n},{image:i,x:s,y:s,w:A,h:A}]),r},e.setOptions=function(t){this.options=Object(o["a"])({},this.options,t),this.normalizeEffect(),this.normalizeLogo();var e=this.options,r=e.typeNumber,n=e.data,i=e.logo,u=this.options.correctLevel;i&&["Q","H"].indexOf(u)<0&&(u="H");var c=a()(r,u);c.addData(n||""),c.make();var l=c.getModuleCount();this.cache={qr:c,count:l}},e.normalizeEffect=function(){var t=this.options.effect;"string"===typeof t&&(t={type:t}),this.options.effect=t||{}},e.normalizeLogo=function(){var t=l.isDrawable,e=l.drawText,r=this.options.logo;r&&(t(r)?r={image:r}:t(r.image)||("string"===typeof r&&(r={text:r}),r="string"===typeof r.text?{image:e(r.text,r.options)}:null)),this.options.logo=r},t}();function M(t){var e=t.canvas,r=t.size,o=t.cellSize,i=n(t,["canvas","size","cellSize"]),a=new T(i);return a.render(e,{size:r,cellSize:o})}}}]);
|