hobhkk7262owivg.cc
Open in
urlscan Pro
134.122.205.98
Public Scan
Submitted URL: http://hobhkk7262owivg.cc/js/chunk-74926972.0bd1ca12.js
Effective URL: https://hobhkk7262owivg.cc/js/chunk-74926972.0bd1ca12.js
Submission: On October 27 via api from US — Scanned from SG
Effective URL: https://hobhkk7262owivg.cc/js/chunk-74926972.0bd1ca12.js
Submission: On October 27 via api from US — Scanned from SG
Form analysis
0 forms found in the DOMText Content
(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-74926972"],{"658f5":function(t,e,r){var n;n=function(){return e=[function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}t.exports=function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){t.exports=r(14)()},function(t,e,r){"use strict";r.d(e,"a",(function(){return a})),r.d(e,"b",(function(){return l})),r.d(e,"c",(function(){return f}));e=r(0);var n=r.n(e);e=r(1),r=r.n(e);function o(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=Number(t)?3:0)}r()(u,[{key:"getLength",value:function(){return this.parsedData.length}},{key:"write",value:function(t){for(var e=0,r=this.parsedData.length;e<r;e++)t.put(this.parsedData[e],8)}}]);var i=u,a=(r()(s,[{key:"addData",value:function(t){if(this.typeNumber<=0)this.typeNumber=function(e){for(var r=1,n=o(t),i=0,a=x.length;i<a;i++){var s=0;switch(e){case l.L:s=x[i][0];break;case l.M:s=x[i][1];break;case l.Q:s=x[i][2];break;case l.H:s=x[i][3]}if(n<=s)break;r++}if(r>x.length)throw new Error("Too long data");return r}(this.errorCorrectLevel);else{if(40<this.typeNumber)throw new Error("Invalid QR version: ".concat(this.typeNumber));if(!function(e,r){var n=o(t),i=e-1,a=0;switch(r){case l.L:a=x[i][0];break;case l.M:a=x[i][1];break;case l.Q:a=x[i][2];break;case l.H:a=x[i][3]}return n<=a}(this.typeNumber,this.errorCorrectLevel))throw new Error("Data is too long for QR version: ".concat(this.typeNumber))}var e=new i(t);this.dataList.push(e),this.dataCache=void 0}},{key:"isDark",value:function(t,e){if(t<0||this.moduleCount<=t||e<0||this.moduleCount<=e)throw new Error("".concat(t,",").concat(e));return this.modules[t][e]}},{key:"getModuleCount",value:function(){return this.moduleCount}},{key:"make",value:function(){this.makeImpl(!1,this.getBestMaskPattern())}},{key:"makeImpl",value:function(t,e){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++)this.modules[r][n]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(t,e),7<=this.typeNumber&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=s.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)}},{key:"setupPositionProbePattern",value:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[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)}},{key:"getBestMaskPattern",value:function(){if(Number.isInteger(this.maskPattern)&&Object.values(c).includes(this.maskPattern))return this.maskPattern;for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=f.getLostPoint(this);(0==r||n<t)&&(t=n,e=r)}return e}},{key:"setupTimingPattern",value:function(){for(var t=8;t<this.moduleCount-8;t++)null==this.modules[t][6]&&(this.modules[t][6]=t%2==0);for(var e=8;e<this.moduleCount-8;e++)null==this.modules[6][e]&&(this.modules[6][e]=e%2==0)}},{key:"setupPositionAdjustPattern",value:function(){for(var t=f.getPatternPosition(this.typeNumber),e=0;e<t.length;e++)for(var r=0;r<t.length;r++){var n=t[e],o=t[r];if(null==this.modules[n][o])for(var i=-2;i<=2;i++)for(var a=-2;a<=2;a++)this.modules[n+i][o+a]=-2==i||2==i||-2==a||2==a||0==i&&0==a}}},{key:"setupTypeNumber",value:function(t){for(var e=f.getBCHTypeNumber(this.typeNumber),r=0;r<18;r++){var n=!t&&1==(e>>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++)n=!t&&1==(e>>r&1),this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},{key:"setupTypeInfo",value:function(t,e){e=this.errorCorrectLevel<<3|e;for(var r=f.getBCHTypeInfo(e),n=0;n<15;n++){var o=!t&&1==(r>>n&1);n<6?this.modules[n][8]=o:n<8?this.modules[n+1][8]=o:this.modules[this.moduleCount-15+n][8]=o}for(n=0;n<15;n++)o=!t&&1==(r>>n&1),n<8?this.modules[8][this.moduleCount-n-1]=o:n<9?this.modules[8][15-n-1+1]=o:this.modules[8][15-n-1]=o;this.modules[this.moduleCount-8][8]=!t}},{key:"mapData",value:function(t,e){for(var r=-1,n=this.moduleCount-1,o=7,i=0,a=this.moduleCount-1;0<a;a-=2)for(6==a&&a--;;){for(var s,u=0;u<2;u++)null==this.modules[n][a-u]&&(s=!1,i<t.length&&(s=1==(t[i]>>>o&1)),f.getMask(e,n,a-u)&&(s=!s),this.modules[n][a-u]=s,-1==--o)&&(i++,o=7);if((n+=r)<0||this.moduleCount<=n){n-=r,r=-r;break}}}}],[{key:"createData",value:function(t,e,r){for(var n=m.getRSBlocks(t,e),o=new b,i=0;i<r.length;i++){var a=r[i];o.put(a.mode,4),o.put(a.getLength(),f.getLengthInBits(a.mode,t)),a.write(o)}var u=0;for(i=0;i<n.length;i++)u+=n[i].dataCount;if(o.getLengthInBits()>8*u)throw new Error("code length overflow. (".concat(o.getLengthInBits(),">").concat(8*u,")"));for(o.getLengthInBits()+4<=8*u&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(!1);for(;!(o.getLengthInBits()>=8*u||(o.put(s.PAD0,8),o.getLengthInBits()>=8*u));)o.put(s.PAD1,8);return s.createBytes(o,n)}},{key:"createBytes",value:function(t,e){for(var r=0,n=0,o=0,i=new Array(e.length),a=new Array(e.length),s=0;s<e.length;s++){var u=e[s].dataCount,l=e[s].totalCount-u;n=Math.max(n,u),o=Math.max(o,l);i[s]=new Array(u);for(var h=0;h<i[s].length;h++)i[s][h]=255&t.buffer[h+r];r+=u;u=f.getErrorCorrectPolynomial(l);var c=new y(i[s],u.getLength()-1).mod(u);for(a[s]=new Array(u.getLength()-1),h=0;h<a[s].length;h++){var p=h+c.getLength()-a[s].length;a[s][h]=0<=p?c.get(p):0}}var g=0;for(h=0;h<e.length;h++)g+=e[h].totalCount;var d=new Array(g),m=0;for(h=0;h<n;h++)for(s=0;s<e.length;s++)h<i[s].length&&(d[m++]=i[s][h]);for(h=0;h<o;h++)for(s=0;s<e.length;s++)h<a[s].length&&(d[m++]=a[s][h]);return d}}]),s);function s(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:-1,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:l.L;n()(this,s),this.moduleCount=0,this.dataList=[],this.typeNumber=t,this.errorCorrectLevel=e,this.moduleCount=0,this.dataList=[]}function u(t){n()(this,u),this.mode=h.MODE_8BIT_BYTE,this.parsedData=[],this.data=t;for(var e=[],r=0,o=this.data.length;r<o;r++){var i=[],a=this.data.charCodeAt(r);65536<a?(i[0]=240|(1835008&a)>>>18,i[1]=128|(258048&a)>>>12,i[2]=128|(4032&a)>>>6,i[3]=128|63&a):2048<a?(i[0]=224|(61440&a)>>>12,i[1]=128|(4032&a)>>>6,i[2]=128|63&a):128<a?(i[0]=192|(1984&a)>>>6,i[1]=128|63&a):i[0]=a,e.push(i)}this.parsedData=Array.prototype.concat.apply([],e),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}a.PAD0=236,a.PAD1=17;var l={L:1,M:0,Q:3,H:2},h={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},c={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f=(r()(p,null,[{key:"getBCHTypeInfo",value:function(t){for(var e=t<<10;0<=p.getBCHDigit(e)-p.getBCHDigit(p.G15);)e^=p.G15<<p.getBCHDigit(e)-p.getBCHDigit(p.G15);return(t<<10|e)^p.G15_MASK}},{key:"getBCHTypeNumber",value:function(t){for(var e=t<<12;0<=p.getBCHDigit(e)-p.getBCHDigit(p.G18);)e^=p.G18<<p.getBCHDigit(e)-p.getBCHDigit(p.G18);return t<<12|e}},{key:"getBCHDigit",value:function(t){for(var e=0;0!=t;)e++,t>>>=1;return e}},{key:"getPatternPosition",value:function(t){return p.PATTERN_POSITION_TABLE[t-1]}},{key:"getMask",value:function(t,e,r){switch(t){case c.PATTERN000:return(e+r)%2==0;case c.PATTERN001:return e%2==0;case c.PATTERN010:return r%3==0;case c.PATTERN011:return(e+r)%3==0;case c.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case c.PATTERN101:return e*r%2+e*r%3==0;case c.PATTERN110:return(e*r%2+e*r%3)%2==0;case c.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:".concat(t))}}},{key:"getErrorCorrectPolynomial",value:function(t){for(var e=new y([1],0),r=0;r<t;r++)e=e.multiply(new y([1,g.gexp(r)],0));return e}},{key:"getLengthInBits",value:function(t,e){if(1<=e&&e<10)switch(t){case h.MODE_NUMBER:return 10;case h.MODE_ALPHA_NUM:return 9;case h.MODE_8BIT_BYTE:case h.MODE_KANJI:return 8;default:throw new Error("mode:".concat(t))}else if(e<27)switch(t){case h.MODE_NUMBER:return 12;case h.MODE_ALPHA_NUM:return 11;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 10;default:throw new Error("mode:".concat(t))}else{if(!(e<41))throw new Error("type:".concat(e));switch(t){case h.MODE_NUMBER:return 14;case h.MODE_ALPHA_NUM:return 13;case h.MODE_8BIT_BYTE:return 16;case h.MODE_KANJI:return 12;default:throw new Error("mode:".concat(t))}}}},{key:"getLostPoint",value:function(t){for(var e=t.getModuleCount(),r=0,n=0;n<e;n++)for(var o=0;o<e;o++){for(var i=0,a=t.isDark(n,o),s=-1;s<=1;s++)if(!(n+s<0||e<=n+s))for(var u=-1;u<=1;u++)o+u<0||e<=o+u||0==s&&0==u||a==t.isDark(n+s,o+u)&&i++;5<i&&(r+=3+i-5)}for(n=0;n<e-1;n++)for(o=0;o<e-1;o++){var l=0;t.isDark(n,o)&&l++,t.isDark(n+1,o)&&l++,t.isDark(n,o+1)&&l++,t.isDark(n+1,o+1)&&l++,0!=l&&4!=l||(r+=3)}for(n=0;n<e;n++)for(o=0;o<e-6;o++)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++)for(n=0;n<e-6;n++)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 h=0;for(o=0;o<e;o++)for(n=0;n<e;n++)t.isDark(n,o)&&h++;return r+Math.abs(100*h/e/e-50)/5*10}}]),p);function p(){n()(this,p)}f.PATTERN_POSITION_TABLE=[[],[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]],f.G15=1335,f.G18=7973,f.G15_MASK=21522,r()(d,null,[{key:"glog",value:function(t){if(t<1)throw new Error("glog(".concat(t,")"));return d.LOG_TABLE[t]}},{key:"gexp",value:function(t){for(;t<0;)t+=255;for(;256<=t;)t-=255;return d.EXP_TABLE[t]}}]);var g=d;function d(){n()(this,d)}g.EXP_TABLE=new Array(256),g.LOG_TABLE=new Array(256),g._constructor=function(){for(var t=0;t<8;t++)g.EXP_TABLE[t]=1<<t;for(t=8;t<256;t++)g.EXP_TABLE[t]=g.EXP_TABLE[t-4]^g.EXP_TABLE[t-5]^g.EXP_TABLE[t-6]^g.EXP_TABLE[t-8];for(t=0;t<255;t++)g.LOG_TABLE[g.EXP_TABLE[t]]=t}(),r()(w,[{key:"get",value:function(t){return this.num[t]}},{key:"getLength",value:function(){return this.num.length}},{key:"multiply",value:function(t){for(var e=new Array(this.getLength()+t.getLength()-1),r=0;r<this.getLength();r++)for(var n=0;n<t.getLength();n++)e[r+n]^=g.gexp(g.glog(this.get(r))+g.glog(t.get(n)));return new w(e,0)}},{key:"mod",value:function(t){if(this.getLength()-t.getLength()<0)return this;for(var e=g.glog(this.get(0))-g.glog(t.get(0)),r=new Array(this.getLength()),n=0;n<this.getLength();n++)r[n]=this.get(n);for(n=0;n<t.getLength();n++)r[n]^=g.gexp(g.glog(t.get(n))+e);return new w(r,0).mod(t)}}]);var y=w,m=(r()(v,null,[{key:"getRSBlocks",value:function(t,e){var r=v.getRsBlockTable(t,e);if(null==r)throw new Error("bad rs block @ typeNumber:".concat(t,"/errorCorrectLevel:").concat(e));for(var n=r.length/3,o=[],i=0;i<n;i++)for(var a=r[3*i+0],s=r[3*i+1],u=r[3*i+2],l=0;l<a;l++)o.push(new v(s,u));return o}},{key:"getRsBlockTable",value:function(t,e){switch(e){case l.L:return v.RS_BLOCK_TABLE[4*(t-1)+0];case l.M:return v.RS_BLOCK_TABLE[4*(t-1)+1];case l.Q:return v.RS_BLOCK_TABLE[4*(t-1)+2];case l.H:return v.RS_BLOCK_TABLE[4*(t-1)+3];default:return}}}]),v);function v(t,e){n()(this,v),this.totalCount=t,this.dataCount=e}function w(t,e){if(n()(this,w),null==t.length)throw new Error("".concat(t.length,"/").concat(e));for(var r=0;r<t.length&&0==t[r];)r++;this.num=new Array(t.length-r+e);for(var o=0;o<t.length-r;o++)this.num[o]=t[o+r]}m.RS_BLOCK_TABLE=[[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],[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]],r()(A,[{key:"get",value:function(t){var e=Math.floor(t/8);return 1==(this.buffer[e]>>>7-t%8&1)}},{key:"put",value:function(t,e){for(var r=0;r<e;r++)this.putBit(1==(t>>>e-r-1&1))}},{key:"getLengthInBits",value:function(){return this.length}},{key:"putBit",value:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}}]);var b=A,x=[[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]];function A(){n()(this,A),this.buffer=[],this.length=0}},function(t,e,r){"use strict";(function(t){r.d(e,"b",(function(){return u})),r.d(e,"a",(function(){return l}));var n=r(2),o=r.n(n);function i(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}function a(t,e){for(var r,n="",o=0,i=-1,a=0,s=0;s<=t.length;++s){if(s<t.length)r=t.charCodeAt(s);else{if(47===r)break;r=47}if(47===r){if(i!==s-1&&1!==a)if(i!==s-1&&2===a){if(n.length<2||2!==o||46!==n.charCodeAt(n.length-1)||46!==n.charCodeAt(n.length-2))if(2<n.length){var u=n.lastIndexOf("/");if(u!==n.length-1){o=-1===u?(n="",0):(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),i=s,a=0;continue}}else if(2===n.length||1===n.length){n="",i=s,a=o=0;continue}e&&(0<n.length?n+="/..":n="..",o=2)}else 0<n.length?n+="/"+t.slice(i+1,s):n=t.slice(i+1,s),o=s-i-1;i=s,a=0}else 46===r&&-1!==a?++a:a=-1}return n}var s={resolve:function(){for(var e,r="",n=!1,o=arguments.length-1;-1<=o&&!n;o--){var s=0<=o?arguments[o]:e=void 0===e?t.cwd():e;i(s),0!==s.length&&(r=s+"/"+r,n=47===s.charCodeAt(0))}return r=a(r,!n),n?0<r.length?"/"+r:"/":0<r.length?r:"."},normalize:function(t){var e,r;return i(t),0===t.length?".":(e=47===t.charCodeAt(0),r=47===t.charCodeAt(t.length-1),0<(t=0!==(t=a(t,!e)).length||e?t:".").length&&r&&(t+="/"),e?"/"+t:t)},isAbsolute:function(t){return i(t),0<t.length&&47===t.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var t,e=0;e<arguments.length;++e){var r=arguments[e];i(r),0<r.length&&(void 0===t?t=r:t+="/"+r)}return void 0===t?".":s.normalize(t)},relative:function(t,e){if(i(t),i(e),t===e)return"";if((t=s.resolve(t))===(e=s.resolve(e)))return"";for(var r=1;r<t.length&&47===t.charCodeAt(r);++r);for(var n=t.length,o=n-r,a=1;a<e.length&&47===e.charCodeAt(a);++a);for(var u=e.length-a,l=o<u?o:u,h=-1,c=0;c<=l;++c){if(c===l){if(l<u){if(47===e.charCodeAt(a+c))return e.slice(a+c+1);if(0===c)return e.slice(a+c)}else l<o&&(47===t.charCodeAt(r+c)?h=c:0===c&&(h=0));break}var f=t.charCodeAt(r+c);if(f!==e.charCodeAt(a+c))break;47===f&&(h=c)}var p="";for(c=r+h+1;c<=n;++c)c!==n&&47!==t.charCodeAt(c)||(0===p.length?p+="..":p+="/..");return 0<p.length?p+e.slice(a+h):(47===e.charCodeAt(a+=h)&&++a,e.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(i(t),0===t.length)return".";for(var e=47===t.charCodeAt(0),r=-1,n=!0,o=t.length-1;1<=o;--o)if(47===t.charCodeAt(o)){if(!n){r=o;break}}else n=!1;return-1===r?e?"/":".":e&&1===r?"//":t.slice(0,r)},basename:function(t,e){if(void 0!==e&&"string"!=typeof e)throw new TypeError('"ext" argument must be a string');i(t);var r=0,n=-1,o=!0;if(void 0!==e&&0<e.length&&e.length<=t.length){if(e.length===t.length&&e===t)return"";for(var a=e.length-1,s=-1,u=t.length-1;0<=u;--u){var l=t.charCodeAt(u);if(47===l){if(!o){r=u+1;break}}else-1===s&&(o=!1,s=u+1),0<=a&&(l===e.charCodeAt(a)?-1==--a&&(n=u):(a=-1,n=s))}return r===n?n=s:-1===n&&(n=t.length),t.slice(r,n)}for(u=t.length-1;0<=u;--u)if(47===t.charCodeAt(u)){if(!o){r=u+1;break}}else-1===n&&(o=!1,n=u+1);return-1===n?"":t.slice(r,n)},extname:function(t){i(t);for(var e=-1,r=0,n=-1,o=!0,a=0,s=t.length-1;0<=s;--s){var u=t.charCodeAt(s);if(47!==u)-1===n&&(o=!1,n=s+1),46===u?-1===e?e=s:1!==a&&(a=1):-1!==e&&(a=-1);else if(!o){r=s+1;break}}return-1===e||-1===n||0===a||1===a&&e===n-1&&e===r+1?"":t.slice(e,n)},format:function(t){if(null===t||"object"!==o()(t))throw new TypeError('The "pathObject" argument must be of type Object. Received type '+o()(t));return e=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||""),e?e===t.root?e+r:e+"/"+r:r;var e,r},parse:function(t){i(t);var e={root:"",dir:"",base:"",ext:"",name:""};if(0!==t.length){for(var r,n=47===t.charCodeAt(0),o=n?(e.root="/",1):0,a=-1,s=0,u=-1,l=!0,h=t.length-1,c=0;o<=h;--h)if(47!==(r=t.charCodeAt(h)))-1===u&&(l=!1,u=h+1),46===r?-1===a?a=h:1!==c&&(c=1):-1!==a&&(c=-1);else if(!l){s=h+1;break}-1===a||-1===u||0===c||1===c&&a===u-1&&a===s+1?-1!==u&&(e.base=e.name=0===s&&n?t.slice(1,u):t.slice(s,u)):(0===s&&n?(e.name=t.slice(1,a),e.base=t.slice(1,u)):(e.name=t.slice(s,a),e.base=t.slice(s,u)),e.ext=t.slice(a,u)),0<s?e.dir=t.slice(0,s-1):n&&(e.dir="/")}return e},sep:"/",delimiter:":",win32:null,posix:null},u=(s.posix=s).extname,l=s.basename}).call(this,r(19))},function(t,e){function r(t,e,r,n,o,i,a){try{var s=t[i](a),u=s.value}catch(t){return r(t)}s.done?e(u):Promise.resolve(u).then(n,o)}t.exports=function(t){return function(){var e=this,n=arguments;return new Promise((function(o,i){var a=t.apply(e,n);function s(t){r(a,o,i,s,u,"next",t)}function u(t){r(a,o,i,s,u,"throw",t)}s(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";r.d(e,"b",(function(){return w})),r.d(e,"a",(function(){return b}));const n=(t,e,r={},o=r)=>{var i;return Array.isArray(e)?e.forEach(e=>n(t,e,r,o)):"function"==typeof e?e(t,r,o,n):(i=Object.keys(e)[0],Array.isArray(e[i])?(o[i]={},n(t,e[i],r,o[i])):o[i]=e[i](t,r,o,n)),r},o=(t,e)=>(r,n,o,i)=>{e(r,n,o)&&i(r,t,n,o)},i=(t=0)=>e=>e.data[e.pos+t],a=t=>e=>e.data.subarray(e.pos,e.pos+=t),s=t=>e=>e.data.subarray(e.pos,e.pos+t),u=t=>e=>Array.from(a(t)(e)).map(t=>String.fromCharCode(t)).join(""),l=t=>e=>(e=a(2)(e),t?(e[1]<<8)+e[0]:(e[0]<<8)+e[1]),h=(t,e)=>(r,n,o)=>{for(var i="function"==typeof e?e(r,n,o):e,s=a(t),u=new Array(i),l=0;l<i;l++)u[l]=s(r);return u},c=t=>e=>{const r=e.data[e.pos++],n=new Array(8);for(var o=0;o<8;o++)n[7-o]=!!(r&1<<o);return Object.keys(t).reduce((e,r)=>{var o=t[r];return o.length?e[r]=((t,e,r)=>{for(var n=0,o=0;o<r;o++)n+=t[e+o]&&2**(r-o-1);return n})(n,o.index,o.length):e[r]=n[o.index],e},{})};function f(t,e,r){var n,o,i;if(t.image)return n=t.image,o=n.descriptor.width*n.descriptor.height,i=function(t,e){for(var r,n,i,a,s,u,l,h,c,f,p,g=o,d=new Array(o),y=new Array(4096),m=new Array(4096),v=new Array(4097),w=1+(r=1<<(s=t)),b=2+r,x=-1,A=(1<<(n=s+1))-1,E=0;E<r;E++)y[E]=0,m[E]=E;for(a=u=l=h=c=f=p=0;a<g;){if(0===c){if(l<n){u+=e[p]<<l,l+=8,p++;continue}if(E=u&A,u>>=n,l-=n,b<E||E==w)break;if(E==r){A=(1<<(n=s+1))-1,b=2+r,x=-1;continue}if(-1==x){v[c++]=m[E],h=x=E;continue}for((i=E)==b&&(v[c++]=h,E=x);r<E;)v[c++]=m[E],E=y[E];h=255&m[E],v[c++]=h,b<4096&&(y[b]=x,m[b]=h,0==(++b&A))&&b<4096&&(n++,A+=b),x=i}c--,d[f++]=v[c],a++}for(a=f;a<g;a++)d[a]=0;return d}(n.data.minCodeSize,n.data.blocks),i={pixels:i=n.descriptor.lct.interlaced?function(t,e){for(var r=new Array(t.length),n=t.length/e,o=[0,4,2,1],i=[8,8,4,2],a=0,s=0;s<4;s++)for(var u=o[s];u<n;u+=i[s]){var l=u,h=a;h=t.slice(h*e,(h+1)*e),r.splice.apply(r,[l*e,e].concat(h)),a++}return r}(i,n.descriptor.width):i,dims:{top:t.image.descriptor.top,left:t.image.descriptor.left,width:t.image.descriptor.width,height:t.image.descriptor.height}},n.descriptor.lct&&n.descriptor.lct.exists?i.colorTable=n.lct:i.colorTable=e,t.gce&&(i.delay=10*(t.gce.delay||10),i.disposalType=t.gce.extras.disposal,t.gce.extras.transparentColorGiven)&&(i.transparentIndex=t.gce.transparentColorIndex),r&&(i.patch=function(t){for(var e=t.pixels.length,r=new Uint8ClampedArray(4*e),n=0;n<e;n++){var o=4*n,i=t.pixels[n],a=t.colorTable[i];r[o]=a[0],r[1+o]=a[1],r[2+o]=a[2],r[3+o]=i!==t.transparentIndex?255:0}return r}(i)),i}r={blocks:t=>{for(var e=[],r=t.data.length,n=0,o=t.data[t.pos++];0!==o&&o;o=t.data[t.pos++]){if(t.pos+o>=r){const o=r-t.pos;e.push(a(o)(t)),n+=o;break}e.push(a(o)(t)),n+=o}for(var i=new Uint8Array(n),s=0,u=0;u<e.length;u++)i.set(e[u],s),s+=e[u].length;return i}},e=o({gce:[{codes:a(2)},{byteSize:t=>t.data[t.pos++]},{extras:c({future:{index:0,length:3},disposal:{index:3,length:3},userInput:{index:6},transparentColorGiven:{index:7}})},{delay:l(!0)},{transparentColorIndex:t=>t.data[t.pos++]},{terminator:t=>t.data[t.pos++]}]},t=>(t=s(2)(t),33===t[0]&&249===t[1]));var p,g,d=o({image:[{code:t=>t.data[t.pos++]},{descriptor:[{left:l(!0)},{top:l(!0)},{width:l(!0)},{height:l(!0)},{lct:c({exists:{index:0},interlaced:{index:1},sort:{index:2},future:{index:3,length:2},size:{index:5,length:3}})}]},o({lct:h(3,(t,e,r)=>Math.pow(2,r.descriptor.lct.size+1))},(t,e,r)=>r.descriptor.lct.exists),{data:[{minCodeSize:t=>t.data[t.pos++]},r]}]},t=>44===i()(t)),y=o({text:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{preData:(t,e,r)=>a(r.text.blockSize)(t)},r]},t=>(t=s(2)(t),33===t[0]&&1===t[1])),m=o({application:[{codes:a(2)},{blockSize:t=>t.data[t.pos++]},{id:(t,e,r)=>u(r.blockSize)(t)},r]},t=>(t=s(2)(t),33===t[0]&&255===t[1])),v=(r=o({comment:[{codes:a(2)},r]},t=>(t=s(2)(t),33===t[0]&&254===t[1])),[{header:[{signature:u(3)},{version:u(3)}]},{lsd:[{width:l(!0)},{height:l(!0)},{gct:c({exists:{index:0},resolution:{index:1,length:3},sort:{index:4},size:{index:5,length:3}})},{backgroundColorIndex:t=>t.data[t.pos++]},{pixelAspectRatio:t=>t.data[t.pos++]}]},o({gct:h(3,(t,e)=>Math.pow(2,e.lsd.gct.size+1))},(t,e)=>e.lsd.gct.exists),{frames:(p=[e,m,r,d,y],g=t=>(t=i()(t),33===t||44===t),(t,e,r,n)=>{var o=[];let i=t.pos;for(;g(t,e,r);){const r={};if(n(t,p,e,r),t.pos===i)break;i=t.pos,o.push(r)}return o})}]),w=function(t){return t=new Uint8Array(t),n({data:t,pos:0},v)},b=function(t,e){return t.frames.filter((function(t){return t.image})).map((function(r){return f(r,t.gct,e)}))}},function(t,e){var r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return p}));var n=r(2),o=r.n(n),i=(n=r(0),r.n(n)),a=(n=r(1),n=r.n(n),r(3)),s=r.n(a),u=(a=r(10),r(7)),l=r(4),h=r(12),c=a.a.Canvas;function f(t){if(t)return new Promise((function(r,n){var o,i;"data"==t.slice(0,4)?((o=new Image).onload=function(){r(o),e(o)},o.onerror=function(){n("Image load error"),e(o)},o.src=t):((i=new Image).setAttribute("crossOrigin","Anonymous"),i.onload=function(){r(i)},i.onerror=function(){n("Image load error")},i.src=t)}));function e(t){t.onload=null,t.onerror=null}}n()(g,[{key:"draw",value:function(){var t=this;return new Promise((function(e){return t._draw().then(e)}))}},{key:"_clear",value:function(){this.canvasContext.clearRect(0,0,this.canvas.width,this.canvas.height)}},{key:"_draw",value:function(){var e,r,n,o,i,a,p,y;return i=this,p=a=void 0,y=s.a.mark((function i(){var a,p,y,m,v,w,b,x,A,E,C,k,P,T,_,B,R,S,D,L,M,I,O,U,N,j,F,Y,z,G,H,q,Q,X,K,$,J,V,Z,W,tt,et,rt,nt,ot,it,at,st,ut,lt,ht,ct,ft,pt,gt,dt,yt,mt,vt;return s.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=null==(e=this.qrCode)?void 0:e.moduleCount,p=this.options.size,((b=this.options.margin)<0||p<=2*b)&&(b=0),y=Math.ceil(b),b=p-2*b,m=this.options.whiteMargin,v=this.options.backgroundDimming,w=Math.ceil(b/a),A=new c(x=(b=w*a)+2*y,x),E=A.getContext("2d"),this._clear(),E.save(),E.translate(y,y),C=new c(x,x),k=C.getContext("2d"),P=null,T=[],!this.options.gifBackground){i.next=47;break}if(_=Object(u.b)(this.options.gifBackground),P=_,T=Object(u.a)(_,!0),!this.options.autoColor){i.next=45;break}D=S=R=B=_=0;case 28:if(D<T[0].colorTable.length){if(200<(L=T[0].colorTable[D])[0]||200<L[1]||200<L[2])return i.abrupt("continue",38);i.next=32}else i.next=41;break;case 32:if(0===L[0]&&0===L[1]&&0===L[2])return i.abrupt("continue",38);i.next=34;break;case 34:S++,_+=L[0],B+=L[1],R+=L[2];case 38:D++,i.next=28;break;case 41:_=~~(_/S),B=~~(B/S),R=~~(R/S),this.options.colorDark="rgb(".concat(_,",").concat(B,",").concat(R,")");case 45:i.next=61;break;case 47:if(this.options.backgroundImage)return i.next=50,f(this.options.backgroundImage);i.next=58;break;case 50:W=i.sent,this.options.autoColor&&(q=g._getAverageRGB(W),this.options.colorDark="rgb(".concat(q.r,",").concat(q.g,",").concat(q.b,")")),k.drawImage(W,0,0,W.width,W.height,0,0,x,x),k.rect(0,0,x,x),k.fillStyle=v,k.fill(),i.next=61;break;case 58:k.rect(0,0,x,x),k.fillStyle=this.options.colorLight,k.fill();case 61:for(M=l.c.getPatternPosition(this.qrCode.typeNumber),I=(null==(r=null==(e=this.options.components)?void 0:e.data)?void 0:r.scale)||.4,O=.5*(1-I),U=0;U<a;U++)for(N=0;N<a;N++){for(G=this.qrCode.isDark(U,N),Y=6==U&&8<=N&&N<=a-8||6==N&&8<=U&&U<=a-8,j=N<8&&(U<8||a-8<=U)||a-8<=N&&U<8||Y,F=1;F<M.length-1;F++)j=j||U>=M[F]-2&&U<=M[F]+2&&N>=M[F]-2&&N<=M[F]+2;Y=N*w+(j?0:O*w),z=U*w+(j?0:O*w),E.strokeStyle=G?this.options.colorDark:this.options.colorLight,E.lineWidth=.5,E.fillStyle=G?this.options.colorDark:this.options.colorLight,0===M.length?j||E.fillRect(Y,z,(j?1:I)*w,(j?1:I)*w):(G=N<a-4&&a-4-5<=N&&U<a-4&&a-4-5<=U,j||G||E.fillRect(Y,z,(j?1:I)*w,(j?1:I)*w))}if(H=M[M.length-1],q=this.options.colorLight,E.fillStyle=q,E.fillRect(0,0,8*w,8*w),E.fillRect(0,(a-8)*w,8*w,8*w),E.fillRect((a-8)*w,0,8*w,8*w),null!=(r=null==(r=this.options.components)?void 0:r.timing)&&r.protectors&&(E.fillRect(8*w,6*w,(a-8-8)*w,w),E.fillRect(6*w,8*w,w,(a-8-8)*w)),null!=(r=null==(r=this.options.components)?void 0:r.cornerAlignment)&&r.protectors&&g._drawAlignProtector(E,H,H,w),null==(r=null==(r=this.options.components)?void 0:r.alignment)||!r.protectors){i.next=99;break}Q=0;case 75:if(!(Q<M.length)){i.next=99;break}X=0;case 77:if(!(X<M.length)){i.next=96;break}if(K=M[X],$=M[Q],6!==K||6!==$&&$!==H){i.next=84;break}return i.abrupt("continue",93);case 84:if(6!==$||6!==K&&K!==H){i.next=88;break}return i.abrupt("continue",93);case 88:if(K===H&&$===H)return i.abrupt("continue",93);i.next=92;break;case 92:g._drawAlignProtector(E,K,$,w);case 93:X++,i.next=77;break;case 96:Q++,i.next=75;break;case 99:for(E.fillStyle=this.options.colorDark,E.fillRect(0,0,7*w,w),E.fillRect((a-7)*w,0,7*w,w),E.fillRect(0,6*w,7*w,w),E.fillRect((a-7)*w,6*w,7*w,w),E.fillRect(0,(a-7)*w,7*w,w),E.fillRect(0,(a-7+6)*w,7*w,w),E.fillRect(0,0,w,7*w),E.fillRect(6*w,0,w,7*w),E.fillRect((a-7)*w,0,w,7*w),E.fillRect((a-7+6)*w,0,w,7*w),E.fillRect(0,(a-7)*w,w,7*w),E.fillRect(6*w,(a-7)*w,w,7*w),E.fillRect(2*w,2*w,3*w,3*w),E.fillRect((a-7+2)*w,2*w,3*w,3*w),E.fillRect(2*w,(a-7+2)*w,3*w,3*w),J=(null==(n=null==(r=this.options.components)?void 0:r.timing)?void 0:n.scale)||.4,V=.5*(1-J),Z=0;Z<a-8;Z+=2)g._drawDot(E,8+Z,6,w,V,J),g._drawDot(E,6,8+Z,w,V,J);W=(null==(n=null==(n=this.options.components)?void 0:n.cornerAlignment)?void 0:n.scale)||.4,g._drawAlign(E,H,H,w,.5*(1-W),W,this.options.colorDark,(null==(n=null==(n=this.options.components)?void 0:n.cornerAlignment)?void 0:n.protectors)||!1),tt=(null==(n=null==(n=this.options.components)?void 0:n.alignment)?void 0:n.scale)||.4,et=.5*(1-tt),rt=0;case 124:if(!(rt<M.length)){i.next=148;break}nt=0;case 126:if(!(nt<M.length)){i.next=145;break}if(ot=M[nt],it=M[rt],6!==ot||6!==it&&it!==H){i.next=133;break}return i.abrupt("continue",142);case 133:if(6!==it||6!==ot&&ot!==H){i.next=137;break}return i.abrupt("continue",142);case 137:if(ot===H&&it===H)return i.abrupt("continue",142);i.next=141;break;case 141:g._drawAlign(E,ot,it,w,et,tt,this.options.colorDark,(null==(o=null==(n=this.options.components)?void 0:n.alignment)?void 0:o.protectors)||!1);case 142:nt++,i.next=126;break;case 145:rt++,i.next=124;break;case 148:if(m&&(E.fillStyle=this.options.backgroundColor,E.fillRect(-y,-y,x,y),E.fillRect(-y,b,x,y),E.fillRect(b,-y,y,x),E.fillRect(-y,-y,y,x)),this.options.logoImage)return i.next=152,f(this.options.logoImage);i.next=179;break;case 152:mt=i.sent,at=this.options.logoScale,dt=this.options.logoMargin,yt=this.options.logoCornerRadius,dt<0&&(dt=0),yt<0&&(yt=0),ut=st=.5*(x-(at=b*(at=at<=0||1<=at?.2:at))),E.restore(),E.fillStyle=this.options.logoBackgroundColor,E.save(),g._prepareRoundedCornerClip(E,st-dt,ut-dt,at+2*dt,at+2*dt,yt+dt),E.clip(),dt=E.globalCompositeOperation,E.globalCompositeOperation="destination-out",E.fill(),E.globalCompositeOperation=dt,E.restore(),E.save(),g._prepareRoundedCornerClip(E,st,ut,at,at,yt),E.clip(),E.drawImage(mt,st,ut,at,at),E.restore(),E.save(),E.translate(y,y);case 179:if(!P){i.next=191;break}if(T.forEach((function(t){lt||((lt=new h.a(p,p)).setDelay(t.delay),lt.setRepeat(0));var e=t.dims,r=e.width;e=e.height,ht||(ht=new c(r,e),(ct=ht.getContext("2d")).rect(0,0,ht.width,ht.height),ct.fillStyle="#ffffff",ct.fill()),ft&>&&r===ft.width&&e===ft.height||(ft=new c(r,e),pt=ft.getContext("2d"),gt=pt.createImageData(r,e)),gt.data.set(t.patch),pt.putImageData(gt,0,0),ct.drawImage(ft.getContext("2d").canvas,t.dims.left,t.dims.top),r=new c(x,x),e=r.getContext("2d"),e.drawImage(ht.getContext("2d").canvas,0,0,x,x),e.rect(0,0,x,x),e.fillStyle=v,e.fill(),e.drawImage(A.getContext("2d").canvas,0,0,x,x),t=new c(p,p),e=t.getContext("2d");e.drawImage(r.getContext("2d").canvas,0,0,p,p),lt.addFrame(e.getImageData(0,0,t.width,t.height).data)})),lt){i.next=183;break}throw new Error("No frames.");case 183:if(lt.finish(),d(this.canvas))return dt=lt.stream().toFlattenUint8Array(),yt=dt.reduce((function(t,e){return t+String.fromCharCode(e)}),""),i.abrupt("return",Promise.resolve("data:image/gif;base64,".concat(window.btoa(yt))));i.next=188;break;case 188:return i.abrupt("return",Promise.resolve(t.from(lt.stream().toFlattenUint8Array())));case 191:if(k.drawImage(A.getContext("2d").canvas,0,0,x,x),E.drawImage(C.getContext("2d").canvas,-y,-y,x,x),(mt=new c(p,p)).getContext("2d").drawImage(A.getContext("2d").canvas,0,0,p,p),this.canvas=mt,vt=this.options.gifBackground?"gif":"png",d(this.canvas))return i.abrupt("return",Promise.resolve(this.canvas.toDataURL(vt)));i.next=200;break;case 200:return i.abrupt("return",Promise.resolve(this.canvas.toBuffer(vt)));case 201:case"end":return i.stop()}}),i,this)})),new(p=p||Promise)((function(t,e){function r(t){try{o(y.next(t))}catch(t){e(t)}}function n(t){try{o(y.throw(t))}catch(t){e(t)}}function o(e){var o;e.done?t(e.value):((o=e.value)instanceof p?o:new p((function(t){t(o)}))).then(r,n)}o((y=y.apply(i,a||[])).next())}))}}],[{key:"_prepareRoundedCornerClip",value:function(t,e,r,n,o,i){t.beginPath(),t.moveTo(e,r),t.arcTo(e+n,r,e+n,r+o,i),t.arcTo(e+n,r+o,e,r+o,i),t.arcTo(e,r+o,e,r,i),t.arcTo(e,r,e+n,r,i),t.closePath()}},{key:"_getAverageRGB",value:function(t){var e,r={r:0,g:0,b:0},n=-4,o={r:0,g:0,b:0},i=0,a=t.naturalHeight||t.height,s=t.naturalWidth||t.width,u=new c(s,a).getContext("2d");if(!u)return r;u.drawImage(t,0,0);try{e=u.getImageData(0,0,s,a)}catch(t){return r}for(;(n+=20)<e.data.length;)200<e.data[n]||200<e.data[n+1]||200<e.data[n+2]||(++i,o.r+=e.data[n],o.g+=e.data[n+1],o.b+=e.data[n+2]);return o.r=~~(o.r/i),o.g=~~(o.g/i),o.b=~~(o.b/i),o}},{key:"_drawDot",value:function(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1;t.fillRect((e+o)*n,(r+o)*n,i*n,i*n)}},{key:"_drawAlignProtector",value:function(t,e,r,n){t.clearRect((e-2)*n,(r-2)*n,5*n,5*n),t.fillRect((e-2)*n,(r-2)*n,5*n,5*n)}},{key:"_drawAlign",value:function(t,e,r,n){var o=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,i=5<arguments.length&&void 0!==arguments[5]?arguments[5]:1,a=6<arguments.length?arguments[6]:void 0,s=7<arguments.length?arguments[7]:void 0,u=t.fillStyle;t.fillStyle=a,new Array(4).fill(0).map((function(a,s){g._drawDot(t,e-2+s,r-2,n,o,i),g._drawDot(t,e+2,r-2+s,n,o,i),g._drawDot(t,e+2-s,r+2,n,o,i),g._drawDot(t,e-2,r+2-s,n,o,i)})),g._drawDot(t,e,r,n,o,i),s||(t.fillStyle="rgba(255, 255, 255, 0.6)",new Array(2).fill(0).map((function(a,s){g._drawDot(t,e-1+s,r-1,n,o,i),g._drawDot(t,e+1,r-1+s,n,o,i),g._drawDot(t,e+1-s,r+1,n,o,i),g._drawDot(t,e-1,r+1-s,n,o,i)}))),t.fillStyle=u}}]);var p=g;function g(t){i()(this,g);var e=Object.assign({},t);if(Object.keys(g.defaultOptions).forEach((function(t){t in e||Object.defineProperty(e,t,{value:g.defaultOptions[t],enumerable:!0,writable:!0})})),e.components?"object"===o()(e.components)&&Object.keys(g.defaultComponentOptions).forEach((function(t){t in e.components?Object.defineProperty(e.components,t,{value:Object.assign(Object.assign({},g.defaultComponentOptions[t]),e.components[t]),enumerable:!0,writable:!0}):Object.defineProperty(e.components,t,{value:g.defaultComponentOptions[t],enumerable:!0,writable:!0})})):e.components=g.defaultComponentOptions,null!==e.dotScale&&void 0!==e.dotScale){if(e.dotScale<=0||1<e.dotScale)throw new Error("dotScale should be in range (0, 1].");e.components.data.scale=e.dotScale,e.components.timing.scale=e.dotScale,e.components.alignment.scale=e.dotScale}this.options=e,this.canvas=new c(t.size,t.size),this.canvasContext=this.canvas.getContext("2d"),this.qrCode=new l.a(-1,this.options.correctLevel),Number.isInteger(this.options.maskPattern)&&(this.qrCode.maskPattern=this.options.maskPattern),Number.isInteger(this.options.version)&&(this.qrCode.typeNumber=this.options.version),this.qrCode.addData(this.options.text),this.qrCode.make()}function d(t){try{return t instanceof HTMLElement}catch(n){return"object"===o()(t)&&1===t.nodeType&&"object"===o()(t.style)&&"object"===o()(t.ownerDocument)}}p.CorrectLevel=l.b,p.defaultComponentOptions={data:{scale:.4},timing:{scale:.5,protectors:!1},alignment:{scale:.5,protectors:!1},cornerAlignment:{scale:.5,protectors:!0}},p.defaultOptions={text:"",size:400,margin:20,colorDark:"#000000",colorLight:"rgba(255, 255, 255, 0.6)",correctLevel:l.b.M,backgroundImage:void 0,backgroundDimming:"rgba(0,0,0,0)",logoImage:void 0,logoScale:.2,logoMargin:4,logoCornerRadius:8,whiteMargin:!0,components:p.defaultComponentOptions,autoColor:!0,logoBackgroundColor:"#ffffff",backgroundColor:"#ffffff"}}).call(this,r(15).Buffer)},function(t,e,r){"use strict";const{asBuffer:n,asDownload:o,asZipDownload:i,atScale:a,options:s}=r(11).a,u=Symbol.for("toDataURL"),{CanvasRenderingContext2D:l,CanvasGradient:h,CanvasPattern:c,Image:f,ImageData:p,Path2D:g,DOMMatrix:d,DOMRect:y,DOMPoint:m}=window,v={Canvas:class{constructor(t,e){let r=document.createElement("canvas"),l=[];for(var[h,c]of(Object.defineProperty(r,"async",{value:!0,writable:!1,enumerable:!0}),Object.entries({png:()=>n(r,"image/png"),jpg:()=>n(r,"image/jpeg"),pages:()=>l.concat(r).map(t=>t.getContext("2d"))})))Object.defineProperty(r,h,{get:c});return Object.assign(r,{width:t,height:e,newPage(...t){var{width:e,height:n}=r,o=Object.assign(document.createElement("canvas"),{width:e,height:n}),[e,n]=(o.getContext("2d").drawImage(r,0,0),l.push(o),t.length?t:[e,n]);return Object.assign(r,{width:e,height:n}).getContext("2d")},saveAs(t,e){e="number"==typeof e?{quality:e}:e;e=s(this.pages,{filename:t,...e});var{pattern:r,padding:n,mime:u,quality:l,matte:h,density:c,archive:f}=e;e=a(e.pages,c);return null==n?o(e[0],u,l,h,t):i(e,u,l,h,f,r,n)},toBuffer(t="png",e={}){e="number"==typeof e?{quality:e}:e;var{mime:t,quality:e,matte:r,pages:o,density:i}=s(this.pages,{extension:t,...e}),o=a(o,i,r)[0];return n(o,t,e,r)},[u]:r.toDataURL.bind(r),toDataURL(t="png",e={}){e="number"==typeof e?{quality:e}:e;var{mime:t,quality:e,matte:n,pages:o,density:i}=s(this.pages,{extension:t,...e}),o=a(o,i,n)[0],i=o[o===r?u:"toDataURL"](t,e);return Promise.resolve(i)}})}},loadImage:t=>new Promise((e,r)=>Object.assign(new f,{crossOrigin:"Anonymous",onload:e,onerror:r,src:t})),CanvasRenderingContext2D:l,CanvasGradient:h,CanvasPattern:c,Image:f,ImageData:p,Path2D:g,DOMMatrix:d,DOMRect:y,DOMPoint:m};e.a=v},function(t,e,r){"use strict";(function(t){var n=r(5);class o{constructor(){var e=void 0===t,r="image/png",n="image/jpeg",o="application/pdf",i="image/svg+xml";Object.assign(this,{toMime:this.toMime.bind(this),fromMime:this.fromMime.bind(this),expected:e?'"png", "jpg", or "webp"':'"png", "jpg", "pdf", or "svg"',formats:e?{png:r,jpg:n,jpeg:"image/jpeg",webp:"image/webp"}:{png:r,jpg:n,jpeg:"image/jpeg",pdf:o,svg:i},mimes:e?{"image/png":"png","image/jpeg":"jpg","image/webp":"webp"}:{"image/png":"png","image/jpeg":"jpg","application/pdf":"pdf","image/svg+xml":"svg"}})}toMime(t){return this.formats[(t||"").replace(/^\./,"").toLowerCase()]}fromMime(t){return this.mimes[t]}}class i{static for(t){return(new i).append(t).get()}constructor(){this.crc=-1}get(){return~this.crc}append(t){for(var e=0|this.crc,r=this.table,n=0,o=0|t.length;n<o;n++)e=e>>>8^r[255&(e^t[n])];return this.crc=e,this}}function a(t){let e=new Uint8Array(t),r=new DataView(e.buffer),n={array:e,view:r,size:t,set8:(t,e)=>(r.setUint8(t,e),n),set16:(t,e)=>(r.setUint16(t,e,!0),n),set32:(t,e)=>(r.setUint32(t,e,!0),n),bytes:(t,r)=>(e.set(r,t),n)};return n}i.prototype.table=(()=>{for(var t,e,r=[],n=0;n<256;n++){for(e=n,t=0;t<8;t++)e=1&e?e>>>1^3988292384:e>>>1;r[n]=e}return r})();class s{constructor(t){var e=new Date;Object.assign(this,{directory:t,offset:0,files:[],time:(e.getHours()<<6|e.getMinutes())<<5|e.getSeconds()/2,date:(e.getFullYear()-1980<<4|e.getMonth()+1)<<5|e.getDate()}),this.add(t)}async add(t,e){var r=!e,n=(t=s.encoder.encode(this.directory+"/"+(r?"":t)),e=new Uint8Array(r?0:await e.arrayBuffer()),30+t.length),o=n+e.length,u=this["offset"],l=a(26).set32(0,134742036).set16(6,this.time).set16(8,this.date).set32(10,i.for(e)).set32(14,e.length).set32(18,e.length).set16(22,t.length);u+=n,n=a(n+e.length+16).set32(0,67324752).bytes(4,l.array).bytes(30,t).bytes(n,e);u+=e.length,n.set32(o,134695760).bytes(o+4,l.array.slice(10,22)),this.files.push({offset:u+=16,folder:r,name:t,header:l,payload:n}),this.offset=u}toBuffer(){let t=this.files.reduce((t,{name:e})=>46+e.length+t,0),e=a(t+22),r=0;for(var{offset:n,name:o,header:i,folder:s}of this.files)e.set32(r,33639248).set16(r+4,20).bytes(r+6,i.array).set8(r+38,s?16:0).set32(r+42,n).bytes(r+46,o),r+=46+o.length;e.set32(r,101010256).set16(r+8,this.files.length).set16(r+10,this.files.length).set32(r+12,t).set32(r+16,this.offset);let u=new Uint8Array(this.offset+e.size),l=0;for(var{payload:h}of this.files)u.set(h.array,l),l+=h.size;return u.set(e.array,l),u}get blob(){return new Blob([this.toBuffer()],{type:"application/zip"})}}s.encoder=new TextEncoder;const u=(t,e,r,n)=>{var o,i,a,s;return n&&(({width:o,height:i}=t),(s=(a=Object.assign(document.createElement("canvas"),{width:o,height:i})).getContext("2d")).fillStyle=n,s.fillRect(0,0,o,i),s.drawImage(t,0,0),t=a),new Promise((n,o)=>t.toBlob(n,e,r))},l=(t,e)=>{const r=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=r,n.setAttribute("download",t),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(()=>window.URL.revokeObjectURL(r),100)},h={asBuffer:(...t)=>u(...t).then(t=>t.arrayBuffer()),asDownload:async(t,e,r,n,o)=>{l(o,await u(t,e,r,n))},asZipDownload:async(t,e,r,o,i,a,h)=>{let c=Object(n.a)(i,".zip")||"archive",f=new s(c);await Promise.all(t.map(async(t,n)=>{n=a.replace("{}",String(n+1).padStart(h,"0")),await f.add(n,await u(t,e,r,o))})),l(c+".zip",f.blob)},atScale:(t,e,r)=>t.map(t=>{var n,o,i;return 1!=e||r?(o=(n=document.createElement("canvas")).getContext("2d"),i=t.canvas||t,n.width=i.width*e,n.height=i.height*e,r&&(o.fillStyle=r,o.fillRect(0,0,n.width,n.height)),o.scale(e,e),o.drawImage(i,0,0),n):t.canvas}),options:function(t,{filename:e="",extension:r="",format:i,page:a,quality:s,matte:u,density:l,outline:h,archive:c}={}){var{fromMime:f,toMime:p,expected:g}=new o,d=(c=c||"canvas",i||r.replace(/@\d+x$/i,"")||Object(n.b)(e)),f=(i=f(p(d)||d),p(i)),p=t.length;if(!d)throw new Error("Cannot determine image format (use a filename extension or 'format' argument)");if(!i)throw new Error(`Unsupported file format "${d}" (expected ${g})`);if(!p)throw new RangeError("Canvas has no associated contexts (try calling getContext or newPage first)");let y,m,v=e.replace(/{(\d*)}/g,(t,e)=>(m=!0,e=parseInt(e,10),y=isFinite(e)?e:isFinite(y)?y:-1,"{}")),w=0<a?a-1:a<0?p+a:void 0;if(isFinite(w)&&w<0||p<=w)throw new RangeError(1==p?`Canvas only has a ‘page 1’ (${w} is out of bounds)`:`Canvas has pages 1–${p} (${w} is out of bounds)`);if(t=isFinite(w)?[t[w]]:m||"pdf"==i?t:t.slice(-1),void 0===s)s=.92;else if("number"!=typeof s||!isFinite(s)||s<0||1<s)throw new TypeError("The quality option must be an number in the 0.0–1.0 range");if(void 0===l)g=(r||Object(n.a)(e,d)).match(/@(\d+)x$/i),l=g?parseInt(g[1],10):1;else if("number"!=typeof l||!Number.isInteger(l)||l<1)throw new TypeError("The density option must be a non-negative integer");return void 0===h?h=!0:"svg"==i&&(h=!!h),{filename:e,pattern:v,format:i,mime:f,pages:t,padding:y,quality:s,matte:u,density:l,outline:h,archive:c}}};e.a=h}).call(this,r(8))},function(t,e,r){"use strict";function n(t,e){var r,n,o,i,a;this.buildColormap=function(){var s,u;for(r=[],n=new Int32Array(256),o=new Int32Array(256),i=new Int32Array(256),a=new Int32Array(32),s=0;s<256;s++)u=(s<<12)/256,r[s]=new Float64Array([u,u,u,0]),i[s]=256,o[s]=0;var l,h,c,f,p=t.length,g=30+(e-1)/3,d=p/(3*e),y=~~(d/100),m=1024,v=2048,w=v>>6;for(w<=1&&(w=0),k=0;k<w;k++)a[k]=m*(256*(w*w-k*k)/(w*w));for(var b,x,A,E=p<1509?(e=1,3):p%499!=0?1497:p%491!=0?1473:p%487!=0?1461:1509,C=0,k=0;k<d;){if(b=m,x=f=function(t,e,n){for(var a,s=~(1<<31),u=s,l=-1,h=l,c=0;c<256;c++)a=r[c],(a=Math.abs(a[0]-t)+Math.abs(a[1]-e)+Math.abs(a[2]-n))<s&&(s=a,l=c),(a-=o[c]>>12)<u&&(u=a,h=c),a=i[c]>>10,i[c]-=a,o[c]+=a<<10;return i[l]+=64,o[l]-=65536,h}(l=(255&t[C])<<4,h=(255&t[C+1])<<4,c=(255&t[C+2])<<4),_=l,B=h,A=c,r[x][0]-=b*(r[x][0]-_)/1024,r[x][1]-=b*(r[x][1]-B)/1024,r[x][2]-=b*(r[x][2]-A)/1024,0!==w){U=O=I=M=L=T=P=D=S=R=B=_=void 0;for(var P,T,_=w,B=f,R=l,S=h,D=c,L=Math.abs(B-_),M=Math.min(B+_,256),I=B+1,O=B-1,U=1;I<M||L<O;)T=a[U++],I<M&&((P=r[I++])[0]-=T*(P[0]-R)/(1<<18),P[1]-=T*(P[1]-S)/(1<<18),P[2]-=T*(P[2]-D)/(1<<18)),L<O&&((P=r[O--])[0]-=T*(P[0]-R)/(1<<18),P[1]-=T*(P[1]-S)/(1<<18),P[2]-=T*(P[2]-D)/(1<<18))}if((C+=E)>=p&&(C-=p),++k%(y=0===y?1:y)==0)for(m-=m/g,(w=(v-=v/30)>>6)<=1&&(w=0),f=0;f<w;f++)a[f]=m*(256*(w*w-f*f)/(w*w))}for(var N=0;N<256;N++)r[N][0]>>=4,r[N][1]>>=4,r[N][2]>>=4,r[N][3]=N;for(var j,F,Y,z,G,H=0,q=0,Q=0;Q<256;Q++){for(G=(F=r[z=Q])[1],j=Q+1;j<256;j++)(Y=r[j])[1]<G&&(z=j,G=Y[1]);if(Y=r[z],Q!=z&&(j=Y[0],Y[0]=F[0],F[0]=j,j=Y[1],Y[1]=F[1],F[1]=j,j=Y[2],Y[2]=F[2],F[2]=j,j=Y[3],Y[3]=F[3],F[3]=j),G!=H){for(n[H]=q+Q>>1,j=H+1;j<G;j++)n[j]=Q;H=G,q=Q}}for(n[H]=q+255>>1,j=H+1;j<256;j++)n[j]=255},this.getColormap=function(){for(var t=[],e=[],n=0;n<256;n++)e[r[n][3]]=n;for(var o=0,i=0;i<256;i++){var a=e[i];t[o++]=r[a][0],t[o++]=r[a][1],t[o++]=r[a][2]}return t},this.lookupRGB=function(t,e,o){for(var i,a,s,u=1e3,l=-1,h=n[e],c=h-1;h<256||0<=c;)h<256&&((s=(a=r[h])[1]-e)>=u?h=256:(h++,s<0&&(s=-s),(s+=i=(i=a[0]-t)<0?-i:i)<u&&(s+=i=(i=a[2]-o)<0?-i:i)<u&&(u=s,l=a[3]))),0<=c&&((s=e-(a=r[c])[1])>=u?c=-1:(c--,s<0&&(s=-s),(s+=i=(i=a[0]-t)<0?-i:i)<u&&(s+=i=(i=a[2]-o)<0?-i:i)<u&&(u=s,l=a[3])));return l}}function o(t,e,r,n){var o,a,s,u,l,h,c,f,p,g=Math.max(2,n),d=new Uint8Array(256),y=new Int32Array(5003),m=new Int32Array(5003),v=0,w=0,b=!1;function x(t,e){d[a++]=t,254<=a&&E(e)}function A(t){for(var e=0;e<t;++e)y[e]=-1}function E(t){0<a&&(t.writeByte(a),t.writeBytes(d,0,a),a=0)}function C(t){return(1<<t)-1}function k(){return 0===c?-1:(--c,255&r[f++])}function P(t,e){for(o&=i[v],0<v?o|=t<<v:o=t,v+=p;8<=v;)x(255&o,e),o>>=8,v-=8;if((s<w||b)&&(b?(s=C(p=u),b=!1):s=12==++p?4096:C(p)),t==h){for(;0<v;)x(255&o,e),o>>=8,v-=8;E(e)}}this.encode=function(r){r.writeByte(g),c=t*e;var n,o,i,d,v,x,E=g+1,T=r;for(b=!1,s=C(p=u=E),h=1+(l=1<<E-1),w=l+2,a=f=0,i=k(),v=0,n=5003;n<65536;n*=2)++v;v=8-v,A(5003),P(l,T);t:for(;-1!=(x=k());)if(n=(x<<12)+i,y[o=x<<v^i]!==n){if(0<=y[o]){d=0===o?1:5003-o;do{if((o-=d)<0&&(o+=5003),y[o]===n){i=m[o];continue t}}while(0<=y[o])}P(i,T),i=x,w<4096?(m[o]=w++,y[o]=n):(x=T,A(5003),w=l+2,b=!0,P(l,x))}else i=m[o];P(i,T),P(h,T),r.writeByte(0)}}var i=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535];function a(){this.page=-1,this.pages=[],this.newPage()}a.pageSize=4096,a.charMap={};for(var s=0;s<256;s++)a.charMap[s]=String.fromCharCode(s);function u(t,e){this.width=~~t,this.height=~~e,this.transparent=null,this.transIndex=0,this.repeat=-1,this.delay=0,this.image=null,this.pixels=null,this.indexedPixels=null,this.colorDepth=null,this.colorTab=null,this.neuQuant=null,this.usedEntry=new Array,this.palSize=7,this.dispose=-1,this.firstFrame=!0,this.sample=10,this.dither=!1,this.globalPalette=!1,this.out=new a}a.prototype.newPage=function(){this.pages[++this.page]=new Uint8Array(a.pageSize),this.cursor=0},a.prototype.getData=function(){for(var t="",e=0;e<this.pages.length;e++)for(var r=0;r<a.pageSize;r++)t+=a.charMap[this.pages[e][r]];return t},a.prototype.toFlattenUint8Array=function(){for(var t,e=[],r=0;r<this.pages.length;r++)r===this.pages.length-1?(t=Uint8Array.from(this.pages[r].slice(0,this.cursor)),e.push(t)):e.push(this.pages[r]);var n=new Uint8Array(e.reduce((function(t,e){return t+e.length}),0));return e.reduce((function(t,e){return n.set(e,t),t+e.length}),0),n},a.prototype.writeByte=function(t){this.cursor>=a.pageSize&&this.newPage(),this.pages[this.page][this.cursor++]=t},a.prototype.writeUTFBytes=function(t){for(var e=t.length,r=0;r<e;r++)this.writeByte(t.charCodeAt(r))},a.prototype.writeBytes=function(t,e,r){for(var n=r||t.length,o=e||0;o<n;o++)this.writeByte(t[o])},u.prototype.setDelay=function(t){this.delay=Math.round(t/10)},u.prototype.setFrameRate=function(t){this.delay=Math.round(100/t)},u.prototype.setDispose=function(t){0<=t&&(this.dispose=t)},u.prototype.setRepeat=function(t){this.repeat=t},u.prototype.setTransparent=function(t){this.transparent=t},u.prototype.addFrame=function(t){this.image=t,this.colorTab=this.globalPalette&&this.globalPalette.slice?this.globalPalette:null,this.getImagePixels(),this.analyzePixels(),!0===this.globalPalette&&(this.globalPalette=this.colorTab),this.firstFrame&&(this.writeHeader(),this.writeLSD(),this.writePalette(),0<=this.repeat)&&this.writeNetscapeExt(),this.writeGraphicCtrlExt(),this.writeImageDesc(),this.firstFrame||this.globalPalette||this.writePalette(),this.writePixels(),this.firstFrame=!1},u.prototype.finish=function(){this.out.writeByte(59)},u.prototype.setQuality=function(t){this.sample=t=t<1?1:t},u.prototype.setDither=function(t){this.dither=t=!0===t?"FloydSteinberg":t},u.prototype.setGlobalPalette=function(t){this.globalPalette=t},u.prototype.getGlobalPalette=function(){return this.globalPalette&&this.globalPalette.slice&&this.globalPalette.slice(0)||this.globalPalette},u.prototype.writeHeader=function(){this.out.writeUTFBytes("GIF89a")},u.prototype.analyzePixels=function(){this.colorTab||(this.neuQuant=new n(this.pixels,this.sample),this.neuQuant.buildColormap(),this.colorTab=this.neuQuant.getColormap()),this.dither?this.ditherPixels(this.dither.replace("-serpentine",""),null!==this.dither.match(/-serpentine/)):this.indexPixels(),this.pixels=null,this.colorDepth=8,this.palSize=7,null!==this.transparent&&(this.transIndex=this.findClosest(this.transparent,!0))},u.prototype.indexPixels=function(t){var e=this.pixels.length/3;this.indexedPixels=new Uint8Array(e);for(var r=0,n=0;n<e;n++){var o=this.findClosestRGB(255&this.pixels[r++],255&this.pixels[r++],255&this.pixels[r++]);this.usedEntry[o]=!0,this.indexedPixels[n]=o}},u.prototype.ditherPixels=function(t,e){var r={FalseFloydSteinberg:[[3/8,1,0],[3/8,0,1],[.25,1,1]],FloydSteinberg:[[7/16,1,0],[3/16,-1,1],[5/16,0,1],[1/16,1,1]],Stucki:[[8/42,1,0],[4/42,2,0],[2/42,-2,1],[4/42,-1,1],[8/42,0,1],[4/42,1,1],[2/42,2,1],[1/42,-2,2],[2/42,-1,2],[4/42,0,2],[2/42,1,2],[1/42,2,2]],Atkinson:[[1/8,1,0],[1/8,2,0],[1/8,-1,1],[1/8,0,1],[1/8,1,1],[1/8,0,2]]};if(!t||!r[t])throw"Unknown dithering kernel: "+t;var n,o=r[t],i=this.height,a=this.width,s=this.pixels,u=e?-1:1;this.indexedPixels=new Uint8Array(this.pixels.length/3);for(var l=0;l<i;l++){e&&(u*=-1);for(var h=1==u?0:a-1,c=1==u?a:0;h!==c;h+=u){var f=s[x=3*(n=l*a+h)],p=s[1+x],g=s[2+x];x=this.findClosestRGB(f,p,g),this.usedEntry[x]=!0,this.indexedPixels[n]=x,x*=3;for(var d=f-this.colorTab[x],y=p-this.colorTab[1+x],m=g-this.colorTab[2+x],v=1==u?0:o.length-1,w=1==u?o.length:0;v!==w;v+=u){var b,x,A=o[v][1],E=o[v][2];0<=A+h&&A+h<a&&0<=E+l&&E+l<i&&(b=o[v][0],x=n+A+E*a,s[x*=3]=Math.max(0,Math.min(255,s[x]+d*b)),s[1+x]=Math.max(0,Math.min(255,s[1+x]+y*b)),s[2+x]=Math.max(0,Math.min(255,s[2+x]+m*b)))}}}},u.prototype.findClosest=function(t,e){return this.findClosestRGB((16711680&t)>>16,(65280&t)>>8,255&t,e)},u.prototype.findClosestRGB=function(t,e,r,n){if(null===this.colorTab)return-1;if(this.neuQuant&&!n)return this.neuQuant.lookupRGB(t,e,r);for(var o=0,i=16777216,a=this.colorTab.length,s=0,u=0;s<a;u++){var l=t-(255&this.colorTab[s++]),h=e-(255&this.colorTab[s++]),c=r-(255&this.colorTab[s++]);l=l*l+h*h+c*c;(!n||this.usedEntry[u])&&l<i&&(i=l,o=u)}return o},u.prototype.getImagePixels=function(){var t=this.width,e=this.height;this.pixels=new Uint8Array(t*e*3);for(var r=this.image,n=0,o=0,i=0;i<e;i++)for(var a=0;a<t;a++)this.pixels[o++]=r[n++],this.pixels[o++]=r[n++],this.pixels[o++]=r[n++],n++},u.prototype.writeGraphicCtrlExt=function(){var t,e;this.out.writeByte(33),this.out.writeByte(249),this.out.writeByte(4),e=null===this.transparent?t=0:(t=1,2),0<=this.dispose&&(e=7&this.dispose),this.out.writeByte(0|(e<<=2)|t),this.writeShort(this.delay),this.out.writeByte(this.transIndex),this.out.writeByte(0)},u.prototype.writeImageDesc=function(){this.out.writeByte(44),this.writeShort(0),this.writeShort(0),this.writeShort(this.width),this.writeShort(this.height),this.firstFrame||this.globalPalette?this.out.writeByte(0):this.out.writeByte(128|this.palSize)},u.prototype.writeLSD=function(){this.writeShort(this.width),this.writeShort(this.height),this.out.writeByte(240|this.palSize),this.out.writeByte(0),this.out.writeByte(0)},u.prototype.writeNetscapeExt=function(){this.out.writeByte(33),this.out.writeByte(255),this.out.writeByte(11),this.out.writeUTFBytes("NETSCAPE2.0"),this.out.writeByte(3),this.out.writeByte(1),this.writeShort(this.repeat),this.out.writeByte(0)},u.prototype.writePalette=function(){this.out.writeBytes(this.colorTab);for(var t=768-this.colorTab.length,e=0;e<t;e++)this.out.writeByte(0)},u.prototype.writeShort=function(t){this.out.writeByte(255&t),this.out.writeByte(t>>8&255)},u.prototype.writePixels=function(){new o(this.width,this.height,this.indexedPixels,this.colorDepth).encode(this.out)},u.prototype.stream=function(){return this.out},e.a=u},function(t,e,r){t.exports=r(20)},function(t,e,r){var n=r(2).default;function o(){"use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t.exports=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(r){l=function(t,e,r){return t[e]=r}}function h(t,e,r,n){var o,i,a,s;e=e&&e.prototype instanceof p?e:p,e=Object.create(e.prototype),n=new A(n||[]);return e._invoke=(o=t,i=r,a=n,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return C()}for(a.method=t,a.arg=e;;){var r=a.delegate;if(r&&(r=function t(e,r){var n=e.iterator[r.method];if(void 0===n){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=void 0,t(e,r),"throw"===r.method))return f;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}return n=c(n,e.iterator,r.arg),"throw"===n.type?(r.method="throw",r.arg=n.arg,r.delegate=null,f):(n=n.arg,n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,f):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,f))}(r,a),r)){if(r===f)continue;return r}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);if(s="executing",r=c(o,i,a),"normal"===r.type){if(s=a.done?"completed":"suspendedYield",r.arg===f)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(s="completed",a.method="throw",a.arg=r.arg)}}),e}function c(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=h;var f={};function p(){}function g(){}function d(){}i={};var y=(l(i,a,(function(){return this})),Object.getPrototypeOf),m=(y=y&&y(y(E([]))),y&&y!==r&&o.call(y,a)&&(i=y),d.prototype=p.prototype=Object.create(i));function v(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){var r;this._invoke=function(i,a){function s(){return new e((function(r,s){!function r(i,a,s,u){var l;i=c(t[i],t,a);return"throw"!==i.type?(a=(l=i.arg).value)&&"object"==n(a)&&o.call(a,"__await")?e.resolve(a.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):e.resolve(a).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)})):void u(i.arg)}(i,a,r,s)}))}return r=r?r.then(s,s):s()}}function b(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(b,this),this.reset(!0)}function E(t){if(t){var e,r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return e=-1,(r=function r(){for(;++e<t.length;)if(o.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r}).next=r}return{next:C}}function C(){return{value:void 0,done:!0}}return l(m,"constructor",g.prototype=d),l(d,"constructor",g),g.displayName=l(d,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){return t="function"==typeof t&&t.constructor,!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,l(t,u,"GeneratorFunction")),t.prototype=Object.create(m),t},e.awrap=function(t){return{__await:t}},v(w.prototype),l(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new w(h(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(m),l(m,u,"Generator"),l(m,a,(function(){return this})),l(m,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e,r=[];for(e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},e.values=E,A.prototype={constructor:A,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,n){return a.type="throw",a.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;0<=n;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}var a=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),x(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,n,o=this.tryEntries[e];if(o.tryLoc===t)return"throw"===(r=o.completion).type&&(n=r.arg,x(o)),n}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:E(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),f}},e}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,r){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh <http://feross.org> * @license MIT */ var n=r(16),o=r(17),i=r(18);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(t=null===t?new u(e):t).length=e,t}function u(t,e,r){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,r);if("number"!=typeof t)return l(this,t,e,r);if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}function l(t,e,r,n){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var o=t,a=e,l=r;if(a.byteLength,l<0||a.byteLength<l)throw new RangeError("'offset' is out of bounds");if(a.byteLength<l+(n||0))throw new RangeError("'length' is out of bounds");return a=void 0===l&&void 0===n?new Uint8Array(a):void 0===n?new Uint8Array(a,l):new Uint8Array(a,l,n),u.TYPED_ARRAY_SUPPORT?(o=a).__proto__=u.prototype:o=f(o,a),o}if("string"==typeof e){if(l=t,n=e,a=r,u.isEncoding(a="string"==typeof a&&""!==a?a:"utf8"))return(n=(l=s(l,o=0|g(n,a))).write(n,a))!==o?l.slice(0,n):l;throw new TypeError('"encoding" must be a valid string encoding')}var h;r=t,n=e;if(u.isBuffer(n))return 0!==(r=s(r,h=0|p(n.length))).length&&n.copy(r,0,0,h),r;if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||(h=n.length)!=h?s(r,0):f(r,n);if("Buffer"===n.type&&i(n.data))return f(r,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function h(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function c(t,e){if(h(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var r=0;r<e;++r)t[r]=0;return t}function f(t,e){var r=e.length<0?0:0|p(e.length);t=s(t,r);for(var n=0;n<r;n+=1)t[n]=255&e[n];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var r=(t="string"!=typeof t?""+t:t).length;if(0===r)return 0;for(var n=!1;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return B(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return R(t).length;default:if(n)return B(t).length;e=(""+e).toLowerCase(),n=!0}}function d(t,e,r){var o,i=!1;if((e=void 0===e||e<0?0:e)>this.length)return"";if((r=void 0===r||r>this.length?this.length:r)<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":var a=this,s=e,u=r,l=a.length;(!u||u<0||l<u)&&(u=l);for(var h="",c=s=!s||s<0?0:s;c<u;++c)h+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(a[c]);return h;case"utf8":case"utf-8":return b(this,e,r);case"ascii":var f=this,p=(l=e,r),g="";p=Math.min(f.length,p);for(var d=l;d<p;++d)g+=String.fromCharCode(127&f[d]);return g;case"latin1":case"binary":var y=this,m=(s=e,r),v="";m=Math.min(y.length,m);for(var w=s;w<m;++w)v+=String.fromCharCode(y[w]);return v;case"base64":return x=this,o=r,0===(A=e)&&o===x.length?n.fromByteArray(x):n.fromByteArray(x.slice(A,o));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":for(var x=e,A=r,E=this.slice(x,A),C="",k=0;k<E.length;k+=2)C+=String.fromCharCode(E[k]+256*E[k+1]);return C;default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function y(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function m(t,e,r,n,o){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,(r=(r=isNaN(r)?o?0:t.length-1:r)<0?t.length+r:r)>=t.length){if(o)return-1;r=t.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:v(t,e,r,n,o);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(o?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,e,r):v(t,[e],r,n,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,r,n,o){var i=1,a=t.length,s=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;a/=i=2,s/=2,r/=2}function u(t,e){return 1===i?t[e]:t.readUInt16BE(e*i)}if(o)for(var l=-1,h=r;h<a;h++)if(u(t,h)===u(e,-1===l?0:h-l)){if(h-(l=-1===l?h:l)+1===s)return l*i}else-1!==l&&(h-=h-l),l=-1;else for(h=r=a<r+s?a-s:r;0<=h;h--){for(var c=!0,f=0;f<s;f++)if(u(t,h+f)!==u(e,f)){c=!1;break}if(c)return h}return-1}function w(t,e,r,n){return S(function(t){for(var e=[],r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function b(t,e,r){r=Math.min(t.length,r);for(var n=[],o=e;o<r;){var i,a,s,u,l=t[o],h=null,c=239<l?4:223<l?3:191<l?2:1;if(o+c<=r)switch(c){case 1:l<128&&(h=l);break;case 2:128==(192&(i=t[o+1]))&&127<(u=(31&l)<<6|63&i)&&(h=u);break;case 3:i=t[o+1],a=t[o+2],128==(192&i)&&128==(192&a)&&2047<(u=(15&l)<<12|(63&i)<<6|63&a)&&(u<55296||57343<u)&&(h=u);break;case 4:i=t[o+1],a=t[o+2],s=t[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s)&&u<1114112&&(h=u)}null===h?(h=65533,c=1):65535<h&&(n.push((h-=65536)>>>10&1023|55296),h=56320|1023&h),n.push(h),o+=c}var f=n,p=f.length;if(p<=4096)return String.fromCharCode.apply(String,f);for(var g="",d=0;d<p;)g+=String.fromCharCode.apply(String,f.slice(d,d+=4096));return g}function x(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(r<t+e)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,r,n,o,i){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<e||e<i)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function E(t,e,r,n){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-r,2);o<i;++o)t[r+o]=(e&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function C(t,e,r,n){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-r,4);o<i;++o)t[r+o]=e>>>8*(n?o:3-o)&255}function k(t,e,r,n){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function P(t,e,r,n,i){return i||k(t,0,r,4),o.write(t,e,r,n,23,4),r+4}function T(t,e,r,n,i){return i||k(t,0,r,8),o.write(t,e,r,n,52,8),r+8}e.Buffer=u,e.SlowBuffer=function(t){return u.alloc(+(t=+t!=t?0:t))},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,r){return l(null,t,e,r)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol)&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0}),u.alloc=function(t,e,r){return e=e,r=r,h(t=t),t<=0||void 0===e?s(null,t):"string"==typeof r?s(null,t).fill(e,r):s(null,t).fill(e)},u.allocUnsafe=function(t){return c(null,t)},u.allocUnsafeSlow=function(t){return c(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var r=t.length,n=e.length,o=0,i=Math.min(r,n);o<i;++o)if(t[o]!==e[o]){r=t[o],n=e[o];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!i(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===e)for(o=e=0;o<t.length;++o)e+=t[o].length;for(var r=u.allocUnsafe(e),n=0,o=0;o<t.length;++o){var a=t[o];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,n),n+=a.length}return r},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?b(this,0,t):d.apply(this,arguments)},u.prototype.equals=function(t){if(u.isBuffer(t))return this===t||0===u.compare(this,t);throw new TypeError("Argument must be a Buffer")},u.prototype.inspect=function(){var t="",r=e.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r)&&(t+=" ... "),"<Buffer "+t+">"},u.prototype.compare=function(t,e,r,n,o){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),(e=void 0===e?0:e)<0||r>t.length||n<0||o>this.length)throw new RangeError("out of range index");if(o<=n&&r<=e)return 0;if(o<=n)return-1;if(r<=e)return 1;if(this===t)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(e>>>=0),s=Math.min(i,a),l=this.slice(n,o),h=t.slice(e,r),c=0;c<s;++c)if(l[c]!==h[c]){i=l[c],a=h[c];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return m(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return m(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-e;if((void 0===r||o<r)&&(r=o),0<t.length&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n=n||"utf8";for(var i,a,s,u,l,h=!1;;)switch(n){case"hex":var c=this,f=t,p=e,g=r,d=(p=Number(p)||0,c.length-p);if((!g||(g=Number(g))>d)&&(g=d),(d=f.length)%2!=0)throw new TypeError("Invalid hex string");d/2<g&&(g=d/2);for(var y=0;y<g;++y){var m=parseInt(f.substr(2*y,2),16);if(isNaN(m))return y;c[p+y]=m}return y;case"utf8":case"utf-8":return d=e,l=r,S(B(t,(u=this).length-d),u,d,l);case"ascii":return w(this,t,e,r);case"latin1":case"binary":return w(this,t,e,r);case"base64":return u=this,l=e,s=r,S(R(t),u,l,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return s=e,a=r,S(function(t,e){for(var r,n,o=[],i=0;i<t.length&&!((e-=2)<0);++i)n=(r=t.charCodeAt(i))>>8,o.push(r%256),o.push(n);return o}(t,(i=this).length-s),i,s,a);default:if(h)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),h=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),e<t&&(e=t),u.TYPED_ARRAY_SUPPORT)(o=this.subarray(t,e)).__proto__=u.prototype;else for(var n=e-t,o=new u(n,void 0),i=0;i<n;++i)o[i]=this[i+t];return o},u.prototype.readUIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n},u.prototype.readUIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t+--e],o=1;0<e&&(o*=256);)n+=this[t+--e]*o;return n},u.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||x(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||x(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=this[t],o=1,i=0;++i<e&&(o*=256);)n+=this[t+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t|=0,e|=0,r||x(t,e,this.length);for(var n=e,o=1,i=this[t+--n];0<n&&(o*=256);)i+=this[t+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},u.prototype.readInt8=function(t,e){return e||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){return e||x(t,2,this.length),e=this[t]|this[t+1]<<8,32768&e?4294901760|e:e},u.prototype.readInt16BE=function(t,e){return e||x(t,2,this.length),e=this[t+1]|this[t]<<8,32768&e?4294901760|e:e},u.prototype.readInt32LE=function(t,e){return e||x(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||x(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),o.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),o.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e|=0,r|=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[e]=255&t;++i<r&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e|=0,r|=0,n||A(this,t,e,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[e+o]=255&t;0<=--o&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):E(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):E(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):C(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,r,n){t=+t,e|=0,n||A(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var o=0,i=1,a=0;for(this[e]=255&t;++o<r&&(i*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){t=+t,e|=0,n||A(this,t,e,r,(n=Math.pow(2,8*r-1))-1,-n);var o=r-1,i=1,a=0;for(this[e+o]=255&t;0<=--o&&(i*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/i>>0)-a&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&(t=t<0?255+t+1:t),e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):E(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):E(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):C(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e|=0,r||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):C(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return T(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return T(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(r=r||0,n||0===n||(n=this.length),e>=t.length&&(e=t.length),(n=0<n&&n<r?r:n)===r)return 0;if(0===t.length||0===this.length)return 0;if((e=e||0)<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length);var o,i=(n=t.length-e<n-r?t.length-e+r:n)-r;if(this===t&&r<e&&e<n)for(o=i-1;0<=o;--o)t[o+e]=this[o+r];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+r];else Uint8Array.prototype.set.call(t,this.subarray(r,r+i),e);return i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){var o;if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===t.length&&(o=t.charCodeAt(0))<256&&(t=o),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(!(r<=e))if(e>>>=0,r=void 0===r?this.length:r>>>0,"number"==typeof(t=t||0))for(s=e;s<r;++s)this[s]=t;else for(var i=u.isBuffer(t)?t:B(new u(t,n).toString()),a=i.length,s=0;s<r-e;++s)this[s+e]=i[s%a];return this};var _=/[^+\/0-9A-Za-z-_]/g;function B(t,e){var r;e=e||1/0;for(var n=t.length,o=null,i=[],a=0;a<n;++a){if(55295<(r=t.charCodeAt(a))&&r<57344){if(!o){if(56319<r){-1<(e-=3)&&i.push(239,191,189);continue}if(a+1===n){-1<(e-=3)&&i.push(239,191,189);continue}o=r;continue}if(r<56320){-1<(e-=3)&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&-1<(e-=3)&&i.push(239,191,189);if(o=null,r<128){if(--e<0)break;i.push(r)}else if(r<2048){if((e-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function R(t){return n.toByteArray(function(t){if((t=((e=t).trim?e.trim():e.replace(/^\s+|\s+$/g,"")).replace(_,"")).length<2)return"";for(var e;t.length%4!=0;)t+="=";return t}(t))}function S(t,e,r,n){for(var o=0;o<n&&!(o+r>=e.length||o>=t.length);++o)e[o+r]=t[o];return o}}).call(this,r(8))},function(t,e,r){"use strict";e.byteLength=function(t){t=l(t);var e=t[0];t=t[1];return 3*(e+t)/4-t},e.toByteArray=function(t){for(var e,r=l(t),n=r[0],a=(r=r[1],new i(3*(n+r)/4-r)),s=0,u=0<r?n-4:n,h=0;h<u;h+=4)e=o[t.charCodeAt(h)]<<18|o[t.charCodeAt(h+1)]<<12|o[t.charCodeAt(h+2)]<<6|o[t.charCodeAt(h+3)],a[s++]=e>>16&255,a[s++]=e>>8&255,a[s++]=255&e;return 2===r&&(e=o[t.charCodeAt(h)]<<2|o[t.charCodeAt(h+1)]>>4,a[s++]=255&e),1===r&&(e=o[t.charCodeAt(h)]<<10|o[t.charCodeAt(h+1)]<<4|o[t.charCodeAt(h+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e),a},e.fromByteArray=function(t){for(var e,r=t.length,o=r%3,i=[],a=0,s=r-o;a<s;a+=16383)i.push(function(t,e,r){for(var o,i=[],a=e;a<r;a+=3)o=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),i.push(n[(o=o)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(t,a,s<a+16383?s:a+16383));return 1==o?(e=t[r-1],i.push(n[e>>2]+n[e<<4&63]+"==")):2==o&&(e=(t[r-2]<<8)+t[r-1],i.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),i.join("")};for(var n=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)n[s]=a[s],o[a.charCodeAt(s)]=s;function l(t){var e=t.length;if(0<e%4)throw new Error("Invalid string. Length must be a multiple of 4");return t=t.indexOf("="),[t=-1===t?e:t,t===e?0:4-t%4]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ e.read=function(t,e,r,n,o){var i,a,s=8*o-n-1,u=(1<<s)-1,l=u>>1,h=-7,c=r?o-1:0,f=r?-1:1;o=t[e+c];for(c+=f,i=o&(1<<-h)-1,o>>=-h,h+=s;0<h;i=256*i+t[e+c],c+=f,h-=8);for(a=i&(1<<-h)-1,i>>=-h,h+=n;0<h;a=256*a+t[e+c],c+=f,h-=8);if(0===i)i=1-l;else{if(i===u)return a?NaN:1/0*(o?-1:1);a+=Math.pow(2,n),i-=l}return(o?-1:1)*a*Math.pow(2,i-n)},e.write=function(t,e,r,n,o,i){var a,s,u=8*i-o-1,l=(1<<u)-1,h=l>>1,c=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:i-1,p=n?1:-1;i=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(n=Math.pow(2,-a))<1&&(a--,n*=2),2<=(e+=1<=a+h?c/n:c*Math.pow(2,1-h))*n&&(a++,n/=2),l<=a+h?(s=0,a=l):1<=a+h?(s=(e*n-1)*Math.pow(2,o),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,o),a=0));8<=o;t[r+f]=255&s,f+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;0<u;t[r+f]=255&a,f+=p,a/=256,u-=8);t[r+f-p]|=128*i}},function(t,e){var r={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},function(t,e){var r,n;t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return(r=setTimeout)(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}try{r="function"==typeof setTimeout?setTimeout:o}catch(t){r=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(t){n=i}var s,u=[],l=!1,h=-1;function c(){l&&s&&(l=!1,s.length?u=s.concat(u):h=-1,u.length)&&f()}function f(){if(!l){var t=a(c);l=!0;for(var e=u.length;e;){for(s=u,u=[];++h<e;)s&&s[h].run();h=-1,e=u.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return(n=clearTimeout)(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function g(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)e[r-1]=arguments[r];u.push(new p(t,e)),1!==u.length||l||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e,r){"use strict";r.r(e);var n=r(6),o=r.n(n),i=(n=r(3),r.n(n));function a(t){return""===t?t:"true"===t||"1"==t}var s,u,l,h=r(9),c=(n={props:{text:{type:String,required:!0},qid:{type:String},correctLevel:{type:Number,default:1},size:{type:Number,default:200},margin:{type:Number,default:20},colorDark:{type:String,default:"#000000"},colorLight:{type:String,default:"#FFFFFF"},bgSrc:{type:String,default:void 0},background:{type:String,default:"rgba(0,0,0,0)"},backgroundDimming:{type:String,default:"rgba(0,0,0,0)"},logoSrc:{type:String,default:void 0},logoBackgroundColor:{type:String,default:"rgba(255,255,255,1)"},gifBgSrc:{type:String,default:void 0},logoScale:{type:Number,default:.2},logoMargin:{type:Number,default:0},logoCornerRadius:{type:Number,default:8},whiteMargin:{type:[Boolean,String],default:!0},dotScale:{type:Number,default:1},autoColor:{type:[Boolean,String],default:!0},binarize:{type:[Boolean,String],default:!1},binarizeThreshold:{type:Number,default:128},callback:{type:Function,default:function(){}},bindElement:{type:Boolean,default:!0},backgroundColor:{type:String,default:"#FFFFFF"},components:{default:function(){return{data:{scale:1},timing:{scale:1,protectors:!1},alignment:{scale:1,protectors:!1},cornerAlignment:{scale:1,protectors:!0}}}}},name:"vue-qr",data:function(){return{imgUrl:""}},watch:{$props:{deep:!0,handler:function(){this.main()}}},mounted:function(){this.main()},methods:{main:function(){var t=this;return o()(i.a.mark((function e(){var r,n;return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:var o;if(t.gifBgSrc)return e.next=3,o=t.gifBgSrc,new Promise((function(t,e){var r=new XMLHttpRequest;r.responseType="blob",r.onload=function(){var e=new FileReader;e.onloadend=function(){t(e.result)},e.readAsArrayBuffer(r.response)},r.open("GET",o),r.send()}));e.next=7;break;case 3:return n=e.sent,r=t.logoSrc,t.render(void 0,r,n),e.abrupt("return");case 7:r=t.bgSrc,n=t.logoSrc,t.render(r,n);case 10:case"end":return e.stop()}}),e)})))()},render:function(t,e,r){var n=this;return o()(i.a.mark((function o(){var s;return i.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:s=n,new h.a({gifBackground:r,text:s.text,size:s.size,margin:s.margin,colorDark:s.colorDark,colorLight:s.colorLight,backgroundColor:s.backgroundColor,backgroundImage:t,backgroundDimming:s.backgroundDimming,logoImage:e,logoScale:s.logoScale,logoBackgroundColor:s.logoBackgroundColor,correctLevel:s.correctLevel,logoMargin:s.logoMargin,logoCornerRadius:s.logoCornerRadius,whiteMargin:a(s.whiteMargin),dotScale:s.dotScale,autoColor:a(s.autoColor),binarize:a(s.binarize),binarizeThreshold:s.binarizeThreshold,components:s.components}).draw().then((function(t){n.imgUrl=t,s.callback&&s.callback(t,s.qid)}));case 2:case"end":return o.stop()}}),o)})))()}}},r=function(){var t=this.$createElement;t=this._self._c||t;return this.bindElement?t("img",{staticStyle:{display:"inline-block"},attrs:{src:this.imgUrl}}):this._e()},(f="function"==typeof n?n.options:n).render=r,f.staticRenderFns=[],f._compiled=!0,s&&(f.functional?(f._injectStyles=s,u=f.render,f.render=function(t,e){return s.call(e),u(t,e)}):(r=f.beforeCreate,f.beforeCreate=r?[].concat(r,s):[s])),n),f=(c.install=function(t){return t.component(c.name,c)},c);r=[f];"undefined"!=typeof window&&window.Vue&&(l=window.Vue,r.map((function(t){l.component(t.name,t)}))),e.default=f}],r={},t.m=e,t.c=r,t.d=function(e,r,n){t.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:n})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(e,r){if(1&r&&(e=t(e)),8&r)return e;if(4&r&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)t.d(n,o,function(t){return e[t]}.bind(null,o));return n},t.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(r,"a",r),r},t.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},t.p="/dist/",t(t.s=13);function t(n){var o;return(r[n]||(o=r[n]={i:n,l:!1,exports:{}},e[n].call(o.exports,o,o.exports,t),o.l=!0,o)).exports}var e,r},t.exports=n()}}]);