function _iterableToArrayLimit(c,f){var k=null==c?null:"undefined"!=typeof Symbol&&c[Symbol.iterator]||c["@@iterator"];if(null!=k){var l,t,w,x=[],q=!0,u=!1;try{if(t=(k=k.call(c)).next,0===f){if(Object(k)!==k)return;q=!1}else for(;!(q=(l=t.call(k)).done)&&(x.push(l.value),x.length!==f);q=!0);}catch(H){u=!0;var F=H}finally{try{if(!q&&null!=k["return"]&&(w=k["return"](),Object(w)!==w))return}finally{if(u)throw F;}}return x}} function ownKeys(c,f){var k,l=Object.keys(c);return Object.getOwnPropertySymbols&&(k=Object.getOwnPropertySymbols(c),f&&(k=k.filter(function(t){return Object.getOwnPropertyDescriptor(c,t).enumerable})),l.push.apply(l,k)),l} function _objectSpread2(c){for(var f=1;fc.length)&&(f=c.length);for(var k=0,l=Array(f);k>>18,h[1]=128|(258048&m)>>>12,h[2]=128|(4032&m)>>>6,h[3]=128|63&m):2048>>12,h[1]=128|(4032&m)>>>6,h[2]=128|63&m):128>>6,h[1]=128|63&m):h[0]=m;this.parsedData.push(h)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);g||this.parsedData.length== this.data.length||(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function f(b,a){this.typeNumber=b;this.errorCorrectLevel=a;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]}function k(b,a){if(b.length==q)throw Error(b.length+"/"+a);for(var g=0;gb||this.moduleCount<=b||0>a||this.moduleCount<=a)throw Error(b+","+ a);return this.modules[b][a][0]},getEye:function(b,a){if(0>b||this.moduleCount<=b||0>a||this.moduleCount<=a)throw Error(b+","+a);b=this.modules[b][a];return b[1]?(a="P"+b[1]+"_"+b[2],"A"==b[2]&&(a="A"+b[1]),{isDark:b[0],type:a}):null},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(b,a){this.moduleCount=4*this.typeNumber+17;this.modules=Array(this.moduleCount);for(var g=0;g=e;e++)if(!(-1>=b+e||this.moduleCount<=b+e))for(var h=-1;7>=h;h++)-1>=a+h||this.moduleCount<=a+h||(0<=e&&6>=e&&(0==h||6==h)||0<=h&&6>=h&&(0==e||6==e)||2<=e&&4>=e&&2<=h&&4>=h?(this.modules[b+e][a+h][0]=!0,this.modules[b+e][a+h][2]=g,this.modules[b+e][a+h][1]=-0==e||-0==h||6==e||6==h?"O":"I"):this.modules[b+e][a+h][0]=!1)},getBestMaskPattern:function(){for(var b=0,a=0,g=0;8>g;g++){this.makeImpl(!0,g);var e=z.getLostPoint(this);(0==g||e=p;p++)for(var n=-2;2>=n;n++)-2==p||2==p||-2==n||2==n||0==p&&0==n?(this.modules[h+p][m+n][0]=!0,this.modules[h+p][m+n][2]=b,this.modules[h+p][m+n][1]=-2==p||-2==n||2==p||2==n?"O":"I"):this.modules[h+p][m+n][0]=!1}},setupTypeNumber:function(b){for(var a=z.getBCHTypeNumber(this.typeNumber),g=0;18>g;g++){var e=!b&&1==(a>>g&1);this.modules[Math.floor(g/3)][g% 3+this.moduleCount-8-3][0]=e}for(g=0;18>g;g++)e=!b&&1==(a>>g&1),this.modules[g%3+this.moduleCount-8-3][Math.floor(g/3)][0]=e},setupTypeInfo:function(b,a){a|=this.errorCorrectLevel<<3;a=z.getBCHTypeInfo(a);for(var g=0;15>g;g++){var e=!b&&1==(a>>g&1);6>g?this.modules[g][8][0]=e:8>g?this.modules[g+1][8][0]=e:this.modules[this.moduleCount-15+g][8][0]=e}for(g=0;15>g;g++)e=!b&&1==(a>>g&1),8>g?this.modules[8][this.moduleCount-g-1][0]=e:9>g?this.modules[8][15-g-1+1][0]=e:this.modules[8][15-g-1][0]=e;this.modules[this.moduleCount- 8][8][0]=!b},mapData:function(b,a){for(var g=-1,e=this.moduleCount-1,h=7,m=0,p=this.moduleCount-1;0B;B++)null==this.modules[e][p-B][0]&&(n=!1,m>>h&1)),d=z.getMask(a,e,p-B),this.modules[e][p-B][0]=n=d?!n:n,-1==--h)&&(m++,h=7);if(0>(e+=g)||this.moduleCount<=e){e-=g;g=-g;break}}}};f.PAD0=236;f.PAD1=17;f.createData=function(b,a,g){a=l.getRSBlocks(b,a);for(var e=new t,h=0;h8*b)throw Error("code length overflow. ("+e.getLengthInBits()+"\x3e"+8*b+")");for(e.getLengthInBits()+4<=8*b&&e.put(0,4);0!=e.getLengthInBits()%8;)e.putBit(!1);for(;!(e.getLengthInBits()>=8*b||(e.put(f.PAD0,8),e.getLengthInBits()>=8*b));)e.put(f.PAD1,8);return f.createBytes(e,a)};f.createBytes=function(b,a){for(var g=0,e=0,h=0,m=Array(a.length),p=Array(a.length),n=0;n>>=1;return a},getPatternPosition:function(b){return z.PATTERN_POSITION_TABLE[b-1]},getMask:function(b,a,g){switch(b){case X:return 0==(a+g)%2;case I:return 0==a%2;case ba:return 0==g%3;case S:return 0==(a+g)%3;case ea:return 0==(Math.floor(a/2)+Math.floor(g/3))%2;case ja:return 0==a*g%2+a*g%3;case ka:return 0==(a*g%2+a*g%3)%2;case la:return 0==(a*g%3+(a+g)%2)%2;default:throw Error("bad maskPattern:"+ b);}},getErrorCorrectPolynomial:function(b){for(var a=new k([1],0),g=0;ga)switch(b){case G.MODE_NUMBER:return 10;case G.MODE_ALPHA_NUM:return 9;case G.MODE_8BIT_BYTE:case G.MODE_KANJI:return 8;default:throw Error("mode:"+b);}else if(27>a)switch(b){case G.MODE_NUMBER:return 12;case G.MODE_ALPHA_NUM:return 11;case G.MODE_8BIT_BYTE:return 16;case G.MODE_KANJI:return 10;default:throw Error("mode:"+b);}else{if(!(41> a))throw Error("type:"+a);switch(b){case G.MODE_NUMBER:return 14;case G.MODE_ALPHA_NUM:return 13;case G.MODE_8BIT_BYTE:return 16;case G.MODE_KANJI:return 12;default:throw Error("mode:"+b);}}},getLostPoint:function(b){for(var a=b.getModuleCount(),g=0,e=0;e=n;n++)if(!(0>e+n||a<=e+n))for(var d=-1;1>=d;d++)0>h+d||a<=h+d||0==n&&0==d||p==b.isDark(e+n,h+d)&&m++;5 b)throw Error("glog("+b+")");return D.LOG_TABLE[b]},gexp:function(b){for(;0>b;)b+=255;for(;256<=b;)b-=255;return D.EXP_TABLE[b]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},E=0;8>E;E++)D.EXP_TABLE[E]=1<E;E++)D.EXP_TABLE[E]=D.EXP_TABLE[E-4]^D.EXP_TABLE[E-5]^D.EXP_TABLE[E-6]^D.EXP_TABLE[E-8];for(E=0;255>E;E++)D.LOG_TABLE[D.EXP_TABLE[E]]=E;k.prototype={get:function(b){return this.num[b]},getLength:function(){return this.num.length},multiply:function(b){for(var a=Array(this.getLength()+ b.getLength()-1),g=0;gthis.getLength()-b.getLength())return this;for(var a=D.glog(this.get(0))-D.glog(b.get(0)),g=Array(this.getLength()),e=0;e>>7-b%8&1)},put:function(b,a){for(var g=0;g>>a-g-1&1))},getLengthInBits:function(){return this.length},putBit:function(b){var a=Math.floor(this.length/ 8);this.buffer.length<=a&&this.buffer.push(0);b&&(this.buffer[a]|=128>>>this.length%8);this.length++}};var Z=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171, 911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],pa="undefined"==typeof CanvasRenderingContext2D?(x.prototype.draw=function(b){var a=this._htOption,g=this._el,e=b.getModuleCount(),h=Math.round(a.width/e), m=Math.round((a.height-a.titleHeight)/e),p=(1>=m&&(m=1),this._htOption.width=(h=1>=h?1:h)*e,this._htOption.height=m*e+a.titleHeight,this._htOption.quietZone=Math.round(this._htOption.quietZone),[]),n="",d=Math.round(h*a.dotScale),B=Math.round(m*a.dotScale),v=(4>d&&(B=d=4),a.colorDark),O=a.colorLight;a.backgroundImage&&(a.autoColor?(a.colorDark="rgba(0, 0, 0, .6);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType\x3d0, StartColorStr\x3d'#99000000', EndColorStr\x3d'#99000000');",a.colorLight= "rgba(255, 255, 255, .7);filter:progid:DXImageTransform.Microsoft.Gradient(GradientType\x3d0, StartColorStr\x3d'#B2FFFFFF', EndColorStr\x3d'#B2FFFFFF');"):a.colorLight="rgba(0,0,0,0)",y='\x3cdiv style\x3d"display:inline-block; z-index:-10;position:absolute;"\x3e\x3cimg src\x3d"'+a.backgroundImage+'" widht\x3d"'+(a.width+2*a.quietZone)+'" height\x3d"'+(a.height+2*a.quietZone)+'" style\x3d"opacity:'+a.backgroundImageAlpha+";filter:alpha(opacity\x3d"+100*a.backgroundImageAlpha+'); "/\x3e\x3c/div\x3e', p.push(y));a.quietZone&&(n="display:inline-block; width:"+(a.width+2*a.quietZone)+"px; height:"+(a.width+2*a.quietZone)+"px;background:"+a.quietZoneColor+"; text-align:center;");p.push('\x3cdiv style\x3d"font-size:0;'+n+'"\x3e');p.push('\x3ctable style\x3d"font-size:0;border:0;border-collapse:collapse; margin-top:'+a.quietZone+'px;" border\x3d"0" cellspacing\x3d"0" cellspadding\x3d"0" align\x3d"center" valign\x3d"middle"\x3e');p.push('\x3ctr height\x3d"'+a.titleHeight+'" align\x3d"center"\x3e\x3ctd style\x3d"border:0;border-collapse:collapse;margin:0;padding:0" colspan\x3d"'+ e+'"\x3e');a.title&&(y=a.titleColor,n=a.titleFont,p.push('\x3cdiv style\x3d"width:100%;margin-top:'+a.titleTop+"px;color:"+y+";font:"+n+";background:"+a.titleBackgroundColor+'"\x3e'+a.title+"\x3c/div\x3e"));a.subTitle&&p.push('\x3cdiv style\x3d"width:100%;margin-top:'+(a.subTitleTop-a.titleTop)+"px;color:"+a.subTitleColor+"; font:"+a.subTitleFont+'"\x3e'+a.subTitle+"\x3c/div\x3e");p.push("\x3c/td\x3e\x3c/tr\x3e");for(var r=0;r=V._android&&(g=1/window.devicePixelRatio,e=CanvasRenderingContext2D.prototype.drawImage,CanvasRenderingContext2D.prototype.drawImage=function(h, m,p,n,d,B,v,O,r){if("nodeName"in h&&/img/i.test(h.nodeName))for(var C=arguments.length-1;1<=C;C--)arguments[C]*=g;else void 0===O&&(arguments[1]*=g,arguments[2]*=g,arguments[3]*=g,arguments[4]*=g);e.apply(this,arguments)});return a.prototype.draw=function(h){function m(){0=v&&(v=1),1>=O&&(O=1),d.width=v*B,d.height=O*B+d.titleHeight,d.quietZone=Math.round(d.quietZone),this._elCanvas.width=d.width+2*d.quietZone,this._elCanvas.height=d.height+2*d.quietZone,"canvas"!=this._htOption.drawer&&(this._oContext=new C2S(this._elCanvas.width,this._elCanvas.height)),this.clear(),this._oContext),C=(r.lineWidth=0,r.fillStyle=d.colorLight,r.fillRect(0,0,this._elCanvas.width,this._elCanvas.height),this);d.backgroundImage?((n=new Image).onload=function(){r.globalAlpha= 1;r.globalAlpha=d.backgroundImageAlpha;var P=r.imageSmoothingQuality,A=r.imageSmoothingEnabled;r.imageSmoothingEnabled=!0;r.imageSmoothingQuality="high";r.drawImage(n,0,d.titleHeight,d.width+2*d.quietZone,d.height+2*d.quietZone-d.titleHeight);r.imageSmoothingEnabled=A;r.imageSmoothingQuality=P;r.globalAlpha=1;p.call(C,h)},null!=d.crossOrigin&&(n.crossOrigin=d.crossOrigin),n.originalSrc=d.backgroundImage,n.src=d.backgroundImage):p.call(C,h)},a.prototype.makeImage=function(){this._bIsPainted&&!function(h, m){var p=this;p._fFail=m;p._fSuccess=h;null===p._bSupportDataURI?((m=document.createElement("img")).onabort=h=function(){p._bSupportDataURI=!1;p._fFail&&p._fFail.call(p)},m.onerror=h,m.onload=function(){p._bSupportDataURI=!0;p._fSuccess&&p._fSuccess.call(p)},m.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg\x3d\x3d"):!0===p._bSupportDataURI&&p._fSuccess?p._fSuccess.call(p):!1===p._bSupportDataURI&&p._fFail&& p._fFail.call(p)}.call(this,b)},a.prototype.isPainted=function(){return this._bIsPainted},a.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1},a.prototype.remove=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1;this._el.innerHTML=""},a.prototype.round=function(h){return h&&Math.floor(1E3*h)/1E3},a}();(u=function(b,a){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000", colorLight:"#ffffff",correctLevel:N.H,dotScale:1,dotScaleTiming:1,dotScaleTiming_H:q,dotScaleTiming_V:q,dotScaleA:1,dotScaleAO:q,dotScaleAI:q,quietZone:0,quietZoneColor:"rgba(0,0,0,0)",title:"",titleFont:"normal normal bold 16px Arial",titleColor:"#000000",titleBackgroundColor:"#ffffff",titleHeight:0,titleTop:30,subTitle:"",subTitleFont:"normal normal normal 14px Arial",subTitleColor:"#4F4F4F",subTitleTop:60,logo:q,logoWidth:q,logoHeight:q,logoMaxWidth:q,logoMaxHeight:q,logoBackgroundColor:"#ffffff", logoBackgroundTransparent:!1,PO:q,PI:q,PO_TL:q,PI_TL:q,PO_TR:q,PI_TR:q,PO_BL:q,PI_BL:q,AO:q,AI:q,timing:q,timing_H:q,timing_V:q,backgroundImage:q,backgroundImageAlpha:1,autoColor:!1,autoColorDark:"rgba(0, 0, 0, .6)",autoColorLight:"rgba(255, 255, 255, .7)",onRenderingStart:q,onRenderingEnd:q,version:0,tooltip:!1,binary:!1,drawer:"canvas",crossOrigin:null,utf8WithoutBOM:!0},a="string"==typeof a?{text:a}:a)for(var g in a)this._htOption[g]=a[g];(0>this._htOption.version||40this._htOption.dotScale||1this._htOption.dotScaleTiming||1this._htOption.dotScaleTiming_H||1this._htOption.dotScaleTiming_V||1this._htOption.dotScaleA||1this._htOption.dotScaleAO||1this._htOption.dotScaleAI||1this._htOption.backgroundImageAlpha||1