| 123 |
- import{s as U1}from"./spreadSheetsDesignerResourcesCn-afJmEehS.js";(function(k1){function z1(g1){var J;return(J=F1[g1])!==void 0||(J=F1[g1]={exports:{}},q1[g1].call(J.exports,J,J.exports,z1)),J.exports}var q1,F1,L1;q1={"./dist/plugins/barcode/barcodeSparkline.js":function(g1,J,y1){var N1,K,A,S,k,w,u,p,y,C,f,m,g,c,l,s,a,o,n,e,r,t,i,h,b,_,M,O,R,N,E,z,D,Q;function F(i1,o1,r1,h1,a1){return{plotX:i1+a1,plotY:o1+a1,plotWidth:r1-2*a1,plotHeight:h1-2*a1}}function L(){return i.call(this)||this}function T(){return h.call(this)||this}function x(){return b.call(this)||this}function U(){return _.call(this)||this}function G(){return M.call(this)||this}function P(){return O.call(this)||this}function H(){return R.call(this)||this}function n1(){return N.call(this)||this}function t1(){return E.call(this)||this}function Y(){return z.call(this)||this}function u1(){return D.call(this)||this}function f1(){return Q.call(this)||this}function s1(i1){i1&&(N1.jMt[i1.name()]=i1)}r=this&&this.__extends||(t=function(i1,o1){return(t=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(r1,h1){r1.__proto__=h1}:function(r1,h1){for(var a1 in h1)Object.prototype.hasOwnProperty.call(h1,a1)&&(r1[a1]=h1[a1])}))(i1,o1)},function(i1,o1){if(typeof o1!="function"&&o1!==null)throw new TypeError("Class extends value "+String(o1)+" is not a constructor or null");function r1(){this.constructor=i1}t(i1,o1),i1.prototype=o1===null?Object.create(o1):(r1.prototype=o1.prototype,new r1)}),Object.defineProperty(J,"__esModule",{value:!0}),J.DataMatrix=J.PDF417=J.Code49=J.GS1_128=J.Code128=J.Code93=J.Code39=J.Codabar=J.EAN8=J.EAN13=J.QRCode=J.BarcodeBase=J.generatePaintBarcodeViewModel=void 0,m=y1("Core"),g=y1("CalcEngine"),f=y1("Common"),N1=y1("Sparkline"),K=y1("./dist/plugins/barcode/lib/barcode.all.js"),y1=m.GC$,A=y1.isEmptyObject,S=g.Functions.Function,k=void 0,w=f.Common.lt.ht,u=f.Common.lt.tv,m=g.Convert,p=m.Nh,y=g.Errors.Value,C=["text","color","backgroundColor"],J.generatePaintBarcodeViewModel=function(i1,o1,r1){o1=(i1=F(-1,-1,i1,o1,2)).plotWidth;var h1,a1,d1,$=i1.plotHeight;(r1=u(r1)).desiredSize={width:o1,height:$,forceRounding:!1};try{h1=new K(null,r1)}catch{return null}return a1=h1.getSize(),d1=parseInt(h1.option.font.fontSize,10),d1=isNaN(d1)?12:d1,r1.desiredSize.width=o1,r1.desiredSize.height=$,r1.font=r1.font||{},r1.font.fontSize=d1+"px",o1=K.getDataUrl(r1),h1.destroy(),{dataUrl:o1,plotRect:i1,barcodeSize:a1}},r(L,i=N1.SparklineEx),L.prototype.getBarcodeInfo=function(){return null},L.prototype.createFunction=function(){var i1,o1,r1,h1=this;if(r1=this.getBarcodeInfo())return i1=new S(r1.fnName,r1.minimum,r1.maxmum),o1=r1.acceptsArrayArgIndex,i1.acceptsArray=function(a1){return a1===o1},i1.evaluate=function(a1){var d1;a1[o1]=p(a1[o1])?a1[o1].array[0]:a1[o1],(a1=h1.t(a1,r1.properties)).type=r1.type,a1.isBarcode=!0;try{d1=u(a1),new K(null,d1)}catch{return y}return a1},i1},L.prototype.paint=function(i1,o1,r1,h1,a1,d1,$){(function(v1,T1,M1,D1,I1,R1,P1){var B1,w1,C1,d,v,B=F(M1,D1,I1,R1,2),Z=(T1=u(T1),B.plotX),I=B.plotY,q=B.plotWidth;B=B.plotHeight,T1.desiredSize={width:q,height:B,forceRounding:!1};try{v=new K(null,T1)}catch{return}B1=v.getSize(),w1=parseInt(v.option.font.fontSize,10),w1=isNaN(w1)?12:w1,C1=(d=window.screen).deviceXDPI,C1=window.devicePixelRatio||(C1?C1/d.logicalXDPI:1),v.destroy(),T1.desiredSize.width=q*C1,T1.desiredSize.height=B*C1,T1.font=T1.font||{},T1.font.fontSize=w1*C1*P1.zoomFactor+"px",d=K.getDataUrl(T1),(v=P1.sheet.BO())&&(v.getState(d)?(q=v.getImage(d),v1.save(),v1.rect(M1,D1,I1,R1),v1.clip(),v1.drawImage(q,0,0,q.width,q.height,Z,I,B1.width,B1.height),v1.restore()):v.addImage(d,k,{loadCallback:P1.asyncResourcesLoadedCallback}))})(i1,o1,r1,h1,a1,d1,$)},L.prototype.t=function(i1,o1){var r1={},h1={},a1={};return o1.forEach(function(d1,$){var v1=i1[$];if(!w(v1))if(d1.indexOf("quietZone")!==-1)switch(d1){case"quietZoneLeft":h1.left=v1;break;case"quietZoneRight":h1.right=v1;break;case"quietZoneTop":h1.top=v1;break;case"quietZoneBottom":h1.bottom=v1}else if(d1.indexOf("font")!==-1)switch(d1){case"fontFontFamily":a1.fontFamily=v1;break;case"fontFontStyle":a1.fontStyle=v1;break;case"fontFontWeight":a1.fontWeight=v1;break;case"fontTextDecoration":a1.textDecoration=v1;break;case"fontTextAlign":a1.textAlign=v1;break;case"fontFontSize":a1.fontSize=v1}else r1[d1]=v1}),A(h1)||(r1.quietZone=h1),A(a1)||(r1.font=a1),r1},J.BarcodeBase=y1=L,r(T,h=y1),T.prototype.getBarcodeInfo=function(){return{fnName:"BC_QRCODE",minimum:1,maxmum:16,type:"QRCode",acceptsArrayArgIndex:9,properties:C.concat(["errorCorrectionLevel","model","version","mask","connection","connectionNo","charCode","charset","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom","quietZoneAddOn"])}},J.QRCode=f=T,r(x,b=y1),x.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN13",minimum:1,maxmum:18,type:"EAN13",properties:C.concat(["showLabel","labelPosition","addOn","addOnLabelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.EAN13=m=x,r(U,_=y1),U.prototype.getBarcodeInfo=function(){return{fnName:"BC_EAN8",minimum:1,maxmum:15,type:"EAN8",properties:C.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.EAN8=g=U,r(G,M=y1),G.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODABAR",minimum:1,maxmum:17,type:"Codabar",properties:C.concat(["showLabel","labelPosition","checkDigit","nwRatio","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Codabar=c=G,r(P,O=y1),P.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE39",minimum:1,maxmum:19,type:"Code39",properties:C.concat(["showLabel","labelPosition","labelWithStartAndStopCharacter","checkDigit","nwRatio","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code39=l=P,r(H,R=y1),H.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE93",minimum:1,maxmum:17,type:"Code93",properties:C.concat(["showLabel","labelPosition","checkDigit","fullASCII","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code93=s=H,r(n1,N=y1),n1.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE128",minimum:1,maxmum:16,type:"Code128",properties:C.concat(["showLabel","labelPosition","codeSet","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code128=a=n1,r(t1,E=y1),t1.prototype.getBarcodeInfo=function(){return{fnName:"BC_GS1_128",minimum:1,maxmum:16,type:"GS1_128",properties:C.concat(["showLabel","labelPosition","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.GS1_128=o=t1,r(Y,z=y1),Y.prototype.getBarcodeInfo=function(){return{fnName:"BC_CODE49",minimum:1,maxmum:17,type:"Code49",properties:C.concat(["showLabel","labelPosition","grouping","groupNo","fontFontFamily","fontFontStyle","fontFontWeight","fontTextDecoration","fontTextAlign","fontFontSize","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.Code49=n=Y,r(u1,D=y1),u1.prototype.getBarcodeInfo=function(){return{fnName:"BC_PDF417",minimum:1,maxmum:11,type:"PDF417",properties:C.concat(["errorCorrectionLevel","rows","columns","compact","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.PDF417=e=u1,r(f1,Q=y1),f1.prototype.getBarcodeInfo=function(){return{fnName:"BC_DATAMATRIX",minimum:1,maxmum:14,type:"DataMatrix",properties:C.concat(["eccMode","ecc200SymbolSize","ecc200EncodingMode","ecc00_140SymbolSize","structuredAppend","structureNumber","fileIdentifier","quietZoneLeft","quietZoneRight","quietZoneTop","quietZoneBottom"])}},J.DataMatrix=r=f1,S&&(s1(new f),s1(new m),s1(new g),s1(new c),s1(new l),s1(new s),s1(new a),s1(new o),s1(new n),s1(new e),s1(new r))},"./dist/plugins/barcode/lib/barcode.all.js":function(g1){typeof self<"u",g1.exports=function(){return y1=[function(K,A,S){var k,w;function u(x){return typeof x=="function"}function p(x){return!!x&&x===x.window}function y(x){return x!==void 0}function C(x){return u(Number.isNaN)?Number.isNaN(x):x!=x}function f(x){return!C(+x)}function m(){for(var x,U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1,G=arguments[2],P=0,H=(x=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"").length;P<H;)G(x.substring(P,P+U)),P+=U}function g(){for(var x,U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:1,G=arguments[2],P=0,H=(x=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[]).length;P<H;)G(x.slice(P,P+U)),P+=U}function c(){var x=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"";return u(Array.from)?Array.from(x):Array.prototype.slice.call(x)}function l(){var x=c(0<arguments.length&&arguments[0]!==void 0?arguments[0]:""),U=[];return x.forEach(function(G){G==="0"?U.push(0):U[U.length-1]&&U[U.length]!==0?(G=U.pop(),U.push(++G)):U.push(1)}),U}function s(x){return(x=+x).toString(1<arguments.length&&arguments[1]!==void 0?arguments[1]:2)}function a(x){return x%2==0}function o(x){return x%2==1}function n(){var x,U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:0;return typeof(x=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"")!="number"&&C(x=parseFloat(x))?U:x}function e(){var x;return(x=/[a-zA-Z]+/.exec(0<arguments.length&&arguments[0]!==void 0?arguments[0]:""))?x[0]:"px"}function r(x){var U=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"length",G=0;return x.forEach(function(P){P[U]>G&&(G=P[U])}),G}function t(x){for(var U,G,P,H,n1=arguments.length,t1=Array(1<n1?n1-1:0),Y=1;Y<n1;Y++)t1[Y-1]=arguments[Y];if(u(Object.assign))return Object.assign.apply(Object,[x].concat(t1));if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(U=Object(x),G=0;G<t1.length;G++)if((P=t1[G])!=null)for(H in P)Object.prototype.hasOwnProperty.call(P,H)&&(U[H]=P[H]);return U}function i(x){if(x==null)throw new TypeError("Cannot convert undefined or null to object");for(var U=arguments.length,G=Array(1<U?U-1:0),P=1;P<U;P++)G[P-1]=arguments[P];return G.forEach(function(H){if(H)for(var n1 in H)Object.prototype.hasOwnProperty.call(H,n1)&&(k(H[n1])==="object"&&k(x[n1])==="object"?x[n1]=i({},x[n1]||{},H[n1]):x[n1]=H[n1])}),x}function h(x,U){var G,P,H;if(u(x.repeat))return x.repeat(U);if(G=""+x,(U=(U=+U)!=U?0:U)<0)throw new RangeError("repeat count must be non-negative");if(U==1/0)throw new RangeError("repeat count must be less than infinity");if(U=Math.floor(U),G.length==0||U==0)return"";if(1<<28<=G.length*U)throw new RangeError("repeat count must not overflow maximum string size");for(P="",H=0;H<U;H++)P+=G;return P}function b(x){return u(Number.isInteger)?Number.isInteger(x):typeof x=="number"&&isFinite(x)&&Math.floor(x)===x}function _(x,U){if(u(x.fill))return x.fill(U);for(var G=0;G<x.length;G++)x[G]=U;return x}function M(x,U,G){return u(x.padStart)?x.padStart(U,G):(U>>=0,G=String(G!==void 0?G:" "),x.length>U?x:((U-=x.length)>G.length&&(G+=h(G,U/G.length)),G.slice(0,U)+String(x)))}function O(x,U){w[x]=U}function R(x,U){return 1.4*n(U.fontSize,12)}function N(x,U){return w.measureText(x,U)}function E(x,U){return(u(w.measureText)?(A.measureText=E=N,E):R)(x,U)}function z(x){return n(x,12)}function D(x){return f(x)?n(x,12):w.convertUnit(x)}function Q(x){return(u(w.convertUnit)?(A.convertUnit=Q=D,Q):z)(x)}function F(x){return f(x)?x+"px":x}function L(x){return x.originIsAbsoluteValue?0:x.relativeValue}function T(x){return x.originIsAbsoluteValue?x.pixelValue:0}Object.defineProperty(A,"__esModule",{value:!0}),k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},A.isFunction=u,A.isWindow=p,A.isDefined=y,A.isNaN=C,A.isNumberLike=f,A.sliceString=m,A.sliceArray=g,A.str2Array=c,A.combineTruthy=l,A.convertRadix=s,A.isEven=a,A.isOdd=o,A.toNumber=n,A.getUnit=e,A.getMaxValue=r,A.assign=t,A.deepMerge=i,A.strRepeat=h,A.isInteger=b,A.fillArray=_,A.strPadStart=M,A.registerPlugin=O,A.measureText=E,A.convertUnit=Q,A.fixSize2PixelDefault=F,A.getQuietZoneRelativeValue=L,A.getQuietZonePixelValue=T,w={}},function(K,A,S){function k(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function w(r,t){if(r)return!t||typeof t!="object"&&typeof t!="function"?r:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function u(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}function p(r){var t,i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return k(this,p),(t=w(this,(p.__proto__||Object.getPrototypeOf(p)).call(this))).name="BadArgumentsException",r=JSON.stringify(r),t.message=r+" is not a valid argument. "+i,t}function y(r){k(this,y);var t=w(this,(y.__proto__||Object.getPrototypeOf(y)).call(this));return t.name="TypeNotSupportException",t.message=r+" is not support!",t}function C(r){k(this,C);var t=w(this,(C.__proto__||Object.getPrototypeOf(C)).call(this));return t.name="NotAValidBarcodeEncoderException",t.message=r+" is not support!",t}function f(){k(this,f);var r=w(this,(f.__proto__||Object.getPrototypeOf(f)).call(this));return r.name="SubclassNotImplementException",r.message="must implement by subclass!",r}function m(r){k(this,m);var t=w(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));return t.name="UnrecognizedRenderException",t.message=r+" is not support!",t}function g(r){k(this,g);var t=w(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));return t.name="MethodNotImplementException",t.message=r+" doesn't have this method!",t}function c(){var r,t=0<arguments.length&&arguments[0]!==void 0?arguments[0]:"Empty text",i=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return k(this,c),(r=w(this,(c.__proto__||Object.getPrototypeOf(c)).call(this))).name="InvalidTextException",r.message=t+" is invalid. "+i,r}function l(r){k(this,l);var t=w(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.name="InvalidCharException",t.message=r+" is invalid.",t}function s(){k(this,s);var r=w(this,(s.__proto__||Object.getPrototypeOf(s)).call(this));return r.name="TextTooLargeException",r.message="Text is too larget to encode",r}function a(r){k(this,a);var t=w(this,(a.__proto__||Object.getPrototypeOf(a)).call(this));return t.name="ConnectionOverflowException",t.message="Max Connection Number is "+(r-1),t}function o(r){k(this,o);var t=w(this,(o.__proto__||Object.getPrototypeOf(o)).call(this));return t.name="GroupOverflowException",t.message="Max Group Number is "+(r-1),t}function n(r){k(this,n);var t=w(this,(n.__proto__||Object.getPrototypeOf(n)).call(this));return t.name="GroupSizeException",t.message="Group size is "+r+". The max group size is 9.",t}function e(){k(this,e);var r=w(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return r.name="InvalidStructureNumberException",r.message="InvalidStructureNumberException.",r}Object.defineProperty(A,"__esModule",{value:!0}),A.BadArgumentsException=(u(p,Error),p),A.TypeNotSupportException=(u(y,Error),y),A.NotAValidBarcodeEncoderException=(u(C,Error),C),A.SubclassNotImplementException=(u(f,Error),f),A.UnrecognizedRenderException=(u(m,Error),m),A.MethodNotImplementException=(u(g,Error),g),A.InvalidTextException=(u(c,Error),c),A.InvalidCharException=(u(l,Error),l),A.TextTooLargeException=(u(s,Error),s),A.ConnectionOverflowException=(u(a,Error),a),A.GroupOverflowException=(u(o,Error),o),A.GroupSizeException=(u(n,Error),n),A.InvalidStructureNumberException=(u(e,Error),e)},function(K,A,S){(function(k){var w,u,p,y,C,f,m,g;function c(o,n){for(var e,r=0;r<n.length;r++)(e=n[r]).enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}function l(o){return o&&o.__esModule?o:{default:o}}function s(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function a(){var o,n,e,r,t,i;for(s(this,a),e=n=o=void 0,r=arguments.length,t=Array(r),i=0;i<r;i++)t[i]=arguments[i];if(3<=t.length)o=t[0],n=t[1],e=t[2];else if(t.length===2)(0,w.isFunction)(t[1])?(n=t[0],e=t[1]):(o=t[0],n=t[1]);else{if(t.length!==1)throw new u.BadArgumentsException(t);n=t[0]}this.dom=typeof o=="string"?document.querySelector(o):o,this.callback=e&&e.bind(this),this.setOption(n)}Object.defineProperty(A,"__esModule",{value:!0}),g=function(o,n,e){return n&&c(o.prototype,n),e&&c(o,e),o},w=S(0),u=S(1),y=S(23),p=l(y),y=l(S(6)),C={renderType:"canvas",unitSize:"1px",color:"rgb(0,0,0)",backgroundColor:"rgb(255,255,255)",font:{fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",textDecoration:"none",textAlign:"center",fontSize:"12px"}},f={},m={},g(a,null,[{key:"getImageData",value:function(){return new a(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).getImageData()}},{key:"getDataUrl",value:function(){return new a(0<arguments.length&&arguments[0]!==void 0?arguments[0]:{}).getDataUrl()}},{key:"setDefaultOptions",value:function(){f=(0,w.deepMerge)({},0<arguments.length&&arguments[0]!==void 0?arguments[0]:{})}},{key:"registerEncoder",value:function(o,n){m[o]=n,a.supportType.push(o)}},{key:"registerPlugin",value:function(o,n){(0,w.registerPlugin)(o,n)}}]),g(a,[{key:"mergeOption",value:function(o){return this.option=(0,w.deepMerge)({},this.option,o),this.update(),this}},{key:"setOption",value:function(o){return this.option=(0,w.deepMerge)({},C,f,o),this.update(),this}},{key:"update",value:function(){var o,n=this.option;if(!(o=m[n.type]))throw new u.TypeNotSupportException(n.type);this.encoder=new o(n),this.render&&(this.render.destroy(),this.render=null),this.render=new p.default(this.dom,this.encoder),this.render.render(),(0,w.isFunction)(this.callback)&&this.callback()}},{key:"getImageData",value:function(){return this.render.getImageData()}},{key:"getDataUrl",value:function(){return this.render.getDataUrl()}},{key:"getSize",value:function(){return this.render.size}},{key:"destroy",value:function(){this.render&&this.render.destroy()}}]),(A.default=g=a).supportType=[],g.constants=y.default,(0,w.isWindow)(k)&&(k.Barcode=g)}).call(A,S(22))},function(K,A,S){var k,w,u,p,y,C,f,m,g,c;function l(T){return T&&T.__esModule?T:{default:T}}function s(T){return 48<=T&&T<=57}function a(T){return-1<" $%*+-./:".indexOf(String.fromCharCode(T))||48<=T&&T<=57||65<=T&&T<=90}function o(T){return 0<=T&&T<=255}function n(T){return 33087<=T&&T<=64587}function e(T,x){var U=p[T];return x.length===1?U(x):x.every(function(G){return U(G)})}function r(T){var x=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"UTF-8";return s(T)?"Numeric":a(T)?"Alphanumeric":x==="Shift_JIS"&&n(T)?"Kanji":"8BitByte"}function t(T){return 1<=T&&T<=9?{Numeric:10,Alphanumeric:9,"8BitByte":8,Kanji:8}:10<=T&&T<=26?{Numeric:12,Alphanumeric:11,"8BitByte":16,Kanji:10}:{Numeric:14,Alphanumeric:13,"8BitByte":16,Kanji:12}}function i(T){if(48<=T&&T<=57)return+String.fromCharCode(T);if(65<=T&&T<=90)return T-65+10;var x=y[String.fromCharCode(T)];if(x)return x;throw new k.InvalidTextException(String.fromCharCode(T))}function h(T){for(var x=[],U=0;U<T;U++)x.push((0,w.fillArray)(new Array(T),null));return x}function b(T){return C[T-1]}function _(T,x){var U,G,P,H,n1,t1,Y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:2,u1=void 0;switch(x){case 1:u1=0;break;case 0:u1=1;break;case 3:u1=2;break;case 2:u1=3}for(G=[],P=(U=(Y===2?m:g)[4*(T-1)+u1]).length/3,H=0;H<P;H++)for(n1=U[3*H],t1=0;t1<n1;t1++)G.push({total:U[3*H+1],data:U[3*H+2],ec:U[3*H+1]-U[3*H+2]});return G}function M(T){return f[T]}function O(T){return T.reduce(function(x,U){return x.push(U.slice(0)),x},[])}function R(T){for(var x,U,G,P,H,n1,t1,Y,u1,f1,s1,i1,o1,r1,h1,a1=T.length,d1=0,$=0;$<a1;$++)for(x=0;x<a1;x++){for(U=0,G=T[$][x],P=-1;P<=1;P++)if(!($+P<0||a1<=$+P))for(H=-1;H<=1;H++)x+H<0||a1<=x+H||P==0&&H==0||G==T[$+P][x+H]&&(U+=1);5<U&&(d1+=3+U-5)}for(n1=0;n1<a1-1;n1++)for(t1=0;t1<a1-1;t1++)Y=0,T[n1][t1]&&(Y+=1),T[n1+1][t1]&&(Y+=1),T[n1][t1+1]&&(Y+=1),T[n1+1][t1+1]&&(Y+=1),Y!=0&&Y!=4||(d1+=3);for(u1=0;u1<a1;u1++)for(f1=0;f1<a1-6;f1++)T[u1][f1]&&!T[u1][f1+1]&&T[u1][f1+2]&&T[u1][f1+3]&&T[u1][f1+4]&&!T[u1][f1+5]&&T[u1][f1+6]&&(d1+=40);for(s1=0;s1<a1;s1++)for(i1=0;i1<a1-6;i1++)T[i1][s1]&&!T[i1+1][s1]&&T[i1+2][s1]&&T[i1+3][s1]&&T[i1+4][s1]&&!T[i1+5][s1]&&T[i1+6][s1]&&(d1+=40);for(r1=o1=0;r1<a1;r1++)for(h1=0;h1<a1;h1++)T[h1][r1]&&(o1+=1);return d1+Math.abs(100*o1/a1/a1-50)/5*10}function N(T,x,U,G){var P,H,n1=4<arguments.length&&arguments[4]!==void 0&&arguments[4],t1=T.length,Y=O(T),u1=(T=(0,w.strPadStart)((0,w.convertRadix)(U,2),2,0),U=(0,w.strPadStart)((0,w.convertRadix)(x,2),3,0),u.default.getBCH15(parseInt(T+U,2),G));for(Y[t1-8][8]=n1?0:1,P=15;0<P;P--)H=n1?0:u1>>P-1&1,9<P?(Y[8][15-P]=H,Y[t1-1-15+P][8]=H):8<P?(Y[8][15-P+1]=H,Y[t1-1-15+P][8]=H):(6<P?Y[P][8]=H:Y[P-1][8]=H,Y[8][t1-P]=H);return Y}function E(T,x,U){var G,P,H=0,n1=0,t1=0,Y=0;for(x.forEach(function(u1){s(u1)?H++:a(u1)?n1++:n(u1)?Y++:o(u1)&&t1++}),G=Math.ceil((5*n1+3*H+13*Y+8*t1)/8),P=1;P<=40;P++)if(G<=_(P,T,U).reduce(function(u1,f1){return u1+f1.data},0))return P;throw new k.TextTooLargeException}function z(T,x){return T=c[T],x<=9?T[0]:x<=26?T[1]:T[2]}function D(T){for(var x,U=[],G=0;G<T.length;G+=1)(x=T[G])<128||(255&x)==x?U.push(x):(U.push(x>>>8),U.push(255&x));return U}function Q(T){for(var x,U=[],G=0,P=T.length;G<P;G++)(x=T[G])<128?U.push(x):x<2048?U.push(192|x>>6,128|63&x):x<55296||57344<=x?U.push(224|x>>12,128|x>>6&63,128|63&x):(x=65536+((1023&x)<<10|1023&T[++G]),U.push(240|x>>18,128|x>>12&63,128|x>>6&63,128|63&x));return U}function F(T,x){for(var U=void 0,G=(U=(x==="Shift_JIS"?D:Q)(T))[0],P=1,H=U.length;P<H;P++)G^=U[P];return G}function L(T){var x=[];return(0,w.sliceString)(T,1,function(U){x.push(U.charCodeAt(0))}),x}Object.defineProperty(A,"__esModule",{value:!0}),k=S(1),w=S(0),S=S(13),u=l(S),p={Numeric:s,Alphanumeric:a,"8BitByte":o,Kanji:n},y={" ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},C=[[],[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]],m=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],g=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,46,36],[1,46,30],[1,46,24],[1,46,16],[1,72,57],[1,72,44],[1,72,36],[1,72,24],[1,100,80],[1,100,60],[1,100,50],[1,100,34],[1,134,108],[1,134,82],[1,134,68],[2,67,23],[1,170,136],[2,85,53],[2,85,43],[2,85,29],[1,212,170],[2,106,66],[2,106,54],[3,70,24],[2,128,104],[2,128,80],[2,128,64],[3,85,29],[2,153,123],[2,153,93],[3,102,52],[3,102,34],[2,179,145],[2,179,111],[3,119,61],[4,89,31],[2,208,168],[4,104,64],[4,104,52],[5,83,29],[2,238,192],[4,119,73],[4,119,61],[5,95,33],[3,180,144],[4,135,83],[4,135,69],[6,90,32],[3,203,163],[4,152,92],[5,122,62],[6,101,35]],A.default={defaultConfig:{version:"auto",errorCorrectionLevel:"L",model:2,mask:"auto",connection:!(c={Alphanumeric:[[6,11],[7,15],[8,16]],Numeric:[[4,6,6,13],[4,7,8,15],[5,8,9,17]]}),connectionNo:0,charCode:void 0,charset:"UTF-8",quietZone:{top:4,left:4,right:4,bottom:4}},MODE_INDICATOR:{ECI:7,Numeric:1,Alphanumeric:2,"8BitByte":4,Kanji:8,StructuredAppend:3,FNC1First:5,FNC2Second:9,Terminator:0},isMode:e,getSizeByVersion:function(T){return 4*T+17},getCharacterCountIndicatorbitsNumber:t,getAlphanumericCharValue:i,createModules:h,getMaskFunc:M,getAlignmentPattersPos:b,getErrorCorrectionCharacteristics:_,padCodewords0:236,padCodewords1:17,getMaskScore:R,maskFuncs:f=[function(T,x){return(T+x)%2==0},function(T){return T%2==0},function(T,x){return x%3==0},function(T,x){return(T+x)%3==0},function(T,x){return(Math.floor(T/2)+Math.floor(x/3))%2==0},function(T,x){return T*x%2+T*x%3==0},function(T,x){return(T*x%2+T*x%3)%2==0},function(T,x){return(T*x%3+(T+x)%2)%2==0}],addFormatInformation:N,getEstimatedVersion:E,getCharMode:r,EC_INDICATOR:{L:1,M:0,Q:3,H:2},getModeCheckInfo:z,getParityData:F,utf8Encode:Q,getCharCode:L,sjisEncode:D,cloneModules:O}},function(K,A,S){var k,w,u;function p(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function y(c){return c&&c.__esModule?c:{default:c}}function C(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function f(c,l){if(c)return!l||typeof l!="object"&&typeof l!="function"?c:l;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function m(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}function g(){return C(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&p(c.prototype,l),s&&p(c,s),c},w=y(w=S(10)),u=S(0),m(g,w.default),k(g,[{key:"adjustDesiredSize",value:function(c){var l,s,a=(o=this.config).desiredSize,o=o.showLabel,n=this.quietZone,e=this.fontHeight,r=this.containerWidth,t=this.containerHeight;a&&(c=c.length+(0,u.getQuietZoneRelativeValue)(n.left)+(0,u.getQuietZoneRelativeValue)(n.right),r=r-(0,u.getQuietZonePixelValue)(n.left)-(0,u.getQuietZonePixelValue)(n.right),s=l=void 0,a.forceRounding?s=(l=~~(r/c))<1?1:l:l=s=r/c,this.style.unitValue=s,this.style.fontSizeInUnit=e/s,t=(t=o?t-e:t)-(0,u.getQuietZonePixelValue)(n.top)-(0,u.getQuietZonePixelValue)(n.bottom),this.height=t/s-(0,u.getQuietZoneRelativeValue)(n.top)-(0,u.getQuietZoneRelativeValue)(n.bottom),Object.keys(n).forEach(function(i){n[i].originIsAbsoluteValue&&(n[i].relativeValue=n[i].pixelValue/s)}))}},{key:"convertToShape",value:function(c){var l,s,a,o,n,e,r=this.label,t=this.quietZone,i=this.isLabelBottom,h=this.height,b=this.config.showLabel,_=(M=this.style).fontSizeInUnit,M=M.textAlign;if(b||(_=0),l=[],s=t.left.relativeValue,a=t.top.relativeValue,o=void 0,i?o=a+h:(o=a,a+=_),(0,u.combineTruthy)(c).forEach(function(O){O!==0?(l.push({type:"rect",x:s,y:a,width:O,height:h}),s+=O):s++}),b){switch(n=t.left.relativeValue,e=c.length,M){case"center":n+=e/2;break;case"right":n+=e}l.push({type:"text",x:n,y:o,text:r,textAlign:M,maxWidth:e})}this.size=i?{width:s+t.right.relativeValue,height:o+_+t.bottom.relativeValue}:{width:s+t.right.relativeValue,height:a+h+t.bottom.relativeValue},this.shapes=l}}]),S=g,A.default=S},function(K,A,S){var k,w,u,p,y,C,f,m;function g(n){return n&&n.__esModule?n:{default:n}}function c(n,e){if(n===m.FNC1)return f.FNC1;if(n===m.FNC2)return f.FNC2;if(n===m.FNC3)return f.FNC3;switch(e){case"A":return u.indexOf(n);case"B":return p.indexOf(n);case"C":return+n}}function l(n,e){if(e=y[c(n,e)])return e;throw new k.InvalidCharException(n)}function s(n){return y[n]}function a(n){var e="";return(0,w.str2Array)(n).forEach(function(r,t){(0,w.isEven)(t)?e+=(0,w.strRepeat)("1",+r):e+=(0,w.strRepeat)("0",+r)}),e}function o(n){return!/\D/.test(n)}Object.defineProperty(A,"__esModule",{value:!0}),k=S(1),w=S(0),S=g(S(6)),u=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","\0","","","","","","","\x07","\b"," ",`
- `,"\v","\f","\r","","","","","","","","","","","","","","\x1B","","","",""," "," "," "," "," "," "," "," "," "," "],p=[" ","!",'"',"#","$","%","&","'","(",")","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","\x7F"," "," "," "," "," "," "," "," "," "," "],y=["212222","222122","222221","121223","121322","131222","122213","122312","132212","221213","221312","231212","112232","122132","122231","113222","123122","123221","223211","221132","221231","213212","223112","312131","311222","321122","321221","312212","322112","322211","212123","212321","232121","111323","131123","131321","112313","132113","132311","211313","231113","231311","112133","112331","132131","113123","113321","133121","313121","211331","231131","213113","213311","213131","311123","311321","331121","312113","312311","332111","314111","221411","431111","111224","111422","121124","121421","141122","141221","112214","112412","122114","122411","142112","142211","241211","221114","413111","241112","134111","111242","121142","121241","114212","124112","124211","411212","421112","421211","212141","214121","412121","111143","111341","131141","114113","114311","411113","411311","113141","114131","311141","411131","211412","211214","211232"],C="2331112",f={CodeC:99,CodeB:100,CodeA:101,FNC1:102,FNC2:97,FNC3:96,StartA:103,StartB:104,StartC:105},m={CodeC:"\xCC",CodeB:"\xCD",CodeA:"\xCE",FNC1:S.default.FNC1,FNC2:S.default.FNC2,FNC3:S.default.FNC3,StartA:"\xD0",StartB:"\xD1",StartC:"\xD2"},A.default={getCharValue:c,getCharPattern:l,getPatternByIndex:s,Code128Sym:f,stopPattern:C,defaultConfig:{height:60,showLabel:!0,codeSet:"auto",quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},Code128Char:m,encode:a,isValideNumber:o}},function(K,A,S){Object.defineProperty(A,"__esModule",{value:!0}),A.default={FNC1:"\xCF",FNC2:"\xCA",FNC3:"\xC9",DataMatrixFNC1:"\u2000",DataMatrixMacro05:"\u2004",DataMatrixMacro06:"\u2005"}},function(K,A,S){var k,w,u;function p(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function y(c){return c&&c.__esModule?c:{default:c}}function C(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function f(c,l){if(c)return!l||typeof l!="object"&&typeof l!="function"?c:l;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function m(c,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);c.prototype=Object.create(l&&l.prototype,{constructor:{value:c,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(c,l):c.__proto__=l)}function g(){return C(this,g),f(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&p(c.prototype,l),s&&p(c,s),c},w=y(w=S(10)),u=S(0),m(g,w.default),k(g,[{key:"adjustDesiredSize",value:function(c){var l,s,a,o,n=(e=this.config).desiredSize,e=e.showLabel,r=this.quietZone,t=this.fontHeight,i=this.containerWidth,h=this.containerHeight;n&&(l=c[0].length+(0,u.getQuietZoneRelativeValue)(r.left)+(0,u.getQuietZoneRelativeValue)(r.right),c=c.length+(0,u.getQuietZoneRelativeValue)(r.top)+(0,u.getQuietZoneRelativeValue)(r.bottom),i=i-(0,u.getQuietZonePixelValue)(r.left)-(0,u.getQuietZonePixelValue)(r.right),h=h-(0,u.getQuietZonePixelValue)(r.top)-(0,u.getQuietZonePixelValue)(r.bottom),o=a=s=void 0,a=n.forceRounding?(s=(s=~~(i/l))<1?1:s,(a=~~(h/c))<1?1:a):(s=i/l,h/c),this.style.unitValue=o=Math.min(s,a),this.style.fontSizeInUnit=t/o,this.height=(h=e?h-t:h)/o-(0,u.getQuietZoneRelativeValue)(r.top)-(0,u.getQuietZoneRelativeValue)(r.bottom),Object.keys(r).forEach(function(b){r[b].originIsAbsoluteValue&&(r[b].relativeValue=r[b].pixelValue/o)}))}},{key:"convertToShape",value:function(c){var l=this.quietZone,s=[],a=l.top.relativeValue;c.forEach(function(o){var n=l.left.relativeValue;o.forEach(function(e){e&&s.push({type:"rect",x:n,y:a,width:1,height:1}),n++}),a++}),this.shapes=s,this.size={width:c[0].length+l.left.relativeValue+l.right.relativeValue,height:a+l.bottom.relativeValue}}}]),S=g,A.default=S},function(K,A,S){var k,w,u,p,y,C,f,m,g,c,l,s,a,o;function n(F){return F&&F.__esModule?F:{default:F}}function e(F){var L=p.values[p.keys.indexOf(F)];if(L)return{symbolRows:L[0],symbolColumns:L[1],symbolDataCapacity:L[2],eccLength:L[3],interleavedBlocks:L[4],regions:L[5],regionRows:L[6],regionColumns:L[7]};throw new w.BadArgumentsException({ecc200SymbolSize:F})}function r(F,L){if(F!=="squareAuto"&&F!=="rectangularAuto")return e(F);for(var T=F=="squareAuto"?0:24;T<p.keys.length;++T)if(p.values[T][2]>=L)return e(p.keys[T]);throw new w.TextTooLargeException}function t(F){var L=void 0;switch(F){case 1:case 2:L=1;break;case 4:L=2;break;case 16:L=4;break;case 36:L=6}return{rowOfRegion:L,colOfRegion:~~(F/L)}}function i(F,L){var T,x;for(L=L||F,T=[],x=0;x<F;x++)T.push((0,k.fillArray)(new Array(L),null));return T}function h(F){return f<F?F==u.FNC1Input?"FNC1":"ExtendedASCII":g<=F&&F<=c?"Numeric":l<=F&&F<=s?"LowerCasedLetter":a<=F&&F<=o?"UpperCasedLetter":"ASCIIOther"}function b(F){switch(h(F)){case"Numeric":return F-44;case"UpperCasedLetter":return F-51;default:switch(F){case 13:return 0;case 42:return 1;case 62:return 2;case 32:return 3}}return u.InvalidTripletValue}function _(F,L){if(F=="X12")return b(L);if(L<32)return L;if(L==32)return 3;if(L<48)return L-33;if(L<58)return L-44;if(L<65)return L-43;if(L<91)return F=="C40"?L-51:L-64;if(L<96)return L-69;if(L==96)return 0;if(L<123)return F=="C40"?L-96:L-83;if(L<128)return L-96;if(L==C||L==y)return L-128;throw new w.InvalidCharException(String.fromCharCode(L))}function M(F){return g<=F&&F<=c}function O(F,L){return F==="X12"?0:L<32?1:L==32?0:L<48?2:L<58?0:L<65?2:L<91?F=="C40"?0:3:L<96?2:L==96?3:L<123?F==="C40"?3:0:L==u.TripletFNC1||L==u.TripletUppershift?2:3}function R(F,L){var T,x=[];if(L==u.FNC1Input){if(F=="X12")throw new w.InvalidCharException("FNC1");L=u.TripletFNC1}else if(f<L){if(F!="C40"&&F!="Text")throw new w.InvalidCharException(String.fromCharCode(L));x.push(u.TripletShifts[2]),x.push(_(F,u.TripletUppershift)),L-=m}return 0<(T=O(F,L))&&x.push(u.TripletShifts[T]),x.push(_(F,L)),x}function N(F){return F<32||94<F?u.InvalidTripletValue:F&u.EDIFACTMask}function E(F,L,T){return T+1<(F=F+u.PseudoRandomSeed*L%T+1)?F-T-1:F}function z(F){var L,T,x=[];if(0<F.length){for(L=F[0],T=1;T<F.length;++T)F[T].charSet!=L.charSet?(0<L.length&&x.push((0,k.assign)({},L)),L.charSet=F[T].charSet,L.start=F[T].start,L.length=F[T].length):L.length+=F[T].length;0<L.length&&x.push(L)}return x}function D(F,L,T,x){for(var U,G,P,H=L.regionColumns,n1=L.regionRows,t1=F[T*=n1+=2],Y=x*=H+=2;Y<x+H;Y++)(0,k.isEven)(Y)?t1[Y]=1:t1[Y]=0;for(U=F[T+n1-1],G=x;G<x+H;G++)U[G]=1;for(P=T;P<T+n1;P++)F[P][x]=1,(0,k.isEven)(P)?F[P][x+H-1]=0:F[P][x+H-1]=1}function Q(F,L,T,x,U){for(var G,P,H=L.regionColumns,n1=T*((P=L.regionRows)+2)+1,t1=x*(H+2)+1,Y=T*P,u1=x*H,f1=0;f1<P;++f1)for(G=0;G<H;++G)F[n1+f1][t1+G]=U[Y+f1][u1+G]}Object.defineProperty(A,"__esModule",{value:!0}),k=S(0),w=S(1),S=n(S(6)),u={FNC1Input:S.default.DataMatrixFNC1.charCodeAt(0),Macro05Input:S.default.DataMatrixMacro05.charCodeAt(0),Macro06Input:S.default.DataMatrixMacro06.charCodeAt(0),StructuredAppand:233,FileIdentifierMax:254,ASCIIPad:129,ASCIIUpperShift:235,ASCIIFNC1:232,Macro05:236,Macro06:237,TripletUppershift:158,TripletFNC1:155,TripletPad:0,InvalidTripletValue:255,LatchToC40:230,LatchToBase256:231,LatchToX12:238,LatchToText:239,LatchToEDIFACT:240,TripletUnlatch:254,EDIFACTUnlatch:31,PseudoRandomSeed:149,PadRandomBase:253,Base256RandomBase:255,Base256SmallBlockSize:249,EDIFACTMask:63,Unvisited:255,TripletShifts:[255,0,1,2],MaxCodeWrods:2178,MaxStructures:16,MaxLookAheadOffset:50},p={keys:["square10","square12","square14","square16","square18","square20","square22","square24","square26","square32","square36","square40","square44","square48","square52","square64","square72","square80","square88","square96","square104","square120","square132","square144","rectangular8x18","rectangular8x32","rectangular12x26","rectangular12x36","rectangular16x36","rectangular16x48"],values:[[10,10,3,5,1,1,8,8],[12,12,5,7,1,1,10,10],[14,14,8,10,1,1,12,12],[16,16,12,12,1,1,14,14],[18,18,18,14,1,1,16,16],[20,20,22,18,1,1,18,18],[22,22,30,20,1,1,20,20],[24,24,36,24,1,1,22,22],[26,26,44,28,1,1,24,24],[32,32,62,36,1,4,14,14],[36,36,86,42,1,4,16,16],[40,40,114,48,1,4,18,18],[44,44,144,56,1,4,20,20],[48,48,174,68,1,4,22,22],[52,52,204,84,2,4,24,24],[64,64,280,112,2,16,14,14],[72,72,368,144,4,16,16,16],[80,80,456,192,4,16,18,18],[88,88,576,224,4,16,20,20],[96,96,696,272,4,16,22,22],[104,104,816,336,6,16,24,24],[120,120,1050,408,6,36,18,18],[132,132,1304,496,8,36,20,20],[144,144,1558,620,10,36,22,22],[8,18,5,7,1,1,6,16],[8,32,10,11,1,2,6,14],[12,26,16,14,1,1,10,24],[12,36,22,18,1,2,10,16],[16,36,32,24,1,2,14,16],[16,48,49,28,1,2,14,22]]},f=127,g=48,c=57,l=97,s=122,a=65,o=90,A.default={getSymbolInfo:e,getInfoOfRegions:t,createModules:i,CONSTANTS:u,getTripletCharValue:_,getRandomizedValue:E,getCharType:h,getSuitableSymbolSize:r,isDigit:M,getTripletCharSetChannel:O,getX12Value:b,getEDIFACTValue:N,getTripletEncodeValues:R,mergeUnits:z,TripletUppershift:y=158,TripletFNC1:C=155,ASCIIMax:f,ExtendedASCIIMin:m=128,Space:32,NumericMin:g,NumericMax:c,LowerCasedLetterMin:l,LowerCasedLetterMax:s,UpperCasedLetterMin:a,UpperCasedLetterMax:o,setRegionData:Q,setFinder:D}},function(K,A,S){var k;Object.defineProperty(A,"__esModule",{value:!0}),k=["BBAAA","BABAA","BAABA","BAAAB","ABBAA","AABBA","AAABB","ABABA","ABAAB","AABAB"],A.default={NORMAL_GUARD:"101",CENTRE_GUARD:"01010",TABLE:{A:["0001101","0011001","0010011","0111101","0100011","0110001","0101111","0111011","0110111","0001011"],B:["0100111","0110011","0011011","0100001","0011101","0111001","0000101","0010001","0001001","0010111"],C:["1110010","1100110","1101100","1000010","1011100","1001110","1010000","1000100","1001000","1110100"]},leftStructure:["AAAAAA","AABABB","AABBAB","AABBBA","ABAABB","ABBAAB","ABBBAA","ABABAB","ABABBA","ABBABA"],rightStructure:"CCCCCC",defaultConfig:{height:60,showLabel:!0,labelPosition:"bottom",addOnHeight:"auto",addOnLabelPosition:"top",quietZone:{top:0,right:7,bottom:0,left:11,addOn:5}},get2DigitAddOnTable:function(w){switch((w=parseInt(w))%4){case 0:return{leftStructure:"A",rightStructure:"A"};case 1:return{leftStructure:"A",rightStructure:"B"};case 2:return{leftStructure:"B",rightStructure:"A"};case 3:return{leftStructure:"B",rightStructure:"B"}}},ean8LeftStructure:"AAAA",ADD_ON_DELINEATOR:"01",get5DigitAddOnTable:function(w){var u=+(w+="")[0]+ +w[2]+ +w[4];return w=+w[1]+ +w[3],k[(3*u+9*w)%10]},ADD_ON_GUARD:"1011"}},function(K,A,S){var k,w,u;function p(f,m){for(var g,c=0;c<m.length;c++)(g=m[c]).enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}function y(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function C(f){var m,g,c,l,s,a,o,n,e,r,t,i,h=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};for(t in y(this,C),this.config=(0,u.deepMerge)({},h,f),f=(h=this.config).text,m=h.quietZone,r=h.unitSize,g=h.height,c=h.backgroundColor,l=h.color,s=h.renderType,e=h.labelPosition,a=h.desiredSize,o=h.showLabel,h=h.font,(0,u.isDefined)(f)&&(this.config.text+=""),(0,u.isDefined)(e)&&(this.isLabelBottom=e!=="top"),r=(0,u.fixSize2PixelDefault)(r),h.fontSize=(0,u.fixSize2PixelDefault)(h.fontSize),n=(0,u.convertUnit)(r),e=(0,u.measureText)(f,h),this.fontHeight=e,this.style=(0,u.assign)({},h,{backgroundColor:c,color:l,fontSizeInUnit:r=o?e/n:0,unitValue:n,renderType:s,fontHeight:e}),m=(0,u.assign)({},m))m.hasOwnProperty(t)&&(i=m[t],(0,u.isNumberLike)(i)?m[t]={relativeValue:+i,originIsAbsoluteValue:!1}:(i=(0,u.convertUnit)(i),m[t]={relativeValue:i/n,originIsAbsoluteValue:!0,pixelValue:i}));this.quietZone=m,(0,u.isDefined)(g)&&((0,u.isNumberLike)(g)?this.height=+g-r-m.top.relativeValue-m.bottom.relativeValue:this.height=(0,u.convertUnit)(g)/n-r-m.top.relativeValue-m.bottom.relativeValue),a&&(this.containerWidth=(0,u.convertUnit)((0,u.fixSize2PixelDefault)(a.width)),this.containerHeight=(0,u.convertUnit)((0,u.fixSize2PixelDefault)(a.height))),this.shapes=[],this.size={width:0,height:0},this.validate()}Object.defineProperty(A,"__esModule",{value:!0}),k=function(f,m,g){return m&&p(f.prototype,m),g&&p(f,g),f},w=S(1),u=S(0),k(C,[{key:"validate",value:function(){throw new w.SubclassNotImplementException}},{key:"adjustDesiredSize",value:function(){throw new w.SubclassNotImplementException}},{key:"convertToShape",value:function(){throw new w.SubclassNotImplementException}}]),A.default=C},function(K,A,S){var k,w,u,p,y,C,f,m,g;function c(e,r){for(var t,i=0;i<r.length;i++)(t=r[i]).enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(e)return!r||typeof r!="object"&&typeof r!="function"?e:r;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function o(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function n(e){var r,t=1<arguments.length&&arguments[1]!==void 0&&arguments[1];return s(this,n),r=(e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,p.default.defaultConfig))).config.text,(e.isUccEan128=t)&&r[0]!==p.default.Code128Char.FNC1&&(r=p.default.Code128Char.FNC1+r),e.text=r,e.label=r.replace(/[^\x20-\x7E]/g,""),t=e.calculateData(),e.adjustDesiredSize(t),e.convertToShape(t),e}Object.defineProperty(A,"__esModule",{value:!0}),k=function(e,r,t){return r&&c(e.prototype,r),t&&c(e,t),e},w=l(S(2)),u=l(u=S(4)),m=S(5),p=l(m),m=S(27),y=l(m),m=S(28),C=l(m),m=S(29),f=l(m),m=S(30),g=l(m),o(n,u.default),k(n,[{key:"validate",value:function(){}},{key:"calculateData",value:function(){var e=this.config,r=this.text,t=void 0;if(this.isUccEan128)t=new g.default(r);else switch(e.codeSet){case"A":t=new y.default(r);break;case"B":t=new C.default(r);break;case"C":t=new f.default(r);break;default:t=new g.default(r)}return t.getData()}}]),S=n,A.default=S,w.default.registerEncoder("Code128",S)},function(K,A,S){var k,w,u,p;function y(l,s){for(var a,o=0;o<s.length;o++)(a=s[o]).enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}function C(l){return l&&l.__esModule?l:{default:l}}function f(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function m(l,s){if(l)return!s||typeof s!="object"&&typeof s!="function"?l:s;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function g(l,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);l.prototype=Object.create(s&&s.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(l,s):l.__proto__=s)}function c(l){var s,a;return f(this,c),s=(l=m(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,l,p.default.defaultConfig))).style.textAlign,a=l.config.addOnLabelPosition,l.isTextGroup=s==="group",l.isAddOnLabelBottom=a!=="top",l}Object.defineProperty(A,"__esModule",{value:!0}),k=function(l,s,a){return s&&y(l.prototype,s),a&&y(l,a),l},w=C(w=S(4)),u=S(0),S=S(9),p=C(S),g(c,w.default),k(c,[{key:"encode",value:function(l,s){var a=(0,u.str2Array)(s);return(0,u.str2Array)(l).reduce(function(o,n,e){return o+p.default.TABLE[a[e]][n]},"")}},{key:"encodeChar",value:function(l,s,a){return s=(0,u.str2Array)(s),p.default.TABLE[s[a]][l]}},{key:"checksum",value:function(l){var s=1<arguments.length&&arguments[1]!==void 0&&arguments[1],a=(l=(0,u.str2Array)(l),s?u.isOdd:u.isEven);return s=l.reduce(function(o,n,e){return n=+n,o+(a(e)?n:3*n)},0)%10,s==0?0:10-s}},{key:"convertToShape",value:function(l){var s,a,o,n,e,r,t,i,h,b,_=this.isTextGroup,M=this.isLabelBottom,O=this.addOnHeight,R=this.isAddOnLabelBottom,N=this.height,E=this.quietZone,z=this.config.showLabel,D=(b=this.style).fontSizeInUnit,Q=b.textAlign;z||(D=0),O=O||0,s=[],a=void 0,o=E.left.relativeValue,n=E.top.relativeValue,h=i=t=r=b=e=void 0,M?(a=N+5,e=n+N,b=z?N+D:a,R?t=(r=n)+(i=O==="auto"?z?N:a:O):(r=(t=n)+D,i=O==="auto"?a-D:O)):(a=N,N-=5,e=n,n+=D,b=z?a+D:a,R?(r=E.top.relativeValue,t=r+(i=O==="auto"?z?N:a:O)):(t=E.top.relativeValue,r=E.top.relativeValue+D,i=O==="auto"?a:O)),h=z?i+D:i,l.forEach(function(F){var L,T=n,x=N,U=e,G=_?"center":Q,P=void 0,H=o;switch(F.role){case"GUARD":x=a,P=F.binary.length;break;case"ADDON":T=r,x=i,U=t,P=F.binary.length;break;case"LEFT_QUIET_ZONE":G="left",P=E.left.relativeValue,H=0;break;case"RIGHT_QUIET_ZONE":case"NO_ADDON_RIGHT_QUIET_ZONE":G="right",P=E.right.relativeValue;break;case"ADDON_QUIET_ZONE":P=E.addOn.relativeValue;break;case"ADDON_RIGHT_QUIET_ZONE":G="right",U=t,P=E.right.relativeValue;break;default:P=F.binary.length}if(z&&F.text){switch(G){case"center":H+=P/2;break;case"right":H+=P}L={type:"text",x:H,y:U,text:F.text,textAlign:G,maxWidth:P},F.role!=="NO_ADDON_RIGHT_QUIET_ZONE"&&F.role!=="ADDON_RIGHT_QUIET_ZONE"||(L.fontStyle="normal",L.fontWeight="normal",L.textDecoration="none"),s.push(L)}F.binary?(0,u.combineTruthy)(F.binary).forEach(function(n1){n1!==0?(s.push({type:"rect",x:o,y:T,width:n1,height:x}),o+=n1):o++}):F.role==="ADDON_QUIET_ZONE"&&(o+=P)}),this.size={width:o+E.right.relativeValue,height:Math.max(b,h)+E.top.relativeValue+E.bottom.relativeValue},this.shapes=s}},{key:"adjustDesiredSize",value:function(l){var s,a,o=(r=this.config).desiredSize,n=r.showLabel,e=r.addOn,r=r.addOnHeight,t=this.fontHeight,i=this.containerWidth,h=this.containerHeight,b=this.addOnHeightInPiexl,_=this.quietZone;o&&(l=(l=l.reduce(function(M,O){return O.binary&&(M+=O.binary.length),M},0))+(0,u.getQuietZoneRelativeValue)(_.left)+(0,u.getQuietZoneRelativeValue)(_.right),e&&(l+=(0,u.getQuietZoneRelativeValue)(_.addOn),i-=(0,u.getQuietZonePixelValue)(_.addOn)),i=i-(0,u.getQuietZonePixelValue)(_.left)-(0,u.getQuietZonePixelValue)(_.right),a=s=void 0,o.forceRounding?a=(s=~~(i/l))<1?1:s:s=a=i/l,this.style.unitValue=a,this.style.fontSizeInUnit=t/a,h=(h=n?h-t:h)-(0,u.getQuietZonePixelValue)(_.top)-(0,u.getQuietZonePixelValue)(_.bottom),this.height=h/a-(0,u.getQuietZoneRelativeValue)(_.top)-(0,u.getQuietZoneRelativeValue)(_.bottom),Object.keys(_).forEach(function(M){_[M].originIsAbsoluteValue&&(_[M].relativeValue=_[M].pixelValue/a)}),(0,u.isDefined)(e))&&r!=="auto"&&((r=(0,u.isNumberLike)(r)?+r:b/a)>this.height?this.addOnHeight=this.height:this.addOnHeight=r)}}]),S=c,A.default=S},function(K,A,S){var k,w,u,p;function y(m){for(var g=0;m!=0;)g+=1,m>>>=1;return g}function C(m,g){g=g===2?u:p;for(var c=m<<10;0<=y(c)-y(k);)c^=k<<y(c)-y(k);return(m<<10|c)^g}function f(m){for(var g=m<<12;0<=y(g)-y(w);)g^=w<<y(g)-y(w);return m<<12|g}Object.defineProperty(A,"__esModule",{value:!0}),k=1335,w=7973,u=21522,p=10277,A.default={getBCH15:C,getBCH18:f}},function(K,A,S){var k,w,u,p,y;function C(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function f(c){return c&&c.__esModule?c:{default:c}}function m(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function g(c){var l,s,a,o;m(this,g),l=c.version,s=c.model,a=c.text,o=c.charCode,this.charCode=o||w.default.getCharCode(a),o=w.default.EC_INDICATOR[c.errorCorrectionLevel],this.config=c,this.errorCorrectionLevel=o,this.model=+s,l=l==="auto"?this.getAutoVersion():+l,this.version=l,this.modulesCount=w.default.getSizeByVersion(l),this.charCountIndicatorBitsNumber=w.default.getCharacterCountIndicatorbitsNumber(l),this.errorCorrectionCharacteristics=w.default.getErrorCorrectionCharacteristics(l,o,this.model),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(n,e){return n+e.data},0),this.totalDataBits=8*this.totalDataCount}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&C(c.prototype,l),s&&C(c,s),c},u=S(3),w=f(u),u=S(55),p=f(u),y=S(1),k(g,[{key:"getConnections",value:function(){for(var c,l,s,a=this.totalDataBits-20,o=(s=this.charCode).length,n=0,e=1,r=[],t=s[0];e<=o;)c=s.slice(n,e),l=this.analysisData(c),this.encodeData(l).length>a?(r.push(t),n=e-1):e===o&&r.push(c),t=c,e++;return r}},{key:"processConnection",value:function(c){var l,s,a=this.totalDataBits,o=(s=this.config).connection;if(s=+(s=s.connectionNo),o){if((o=Math.ceil(c.length/(a-20)))-1<s)throw new y.ConnectionOverflowException(o);return l=this.getConnections()[s],l=this.analysisData(l),this.encodeData(l,{connectionNo:s,connectionCnt:o})}if(c.length>a)throw new y.TextTooLargeException;return c}},{key:"padBuffer",value:function(c){var l=this.totalDataBits;for(c.length+4<=l&&c.put(w.default.MODE_INDICATOR.Terminator,4);c.length%8!=0;)c.putBit(!1);for(;!(c.length>=l||(c.put(w.default.padCodewords0,8),c.length>=l));)c.put(w.default.padCodewords1,8)}},{key:"getAutoVersion",value:function(){for(var c,l=this.errorCorrectionLevel,s=this.charCode,a=this.model,o=w.default.getEstimatedVersion(l,s,a);o<40;o++)if(this.version=o,this.modulesCount=w.default.getSizeByVersion(this.version),this.charCountIndicatorBitsNumber=w.default.getCharacterCountIndicatorbitsNumber(this.version),this.errorCorrectionCharacteristics=w.default.getErrorCorrectionCharacteristics(this.version,l),this.totalDataCount=this.errorCorrectionCharacteristics.reduce(function(n,e){return n+e.data},0),this.totalDataBits=8*this.totalDataCount,c=this.analysisData(s),!(this.encodeData(c).length>this.totalDataBits))return o;throw new y.TextTooLargeException}},{key:"analysisData",value:function(c){var l,s,a,o,n,e=this.version,r=this.config.charset;switch(n=w.default.getCharMode(c[0],r)){case"Alphanumeric":s=w.default.getModeCheckInfo(n,e),s=c.slice(1,1+s[0]),w.default.isMode("8BitByte",s)&&(n="8BitByte");break;case"Numeric":s=w.default.getModeCheckInfo(n,e),l=c.slice(1,1+s[0]),s=c.slice(1,1+s[1]),w.default.isMode("8BitByte",l)?n="8BitByte":w.default.isMode("Alphanumeric",s)&&(n="Alphanumeric")}return o=[a={mode:n,code:[]}],c.forEach(function(t,i){var h,b,_=w.default.getCharMode(t,r);a.mode===_?a.code.push(t):a.mode==="8BitByte"?_==="Kanji"?(a={mode:_,code:[t]},o.push(a)):_==="Numeric"?(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[2]),c.length-i>=h[2]&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t)):_==="Alphanumeric"&&(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[1]),c.length-i>=h[1])&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t):a.mode!=="Alphanumeric"||_==="Kanji"||_==="8BitByte"||_==="Numeric"&&(h=w.default.getModeCheckInfo(_,e),b=c.slice(i,i+h[2]),c.length-i>=h[2])&&w.default.isMode(_,b)?(a={mode:_,code:[t]},o.push(a)):a.code.push(t)}),o}},{key:"encodeData",value:function(){throw new y.SubclassNotImplementException}},{key:"generateErrorCorrectionCode",value:function(c){var l=this.errorCorrectionCharacteristics,s=[],a=0;return l.forEach(function(o){var n=c.getBuffer().slice(a,a+o.data);s.push({data:n,ec:(0,p.default)(n,o.ec,o.data)}),a+=o.data}),s}},{key:"getFinalMessage",value:function(){throw new y.SubclassNotImplementException}},{key:"setModules",value:function(){throw new y.SubclassNotImplementException}},{key:"maskModules",value:function(){throw new y.SubclassNotImplementException}},{key:"autoMask",value:function(){throw new y.SubclassNotImplementException}},{key:"addRectModule",value:function(c,l,s,a){for(var o,n=4<arguments.length&&arguments[4]!==void 0&&arguments[4],e=this.modules,r=a+l,t=s+c;l<r;l++)for(o=c;o<t;o++)e[l][o]=+n}},{key:"addPositionDetectionPattern",value:function(){var c,l=this.modules.length;this.addPattern(0,0,7),this.addRectModule(7,0,1,8,!1),this.addRectModule(0,7,8,1,!1),this.addPattern(c=l-7,0,7),this.addRectModule(c-1,0,1,8,!1),this.addRectModule(c-1,7,8,1,!1),this.addPattern(0,c=l-7,7),this.addRectModule(7,c-1,1,8,!1),this.addRectModule(0,c-1,8,1,!1)}},{key:"addTimingPattern",value:function(){for(var c,l=(c=this.modules).length,s=!0,a=8;a<l-7;a++)c[6][a]=+s,c[a][6]=+s,s=!s}},{key:"addPattern",value:function(c,l,s){this.addRectModule(c,l,s,s,!0),this.addRectModule(c+1,l+1,s-2,s-2,!1),this.addRectModule(c+2,l+2,s-4,s-4,!0)}},{key:"getMatrix",value:function(){throw new y.SubclassNotImplementException}}]),A.default=g},function(K,A,S){var k,w;function u(f,m){for(var g,c=0;c<m.length;c++)(g=m[c]).enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}function p(f){return f&&f.__esModule?f:{default:f}}function y(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function C(f,m){y(this,C),this.mode="8BitByte",this.data=f,this.bytes=m==="Shift_JIS"?w.default.sjisEncode(f):w.default.utf8Encode(f)}Object.defineProperty(A,"__esModule",{value:!0}),k=function(f,m,g){return m&&u(f.prototype,m),g&&u(f,g),f},S=S(3),w=p(S),k(C,[{key:"getMode",value:function(){return w.default.MODE_INDICATOR["8BitByte"]}},{key:"getLength",value:function(){return this.bytes.length}},{key:"write",value:function(f){this.bytes.forEach(function(m){f.put(m,8)})}}]),A.default=C},function(K,A,S){var k,w,u,p;function y(g,c){for(var l,s=0;s<c.length;s++)(l=c[s]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(g,l.key,l)}function C(g){return g&&g.__esModule?g:{default:g}}function f(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function m(g){f(this,m),this.mode="Numeric",this.data=g}Object.defineProperty(A,"__esModule",{value:!0}),k=function(g,c,l){return c&&y(g.prototype,c),l&&y(g,l),g},w=S(3),u=C(w),p=S(0),k(m,[{key:"getMode",value:function(){return u.default.MODE_INDICATOR.Numeric}},{key:"getLength",value:function(){return this.data.length}},{key:"write",value:function(g){(0,p.sliceArray)(this.data,3,function(c){var l=parseInt(c.reduce(function(s,a){return s+String.fromCharCode(a)},""));switch(c.length){case 1:return void g.put(l,4);case 2:return void g.put(l,7);default:return void g.put(l,10)}})}}]),A.default=m},function(K,A,S){var k,w,u,p;function y(g,c){for(var l,s=0;s<c.length;s++)(l=c[s]).enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(g,l.key,l)}function C(g){return g&&g.__esModule?g:{default:g}}function f(g,c){if(!(g instanceof c))throw new TypeError("Cannot call a class as a function")}function m(g){f(this,m),this.mode="Alphanumeric",this.data=g}Object.defineProperty(A,"__esModule",{value:!0}),k=function(g,c,l){return c&&y(g.prototype,c),l&&y(g,l),g},w=S(3),u=C(w),p=S(0),k(m,[{key:"getMode",value:function(){return u.default.MODE_INDICATOR.Alphanumeric}},{key:"getLength",value:function(){return this.data.length}},{key:"write",value:function(g){(0,p.sliceArray)(this.data,2,function(c){var l=u.default.getAlphanumericCharValue(c[0]);c.length===2?(c=u.default.getAlphanumericCharValue(c[1]),g.put(45*l+c,11)):g.put(l,6)})}}]),A.default=m},function(K,A,S){var k,w;function u(f,m){for(var g,c=0;c<m.length;c++)(g=m[c]).enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}function p(f){return f&&f.__esModule?f:{default:f}}function y(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function C(f){y(this,C),this.mode="Kanji",this.data=f}Object.defineProperty(A,"__esModule",{value:!0}),k=function(f,m,g){return m&&u(f.prototype,m),g&&u(f,g),f},S=S(3),w=p(S),k(C,[{key:"getMode",value:function(){return w.default.MODE_INDICATOR.Kanji}},{key:"getLength",value:function(){return this.data.length}},{key:"write",value:function(f){this.data.forEach(function(m){var g=void 0;33088<m&&m<40956?g=192*((m-=33088)>>>8)+(255&m):57408<m&&m<60351&&(g=192*((m-=49472)>>>8)+(255&m)),f.put(g,13)})}}]),A.default=C},function(K,A,S){function k(p,y){for(var C,f=0;f<y.length;f++)(C=y[f]).enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(p,C.key,C)}function w(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(){var p=0<arguments.length&&arguments[0]!==void 0?arguments[0]:[];w(this,u),this.buffer=p,this.length=8*p.length,this.index=0}Object.defineProperty(A,"__esModule",{value:!0}),function(p,y,C){y&&k(p.prototype,y),C&&k(p,C)}(u,[{key:"putBit",value:function(p){var y=Math.floor(this.length/8);this.buffer.length<=y&&this.buffer.push(0),p&&(this.buffer[y]|=128>>>this.length%8),this.length+=1}},{key:"put",value:function(p,y){for(var C=0;C<y;C+=1)this.putBit((p>>>y-C-1&1)==1)}},{key:"getAt",value:function(p){var y=Math.floor(p/8);return(this.buffer[y]>>>7-p%8&1)==1}},{key:"getBuffer",value:function(){return this.buffer}},{key:"next",value:function(){return this.index++,this.getAt(this.index-1)}}]),A.default=u},function(K,A,S){S(21),S(11),S(31),S(33),S(35),S(37),S(45),S(48),S(49),S(53),S(57),S(58),K.exports=S(2)},function(K,A,S){var k,w,u,p,y,C,f,m;function g(n,e){for(var r,t=0;t<e.length;t++)(r=e[t]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}function c(n){return n&&n.__esModule?n:{default:n}}function l(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function s(n,e){if(n)return!e||typeof e!="object"&&typeof e!="function"?n:e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function a(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(n,e):n.__proto__=e)}function o(n){var e,r,t,i,h,b,_,M;return l(this,o),_=(r=(n=s(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,n,y.default.defaultConfig))).config).checkDigit,e=r.text,r=r.nwRatio,M=(b=n.getTextEntity(e)).originStartPattern,t=b.startPattern,i=b.content,h=b.originStopPattern,b=b.stopPattern,_?(_=n.checksum(i),n.text=t+i+_+b,n.label=M+i+_+h):(n.text=t+i+b,n.label=e),n.nwRatio=+r,M=n.calculateData(),n.adjustDesiredSize(M),n.convertToShape(M),n}Object.defineProperty(A,"__esModule",{value:!0}),k=function(n,e,r){return e&&g(n.prototype,e),r&&g(n,r),n},w=c(w=S(4)),u=c(S(2)),p=S(0),m=S(26),y=c(m),C=S(1),f=/^([A-D]?)([0-9\-\$\:\.\+\/]+)([A-D]?)$/,a(o,w.default),k(o,[{key:"validate",value:function(){var n=(e=this.config).text,e=e.nwRatio;if(!f.test(n))throw new C.InvalidTextException(n);if(e!=2&&e!=3)throw new C.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"getTextEntity",value:function(n){var e;return{originStartPattern:e=(n=f.exec(n))[1],startPattern:e||"A",content:n[2],originStopPattern:n=n[3],stopPattern:n||"B"}}},{key:"encode",value:function(n){var e=this.nwRatio,r="",t=(0,p.strRepeat)("1",e),i=(0,p.strRepeat)("0",e);return(0,p.str2Array)(n).forEach(function(h,b){(0,p.isEven)(b)?r+=h==="1"?t:"1":r+=h==="1"?i:"0"}),r}},{key:"calculateData",value:function(){var n=this,e=this.text,r="";return(0,p.sliceString)(e,1,function(t){r=r+n.encode(y.default.TABLE[t])+"0"}),r=r.substr(0,r.length-1)}},{key:"checksum",value:function(n){var e;return(e=(0,p.str2Array)(n).filter(function(r){return(0,p.isInteger)(+r)}).reverse().reduce(function(r,t,i){return t=(0,p.toNumber)(t),(0,p.isEven)(i)?r+=9<(i=2*t)?i-9:i:r+=t,r},0)%10)!=0?10-e:e}}]),m=o,A.default=m,u.default.registerEncoder("Codabar",m)},function(K,A){var S=function(){return this}();try{S=S||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(S=window)}K.exports=S},function(K,A,S){var k,w,u,p,y;function C(l,s){for(var a,o=0;o<s.length;o++)(a=s[o]).enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(l,a.key,a)}function f(l){return l&&l.__esModule?l:{default:l}}function m(l,s){if(!(l instanceof s))throw new TypeError("Cannot call a class as a function")}function g(l,s){var a=void 0;return l==="svg"?(a=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("xmlns","http://www.w3.org/2000/svg"):a=document.createElement("canvas"),a.setAttribute("width",s.width),a.setAttribute("height",s.height),a}function c(l,s){var a,o;switch(m(this,c),this.container=l,this.barcode=s,this.style=s.style,a=this.style.unitValue,this.size={width:s.size.width*a,height:s.size.height*a},o=g(this.style.renderType,this.size),this.style.renderType){case"svg":this.context=new p.default(o,this.style,a);break;case"canvas":this.context=new w.default(o,this.style,a);break;default:throw new y.UnrecognizedRenderException(this.style.renderType)}l&&l.appendChild(o),this.renderDom=o}Object.defineProperty(A,"__esModule",{value:!0}),k=function(l,s,a){return s&&C(l.prototype,s),a&&C(l,a),l},u=S(24),w=f(u),u=S(25),p=f(u),y=S(1),k(c,[{key:"render",value:function(){var l,s=this.style,a=this.barcode.shapes;return(l=this.context).ctx&&(l.clear(),l.setColor(s.color),l.setBackgroundColor(s.backgroundColor),a.forEach(function(o){o.type==="rect"&&l.drawRect(o),o.type==="text"&&l.drawText(o)})),this}},{key:"getImageData",value:function(){if(this.context.getImageData)return this.context.getImageData();throw new y.MethodNotImplementException("getImageData")}},{key:"getDataUrl",value:function(){return this.context.getDataUrl()}},{key:"destroy",value:function(){this.container&&this.container.removeChild(this.renderDom)}}]),A.default=c},function(K,A,S){function k(p,y){for(var C,f=0;f<y.length;f++)(C=y[f]).enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(p,C.key,C)}function w(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y,C){w(this,u),this.dom=p,this.style=y,this.ctx=this.dom.getContext("2d"),this.scale=C}Object.defineProperty(A,"__esModule",{value:!0}),function(p,y,C){y&&k(p.prototype,y),C&&k(p,C)}(u,[{key:"setColor",value:function(p){this.ctx.fillStyle=p}},{key:"setBackgroundColor",value:function(p){var y=this.ctx,C=this.dom;y.save(),y.fillStyle=p,y.fillRect(0,0,C.width,C.height),y.restore()}},{key:"drawRect",value:function(p){var y=this.ctx,C=this.scale;y.fillRect(p.x*C,p.y*C,p.width*C,p.height*C)}},{key:"drawText",value:function(p){var y,C,f=this.ctx,m=this.style,g=this.scale;f.save(),f.font=(p.fontStyle||m.fontStyle)+" "+(p.fontWeight||m.fontWeight)+" "+m.fontSize+" "+m.fontFamily,f.textAlign=p.textAlign||m.textAlign,f.textBaseline="top",y=p.x*g,C=p.y*g,f.fillText(p.text,y,C,p.maxWidth*g),this.drawTextDecorationLine(p.text,y,C,p.textDecoration||m.textDecoration),f.restore()}},{key:"drawTextDecorationLine",value:function(p,y,C,f){var m,g,c=void 0;switch(f){case"underline":c=.8;break;case"overline":c=.1;break;case"line-through":c=.5;break;default:return}switch(f=this.ctx,m=this.style.fontHeight,g=f.measureText(p).width,f.textAlign){case"center":y-=g/2;break;case"right":y-=g}f.lineWidth=1,f.beginPath(),f.moveTo(y,p=m*c+C),f.lineTo(y+g,p),f.stroke()}},{key:"clear",value:function(){var p=this.ctx,y=this.dom;p.clearRect(0,0,y.width,y.height)}},{key:"getImageData",value:function(){var p=this.ctx,y=this.dom;return p.getImageData(0,0,y.width,y.height)}},{key:"getDataUrl",value:function(){return this.dom.toDataURL()}}]),A.default=u},function(K,A,S){var k;function w(C,f){for(var m,g=0;g<f.length;g++)(m=f[g]).enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(C,m.key,m)}function u(C,f){if(!(C instanceof f))throw new TypeError("Cannot call a class as a function")}function p(){return document.documentMode}function y(C,f,m){u(this,y),this.dom=C,this.style=f,this.scale=m,this.color="rgb(0,0,0)",this.addGroup()}Object.defineProperty(A,"__esModule",{value:!0}),k={center:"middle",left:"start",right:"end"},function(C,f,m){f&&w(C.prototype,f),m&&w(C,m)}(y,[{key:"setColor",value:function(C){this.color=C}},{key:"setBackgroundColor",value:function(C){this.dom.style.backgroundColor=C}},{key:"addGroup",value:function(){var C=this.dom;this.g=document.createElementNS("http://www.w3.org/2000/svg","g"),this.g.setAttribute("shape-rendering","crispEdges"),C.appendChild(this.g)}},{key:"drawRect",value:function(C){var f,m=this.g,g=this.scale,c=this.color;(f=document.createElementNS("http://www.w3.org/2000/svg","rect")).setAttribute("x",C.x*g),f.setAttribute("y",C.y*g),f.setAttribute("width",C.width*g),f.setAttribute("height",C.height*g),f.style.fill=c,m.appendChild(f)}},{key:"drawText",value:function(C){var f,m=this.g,g=this.scale,c=this.color,l=this.style;(f=document.createElementNS("http://www.w3.org/2000/svg","text")).style.fill=c,f.style.fontSize=l.fontSize,f.style.fontFamily=l.fontFamily,f.style.fontStyle=C.fontStyle||l.fontStyle,f.style.fontWeight=C.fontWeight||l.fontWeight,f.style.textDecoration=C.textDecoration||l.textDecoration,f.style.textAnchor=k[C.textAlign||l.textAlign],f.textContent=C.text,f.textContent=this.clipString(C,f),p()?(c=this.meatureText(f),f.setAttribute("y",C.y*g+Math.abs(c.y))):(f.style.alignmentBaseline="before-edge",f.setAttribute("y",C.y*g)),f.setAttribute("x",C.x*g),m.appendChild(f)}},{key:"clipString",value:function(C,f){var m=this.scale,g=C.text,c=C.maxWidth;return(f=this.meatureText(f)).width>(c*=m)?(m=Math.floor(c/f.width*g.length),C.text.substr(0,m)):g}},{key:"clear",value:function(){this.dom.removeChild(this.g),this.addGroup()}},{key:"meatureText",value:function(C){return C.setAttribute("x",0),C.setAttribute("y",0),this.dom.appendChild(C),C.getBBox()}},{key:"getDataUrl",value:function(){return"data:image/svg+xml;base64,"+btoa(this.dom.outerHTML)}}]),A.default=y},function(K,A,S){Object.defineProperty(A,"__esModule",{value:!0}),A.default={defaultConfig:{height:60,showLabel:!0,labelPosition:"bottom",checkDigit:!1,quietZone:{top:0,right:10,bottom:0,left:10},nwRatio:3},TABLE:{0:"0000011",1:"0000110",2:"0001001",3:"1100000",4:"0010010",5:"1000010",6:"0100001",7:"0100100",8:"0110000",9:"1001000","-":"0001100",$:"0011000",":":"1000101","/":"1010001",".":"1010100","+":"0010101",A:"0011010",B:"0101001",C:"0001011",D:"0001110"}}},function(K,A,S){var k,w,u,p,y;function C(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function f(c){return c&&c.__esModule?c:{default:c}}function m(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function g(c){m(this,g),this.text=c,this.validate()}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&C(c.prototype,l),s&&C(c,s),c},w=S(5),u=f(w),p=S(1),y=S(0),k(g,[{key:"validate",value:function(){var c=this.text;if(!/^[\x00-\x5F\xC8-\xCF]+$/.test(c))throw new p.InvalidTextException(c)}},{key:"getData",value:function(){var c=this.text,l=this.checksum(),s="",a=u.default.getPatternByIndex(u.default.Code128Sym.StartA);return s+=u.default.encode(a),(0,y.sliceString)(c,1,function(o){o=u.default.getCharPattern(o,"A"),s+=u.default.encode(o)}),s=(s+=u.default.encode(u.default.getPatternByIndex(l)))+u.default.encode(u.default.stopPattern)}},{key:"checksum",value:function(){var c=this.text,l=0,s=0;return(0,y.sliceString)(c,1,function(a){s+=u.default.getCharValue(a,"A")*++l}),(s+=u.default.Code128Sym.StartA)%103}}]),A.default=g},function(K,A,S){var k,w,u,p,y;function C(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function f(c){return c&&c.__esModule?c:{default:c}}function m(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function g(c){m(this,g),this.text=c,this.validate()}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&C(c.prototype,l),s&&C(c,s),c},w=S(5),u=f(w),p=S(1),y=S(0),k(g,[{key:"validate",value:function(){var c=this.text;if(!/^[\x20-\x7F\xC8-\xCF]+$/.test(c))throw new p.InvalidTextException(c)}},{key:"getData",value:function(){var c=this.text,l=this.checksum(),s="",a=u.default.getPatternByIndex(u.default.Code128Sym.StartB);return s+=u.default.encode(a),(0,y.sliceString)(c,1,function(o){o=u.default.getCharPattern(o,"B"),s+=u.default.encode(o)}),s=(s+=u.default.encode(u.default.getPatternByIndex(l)))+u.default.encode(u.default.stopPattern)}},{key:"checksum",value:function(){var c=this.text,l=0,s=0;return(0,y.sliceString)(c,1,function(a){s+=u.default.getCharValue(a,"B")*++l}),(s+=u.default.Code128Sym.StartB)%103}}]),A.default=g},function(K,A,S){var k,w,u,p,y;function C(c,l){for(var s,a=0;a<l.length;a++)(s=l[a]).enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(c,s.key,s)}function f(c){return c&&c.__esModule?c:{default:c}}function m(c,l){if(!(c instanceof l))throw new TypeError("Cannot call a class as a function")}function g(c){m(this,g),this.text=c,this.validate()}Object.defineProperty(A,"__esModule",{value:!0}),k=function(c,l,s){return l&&C(c.prototype,l),s&&C(c,s),c},w=S(5),u=f(w),p=S(0),y=S(1),k(g,[{key:"validate",value:function(){var c=this.text;if(!/^(\xCF*[0-9]{2}\xCF*)+$/.test(c))throw new y.InvalidTextException(c)}},{key:"getData",value:function(){var c=this.text,l=this.checksum(),s="",a=u.default.getPatternByIndex(u.default.Code128Sym.StartC);return s+=u.default.encode(a),(0,p.sliceString)(c,2,function(o){o=u.default.getCharPattern(o,"C"),s+=u.default.encode(o)}),s=(s+=u.default.encode(u.default.getPatternByIndex(l)))+u.default.encode(u.default.stopPattern)}},{key:"checksum",value:function(){var c=this.text,l=0,s=0;return(0,p.sliceString)(c,2,function(a){s+=u.default.getCharValue(a,"C")*++l}),(s+=u.default.Code128Sym.StartC)%103}}]),A.default=g},function(K,A,S){var k,w,u,p,y,C,f,m;function g(a,o){for(var n,e=0;e<o.length;e++)(n=o[e]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}function c(a){return a&&a.__esModule?a:{default:a}}function l(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function s(a){var o=1<arguments.length&&arguments[1]!==void 0&&arguments[1];l(this,s),this.text=a,this.isUccEan128=o,this.validate()}Object.defineProperty(A,"__esModule",{value:!0}),k=function(a,o,n){return o&&g(a.prototype,o),n&&g(a,n),a},w=S(5),u=c(w),p=S(0),y=S(1),C="A",f="B",m="C",k(s,[{key:"validate",value:function(){var a=this.text;if(!/^[\x00-\x7F\xC8-\xD3]+$/.test(a))throw new y.InvalidTextException(a)}},{key:"calculateGroup",value:function(){var a,o,n,e,r,t=this.text,i={code:this.isUccEan128?m:f,text:""};for((r=[]).push(i),a=0,o=t.length;a<o;a++){if(n=i.code,e=t[a],i.code!==m&&a+3<o&&u.default.isValideNumber(t.substr(a,4))||i.code===m&&a+1<o&&u.default.isValideNumber(t.substr(a,2)))n=m,e+=t[++a];else if(n=i.code===m?f:i.code,u.default.getCharValue(e,n)<0&&(n=i.code===C?f:C,u.default.getCharValue(e,n)<0))continue;i.code!==n?r.push(i={code:n,text:e}):i.text+=e}return r.filter(function(h){return h.text})}},{key:"getData",value:function(){var a=this.calculateGroup(),o=this.checksum(a),n="";return a.forEach(function(e,r){r===0?(r=u.default.getPatternByIndex(u.default.Code128Sym["Start"+e.code]),n+=u.default.encode(r)):(r=u.default.getPatternByIndex(u.default.Code128Sym["Code"+e.code]),n+=u.default.encode(r)),e.code===m?(0,p.sliceString)(e.text,2,function(t){n+=u.default.encode(u.default.getCharPattern(t,e.code))}):(0,p.sliceString)(e.text,1,function(t){n+=u.default.encode(u.default.getCharPattern(t,e.code))})}),n=(n+=u.default.encode(u.default.getPatternByIndex(o)))+u.default.encode(u.default.stopPattern)}},{key:"checksum",value:function(a){var o=0,n=0;return a.forEach(function(e,r){var t=e.code;e=e.text,r===0?n+=u.default.Code128Sym["Start"+t]:(r=u.default.Code128Sym["Code"+t],n+=r*++o),t===m?(0,p.sliceString)(e,2,function(i){n+=u.default.getCharValue(i,t)*++o}):(0,p.sliceString)(e,1,function(i){n+=u.default.getCharValue(i,t)*++o})}),n%103}}]),A.default=s},function(K,A,S){var k,w,u,p,y,C,f;function m(o,n){for(var e,r=0;r<n.length;r++)(e=n[r]).enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}function g(o){return o&&o.__esModule?o:{default:o}}function c(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function l(o,n){if(o)return!n||typeof n!="object"&&typeof n!="function"?o:n;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function s(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);o.prototype=Object.create(n&&n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(o,n):o.__proto__=n)}function a(o){var n,e,r,t,i,h;return c(this,a),n=(r=(o=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o,y.default.defaultConfig))).config).text,h=r.checkDigit,t=r.fullASCII,e=r.nwRatio,r=r.labelWithStartAndStopCharacter,t=t?y.default.getFullASCIIChar(n):n,h?(h=y.default.getMod43Val(t),o.text=y.default.START_STOP_CHARACTERS+t+h+y.default.START_STOP_CHARACTERS,i=y.default.START_STOP_CHARACTERS+(h=n+h)+y.default.START_STOP_CHARACTERS,o.label=r?i:h):(o.text=y.default.START_STOP_CHARACTERS+t+y.default.START_STOP_CHARACTERS,i=y.default.START_STOP_CHARACTERS+n+y.default.START_STOP_CHARACTERS,o.label=r?i:n),o.nwRatio=+e,h=o.calculateData(),o.adjustDesiredSize(h),o.convertToShape(h),o}Object.defineProperty(A,"__esModule",{value:!0}),k=function(o,n,e){return n&&m(o.prototype,n),e&&m(o,e),o},w=g(w=S(4)),u=g(S(2)),p=S(0),f=S(32),y=g(f),C=S(1),s(a,w.default),k(a,[{key:"validate",value:function(){var o=(e=this.config).text,n=e.fullASCII,e=e.nwRatio;if(!n&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(o))throw new C.InvalidTextException(o);if(e!=2&&e!=3)throw new C.BadArgumentsException({nwRatio:e},"NwRatio is 2 or 3")}},{key:"encode",value:function(o){var n=this.nwRatio,e="",r=(0,p.strRepeat)("1",n),t=(0,p.strRepeat)("0",n);return(0,p.str2Array)(o).forEach(function(i,h){(0,p.isEven)(h)?e+=i==="1"?r:"1":e+=i==="1"?t:"0"}),e}},{key:"calculateData",value:function(){var o=this,n=this.text,e="";return(0,p.sliceString)(n,1,function(r){e=e+o.encode(y.default.TABLE[r])+"0"}),e=e.substr(0,e.length-1)}}]),f=a,A.default=f,u.default.registerEncoder("Code39",f)},function(K,A,S){var k,w,u,p,y,C;function f(g){var c=0;return(0,w.sliceString)(g,1,function(l){c+=y.indexOf(l)}),y[c%43]}function m(g){var c="";return(0,w.sliceString)(g,1,function(l){if(!(l=C[l.charCodeAt(0)]))throw new k.InvalidTextException(g);c+=l}),c}Object.defineProperty(A,"__esModule",{value:!0}),k=S(1),w=S(0),S={height:60,showLabel:!0,checkDigit:!1,fullASCII:!1,labelPosition:"bottom",nwRatio:3,labelWithStartAndStopCharacter:!1,quietZone:{top:0,right:10,bottom:0,left:10}},u={0:"000110100",1:"100100001",2:"001100001",3:"101100000",4:"000110001",5:"100110000",6:"001110000",7:"000100101",8:"100100100",9:"001100100",A:"100001001",B:"001001001",C:"101001000",D:"000011001",E:"100011000",F:"001011000",G:"000001101",H:"100001100",I:"001001100",J:"000011100",K:"100000011",L:"001000011",M:"101000010",N:"000010011",O:"100010010",P:"001010010",Q:"000000111",R:"100000110",S:"001000110",T:"000010110",U:"110000001",V:"011000001",W:"111000000",X:"010010001",Y:"110010000",Z:"011010000","-":"010000101",".":"110000100"," ":"011000100",$:"010101000","/":"010100010","+":"010001010","%":"000101010","*":"010010100"},p="*",y=(0,w.str2Array)("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%"),C=["%U","$A","$B","$C","$D","$E","$F","$G","$H","$I","$J","$K","$L","$M","$N","$O","$P","$Q","$R","$S","$T","$U","$V","$W","$X","$Y","$Z","%A","%B","%C","%D","%E"," ","/A","/B","/C","/D","/E","/F","/G","/H","/I","/J","/K","/L","-",".","/O","0","1","2","3","4","5","6","7","8","9","/Z","%F","%G","%H","%I","%J","%V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","%K","%L","%M","%N","%O","%W","+A","+B","+C","+D","+E","+F","+G","+H","+I","+J","+K","+L","+M","+N","+O","+P","+Q","+R","+S","+T","+U","+V","+W","+X","+Y","+Z","%P","%Q","%R","%S","%T"],A.default={TABLE:u,START_STOP_CHARACTERS:p,defaultConfig:S,getMod43Val:f,getFullASCIIChar:m}},function(K,A,S){var k,w,u,p,y,C,f;function m(o,n){for(var e,r=0;r<n.length;r++)(e=n[r]).enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}function g(o){return o&&o.__esModule?o:{default:o}}function c(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function l(o,n){if(o)return!n||typeof n!="object"&&typeof n!="function"?o:n;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function s(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);o.prototype=Object.create(n&&n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(o,n):o.__proto__=n)}function a(o){var n;return c(this,a),n=(o=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o,p.default.defaultConfig))).config.text,o.text=n,o.label=n.replace(/[\xc9-\xcf]/g,""),o.mode=p.default.isNumericOnly(n)?2:0,o.getModes(),n=o.calculateData(),o.adjustDesiredSize(n),o.convertToShape(n),o}Object.defineProperty(A,"__esModule",{value:!0}),k=function(o,n,e){return n&&m(o.prototype,n),e&&m(o,e),o},w=g(w=S(7)),u=g(S(2)),f=S(34),p=g(f),y=S(0),C=S(1),s(a,w.default),k(a,[{key:"validate",value:function(){var o=(n=this.config).text,n=n.grouping;if(!/^[\x00-\x80\xcf\xca\xc9]+$/.test(o))throw new C.InvalidTextException(o);if(!n&&81<o.length)throw new C.TextTooLargeException}},{key:"getModes",value:function(){var o,n,e,r,t,i=this.text,h=(b=this.config).grouping,b=b.groupNo;if(h&&1<(h=p.default.getTextGroup(i)).length){if(9<h.length)throw new C.GroupSizeException(h.length);if(b>h.length-1)throw new C.GroupOverflowException(h.length);this.groupCount=h.length,this.mode=3,i=h[b]}for(o=[],e=n=0,r=i.length;n<r;){for(;e<r&&!(i[e]<"0"||"9"<i[e]);)e++;n=5<=e-n?(o.push({mode:"number",text:i.substring(n,e)}),e):((t=o[o.length-1])&&t.mode==="alpha"?t.text+=i.substring(n,e+1):o.push({mode:"alpha",text:i.substring(n,e+1)}),++e)}this.modes=o}},{key:"encodeNumeric",value:function(o){var n=void 0,e=void 0;switch(o.length){case 3:return[~~((n=+o)/48),n%48];case 4:return[~~((n=+o+1e5)/2304),~~(n%2304/48),n%48];case 5:return[~~((n=+o)/2304),~~(n%2304/48),n%48];case 6:return n=o.substr(0,5),this.encodeNumeric(n).concat([+o[5]]);case 7:return n=o.substr(0,4),e=o.substr(4,3),this.encodeNumeric(n).concat(this.encodeNumeric(e));case 8:return n=o.substr(0,5),e=o.substr(5,3),this.encodeNumeric(n).concat(this.encodeNumeric(e));case 9:return n=o.substr(0,5),e=o.substr(5,4),this.encodeNumeric(n).concat(this.encodeNumeric(e));default:return n=o.substr(0,5),e=o.substr(5,o.length),this.encodeNumeric(n).concat(this.encodeNumeric(e))}}},{key:"encodeAlpha",value:function(o){return(0,y.str2Array)(o).reduce(function(n,e){return n.concat(p.default.getCharValue(e))},[])}},{key:"calculateData",value:function(){var o,n,e,r,t,i,h,b,_,M,O,R,N,E,z,D,Q,F,L,T,x,U=this,G=this.modes,P=this.mode,H=this.groupCount,n1=this.config.groupNo,t1=G.reduce(function(Y,u1,f1){return(Y=u1.mode==="number"?(f1===0&&P!==2&&Y.push(p.default.CODE_NS),Y.concat(U.encodeNumeric(u1.text))):Y.concat(U.encodeAlpha(u1.text))).push(p.default.CODE_NS),Y},[]);for(t1.pop(),P===3&&t1.unshift(p.default.getGroupInfo(n1,H)),G=t1.length%7;t1.length%7!=0;)t1.push(p.default.CODE_NS);if(o=[],(0,y.sliceArray)(t1,7,function(Y){var u1=Y.reduce(function(f1,s1){return f1+s1},0);Y.push(u1%49),o=o.concat(Y)}),(6<=(n=t1.length/7)%8||2<G||G==0||n%8==1)&&(o=o.concat((0,y.fillArray)(new Array(8),p.default.CODE_NS)),n++),8<n)throw new C.TextTooLargeException;if(e=(o[o.length-2]=n1=7*(n-2)+P)*(H=p.default.getWeight(0,0)).z,r=n1*H.y,t=n1*H.x,i=8*(n-1)/2,6<n){for(b=h=0;h<i;h++,b+=2)e+=p.default.getWeight(1+~~(h/4),h%4).z*(49*o[b]+o[b+1]);o[o.length-8]=~~((e%=2401)/49),o[o.length-7]=~~(e%49)}for(i++,M=_=0;_<i;_++,M+=2)r+=p.default.getWeight(1+~~(_/4),_%4).y*(49*o[M]+o[M+1]);for(o[o.length-6]=~~((r%=2401)/49),o[o.length-5]=~~(r%49),i++,R=O=0;O<i;O++,R+=2)t+=p.default.getWeight(1+~~(O/4),O%4).x*(49*o[R]+o[R+1]);for(o[o.length-4]=~~((t%=2401)/49),o[o.length-3]=~~(t%49),G=o.slice(8*n-8,8*n-1),o[o.length-1]=G.reduce(function(Y,u1){return Y+u1},0)%49,N=[],z=o.length,D=E=0;E<z;E+=8,D++){for(Q=o.slice(E,E+8),N.push(F=[]),T=L=0;L<8;L+=2,T++)x=49*Q[L]+Q[L+1],F.push(p.default.getParityPattern(x,D,T,n));F.unshift(p.default.START_PATTERN),F.push(p.default.STOP_PATTERN)}return N}},{key:"convertToShape",value:function(o){var n,e,r,t,i,h,b,_,M=this.label,O=this.isLabelBottom,R=this.height,N=this.quietZone,E=this.config.showLabel,z=(D=this.style).fontSizeInUnit,D=D.textAlign;if(E||(z=0),n=[],e=(R-1)/o.length-1,r=70+N.left.relativeValue+N.right.relativeValue,t=0,i=N.top.relativeValue,h=void 0,O?h=i+R:(h=i,i+=z),n.push({type:"rect",x:t,y:i,width:r,height:1}),i+=1,o.forEach(function(Q,F){t=N.left.relativeValue,Q.forEach(function(L){(0,y.combineTruthy)(L).forEach(function(T){T!==0?(n.push({type:"rect",x:t,y:i,width:T,height:e}),t+=T):t++})}),F===0&&F===o.length-1||(n.push({type:"rect",x:N.left.relativeValue,y:i-1,width:70,height:1}),i+=1+e)}),n.push({type:"rect",x:0,y:i-1,width:r,height:1}),E){switch(b=0,_=r,D){case"center":b+=_/2;break;case"right":b+=_}n.push({type:"text",x:b,y:h,text:M,textAlign:D,maxWidth:_})}this.size=O?{width:t+N.right.relativeValue,height:h+z+N.bottom.relativeValue}:{width:t+N.right.relativeValue,height:i+N.bottom.relativeValue},this.shapes=n}},{key:"adjustDesiredSize",value:function(o){var n,e=(r=this.config).desiredSize,r=r.showLabel,t=this.quietZone,i=this.fontHeight,h=this.containerWidth,b=this.containerHeight;e&&(o=(o=o[0].reduce(function(_,M){return _+M.length},0))+(0,y.getQuietZoneRelativeValue)(t.left)+(0,y.getQuietZoneRelativeValue)(t.right),h=h-(0,y.getQuietZonePixelValue)(t.left)-(0,y.getQuietZonePixelValue)(t.right),n=void 0,n=e.forceRounding?(n=~~(h/o))<1?1:n:h/o,this.style.unitValue=n,this.style.fontSizeInUnit=i/n,this.height=(b=r?b-i:b)/n-(0,y.getQuietZoneRelativeValue)(t.top)-(0,y.getQuietZoneRelativeValue)(t.bottom),Object.keys(t).forEach(function(_){t[_].originIsAbsoluteValue&&(t[_].relativeValue=t[_].pixelValue/n)}))}}]),f=a,A.default=f,u.default.registerEncoder("Code49",f)},function(K,A,S){var k,w,u,p,y,C,f,m;function g(r){return r&&r.__esModule?r:{default:r}}function c(r){return/^\d{5,81}$/.test(r)}function l(r){var t;return-1<(t=f.indexOf(r))?[t]:(t=r.charCodeAt(0),(0,w.str2Array)(m[t]).map(function(i){return f.indexOf(i)}))}function s(r,t){return{x:(r=y[r][t])[0],y:r[1],z:r[2]}}function a(r,t,i,h){return(t!==h-1&&C[t][i]?u:p)[r].toString(2)}function o(r,t){for(var i=2,h=1;i<t;)h+=i,i++;return h+r}function n(r){return(0,w.str2Array)(r).reduce(function(t,i){return-1<f.indexOf(i)?t++:t+=2,t},0)}function e(r){for(var t=0,i=1,h=r.length,b=[];i<h;)48<n(r.substring(t,i))&&(b.push(r.substring(t,i-1)),t=i-1),i++;return b.push(r.substring(t,i)),b}Object.defineProperty(A,"__esModule",{value:!0}),k=g(S(6)),w=S(0),u=[51520,62032,60576,64296,58784,63848,56128,63184,64948,50336,61736,39232,58960,63892,56480,63272,64970,35648,58064,52640,62312,47936,61136,64436,49744,36e3,58152,52816,62356,48288,61224,64458,34208,57704,50896,61876,40352,59240,63962,57040,63412,49448,34384,57748,50984,61898,40528,59284,57128,63434,33488,50024,36560,58292,53096,62426,48848,61364,33576,50068,36648,58314,53140,33128,49588,34664,57818,51124,40808,59354,57268,53568,62544,64788,59808,64104,55104,62928,64884,51360,61992,45376,60496,64276,37696,58576,63796,55712,63080,64922,52128,62184,46912,60880,64372,50256,61716,39072,58920,63882,56400,63252,35232,57960,52432,62260,47520,61032,64410,50640,61812,39840,59112,63930,56784,63348,49704,35920,58132,52776,62346,48208,61204,34e3,57652,50792,61850,40144,59188,56936,63386,49896,36304,58228,52968,62394,48592,61300,49428,34344,57738,50964,40488,59274,33384,49972,36456,58266,53044,48744,61338,49524,34536,57786,51060,40680,59322,57204,33556,50058,36628,33076,49562,34612,51098,40756,33652,50106,36724,53178,49012,53408,62504,64778,41792,59600,64052,54176,62696,64826,44864,60368,64244,51280,61972,45216,60456,64266,37280,58472,63770,55504,63028,51664,62068,45984,60648,64314,38816,58856,63866,56272,63220,50216,61706,38992,58900,56360,63242,35024,57908,52328,62234,47312,60980,50408,61754,39376,58996,56552,63290,35792,58100,52712,62330,48080,61172,49684,35880,58122,52756,33896,57626,50740,40040,59162,56884,49780,36072,58170,52852,48360,61242,34280,57722,50932,40424,59258,57076,49418,34324,50954,33332,49946,36404,53018,49466,34420,51002,40564,57146,33524,50042,36596,53114,48884,33546,33050,34586,33594,36666,33146,34682,40826,53328,62484,41376,59496,64026,53712,62580,42912,59880,64122,55248,62964,51240,61962,45136,60436,37072,58420,55400,63002,51432,62010,45520,60532,37840,58612,55784,63098,52200,62202,47056,60916,50196,38952,58890,34920,57882,52276,47208,60954,50292,39144,58938,56436,35304,57978,52468,47592,61050,50676,39912,59130,56820,49674,35860,33844,50714,39988,49722,35956,52794,48244,34036,50810,40180,56954,49914,36340,52986,48628,34314,33306,36378,34362,40506,33402,36474,48762,34554,40698,53288,62474,41168,59444,53480,62522,41936,59636,54248,62714,45008,60404,51220,36968,58394,55348,51316,45288,60474,37352,58490,55540,51700,46056,60666,38888,58874,56308,50186,34868,52250,50234,39028,56378,35060,52346,47348,50426,39412,56570,35828,52730,48116,33818,35898,33914,40058,36090,48378,34298,40442,62752,64840,56e3,63152,64940,51776,62096,60704,64328,52576,62296,47808,61104,64428,50464,61768,39488,59024,63908,56608,63304,64978,50864,61868,40288,59224,63958,57008,63404,49808,36128,58184,52880,62372,48416,61256,64466,50008,36528,58284,53080,62422,48816,61356,49480,34448,57764,51016,61906,40592,59300,57160,63442,49580,34648,57814,51116,40792,59350,57260,33608,50084,36680,58322,53156,48968,61394,59744,64088,54976,62896,64876,53824,62608,64804,60192,64200,37568,58544,63788,55648,63064,64918,52064,62168,46784,51488,62024,45632,60560,64292,38464,58768,63844,56096,63176,64946,35168,57944,52400,62252,47456,61016,64406,50608,61804,39776,50320,61732,39200,58952,63890,56464,63268,35616,58056,52624,62308,47904,61128,64434,33968,57644,50776,61846,40112,59180,56920,63382,49880,36272,49736,35984,58148,48560,52808,62354,48272,61220,34192,57700,50888,61874,40336,59236,57032,63410,33368,49964,36440,58262,53036,48728,61334,49516,34520,49444,34376,57746,40664,50980,40520,59282,57124,33480,50020,36552,58290,53092,48840,61362,33068,49558,34604,51094,40748,33644,33572,36716,50066,36644,49004,53138,33124,49586,34660,51122,40804,57266,41664,59568,64044,54112,62680,64822,53536,62536,64786,44736,60336,64236,42560,59792,64100,55072,62920,64882,37216,58456,63766,55472,63020,51632,62060,45920,51344,61988,45344,60488,64274,38752,58840,63862,37664,58568,63794,55696,63076,52112,62180,46880,60872,64370,34992,57900,52312,62230,47280,60972,50392,61750,39344,50248,61714,39056,58916,56392,63250,35760,58092,35216,57956,48048,52424,62258,47504,61028,50632,61810,39824,59108,56776,63346,33880,57622,50732,40024,59158,56876,49772,36056,49700,35912,58130,48344,52772,48200,61202,34264,57718,33992,57650,40408,50788,40136,59186,56932,49892,36296,58226,52964,48584,61298,33324,49942,36396,53014,49462,34412,49426,34340,40556,50962,40484,33516,33380,36588,49970,36452,48876,53042,48740,49522,34532,51058,40676,57202,33046,34582,33590,33554,36662,36626,33142,33074,34678,34610,40822,40754,33650,36722,49010,41312,59480,64022,53680,62572,53392,62500,42848,59864,64118,41760,59592,64050,55216,62956,54160,62692,44832,60360,64242,37040,58412,55384,62998,51416,62006,45488,51272,61970,45200,60452,37808,58604,37264,58468,55496,63026,52184,62198,47024,51656,62066,45968,60644,38800,58852,56264,63218,34904,57878,52268,47192,60950,50284,39128,50212,38984,58898,56356,35288,57974,35016,57906,47576,52324,47304,60978,50668,39896,50404,39368,58994,56548,35784,58098,52708,48072,61170,33836,50710,39980,49718,35948,49682,35876,48236,52754,34028,33892,40172,50738,40036,56882,49910,36332,49778,36068,48620,52850,48356,34276,50930,40420,57074,33302,36374,34358,34322,40502,33398,33330,36470,36402,48758,34550,34418,40694,40562,33522,36594,48882,41136,59436,53464,62518,53320,62482,41904,59628,41360,59492,54232,62710,53704,62578,44976,60396,42896,59876,55240,62962,36952,58390,55340,51308,45272,51236,45128,60434,37336,58486,37064,58418,55396,51692,46040,51428,45512,60530,38872,58870,37832,58610,55780,52196,47048,60914,34860,52246,50230,39020,50194,38948,35052,34916,47340,52274,47204,50422,39404,50290,39140,56434,35820,35300,48108,52466,47588,50674,39908,56818,33814,35894,35858,33910,33842,40054,39986,36086,35954,48374,48242,34294,34034,40438,40178,36338,48626,41048,59414,53356,53284,41432,59510,41160,59442,53740,53476,42968,59894,41928,59634,55276,54244,36908,51254,45164,51218,37100,36964,55346,51446,45548,51314,45284,37868,37348,55538,52214,47084,51698,46052,34838,38966,34934,34866,47222,39158,39026,35318,35058,47606,47346,39926,39410,6e4,64152,54336,62736,64836,60784,64348,38080,58672,63820,55904,63128,64934,51744,62088,46144,60688,64324,39648,59064,63918,56688,63324,35424,58008,52528,62284,47712,61080,64422,50448,61764,39456,59016,63906,56592,63300,36208,58204,52920,62382,48496,61276,34096,57676,50840,61862,40240,59212,56984,63398,49800,36112,58180,52872,62370,48400,61252,34488,57774,51036,40632,59310,57180,33432,49996,36504,58278,53068,48792,61350,49476,34440,57762,51012,40584,59298,57156,33628,50094,36700,53166,48988,33100,49574,34636,51110,40780,57254,33604,50082,36676,53154,48964,53984,62648,64814,44480,60272,64220,42176,59696,64076,54880,62872,64870,53792,62600,64802,44096,60176,64196,51568,62044,45792,60600,64302,38624,58808,63854,37472,58520,63782,55600,63052,52016,62156,46688,51472,62020,45600,60552,64290,38432,58760,63842,56080,63172,50360,61742,39280,58972,56504,63278,35696,58076,35120,57932,47984,52376,62246,47408,61004,50584,61798,39728,50312,61730,39184,58948,56456,63266,35600,58052,52616,62306,47888,61124,49756,36024,58158,52828,48312,61230,34232,57710,33944,57638,40376,50764,40088,59174,56908,49868,36248,49732,35976,58146,48536,52804,48264,61218,34184,57698,50884,40328,59234,57028,49454,34396,50990,40540,57134,33500,33356,36572,49958,36428,48860,53030,48716,49510,34508,49442,34372,40652,50978,40516,57122,33476,50018,36548,53090,48836,33582,36654,33134,33062,34670,34598,40814,40742,33638,33570,36710,36642,48998,33122,34658,40802,53616,62556,42720,59832,64110,41568,59544,64038,55152,62940,54064,62668,53520,62532,44640,60312,64230,42528,59784,64098,55056,62916,51384,61998,45424,60508,37744,58588,37168,58444,55448,63014,52152,62190,46960,51608,62054,45872,51336,61986,45328,60484,38704,58828,37648,58564,55688,63074,52104,62178,46864,60868,50268,39096,58926,56412,35256,57966,34968,57894,47544,52300,47256,60966,50652,39864,50380,39320,50244,39048,58914,56388,35736,58086,35208,57954,48024,52420,47496,61026,50628,39816,59106,56772,49710,35932,52782,48220,34012,33868,40156,50726,40012,56870,49902,36316,49766,36044,49698,48604,35908,48332,52770,48196,34252,33988,40396,50786,40132,56930,49890,36292,52962,48580,34350,40494,33390,33318,36462,36390,48750,34542,34406,40686,34338,40550,40482,33510,33378,36582,36450,48870,48738,34530,40674,53432,62510,41840,59612,41264,59468,54200,62702,53656,62566,53384,62498,44912,60380,42800,59852,41744,59588,55192,62950,54152,62690,44816,60356,51292,45240,60462,37304,58478,37016,58406,55372,51676,46008,51404,45464,51268,45192,60450,38840,58862,37784,58598,37256,58466,55492,52172,47e3,51652,45960,60642,38792,58850,56260,50222,39004,56366,35036,34892,47324,52262,47180,50414,39388,50278,39116,50210,38980,56354,35804,35276,48092,35012,47564,52322,47300,50662,39884,50402,39364,56546,35780,52706,48068,35886,33902,33830,40046,39974,36078,35942,48366,35874,48230,34286,34022,40430,33890,40166,40034,36326,36066,48614,48354,34274,40418,53340,41400,59502,41112,59430,53724,53452,53316,42936,59886,41880,59622,41352,59490,55260,54220,53700,44952,60390,42888,59874,51246,45148,37084,36940,55334,51438,45532,51302,45260,51234,45124,37852,37324,37060,55394,52206,47068,51686,46028,51426,45508,38860,37828,55778,38958,34926,34854,47214,39150,39014,38946,35310,35046,47598,34914,47334,47202,39918,39398,39138,35814,35298,48102,47586,53294,41180,41036,53486,53350,53282,41948,41420,41156,54254,53734,53474,45020,42956,41924,36974,36902,45294,45158,37358,37094,36962,46062,45542,45282,38894,37862,37346,54496,62776,64846,43200,59952,64140,54304,62728,64834,56048,63164,51824,62108,46304,60728,64334,37984,58648,63814,55856,63116,51728,62084,46112,60680,64322,52600,62302,47856,61116,50488,61774,39536,59036,56632,63310,35376,57996,52504,62278,47664,61068,50440,61762,39440,59012,56584,63298,50876,40312,59230,57020,49820,36152,58190,52892,48440,61262,34072,57670,50828,40216,59206,56972,49796,36104,58178,52868,48392,61250,50014,36540,53086,48828,49486,34460,51022,40604,57166,33420,49990,36492,53062,48780,49474,34436,51010,40580,57154,34654,40798,33614,36686,48974,33094,34630,40774,33602,36674,48962,59768,64094,55024,62908,53872,62620,44256,60216,64206,42080,59672,64070,54832,62860,53776,62596,44064,60168,64194,37616,58556,55672,63070,52088,62174,46832,51512,62030,45680,60572,38512,58780,37424,58508,55576,63046,51992,62150,46640,51464,62018,45584,60548,38416,58756,56072,63170,35192,57950,52412,47480,61022,50620,39800,50332,39224,58958,56476,35640,58062,35096,57926,47928,52364,47384,60998,50572,39704,50308,39176,58946,56452,35592,58050,52612,47880,61122,33980,50782,40124,56926,49886,36284,49742,35996,48572,52814,48284,34204,33932,40348,50758,40076,56902,49862,36236,49730,35972,48524,52802,48260,34180,50882,40324,57026,33374,36446,48734,34526,34382,40670,40526,33486,33350,36558,36422,48846,48710,34502,34370,40646,40514,33474,36546,48834,41712,59580,54136,62686,53560,62542,44784,60348,42608,59804,41520,59532,55096,62926,54040,62662,53512,62530,44592,60300,42512,59780,55048,62914,37240,58462,55484,51644,45944,51356,45368,60494,38776,58846,37688,58574,37144,58438,55436,52124,46904,51596,45848,51332,45320,60482,38680,58822,37640,58562,55684,52100,46856,60866,35004,52318,47292,50398,39356,50254,39068,56398,35772,35228,48060,34956,47516,52294,47244,50638,39836,50374,39308,50242,39044,56386,35724,35204,48012,52418,47492,50626,39812,56770,33886,40030,36062,35918,48350,48206,34270,33998,40414,33862,40142,40006,36302,36038,48590,35906,48326,48194,34246,33986,40390,40130,36290,48578,41336,59486,53692,53404,42872,59870,41784,59598,41240,59462,55228,54172,53644,53380,44856,60366,42776,59846,41736,59586,55180,54148,37052,55390,51422,45500,51278,45212,37820,37276,37004,55366,52190,47036,51662,45980,51398,45452,51266,45188,38812,37772,37252,55490,52166,46988,51650,45956,34910,47198,39134,38990,35294,35022,47582,34886,47310,47174,39902,39374,39110,38978,35790,35270,48078,35010,47558,47298,39878,39362,41148,53470,53326,41916,41372,41100,54238,53710,53446,53314,44988,42908,41868,41348,55246,54214,53698,36958,45278,45134,37342,37070,36934,46046,45518,45254,45122,38878,37838,37318,37058,47054,46022,45506,41054,41438,41166,41030,42974,41934,41414,41154,43488,60024,64158,54384,62748,43104,59928,64134,54288,62724,60796,38128,58684,55928,63134,51768,62094,46192,60700,37936,58636,55832,63110,51720,62082,46096,60676,39672,59070,56700,35448,58014,52540,47736,61086,50460,39480,59022,56604,35352,57990,52492,47640,61062,50436,39432,59010,56580,36220,52926,48508,34108,50846,40252,56990,49806,36124,52878,48412,34060,50822,40204,56966,49794,36100,52866,48388,34494,40638,33438,36510,48798,34446,40590,33414,36486,48774,34434,40578,54008,62654,44528,60284,42224,59708,54904,62878,53816,62606,44144,60188,42032,59660,54808,62854,53768,62594,44048,60164,51580,45816,60606,38648,58814,37496,58526,55612,52028,46712,51484,45624,60558,38456,58766,37400,58502,55564,51980,46616,51460,45576,60546,38408,58754,56068,50366,39292,56510,35708,35132,47996,52382,47420,50590,39740,50318,39196,56462,35612,35084,47900,52358,47372,50566,39692,50306,39172,56450,35588,52610,47876,36030,48318,34238,33950,40382,40094,36254,35982,48542,48270,34190,33926,40334,40070,36230,35970,48518,48258,34178,40322,53628,42744,59838,41592,59550,55164,54076,53532,44664,60318,42552,59790,41496,59526,55068,54028,53508,44568,60294,42504,59778,51390,45436,37756,37180,55454,52158,46972,51614,45884,51342,45340,38716,37660,37132,55430,52110,46876,51590,45836,51330,45316,38668,37636,55682,39102,35262,34974,47550,47262,39870,39326,39054,35742,35214,48030,34950,47502,47238,39822,39302,39042,35718,35202,48006,47490,53438,41852,41276,54206,53662,53390,44924,42812,41756,41228,55198,54158,53638,53378,44828,42764,41732,45246,37310,37022,46014,45470,45198,38846,37790,37262,36998,47006,45966,45446,45186,38798,37766,37250,41406,41118,42942,41886,41358,41094,44958,42894,41862,41346,54520,62782,43248,59964,54328,62734,43056,59916,54280,62722,56060,51836,46328,60734,38008,58654,55868,51740,46136,60686,37912,58630,55820,51716,46088,60674,52606,47868,50494,39548,56638,35388,52510,47676,50446,39452,56590,35340,52486,47628,50434,39428,56578,40318,36158,48446,34078,40222,36110,48398,34054,40198,36098,48386,59774,55036,53884,44280,60222,42104,59678,54844,53788,44088,60174,42008,59654,54796,53764,37628,55678,52094,46844,51518,45692,38524,37436,55582,51998,46652,51470,45596,38428,37388,55558,51974,46604,51458,45572,35198,47486,39806,39230,35646,35102,47934,47390,39710,39182,35598,35078,47886,47366,39686,39170,41724,54142,53566,44796],p=[48732,49518,34524,49446,34380,40668,50982,40524,57126,33484,33348,36556,49954,36420,48844,53026,48708,49506,34500,51042,40644,57186,33070,34606,40750,33646,33574,36718,36646,49006,33126,33058,34662,34594,40806,40738,33634,36706,48994,41696,59576,64046,54128,62684,53552,62540,44768,60344,64238,42592,59800,64102,41504,59528,64034,55088,62924,54032,62660,44576,60296,64226,37232,58460,55480,63022,51640,62062,45936,51352,61990,45360,60492,38768,58844,37680,58572,37136,58436,55432,63010,52120,62182,46896,51592,62050,45840,60612,38672,58820,56200,63202,35e3,57902,52316,47288,60974,50396,39352,50252,39064,58918,56396,35768,58094,35224,57958,48056,34952,57890,47512,52292,47240,60962,50636,39832,50372,39304,58978,56516,35720,58082,52676,48008,61154,33884,50734,40028,56878,49774,36060,49702,35916,48348,52774,48204,34268,33996,40412,33860,40140,50722,40004,56866,49894,36300,49762,36036,48588,52834,48324,34244,50914,40388,57058,33326,36398,34414,34342,40558,40486,33518,33382,36590,33314,36454,48878,36386,48742,34534,34402,40678,40546,33506,36578,48866,41328,59484,53688,62574,53400,62502,42864,59868,41776,59596,41232,59460,55224,62958,54168,62694,53640,62562,44848,60364,42768,59844,55176,62946,37048,58414,55388,51420,45496,51276,45208,60454,37816,58606,37272,58470,37e3,58402,55364,52188,47032,51660,45976,51396,45448,60514,38808,58854,37768,58594,55748,52164,46984,60898,34908,52270,47196,50286,39132,50214,38988,56358,35292,35020,47580,34884,47308,52258,47172,50670,39900,50406,39372,50274,39108,56418,35788,35268,48076,52450,47556,50658,39876,56802,33838,39982,35950,35878,48238,34030,33894,40174,33826,40038,39970,36334,36070,48622,35938,48358,48226,34278,34018,40422,40162,36322,48610,41144,59438,53468,53324,41912,59630,41368,59494,41096,59426,54236,53708,53444,44984,60398,42904,59878,41864,59618,55244,54212,36956,55342,51310,45276,51238,45132,37340,37068,36932,55330,51694,46044,51430,45516,51298,45252,38876,37836,37316,55522,52198,47052,51682,46020,34862,39022,38950,35054,34918,47342,34850,47206,39406,39142,39010,35822,35302,48110,35042,47590,47330,39910,39394,41052,53358,53286,41436,41164,41028,53742,53478,53346,42972,41932,41412,55278,54246,53730,36910,45166,37102,36966,36898,45550,45286,45154,37870,37350,37090,47086,46054,45538,43456,60016,64156,54368,62744,64838,43072,59920,64132,60792,64350,38112,58680,63822,55920,63132,51760,62092,46176,60696,64326,37920,58632,63810,55824,63108,39664,59068,56696,63326,35440,58012,52536,62286,47728,61084,50456,61766,39472,59020,56600,63302,35344,57988,52488,62274,47632,61060,36216,58206,52924,48504,61278,34104,57678,50844,40248,59214,56988,49804,36120,58182,52876,48408,61254,34056,57666,50820,40200,59202,56964,34492,51038,40636,57182,33436,49998,36508,53070,48796,49478,34444,51014,40588,57158,33412,49986,36484,53058,48772,33630,36702,48990,33102,34638,40782,33606,36678,48966,33090,34626,40770,54e3,62652,44512,60280,64222,42208,59704,64078,54896,62876,53808,62604,44128,60184,64198,42016,59656,64066,54800,62852,51576,62046,45808,60604,38640,58812,37488,58524,55608,63054,52024,62158,46704,51480,62022,45616,60556,38448,58764,37392,58500,55560,63042,51976,62146,46608,60804,50364,39288,58974,56508,35704,58078,35128,57934,47992,52380,47416,61006,50588,39736,50316,39192,58950,56460,35608,58054,35080,57922,47896,52356,47368,60994,50564,39688,59074,56708,49758,36028,52830,48316,34236,33948,40380,50766,40092,56910,49870,36252,49734,35980,48540,52806,48268,34188,33924,40332,50754,40068,56898,49858,36228,52930,48516,34398,40542,33502,33358,36574,36430,48862,48718,34510,34374,40654,40518,33478,33346,36550,36418,48838,48706,34498,40642,53624,62558,42736,59836,41584,59548,55160,62942,54072,62670,53528,62534,44656,60316,42544,59788,41488,59524,55064,62918,54024,62658,44560,60292,51388,45432,60510,37752,58590,37176,58446,55452,52156,46968,51612,45880,51340,45336,60486,38712,58830,37656,58566,37128,58434,55428,52108,46872,51588,45832,60610,38664,58818,56196,50270,39100,56414,35260,34972,47548,52302,47260,50654,39868,50382,39324,50246,39052,56390,35740,35212,48028,34948,47500,52290,47236,50630,39820,50370,39300,56514,35716,52674,48004,35934,48222,34014,33870,40158,40014,36318,36046,48606,35910,48334,48198,34254,33990,40398,33858,40134,40002,36294,36034,48582,48322,34242,40386,53436,41848,59614,41272,59470,54204,53660,53388,44920,60382,42808,59854,41752,59590,41224,59458,55196,54156,53636,44824,60358,42760,59842,51294,45244,37308,37020,55374,51678,46012,51406,45468,51270,45196,38844,37788,37260,36996,55362,52174,47004,51654,45964,51394,45444,38796,37764,55746,39006,35038,34894,47326,47182,39390,39118,38982,35806,35278,48094,35014,47566,34882,47302,47170,39886,39366,39106,35782,35266,48070,47554,53342,41404,41116,53726,53454,53318,42940,41884,41356,41092,55262,54222,53702,53442,44956,42892,41860,45150,37086,36942,45534,45262,45126,37854,37326,37062,36930,47070,46030,45510,45250,38862,37830,37314,41182,41038,41950,41422,41158,41026,45022,42958,41926,41410,54512,62780,43232,59960,64142,54320,62732,43040,59912,64130,56056,63166,51832,62110,46320,60732,38e3,58652,55864,63118,51736,62086,46128,60684,37904,58628,55816,63106,52604,47864,61118,50492,39544,59038,56636,35384,57998,52508,47672,61070,50444,39448,59014,56588,35336,57986,52484,47624,61058,50878,40316,57022,49822,36156,52894,48444,34076,50830,40220,56974,49798,36108,52870,48396,34052,50818,40196,56962,36542,48830,34462,40606,33422,36494,48782,34438,40582,33410,36482,48770,59772,55032,62910,53880,62622,44272,60220,42096,59676,54840,62862,53784,62598,44080,60172,42e3,59652,54792,62850,37624,58558,55676,52092,46840,51516,45688,60574,38520,58782,37432,58510,55580,51996,46648,51468,45592,60550,38424,58758,37384,58498,55556,51972,46600,60802,35196,52414,47484,50622,39804,50334,39228,56478,35644,35100,47932,52366,47388,50574,39708,50310,39180,56454,35596,35076,47884,52354,47364,50562,39684,56706,33982,40126,36286,35998,48574,48286,34206,33934,40350,40078,36238,35974,48526,48262,34182,33922,40326,40066,36226,48514,41720,59582,54140,53564,44792,60350,42616,59806,41528,59534,55100,54044,53516,44600,60302,42520,59782,41480,59522,55052,54020,37244,55486,51646,45948,51358,45372,38780,37692,37148,55438,52126,46908,51598,45852,51334,45324,38684,37644,37124,55426,52102,46860,51586,45828,35006,47294,39358,39070,35774,35230,48062,34958,47518,47246,39838,39310,39046,35726,35206,48014,34946,47494,47234,39814,39298,41340,53694,53406,42876,41788,41244,55230,54174,53646,53382,44860,42780,41740,41220,55182,54150,53634,37054,45502,45214,37822,37278,37006,47038,45982,45454,45190,38814,37774,37254,36994,46990,45958,45442,41150,41918,41374,41102,44990,42910,41870,41350,41090,43504,60028,54392,62750,43120,59932,54296,62726,43024,59908,60798,38136,58686,55932,51772,46200,60702,37944,58638,55836,51724,46104,60678,37896,58626,55812,39676,56702,35452,52542,47740,50462,39484,56606,35356,52494,47644,50438,39436,56582,35332,52482,47620,36222,48510,34110,40254,36126,48414,34062,40206,36102,48390,34050,40194,54012,44536,60286,42232,59710,54908,53820,44152,60190,42040,59662,54812,53772,44056,60166,41992,59650,51582,45820,38652,37500,55614,52030,46716,51486,45628,38460,37404,55566,51982,46620,51462,45580,38412,37380,55554,39294,35710,35134,47998,47422,58528,63784,55616,63056,64916,52032,62160,60832,64360,35136,57936,52384,62248,47424,61008,64404,50592,61800,39744,59088,63924,56736,63336,64986,33952,57640,50768,61844,40096,59176,63946,56912,63380,49872,36256,58216,52944,62388,48544,61288,64474,33360,49960,36432,58260,53032,62410,48720,61332,49512,34512,57780,51048,61914,40656,59316,57192,63450,33064,49556,34600,57802,51092,40744,59338,33640,50100,36712,58330,53172,49e3,61402,59552,64040,54080,62672,64820,60320,64232,37184,58448,63764,55456,63016,64906,51616,62056,45888,60624,64308,38720,58832,63860,56224,63208,64954,34976,57896,52304,62228,47264,60968,64394,50384,61748,39328,58984,63898,56528,63284,35744,58088,52688,62324,48032,61160,64442,33872,57620,50728,61834,40016,59156,56872,63370,49768,36048,58164,52840,62362,48336,61236,34256,57716,50920,61882,40400,59252,57064,63418,33320,49940,36392,58250,53012,49460,34408,57754,50996,40552,59290,57140,33512,50036,36584,58298,53108,48872,61370,33044,49546,34580,51082,33588,50074,36660,53146,33140,49594,34676,51130,40820,57274,41280,59472,64020,53664,62568,64794,42816,59856,64116,55200,62952,64890,37024,58408,63754,55376,62996,51408,62004,45472,60520,64282,37792,58600,63802,55760,63092,52176,62196,47008,60904,64378,34896,57876,52264,62218,47184,60948,50280,61722,39120,58932,56424,63258,35280,57972,52456,62266,47568,61044,50664,61818,39888,59124,56808,63354,33832,57610,50708,39976,59146,49716,35944,58138,52788,48232,61210,34024,57658,50804,40168,59194,56948,49908,36328,58234,52980,48616,61306,33300,49930,36372,49434,34356,50970,40500,33396,49978,36468,53050,48756,49530,34548,51066,40692,57210,33034,34570,33562,36634,33082,34618,40762,33658,36730,49018,41120,59432,64010,53456,62516,41888,59624,64058,54224,62708,44960,60392,64250,36944,58388,55336,62986,51304,61978,45264,60468,37328,58484,55528,63034,51688,62074,46032,60660,38864,58868,56296,63226,34856,57866,52244,50228,39016,58906,56372,35048,57914,52340,47336,60986,50420,39400,59002,56564,35816,58106,52724,48104,61178,33812,50698,49690,35892,52762,33908,50746,40052,56890,49786,36084,52858,48372,34292,50938,40436,57082,33290,34330,33338,36410,34426,40570,33530,36602,48890,41040,59412,53352,62490,41424,59508,53736,62586,42960,59892,55272,62970,36904,58378,51252,45160,60442,37096,58426,55412,51444,45544,60538,37864,58618,55796,52212,47080,60922,34836,50202,38964,34932,52282,47220,50298,39156,56442,35316,52474,47604,50682,39924,56826,33802,35866,33850,39994,35962,48250,34042,40186,36346,48634,59968,64144,60768,64344,58656,63816,55872,63120,64932,39616,59056,63916,56672,63320,64982,35392,58e3,52512,62280,47680,61072,64420,36192,58200,52912,62380,48480,61272,64470,34080,57672,50832,61860,40224,59208,63954,56976,63396,34480,57772,51032,61910,40624,59308,57176,63446,33424,49992,36496,58276,53064,62418,48784,61348,33624,50092,36696,58326,53164,48984,61398,33096,49572,34632,57810,51108,40776,59346,57252,53952,62640,64812,60256,64216,59680,64072,54848,62864,64868,51552,62040,45760,60592,64300,38592,58800,63852,37440,58512,63780,55584,63048,64914,52e3,62152,46656,60816,64356,50352,61740,39264,58968,63894,56496,63276,35680,58072,35104,57928,47968,52368,62244,47392,61e3,64402,50576,61796,39712,59080,63922,56720,63332,49752,36016,58156,52824,62358,48304,61228,34224,57708,33936,57636,40368,50760,61842,40080,59172,56904,63378,49864,36240,58212,52936,62386,48528,61284,49452,34392,57750,50988,40536,59286,57132,33496,33352,36568,49956,36424,58258,48856,53028,48712,61330,49508,34504,57778,51044,40648,59314,57188,33580,50070,36652,53142,33132,33060,34668,49554,34596,40812,51090,40740,33636,50098,36708,53170,48996,53600,62552,64790,42688,59824,64108,41536,59536,64036,55136,62936,64886,54048,62664,64818,44608,60304,64228,51376,61996,45408,60504,64278,37728,58584,63798,37152,58440,63762,55440,63012,52144,62188,46944,51600,62052,45856,60616,64306,38688,58824,63858,56208,63204,50264,61718,39088,58924,56408,63254,35248,57964,34960,57892,47536,52296,62226,47248,60964,50648,61814,39856,50376,61746,39312,58980,56520,63282,35728,58084,52680,62322,48016,61156,49708,35928,58134,52780,48216,61206,34008,57654,33864,57618,40152,50724,40008,59154,56868,49900,36312,49764,36040,58162,48600,52836,48328,61234,34248,57714,50916,40392,59250,57060,49430,34348,50966,40492,33388,33316,36460,49938,36388,48748,53010,49526,34540,49458,34404,40684,50994,40548,57138,33508,50034,36580,53106,48868,33558,36630,33078,33042,34614,34578,40758,33654,33586,36726,36658,49014,33138,34674,40818,53424,62508,41824,59608,64054,41248,59464,64018,54192,62700,53648,62564,44896,60376,64246,42784,59848,64114,55184,62948,51288,61974,45232,60460,37296,58476,37008,58404,55368,62994,51672,62070,46e3,51400,62002,45456,60516,38832,58860,37776,58596,55752,63090,52168,62194,46992,60900,50220,39e3,58902,56364,35032,57910,34888,57874,47320,52260,47176,60946,50412,39384,50276,39112,58930,56420,35800,58102,35272,57970,48088,52452,47560,61042,50660,39880,59122,56804,49686,35884,52758,33900,33828,40044,50706,39972,49782,36076,49714,35940,48364,52786,48228,34284,34020,40428,50802,40164,56946,49906,36324,52978,48612,34326,33334,33298,36406,36370,34422,34354,40566,40498,33526,33394,36598,36466,48886,48754,34546,40690,53336,62486,41392,59500,41104,59428,53720,62582,53448,62514,42928,59884,41872,59620,55256,62966,54216,62706,44944,60388,51244,45144,60438,37080,58422,36936,58386,55332,51436,45528,51300,45256,60466,37848,58614,37320,58482,55524,52204,47064,51684,46024,60658,38856,58866,56292,50198,38956,34924,34852,47212,52242,50294,39148,50226,39012,56370,35308,35044,47596,52338,47332,50678,39916,50418,39396,56562,35812,52722,48100,35862,33846,33810,39990,35958,35890,48246,34038,33906,40182,40050,36342,36082,48630,48370,34290,40434,53292,41176,59446,41032,59410,53484,53348,41944,59638,41416,59506,54252,53732,45016,60406,42952,59890,51222,36972,36900,51318,45292,51250,45156,37356,37092,55410,51702,46060,51442,45540,38892,37860,55794,34870,34834,39030,38962,35062,34930,47350,47218,39414,39154,35830,35314,48118,47602,54464,62768,64844,59936,64136,56032,63160,64942,51808,62104,46272,60720,64332,37952,58640,63812,55840,63112,64930,52592,62300,47840,61112,64430,50480,61772,39520,59032,63910,56624,63308,35360,57992,52496,62276,47648,61064,64418,50872,61870,40304,59228,57016,63406,49816,36144,58188,52888,62374,48432,61260,34064,57668,50824,61858,40208,59204,56968,63394,50012,36536,58286,53084,48824,61358,49484,34456,57766,51020,40600,59302,57164,33416,49988,36488,58274,53060,48776,61346,49582,34652,51118,40796,57262,33612,50086,36684,53158,48972,33092,49570,34628,51106,40772,57250,59760,64092,55008,62904,64878,53856,62616,64806,44224,60208,64204,42048,59664,64068,54816,62856,64866,37600,58552,63790,55664,63068,52080,62172,46816,51504,62028,45664,60568,64294,38496,58776,63846,37408,58504,63778,55568,63044,51984,62148,46624,60808,64354,35184,57948,52408,62254,47472,61020,50616,61806,39792,50328,61734,39216,58956,56472,63270,35632,58060,35088,57924,47920,52360,62242,47376,60996,50568,61794,39696,59076,56712,63330,33976,57646,50780,40120,59182,56924,49884,36280,49740,35992,58150,48568,52812,48280,61222,34200,57702,33928,57634,40344,50756,40072,59170,56900,49860,36232,58210,52932,48520,61282,33372,49966,36444,53038],y=[[[20,16,38]],[[1,9,31],[9,31,26],[31,26,2],[26,2,12]],[[2,12,17],[12,17,23],[17,23,37],[23,37,18]],[[37,18,22],[18,22,6],[22,6,27],[6,27,44]],[[27,44,15],[44,15,43],[15,43,39],[43,39,11]],[[39,11,13],[11,13,5],[13,5,41],[5,41,33]],[[41,33,36],[33,36,8],[36,8,4],[8,4,32]],[[4,32,3],[32,3,19],[3,19,40],[19,40,25]],[[40,25,29],[25,29,10],[29,10,24],[10,24,30]],[[20,16,38],[0,0,0],[0,0,0],[0,0,0]]],C=[[1,0,0,1],[0,1,0,1],[1,1,0,0],[0,0,1,1],[1,0,1,0],[0,1,1,0],[1,1,1,1],[0,0,0,0]],f=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","\u2000","\u2001",k.default.FNC1,k.default.FNC2,k.default.FNC3,"\u2005"],A.default={defaultConfig:{showLabel:!0,grouping:!(m=["\u2000 ","\u2000A","\u2000B","\u2000C","\u2000D","\u2000E","\u2000F","\u2000G","\u2000H","\u2000I","\u2000J","\u2000K","\u2000L","\u2000M","\u2000N","\u2000O","\u2000P","\u2000Q","\u2000R","\u2000S","\u2000T","\u2000U","\u2000V","\u2000W","\u2000X","\u2000Y","\u2000Z","\u20001","\u20002","\u20003","\u20004","\u20005"," ","\u20006","\u20007","\u20008","$","%","\u20009","\u20000","\u2000-","\u2000.","\u2000$","+","\u2000/","-",".","/","0","1","2","3","4","5","6","7","8","9","\u2000+","\u20011","\u20012","\u20013","\u20014","\u20015","\u20016","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","\u20017","\u20018","\u20019","\u20010","\u2001-","\u2001.","\u2001A","\u2001B","\u2001C","\u2001D","\u2001E","\u2001F","\u2001G","\u2001H","\u2001I","\u2001J","\u2001K","\u2001L","\u2001M","\u2001N","\u2001O","\u2001P","\u2001Q","\u2001R","\u2001S","\u2001T","\u2001U","\u2001V","\u2001W","\u2001X","\u2001Y","\u2001Z","\u2001$","\u2001/","\u2001+","\u2001%","\u2001 "]),groupNo:0,quietZoneStart:10,quietZoneStop:1,labelPosition:"bottom",height:60,quietZone:{top:0,right:1,bottom:0,left:10}},isNumericOnly:c,getCharValue:l,CODE_NS:48,getWeight:s,getParityPattern:a,START_PATTERN:"10",STOP_PATTERN:"1111",getGroupInfo:o,getTextGroup:e}},function(K,A,S){var k,w,u,p,y,C,f;function m(o,n){for(var e,r=0;r<n.length;r++)(e=n[r]).enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(o,e.key,e)}function g(o){return o&&o.__esModule?o:{default:o}}function c(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function l(o,n){if(o)return!n||typeof n!="object"&&typeof n!="function"?o:n;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function s(o,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);o.prototype=Object.create(n&&n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(o,n):o.__proto__=n)}function a(o){var n,e,r,t;return c(this,a),n=(e=(o=l(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,o,y.default.defaultConfig))).config).text,t=e.checkDigit,e=e.fullASCII?y.default.getFullASCIIChar(n):n,t?(t=o.checksum(e),r=o.checksum(e+t),o.text=y.default.START_STOP_CHARACTERS+e+t+r+y.default.START_STOP_CHARACTERS):o.text=y.default.START_STOP_CHARACTERS+e+y.default.START_STOP_CHARACTERS,o.label=n,t=o.calculateData(),o.adjustDesiredSize(t),o.convertToShape(t),o}Object.defineProperty(A,"__esModule",{value:!0}),k=function(o,n,e){return n&&m(o.prototype,n),e&&m(o,e),o},w=g(w=S(4)),u=g(S(2)),p=S(0),f=S(36),y=g(f),C=S(1),s(a,w.default),k(a,[{key:"validate",value:function(){var o,n=(o=this.config).text;if(!o.fullASCII&&!/^[0-9A-Z\-\.\ \$\/\+\%]+$/.test(n))throw new C.InvalidTextException(n)}},{key:"encode",value:function(o){var n="";return(0,p.str2Array)(o).forEach(function(e,r){(0,p.isEven)(r)?n+=(0,p.strRepeat)("1",+e):n+=(0,p.strRepeat)("0",+e)}),n}},{key:"calculateData",value:function(){var o=this,n=this.text,e="";return(0,p.sliceString)(n,1,function(r){e+=o.encode(y.default.getCode93Code(r))}),e+=y.default.TERMINATION}},{key:"checksum",value:function(o){var n=1;return o=(0,p.str2Array)(o).reduceRight(function(e,r){return r=y.default.getCode93Value(r),e+=(n=20<n?1:n)*r,n++,e},0),y.default.getCharByValue(o%47)}}]),f=a,A.default=f,u.default.registerEncoder("Code93",f)},function(K,A,S){var k,w,u,p,y;function C(c){var l=u.indexOf(c);if(l===-1)throw new k.InvalidCharException(c);return p[l]}function f(c){var l=u.indexOf(c);if(l===-1)throw new k.InvalidCharException(c);return l}function m(c){return u[c]}function g(c){var l="";return(0,w.sliceString)(c,1,function(s){if(!(s=y[s.charCodeAt(0)]))throw new k.InvalidTextException(c);l+=s}),l}Object.defineProperty(A,"__esModule",{value:!0}),k=S(1),w=S(0),u=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","-","."," ","$","/","+","%","[","]","{","}","*"],A.default={getCode93Code:C,START_STOP_CHARACTERS:"*",defaultConfig:{height:60,showLabel:!0,checkDigit:!(y=["]U","[A","[B","[C","[D","[E","[F","[G","[H","[I","[J","[K","[L","[M","[N","[O","[P","[Q","[R","[S","[T","[U","[V","[W","[X","[Y","[Z","]A","]B","]C","]D","]E"," ","{A","{B","{C","{D","{E","{F","{G","{H","{I","{J","{K","{L","{M","{N","{O","0","1","2","3","4","5","6","7","8","9","{Z","]F","]G","]H","]I","]J","]V","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","]K","]L","]M","]N","]O","]W","}A","}B","}C","}D","}E","}F","}G","}H","}I","}J","}K","}L","}M","}N","}O","}P","}Q","}R","}S","}T","}U","}V","}W","}X","}Y","}Z","]P","]Q","]R","]S","]T"]),fullASCII:!(p=["131112","111213","111312","111411","121113","121212","121311","111114","131211","141111","211113","211212","211311","221112","221211","231111","112113","112212","112311","122112","132111","111123","111222","111321","121122","131121","212112","212211","211122","211221","221121","222111","112122","112221","122121","123111","121131","311112","311211","321111","112131","113121","211131","121221","312111","311121","122211","111141"]),quietZone:{top:0,right:10,bottom:0,left:10},labelPosition:"bottom"},TERMINATION:"1",getCode93Value:f,getCharByValue:m,getFullASCIIChar:g}},function(K,A,S){var k,w,u,p,y,C,f,m,g;function c(e,r){for(var t,i=0;i<r.length;i++)(t=r[i]).enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(e)return!r||typeof r!="object"&&typeof r!="function"?e:r;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function o(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function n(e){var r,t,i,h,b,_,M,O,R,N;switch(s(this,n),r=(N=(e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,p.default.defaultConfig))).config).text,t=N.eccMode,i=N.ecc200SymbolSize,h=N.ecc200EncodingMode,b=N.structuredAppend,_=N.structureNumber,M=N.fileIdentifier,O=N.ecc000_140SymbolSize,_=+_,M=+M,R=void 0,t){case"ECC200":R=new y.default(r,{ecc200SymbolSize:i,ecc200EncodingMode:h,structuredAppend:b,structureNumber:_,fileIdentifier:M});break;case"ECC000":case"ECC050":case"ECC080":case"ECC100":case"ECC140":R=new C.default(r,{ecc000_140SymbolSize:O,structuredAppend:b,structureNumber:_,fileIdentifier:M,eccMode:t});break;default:throw new f.BadArgumentsException(t)}return N=R.getMatrix(),e.adjustDesiredSize(N),e.convertToShape(N),e}Object.defineProperty(A,"__esModule",{value:!0}),k=function(e,r,t){return r&&c(e.prototype,r),t&&c(e,t),e},w=l(w=S(7)),u=l(S(2)),g=S(38),p=l(g),g=S(39),y=l(g),g=S(42),C=l(g),f=S(1),m=S(0),o(n,w.default),k(n,[{key:"validate",value:function(){var e=(i=this.config).text,r=i.eccMode,t=i.structureNumber,i=i.fileIdentifier;if(!(r==="ECC200"?/^[\x00-\xFF\u2000\u2004\u2005]+$/:/^[\x00-\xFF]+$/).test(e))throw new f.InvalidTextException(e);if(!(0,m.isNumberLike)(t))throw new f.BadArgumentsException({structureNumber:t});if(!(0,m.isNumberLike)(i))throw new f.BadArgumentsException({fileIdentifier:i})}}]),g=n,A.default=g,u.default.registerEncoder("DataMatrix",g)},function(K,A,S){Object.defineProperty(A,"__esModule",{value:!0}),A.default={defaultConfig:{eccMode:"ECC200",ecc200SymbolSize:"squareAuto",ecc200EncodingMode:"auto",ecc000_140SymbolSize:"auto",structuredAppend:!1,structureNumber:0,fileIdentifier:0,quietZone:{top:2,left:2,right:2,bottom:2}}}},function(K,A,S){var k,w,u,p,y,C,f,m;function g(n,e){for(var r,t=0;t<e.length;t++)(r=e[t]).enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}function c(n){return n&&n.__esModule?n:{default:n}}function l(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function s(n){return n%256}function a(n){return Math.ceil(n-1e-5)}function o(n,e){l(this,o),this.text=n,this.m_symbol=(0,m.str2Array)(n).map(function(r){return r.charCodeAt(0)}),this.symbolSize=e.ecc200SymbolSize,this.encodingMode=e.ecc200EncodingMode,this.structuredAppend=e.structuredAppend,this.structureNumber=e.structureNumber,this.fileIdentifier=e.fileIdentifier,this.symbolInfo=u.default.getSymbolInfo("square144"),this.m_code=[]}Object.defineProperty(A,"__esModule",{value:!0}),k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},w=function(n,e,r){return e&&g(n.prototype,e),r&&g(n,r),n},C=S(8),u=c(C),C=S(40),p=c(C),y=S(1),C=S(41),f=c(C),m=S(0),w(o,[{key:"preEncode",value:function(n,e){var r=this.m_symbol,t=this.m_code;return(r=r[0])!=u.default.CONSTANTS.Macro05Input&&r!=u.default.CONSTANTS.Macro06Input||(t[n++]=r==u.default.CONSTANTS.Macro05Input?u.default.CONSTANTS.Macro05:u.default.CONSTANTS.Macro06,e++),{c_pos:n,s_pos:e}}},{key:"checkValue",value:function(n){var e,r=this.encodingMode,t=this.m_symbol;if(r=="X12"||r=="EDIFACT"){for(e=n;e<t.length;++e)if(u.default.getTripletCharValue(r,t[e])==u.default.CONSTANTS.InvalidTripletValue)return!1}return!0}},{key:"getEncodingLength",value:function(n,e,r,t){var i,h=this.m_symbol;if(e<0)return-1;switch(i=0,n){case"ASCII":i=e;break;case"C40":case"Text":i=2*~~((e+2)/3)+2;break;case"X12":i=2*~~((e+2)/3)+2,(e%3==1||e%3==2&&u.default.isDigit(h[r+t-2])&&u.default.isDigit(h[r+t-1]))&&--i;break;case"EDIFACT":i=3*~~(++e/4)+e%4+1;break;case"Base256":i=e+1+(e>u.default.CONSTANTS.Base256SmallBlockSize?2:1)}return i}},{key:"getMaxProperLength",value:function(n,e){for(var r,t,i=this.m_symbol,h=this.encodingMode,b=~~(((r=n+1)+(t=i.length))/2),_=(i=0,0);r<t;)(_=this.getEncodingLength(h,this.getCodeWordLength(h,n,(b=~~((r+t)/2))-n),n,b-n))<0||e<_?t=b-1:r=b+1;return n<r&&(i=b<r?(_=this.getEncodingLength(h,this.getCodeWordLength(h,n,r-n),n,r-n))<0||e<_?b-n:r-n:(b=Math.min(b,r),(_=this.getEncodingLength(h,this.getCodeWordLength(h,n,b-n),n,b-n))<0||e<_?b-n-1:b-n)),Math.max(0,i)}},{key:"getCodeWordLength",value:function(n,e,r){for(var t,i=this.m_symbol,h=0,b=e;b<e+r;++b){switch(t=i[b],n){case"ASCII":h+=t>u.default.ASCIIMax&&t!=u.default.CONSTANTS.FNC1Input?2:1,b<e+r-1&&u.default.isDigit(t)&&u.default.isDigit(i[b+1])&&++b;break;case"C40":case"Text":t==u.default.CONSTANTS.FNC1Input?t=u.default.CONSTANTS.TripletFNC1:t>u.default.ASCIIMax&&(h+=2,t-=128),h+=u.default.getTripletCharSetChannel(n,t)==0?1:2;break;case"X12":u.default.getX12Value(t)==u.default.CONSTANTS.InvalidTripletValue?h=-1:h+=1;break;case"EDIFACT":u.default.getEDIFACTValue(t)==u.default.CONSTANTS.InvalidTripletValue?h=-1:h+=1;break;case"Base256":h+=1}if(h<0)return h}return h}},{key:"getCodeLength",value:function(n){return this.getEncodingLength(n.charSet,this.getCodeWordLength(n.charSet,n.start,n.length),n.start,n.length)}},{key:"getEncodingUnitsInfomative",value:function(n,e,r){for(var t,i,h,b,_,M,O,R,N,E=[],z=0,D=n,Q=!(t={charSet:"ASCII",start:n,length:0,codeWords:0,encodingLength:0}),F=(N=this.m_symbol).length;D<F;){switch(Q=!1,t.charSet){case"ASCII":for(i=0;D+i<N.length-1&&z+~~(i/2)<e&&u.default.isDigit(N[D+i])&&u.default.isDigit(N[D+i+1]);)i+=2;if(0<i){if(t.codeWords+=i>>1,D+=i,e<=z+~~(i/2))break;continue}break;case"C40":case"Text":case"X12":for(;N[D]>u.default.ASCIIMax&&(t.codeWords+=2),0<u.default.getTripletCharSetChannel(t.charSet,N[D])&&++t.codeWords,++t.codeWords,++D,t.codeWords%3!=0&&D<F;);break;case"EDIFACT":for(;++t.codeWords,++D,3&t.codeWords&&D<F;);break;case"Base256":++t.codeWords,++D}for(h=0,_=b=e-(z+this.getEncodingLength(t.charSet,t.codeWords,t.start,D-t.start)),M=t.charSet;h=(O=this.lookAhead(t.charSet,D,_,h)).d_len,M=O.newCharset,0<--_&&this.getEncodingLength(M,this.getCodeWordLength(M,D,h),D,h)>b;);if(_<=0||(t.charSet!=M&&(t.length=D-t.start,0<t.length&&(E.push(t),z+=this.getEncodingLength(t.charSet,t.codeWords,t.start,t.length)),t={charSet:M,start:D,length:0,codeWords:0,encodingLength:0},Q=!0),R=e-1,t.charSet=="EDIFACT"&&--R,t.charSet=="Base256"&&++R,z+this.getEncodingLength(t.charSet,t.codeWords,t.start,t.length)>=R))break;Q||t.charSet!="ASCII"||(++t.codeWords,++D)}for(t.length=D-t.start,0<t.length&&(E.push(t),z+=this.getEncodingLength(t.charSet,t.codeWords,t.start,t.length)),t={charSet:"ASCII",start:D,length:0,codeWords:0,encodingLength:0};z<e&&D<N.length;){if(N[D]>u.default.ASCIIMax&&N[D]!=u.default.CONSTANTS.FNC1Input){if(!(z<e-1))break;++z}++z,++D}return D>t.start&&(t.length=D-t.start,E.push(t)),{s_taken:D-n,units:u.default.mergeUnits(E)}}},{key:"getEncodingUnits",value:function(n,e){var r=this,t=this.encodingMode,i=this.m_symbol,h=void 0,b=0,_=0;return n<i.length&&(t!=="auto"?(t!=="C40"&&t!="Text"&&t!="X12"||e++,(i={charSet:t,start:n,length:_=this.getMaxProperLength(n,e),codeWords:0,encodingLength:0}).codeWords=this.getCodeWordLength(i.charSet,i.start,i.length),i.encodingLength=this.getEncodingLength(i.charSet,i.codeWords,i.start,i.length),i.charSet=="X12"&&i.encodingLength==e&&i.codeWords%3==2&&(--_,--i.length,--i.codeWords,--i.encodingLength),h=[i]):(t=this.getEncodingUnitsInfomative(n,e,_),h=t.units,_=t.s_taken),h.forEach(function(M,O){b+=r.getCodeLength(M),O===h.length-1&&(M.charSet==="C40"||M.charSet==="Text"||M.charSet==="X12"&&!(1&~M.codeWords))&&b--})),{c_length:b,s_taken:_,units:h}}},{key:"encodeStructureHeader",value:function(n,e,r){var t=this.m_code,i=this.structureNumber;return t[n++]=u.default.CONSTANTS.StructuredAppand,t[n++]=s(i<<4|16-e+1),i=this.generateFileIdentifier(e,r),t[n++]=s(i>>8),t[n++]=i%256,n}},{key:"generateFileIdentifier",value:function(n,e){var r=this.m_symbol,t=this.fileIdentifier;return e%u.default.CONSTANTS.FileIdentifierMax+1<<8|(t==0?r.length%u.default.CONSTANTS.FileIdentifierMax+1:t)}},{key:"encode",value:function(n,e){switch(n.charSet){case"ASCII":return this.encodeASCII(n.start,n.length,e);case"C40":return this.encodeC40(n.start,n.length,e);case"Text":return this.encodeText(n.start,n.length,e);case"X12":return this.encodeX12(n.start,n.length,e);case"EDIFACT":return this.encodeEDIFACT(n.start,n.length,e);case"Base256":return this.encodeBase256(n.start,n.length,e)}}},{key:"encodeASCII",value:function(n,e,r){for(var t,i=this.m_code,h=this.m_symbol,b=n,_=n+e;b<_;b++)(t=u.default.getCharType(h[b]))==="FNC1"?(i.push(u.default.CONSTANTS.ASCIIFNC1),r++):t==="ExtendedASCII"?(i.push(u.default.CONSTANTS.ASCIIUpperShift),i.push(h[b]-u.default.ASCIIMax),r+=2):b+1<_&&t==="Numeric"&&u.default.getCharType(h[b+1])==="Numeric"?(t=10*(h[b]-48)+(h[b+1]-48)+130,i.push(t),r++,b++):(i.push(h[b]+1),r++);return r}},{key:"encodeTriplet",value:function(n,e,r,t){var i,h,b,_,M=this.m_code,O=this.m_symbol,R=this.symbolInfo,N=0,E=0,z=null,D=[],Q=e;switch(n){case"C40":M[t++]=u.default.CONSTANTS.LatchToC40;break;case"Text":M[t++]=u.default.CONSTANTS.LatchToText;break;case"X12":M[t++]=u.default.CONSTANTS.LatchToX12}for(;Q<e+r;)z=u.default.getTripletEncodeValues(n,O[Q++]),D=D.concat(z);for(;t<=R.symbolDataCapacity-2&&3<=D.length;){for(E=N=0;E<3;++E)N=(N*=40)+(0<D.length?D.shift():0);++N,M[t++]=N>>8,M[t++]=255&N}if(i=!0,0<D.length){if(h=R.symbolDataCapacity-t,_=e+r-D.length,b=D.length,h==0||3<D.length||2<=D.length&&h<2||n==="X12"&&this.getEncodingLength("ASCII",this.getCodeWordLength("ASCII",_,b),_,b)>(h==1?1:h-1))throw new y.TextTooLargeException;if(i=!1,2<=h)if(n=="X12")M[t++]=u.default.CONSTANTS.TripletUnlatch,t=this.encodeASCII(Q-D.length,D.length,t);else{for(i=!0,N=E=0;E<3;++E)N=(N*=40)+(0<D.length?D.shift():0);M[t++]=++N>>8,M[t++]=255&N}else _=O[Q-1],n==="X12"||_>u.default.ASCIIMax&&(M[t-2]=u.default.CONSTANTS.TripletUnlatch,--t),t=this.encodeASCII(Q-1,1,t)}return i&&t<R.symbolDataCapacity&&(M[t++]=u.default.CONSTANTS.TripletUnlatch),t}},{key:"encodeC40",value:function(n,e,r){return this.encodeTriplet("C40",n,e,r)}},{key:"encodeText",value:function(n,e,r){return this.encodeTriplet("Text",n,e,r)}},{key:"encodeX12",value:function(n,e,r){return this.encodeTriplet("X12",n,e,r)}},{key:"encodeEDIFACT",value:function(n,e,r){var t,i,h,b,_,M=this.m_code,O=this.m_symbol,R=this.symbolInfo,N=this.text;for(M[r++]=u.default.CONSTANTS.LatchToEDIFACT,i=t=0,h=n,b=!1;h<n+e&&2<R.symbolDataCapacity-r;){for(i=t=0;t<4;){if(++t,_=0,h<n+e){if((_=u.default.getEDIFACTValue(O[h++]))==u.default.CONSTANTS.InvalidTripletValue)throw new y.InvalidTextException(N)}else{if(h!=n+e){--t;break}_=u.default.CONSTANTS.EDIFACTUnlatch,b=!0,++h}i=i<<6|_}switch(t){case 1:M[r++]=s(i<<2);break;case 2:M[r++]=s(i>>4),M[r++]=s(i<<4);break;case 3:M[r++]=s(i>>10),M[r++]=s(i>>2),M[r++]=s(i<<6);break;case 4:M[r++]=s(i>>16),M[r++]=s(i>>8),M[r++]=i%256}}return h<n+e?r=this.encodeASCII(h,O.length-h,r):!b&&r<R.symbolDataCapacity-2&&(M[r++]=u.default.CONSTANTS.EDIFACTUnlatch<<2),r}},{key:"encodeBase256",value:function(n,e,r){var t,i=this.m_code,h=this.m_symbol;for(i[r++]=u.default.CONSTANTS.LatchToBase256,e>u.default.CONSTANTS.Base256SmallBlockSize&&(i[r++]=u.default.getRandomizedValue(u.default.CONSTANTS.Base256SmallBlockSize+e/u.default.CONSTANTS.Base256SmallBlockSize,r,u.default.CONSTANTS.Base256RandomBase)),i[r++]=u.default.getRandomizedValue(e%(u.default.CONSTANTS.Base256SmallBlockSize+1),r,u.default.CONSTANTS.Base256RandomBase),t=n;t<n+e;++t)i[r++]=u.default.getRandomizedValue(h[t],r,u.default.CONSTANTS.Base256RandomBase);return r}},{key:"padRight",value:function(n){for(var e=this.m_code,r=this.symbolInfo,t=n;t<r.symbolDataCapacity;t++)e[t]=t==n?u.default.CONSTANTS.ASCIIPad:u.default.getRandomizedValue(u.default.CONSTANTS.ASCIIPad,t+1,u.default.CONSTANTS.PadRandomBase)}},{key:"lookAhead",value:function(n,e,r,t){var i,h,b,_,M,O,R,N,E,z,D,Q={ASCII:0,C40:1,Text:2,X12:3,EDIFACT:4,Base256:5},F=["ASCII","C40","Text","X12","EDIFACT","Base256"],L=this.m_symbol;for(t=0,n=Q[n],i=!1,h=e,b=[0,1,1,1,1,1.25],_=Q.C40,(b=n!=Q.ASCII?b.map(function(T){return++T}):b)[n]=0,M=function(){var T,x,U,G,P,H,n1,t1,Y,u1,f1,s1,i1;if(++t,T=L[e],x=T==u.default.CONSTANTS.FNC1Input,U=T>u.default.ASCIIMax,b.forEach(function(o1,r1){switch(r1){case Q.ASCII:U&&!x?b[r1]=a(b[r1])+2:u.default.isDigit(T)?b[r1]+=.5:b[r1]+=1;break;case Q.C40:case Q.Text:b[r1]+=x?4/3:U?8/3:u.default.getTripletCharSetChannel(F[r1],T)==0?2/3:4/3;break;case Q.X12:U?b[r1]+=13/3:u.default.getX12Value(T)!=u.default.CONSTANTS.InvalidTripletValue?b[r1]+=2/3:b[r1]+=10/3;break;case Q.EDIFACT:U?b[r1]+=4.25:u.default.getEDIFACTValue(T)!=u.default.CONSTANTS.InvalidTripletValue?b[r1]+=.75:b[r1]+=3.25;break;case Q.Base256:b[r1]+=1}}),G=[Q.ASCII,Q.Base256,Q.EDIFACT,Q.Text,Q.X12,Q.C40],3<t)for(P=0;P<G.length;++P){for(H=!0,t1=b[n1=G[P]]+1,Y=0;Y<b.length;++Y){switch(n1){case Q.ASCII:b[Y]<t1&&(H=!1);break;case Q.Base256:(Y==Q.ASCII&&b[Y]<t1||b[Y]<=t1)&&(H=!1);break;case Q.EDIFACT:case Q.Text:case Q.X12:b[Y]<=t1&&(H=!1);break;case Q.C40:if(Y!=Q.X12&&b[Y]<=t1)H=!1;else if(--t1,b[Y]<t1)H=!1;else if(b[Y]==t1){for(u1=h;u1<=e;){if((f1=u.default.getX12Value(L[u1++]))<3)return{v:F[Q.X12]};if(f1==u.default.CONSTANTS.InvalidTripletValue)break}return{v:F[Q.C40]}}}if(!H)break}if(H){_=n1;break}}for(++e,i1=s1=0;i1<b.length;++i1)a(b[i1])<a(b[s1])&&(s1=i1);if(e<L.length&&a(b[s1])>=r)return i=!0,"break"};e<L.length&&e-h<=u.default.CONSTANTS.MaxLookAheadOffset&&(O=M())!=="break";)if((O===void 0?"undefined":k(O))==="object")return O.v;if(e==L.length||e-h>=u.default.CONSTANTS.MaxLookAheadOffset||i){for(N=R=0;N<b.length;++N)b[N]=a(b[N]),b[N]<b[R]&&(R=N);if(R==0||R==Q.C40)_=R;else{for(E=!0,z=b[R],D=0;D<b.length;++D)if(D!=R&&b[D]<=z){E=!1;break}E&&(_=R)}}return{d_len:t,newCharset:F[_]}}},{key:"getMatrix",value:function(){var n,e,r,t,i,h,b,_,M,O,R,N=this,E=this.text,z=this.m_symbol,D=this.symbolSize,Q=this.structuredAppend,F=this.structureNumber,L=this.symbolInfo;if(z.length>3116*(Q?16:1))throw new y.TextTooLargeException;if(i=t=r=e=n=0,D!=="squareAuto"&&D!=="rectangularAuto"?L=u.default.getSymbolInfo(D):D==="rectangularAuto"&&(L=u.default.getSymbolInfo("rectangular16x48")),this.symbolInfo=L,Q||(n=(R=this.preEncode(n,e)).s_pos,e=R.c_pos),h=L.symbolDataCapacity,r=Q?(h-=4,4):(h-=e,e),!this.checkValue(n))throw new y.InvalidTextException(E);for(b=void 0;t<(Q?u.default.CONSTANTS.MaxStructures:1)&&n<z.length;t++)i^=z[n],_=(O=this.getEncodingUnits(n,h)).s_taken,M=O.c_length,O=O.units,n+=_,t==F&&(b=O,r+=M);if(b==null)throw new y.InvalidStructureNumberException;if(n<z.length)throw new y.TextTooLargeException;return D!=="squareAuto"&&D!=="rectangularAuto"||(L=u.default.getSuitableSymbolSize(D,r),this.symbolInfo=L),Q&&(e=this.encodeStructureHeader(e,t,s(i^z[z.length-1]))),b.forEach(function(T){return e=N.encode(T,e)}),e<L.symbolDataCapacity&&this.padRight(e),R=this.eccProcess(),D=(E=u.default.getInfoOfRegions(L.regions)).rowOfRegion,E=E.colOfRegion,R=new f.default(R,L.symbolRows-2*D,L.symbolColumns-2*E).ECC200(),this.placeModules(R)}},{key:"eccProcess",value:function(){var n,e,r,t,i,h,b=this.symbolInfo,_=this.m_code,M=b.symbolDataCapacity/b.interleavedBlocks,O=b.eccLength/b.interleavedBlocks;for(b.symbolRows==144&&++M,n=[],e=0;e<b.interleavedBlocks;++e){for(r=0,t=e;r<M&&t<b.symbolDataCapacity;++r,t+=b.interleavedBlocks)n[r]=_[t];for(i=(0,p.default)(n,0,r,O),t=e,h=0;h<i.length;++h,t+=b.interleavedBlocks)_[b.symbolDataCapacity+t]=i[h]}return _}},{key:"placeModules",value:function(n){for(var e,r,t=this.symbolInfo,i=u.default.createModules(t.symbolRows,t.symbolColumns),h=(r=u.default.getInfoOfRegions(t.regions)).rowOfRegion,b=r.colOfRegion,_=0;_<h;_++)for(e=0;e<b;e++)u.default.setFinder(i,t,_,e),u.default.setRegionData(i,t,_,e,n);return i}}]),A.default=o},function(K,A,S){var k,w,u,p,y,C,f,m;for(Object.defineProperty(A,"__esModule",{value:!0}),A.default=l,k=S(0),w=128,u=(0,k.fillArray)(new Array(256),0),p=(0,k.fillArray)(new Array(256),0),y=1,C=0;f=y%=256,u[C]=y,p[y]=C%256,y<<=1,f&w&&(y^=45),++C<=255;);function g(s,a){return(s^a)%256}function c(s,a){return s==0||a==0?0:u[(p[s]+p[a])%255]}function l(s,a,o,n){for(var e,r,t=(0,k.fillArray)(new Array(n),0),i=m[n],h=a;h<a+o;++h){for(e=g(t[n-1],s[h]),r=n-1;0<r;--r)t[r]=g(c(e,i[r]),t[r-1]);t[0]=c(i[0],e)}return t.reverse(),t}m=[null,null,null,null,null,[228,48,15,111,62],null,[23,68,144,134,240,92,254],null,null,[28,24,185,166,223,248,116,255,110,61],[175,138,205,12,194,168,39,245,60,97,120],[41,153,158,91,61,42,142,213,97,178,100,242],null,[156,97,192,252,95,9,157,119,138,45,18,186,83,185],null,null,null,[83,195,100,39,188,75,66,61,241,213,109,129,94,254,225,48,90,188],null,[15,195,244,9,233,71,168,2,188,160,153,145,253,79,108,82,27,174,186,172],null,null,null,[52,190,88,205,109,39,176,21,155,197,251,223,155,21,5,172,254,124,12,181,184,96,50,193],null,null,null,[211,231,43,97,71,96,103,174,37,151,170,53,75,34,249,121,17,138,110,213,141,136,120,151,233,168,93,255],null,null,null,null,null,null,null,[245,127,242,218,130,250,162,181,102,120,84,179,220,251,80,182,229,18,2,4,68,33,101,137,95,119,115,44,175,184,59,25,225,98,81,112],null,null,null,null,null,[77,193,137,31,19,38,22,153,247,105,122,2,245,133,242,8,175,95,100,9,167,105,214,111,57,121,21,1,253,57,54,101,248,202,69,50,150,177,226,5,9,5],null,null,null,null,null,[245,132,172,223,96,32,117,22,238,133,238,231,205,188,237,87,191,106,16,147,118,23,37,90,170,205,131,88,120,100,66,138,186,240,82,44,176,87,187,147,160,175,69,213,92,253,225,19],null,null,null,null,null,null,null,[175,9,223,238,12,17,220,208,100,29,175,170,230,192,215,235,150,159,36,223,38,200,132,54,228,146,218,234,117,203,29,232,144,238,22,150,201,117,62,207,164,13,137,245,127,67,247,28,155,43,203,107,233,53,143,46],null,null,null,null,null,[242,93,169,50,144,210,39,118,202,188,201,189,143,108,196,37,185,112,134,230,245,63,197,190,250,106,185,221,175,64,114,71,161,44,147,6,27,218,51,63,87,10,40,130,188,17,163,31,176,170,4,107,232,7,94,166,224,124,86,47,11,204],null,null,null,null,null,[220,228,173,89,251,149,159,56,89,33,147,244,154,36,73,127,213,136,248,180,234,197,158,177,68,122,93,213,15,160,227,236,66,139,153,185,202,167,179,25,220,232,96,210,231,136,223,239,181,241,59,52,172,25,49,232,211,189,64,54,108,153,132,63,96,103,82,186]]},function(K,A,S){var k,w;function u(f,m){for(var g,c=0;c<m.length;c++)(g=m[c]).enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(f,g.key,g)}function p(f){return f&&f.__esModule?f:{default:f}}function y(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function C(f,m,g){y(this,C),this.nrow=m,this.ncol=g,this.data=f,this.matrix=w.default.createModules(m,g)}Object.defineProperty(A,"__esModule",{value:!0}),k=function(f,m,g){return m&&u(f.prototype,m),g&&u(f,g),f},S=S(8),w=p(S),k(C,[{key:"ECC200",value:function(){var f=this.nrow,m=this.ncol,g=this.matrix,c=4,l=0,s=0;do{for(c==f&&l==0&&this.corner1(s++),c==f-2&&l==0&&m%4&&this.corner2(s++),c==f-2&&l==0&&m%8==4&&this.corner3(s++),c!=f+4||l!=2||m%8||this.corner4(s++);c<f&&0<=l&&g[c][l]===null&&this.utah(c,l,s++),l+=2,0<=(c-=2)&&l<m;);for(c+=1,l+=3;0<=c&&l<m&&g[c][l]===null&&this.utah(c,l,s++),l-=2,(c+=2)<f&&0<=l;);}while(l+=1,(c+=3)<f||l<m);return g[f-1][m-1]||(g[f-1][m-1]=g[f-2][m-2]=1,g[f-2][m-1]=g[f-1][m-2]=0),g}},{key:"module",value:function(f,m,g,c){var l=this.nrow,s=this.ncol,a=this.matrix,o=this.data;f<0&&(f+=l,m+=4-(l+4)%8),m<0&&(m+=s,f+=4-(s+4)%8),a[f][m]=o[g]&(1<<8-c)%256?1:0}},{key:"utah",value:function(f,m,g){this.module(f-2,m-2,g,1),this.module(f-2,m-1,g,2),this.module(f-1,m-2,g,3),this.module(f-1,m-1,g,4),this.module(f-1,m,g,5),this.module(f,m-2,g,6),this.module(f,m-1,g,7),this.module(f,m,g,8)}},{key:"corner1",value:function(f){var m=this.nrow,g=this.ncol;this.module(m-1,0,f,1),this.module(m-1,1,f,2),this.module(m-1,2,f,3),this.module(0,g-2,f,4),this.module(0,g-1,f,5),this.module(1,g-1,f,6),this.module(2,g-1,f,7),this.module(3,g-1,f,8)}},{key:"corner2",value:function(f){var m=this.nrow,g=this.ncol;this.module(m-3,0,f,1),this.module(m-2,0,f,2),this.module(m-1,0,f,3),this.module(0,g-4,f,4),this.module(0,g-3,f,5),this.module(0,g-2,f,6),this.module(0,g-1,f,7),this.module(1,g-1,f,8)}},{key:"corner3",value:function(f){var m=this.nrow,g=this.ncol;this.module(m-3,0,f,1),this.module(m-2,0,f,2),this.module(m-1,0,f,3),this.module(0,g-2,f,4),this.module(0,g-1,f,5),this.module(1,g-1,f,6),this.module(2,g-1,f,7),this.module(3,g-1,f,8)}},{key:"corner4",value:function(f){var m=this.nrow,g=this.ncol;this.module(m-1,0,f,1),this.module(m-1,g-1,f,2),this.module(0,g-3,f,3),this.module(0,g-2,f,4),this.module(0,g-1,f,5),this.module(1,g-3,f,6),this.module(1,g-2,f,7),this.module(1,g-1,f,8)}}]),A.default=C},function(K,A,S){var k,w,u,p,y,C;function f(s,a){for(var o,n=0;n<a.length;n++)(o=a[n]).enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(s,o.key,o)}function m(s){return s&&s.__esModule?s:{default:s}}function g(s){if(Array.isArray(s)){for(var a=0,o=Array(s.length);a<s.length;a++)o[a]=s[a];return o}return Array.from(s)}function c(s,a){if(!(s instanceof a))throw new TypeError("Cannot call a class as a function")}function l(s,a){c(this,l),this.text=s,this.m_symbol=(0,p.str2Array)(s).map(function(o){return o.charCodeAt(0)}),this.symbolSize=a.ecc000_140SymbolSize,this.eccMode=a.eccMode,this.m_code=[],this.m_module=[]}Object.defineProperty(A,"__esModule",{value:!0}),k=function(s,a,o){return a&&f(s.prototype,a),o&&f(s,o),s},y=S(43),w=m(y),u=S(1),p=S(0),y=S(44),C=m(y),k(l,[{key:"getMatrix",value:function(){var s,a,o,n,e=this.m_symbol,r=this.symbolSize,t=this.eccMode,i=this.m_code;if(569<e.length)throw new u.TextTooLargeException;if(s=w.default.chooseEncodationScheme(e),a=t==="ECC000"?7:19,o=this.calculateDataBits(s),n=this.calculateTotalBits(s,a,o),r=this.f=w.default.getProperSymbolSize(r,n),n>w.default.getSymbolSizeInfo(r))throw new u.TextTooLargeException;return o+=30,(n=new C.default([])).putBitsMSF(w.default.Constants.getFormatID(s)<<27,5),r=this.crcProcess(s),n.putBitsLSF(r,16),n.putBitsLSF(e.length,9),this.encode(s,n),(r=new C.default(i)).putBitsLSF(w.default.getECC(t).headerBits,a),n.offset=0,this.eccProcess(r,n,o),this.randomizeBits(),this.placeModule()}},{key:"eccProcess",value:function(s,a,o){var n,e,r,t,i,h,b,_,M;if((M=this.eccMode)==="ECC000")for(;a.offset<o;)s.putBit(a.fetchBit());else{r=!(e=[(n=w.default.getECC(M).eccInfo).inputBits]);do{for(r=!1,t=0;t<n.inputBits;++t)e[t]>>=1,e[t]=w.default.setBit(e[t],n.registerBits[t],a.fetchBit());for(i=!1,h=0;h<n.outputBits;++h){for(i=!1,b=0;b<n.outputMasks[h].length;++b)i^=!!(e[n.outputMasks[h][b].registerNumber]&n.outputMasks[h][b].mask);s.putBit(i)}if(a.offset>=o){for(_=0;_<e.length&&e[_]==0;++_);_==e.length&&(r=!0)}}while(!r)}}},{key:"randomizeBits",value:function(){for(var s=this.m_code,a=this.f,o=~~((w.default.getSymbolSizeInfo(a)+7)/8),n=0;n<o;++n)s[n]^=w.default.Constants.RandomizeBytes[n]}},{key:"crcProcess",value:function(s){var a,o,n,e,r,t=this.m_symbol,i=0;for((r=[]).push(w.default.Constants.getFormatID(s)+1),r.push(0),r.push.apply(r,g(t)),a=33800,o=0;o<r.length;++o)for(n=0;n<8;++n)e=!!(1&i),i>>=1,!!(r[o]&1<<n)^e&&(i^=a);return i}},{key:"calculateDataBits",value:function(s){var a=this.m_symbol,o=w.default.Constants.GroupLengths[s];return~~(a.length/o)*w.default.Constants.BitLengths[s][0]+(a.length%o==0?0:w.default.Constants.BitLengths[s][a.length%o])}},{key:"calculateTotalBits",value:function(s,a,o){var n=this.eccMode;return a+(~~(((o=30+o)+(n=w.default.getECC(n).eccInfo).inputBits-1)/n.inputBits)+n.registerBits[n.inputBits-1])*n.outputBits}},{key:"encode",value:function(s,a){for(var o,n=this.m_symbol,e=0,r=s,t=w.default.Constants.GroupLengths[r],i=w.default.Constants.BaseValues[r],h=0;h<n.length;){for(e=0,o=1;e+=w.default.getCodeWord(s,n[h++])*o,o*=i,h%t!=0&&h<n.length;);a.putBitsLSF(e,w.default.Constants.BitLengths[r][h%t])}}},{key:"placeModule",value:function(){for(var s=this.m_module,a=this.f,o=this.m_code,n=w.default.getSymbolSizeInfo(a),e=new C.default(s),r=new C.default(o),t=w.default.getModuleMapping(a),i=0;i<n;++i)e.putBit(r.getBit(t[i]));return s=2*w.default.getSymbolSizeValue(a)+9,o=w.default.createModules(s),w.default.setFinder(o,s),w.default.setRegionData(o,s,e),o}}]),A.default=l},function(K,A,S){var k,w,u,p,y,C,f,m;function g(O){return O&&O.__esModule?O:{default:O}}function c(O){return 48<=O&&O<=57||O==32?p.Base11:65<=O&&O<=90?p.Base27:44<=O&&O<=47?p.Base41:O<=y?p.ASCII:p.Byte}function l(O){for(var R=p.Base11,N=0,E=O.length;N<E&&(R=s(R,c(O[N])))!==p.Byte;N++);return R}function s(O,R){if(O==R)return O;if(O==p.Byte||R==p.Byte)return p.Byte;var N=O;switch(O){case p.Base11:R==p.Base27?N=p.Base37:N<R&&(N=R);break;case p.Base27:R==p.Base11?N=p.Base37:N<R&&(N=R);break;case p.Base37:case p.Base41:N<R&&(N=R)}return N}function a(O){return O%256}function o(O,R){if(O==p.Byte)return R;if(O==p.ASCII)return a(127&R);var N=0;if(R!=32&&(48<=R&&R<=57&&(N=a(R-47)),O!=p.Base11)&&(N+=26,65<=R&&R<=90&&(N=a(R-64)),O==p.Base41))switch(R){case 44:return 38;case 45:return 39;case 46:return 37;case 47:return 40}return N}function n(O,R,N){return O&=~(R=1<<R),N&&(O|=R),O}function e(O,R){this.registerNumber=O,this.mask=1<<R}function r(O){return O=f[O],{eccInfo:C.ECCInfos[O],headerBits:C.HeaderBits[O]}}function t(O){var R=m.indexOf(O);if(R<0)throw new u.BadArgumentsException({ecc000_140SymbolSize:O});return C.SymbolCapacities[R]}function i(O){return m.indexOf(O)}function h(O,R){if(O=="auto"){O="square9";for(var N=0;N<=m.length-1;++N)if(R<=C.SymbolCapacities[N]){O=m[N];break}}return O}function b(O){return O=m.indexOf(O),C.ModuleMapping[O]}function _(O,R){for(var N,E,z,D=O[0],Q=0;Q<R;Q++)(0,w.isEven)(Q)?D[Q]=1:D[Q]=0;for(N=O[R-1],E=0;E<R;E++)N[E]=1;for(z=1;z<R-1;z++)O[z][0]=1,(0,w.isEven)(z)?O[z][R-1]=1:O[z][R-1]=0}function M(O,R,N){var E,z;for(R-=2,E=0;E<R;++E)for(z=0;z<R;++z)O[1+E][1+z]=+N.getBit(E*R+z)}Object.defineProperty(A,"__esModule",{value:!0}),k=g(S(8)),w=S(0),u=S(1),p={Base11:0,Base27:1,Base37:2,Base41:3,ASCII:4,Byte:5},y=127,C={BaseValues:[11,27,37,41,128,256],GroupLengths:[6,5,4,4,1,1],HeaderBits:[126,57358,465934,523278,517006],BitLengths:[[21,4,7,11,14,18,21],[24,5,10,15,20,24],[21,6,11,16,21],[22,6,11,17,22],[7,7],[8,8]],SymbolCapacities:function(){for(var O=[],R=7;R<50;R+=2)O.push(R*R);return O}(),getFormatID:function(O){return O===p.Base37?++O:O===p.Base41&&--O,O},ECCInfos:[{inputBits:1,registerBits:[0],outputBits:1,outputMasks:null},{inputBits:3,registerBits:[3,3,3],outputBits:4,outputMasks:[[new e(0,3),new e(1,0),new e(2,2),new e(2,1),new e(2,0)],[new e(0,1),new e(0,0),new e(1,3),new e(1,2),new e(1,0)],[new e(0,2),new e(0,1),new e(0,0),new e(1,2),new e(2,3),new e(2,2)],[new e(0,3),new e(0,2),new e(1,3),new e(1,2),new e(1,1),new e(2,3),new e(2,2),new e(2,0)]]},{inputBits:2,registerBits:[10,11],outputBits:3,outputMasks:[[new e(0,10),new e(0,9),new e(0,7),new e(0,5),new e(0,4),new e(0,3),new e(0,0),new e(1,8),new e(1,4),new e(1,3),new e(1,0)],[new e(0,9),new e(0,6),new e(0,5),new e(0,2),new e(0,1),new e(0,0),new e(1,11),new e(1,8),new e(1,5),new e(1,3),new e(1,2)],[new e(0,10),new e(0,5),new e(0,4),new e(0,3),new e(1,11),new e(1,10),new e(1,9),new e(1,7),new e(1,4),new e(1,2),new e(1,0)]]},{inputBits:1,registerBits:[15],outputBits:2,outputMasks:[[new e(0,15),new e(0,13),new e(0,10),new e(0,9),new e(0,8),new e(0,7),new e(0,6),new e(0,5),new e(0,0)],[new e(0,15),new e(0,14),new e(0,12),new e(0,11),new e(0,9),new e(0,4),new e(0,2),new e(0,1),new e(0,0)]]},{inputBits:1,registerBits:[13],outputBits:4,outputMasks:[[new e(0,13),new e(0,9),new e(0,6),new e(0,3),new e(0,1),new e(0,0)],[new e(0,13),new e(0,10),new e(0,9),new e(0,6),new e(0,5),new e(0,4),new e(0,3),new e(0,2),new e(0,0)],[new e(0,13),new e(0,12),new e(0,11),new e(0,9),new e(0,8),new e(0,6),new e(0,4),new e(0,2),new e(0,1),new e(0,0)],[new e(0,13),new e(0,12),new e(0,11),new e(0,9),new e(0,8),new e(0,6),new e(0,4),new e(0,3),new e(0,2),new e(0,1),new e(0,0)]]}],RandomizeBytes:[5,255,199,49,136,168,131,156,100,135,159,100,179,224,77,156,128,41,58,144,179,139,158,144,69,191,245,104,75,8,207,68,184,212,76,91,160,171,114,82,28,228,210,116,164,218,138,8,250,167,199,221,0,48,169,230,100,171,213,139,237,156,121,248,8,209,139,198,34,100,11,51,67,208,128,212,68,149,46,111,94,19,141,71,98,6,235,128,130,201,65,213,115,138,48,35,36,227,127,178,168,11,237,56,66,76,215,176,206,152,189,225,213,228,195,29,21,74,207,209,31,57,38,24,147,252,25,178,45,171,242,110,161,159,175,208,138,43,160,86,176,65,109,67,164,99,243,170,125,175,53,87,194,148,74,101,11,65,222,184,226,48,18,39,155,102,43,52,91,184,153,232,40,113,208,149,107,7,77,60,122,179,229,41,179,186,140,204,45,224,201,192,34,236,76,222,248,88,7,252,25,242,100,226,195,226,216,185,253,103,160,188,245,46,201,73,117,98,130,39,16,244,25,111,73,247,179,132,20,234,235,225,42,49,171,71,125,8,41,172,187,114,250,250,98,184,200,211,134,137,149,253,223,204,156,173,241,212,108,100,35,36,42,86,31,54,235,183,214,255,218,87,244,80,121,8,0],ModuleMapping:[[2,45,10,38,24,21,1,12,40,26,5,33,19,47,22,31,29,15,43,8,36,34,20,48,13,41,27,6,44,9,37,23,17,30,16,39,25,4,32,18,46,11,0,28,14,42,7,35,3],[2,19,55,10,46,28,64,73,1,62,17,53,35,71,8,80,44,26,49,31,67,4,76,40,22,58,13,69,6,78,42,24,60,15,51,33,74,38,20,56,11,47,29,65,37,25,61,16,52,34,70,7,79,43,12,48,30,66,63,75,39,21,57,32,68,5,77,41,23,59,14,50,0,72,36,18,54,9,45,27,3],[2,26,114,70,15,103,59,37,81,4,1,117,73,18,106,62,40,84,7,95,51,29,12,100,56,34,78,92,89,45,23,111,67,65,43,87,10,98,54,32,120,76,21,109,82,5,93,49,27,115,71,16,104,60,38,96,52,30,118,74,19,107,63,41,85,8,24,112,68,13,101,57,35,79,48,90,46,75,20,108,64,42,86,9,97,53,31,119,102,58,36,80,77,91,47,25,113,69,14,39,83,6,94,50,28,116,72,17,105,61,0,88,44,22,110,66,11,99,55,33,3],[2,159,29,133,81,16,120,68,42,146,94,91,1,37,141,89,24,128,76,50,154,102,11,115,63,167,83,18,122,70,44,148,96,5,109,57,161,31,135,125,73,47,151,99,8,112,60,164,34,138,86,21,40,144,92,107,105,53,157,27,131,79,14,118,66,103,12,116,64,168,38,142,90,25,129,77,51,155,110,58,162,32,136,84,19,123,71,45,149,97,6,165,35,139,87,22,126,74,48,152,100,9,113,61,132,80,15,119,67,41,145,93,55,106,54,158,28,23,127,75,49,153,101,10,114,62,166,36,140,88,69,43,147,95,4,108,56,160,30,134,82,17,121,150,98,7,111,59,163,33,137,85,20,124,72,46,0,104,52,156,26,130,78,13,117,65,39,143,3],[2,187,37,157,97,217,22,142,82,202,52,172,112,7,1,41,161,101,221,26,146,86,206,56,176,116,11,131,71,191,93,213,18,138,78,198,48,168,108,105,123,63,183,33,153,28,148,88,208,58,178,118,13,133,73,193,43,163,103,223,80,200,50,170,110,5,125,65,185,35,155,95,215,20,140,54,174,114,9,129,69,189,39,159,99,219,24,144,84,204,106,127,121,61,181,31,151,91,211,16,136,76,196,46,166,134,74,194,44,164,104,224,29,149,89,209,59,179,119,14,186,36,156,96,216,21,141,81,201,51,171,111,6,126,66,160,100,220,25,145,85,205,55,175,115,10,130,70,190,40,212,17,137,77,197,47,167,107,67,122,62,182,32,152,92,147,87,207,57,177,117,12,132,72,192,42,162,102,222,27,199,49,169,109,4,124,64,184,34,154,94,214,19,139,79,173,113,8,128,68,188,38,158,98,218,23,143,83,203,53,0,120,60,180,30,150,90,210,15,135,75,195,45,165,3],[2,69,205,35,171,103,239,18,154,86,222,52,188,120,256,273,1,220,50,186,118,254,33,169,101,237,67,203,135,271,16,288,152,84,178,110,246,25,161,93,229,59,195,127,263,8,280,144,76,212,42,250,29,165,97,233,63,199,131,267,12,284,148,80,216,46,182,114,157,89,225,55,191,123,259,4,276,140,72,208,38,174,106,242,21,235,65,201,133,269,14,286,150,82,218,48,184,116,252,31,167,99,193,125,261,6,278,142,74,210,40,176,108,244,23,159,91,227,57,265,10,282,146,78,214,44,180,112,248,27,163,95,231,61,197,129,274,138,70,206,36,172,104,240,19,155,87,223,53,189,121,257,137,83,219,49,185,117,253,32,168,100,236,66,202,134,270,15,287,151,41,177,109,245,24,160,92,228,58,194,126,262,7,279,143,75,211,113,249,28,164,96,232,62,198,130,266,11,283,147,79,215,45,181,20,156,88,224,54,190,122,258,255,275,139,71,207,37,173,105,241,98,234,64,200,132,268,13,285,149,81,217,47,183,115,251,30,166,56,192,124,260,5,277,141,73,209,39,175,107,243,22,158,90,226,128,264,9,281,145,77,213,43,179,111,247,26,162,94,230,60,196,0,272,136,68,204,34,170,102,238,17,153,85,221,51,187,119,3],[2,82,234,44,348,196,120,272,25,329,177,101,253,63,215,139,291,6,1,239,49,353,201,125,277,30,334,182,106,258,68,220,144,296,11,315,163,87,343,191,115,267,20,324,172,96,248,58,210,134,286,310,305,153,77,229,39,132,284,37,341,189,113,265,75,227,151,303,18,322,170,94,246,56,360,208,28,332,180,104,256,66,218,142,294,9,313,161,85,237,47,351,199,123,275,185,109,261,71,223,147,299,14,318,166,90,242,52,356,204,128,280,33,337,251,61,213,137,289,4,308,156,80,232,42,346,194,118,270,23,327,175,99,225,149,301,16,320,168,92,244,54,358,206,130,282,35,339,187,111,263,73,292,7,311,159,83,235,45,349,197,121,273,26,330,178,102,254,64,216,140,316,164,88,240,50,354,202,126,278,31,335,183,107,259,69,221,145,297,12,78,230,40,344,192,116,268,21,325,173,97,249,59,211,135,287,158,306,154,55,359,207,131,283,36,340,188,112,264,74,226,150,302,17,321,169,93,245,198,122,274,27,331,179,103,255,65,217,141,293,8,312,160,84,236,46,350,279,32,336,184,108,260,70,222,146,298,13,317,165,89,241,51,355,203,127,326,174,98,250,60,212,136,288,285,307,155,79,231,41,345,193,117,269,22,110,262,72,224,148,300,15,319,167,91,243,53,357,205,129,281,34,338,186,62,214,138,290,5,309,157,81,233,43,347,195,119,271,24,328,176,100,252,143,295,10,314,162,86,238,48,352,200,124,276,29,333,181,105,257,67,219,0,304,152,76,228,38,342,190,114,266,19,323,171,95,247,57,209,133,3],[2,88,424,256,46,382,214,130,298,25,361,193,109,277,67,403,235,151,319,4,1,437,269,59,395,227,143,311,38,374,206,122,290,80,416,248,164,332,17,353,185,101,49,385,217,133,301,28,364,196,112,280,70,406,238,154,322,7,343,175,91,427,259,222,138,306,33,369,201,117,285,75,411,243,159,327,12,348,180,96,432,264,54,390,295,22,358,190,106,274,64,400,232,148,316,340,337,169,85,421,253,43,379,211,127,377,209,125,293,83,419,251,167,335,20,356,188,104,440,272,62,398,230,146,314,41,115,283,73,409,241,157,325,10,346,178,94,430,262,52,388,220,136,304,31,367,199,78,414,246,162,330,15,351,183,99,435,267,57,393,225,141,309,36,372,204,120,288,236,152,320,5,341,173,89,425,257,47,383,215,131,299,26,362,194,110,278,68,404,333,18,354,186,102,438,270,60,396,228,144,312,39,375,207,123,291,81,417,249,165,344,176,92,428,260,50,386,218,134,302,29,365,197,113,281,71,407,239,155,323,8,97,433,265,55,391,223,139,307,34,370,202,118,286,76,412,244,160,328,13,349,181,254,44,380,212,128,296,23,359,191,107,275,65,401,233,149,317,172,338,170,86,422,397,229,145,313,40,376,208,124,292,82,418,250,166,334,19,355,187,103,439,271,61,135,303,30,366,198,114,282,72,408,240,156,324,9,345,177,93,429,261,51,387,219,35,371,203,119,287,77,413,245,161,329,14,350,182,98,434,266,56,392,224,140,308,192,108,276,66,402,234,150,318,315,339,171,87,423,255,45,381,213,129,297,24,360,289,79,415,247,163,331,16,352,184,100,436,268,58,394,226,142,310,37,373,205,121,405,237,153,321,6,342,174,90,426,258,48,384,216,132,300,27,363,195,111,279,69,158,326,11,347,179,95,431,263,53,389,221,137,305,32,368,200,116,284,74,410,242,0,336,168,84,420,252,42,378,210,126,294,21,357,189,105,273,63,399,231,147,3],[2,102,470,286,56,424,240,148,516,332,33,401,217,125,493,309,79,447,263,171,355,10,1,476,292,62,430,246,154,522,338,39,407,223,131,499,315,85,453,269,177,361,16,384,200,108,50,418,234,142,510,326,27,395,211,119,487,303,73,441,257,165,349,4,372,188,96,464,280,249,157,525,341,42,410,226,134,502,318,88,456,272,180,364,19,387,203,111,479,295,65,433,513,329,30,398,214,122,490,306,76,444,260,168,352,7,375,191,99,467,283,53,421,237,145,36,404,220,128,496,312,82,450,266,174,358,13,381,197,105,473,289,59,427,243,151,519,335,208,116,484,300,70,438,254,162,346,378,369,185,93,461,277,47,415,231,139,507,323,24,392,505,321,91,459,275,183,367,22,390,206,114,482,298,68,436,252,160,528,344,45,413,229,137,80,448,264,172,356,11,379,195,103,471,287,57,425,241,149,517,333,34,402,218,126,494,310,270,178,362,17,385,201,109,477,293,63,431,247,155,523,339,40,408,224,132,500,316,86,454,350,5,373,189,97,465,281,51,419,235,143,511,327,28,396,212,120,488,304,74,442,258,166,388,204,112,480,296,66,434,250,158,526,342,43,411,227,135,503,319,89,457,273,181,365,20,100,468,284,54,422,238,146,514,330,31,399,215,123,491,307,77,445,261,169,353,8,376,192,290,60,428,244,152,520,336,37,405,221,129,497,313,83,451,267,175,359,14,382,198,106,474,416,232,140,508,324,25,393,209,117,485,301,71,439,255,163,347,194,370,186,94,462,278,48,159,527,343,44,412,228,136,504,320,90,458,274,182,366,21,389,205,113,481,297,67,435,251,331,32,400,216,124,492,308,78,446,262,170,354,9,377,193,101,469,285,55,423,239,147,515,406,222,130,498,314,84,452,268,176,360,15,383,199,107,475,291,61,429,245,153,521,337,38,118,486,302,72,440,256,164,348,345,371,187,95,463,279,49,417,233,141,509,325,26,394,210,317,87,455,271,179,363,18,386,202,110,478,294,64,432,248,156,524,340,41,409,225,133,501,443,259,167,351,6,374,190,98,466,282,52,420,236,144,512,328,29,397,213,121,489,305,75,173,357,12,380,196,104,472,288,58,426,242,150,518,334,35,403,219,127,495,311,81,449,265,0,368,184,92,460,276,46,414,230,138,506,322,23,391,207,115,483,299,69,437,253,161,3],[2,603,103,503,303,53,453,253,153,553,353,28,428,228,128,528,328,78,478,278,178,578,378,375,1,123,523,323,73,473,273,173,573,373,48,448,248,148,548,348,98,498,298,198,598,398,23,423,223,623,311,61,461,261,161,561,361,36,436,236,136,536,336,86,486,286,186,586,386,11,411,211,611,111,511,467,267,167,567,367,42,442,242,142,542,342,92,492,292,192,592,392,17,417,217,617,117,517,317,67,155,555,355,30,430,230,130,530,330,80,480,280,180,580,380,5,405,205,605,105,505,305,55,455,255,370,45,445,245,145,545,345,95,495,295,195,595,395,20,420,220,620,120,520,320,70,470,270,170,570,433,233,133,533,333,83,483,283,183,583,383,8,408,208,608,108,508,308,58,458,258,158,558,358,33,139,539,339,89,489,289,189,589,389,14,414,214,614,114,514,314,64,464,264,164,564,364,39,439,239,326,76,476,276,176,576,376,403,401,201,601,101,501,301,51,451,251,151,551,351,26,426,226,126,526,499,299,199,599,399,24,424,224,624,124,524,324,74,474,274,174,574,374,49,449,249,149,549,349,99,187,587,387,12,412,212,612,112,512,312,62,462,262,162,562,362,37,437,237,137,537,337,87,487,287,393,18,418,218,618,118,518,318,68,468,268,168,568,368,43,443,243,143,543,343,93,493,293,193,593,406,206,606,106,506,306,56,456,256,156,556,356,31,431,231,131,531,331,81,481,281,181,581,381,6,621,121,521,321,71,471,271,171,571,371,46,446,246,146,546,346,96,496,296,196,596,396,21,421,221,509,309,59,459,259,159,559,359,34,434,234,134,534,334,84,484,284,184,584,384,9,409,209,609,109,65,465,265,165,565,365,40,440,240,140,540,340,90,490,290,190,590,390,15,415,215,615,115,515,315,252,152,552,352,27,427,227,127,527,327,77,477,277,177,577,377,203,402,202,602,102,502,302,52,452,572,372,47,447,247,147,547,347,97,497,297,197,597,397,22,422,222,622,122,522,322,72,472,272,172,35,435,235,135,535,335,85,485,285,185,585,385,10,410,210,610,110,510,310,60,460,260,160,560,360,241,141,541,341,91,491,291,191,591,391,16,416,216,616,116,516,316,66,466,266,166,566,366,41,441,529,329,79,479,279,179,579,379,4,404,204,604,104,504,304,54,454,254,154,554,354,29,429,229,129,94,494,294,194,594,394,19,419,219,619,119,519,319,69,469,269,169,569,369,44,444,244,144,544,344,282,182,582,382,7,407,207,607,107,507,307,57,457,257,157,557,357,32,432,232,132,532,332,82,482,588,388,13,413,213,613,113,513,313,63,463,263,163,563,363,38,438,238,138,538,338,88,488,288,188,0,400,200,600,100,500,300,50,450,250,150,550,350,25,425,225,125,525,325,75,475,275,175,575,3],[2,658,118,550,334,64,496,280,712,172,604,388,37,469,253,685,145,577,361,91,523,307,199,631,415,10,1,125,557,341,71,503,287,719,179,611,395,44,476,260,692,152,584,368,98,530,314,206,638,422,17,449,233,665,327,57,489,273,705,165,597,381,30,462,246,678,138,570,354,84,516,300,192,624,408,405,435,219,651,111,543,511,295,727,187,619,403,52,484,268,700,160,592,376,106,538,322,214,646,430,25,457,241,673,133,565,349,79,714,174,606,390,39,471,255,687,147,579,363,93,525,309,201,633,417,12,444,228,660,120,552,336,66,498,282,613,397,46,478,262,694,154,586,370,100,532,316,208,640,424,19,451,235,667,127,559,343,73,505,289,721,181,32,464,248,680,140,572,356,86,518,302,194,626,410,5,437,221,653,113,545,329,59,491,275,707,167,599,383,265,697,157,589,373,103,535,319,211,643,427,22,454,238,670,130,562,346,76,508,292,724,184,616,400,49,481,143,575,359,89,521,305,197,629,413,8,440,224,656,116,548,332,62,494,278,710,170,602,386,35,467,251,683,366,96,528,312,204,636,420,15,447,231,663,123,555,339,69,501,285,717,177,609,393,42,474,258,690,150,582,514,298,190,622,406,442,433,217,649,109,541,325,55,487,271,703,163,595,379,28,460,244,676,136,568,352,82,215,647,431,26,458,242,674,134,566,350,80,512,296,728,188,620,404,53,485,269,701,161,593,377,107,539,323,418,13,445,229,661,121,553,337,67,499,283,715,175,607,391,40,472,256,688,148,580,364,94,526,310,202,634,452,236,668,128,560,344,74,506,290,722,182,614,398,47,479,263,695,155,587,371,101,533,317,209,641,425,20,654,114,546,330,60,492,276,708,168,600,384,33,465,249,681,141,573,357,87,519,303,195,627,411,6,438,222,563,347,77,509,293,725,185,617,401,50,482,266,698,158,590,374,104,536,320,212,644,428,23,455,239,671,131,63,495,279,711,171,603,387,36,468,252,684,144,576,360,90,522,306,198,630,414,9,441,225,657,117,549,333,286,718,178,610,394,43,475,259,691,151,583,367,97,529,313,205,637,421,16,448,232,664,124,556,340,70,502,164,596,380,29,461,245,677,137,569,353,83,515,299,191,623,407,226,434,218,650,110,542,326,56,488,272,704,402,51,483,267,699,159,591,375,105,537,321,213,645,429,24,456,240,672,132,564,348,78,510,294,726,186,618,470,254,686,146,578,362,92,524,308,200,632,416,11,443,227,659,119,551,335,65,497,281,713,173,605,389,38,693,153,585,369,99,531,315,207,639,423,18,450,234,666,126,558,342,72,504,288,720,180,612,396,45,477,261,571,355,85,517,301,193,625,409,4,436,220,652,112,544,328,58,490,274,706,166,598,382,31,463,247,679,139,102,534,318,210,642,426,21,453,237,669,129,561,345,75,507,291,723,183,615,399,48,480,264,696,156,588,372,304,196,628,412,7,439,223,655,115,547,331,61,493,277,709,169,601,385,34,466,250,682,142,574,358,88,520,635,419,14,446,230,662,122,554,338,68,500,284,716,176,608,392,41,473,257,689,149,581,365,95,527,311,203,0,432,216,648,108,540,324,54,486,270,702,162,594,378,27,459,243,675,135,567,351,81,513,297,189,621,3],[2,703,123,587,355,819,65,529,297,761,181,645,413,36,500,268,732,152,616,384,94,558,326,790,210,674,442,7,1,141,605,373,837,83,547,315,779,199,663,431,54,518,286,750,170,634,402,112,576,344,808,228,692,460,25,489,257,721,359,823,69,533,301,765,185,649,417,40,504,272,736,156,620,388,98,562,330,794,214,678,446,11,475,243,707,127,591,76,540,308,772,192,656,424,47,511,279,743,163,627,395,105,569,337,801,221,685,453,18,482,250,714,134,598,366,830,293,757,177,641,409,32,496,264,728,148,612,380,90,554,322,786,206,670,438,435,467,235,699,119,583,351,815,61,525,201,665,433,56,520,288,752,172,636,404,114,578,346,810,230,694,462,27,491,259,723,143,607,375,839,85,549,317,781,419,42,506,274,738,158,622,390,100,564,332,796,216,680,448,13,477,245,709,129,593,361,825,71,535,303,767,187,651,513,281,745,165,629,397,107,571,339,803,223,687,455,20,484,252,716,136,600,368,832,78,542,310,774,194,658,426,49,730,150,614,382,92,556,324,788,208,672,440,5,469,237,701,121,585,353,817,63,527,295,759,179,643,411,34,498,266,632,400,110,574,342,806,226,690,458,23,487,255,719,139,603,371,835,81,545,313,777,197,661,429,52,516,284,748,168,96,560,328,792,212,676,444,9,473,241,705,125,589,357,821,67,531,299,763,183,647,415,38,502,270,734,154,618,386,335,799,219,683,451,16,480,248,712,132,596,364,828,74,538,306,770,190,654,422,45,509,277,741,161,625,393,103,567,204,668,436,471,465,233,697,117,581,349,813,59,523,291,755,175,639,407,30,494,262,726,146,610,378,88,552,320,784,463,28,492,260,724,144,608,376,840,86,550,318,782,202,666,434,57,521,289,753,173,637,405,115,579,347,811,231,695,478,246,710,130,594,362,826,72,536,304,768,188,652,420,43,507,275,739,159,623,391,101,565,333,797,217,681,449,14,717,137,601,369,833,79,543,311,775,195,659,427,50,514,282,746,166,630,398,108,572,340,804,224,688,456,21,485,253,586,354,818,64,528,296,760,180,644,412,35,499,267,731,151,615,383,93,557,325,789,209,673,441,6,470,238,702,122,836,82,546,314,778,198,662,430,53,517,285,749,169,633,401,111,575,343,807,227,691,459,24,488,256,720,140,604,372,532,300,764,184,648,416,39,503,271,735,155,619,387,97,561,329,793,213,677,445,10,474,242,706,126,590,358,822,68,771,191,655,423,46,510,278,742,162,626,394,104,568,336,800,220,684,452,17,481,249,713,133,597,365,829,75,539,307,640,408,31,495,263,727,147,611,379,89,553,321,785,205,669,437,239,466,234,698,118,582,350,814,60,524,292,756,176,55,519,287,751,171,635,403,113,577,345,809,229,693,461,26,490,258,722,142,606,374,838,84,548,316,780,200,664,432,273,737,157,621,389,99,563,331,795,215,679,447,12,476,244,708,128,592,360,824,70,534,302,766,186,650,418,41,505,164,628,396,106,570,338,802,222,686,454,19,483,251,715,135,599,367,831,77,541,309,773,193,657,425,48,512,280,744,381,91,555,323,787,207,671,439,4,468,236,700,120,584,352,816,62,526,294,758,178,642,410,33,497,265,729,149,613,573,341,805,225,689,457,22,486,254,718,138,602,370,834,80,544,312,776,196,660,428,51,515,283,747,167,631,399,109,791,211,675,443,8,472,240,704,124,588,356,820,66,530,298,762,182,646,414,37,501,269,733,153,617,385,95,559,327,682,450,15,479,247,711,131,595,363,827,73,537,305,769,189,653,421,44,508,276,740,160,624,392,102,566,334,798,218,0,464,232,696,116,580,348,812,58,522,290,754,174,638,406,29,493,261,725,145,609,377,87,551,319,783,203,667,3],[2,759,139,635,387,883,77,573,325,821,201,697,449,945,46,542,294,790,170,666,418,914,108,604,356,852,232,728,480,15,1,147,643,395,891,85,581,333,829,209,705,457,953,54,550,302,798,178,674,426,922,116,612,364,860,240,736,488,23,519,271,767,379,875,69,565,317,813,193,689,441,937,38,534,286,782,162,658,410,906,100,596,348,844,224,720,472,7,503,255,751,131,627,89,585,337,833,213,709,461,957,58,554,306,802,182,678,430,926,120,616,368,864,244,740,492,27,523,275,771,151,647,399,895,321,817,197,693,445,941,42,538,290,786,166,662,414,910,104,600,352,848,228,724,476,11,507,259,755,135,631,383,879,73,569,205,701,453,949,50,546,298,794,174,670,422,918,112,608,360,856,236,732,484,19,515,267,763,143,639,391,887,81,577,329,825,437,933,34,530,282,778,158,654,406,902,96,592,344,840,220,716,468,465,499,251,747,127,623,375,871,65,561,313,809,189,685,60,556,308,804,184,680,432,928,122,618,370,866,246,742,494,29,525,277,773,153,649,401,897,91,587,339,835,215,711,463,959,292,788,168,664,416,912,106,602,354,850,230,726,478,13,509,261,757,137,633,385,881,75,571,323,819,199,695,447,943,44,540,176,672,424,920,114,610,362,858,238,734,486,21,517,269,765,145,641,393,889,83,579,331,827,207,703,455,951,52,548,300,796,408,904,98,594,346,842,222,718,470,5,501,253,749,129,625,377,873,67,563,315,811,191,687,439,935,36,532,284,780,160,656,118,614,366,862,242,738,490,25,521,273,769,149,645,397,893,87,583,335,831,211,707,459,955,56,552,304,800,180,676,428,924,350,846,226,722,474,9,505,257,753,133,629,381,877,71,567,319,815,195,691,443,939,40,536,288,784,164,660,412,908,102,598,234,730,482,17,513,265,761,141,637,389,885,79,575,327,823,203,699,451,947,48,544,296,792,172,668,420,916,110,606,358,854,466,511,497,249,745,125,621,373,869,63,559,311,807,187,683,435,931,32,528,280,776,156,652,404,900,94,590,342,838,218,714,526,278,774,154,650,402,898,92,588,340,836,216,712,464,960,61,557,309,805,185,681,433,929,123,619,371,867,247,743,495,30,758,138,634,386,882,76,572,324,820,200,696,448,944,45,541,293,789,169,665,417,913,107,603,355,851,231,727,479,14,510,262,642,394,890,84,580,332,828,208,704,456,952,53,549,301,797,177,673,425,921,115,611,363,859,239,735,487,22,518,270,766,146,874,68,564,316,812,192,688,440,936,37,533,285,781,161,657,409,905,99,595,347,843,223,719,471,6,502,254,750,130,626,378,584,336,832,212,708,460,956,57,553,305,801,181,677,429,925,119,615,367,863,243,739,491,26,522,274,770,150,646,398,894,88,816,196,692,444,940,41,537,289,785,165,661,413,909,103,599,351,847,227,723,475,10,506,258,754,134,630,382,878,72,568,320,700,452,948,49,545,297,793,173,669,421,917,111,607,359,855,235,731,483,18,514,266,762,142,638,390,886,80,576,328,824,204,932,33,529,281,777,157,653,405,901,95,591,343,839,219,715,467,263,498,250,746,126,622,374,870,64,560,312,808,188,684,436,555,307,803,183,679,431,927,121,617,369,865,245,741,493,28,524,276,772,152,648,400,896,90,586,338,834,214,710,462,958,59,787,167,663,415,911,105,601,353,849,229,725,477,12,508,260,756,136,632,384,880,74,570,322,818,198,694,446,942,43,539,291,671,423,919,113,609,361,857,237,733,485,20,516,268,764,144,640,392,888,82,578,330,826,206,702,454,950,51,547,299,795,175,903,97,593,345,841,221,717,469,4,500,252,748,128,624,376,872,66,562,314,810,190,686,438,934,35,531,283,779,159,655,407,613,365,861,241,737,489,24,520,272,768,148,644,396,892,86,582,334,830,210,706,458,954,55,551,303,799,179,675,427,923,117,845,225,721,473,8,504,256,752,132,628,380,876,70,566,318,814,194,690,442,938,39,535,287,783,163,659,411,907,101,597,349,729,481,16,512,264,760,140,636,388,884,78,574,326,822,202,698,450,946,47,543,295,791,171,667,419,915,109,605,357,853,233,0,496,248,744,124,620,372,868,62,558,310,806,186,682,434,930,31,527,279,775,155,651,403,899,93,589,341,837,217,713,3],[2,265,793,133,661,397,925,67,595,331,859,199,727,463,991,34,562,298,826,166,694,430,958,100,628,364,892,232,760,496,1024,1057,1,824,164,692,428,956,98,626,362,890,230,758,494,1022,65,593,329,857,197,725,461,989,131,659,395,923,263,791,527,1055,32,1088,560,296,676,412,940,82,610,346,874,214,742,478,1006,49,577,313,841,181,709,445,973,115,643,379,907,247,775,511,1039,16,1072,544,280,808,148,948,90,618,354,882,222,750,486,1014,57,585,321,849,189,717,453,981,123,651,387,915,255,783,519,1047,24,1080,552,288,816,156,684,420,602,338,866,206,734,470,998,41,569,305,833,173,701,437,965,107,635,371,899,239,767,503,1031,8,1064,536,272,800,140,668,404,932,74,886,226,754,490,1018,61,589,325,853,193,721,457,985,127,655,391,919,259,787,523,1051,28,1084,556,292,820,160,688,424,952,94,622,358,738,474,1002,45,573,309,837,177,705,441,969,111,639,375,903,243,771,507,1035,12,1068,540,276,804,144,672,408,936,78,606,342,870,210,1010,53,581,317,845,185,713,449,977,119,647,383,911,251,779,515,1043,20,1076,548,284,812,152,680,416,944,86,614,350,878,218,746,482,565,301,829,169,697,433,961,103,631,367,895,235,763,499,1027,4,1060,532,268,796,136,664,400,928,70,598,334,862,202,730,466,994,37,855,195,723,459,987,129,657,393,921,261,789,525,1053,30,1086,558,294,822,162,690,426,954,96,624,360,888,228,756,492,1020,63,591,327,707,443,971,113,641,377,905,245,773,509,1037,14,1070,542,278,806,146,674,410,938,80,608,344,872,212,740,476,1004,47,575,311,839,179,979,121,649,385,913,253,781,517,1045,22,1078,550,286,814,154,682,418,946,88,616,352,880,220,748,484,1012,55,583,319,847,187,715,451,633,369,897,237,765,501,1029,6,1062,534,270,798,138,666,402,930,72,600,336,864,204,732,468,996,39,567,303,831,171,699,435,963,105,917,257,785,521,1049,26,1082,554,290,818,158,686,422,950,92,620,356,884,224,752,488,1016,59,587,323,851,191,719,455,983,125,653,389,769,505,1033,10,1066,538,274,802,142,670,406,934,76,604,340,868,208,736,472,1e3,43,571,307,835,175,703,439,967,109,637,373,901,241,1041,18,1074,546,282,810,150,678,414,942,84,612,348,876,216,744,480,1008,51,579,315,843,183,711,447,975,117,645,381,909,249,777,513,1058,530,266,794,134,662,398,926,68,596,332,860,200,728,464,992,35,563,299,827,167,695,431,959,101,629,365,893,233,761,497,1025,529,295,823,163,691,427,955,97,625,361,889,229,757,493,1021,64,592,328,856,196,724,460,988,130,658,394,922,262,790,526,1054,31,1087,559,147,675,411,939,81,609,345,873,213,741,477,1005,48,576,312,840,180,708,444,972,114,642,378,906,246,774,510,1038,15,1071,543,279,807,419,947,89,617,353,881,221,749,485,1013,56,584,320,848,188,716,452,980,122,650,386,914,254,782,518,1046,23,1079,551,287,815,155,683,73,601,337,865,205,733,469,997,40,568,304,832,172,700,436,964,106,634,370,898,238,766,502,1030,7,1063,535,271,799,139,667,403,931,357,885,225,753,489,1017,60,588,324,852,192,720,456,984,126,654,390,918,258,786,522,1050,27,1083,555,291,819,159,687,423,951,93,621,209,737,473,1001,44,572,308,836,176,704,440,968,110,638,374,902,242,770,506,1034,11,1067,539,275,803,143,671,407,935,77,605,341,869,481,1009,52,580,316,844,184,712,448,976,118,646,382,910,250,778,514,1042,19,1075,547,283,811,151,679,415,943,85,613,349,877,217,745,36,564,300,828,168,696,432,960,102,630,366,894,234,762,498,1026,1023,1059,531,267,795,135,663,399,927,69,597,333,861,201,729,465,993,326,854,194,722,458,986,128,656,392,920,260,788,524,1052,29,1085,557,293,821,161,689,425,953,95,623,359,887,227,755,491,1019,62,590,178,706,442,970,112,640,376,904,244,772,508,1036,13,1069,541,277,805,145,673,409,937,79,607,343,871,211,739,475,1003,46,574,310,838,450,978,120,648,384,912,252,780,516,1044,21,1077,549,285,813,153,681,417,945,87,615,351,879,219,747,483,1011,54,582,318,846,186,714,104,632,368,896,236,764,500,1028,5,1061,533,269,797,137,665,401,929,71,599,335,863,203,731,467,995,38,566,302,830,170,698,434,962,388,916,256,784,520,1048,25,1081,553,289,817,157,685,421,949,91,619,355,883,223,751,487,1015,58,586,322,850,190,718,454,982,124,652,240,768,504,1032,9,1065,537,273,801,141,669,405,933,75,603,339,867,207,735,471,999,42,570,306,834,174,702,438,966,108,636,372,900,512,1040,17,1073,545,281,809,149,677,413,941,83,611,347,875,215,743,479,1007,50,578,314,842,182,710,446,974,116,644,380,908,248,776,0,1056,528,264,792,132,660,396,924,66,594,330,858,198,726,462,990,33,561,297,825,165,693,429,957,99,627,363,891,231,759,495,3],[2,290,850,150,710,430,990,80,1200,640,360,920,220,780,500,1060,45,1165,605,325,885,185,745,465,1025,115,675,395,955,255,815,535,1095,10,1,859,159,719,439,999,89,1209,649,369,929,229,789,509,1069,54,1174,614,334,894,194,754,474,1034,124,684,404,964,264,824,544,1104,19,1139,579,299,701,421,981,71,1191,631,351,911,211,771,491,1051,36,1156,596,316,876,176,736,456,1016,106,666,386,946,246,806,526,1086,1130,1121,561,281,841,141,1014,104,1224,664,384,944,244,804,524,1084,69,1189,629,349,909,209,769,489,1049,139,699,419,979,279,839,559,1119,34,1154,594,314,874,174,734,454,1207,647,367,927,227,787,507,1067,52,1172,612,332,892,192,752,472,1032,122,682,402,962,262,822,542,1102,17,1137,577,297,857,157,717,437,997,87,376,936,236,796,516,1076,61,1181,621,341,901,201,761,481,1041,131,691,411,971,271,831,551,1111,26,1146,586,306,866,166,726,446,1006,96,1216,656,218,778,498,1058,43,1163,603,323,883,183,743,463,1023,113,673,393,953,253,813,533,1093,8,1128,568,288,848,148,708,428,988,78,1198,638,358,918,520,1080,65,1185,625,345,905,205,765,485,1045,135,695,415,975,275,835,555,1115,30,1150,590,310,870,170,730,450,1010,100,1220,660,380,940,240,800,48,1168,608,328,888,188,748,468,1028,118,678,398,958,258,818,538,1098,13,1133,573,293,853,153,713,433,993,83,1203,643,363,923,223,783,503,1063,617,337,897,197,757,477,1037,127,687,407,967,267,827,547,1107,22,1142,582,302,862,162,722,442,1002,92,1212,652,372,932,232,792,512,1072,57,1177,879,179,739,459,1019,109,669,389,949,249,809,529,1089,4,1124,564,284,844,144,704,424,984,74,1194,634,354,914,214,774,494,1054,39,1159,599,319,767,487,1047,137,697,417,977,277,837,557,1117,32,1152,592,312,872,172,732,452,1012,102,1222,662,382,942,242,802,522,1082,67,1187,627,347,907,207,1030,120,680,400,960,260,820,540,1100,15,1135,575,295,855,155,715,435,995,85,1205,645,365,925,225,785,505,1065,50,1170,610,330,890,190,750,470,689,409,969,269,829,549,1109,24,1144,584,304,864,164,724,444,1004,94,1214,654,374,934,234,794,514,1074,59,1179,619,339,899,199,759,479,1039,129,951,251,811,531,1091,6,1126,566,286,846,146,706,426,986,76,1196,636,356,916,216,776,496,1056,41,1161,601,321,881,181,741,461,1021,111,671,391,833,553,1113,28,1148,588,308,868,168,728,448,1008,98,1218,658,378,938,238,798,518,1078,63,1183,623,343,903,203,763,483,1043,133,693,413,973,273,1096,11,1131,571,291,851,151,711,431,991,81,1201,641,361,921,221,781,501,1061,46,1166,606,326,886,186,746,466,1026,116,676,396,956,256,816,536,1140,580,300,860,160,720,440,1e3,90,1210,650,370,930,230,790,510,1070,55,1175,615,335,895,195,755,475,1035,125,685,405,965,265,825,545,1105,20,282,842,142,702,422,982,72,1192,632,352,912,212,772,492,1052,37,1157,597,317,877,177,737,457,1017,107,667,387,947,247,807,527,1087,570,1122,562,173,733,453,1013,103,1223,663,383,943,243,803,523,1083,68,1188,628,348,908,208,768,488,1048,138,698,418,978,278,838,558,1118,33,1153,593,313,873,436,996,86,1206,646,366,926,226,786,506,1066,51,1171,611,331,891,191,751,471,1031,121,681,401,961,261,821,541,1101,16,1136,576,296,856,156,716,95,1215,655,375,935,235,795,515,1075,60,1180,620,340,900,200,760,480,1040,130,690,410,970,270,830,550,1110,25,1145,585,305,865,165,725,445,1005,637,357,917,217,777,497,1057,42,1162,602,322,882,182,742,462,1022,112,672,392,952,252,812,532,1092,7,1127,567,287,847,147,707,427,987,77,1197,939,239,799,519,1079,64,1184,624,344,904,204,764,484,1044,134,694,414,974,274,834,554,1114,29,1149,589,309,869,169,729,449,1009,99,1219,659,379,782,502,1062,47,1167,607,327,887,187,747,467,1027,117,677,397,957,257,817,537,1097,12,1132,572,292,852,152,712,432,992,82,1202,642,362,922,222,1071,56,1176,616,336,896,196,756,476,1036,126,686,406,966,266,826,546,1106,21,1141,581,301,861,161,721,441,1001,91,1211,651,371,931,231,791,511,1158,598,318,878,178,738,458,1018,108,668,388,948,248,808,528,1088,1085,1123,563,283,843,143,703,423,983,73,1193,633,353,913,213,773,493,1053,38,346,906,206,766,486,1046,136,696,416,976,276,836,556,1116,31,1151,591,311,871,171,731,451,1011,101,1221,661,381,941,241,801,521,1081,66,1186,626,189,749,469,1029,119,679,399,959,259,819,539,1099,14,1134,574,294,854,154,714,434,994,84,1204,644,364,924,224,784,504,1064,49,1169,609,329,889,478,1038,128,688,408,968,268,828,548,1108,23,1143,583,303,863,163,723,443,1003,93,1213,653,373,933,233,793,513,1073,58,1178,618,338,898,198,758,110,670,390,950,250,810,530,1090,5,1125,565,285,845,145,705,425,985,75,1195,635,355,915,215,775,495,1055,40,1160,600,320,880,180,740,460,1020,412,972,272,832,552,1112,27,1147,587,307,867,167,727,447,1007,97,1217,657,377,937,237,797,517,1077,62,1182,622,342,902,202,762,482,1042,132,692,254,814,534,1094,9,1129,569,289,849,149,709,429,989,79,1199,639,359,919,219,779,499,1059,44,1164,604,324,884,184,744,464,1024,114,674,394,954,543,1103,18,1138,578,298,858,158,718,438,998,88,1208,648,368,928,228,788,508,1068,53,1173,613,333,893,193,753,473,1033,123,683,403,963,263,823,0,1120,560,280,840,140,700,420,980,70,1190,630,350,910,210,770,490,1050,35,1155,595,315,875,175,735,455,1015,105,665,385,945,245,805,525,3],[2,302,894,154,1338,746,450,1042,80,1264,672,376,968,228,820,524,1116,43,1227,635,339,931,191,783,487,1079,117,1301,709,413,1005,265,857,561,1153,6,1,917,177,1361,769,473,1065,103,1287,695,399,991,251,843,547,1139,66,1250,658,362,954,214,806,510,1102,140,1324,732,436,1028,288,880,584,1176,29,1213,621,325,1343,751,455,1047,85,1269,677,381,973,233,825,529,1121,48,1232,640,344,936,196,788,492,1084,122,1306,714,418,1010,270,862,566,1158,11,1195,603,307,899,159,464,1056,94,1278,686,390,982,242,834,538,1130,57,1241,649,353,945,205,797,501,1093,131,1315,723,427,1019,279,871,575,1167,20,1204,612,316,908,168,1352,760,75,1259,667,371,963,223,815,519,1111,38,1222,630,334,926,186,778,482,1074,112,1296,704,408,1e3,260,852,556,1148,1190,1185,593,297,889,149,1333,741,445,1037,702,406,998,258,850,554,1146,73,1257,665,369,961,221,813,517,1109,147,1331,739,443,1035,295,887,591,1183,36,1220,628,332,924,184,1368,776,480,1072,110,1294,980,240,832,536,1128,55,1239,647,351,943,203,795,499,1091,129,1313,721,425,1017,277,869,573,1165,18,1202,610,314,906,166,1350,758,462,1054,92,1276,684,388,841,545,1137,64,1248,656,360,952,212,804,508,1100,138,1322,730,434,1026,286,878,582,1174,27,1211,619,323,915,175,1359,767,471,1063,101,1285,693,397,989,249,1119,46,1230,638,342,934,194,786,490,1082,120,1304,712,416,1008,268,860,564,1156,9,1193,601,305,897,157,1341,749,453,1045,83,1267,675,379,971,231,823,527,1253,661,365,957,217,809,513,1105,143,1327,735,439,1031,291,883,587,1179,32,1216,624,328,920,180,1364,772,476,1068,106,1290,698,402,994,254,846,550,1142,69,347,939,199,791,495,1087,125,1309,717,421,1013,273,865,569,1161,14,1198,606,310,902,162,1346,754,458,1050,88,1272,680,384,976,236,828,532,1124,51,1235,643,208,800,504,1096,134,1318,726,430,1022,282,874,578,1170,23,1207,615,319,911,171,1355,763,467,1059,97,1281,689,393,985,245,837,541,1133,60,1244,652,356,948,485,1077,115,1299,707,411,1003,263,855,559,1151,4,1188,596,300,892,152,1336,744,448,1040,78,1262,670,374,966,226,818,522,1114,41,1225,633,337,929,189,781,145,1329,737,441,1033,293,885,589,1181,34,1218,626,330,922,182,1366,774,478,1070,108,1292,700,404,996,256,848,552,1144,71,1255,663,367,959,219,811,515,1107,719,423,1015,275,867,571,1163,16,1200,608,312,904,164,1348,756,460,1052,90,1274,682,386,978,238,830,534,1126,53,1237,645,349,941,201,793,497,1089,127,1311,1024,284,876,580,1172,25,1209,617,321,913,173,1357,765,469,1061,99,1283,691,395,987,247,839,543,1135,62,1246,654,358,950,210,802,506,1098,136,1320,728,432,858,562,1154,7,1191,599,303,895,155,1339,747,451,1043,81,1265,673,377,969,229,821,525,1117,44,1228,636,340,932,192,784,488,1080,118,1302,710,414,1006,266,1177,30,1214,622,326,918,178,1362,770,474,1066,104,1288,696,400,992,252,844,548,1140,67,1251,659,363,955,215,807,511,1103,141,1325,733,437,1029,289,881,585,1196,604,308,900,160,1344,752,456,1048,86,1270,678,382,974,234,826,530,1122,49,1233,641,345,937,197,789,493,1085,123,1307,715,419,1011,271,863,567,1159,12,317,909,169,1353,761,465,1057,95,1279,687,391,983,243,835,539,1131,58,1242,650,354,946,206,798,502,1094,132,1316,724,428,1020,280,872,576,1168,21,1205,613,150,1334,742,446,1038,76,1260,668,372,964,224,816,520,1112,39,1223,631,335,927,187,779,483,1075,113,1297,705,409,1001,261,853,557,1149,598,1186,594,298,890,775,479,1071,109,1293,701,405,997,257,849,553,1145,72,1256,664,368,960,220,812,516,1108,146,1330,738,442,1034,294,886,590,1182,35,1219,627,331,923,183,1367,1053,91,1275,683,387,979,239,831,535,1127,54,1238,646,350,942,202,794,498,1090,128,1312,720,424,1016,276,868,572,1164,17,1201,609,313,905,165,1349,757,461,1284,692,396,988,248,840,544,1136,63,1247,655,359,951,211,803,507,1099,137,1321,729,433,1025,285,877,581,1173,26,1210,618,322,914,174,1358,766,470,1062,100,378,970,230,822,526,1118,45,1229,637,341,933,193,785,489,1081,119,1303,711,415,1007,267,859,563,1155,8,1192,600,304,896,156,1340,748,452,1044,82,1266,674,253,845,549,1141,68,1252,660,364,956,216,808,512,1104,142,1326,734,438,1030,290,882,586,1178,31,1215,623,327,919,179,1363,771,475,1067,105,1289,697,401,993,531,1123,50,1234,642,346,938,198,790,494,1086,124,1308,716,420,1012,272,864,568,1160,13,1197,605,309,901,161,1345,753,457,1049,87,1271,679,383,975,235,827,59,1243,651,355,947,207,799,503,1095,133,1317,725,429,1021,281,873,577,1169,22,1206,614,318,910,170,1354,762,466,1058,96,1280,688,392,984,244,836,540,1132,632,336,928,188,780,484,1076,114,1298,706,410,1002,262,854,558,1150,1147,1187,595,299,891,151,1335,743,447,1039,77,1261,669,373,965,225,817,521,1113,40,1224,958,218,810,514,1106,144,1328,736,440,1032,292,884,588,1180,33,1217,625,329,921,181,1365,773,477,1069,107,1291,699,403,995,255,847,551,1143,70,1254,662,366,792,496,1088,126,1310,718,422,1014,274,866,570,1162,15,1199,607,311,903,163,1347,755,459,1051,89,1273,681,385,977,237,829,533,1125,52,1236,644,348,940,200,1097,135,1319,727,431,1023,283,875,579,1171,24,1208,616,320,912,172,1356,764,468,1060,98,1282,690,394,986,246,838,542,1134,61,1245,653,357,949,209,801,505,1300,708,412,1004,264,856,560,1152,5,1189,597,301,893,153,1337,745,449,1041,79,1263,671,375,967,227,819,523,1115,42,1226,634,338,930,190,782,486,1078,116,435,1027,287,879,583,1175,28,1212,620,324,916,176,1360,768,472,1064,102,1286,694,398,990,250,842,546,1138,65,1249,657,361,953,213,805,509,1101,139,1323,731,269,861,565,1157,10,1194,602,306,898,158,1342,750,454,1046,84,1268,676,380,972,232,824,528,1120,47,1231,639,343,935,195,787,491,1083,121,1305,713,417,1009,574,1166,19,1203,611,315,907,167,1351,759,463,1055,93,1277,685,389,981,241,833,537,1129,56,1240,648,352,944,204,796,500,1092,130,1314,722,426,1018,278,870,0,1184,592,296,888,148,1332,740,444,1036,74,1258,666,370,962,222,814,518,1110,37,1221,629,333,925,185,777,481,1073,111,1295,703,407,999,259,851,555,3],[2,328,952,172,1420,796,484,1108,94,1342,718,406,1030,250,1498,874,562,1186,55,1303,679,367,991,211,1459,835,523,1147,133,1381,757,445,1069,289,913,601,1225,16,1,962,182,1430,806,494,1118,104,1352,728,416,1040,260,1508,884,572,1196,65,1313,689,377,1001,221,1469,845,533,1157,143,1391,767,455,1079,299,923,611,1235,26,1274,650,338,1410,786,474,1098,84,1332,708,396,1020,240,1488,864,552,1176,45,1293,669,357,981,201,1449,825,513,1137,123,1371,747,435,1059,279,903,591,1215,6,1254,630,318,942,162,499,1123,109,1357,733,421,1045,265,1513,889,577,1201,70,1318,694,382,1006,226,1474,850,538,1162,148,1396,772,460,1084,304,928,616,1240,31,1279,655,343,967,187,1435,811,89,1337,713,401,1025,245,1493,869,557,1181,50,1298,674,362,986,206,1454,830,518,1142,128,1376,752,440,1064,284,908,596,1220,11,1259,635,323,947,167,1415,791,479,1103,723,411,1035,255,1503,879,567,1191,60,1308,684,372,996,216,1464,840,528,1152,138,1386,762,450,1074,294,918,606,1230,21,1269,645,333,957,177,1425,801,489,1113,99,1347,1015,235,1483,859,547,1171,40,1288,664,352,976,196,1444,820,508,1132,118,1366,742,430,1054,274,898,586,1210,1264,1249,625,313,937,157,1405,781,469,1093,79,1327,703,391,1520,896,584,1208,77,1325,701,389,1013,233,1481,857,545,1169,155,1403,779,467,1091,311,935,623,1247,38,1286,662,350,974,194,1442,818,506,1130,116,1364,740,428,1052,272,565,1189,58,1306,682,370,994,214,1462,838,526,1150,136,1384,760,448,1072,292,916,604,1228,19,1267,643,331,955,175,1423,799,487,1111,97,1345,721,409,1033,253,1501,877,68,1316,692,380,1004,224,1472,848,536,1160,146,1394,770,458,1082,302,926,614,1238,29,1277,653,341,965,185,1433,809,497,1121,107,1355,731,419,1043,263,1511,887,575,1199,672,360,984,204,1452,828,516,1140,126,1374,750,438,1062,282,906,594,1218,9,1257,633,321,945,165,1413,789,477,1101,87,1335,711,399,1023,243,1491,867,555,1179,48,1296,1009,229,1477,853,541,1165,151,1399,775,463,1087,307,931,619,1243,34,1282,658,346,970,190,1438,814,502,1126,112,1360,736,424,1048,268,1516,892,580,1204,73,1321,697,385,1457,833,521,1145,131,1379,755,443,1067,287,911,599,1223,14,1262,638,326,950,170,1418,794,482,1106,92,1340,716,404,1028,248,1496,872,560,1184,53,1301,677,365,989,209,531,1155,141,1389,765,453,1077,297,921,609,1233,24,1272,648,336,960,180,1428,804,492,1116,102,1350,726,414,1038,258,1506,882,570,1194,63,1311,687,375,999,219,1467,843,121,1369,745,433,1057,277,901,589,1213,4,1252,628,316,940,160,1408,784,472,1096,82,1330,706,394,1018,238,1486,862,550,1174,43,1291,667,355,979,199,1447,823,511,1135,777,465,1089,309,933,621,1245,36,1284,660,348,972,192,1440,816,504,1128,114,1362,738,426,1050,270,1518,894,582,1206,75,1323,699,387,1011,231,1479,855,543,1167,153,1401,1070,290,914,602,1226,17,1265,641,329,953,173,1421,797,485,1109,95,1343,719,407,1031,251,1499,875,563,1187,56,1304,680,368,992,212,1460,836,524,1148,134,1382,758,446,924,612,1236,27,1275,651,339,963,183,1431,807,495,1119,105,1353,729,417,1041,261,1509,885,573,1197,66,1314,690,378,1002,222,1470,846,534,1158,144,1392,768,456,1080,300,1216,7,1255,631,319,943,163,1411,787,475,1099,85,1333,709,397,1021,241,1489,865,553,1177,46,1294,670,358,982,202,1450,826,514,1138,124,1372,748,436,1060,280,904,592,1280,656,344,968,188,1436,812,500,1124,110,1358,734,422,1046,266,1514,890,578,1202,71,1319,695,383,1007,227,1475,851,539,1163,149,1397,773,461,1085,305,929,617,1241,32,324,948,168,1416,792,480,1104,90,1338,714,402,1026,246,1494,870,558,1182,51,1299,675,363,987,207,1455,831,519,1143,129,1377,753,441,1065,285,909,597,1221,12,1260,636,178,1426,802,490,1114,100,1348,724,412,1036,256,1504,880,568,1192,61,1309,685,373,997,217,1465,841,529,1153,139,1387,763,451,1075,295,919,607,1231,22,1270,646,334,958,782,470,1094,80,1328,704,392,1016,236,1484,860,548,1172,41,1289,665,353,977,197,1445,821,509,1133,119,1367,743,431,1055,275,899,587,1211,640,1250,626,314,938,158,1406,1129,115,1363,739,427,1051,271,1519,895,583,1207,76,1324,700,388,1012,232,1480,856,544,1168,154,1402,778,466,1090,310,934,622,1246,37,1285,661,349,973,193,1441,817,505,1344,720,408,1032,252,1500,876,564,1188,57,1305,681,369,993,213,1461,837,525,1149,135,1383,759,447,1071,291,915,603,1227,18,1266,642,330,954,174,1422,798,486,1110,96,418,1042,262,1510,886,574,1198,67,1315,691,379,1003,223,1471,847,535,1159,145,1393,769,457,1081,301,925,613,1237,28,1276,652,340,964,184,1432,808,496,1120,106,1354,730,242,1490,866,554,1178,47,1295,671,359,983,203,1451,827,515,1139,125,1373,749,437,1061,281,905,593,1217,8,1256,632,320,944,164,1412,788,476,1100,86,1334,710,398,1022,891,579,1203,72,1320,696,384,1008,228,1476,852,540,1164,150,1398,774,462,1086,306,930,618,1242,33,1281,657,345,969,189,1437,813,501,1125,111,1359,735,423,1047,267,1515,1183,52,1300,676,364,988,208,1456,832,520,1144,130,1378,754,442,1066,286,910,598,1222,13,1261,637,325,949,169,1417,793,481,1105,91,1339,715,403,1027,247,1495,871,559,1310,686,374,998,218,1466,842,530,1154,140,1388,764,452,1076,296,920,608,1232,23,1271,647,335,959,179,1427,803,491,1115,101,1349,725,413,1037,257,1505,881,569,1193,62,354,978,198,1446,822,510,1134,120,1368,744,432,1056,276,900,588,1212,1209,1251,627,315,939,159,1407,783,471,1095,81,1329,705,393,1017,237,1485,861,549,1173,42,1290,666,230,1478,854,542,1166,152,1400,776,464,1088,308,932,620,1244,35,1283,659,347,971,191,1439,815,503,1127,113,1361,737,425,1049,269,1517,893,581,1205,74,1322,698,386,1010,834,522,1146,132,1380,756,444,1068,288,912,600,1224,15,1263,639,327,951,171,1419,795,483,1107,93,1341,717,405,1029,249,1497,873,561,1185,54,1302,678,366,990,210,1458,1156,142,1390,766,454,1078,298,922,610,1234,25,1273,649,337,961,181,1429,805,493,1117,103,1351,727,415,1039,259,1507,883,571,1195,64,1312,688,376,1e3,220,1468,844,532,1370,746,434,1058,278,902,590,1214,5,1253,629,317,941,161,1409,785,473,1097,83,1331,707,395,1019,239,1487,863,551,1175,44,1292,668,356,980,200,1448,824,512,1136,122,459,1083,303,927,615,1239,30,1278,654,342,966,186,1434,810,498,1122,108,1356,732,420,1044,264,1512,888,576,1200,69,1317,693,381,1005,225,1473,849,537,1161,147,1395,771,283,907,595,1219,10,1258,634,322,946,166,1414,790,478,1102,88,1336,712,400,1024,244,1492,868,556,1180,49,1297,673,361,985,205,1453,829,517,1141,127,1375,751,439,1063,605,1229,20,1268,644,332,956,176,1424,800,488,1112,98,1346,722,410,1034,254,1502,878,566,1190,59,1307,683,371,995,215,1463,839,527,1151,137,1385,761,449,1073,293,917,0,1248,624,312,936,156,1404,780,468,1092,78,1326,702,390,1014,234,1482,858,546,1170,39,1287,663,351,975,195,1443,819,507,1131,117,1365,741,429,1053,273,897,585,3],[2,332,1644,988,168,1480,824,496,1152,86,1398,742,414,1070,250,1562,906,578,1234,45,1357,701,373,1029,209,1521,865,537,1193,127,1439,783,455,1111,291,1603,947,619,1275,4,1,1677,1021,201,1513,857,529,1185,119,1431,775,447,1103,283,1595,939,611,1267,78,1390,734,406,1062,242,1554,898,570,1226,160,1472,816,488,1144,324,1636,980,652,1308,37,1349,693,365,181,1493,837,509,1165,99,1411,755,427,1083,263,1575,919,591,1247,58,1370,714,386,1042,222,1534,878,550,1206,140,1452,796,468,1124,304,1616,960,632,1288,17,1329,673,345,1657,1001,847,519,1175,109,1421,765,437,1093,273,1585,929,601,1257,68,1380,724,396,1052,232,1544,888,560,1216,150,1462,806,478,1134,314,1626,970,642,1298,27,1339,683,355,1667,1011,191,1503,1155,89,1401,745,417,1073,253,1565,909,581,1237,48,1360,704,376,1032,212,1524,868,540,1196,130,1442,786,458,1114,294,1606,950,622,1278,7,1319,663,335,1647,991,171,1483,827,499,1426,770,442,1098,278,1590,934,606,1262,73,1385,729,401,1057,237,1549,893,565,1221,155,1467,811,483,1139,319,1631,975,647,1303,32,1344,688,360,1672,1016,196,1508,852,524,1180,114,422,1078,258,1570,914,586,1242,53,1365,709,381,1037,217,1529,873,545,1201,135,1447,791,463,1119,299,1611,955,627,1283,12,1324,668,340,1652,996,176,1488,832,504,1160,94,1406,750,268,1580,924,596,1252,63,1375,719,391,1047,227,1539,883,555,1211,145,1457,801,473,1129,309,1621,965,637,1293,22,1334,678,350,1662,1006,186,1498,842,514,1170,104,1416,760,432,1088,903,575,1231,42,1354,698,370,1026,206,1518,862,534,1190,124,1436,780,452,1108,288,1600,944,616,1272,1316,1313,657,329,1641,985,165,1477,821,493,1149,83,1395,739,411,1067,247,1559,1270,81,1393,737,409,1065,245,1557,901,573,1229,163,1475,819,491,1147,327,1639,983,655,1311,40,1352,696,368,1680,1024,204,1516,860,532,1188,122,1434,778,450,1106,286,1598,942,614,1373,717,389,1045,225,1537,881,553,1209,143,1455,799,471,1127,307,1619,963,635,1291,20,1332,676,348,1660,1004,184,1496,840,512,1168,102,1414,758,430,1086,266,1578,922,594,1250,61,399,1055,235,1547,891,563,1219,153,1465,809,481,1137,317,1629,973,645,1301,30,1342,686,358,1670,1014,194,1506,850,522,1178,112,1424,768,440,1096,276,1588,932,604,1260,71,1383,727,215,1527,871,543,1199,133,1445,789,461,1117,297,1609,953,625,1281,10,1322,666,338,1650,994,174,1486,830,502,1158,92,1404,748,420,1076,256,1568,912,584,1240,51,1363,707,379,1035,896,568,1224,158,1470,814,486,1142,322,1634,978,650,1306,35,1347,691,363,1675,1019,199,1511,855,527,1183,117,1429,773,445,1101,281,1593,937,609,1265,76,1388,732,404,1060,240,1552,1204,138,1450,794,466,1122,302,1614,958,630,1286,15,1327,671,343,1655,999,179,1491,835,507,1163,97,1409,753,425,1081,261,1573,917,589,1245,56,1368,712,384,1040,220,1532,876,548,1460,804,476,1132,312,1624,968,640,1296,25,1337,681,353,1665,1009,189,1501,845,517,1173,107,1419,763,435,1091,271,1583,927,599,1255,66,1378,722,394,1050,230,1542,886,558,1214,148,456,1112,292,1604,948,620,1276,5,1317,661,333,1645,989,169,1481,825,497,1153,87,1399,743,415,1071,251,1563,907,579,1235,46,1358,702,374,1030,210,1522,866,538,1194,128,1440,784,325,1637,981,653,1309,38,1350,694,366,1678,1022,202,1514,858,530,1186,120,1432,776,448,1104,284,1596,940,612,1268,79,1391,735,407,1063,243,1555,899,571,1227,161,1473,817,489,1145,961,633,1289,18,1330,674,346,1658,1002,182,1494,838,510,1166,100,1412,756,428,1084,264,1576,920,592,1248,59,1371,715,387,1043,223,1535,879,551,1207,141,1453,797,469,1125,305,1617,1299,28,1340,684,356,1668,1012,192,1504,848,520,1176,110,1422,766,438,1094,274,1586,930,602,1258,69,1381,725,397,1053,233,1545,889,561,1217,151,1463,807,479,1135,315,1627,971,643,1320,664,336,1648,992,172,1484,828,500,1156,90,1402,746,418,1074,254,1566,910,582,1238,49,1361,705,377,1033,213,1525,869,541,1197,131,1443,787,459,1115,295,1607,951,623,1279,8,361,1673,1017,197,1509,853,525,1181,115,1427,771,443,1099,279,1591,935,607,1263,74,1386,730,402,1058,238,1550,894,566,1222,156,1468,812,484,1140,320,1632,976,648,1304,33,1345,689,997,177,1489,833,505,1161,95,1407,751,423,1079,259,1571,915,587,1243,54,1366,710,382,1038,218,1530,874,546,1202,136,1448,792,464,1120,300,1612,956,628,1284,13,1325,669,341,1653,1499,843,515,1171,105,1417,761,433,1089,269,1581,925,597,1253,64,1376,720,392,1048,228,1540,884,556,1212,146,1458,802,474,1130,310,1622,966,638,1294,23,1335,679,351,1663,1007,187,494,1150,84,1396,740,412,1068,248,1560,904,576,1232,43,1355,699,371,1027,207,1519,863,535,1191,125,1437,781,453,1109,289,1601,945,617,1273,660,1314,658,330,1642,986,166,1478,822,121,1433,777,449,1105,285,1597,941,613,1269,80,1392,736,408,1064,244,1556,900,572,1228,162,1474,818,490,1146,326,1638,982,654,1310,39,1351,695,367,1679,1023,203,1515,859,531,1187,757,429,1085,265,1577,921,593,1249,60,1372,716,388,1044,224,1536,880,552,1208,142,1454,798,470,1126,306,1618,962,634,1290,19,1331,675,347,1659,1003,183,1495,839,511,1167,101,1413,1095,275,1587,931,603,1259,70,1382,726,398,1054,234,1546,890,562,1218,152,1464,808,480,1136,316,1628,972,644,1300,29,1341,685,357,1669,1013,193,1505,849,521,1177,111,1423,767,439,1567,911,583,1239,50,1362,706,378,1034,214,1526,870,542,1198,132,1444,788,460,1116,296,1608,952,624,1280,9,1321,665,337,1649,993,173,1485,829,501,1157,91,1403,747,419,1075,255,608,1264,75,1387,731,403,1059,239,1551,895,567,1223,157,1469,813,485,1141,321,1633,977,649,1305,34,1346,690,362,1674,1018,198,1510,854,526,1182,116,1428,772,444,1100,280,1592,936,55,1367,711,383,1039,219,1531,875,547,1203,137,1449,793,465,1121,301,1613,957,629,1285,14,1326,670,342,1654,998,178,1490,834,506,1162,96,1408,752,424,1080,260,1572,916,588,1244,721,393,1049,229,1541,885,557,1213,147,1459,803,475,1131,311,1623,967,639,1295,24,1336,680,352,1664,1008,188,1500,844,516,1172,106,1418,762,434,1090,270,1582,926,598,1254,65,1377,1028,208,1520,864,536,1192,126,1438,782,454,1110,290,1602,946,618,1274,1271,1315,659,331,1643,987,167,1479,823,495,1151,85,1397,741,413,1069,249,1561,905,577,1233,44,1356,700,372,1553,897,569,1225,159,1471,815,487,1143,323,1635,979,651,1307,36,1348,692,364,1676,1020,200,1512,856,528,1184,118,1430,774,446,1102,282,1594,938,610,1266,77,1389,733,405,1061,241,549,1205,139,1451,795,467,1123,303,1615,959,631,1287,16,1328,672,344,1656,1e3,180,1492,836,508,1164,98,1410,754,426,1082,262,1574,918,590,1246,57,1369,713,385,1041,221,1533,877,149,1461,805,477,1133,313,1625,969,641,1297,26,1338,682,354,1666,1010,190,1502,846,518,1174,108,1420,764,436,1092,272,1584,928,600,1256,67,1379,723,395,1051,231,1543,887,559,1215,785,457,1113,293,1605,949,621,1277,6,1318,662,334,1646,990,170,1482,826,498,1154,88,1400,744,416,1072,252,1564,908,580,1236,47,1359,703,375,1031,211,1523,867,539,1195,129,1441,1138,318,1630,974,646,1302,31,1343,687,359,1671,1015,195,1507,851,523,1179,113,1425,769,441,1097,277,1589,933,605,1261,72,1384,728,400,1056,236,1548,892,564,1220,154,1466,810,482,1610,954,626,1282,11,1323,667,339,1651,995,175,1487,831,503,1159,93,1405,749,421,1077,257,1569,913,585,1241,52,1364,708,380,1036,216,1528,872,544,1200,134,1446,790,462,1118,298,636,1292,21,1333,677,349,1661,1005,185,1497,841,513,1169,103,1415,759,431,1087,267,1579,923,595,1251,62,1374,718,390,1046,226,1538,882,554,1210,144,1456,800,472,1128,308,1620,964,0,1312,656,328,1640,984,164,1476,820,492,1148,82,1394,738,410,1066,246,1558,902,574,1230,41,1353,697,369,1025,205,1517,861,533,1189,123,1435,779,451,1107,287,1599,943,615,3],[2,359,1735,1047,187,1563,875,531,1219,101,1477,789,445,1821,1133,273,1649,961,617,1305,58,1434,746,402,1778,1090,230,1606,918,574,1262,144,1520,832,488,1176,316,1692,1004,660,1348,15,1,1746,1058,198,1574,886,542,1230,112,1488,800,456,1832,1144,284,1660,972,628,1316,69,1445,757,413,1789,1101,241,1617,929,585,1273,155,1531,843,499,1187,327,1703,1015,671,1359,26,1402,714,370,176,1552,864,520,1208,90,1466,778,434,1810,1122,262,1638,950,606,1294,47,1423,735,391,1767,1079,219,1595,907,563,1251,133,1509,821,477,1165,305,1681,993,649,1337,4,1380,692,348,1724,1036,899,555,1243,125,1501,813,469,1845,1157,297,1673,985,641,1329,82,1458,770,426,1802,1114,254,1630,942,598,1286,168,1544,856,512,1200,340,1716,1028,684,1372,39,1415,727,383,1759,1071,211,1587,1222,104,1480,792,448,1824,1136,276,1652,964,620,1308,61,1437,749,405,1781,1093,233,1609,921,577,1265,147,1523,835,491,1179,319,1695,1007,663,1351,18,1394,706,362,1738,1050,190,1566,878,534,1491,803,459,1835,1147,287,1663,975,631,1319,72,1448,760,416,1792,1104,244,1620,932,588,1276,158,1534,846,502,1190,330,1706,1018,674,1362,29,1405,717,373,1749,1061,201,1577,889,545,1233,115,437,1813,1125,265,1641,953,609,1297,50,1426,738,394,1770,1082,222,1598,910,566,1254,136,1512,824,480,1168,308,1684,996,652,1340,7,1383,695,351,1727,1039,179,1555,867,523,1211,93,1469,781,1152,292,1668,980,636,1324,77,1453,765,421,1797,1109,249,1625,937,593,1281,163,1539,851,507,1195,335,1711,1023,679,1367,34,1410,722,378,1754,1066,206,1582,894,550,1238,120,1496,808,464,1840,1646,958,614,1302,55,1431,743,399,1775,1087,227,1603,915,571,1259,141,1517,829,485,1173,313,1689,1001,657,1345,12,1388,700,356,1732,1044,184,1560,872,528,1216,98,1474,786,442,1818,1130,270,625,1313,66,1442,754,410,1786,1098,238,1614,926,582,1270,152,1528,840,496,1184,324,1700,1012,668,1356,23,1399,711,367,1743,1055,195,1571,883,539,1227,109,1485,797,453,1829,1141,281,1657,969,44,1420,732,388,1764,1076,216,1592,904,560,1248,130,1506,818,474,1162,302,1678,990,646,1334,1391,1377,689,345,1721,1033,173,1549,861,517,1205,87,1463,775,431,1807,1119,259,1635,947,603,1291,773,429,1805,1117,257,1633,945,601,1289,171,1547,859,515,1203,343,1719,1031,687,1375,42,1418,730,386,1762,1074,214,1590,902,558,1246,128,1504,816,472,1848,1160,300,1676,988,644,1332,85,1461,1784,1096,236,1612,924,580,1268,150,1526,838,494,1182,322,1698,1010,666,1354,21,1397,709,365,1741,1053,193,1569,881,537,1225,107,1483,795,451,1827,1139,279,1655,967,623,1311,64,1440,752,408,247,1623,935,591,1279,161,1537,849,505,1193,333,1709,1021,677,1365,32,1408,720,376,1752,1064,204,1580,892,548,1236,118,1494,806,462,1838,1150,290,1666,978,634,1322,75,1451,763,419,1795,1107,913,569,1257,139,1515,827,483,1171,311,1687,999,655,1343,10,1386,698,354,1730,1042,182,1558,870,526,1214,96,1472,784,440,1816,1128,268,1644,956,612,1300,53,1429,741,397,1773,1085,225,1601,1284,166,1542,854,510,1198,338,1714,1026,682,1370,37,1413,725,381,1757,1069,209,1585,897,553,1241,123,1499,811,467,1843,1155,295,1671,983,639,1327,80,1456,768,424,1800,1112,252,1628,940,596,1521,833,489,1177,317,1693,1005,661,1349,16,1392,704,360,1736,1048,188,1564,876,532,1220,102,1478,790,446,1822,1134,274,1650,962,618,1306,59,1435,747,403,1779,1091,231,1607,919,575,1263,145,500,1188,328,1704,1016,672,1360,27,1403,715,371,1747,1059,199,1575,887,543,1231,113,1489,801,457,1833,1145,285,1661,973,629,1317,70,1446,758,414,1790,1102,242,1618,930,586,1274,156,1532,844,306,1682,994,650,1338,5,1381,693,349,1725,1037,177,1553,865,521,1209,91,1467,779,435,1811,1123,263,1639,951,607,1295,48,1424,736,392,1768,1080,220,1596,908,564,1252,134,1510,822,478,1166,1029,685,1373,40,1416,728,384,1760,1072,212,1588,900,556,1244,126,1502,814,470,1846,1158,298,1674,986,642,1330,83,1459,771,427,1803,1115,255,1631,943,599,1287,169,1545,857,513,1201,341,1717,1352,19,1395,707,363,1739,1051,191,1567,879,535,1223,105,1481,793,449,1825,1137,277,1653,965,621,1309,62,1438,750,406,1782,1094,234,1610,922,578,1266,148,1524,836,492,1180,320,1696,1008,664,1406,718,374,1750,1062,202,1578,890,546,1234,116,1492,804,460,1836,1148,288,1664,976,632,1320,73,1449,761,417,1793,1105,245,1621,933,589,1277,159,1535,847,503,1191,331,1707,1019,675,1363,30,352,1728,1040,180,1556,868,524,1212,94,1470,782,438,1814,1126,266,1642,954,610,1298,51,1427,739,395,1771,1083,223,1599,911,567,1255,137,1513,825,481,1169,309,1685,997,653,1341,8,1384,696,1067,207,1583,895,551,1239,121,1497,809,465,1841,1153,293,1669,981,637,1325,78,1454,766,422,1798,1110,250,1626,938,594,1282,164,1540,852,508,1196,336,1712,1024,680,1368,35,1411,723,379,1755,1561,873,529,1217,99,1475,787,443,1819,1131,271,1647,959,615,1303,56,1432,744,400,1776,1088,228,1604,916,572,1260,142,1518,830,486,1174,314,1690,1002,658,1346,13,1389,701,357,1733,1045,185,540,1228,110,1486,798,454,1830,1142,282,1658,970,626,1314,67,1443,755,411,1787,1099,239,1615,927,583,1271,153,1529,841,497,1185,325,1701,1013,669,1357,24,1400,712,368,1744,1056,196,1572,884,88,1464,776,432,1808,1120,260,1636,948,604,1292,45,1421,733,389,1765,1077,217,1593,905,561,1249,131,1507,819,475,1163,303,1679,991,647,1335,703,1378,690,346,1722,1034,174,1550,862,518,1206,815,471,1847,1159,299,1675,987,643,1331,84,1460,772,428,1804,1116,256,1632,944,600,1288,170,1546,858,514,1202,342,1718,1030,686,1374,41,1417,729,385,1761,1073,213,1589,901,557,1245,127,1503,1826,1138,278,1654,966,622,1310,63,1439,751,407,1783,1095,235,1611,923,579,1267,149,1525,837,493,1181,321,1697,1009,665,1353,20,1396,708,364,1740,1052,192,1568,880,536,1224,106,1482,794,450,289,1665,977,633,1321,74,1450,762,418,1794,1106,246,1622,934,590,1278,160,1536,848,504,1192,332,1708,1020,676,1364,31,1407,719,375,1751,1063,203,1579,891,547,1235,117,1493,805,461,1837,1149,955,611,1299,52,1428,740,396,1772,1084,224,1600,912,568,1256,138,1514,826,482,1170,310,1686,998,654,1342,9,1385,697,353,1729,1041,181,1557,869,525,1213,95,1471,783,439,1815,1127,267,1643,1326,79,1455,767,423,1799,1111,251,1627,939,595,1283,165,1541,853,509,1197,337,1713,1025,681,1369,36,1412,724,380,1756,1068,208,1584,896,552,1240,122,1498,810,466,1842,1154,294,1670,982,638,1433,745,401,1777,1089,229,1605,917,573,1261,143,1519,831,487,1175,315,1691,1003,659,1347,14,1390,702,358,1734,1046,186,1562,874,530,1218,100,1476,788,444,1820,1132,272,1648,960,616,1304,57,412,1788,1100,240,1616,928,584,1272,154,1530,842,498,1186,326,1702,1014,670,1358,25,1401,713,369,1745,1057,197,1573,885,541,1229,111,1487,799,455,1831,1143,283,1659,971,627,1315,68,1444,756,1078,218,1594,906,562,1250,132,1508,820,476,1164,304,1680,992,648,1336,1333,1379,691,347,1723,1035,175,1551,863,519,1207,89,1465,777,433,1809,1121,261,1637,949,605,1293,46,1422,734,390,1766,1629,941,597,1285,167,1543,855,511,1199,339,1715,1027,683,1371,38,1414,726,382,1758,1070,210,1586,898,554,1242,124,1500,812,468,1844,1156,296,1672,984,640,1328,81,1457,769,425,1801,1113,253,576,1264,146,1522,834,490,1178,318,1694,1006,662,1350,17,1393,705,361,1737,1049,189,1565,877,533,1221,103,1479,791,447,1823,1135,275,1651,963,619,1307,60,1436,748,404,1780,1092,232,1608,920,157,1533,845,501,1189,329,1705,1017,673,1361,28,1404,716,372,1748,1060,200,1576,888,544,1232,114,1490,802,458,1834,1146,286,1662,974,630,1318,71,1447,759,415,1791,1103,243,1619,931,587,1275,823,479,1167,307,1683,995,651,1339,6,1382,694,350,1726,1038,178,1554,866,522,1210,92,1468,780,436,1812,1124,264,1640,952,608,1296,49,1425,737,393,1769,1081,221,1597,909,565,1253,135,1511,1194,334,1710,1022,678,1366,33,1409,721,377,1753,1065,205,1581,893,549,1237,119,1495,807,463,1839,1151,291,1667,979,635,1323,76,1452,764,420,1796,1108,248,1624,936,592,1280,162,1538,850,506,1688,1e3,656,1344,11,1387,699,355,1731,1043,183,1559,871,527,1215,97,1473,785,441,1817,1129,269,1645,957,613,1301,54,1430,742,398,1774,1086,226,1602,914,570,1258,140,1516,828,484,1172,312,667,1355,22,1398,710,366,1742,1054,194,1570,882,538,1226,108,1484,796,452,1828,1140,280,1656,968,624,1312,65,1441,753,409,1785,1097,237,1613,925,581,1269,151,1527,839,495,1183,323,1699,1011,0,1376,688,344,1720,1032,172,1548,860,516,1204,86,1462,774,430,1806,1118,258,1634,946,602,1290,43,1419,731,387,1763,1075,215,1591,903,559,1247,129,1505,817,473,1161,301,1677,989,645,3],[2,370,1810,1090,190,1630,910,550,1990,1270,100,1540,820,460,1900,1180,280,1720,1e3,640,1360,55,1495,775,415,1855,1135,235,1675,955,595,1315,145,1585,865,505,1945,1225,325,1765,1045,685,1405,10,1,1838,1118,218,1658,938,578,2018,1298,128,1568,848,488,1928,1208,308,1748,1028,668,1388,83,1523,803,443,1883,1163,263,1703,983,623,1343,173,1613,893,533,1973,1253,353,1793,1073,713,1433,38,1478,758,398,196,1636,916,556,1996,1276,106,1546,826,466,1906,1186,286,1726,1006,646,1366,61,1501,781,421,1861,1141,241,1681,961,601,1321,151,1591,871,511,1951,1231,331,1771,1051,691,1411,16,1456,736,376,1816,1096,927,567,2007,1287,117,1557,837,477,1917,1197,297,1737,1017,657,1377,72,1512,792,432,1872,1152,252,1692,972,612,1332,162,1602,882,522,1962,1242,342,1782,1062,702,1422,27,1467,747,387,1827,1107,207,1647,1984,1264,94,1534,814,454,1894,1174,274,1714,994,634,1354,49,1489,769,409,1849,1129,229,1669,949,589,1309,139,1579,859,499,1939,1219,319,1759,1039,679,1399,4,1444,724,364,1804,1084,184,1624,904,544,131,1571,851,491,1931,1211,311,1751,1031,671,1391,86,1526,806,446,1886,1166,266,1706,986,626,1346,176,1616,896,536,1976,1256,356,1796,1076,716,1436,41,1481,761,401,1841,1121,221,1661,941,581,2021,1301,829,469,1909,1189,289,1729,1009,649,1369,64,1504,784,424,1864,1144,244,1684,964,604,1324,154,1594,874,514,1954,1234,334,1774,1054,694,1414,19,1459,739,379,1819,1099,199,1639,919,559,1999,1279,109,1549,1920,1200,300,1740,1020,660,1380,75,1515,795,435,1875,1155,255,1695,975,615,1335,165,1605,885,525,1965,1245,345,1785,1065,705,1425,30,1470,750,390,1830,1110,210,1650,930,570,2010,1290,120,1560,840,480,277,1717,997,637,1357,52,1492,772,412,1852,1132,232,1672,952,592,1312,142,1582,862,502,1942,1222,322,1762,1042,682,1402,7,1447,727,367,1807,1087,187,1627,907,547,1987,1267,97,1537,817,457,1897,1177,1025,665,1385,80,1520,800,440,1880,1160,260,1700,980,620,1340,170,1610,890,530,1970,1250,350,1790,1070,710,1430,35,1475,755,395,1835,1115,215,1655,935,575,2015,1295,125,1565,845,485,1925,1205,305,1745,1363,58,1498,778,418,1858,1138,238,1678,958,598,1318,148,1588,868,508,1948,1228,328,1768,1048,688,1408,13,1453,733,373,1813,1093,193,1633,913,553,1993,1273,103,1543,823,463,1903,1183,283,1723,1003,643,1509,789,429,1869,1149,249,1689,969,609,1329,159,1599,879,519,1959,1239,339,1779,1059,699,1419,24,1464,744,384,1824,1104,204,1644,924,564,2004,1284,114,1554,834,474,1914,1194,294,1734,1014,654,1374,69,406,1846,1126,226,1666,946,586,1306,136,1576,856,496,1936,1216,316,1756,1036,676,1396,1450,1441,721,361,1801,1081,181,1621,901,541,1981,1261,91,1531,811,451,1891,1171,271,1711,991,631,1351,46,1486,766,1169,269,1709,989,629,1349,179,1619,899,539,1979,1259,359,1799,1079,719,1439,44,1484,764,404,1844,1124,224,1664,944,584,2024,1304,134,1574,854,494,1934,1214,314,1754,1034,674,1394,89,1529,809,449,1889,1687,967,607,1327,157,1597,877,517,1957,1237,337,1777,1057,697,1417,22,1462,742,382,1822,1102,202,1642,922,562,2002,1282,112,1552,832,472,1912,1192,292,1732,1012,652,1372,67,1507,787,427,1867,1147,247,618,1338,168,1608,888,528,1968,1248,348,1788,1068,708,1428,33,1473,753,393,1833,1113,213,1653,933,573,2013,1293,123,1563,843,483,1923,1203,303,1743,1023,663,1383,78,1518,798,438,1878,1158,258,1698,978,146,1586,866,506,1946,1226,326,1766,1046,686,1406,11,1451,731,371,1811,1091,191,1631,911,551,1991,1271,101,1541,821,461,1901,1181,281,1721,1001,641,1361,56,1496,776,416,1856,1136,236,1676,956,596,1316,894,534,1974,1254,354,1794,1074,714,1434,39,1479,759,399,1839,1119,219,1659,939,579,2019,1299,129,1569,849,489,1929,1209,309,1749,1029,669,1389,84,1524,804,444,1884,1164,264,1704,984,624,1344,174,1614,1952,1232,332,1772,1052,692,1412,17,1457,737,377,1817,1097,197,1637,917,557,1997,1277,107,1547,827,467,1907,1187,287,1727,1007,647,1367,62,1502,782,422,1862,1142,242,1682,962,602,1322,152,1592,872,512,343,1783,1063,703,1423,28,1468,748,388,1828,1108,208,1648,928,568,2008,1288,118,1558,838,478,1918,1198,298,1738,1018,658,1378,73,1513,793,433,1873,1153,253,1693,973,613,1333,163,1603,883,523,1963,1243,1040,680,1400,5,1445,725,365,1805,1085,185,1625,905,545,1985,1265,95,1535,815,455,1895,1175,275,1715,995,635,1355,50,1490,770,410,1850,1130,230,1670,950,590,1310,140,1580,860,500,1940,1220,320,1760,1437,42,1482,762,402,1842,1122,222,1662,942,582,2022,1302,132,1572,852,492,1932,1212,312,1752,1032,672,1392,87,1527,807,447,1887,1167,267,1707,987,627,1347,177,1617,897,537,1977,1257,357,1797,1077,717,1460,740,380,1820,1100,200,1640,920,560,2e3,1280,110,1550,830,470,1910,1190,290,1730,1010,650,1370,65,1505,785,425,1865,1145,245,1685,965,605,1325,155,1595,875,515,1955,1235,335,1775,1055,695,1415,20,391,1831,1111,211,1651,931,571,2011,1291,121,1561,841,481,1921,1201,301,1741,1021,661,1381,76,1516,796,436,1876,1156,256,1696,976,616,1336,166,1606,886,526,1966,1246,346,1786,1066,706,1426,31,1471,751,1088,188,1628,908,548,1988,1268,98,1538,818,458,1898,1178,278,1718,998,638,1358,53,1493,773,413,1853,1133,233,1673,953,593,1313,143,1583,863,503,1943,1223,323,1763,1043,683,1403,8,1448,728,368,1808,1656,936,576,2016,1296,126,1566,846,486,1926,1206,306,1746,1026,666,1386,81,1521,801,441,1881,1161,261,1701,981,621,1341,171,1611,891,531,1971,1251,351,1791,1071,711,1431,36,1476,756,396,1836,1116,216,554,1994,1274,104,1544,824,464,1904,1184,284,1724,1004,644,1364,59,1499,779,419,1859,1139,239,1679,959,599,1319,149,1589,869,509,1949,1229,329,1769,1049,689,1409,14,1454,734,374,1814,1094,194,1634,914,1285,115,1555,835,475,1915,1195,295,1735,1015,655,1375,70,1510,790,430,1870,1150,250,1690,970,610,1330,160,1600,880,520,1960,1240,340,1780,1060,700,1420,25,1465,745,385,1825,1105,205,1645,925,565,2005,1532,812,452,1892,1172,272,1712,992,632,1352,47,1487,767,407,1847,1127,227,1667,947,587,1307,137,1577,857,497,1937,1217,317,1757,1037,677,1397,730,1442,722,362,1802,1082,182,1622,902,542,1982,1262,92,493,1933,1213,313,1753,1033,673,1393,88,1528,808,448,1888,1168,268,1708,988,628,1348,178,1618,898,538,1978,1258,358,1798,1078,718,1438,43,1483,763,403,1843,1123,223,1663,943,583,2023,1303,133,1573,853,1191,291,1731,1011,651,1371,66,1506,786,426,1866,1146,246,1686,966,606,1326,156,1596,876,516,1956,1236,336,1776,1056,696,1416,21,1461,741,381,1821,1101,201,1641,921,561,2001,1281,111,1551,831,471,1911,1742,1022,662,1382,77,1517,797,437,1877,1157,257,1697,977,617,1337,167,1607,887,527,1967,1247,347,1787,1067,707,1427,32,1472,752,392,1832,1112,212,1652,932,572,2012,1292,122,1562,842,482,1922,1202,302,639,1359,54,1494,774,414,1854,1134,234,1674,954,594,1314,144,1584,864,504,1944,1224,324,1764,1044,684,1404,9,1449,729,369,1809,1089,189,1629,909,549,1989,1269,99,1539,819,459,1899,1179,279,1719,999,82,1522,802,442,1882,1162,262,1702,982,622,1342,172,1612,892,532,1972,1252,352,1792,1072,712,1432,37,1477,757,397,1837,1117,217,1657,937,577,2017,1297,127,1567,847,487,1927,1207,307,1747,1027,667,1387,780,420,1860,1140,240,1680,960,600,1320,150,1590,870,510,1950,1230,330,1770,1050,690,1410,15,1455,735,375,1815,1095,195,1635,915,555,1995,1275,105,1545,825,465,1905,1185,285,1725,1005,645,1365,60,1500,1871,1151,251,1691,971,611,1331,161,1601,881,521,1961,1241,341,1781,1061,701,1421,26,1466,746,386,1826,1106,206,1646,926,566,2006,1286,116,1556,836,476,1916,1196,296,1736,1016,656,1376,71,1511,791,431,228,1668,948,588,1308,138,1578,858,498,1938,1218,318,1758,1038,678,1398,1395,1443,723,363,1803,1083,183,1623,903,543,1983,1263,93,1533,813,453,1893,1173,273,1713,993,633,1353,48,1488,768,408,1848,1128,985,625,1345,175,1615,895,535,1975,1255,355,1795,1075,715,1435,40,1480,760,400,1840,1120,220,1660,940,580,2020,1300,130,1570,850,490,1930,1210,310,1750,1030,670,1390,85,1525,805,445,1885,1165,265,1705,1323,153,1593,873,513,1953,1233,333,1773,1053,693,1413,18,1458,738,378,1818,1098,198,1638,918,558,1998,1278,108,1548,828,468,1908,1188,288,1728,1008,648,1368,63,1503,783,423,1863,1143,243,1683,963,603,1604,884,524,1964,1244,344,1784,1064,704,1424,29,1469,749,389,1829,1109,209,1649,929,569,2009,1289,119,1559,839,479,1919,1199,299,1739,1019,659,1379,74,1514,794,434,1874,1154,254,1694,974,614,1334,164,501,1941,1221,321,1761,1041,681,1401,6,1446,726,366,1806,1086,186,1626,906,546,1986,1266,96,1536,816,456,1896,1176,276,1716,996,636,1356,51,1491,771,411,1851,1131,231,1671,951,591,1311,141,1581,861,1249,349,1789,1069,709,1429,34,1474,754,394,1834,1114,214,1654,934,574,2014,1294,124,1564,844,484,1924,1204,304,1744,1024,664,1384,79,1519,799,439,1879,1159,259,1699,979,619,1339,169,1609,889,529,1969,1767,1047,687,1407,12,1452,732,372,1812,1092,192,1632,912,552,1992,1272,102,1542,822,462,1902,1182,282,1722,1002,642,1362,57,1497,777,417,1857,1137,237,1677,957,597,1317,147,1587,867,507,1947,1227,327,698,1418,23,1463,743,383,1823,1103,203,1643,923,563,2003,1283,113,1553,833,473,1913,1193,293,1733,1013,653,1373,68,1508,788,428,1868,1148,248,1688,968,608,1328,158,1598,878,518,1958,1238,338,1778,1058,0,1440,720,360,1800,1080,180,1620,900,540,1980,1260,90,1530,810,450,1890,1170,270,1710,990,630,1350,45,1485,765,405,1845,1125,225,1665,945,585,1305,135,1575,855,495,1935,1215,315,1755,1035,675,3],[2,398,1902,1150,210,1714,962,586,2090,1338,116,1620,868,492,1996,1244,304,1808,1056,680,2184,1432,69,1573,821,445,1949,1197,257,1761,1009,633,2137,1385,163,1667,915,539,2043,1291,351,1855,1103,727,1479,22,1,1914,1162,222,1726,974,598,2102,1350,128,1632,880,504,2008,1256,316,1820,1068,692,2196,1444,81,1585,833,457,1961,1209,269,1773,1021,645,2149,1397,175,1679,927,551,2055,1303,363,1867,1115,739,1491,34,1538,786,410,198,1702,950,574,2078,1326,104,1608,856,480,1984,1232,292,1796,1044,668,2172,1420,57,1561,809,433,1937,1185,245,1749,997,621,2125,1373,151,1655,903,527,2031,1279,339,1843,1091,715,1467,10,1514,762,386,1890,1138,980,604,2108,1356,134,1638,886,510,2014,1262,322,1826,1074,698,2202,1450,87,1591,839,463,1967,1215,275,1779,1027,651,2155,1403,181,1685,933,557,2061,1309,369,1873,1121,745,1497,40,1544,792,416,1920,1168,228,1732,2084,1332,110,1614,862,486,1990,1238,298,1802,1050,674,2178,1426,63,1567,815,439,1943,1191,251,1755,1003,627,2131,1379,157,1661,909,533,2037,1285,345,1849,1097,721,1473,16,1520,768,392,1896,1144,204,1708,956,580,122,1626,874,498,2002,1250,310,1814,1062,686,2190,1438,75,1579,827,451,1955,1203,263,1767,1015,639,2143,1391,169,1673,921,545,2049,1297,357,1861,1109,733,1485,28,1532,780,404,1908,1156,216,1720,968,592,2096,1344,850,474,1978,1226,286,1790,1038,662,2166,1414,51,1555,803,427,1931,1179,239,1743,991,615,2119,1367,145,1649,897,521,2025,1273,333,1837,1085,709,1461,4,1508,756,380,1884,1132,192,1696,944,568,2072,1320,98,1602,2017,1265,325,1829,1077,701,2205,1453,90,1594,842,466,1970,1218,278,1782,1030,654,2158,1406,184,1688,936,560,2064,1312,372,1876,1124,748,1500,43,1547,795,419,1923,1171,231,1735,983,607,2111,1359,137,1641,889,513,301,1805,1053,677,2181,1429,66,1570,818,442,1946,1194,254,1758,1006,630,2134,1382,160,1664,912,536,2040,1288,348,1852,1100,724,1476,19,1523,771,395,1899,1147,207,1711,959,583,2087,1335,113,1617,865,489,1993,1241,1065,689,2193,1441,78,1582,830,454,1958,1206,266,1770,1018,642,2146,1394,172,1676,924,548,2052,1300,360,1864,1112,736,1488,31,1535,783,407,1911,1159,219,1723,971,595,2099,1347,125,1629,877,501,2005,1253,313,1817,2169,1417,54,1558,806,430,1934,1182,242,1746,994,618,2122,1370,148,1652,900,524,2028,1276,336,1840,1088,712,1464,7,1511,759,383,1887,1135,195,1699,947,571,2075,1323,101,1605,853,477,1981,1229,289,1793,1041,665,84,1588,836,460,1964,1212,272,1776,1024,648,2152,1400,178,1682,930,554,2058,1306,366,1870,1118,742,1494,37,1541,789,413,1917,1165,225,1729,977,601,2105,1353,131,1635,883,507,2011,1259,319,1823,1071,695,2199,1447,812,436,1940,1188,248,1752,1e3,624,2128,1376,154,1658,906,530,2034,1282,342,1846,1094,718,1470,13,1517,765,389,1893,1141,201,1705,953,577,2081,1329,107,1611,859,483,1987,1235,295,1799,1047,671,2175,1423,60,1564,1952,1200,260,1764,1012,636,2140,1388,166,1670,918,542,2046,1294,354,1858,1106,730,1482,25,1529,777,401,1905,1153,213,1717,965,589,2093,1341,119,1623,871,495,1999,1247,307,1811,1059,683,2187,1435,72,1576,824,448,236,1740,988,612,2116,1364,142,1646,894,518,2022,1270,330,1834,1082,706,1458,1526,1505,753,377,1881,1129,189,1693,941,565,2069,1317,95,1599,847,471,1975,1223,283,1787,1035,659,2163,1411,48,1552,800,424,1928,1176,1033,657,2161,1409,187,1691,939,563,2067,1315,375,1879,1127,751,1503,46,1550,798,422,1926,1174,234,1738,986,610,2114,1362,140,1644,892,516,2020,1268,328,1832,1080,704,2208,1456,93,1597,845,469,1973,1221,281,1785,2138,1386,164,1668,916,540,2044,1292,352,1856,1104,728,1480,23,1527,775,399,1903,1151,211,1715,963,587,2091,1339,117,1621,869,493,1997,1245,305,1809,1057,681,2185,1433,70,1574,822,446,1950,1198,258,1762,1010,634,176,1680,928,552,2056,1304,364,1868,1116,740,1492,35,1539,787,411,1915,1163,223,1727,975,599,2103,1351,129,1633,881,505,2009,1257,317,1821,1069,693,2197,1445,82,1586,834,458,1962,1210,270,1774,1022,646,2150,1398,904,528,2032,1280,340,1844,1092,716,1468,11,1515,763,387,1891,1139,199,1703,951,575,2079,1327,105,1609,857,481,1985,1233,293,1797,1045,669,2173,1421,58,1562,810,434,1938,1186,246,1750,998,622,2126,1374,152,1656,2062,1310,370,1874,1122,746,1498,41,1545,793,417,1921,1169,229,1733,981,605,2109,1357,135,1639,887,511,2015,1263,323,1827,1075,699,2203,1451,88,1592,840,464,1968,1216,276,1780,1028,652,2156,1404,182,1686,934,558,346,1850,1098,722,1474,17,1521,769,393,1897,1145,205,1709,957,581,2085,1333,111,1615,863,487,1991,1239,299,1803,1051,675,2179,1427,64,1568,816,440,1944,1192,252,1756,1004,628,2132,1380,158,1662,910,534,2038,1286,1110,734,1486,29,1533,781,405,1909,1157,217,1721,969,593,2097,1345,123,1627,875,499,2003,1251,311,1815,1063,687,2191,1439,76,1580,828,452,1956,1204,264,1768,1016,640,2144,1392,170,1674,922,546,2050,1298,358,1862,1462,5,1509,757,381,1885,1133,193,1697,945,569,2073,1321,99,1603,851,475,1979,1227,287,1791,1039,663,2167,1415,52,1556,804,428,1932,1180,240,1744,992,616,2120,1368,146,1650,898,522,2026,1274,334,1838,1086,710,1548,796,420,1924,1172,232,1736,984,608,2112,1360,138,1642,890,514,2018,1266,326,1830,1078,702,2206,1454,91,1595,843,467,1971,1219,279,1783,1031,655,2159,1407,185,1689,937,561,2065,1313,373,1877,1125,749,1501,44,396,1900,1148,208,1712,960,584,2088,1336,114,1618,866,490,1994,1242,302,1806,1054,678,2182,1430,67,1571,819,443,1947,1195,255,1759,1007,631,2135,1383,161,1665,913,537,2041,1289,349,1853,1101,725,1477,20,1524,772,1160,220,1724,972,596,2100,1348,126,1630,878,502,2006,1254,314,1818,1066,690,2194,1442,79,1583,831,455,1959,1207,267,1771,1019,643,2147,1395,173,1677,925,549,2053,1301,361,1865,1113,737,1489,32,1536,784,408,1912,1700,948,572,2076,1324,102,1606,854,478,1982,1230,290,1794,1042,666,2170,1418,55,1559,807,431,1935,1183,243,1747,995,619,2123,1371,149,1653,901,525,2029,1277,337,1841,1089,713,1465,8,1512,760,384,1888,1136,196,602,2106,1354,132,1636,884,508,2012,1260,320,1824,1072,696,2200,1448,85,1589,837,461,1965,1213,273,1777,1025,649,2153,1401,179,1683,931,555,2059,1307,367,1871,1119,743,1495,38,1542,790,414,1918,1166,226,1730,978,1330,108,1612,860,484,1988,1236,296,1800,1048,672,2176,1424,61,1565,813,437,1941,1189,249,1753,1001,625,2129,1377,155,1659,907,531,2035,1283,343,1847,1095,719,1471,14,1518,766,390,1894,1142,202,1706,954,578,2082,1624,872,496,2e3,1248,308,1812,1060,684,2188,1436,73,1577,825,449,1953,1201,261,1765,1013,637,2141,1389,167,1671,919,543,2047,1295,355,1859,1107,731,1483,26,1530,778,402,1906,1154,214,1718,966,590,2094,1342,120,472,1976,1224,284,1788,1036,660,2164,1412,49,1553,801,425,1929,1177,237,1741,989,613,2117,1365,143,1647,895,519,2023,1271,331,1835,1083,707,1459,774,1506,754,378,1882,1130,190,1694,942,566,2070,1318,96,1600,848,1267,327,1831,1079,703,2207,1455,92,1596,844,468,1972,1220,280,1784,1032,656,2160,1408,186,1690,938,562,2066,1314,374,1878,1126,750,1502,45,1549,797,421,1925,1173,233,1737,985,609,2113,1361,139,1643,891,515,2019,1807,1055,679,2183,1431,68,1572,820,444,1948,1196,256,1760,1008,632,2136,1384,162,1666,914,538,2042,1290,350,1854,1102,726,1478,21,1525,773,397,1901,1149,209,1713,961,585,2089,1337,115,1619,867,491,1995,1243,303,691,2195,1443,80,1584,832,456,1960,1208,268,1772,1020,644,2148,1396,174,1678,926,550,2054,1302,362,1866,1114,738,1490,33,1537,785,409,1913,1161,221,1725,973,597,2101,1349,127,1631,879,503,2007,1255,315,1819,1067,1419,56,1560,808,432,1936,1184,244,1748,996,620,2124,1372,150,1654,902,526,2030,1278,338,1842,1090,714,1466,9,1513,761,385,1889,1137,197,1701,949,573,2077,1325,103,1607,855,479,1983,1231,291,1795,1043,667,2171,1590,838,462,1966,1214,274,1778,1026,650,2154,1402,180,1684,932,556,2060,1308,368,1872,1120,744,1496,39,1543,791,415,1919,1167,227,1731,979,603,2107,1355,133,1637,885,509,2013,1261,321,1825,1073,697,2201,1449,86,438,1942,1190,250,1754,1002,626,2130,1378,156,1660,908,532,2036,1284,344,1848,1096,720,1472,15,1519,767,391,1895,1143,203,1707,955,579,2083,1331,109,1613,861,485,1989,1237,297,1801,1049,673,2177,1425,62,1566,814,1202,262,1766,1014,638,2142,1390,168,1672,920,544,2048,1296,356,1860,1108,732,1484,27,1531,779,403,1907,1155,215,1719,967,591,2095,1343,121,1625,873,497,2001,1249,309,1813,1061,685,2189,1437,74,1578,826,450,1954,1742,990,614,2118,1366,144,1648,896,520,2024,1272,332,1836,1084,708,1460,1457,1507,755,379,1883,1131,191,1695,943,567,2071,1319,97,1601,849,473,1977,1225,285,1789,1037,661,2165,1413,50,1554,802,426,1930,1178,238,653,2157,1405,183,1687,935,559,2063,1311,371,1875,1123,747,1499,42,1546,794,418,1922,1170,230,1734,982,606,2110,1358,136,1640,888,512,2016,1264,324,1828,1076,700,2204,1452,89,1593,841,465,1969,1217,277,1781,1029,1381,159,1663,911,535,2039,1287,347,1851,1099,723,1475,18,1522,770,394,1898,1146,206,1710,958,582,2086,1334,112,1616,864,488,1992,1240,300,1804,1052,676,2180,1428,65,1569,817,441,1945,1193,253,1757,1005,629,2133,1675,923,547,2051,1299,359,1863,1111,735,1487,30,1534,782,406,1910,1158,218,1722,970,594,2098,1346,124,1628,876,500,2004,1252,312,1816,1064,688,2192,1440,77,1581,829,453,1957,1205,265,1769,1017,641,2145,1393,171,523,2027,1275,335,1839,1087,711,1463,6,1510,758,382,1886,1134,194,1698,946,570,2074,1322,100,1604,852,476,1980,1228,288,1792,1040,664,2168,1416,53,1557,805,429,1933,1181,241,1745,993,617,2121,1369,147,1651,899,1305,365,1869,1117,741,1493,36,1540,788,412,1916,1164,224,1728,976,600,2104,1352,130,1634,882,506,2010,1258,318,1822,1070,694,2198,1446,83,1587,835,459,1963,1211,271,1775,1023,647,2151,1399,177,1681,929,553,2057,1845,1093,717,1469,12,1516,764,388,1892,1140,200,1704,952,576,2080,1328,106,1610,858,482,1986,1234,294,1798,1046,670,2174,1422,59,1563,811,435,1939,1187,247,1751,999,623,2127,1375,153,1657,905,529,2033,1281,341,729,1481,24,1528,776,400,1904,1152,212,1716,964,588,2092,1340,118,1622,870,494,1998,1246,306,1810,1058,682,2186,1434,71,1575,823,447,1951,1199,259,1763,1011,635,2139,1387,165,1669,917,541,2045,1293,353,1857,1105,0,1504,752,376,1880,1128,188,1692,940,564,2068,1316,94,1598,846,470,1974,1222,282,1786,1034,658,2162,1410,47,1551,799,423,1927,1175,235,1739,987,611,2115,1363,141,1645,893,517,2021,1269,329,1833,1081,705,3]]},f={ECC000:0,ECC050:1,ECC080:2,ECC100:3,ECC140:4},m=["square9","square11","square13","square15","square17","square19","square21","square23","square25","square27","square29","square31","square33","square35","square37","square39","square41","square43","square45","square47","square49"],A.default={chooseEncodationScheme:l,Constants:C,getECC:r,getProperSymbolSize:h,getSymbolSizeInfo:t,getSymbolSizeValue:i,getCodeWord:o,getModuleMapping:b,setBit:n,setFinder:_,setRegionData:M,createModules:k.default.createModules}},function(K,A,S){function k(p,y){for(var C,f=0;f<y.length;f++)(C=y[f]).enumerable=C.enumerable||!1,C.configurable=!0,"value"in C&&(C.writable=!0),Object.defineProperty(p,C.key,C)}function w(p,y){if(!(p instanceof y))throw new TypeError("Cannot call a class as a function")}function u(p,y){w(this,u),this._data=p,this.offset=y||0}Object.defineProperty(A,"__esModule",{value:!0}),function(p,y,C){y&&k(p.prototype,y),C&&k(p,C)}(u,[{key:"fetchBit",value:function(){return this.getBit(this.offset++)}},{key:"getBit",value:function(p){return!(p>=this.bitLength||!(this._data[~~(p/8)]&128>>p%8))}},{key:"setBit",value:function(p,y){var C=~~(p/8);p=(128>>p%8)%256,this._data[C]&=(this._data[C]&~p)%256,y&&(this._data[C]|=p)}},{key:"putBit",value:function(p){this.setBit(this.offset,p),this.offset++}},{key:"putBitsMSF",value:function(p,y,C){var f,m,g;for((g=!!C)||(C=this.offset),f=2147483648,m=0;m<y;++m)this.setBit(C+m,!!(p&f)),f/=2;g||(this.offset+=y)}},{key:"putBitsLSF",value:function(p,y,C){var f,m,g;for((g=!!C)||(C=this.offset),f=1,m=0;m<y;++m)this.setBit(C+m,!!(p&f)),f<<=1;g||(this.offset+=y)}},{key:"bitLength",get:function(){return 8*this._data.length}},{key:"currentBit",get:function(){return this.getBit(this.offset)}}]),A.default=u},function(K,A,S){var k,w;function u(p){return p&&p.__esModule?p:{default:p}}k=u(S(2)),w=u(S(46)),S=u(S(47)),k.default.registerEncoder("EAN8",w.default),k.default.registerEncoder("EAN13",S.default)},function(K,A,S){var k,w,u,p,y,C;function f(a,o){for(var n,e=0;e<o.length;e++)(n=o[e]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}function m(a){return a&&a.__esModule?a:{default:a}}function g(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function c(a,o){if(a)return!o||typeof o!="object"&&typeof o!="function"?a:o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function l(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}function s(a){var o;return g(this,s),(o=(a=c(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a))).config.text).length<8&&(o+=a.checksum(o,!0)),a.text=o,o=a.calculateData(),a.adjustDesiredSize(o),a.convertToShape(o),a}Object.defineProperty(A,"__esModule",{value:!0}),k=function(a,o,n){return o&&f(a.prototype,o),n&&f(a,n),a},w=m(w=S(12)),C=S(9),u=m(C),p=S(1),y=S(0),l(s,w.default),k(s,[{key:"validate",value:function(){var a=this.config.text;if(!/^[0-9](\d{6}||\d{7})$/.test(a))throw new p.InvalidTextException(a,"Text should be numbers. The length should be 7 or 8.");if(a.length===8&&this.checksum(a.substr(0,7),!0)!=a[7])throw new p.InvalidTextException(a,"Check digit is invalid.")}},{key:"calculateData",value:function(){var a,o=this,n=this.text,e=this.isTextGroup,r=n.substr(0,4);return n=n.substr(4,4),(a=[]).push({text:"<",role:"LEFT_QUIET_ZONE"}),a.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),e?(0,y.str2Array)(r).forEach(function(t,i){a.push({binary:o.encodeChar(t,u.default.ean8LeftStructure,i),text:t})}):a.push({binary:this.encode(r,u.default.ean8LeftStructure),text:r}),a.push({binary:u.default.CENTRE_GUARD,role:"GUARD"}),e?(0,y.str2Array)(n).forEach(function(t,i){a.push({binary:o.encodeChar(t,u.default.rightStructure,i),text:t})}):a.push({binary:this.encode(n,u.default.rightStructure),text:n}),a.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),a.push({text:">",role:"RIGHT_QUIET_ZONE"}),a}}]),C=s,A.default=C},function(K,A,S){var k,w,u,p,y,C;function f(a,o){for(var n,e=0;e<o.length;e++)(n=o[e]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(a,n.key,n)}function m(a){return a&&a.__esModule?a:{default:a}}function g(a,o){if(!(a instanceof o))throw new TypeError("Cannot call a class as a function")}function c(a,o){if(a)return!o||typeof o!="object"&&typeof o!="function"?a:o;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function l(a,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);a.prototype=Object.create(o&&o.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(a,o):a.__proto__=o)}function s(a){var o,n,e;return g(this,s),e=(n=(a=c(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,a))).config).text,o=n.addOn,n=n.addOnHeight,e.length<13&&(e+=a.checksum(e)),a.text=e,(0,y.isDefined)(o)&&(a.addOn=""+o,n!=="auto"&&((0,y.isNumberLike)(n)?n=+n:(n=(0,y.convertUnit)((0,y.fixSize2PixelDefault)(n)),a.addOnHeightInPiexl=n,n/=a.style.unitValue)),a.addOnHeight=n),e=a.calculateData(),a.adjustDesiredSize(e),a.convertToShape(e),a}Object.defineProperty(A,"__esModule",{value:!0}),k=function(a,o,n){return o&&f(a.prototype,o),n&&f(a,n),a},w=m(w=S(12)),C=S(9),u=m(C),p=S(1),y=S(0),l(s,w.default),k(s,[{key:"validate",value:function(){var a=this.config.text;if(!/^[1-9](\d{11}||\d{12})$/.test(a))throw new p.InvalidTextException(a,"Text should be numbers. And it should not start with 0. The length should be 12 or 13.");if(a.length===13&&this.checksum(a.substr(0,12))!=a[12])throw new p.InvalidTextException(a,"Check digit is invalid.")}},{key:"calculateData",value:function(){var a,o=this,n=this.text,e=this.addOn,r=this.isTextGroup,t=n.substr(1,6),i=n.substr(7,6),h=u.default.leftStructure[n[0]];return(a=[]).push({text:n[0],role:"LEFT_QUIET_ZONE"}),a.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),r?(0,y.str2Array)(t).forEach(function(b,_){a.push({binary:o.encodeChar(b,h,_),text:b})}):a.push({binary:this.encode(t,h),text:t}),a.push({binary:u.default.CENTRE_GUARD,role:"GUARD"}),r?(0,y.str2Array)(i).forEach(function(b,_){a.push({binary:o.encodeChar(b,u.default.rightStructure,_),text:b})}):a.push({binary:this.encode(i,u.default.rightStructure),text:i}),a.push({binary:u.default.NORMAL_GUARD,role:"GUARD"}),e?(a.push({role:"ADDON_QUIET_ZONE"}),this.addon(a)):a.push({text:">",role:"NO_ADDON_RIGHT_QUIET_ZONE"}),a}},{key:"addon",value:function(a){var o,n,e,r,t=this,i=this.addOn,h=this.isTextGroup;if(i.length===2)n=o=r=void 0,r=u.default.get2DigitAddOnTable(i),o=this.encodeChar(i[0],r.leftStructure,0),n=this.encodeChar(i[1],r.rightStructure,0),h?(a.push({binary:u.default.ADD_ON_GUARD,role:"ADDON"}),a.push({binary:o,text:i[0],role:"ADDON"}),a.push({binary:u.default.ADD_ON_DELINEATOR,role:"ADDON"}),a.push({binary:n,text:i[1],role:"ADDON"})):a.push({binary:u.default.ADD_ON_GUARD+o+u.default.ADD_ON_DELINEATOR+n,text:i,role:"ADDON"});else{if(i.length!==5)throw new p.BadArgumentsException(i);e=u.default.get5DigitAddOnTable(i),h?(a.push({binary:u.default.ADD_ON_GUARD,role:"ADDON"}),(0,y.str2Array)(i).forEach(function(b,_){a.push({binary:t.encodeFor5DigitAddOn(b,_,e),text:b,role:"ADDON"}),_<i.length-1&&a.push({binary:u.default.ADD_ON_DELINEATOR,role:"ADDON"})})):(r=(0,y.str2Array)(i).reduce(function(b,_,M){return b+=t.encodeFor5DigitAddOn(_,M,e),M<i.length-1&&(b+=u.default.ADD_ON_DELINEATOR),b},""),a.push({binary:u.default.ADD_ON_GUARD+r,text:i,role:"ADDON"}))}a.push({text:">",role:"ADDON_RIGHT_QUIET_ZONE"})}},{key:"encodeFor5DigitAddOn",value:function(a,o,n){return u.default.TABLE[n[o]][a]}}]),C=s,A.default=C},function(K,A,S){var k;function w(f){return f&&f.__esModule?f:{default:f}}function u(f,m){if(!(f instanceof m))throw new TypeError("Cannot call a class as a function")}function p(f,m){if(f)return!m||typeof m!="object"&&typeof m!="function"?f:m;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function y(f,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);f.prototype=Object.create(m&&m.prototype,{constructor:{value:f,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(f,m):f.__proto__=m)}function C(f){return u(this,C),p(this,(C.__proto__||Object.getPrototypeOf(C)).call(this,f,!0))}Object.defineProperty(A,"__esModule",{value:!0}),k=w(S(2)),y(C,(S=w(S=S(11))).default),S=C,A.default=S,k.default.registerEncoder("GS1_128",S)},function(K,A,S){var k,w,u,p,y,C,f,m,g;function c(e,r){for(var t,i=0;i<r.length;i++)(t=r[i]).enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(e)return!r||typeof r!="object"&&typeof r!="function"?e:r;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function o(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function n(e){var r,t,i,h,b;return s(this,n),r=(i=(e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,p.default.defaultConfig))).config).text,h=i.errorCorrectionLevel,b=i.columns,t=i.rows,i=i.compact,e.text=r,e.ecl=h==="auto"?h:+h,e.columns=b==="auto"?b:+b,e.rows=t==="auto"?t:+t,e.compact=!!i,h=p.default.compaction(r),e.encode(h),e.genEcc(),b=e.fillMatrix(),e.adjustDesiredSize(b),e.convertToShape(b),e}Object.defineProperty(A,"__esModule",{value:!0}),k=function(e,r,t){return r&&c(e.prototype,r),t&&c(e,t),e},w=l(w=S(7)),u=l(S(2)),g=S(50),p=l(g),y=S(0),g=S(51),C=l(g),g=S(52),f=l(g),m=S(1),o(n,w.default),k(n,[{key:"validate",value:function(){var e=(i=this.config).text,r=i.errorCorrectionLevel,t=i.rows,i=i.columns;if(!/^[\x00-\xFF]+$/.test(e))throw new m.InvalidTextException(e);if((0,y.isNumberLike)(r)&&(r<0||8<r))throw new m.BadArgumentsException({errorCorrectionLevel:r},"ErrorCorrectionLevel is from 0 - 8.");if((0,y.isNumberLike)(t)&&(t<3||90<t))throw new m.BadArgumentsException({rows:t},"Rows is from 3 - 90.");if((0,y.isNumberLike)(i)&&(i<1||30<i))throw new m.BadArgumentsException({columns:i},"Columns is from 1 - 30.")}},{key:"encodeNC",value:function(e){e=e.text;var r=[];return(0,y.sliceString)(e,44,function(t){for(var i,h=new f.default("1"+t),b=[];i=h.modulo(900),h=h.dividedToIntegerBy((0,f.default)(900)),b.unshift(+i.toString()),!h.lessThan(1););r=r.concat(b)}),r.unshift(p.default.MODE_NC),r}},{key:"encodeBC",value:function(e){var r=e.text,t=[];return(0,y.sliceString)(r,6,function(i){var h,b,_,M;if(i.length===6)for(h=5,(b=0,y.sliceString)(i,1,function(O){b+=O.charCodeAt(0)*Math.pow(256,h--)}),_=0,M=Math.floor(b/Math.pow(900,_))%900;t.unshift(M),0<(M=Math.floor(b/Math.pow(900,++_))%900););else(0,y.sliceString)(i,1,function(O){t.push(O.charCodeAt(0))})}),t.unshift(e.mode),t}},{key:"encodeTC",value:function(e){var r,t=[],i="al";return e.subModes.forEach(function(h){i!==h.mode&&(t=t.concat(p.default.getTCSubModeValue(h.mode,i))),(0,y.sliceString)(h.text,1,function(b){t.push(p.default.getTCValue(b,h.mode))}),h.mode!=="ps"&&h.mode!=="as"&&(i=h.mode)}),r=[p.default.MODE_TC],(0,y.sliceArray)(t,2,function(h){h.length===2?r.push(30*h[0]+h[1]):r.push(30*h[0]+29)}),r}},{key:"encode",value:function(e){var r=this,t=[];e.forEach(function(i){switch(i.mode){case p.default.MODE_TC:t=t.concat(r.encodeTC(i));break;case p.default.MODE_BC:case p.default.MODE_BC6:case p.default.MODE_BC_SHIFT:t=t.concat(r.encodeBC(i));break;case p.default.MODE_NC:t=t.concat(r.encodeNC(i))}}),t[0]===p.default.MODE_TC&&t.shift(),this.data=t}},{key:"genEcc",value:function(){var e,r,t,i,h=this.data,b=this.ecl,_=this.columns,M=this.rows;if(b==="auto"&&(this.ecl=b=p.default.getAutoECL(h)),b=Math.pow(2,b+1),e=h.length+1+b,M==="auto"&&_==="auto")r=(t=p.default.getAutoRowAndCol(e)).col,t=t.row,this.columns=_=r,this.rows=M=t;else if(M==="auto"){if(90<(M=Math.ceil(e/_)))throw new m.BadArgumentsException({columns:_},"Columns is not large enough");this.rows=M=M<3?3:M}else if(_==="auto"){if(30<(_=Math.ceil(e/M)))throw new m.BadArgumentsException({rows:M},"Rows is not large enough");this.columns=_}if(h.unshift(i=_*M-b),h.length>p.default.MAX_DATA_NUM||h.length>i)throw new m.TextTooLargeException;for(;h.length<i;)h.push(p.default.PAD);this.ecc=(0,C.default)(h,this.ecl)}},{key:"fillMatrix",value:function(){var e,r=this.data,t=this.ecc,i=this.columns,h=this.rows,b=this.ecl,_=this.compact,M=(r=r.concat(t),p.default.createModules(h,i));return r.forEach(function(O,R){var N=Math.floor(R/i);M[N][R%i]=p.default.getPattern(N,O)}),e=[],M.forEach(function(O,R){var N=p.default.getPattern(R,p.default.getIndicator(R,h,b,i)),E=(R=p.default.getPattern(R,p.default.getIndicator(R,h,b,i,!0)),[p.default.START,N.toString(2)]);O.forEach(function(z){E.push(z.toString(2))}),_?E.push(p.default.COMPACT_END):(E.push(R.toString(2)),E.push(p.default.END)),e.push(E)}),e}},{key:"adjustDesiredSize",value:function(e){var r,t,i=this.config.desiredSize,h=this.quietZone,b=this.fontHeight,_=this.containerWidth,M=this.containerHeight;i&&(e=e[0].reduce(function(O,R){return O+R.length},0)+(0,y.getQuietZoneRelativeValue)(h.left)+(0,y.getQuietZoneRelativeValue)(h.right),_=_-(0,y.getQuietZonePixelValue)(h.left)-(0,y.getQuietZonePixelValue)(h.right),t=r=void 0,t=i.forceRounding?(r=~~(_/e))<1?1:r:r=_/e,M=M-(0,y.getQuietZonePixelValue)(h.top)-(0,y.getQuietZonePixelValue)(h.bottom),this.style.unitValue=t,this.style.fontSizeInUnit=b/t,this.height=M/t-(0,y.getQuietZoneRelativeValue)(h.top)-(0,y.getQuietZoneRelativeValue)(h.bottom),Object.keys(h).forEach(function(O){h[O].originIsAbsoluteValue&&(h[O].relativeValue=h[O].pixelValue/t)}))}},{key:"convertToShape",value:function(e){var r=this.height,t=this.quietZone,i=r/e.length,h=[],b=void 0,_=t.top.relativeValue;e.forEach(function(M){b=t.left.relativeValue,M.forEach(function(O){(0,y.combineTruthy)(O).forEach(function(R){R!==0?(h.push({type:"rect",x:b,y:_,width:R,height:i}),b+=R):b++})}),_+=i}),this.size={width:b+t.right.relativeValue,height:_+t.bottom.relativeValue},this.shapes=h}}]),g=n,A.default=g,u.default.registerEncoder("PDF417",g)},function(K,A,S){var k,w,u,p,y,C,f,m,g,c;function l(E){return-1<p[0].indexOf(E)}function s(E){return-1<p[1].indexOf(E)}function a(E){return-1<p[2].indexOf(E)}function o(E){return-1<p[3].indexOf(E)}function n(E){return l(E)||s(E)||a(E)||o(E)}function e(E,z){for(var D=z,Q=E.length,F=0;D<Q&&("0"<=E[D]&&E[D]<="9"?F++:F=0,n(E[D]));){if(13<=F){D-=--F;break}D++}return E.substring(z,D)}function r(E,z){for(var D=z,Q=E.length;D<Q&&!(E[D]<"0"||"9"<E[D]);)D++;return E.substring(z,D)}function t(E,z){for(var D=z,Q=E.length,F=0,L=0;D<Q;){if(E[D]<"0"||"9"<E[D]?F++:F=0,n(E[D])?L++:F=0,5<=L){D-=--L;break}if(13<=F){D-=--F;break}D++}return E.substring(z,D)}function i(E){for(var z,D=0,Q=E.length,F={mode:y,text:""},L=[];D<Q;)13<=(z=r(E,D)).length?(L.push(F={mode:f,text:z}),D+=z.length):5<=(z=e(E,D)).length?(L.push(F={mode:y,text:z}),D+=z.length):((z=t(E,D)).length===1&&F.mode==y?L.push(F={mode:g,text:z}):(F=z.length%6==0?{mode:m,text:z}:{mode:C,text:z},L.push(F)),D+=z.length);return L.forEach(function(T){var x,U,G,P,H;if(T.mode==y)for(T.subModes=U=[x={mode:"al",text:""}],G=0,P=T.text.length;G<P;G++)l(H=T.text[G])?G===0||x.mode==="al"?x.text+=H:(x=l(T.text[G+1])||x.mode!=="ll"?{mode:"al",text:H}:{mode:"as",text:H},U.push(x)):s(H)?x.mode==="ll"?x.text+=H:U.push(x={mode:"ll",text:H}):a(H)?x.mode==="pl"&&o(H)||x.mode==="ml"?x.text+=H:U.push(x={mode:"ml",text:H}):o(H)&&(x.mode==="pl"?x.text+=H:(x=o(T.text[G+1])?{mode:"pl",text:H}:{mode:"ps",text:H},U.push(x)))}),L}function h(E,z,D,Q,F){var L=~~(E/3),T=~~((z-1)/3),x=3*D+(z-1)%3,U=Q-1,G=void 0;switch(E%3*3){case 0:G=F?U:T;break;case 3:G=F?T:x;break;case 6:G=F?x:U}return 30*L+G}function b(E,z){return w[E%3][z]}function _(E,z){var D=void 0;switch(z){case"ll":D=p[1].indexOf(E);break;case"ml":D=p[2].indexOf(E);break;case"al":case"as":D=p[0].indexOf(E);break;case"pl":case"ps":D=p[3].indexOf(E)}return D}function M(E,z){var D=_(u[E],z);return-1<D?[D]:c[z][E]}function O(E,z){for(var D=[],Q=0;Q<E;Q++)D.push((0,k.fillArray)(new Array(z),null));return D}function R(E){return(E=E.length)<=40?2:E<=160?3:E<=320?4:5}function N(E){var z=31,D=void 0,Q=void 0;do if(z--,Q=(D=Math.ceil(E/z))/z,z<2)break;while(Q<4);return{col:z,row:D=D<3?3:D}}Object.defineProperty(A,"__esModule",{value:!0}),k=S(0),w=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]],p=["ABCDEFGHIJKLMNOPQRSTUVWXYZ \u2000\u2002\u2001","abcdefghijklmnopqrstuvwxyz \u2005\u2002\u2001","0123456789&\r ,:#-.$/+%*=^\u2004 \u2000\u2003\u2001",`;<>@[\\]_\`~!\r ,:
- -.$/"|*()?{}'\u2003`],c={al:{ll:[27],ml:[28],pl:[28,25]},ll:{al:[28,28],ml:[28],pl:[28,25]},ml:{al:[28],ll:[27],pl:[25]},pl:{al:[29],ll:[29,27],ml:[29,28]}},A.default={defaultConfig:{errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!(u={ll:"\u2000",ps:"\u2001",ml:"\u2002",al:"\u2003",pl:"\u2004",as:"\u2005"}),height:60,quietZone:{top:2,left:2,right:2,bottom:2}},compaction:i,getIndicator:h,MODE_TC:y=S=900,MODE_BC:C=901,MODE_NC:f=902,MODE_BC6:m=924,MODE_BC_SHIFT:g=913,getTCValue:_,PAD:S,createModules:O,getPattern:b,START:"11111111010101000",END:"111111101000101001",getAutoECL:R,subModeMap:u,getTCSubModeValue:M,MAX_DATA_NUM:925,COMPACT_END:"1",getAutoRowAndCol:N}},function(K,A,S){var k,w;function u(p,y){var C=w[y],f=Math.pow(2,y+1),m=(0,k.fillArray)(new Array(f),0);return p.forEach(function(g){for(var c=g+m[f-1],l=void 0,s=f-1;0<s;--s)l=c*C[s]%929,m[s]=(m[s-1]+(929-l))%929;l=c*C[0]%929,m[0]=(929-l)%929}),m.forEach(function(g,c){g!=0&&(m[c]=929-g)}),m.reverse()}Object.defineProperty(A,"__esModule",{value:!0}),A.default=u,k=S(0),w=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]]},function(K,A,S){var k;(function(){var w,u=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=Math.ceil,y=Math.floor,C=" not a boolean or binary digit",f="rounding mode",m="number type has more than 15 significant digits",g="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_",c=1e14,l=14,s=9007199254740991,a=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],o=1e7,n=1e9;function e(N){var E,z,D,Q,F,L,T,x,U,G=0,P=$.prototype,H=new $(1),n1=20,t1=4,Y=-7,u1=21,f1=-1e7,s1=1e7,i1=!0,o1=P1,r1=!1,h1=1,a1=0,d1={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"\xA0",fractionGroupSize:0};function $(d,v){var B,Z,I,q,V,j,W=this;if(!(W instanceof $))return new $(d,v);if(v!=null&&o1(v,2,64,G,"base")){if(j=d+"",(v|=0)==10)return C1(W=new $(d instanceof $?d:j),n1+W.e+1,t1);if((q=typeof d=="number")&&0*d!=0||!new RegExp("^-?"+(B="["+g.slice(0,v)+"]+")+"(?:\\."+B+")?$",v<37?"i":"").test(j))return z(W,j,q,v);q?(W.s=1/d<0?(j=j.slice(1),-1):1,i1&&15<j.replace(/^0\.0*|\./,"").length&&w1(G,m,d),q=!1):W.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1,j=v1(j,10,v,W.s)}else{if(d instanceof $)return W.s=d.s,W.e=d.e,W.c=(d=d.c)&&d.slice(),void(G=0);if((q=typeof d=="number")&&0*d==0){if(W.s=1/d<0?(d=-d,-1):1,d===~~d){for(Z=0,I=d;10<=I;I/=10,Z++);return W.e=Z,W.c=[d],void(G=0)}j=d+""}else{if(!u.test(j=d+""))return z(W,j,q);W.s=j.charCodeAt(0)===45?(j=j.slice(1),-1):1}}for(0<(I=(j=-1<(Z=j.indexOf("."))?j.replace(".",""):j).search(/e/i))?(Z<0&&(Z=I),Z+=+j.slice(I+1),j=j.substring(0,I)):Z<0&&(Z=j.length),I=0;j.charCodeAt(I)===48;I++);for(V=j.length;j.charCodeAt(--V)===48;);if(j=j.slice(I,V+1))if(V=j.length,q&&i1&&15<V&&(s<d||d!==y(d))&&w1(G,m,W.s*d),s1<(Z=Z-I-1))W.c=W.e=null;else if(Z<f1)W.c=[W.e=0];else{if(W.e=Z,W.c=[],I=(Z+1)%l,Z<0&&(I+=l),I<V){for(I&&W.c.push(+j.slice(0,I)),V-=l;I<V;)W.c.push(+j.slice(I,I+=l));j=j.slice(I),I=l-j.length}else I-=V;for(;I--;j+="0");W.c.push(+j)}else W.c=[W.e=0];G=0}function v1(d,v,B,Z){var I,q,V,j,W,X,l1,e1=d.indexOf("."),c1=n1,S1=t1;for(B<37&&(d=d.toLowerCase()),0<=e1&&(V=a1,a1=0,d=d.replace(".",""),W=(l1=new $(B)).pow(d.length-e1),a1=V,l1.c=_(O(t(W.c),W.e),10,v),l1.e=l1.c.length),q=V=(X=_(d,B,v)).length;X[--V]==0;X.pop());if(!X[0])return"0";if(e1<0?--q:(W.c=X,W.e=q,W.s=Z,X=(W=E(W,l1,c1,S1,v)).c,j=W.r,q=W.e),e1=X[I=q+c1+1],V=v/2,j=j||I<0||X[I+1]!=null,j=S1<4?(e1!=null||j)&&(S1==0||S1==(W.s<0?3:2)):V<e1||e1==V&&(S1==4||j||S1==6&&1&X[I-1]||S1==(W.s<0?8:7)),I<1||!X[0])d=j?O("1",-c1):"0";else{if(X.length=I,j)for(--v;++X[--I]>v;)X[I]=0,I||(++q,X=[1].concat(X));for(V=X.length;!X[--V];);for(e1=0,d="";e1<=V;d+=g.charAt(X[e1++]));d=O(d,q)}return d}function T1(d,v,B){var Z,I,q,V=0,j=d.length,W=v%o,X=v/o|0;for(d=d.slice();j--;)V=((I=W*(q=d[j]%o)+(Z=X*q+(q=d[j]/o|0)*W)%o*o+V)/B|0)+(Z/o|0)+X*q,d[j]=I%B;return V?[V].concat(d):d}function M1(d,v,B,Z){var I,q;if(B!=Z)q=Z<B?1:-1;else for(I=q=0;I<B;I++)if(d[I]!=v[I]){q=d[I]>v[I]?1:-1;break}return q}function D1(d,v,B,Z){for(var I=0;B--;)d[B]-=I,I=d[B]<v[B]?1:0,d[B]=I*Z+d[B]-v[B];for(;!d[0]&&1<d.length;d.splice(0,1));}function I1(d,v,B,Z){var I,q,V,j;if(B=B!=null&&o1(B,0,8,Z,f)?0|B:t1,!d.c)return d.toString();if(I=d.c[0],q=d.e,v==null)j=t(d.c),j=(Z==19||Z==24&&q<=Y?M:O)(j,q);else if(B=(d=C1(new $(d),v,B)).e,V=(j=t(d.c)).length,Z==19||Z==24&&(v<=B||B<=Y)){for(;V<v;j+="0",V++);j=M(j,B)}else if(v-=q,j=O(j,B),V<B+1){if(0<--v)for(j+=".";v--;j+="0");}else if(0<(v+=B-V))for(B+1==V&&(j+=".");v--;j+="0");return d.s<0&&I?"-"+j:j}function R1(d,v){for(var B,Z=0,I=new $((d=b(d[0])?d[0]:d)[0]);++Z<d.length;){if(!(B=new $(d[Z])).s){I=B;break}v.call(I,B)&&(I=B)}return I}function P1(d,v,B,Z,I){return(d<v||B<d||d!=R(d))&&w1(Z,(I||"decimal places")+(d<v||B<d?" out of range":" not an integer"),d),!0}function B1(d,v,B){for(var Z=1,I=v.length;!v[--I];v.pop());for(I=v[0];10<=I;I/=10,Z++);return(B=Z+B*l-1)>s1?d.c=d.e=null:B<f1?d.c=[d.e=0]:(d.e=B,d.c=v),d}function w1(d,v,B){throw(d=new Error(["new BigNumber","cmp","config","div","divToInt","eq","gt","gte","lt","lte","minus","mod","plus","precision","random","round","shift","times","toDigits","toExponential","toFixed","toFormat","toFraction","pow","toPrecision","toString","BigNumber"][d]+"() "+v+": "+B)).name="BigNumber Error",G=0,d}function C1(d,v,B,Z){var I,q,V,j,W,X,l1,e1=d.c,c1=a;if(e1){e:{for(I=1,j=e1[0];10<=j;j/=10,I++);if((q=v-I)<0)q+=l,V=v,l1=(W=e1[X=0])/c1[I-V-1]%10|0;else if((X=p((q+1)/l))>=e1.length){if(!Z)break e;for(;e1.length<=X;e1.push(0));W=l1=0,V=(q%=l)-l+(I=1)}else{for(W=j=e1[X],I=1;10<=j;j/=10,I++);l1=(V=(q%=l)-l+I)<0?0:W/c1[I-V-1]%10|0}if(Z=Z||v<0||e1[X+1]!=null||(V<0?W:W%c1[I-V-1]),Z=B<4?(l1||Z)&&(B==0||B==(d.s<0?3:2)):5<l1||l1==5&&(B==4||Z||B==6&&(0<q?0<V?W/c1[I-V]:0:e1[X-1])%10&1||B==(d.s<0?8:7)),v<1||!e1[0])return e1.length=0,Z?(v-=d.e+1,e1[0]=c1[(l-v%l)%l],d.e=-v||0):e1[0]=d.e=0,d;if(q==0?(e1.length=X,j=1,X--):(e1.length=X+1,j=c1[l-q],e1[X]=0<V?y(W/c1[I-V]%c1[V])*j:0),Z)for(;;){if(X==0){for(q=1,V=e1[0];10<=V;V/=10,q++);for(V=e1[0]+=j,j=1;10<=V;V/=10,j++);q!=j&&(d.e++,e1[0]==c)&&(e1[0]=1);break}if(e1[X]+=j,e1[X]!=c)break;e1[X--]=0,j=1}for(q=e1.length;e1[--q]===0;e1.pop());}d.e>s1?d.c=d.e=null:d.e<f1&&(d.c=[d.e=0])}return d}return $.another=e,$.ROUND_UP=0,$.ROUND_DOWN=1,$.ROUND_CEIL=2,$.ROUND_FLOOR=3,$.ROUND_HALF_UP=4,$.ROUND_HALF_DOWN=5,$.ROUND_HALF_EVEN=6,$.ROUND_HALF_CEIL=7,$.ROUND_HALF_FLOOR=8,$.EUCLID=9,$.config=$.set=function(){var d,v,B=0,Z={},I=arguments,q=I[0],V=q&&typeof q=="object"?function(){if(q.hasOwnProperty(v))return(d=q[v])!=null}:function(){if(B<I.length)return(d=I[B++])!=null};return V(v="DECIMAL_PLACES")&&o1(d,0,n,2,v)&&(n1=0|d),Z[v]=n1,V(v="ROUNDING_MODE")&&o1(d,0,8,2,v)&&(t1=0|d),Z[v]=t1,V(v="EXPONENTIAL_AT")&&(b(d)?o1(d[0],-n,0,2,v)&&o1(d[1],0,n,2,v)&&(Y=0|d[0],u1=0|d[1]):o1(d,-n,n,2,v)&&(Y=-(u1=0|(d<0?-d:d)))),Z[v]=[Y,u1],V(v="RANGE")&&(b(d)?o1(d[0],-n,-1,2,v)&&o1(d[1],1,n,2,v)&&(f1=0|d[0],s1=0|d[1]):o1(d,-n,n,2,v)&&(0|d?f1=-(s1=0|(d<0?-d:d)):i1&&w1(2,v+" cannot be zero",d))),Z[v]=[f1,s1],V(v="ERRORS")&&(d===!!d||d===1||d===0?(G=0,o1=(i1=!!d)?P1:h):i1&&w1(2,v+C,d)),Z[v]=i1,V(v="CRYPTO")&&(d===!0||d===!1||d===1||d===0?d?!(d=typeof crypto>"u")&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?r1=!0:i1?w1(2,"crypto unavailable",d?void 0:crypto):r1=!1:r1=!1:i1&&w1(2,v+C,d)),Z[v]=r1,V(v="MODULO_MODE")&&o1(d,0,9,2,v)&&(h1=0|d),Z[v]=h1,V(v="POW_PRECISION")&&o1(d,0,n,2,v)&&(a1=0|d),Z[v]=a1,V(v="FORMAT")&&(typeof d=="object"?d1=d:i1&&w1(2,v+" not an object",d)),Z[v]=d1,Z},$.max=function(){return R1(arguments,P.lt)},$.min=function(){return R1(arguments,P.gt)},$.random=(D=9007199254740992,Q=Math.random()*D&2097151?function(){return y(Math.random()*D)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(d){var v,B,Z,I,q,V=0,j=[],W=new $(H);if(d=d!=null&&o1(d,0,n,14)?0|d:n1,I=p(d/l),r1)if(crypto.getRandomValues){for(v=crypto.getRandomValues(new Uint32Array(I*=2));V<I;)9e15<=(q=131072*v[V]+(v[V+1]>>>11))?(B=crypto.getRandomValues(new Uint32Array(2)),v[V]=B[0],v[V+1]=B[1]):(j.push(q%1e14),V+=2);V=I/2}else if(crypto.randomBytes){for(v=crypto.randomBytes(I*=7);V<I;)9e15<=(q=281474976710656*(31&v[V])+1099511627776*v[V+1]+4294967296*v[V+2]+16777216*v[V+3]+(v[V+4]<<16)+(v[V+5]<<8)+v[V+6])?crypto.randomBytes(7).copy(v,V):(j.push(q%1e14),V+=7);V=I/7}else r1=!1,i1&&w1(14,"crypto unavailable",crypto);if(!r1)for(;V<I;)(q=Q())<9e15&&(j[V++]=q%1e14);for(I=j[--V],d%=l,I&&d&&(j[V]=y(I/(q=a[l-d]))*q);j[V]===0;j.pop(),V--);if(V<0)j=[Z=0];else{for(Z=-1;j[0]===0;j.splice(0,1),Z-=l);for(V=1,q=j[0];10<=q;q/=10,V++);V<l&&(Z-=l-V)}return W.e=Z,W.c=j,W}),E=function(d,v,B,Z,I){var q,V,j,W,X,l1,e1,c1,S1,p1,m1,x1,A1,V1,Z1,E1,j1,O1=d.s==v.s?1:-1,_1=d.c,b1=v.c;if(!(_1&&_1[0]&&b1&&b1[0]))return new $(d.s&&v.s&&(_1?!b1||_1[0]!=b1[0]:b1)?_1&&_1[0]==0||!b1?0*O1:O1/0:NaN);for(S1=(c1=new $(O1)).c=[],O1=B+(V=d.e-v.e)+1,I||(I=c,V=r(d.e/l)-r(v.e/l),O1=O1/l|0),j=0;b1[j]==(_1[j]||0);j++);if(b1[j]>(_1[j]||0)&&V--,O1<0)S1.push(1),W=!0;else{for(V1=_1.length,E1=b1.length,O1+=2,1<(X=y(I/(b1[j=0]+1)))&&(b1=T1(b1,X,I),_1=T1(_1,X,I),E1=b1.length,V1=_1.length),A1=E1,m1=(p1=_1.slice(0,E1)).length;m1<E1;p1[m1++]=0);j1=b1.slice(),j1=[0].concat(j1),Z1=b1[0],b1[1]>=I/2&&Z1++;do if(X=0,(q=M1(b1,p1,E1,m1))<0){if(x1=p1[0],E1!=m1&&(x1=x1*I+(p1[1]||0)),1<(X=y(x1/Z1)))for(e1=(l1=T1(b1,X=I<=X?I-1:X,I)).length,m1=p1.length;M1(l1,p1,e1,m1)==1;)X--,D1(l1,E1<e1?j1:b1,e1,I),e1=l1.length,q=1;else X==0&&(q=X=1),e1=(l1=b1.slice()).length;if(D1(p1,l1=e1<m1?[0].concat(l1):l1,m1,I),m1=p1.length,q==-1)for(;M1(b1,p1,E1,m1)<1;)X++,D1(p1,E1<m1?j1:b1,m1,I),m1=p1.length}else q===0&&(X++,p1=[0]);while(S1[j++]=X,p1[0]?p1[m1++]=_1[A1]||0:(p1=[_1[A1]],m1=1),(A1++<V1||p1[0]!=null)&&O1--);W=p1[0]!=null,S1[0]||S1.splice(0,1)}if(I==c){for(j=1,O1=S1[0];10<=O1;O1/=10,j++);C1(c1,B+(c1.e=j+V*l-1)+1,Z,W)}else c1.e=V,c1.r=+W;return c1},F=/^(-?)0([xbo])(?=\w[\w.]*$)/i,L=/^([^.]+)\.$/,T=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,U=/^\s*\+(?=[\w.])|^\s+|\s+$/g,z=function(d,v,B,Z){var I,q=B?v:v.replace(U,"");if(x.test(q))d.s=isNaN(q)?null:q<0?-1:1;else{if(!B&&(q=q.replace(F,function(V,j,W){return I=(W=W.toLowerCase())=="x"?16:W=="b"?2:8,Z&&Z!=I?V:j}),Z&&(I=Z,q=q.replace(L,"$1").replace(T,"0.$1")),v!=q))return new $(q,I);i1&&w1(G,"not a"+(Z?" base "+Z:"")+" number",v),d.s=null}d.c=d.e=null,G=0},P.absoluteValue=P.abs=function(){var d=new $(this);return d.s<0&&(d.s=1),d},P.ceil=function(){return C1(new $(this),this.e+1,2)},P.comparedTo=P.cmp=function(d,v){return G=1,i(this,new $(d,v))},P.decimalPlaces=P.dp=function(){var d,v,B=this.c;if(!B)return null;if(d=((v=B.length-1)-r(this.e/l))*l,v=B[v])for(;v%10==0;v/=10,d--);return d<0?0:d},P.dividedBy=P.div=function(d,v){return G=3,E(this,new $(d,v),n1,t1)},P.dividedToIntegerBy=P.divToInt=function(d,v){return G=4,E(this,new $(d,v),0,1)},P.equals=P.eq=function(d,v){return G=5,i(this,new $(d,v))===0},P.floor=function(){return C1(new $(this),this.e+1,3)},P.greaterThan=P.gt=function(d,v){return G=6,0<i(this,new $(d,v))},P.greaterThanOrEqualTo=P.gte=function(d,v){return G=7,(v=i(this,new $(d,v)))===1||v===0},P.isFinite=function(){return!!this.c},P.isInteger=P.isInt=function(){return!!this.c&&r(this.e/l)>this.c.length-2},P.isNaN=function(){return!this.s},P.isNegative=P.isNeg=function(){return this.s<0},P.isZero=function(){return!!this.c&&this.c[0]==0},P.lessThan=P.lt=function(d,v){return G=8,i(this,new $(d,v))<0},P.lessThanOrEqualTo=P.lte=function(d,v){return G=9,(v=i(this,new $(d,v)))===-1||v===0},P.minus=P.sub=function(d,v){var B,Z,I,q,V,j,W,X,l1,e1=(l1=this).s;if(G=10,v=(d=new $(d,v)).s,!e1||!v)return new $(NaN);if(e1!=v)return d.s=-v,l1.plus(d);if(V=l1.e/l,j=d.e/l,W=l1.c,X=d.c,!V||!j){if(!W||!X)return W?(d.s=-v,d):new $(X?l1:NaN);if(!W[0]||!X[0])return X[0]?(d.s=-v,d):new $(W[0]?l1:t1==3?-0:0)}if(V=r(V),j=r(j),W=W.slice(),e1=V-j){for((I=(q=e1<0)?(e1=-e1,W):(j=V,X)).reverse(),v=e1;v--;I.push(0));I.reverse()}else for(Z=(q=(e1=W.length)<(v=X.length))?e1:v,e1=v=0;v<Z;v++)if(W[v]!=X[v]){q=W[v]<X[v];break}if(q&&(I=W,W=X,X=I,d.s=-d.s),0<(v=(Z=X.length)-(B=W.length)))for(;v--;W[B++]=0);for(v=c-1;e1<Z;){if(W[--Z]<X[Z]){for(B=Z;B&&!W[--B];W[B]=v);--W[B],W[Z]+=c}W[Z]-=X[Z]}for(;W[0]==0;W.splice(0,1),--j);return W[0]?B1(d,W,j):(d.s=t1==3?-1:1,d.c=[d.e=0],d)},P.modulo=P.mod=function(d,v){var B,Z=this;return G=11,d=new $(d,v),!Z.c||!d.s||d.c&&!d.c[0]?new $(NaN):!d.c||Z.c&&!Z.c[0]?new $(Z):(h1==9?(v=d.s,d.s=1,B=E(Z,d,0,3),d.s=v,B.s*=v):B=E(Z,d,0,h1),Z.minus(B.times(d)))},P.negated=P.neg=function(){var d=new $(this);return d.s=-d.s||null,d},P.plus=P.add=function(d,v){var B,Z,I,q,V,j,W=(j=this).s;if(G=12,v=(d=new $(d,v)).s,!W||!v)return new $(NaN);if(W!=v)return d.s=-v,j.minus(d);if(Z=j.e/l,I=d.e/l,q=j.c,V=d.c,!Z||!I){if(!q||!V)return new $(W/0);if(!q[0]||!V[0])return V[0]?d:new $(q[0]?j:0*W)}if(Z=r(Z),I=r(I),q=q.slice(),W=Z-I){for((B=0<W?(I=Z,V):(W=-W,q)).reverse();W--;B.push(0));B.reverse()}for((W=q.length)-(v=V.length)<0&&(B=V,V=q,q=B,v=W),W=0;v;)W=(q[--v]=q[v]+V[v]+W)/c|0,q[v]=c===q[v]?0:q[v]%c;return W&&(q=[W].concat(q),++I),B1(d,q,I)},P.precision=P.sd=function(d){var v,B,Z=this,I=Z.c;if(d!=null&&d!==!!d&&d!==1&&d!==0&&(i1&&w1(13,"argument"+C,d),d!=!!d)&&(d=null),!I)return null;if(v=(B=I.length-1)*l+1,B=I[B]){for(;B%10==0;B/=10,v--);for(B=I[0];10<=B;B/=10,v++);}return d&&Z.e+1>v?Z.e+1:v},P.round=function(d,v){var B=new $(this);return d!=null&&!o1(d,0,n,15)||C1(B,~~d+this.e+1,v!=null&&o1(v,0,8,15,f)?0|v:t1),B},P.shift=function(d){var v=this;return o1(d,-s,s,16,"argument")?v.times("1e"+R(d)):new $(v.c&&v.c[0]&&(d<-s||s<d)?v.s*(d<0?0:1/0):v)},P.squareRoot=P.sqrt=function(){var d,v,B,Z,I,q=this,V=q.c,j=q.s,W=q.e,X=n1+4,l1=new $("0.5");if(j!==1||!V||!V[0])return new $(!j||j<0&&(!V||V[0])?NaN:V?q:1/0);if((B=(j=Math.sqrt(+q))==0||j==1/0?(((v=t(V)).length+W)%2==0&&(v+="0"),j=Math.sqrt(v),W=r((W+1)/2)-(W<0||W%2),new $(v=j==1/0?"1e"+W:(v=j.toExponential()).slice(0,v.indexOf("e")+1)+W)):new $(j+"")).c[0]){for((j=(W=B.e)+X)<3&&(j=0);;)if(I=B,B=l1.times(I.plus(E(q,I,X,1))),t(I.c).slice(0,j)===(v=t(B.c)).slice(0,j)){if(B.e<W&&--j,(v=v.slice(j-3,j+1))!="9999"&&(Z||v!="4999")){+v&&(+v.slice(1)||v.charAt(0)!="5")||(C1(B,B.e+n1+2,1),d=!B.times(B).eq(q));break}if(!Z&&(C1(I,I.e+n1+2,0),I.times(I).eq(q))){B=I;break}X+=4,j+=4,Z=1}}return C1(B,B.e+n1+1,t1,d)},P.times=P.mul=function(d,v){var B,Z,I,q,V,j,W,X,l1,e1,c1,S1,p1,m1,x1=(m1=this).c,A1=(G=17,(d=new $(d,v)).c);if(!(x1&&A1&&x1[0]&&A1[0]))return!m1.s||!d.s||x1&&!x1[0]&&!A1||A1&&!A1[0]&&!x1?d.c=d.e=d.s=null:(d.s*=m1.s,x1&&A1?(d.c=[0],d.e=0):d.c=d.e=null),d;for(v=r(m1.e/l)+r(d.e/l),d.s*=m1.s,(j=x1.length)<(m1=A1.length)&&(c1=x1,x1=A1,A1=c1,Z=j,j=m1,m1=Z),Z=j+m1,c1=[];Z--;c1.push(0));for(S1=c,p1=o,Z=m1;0<=--Z;){for(l1=A1[Z]%p1,e1=A1[Z]/p1|(B=0),I=Z+(q=j);Z<I;)B=((W=l1*(W=x1[--q]%p1)+(V=e1*W+(X=x1[q]/p1|0)*l1)%p1*p1+c1[I]+B)/S1|0)+(V/p1|0)+e1*X,c1[I--]=W%S1;c1[I]=B}return B?++v:c1.splice(0,1),B1(d,c1,v)},P.toDigits=function(d,v){var B=new $(this);return d=d!=null&&o1(d,1,n,18,"precision")?0|d:null,v=v!=null&&o1(v,0,8,18,f)?0|v:t1,d?C1(B,d,v):B},P.toExponential=function(d,v){return I1(this,d!=null&&o1(d,0,n,19)?1+~~d:null,v,19)},P.toFixed=function(d,v){return I1(this,d!=null&&o1(d,0,n,20)?~~d+this.e+1:null,v,20)},P.toFormat=function(d,v){var B,Z,I,q,V,j,W,X;if(d=I1(this,d!=null&&o1(d,0,n,21)?~~d+this.e+1:null,v,21),this.c){if(v=d.split("."),Z=+d1.groupSize,I=+d1.secondaryGroupSize,q=d1.groupSeparator,V=v[0],v=v[1],X=(W=(j=this.s<0)?V.slice(1):V).length,I&&(B=Z,Z=I,X-=I=B),0<Z&&0<X){for(V=W.substr(0,B=X%Z||Z);B<X;B+=Z)V+=q+W.substr(B,Z);0<I&&(V+=q+W.slice(B)),j&&(V="-"+V)}d=v?V+d1.decimalSeparator+((I=+d1.fractionGroupSize)?v.replace(new RegExp("\\d{"+I+"}\\B","g"),"$&"+d1.fractionGroupSeparator):v):V}return d},P.toFraction=function(d){var v,B,Z,I,q,V,j=i1,W=this,X=W.c,l1=new $(H),e1=v=new $(H),c1=q=new $(H);if(d!=null&&(i1=!1,I=new $(d),i1=j,(j=I.isInt())&&!I.lt(H)||(i1&&w1(22,"max denominator "+(j?"out of range":"not an integer"),d),d=!j&&I.c&&C1(I,I.e+1,1).gte(H)?I:null)),!X)return W.toString();for(j=t(X),X=l1.e=j.length-W.e-1,l1.c[0]=a[(Z=X%l)<0?l+Z:Z],d=!d||0<I.cmp(l1)?0<X?l1:e1:I,Z=s1,s1=1/0,I=new $(j),q.c[0]=0;V=E(I,l1,0,1),(B=v.plus(V.times(c1))).cmp(d)!=1;)v=c1,c1=B,e1=q.plus(V.times(B=e1)),q=B,l1=I.minus(V.times(B=l1)),I=B;return B=E(d.minus(v),c1,0,1),q=q.plus(B.times(e1)),v=v.plus(B.times(c1)),q.s=e1.s=W.s,j=E(e1,c1,X*=2,t1).minus(W).abs().cmp(E(q,v,X,t1).minus(W).abs())<1?[e1.toString(),c1.toString()]:[q.toString(),v.toString()],s1=Z,j},P.toNumber=function(){return+this},P.toPower=P.pow=function(d,v){var B,Z,I,q=y(d<0?-d:+d),V=this;if(v!=null&&(G=23,v=new $(v)),!o1(d,-s,s,23,"exponent")&&(!isFinite(d)||s<q&&(d/=0)||parseFloat(d)!=d&&!(d=NaN))||d==0)return B=Math.pow(+V,d),new $(v?B%v:B);for(v?1<d&&V.gt(H)&&V.isInt()&&v.gt(H)&&v.isInt()?V=V.mod(v):(I=v,v=null):a1&&(B=p(a1/l+2)),Z=new $(H);;){if(q%2){if(!(Z=Z.times(V)).c)break;B?Z.c.length>B&&(Z.c.length=B):v&&(Z=Z.mod(v))}if(!(q=y(q/2)))break;V=V.times(V),B?V.c&&V.c.length>B&&(V.c.length=B):v&&(V=V.mod(v))}return v?Z:(d<0&&(Z=H.div(Z)),I?Z.mod(I):B?C1(Z,a1,t1):Z)},P.toPrecision=function(d,v){return I1(this,d!=null&&o1(d,1,n,24,"precision")?0|d:null,v,24)},P.toString=function(d){var v,B=this,Z=B.s,I=B.e;return I===null?Z?(v="Infinity",Z<0&&(v="-"+v)):v="NaN":(v=t(B.c),v=d!=null&&o1(d,2,64,25,"base")?v1(O(v,I),0|d,10,Z):(I<=Y||u1<=I?M:O)(v,I),Z<0&&B.c[0]&&(v="-"+v)),v},P.truncated=P.trunc=function(){return C1(new $(this),this.e+1,1)},P.valueOf=P.toJSON=function(){var d,v=this,B=v.e;return B===null?v.toString():(d=t(v.c),d=(B<=Y||u1<=B?M:O)(d,B),v.s<0?"-"+d:d)},P.isBigNumber=!0,N!=null&&$.config(N),$}function r(N){var E=0|N;return 0<N||N===E?E:E-1}function t(N){for(var E,z,D=1,Q=N.length,F=N[0]+"";D<Q;){for(E=N[D++]+"",z=l-E.length;z--;E="0"+E);F+=E}for(Q=F.length;F.charCodeAt(--Q)===48;);return F.slice(0,Q+1||1)}function i(N,E){var z,D,Q=N.c,F=E.c,L=N.s,T=E.s;if(N=N.e,E=E.e,!L||!T)return null;if(z=Q&&!Q[0],D=F&&!F[0],z||D)return z?D?0:-T:L;if(L!=T)return L;if(z=L<0,D=N==E,!Q||!F)return D?0:!Q^z?1:-1;if(!D)return E<N^z?1:-1;for(T=(N=Q.length)<(E=F.length)?N:E,L=0;L<T;L++)if(Q[L]!=F[L])return Q[L]>F[L]^z?1:-1;return N==E?0:E<N^z?1:-1}function h(N,E,z){return(N=R(N))>=E&&N<=z}function b(N){return Object.prototype.toString.call(N)=="[object Array]"}function _(N,E,z){for(var D,Q,F=[0],L=0,T=N.length;L<T;){for(Q=F.length;Q--;F[Q]*=E);for(F[D=0]+=g.indexOf(N.charAt(L++));D<F.length;D++)z-1<F[D]&&(F[D+1]==null&&(F[D+1]=0),F[D+1]+=F[D]/z|0,F[D]%=z)}return F.reverse()}function M(N,E){return(1<N.length?N.charAt(0)+"."+N.slice(1):N)+(E<0?"e":"e+")+E}function O(N,E){var z,D;if(E<0){for(D="0.";++E;D+="0");N=D+N}else if(++E>(z=N.length)){for(D="0",E-=z;--E;D+="0");N+=D}else E<z&&(N=N.slice(0,E)+"."+N.slice(E));return N}function R(N){return((N=parseFloat(N))<0?p:y)(N)}(w=e()).default=w.BigNumber=w,(k=(function(){return w}).call(A,S,A,K))!==void 0&&(K.exports=k)})()},function(K,A,S){var k,w,u,p,y,C,f,m,g;function c(e,r){for(var t,i=0;i<r.length;i++)(t=r[i]).enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}function l(e){return e&&e.__esModule?e:{default:e}}function s(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(e)return!r||typeof r!="object"&&typeof r!="function"?e:r;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function o(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function n(e){var r;return s(this,n),r=new((e=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,p.default.defaultConfig))).config.model=="2"?C:y).default(e.config).getMatrix(),e.adjustDesiredSize(r),e.convertToShape(r),e}Object.defineProperty(A,"__esModule",{value:!0}),k=function(e,r,t){return r&&c(e.prototype,r),t&&c(e,t),e},w=l(w=S(7)),u=l(S(2)),g=S(3),p=l(g),g=S(54),y=l(g),g=S(56),C=l(g),f=S(1),m=S(0),o(n,w.default),k(n,[{key:"validate",value:function(){var e=(b=this.config).version,r=b.model,t=b.charset,i=b.text,h=b.charCode,b=b.connectionNo;if(!(i||h&&h.length!==0))throw new f.InvalidTextException(i);if(r!="1"&&r!="2")throw new f.BadArgumentsException({model:r});if(t!="UTF-8"&&t!="Shift_JIS")throw new f.BadArgumentsException({charset:t});if(r=="1"&&(0,m.isNumberLike)(e)&&(e<1||14<e))throw new f.BadArgumentsException({version:e},"Model 1 only support version 1 - 14.");if(r=="2"&&(0,m.isNumberLike)(e)&&(e<1||40<e))throw new f.BadArgumentsException({version:e},"Model 2 only support version 1 - 40.");if(15<b||b<0)throw new f.BadArgumentsException({connectionNo:b},"ConnectionNo is in range 0 - 15.")}}]),g=n,A.default=g,u.default.registerEncoder("QRCode",g)},function(K,A,S){var k,w,u,p,y,C,f,m,g,c;function l(r,t){for(var i,h=0;h<t.length;h++)(i=t[h]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,i.key,i)}function s(r){return r&&r.__esModule?r:{default:r}}function a(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function o(r,t){if(r)return!t||typeof t!="object"&&typeof t!="function"?r:t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function n(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}function e(){return a(this,e),o(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}Object.defineProperty(A,"__esModule",{value:!0}),k=function(r,t,i){return t&&l(r.prototype,t),i&&l(r,i),r},w=S(0),p=S(3),u=s(p),p=s(p=S(14)),g=S(15),y=s(g),g=S(16),C=s(g),g=S(17),f=s(g),g=S(18),m=s(g),g=S(19),c=s(g),n(e,p.default),k(e,[{key:"encodeData",value:function(r,t){var i,h=this,b=this.charCountIndicatorBitsNumber,_=this.charCode;return(i=new c.default).put(0,4),t&&(i.put(u.default.MODE_INDICATOR.StructuredAppend,4),i.put(t.connectionNo,4),i.put(t.connectionCnt-1,4),i.put(u.default.getParityData(_,this.config.charset),8)),r.forEach(function(M){if(M.code){var O=void 0;switch(M.mode){case"Numeric":O=new C.default(M.code);break;case"Alphanumeric":O=new f.default(M.code);break;case"8BitByte":O=new y.default(M.code,h.config.charset);break;case"Kanji":O=new m.default(M.code)}i.put(O.getMode(),4),i.put(O.getLength(),b[O.mode]),O.write(i)}}),i}},{key:"getFinalMessage",value:function(r){var t=[],i=r.map(function(h){return h.data});return r=r.map(function(h){return h.ec}),i.forEach(function(h){return t=t.concat(h)}),r.forEach(function(h){return t=t.concat(h)}),t}},{key:"setModules",value:function(r){var t=this.modulesCount;this.modules=u.default.createModules(t),this.addPositionDetectionPattern(),this.addExtensionPattern(),this.addTimingPattern(),this.maskModules(r)}},{key:"maskModules",value:function(r){var t,i,h=this.modules,b=this.errorCorrectionLevel,_=this.model;(i=this.config.mask)==="auto"&&(i=this.autoMask(r)),t=u.default.getMaskFunc(i),this.maskPattern=i,h=u.default.addFormatInformation(h,i,b,_),this.modules=this.fillDataModules(h,r,t)}},{key:"autoMask",value:function(r){var t=this,i=this.modules,h=this.errorCorrectionLevel,b=this.model,_=void 0,M=void 0;return u.default.maskFuncs.forEach(function(O,R){var N=u.default.addFormatInformation(i,R,h,b,!0);N=t.fillDataModules(N,r,O),O=u.default.getMaskScore(N),(!_||O<_)&&(_=O,M=R)}),M}},{key:"addExtensionPattern",value:function(){var r,t,i,h,b=this.modules,_=this.version;if(b[(h=b.length)-1][h-1]=1,b[h-2][h-1]=0,b[h-1][h-2]=0,b[h-2][h-2]=0,r=Math.floor(_/2),(0,w.isEven)(_))for(t=0;t<r;t++)this.addBaseExtension(13+8*t),this.addRightExtension(13+8*t);else for(i=0;i<r;i++)this.addBaseExtension(17+8*i),this.addRightExtension(17+8*i)}},{key:"addBaseExtension",value:function(r){var t,i=(h=(t=this.modules).length)-2,h=h-1;t[i][r]=0,t[i][r+1]=0,t[i][r+2]=0,t[i][r+3]=0,t[h][r]=1,t[h][r+1]=1,t[h][r+2]=1,t[h][r+3]=1}},{key:"addRightExtension",value:function(r){var t,i=(h=(t=this.modules).length)-2,h=h-1;t[r][i]=0,t[r+1][i]=0,t[r+2][i]=0,t[r+3][i]=0,t[r][h]=1,t[r+1][h]=1,t[r+2][h]=1,t[r+3][h]=1}},{key:"fillDataModules",value:function(r,t,i){var h,b,_,M,O,R=void 0,N=void 0;for(R=N=(O=r.length)-1,h=2,(b=new c.default(t)).next(),b.next(),b.next(),b.next();0<=R;){if(R==O-5)h=4;else if(R==8)h=2;else if(R==6){R--;continue}for(;0<=N;){if(r[N][R]===null)for(_=0;_<h;_++)M=b.next(),i(N,R-_)&&(M=!M),r[N][R-_]=+M;N--}R-=h,N=O-1}return r}},{key:"getMatrix",value:function(){var r=this.charCode;return r=this.analysisData(r),r=this.encodeData(r),r=this.processConnection(r),this.padBuffer(r),r=this.generateErrorCorrectionCode(r),r=this.getFinalMessage(r),this.setModules(r),this.modules}}]),S=e,A.default=S},function(K,A,S){var k,w,u,p,y,C;for(Object.defineProperty(A,"__esModule",{value:!0}),A.default=f,k=new Array(256),w=0;w<8;w++)k[w]=1<<w;for(u=8;u<256;u++)k[u]=k[u-4]^k[u-5]^k[u-6]^k[u-8];for(p=new Array(256),y=0;y<255;y+=1)p[k[y]]=y;function f(m,g,c){for(var l,s,a,o,n,e=[],r=C[g],t=m.slice(0),i=0;i<c;i++){if(t[0]!=0){for(l=p[t[0]],s=0;s<=r.length-1;s++){for(a=r[s]+l;255<=a;)a-=255;e[s]=k[a]}for(o=0;o<=r.length-1;o++)t[o]=t[o]^e[o]}for(n=1;n<t.length;n++)t[n-1]=t[n];t[t.length-1]=0}return t.slice(0,g)}C=[null,null,null,null,null,null,null,[0,87,229,146,149,238,102,21],null,null,[0,251,67,46,61,118,70,64,94,32,45],null,null,[0,74,152,176,100,86,100,106,104,130,218,206,140,78],null,[0,8,183,61,91,202,37,51,58,58,237,140,124,5,99,105],[0,120,104,107,109,102,161,76,3,91,191,147,169,182,194,225,120],[0,43,139,206,78,43,239,123,206,214,147,24,99,150,39,243,163,136],[0,215,234,158,94,184,97,118,170,79,187,152,148,252,179,5,98,96,153],null,[0,17,60,79,50,61,163,26,187,202,180,221,225,83,239,156,164,212,212,188,190],null,[0,210,171,247,242,93,230,14,109,221,53,200,74,8,172,98,80,219,134,160,105,165,231],null,[0,229,121,135,48,211,117,251,126,159,180,169,152,192,226,228,218,111,0,117,232,87,96,227,21],null,[0,173,125,158,2,103,182,118,17,145,201,111,28,165,53,161,21,245,142,13,102,48,227,153,145,218,70],null,[0,168,223,200,104,224,234,108,180,110,190,195,147,205,27,232,201,21,43,245,87,42,195,212,119,242,37,9,123],null,[0,41,173,145,152,216,31,179,182,50,48,110,86,239,96,222,125,42,173,226,193,224,130,156,37,251,216,238,40,192,180],null,[0,10,6,106,190,249,167,4,67,209,138,138,32,242,123,89,27,120,185,80,156,38,69,171,60,28,222,80,52,254,185,220,241],null,[0,111,77,146,94,26,21,108,19,105,94,113,193,86,140,163,125,58,158,229,239,218,103,56,70,114,61,183,129,167,13,98,62,129,51],null,[0,200,183,98,16,172,31,246,234,60,152,115,0,167,152,113,248,238,107,18,63,218,37,87,210,105,177,120,74,121,196,117,251,113,233,30,120],null,null,null,[0,59,116,79,161,252,98,128,205,128,161,247,57,163,56,235,106,53,26,187,174,226,104,170,7,175,35,181,114,88,41,47,163,125,134,72,20,232,53,35,15],null,[0,250,103,221,230,25,18,137,231,0,3,58,242,221,191,110,84,230,8,188,106,96,147,15,131,139,34,101,223,39,101,213,199,237,254,201,123,171,162,194,117,50,96],null,[0,190,7,61,121,71,246,69,55,168,188,89,243,191,25,72,123,9,145,14,247,1,238,44,78,143,62,224,126,118,114,68,163,52,194,217,147,204,169,37,130,113,102,73,181],null,[0,112,94,88,112,253,224,202,115,187,99,89,5,54,113,129,44,58,16,135,216,169,211,36,1,4,96,60,241,73,104,234,8,249,245,119,174,52,25,157,224,43,202,223,19,82,15],null,[0,228,25,196,130,211,146,60,24,251,90,39,102,240,61,178,63,46,123,115,18,221,111,135,160,182,205,107,206,95,150,120,184,91,21,247,156,140,238,191,11,94,227,84,50,163,39,34,108],null,[0,232,125,157,161,164,9,118,46,209,99,203,193,35,3,209,111,195,242,203,225,46,13,32,160,126,209,130,160,242,215,242,75,77,42,189,32,113,65,124,69,228,114,235,175,124,170,215,232,133,205],null,[0,116,50,86,186,50,220,251,89,192,46,86,127,124,19,184,233,151,215,22,14,59,145,37,242,203,134,254,89,190,94,59,65,124,113,100,233,235,121,22,76,86,97,39,242,200,220,101,33,239,254,116,51],null,[0,183,26,201,87,210,221,113,21,46,65,45,50,238,184,249,225,102,58,209,218,109,165,26,95,184,192,52,245,35,254,238,175,172,79,123,25,122,43,120,108,215,80,128,201,235,8,153,59,101,31,198,76,31,156],null,[0,106,120,107,157,164,216,112,116,2,91,248,163,36,201,202,229,6,144,254,155,135,208,170,209,12,139,127,142,182,249,177,174,190,28,10,85,239,184,101,124,152,206,96,23,163,61,27,196,247,151,154,202,207,20,61,10],null,[0,82,116,26,247,66,27,62,107,252,182,200,185,235,55,251,242,210,144,154,237,176,141,192,248,152,249,206,85,253,142,65,165,125,23,24,30,122,240,214,6,129,218,29,145,127,134,206,245,117,29,41,63,159,142,233,125,148,123],null,[0,107,140,26,12,9,141,243,197,226,197,219,45,211,101,219,120,28,181,127,6,100,247,2,205,198,57,115,219,101,109,160,82,37,38,238,49,160,209,121,86,11,124,30,181,84,25,194,87,65,102,190,220,70,27,209,16,89,7,33,240],null,[0,65,202,113,98,71,223,248,118,214,94,1,122,37,23,2,228,58,121,7,105,135,78,243,118,70,76,223,89,72,50,70,111,194,17,212,126,181,35,221,117,235,11,229,149,147,123,213,40,115,6,200,100,26,246,182,218,127,215,36,186,110,106],null,[0,45,51,175,9,7,158,159,49,68,119,92,123,177,204,187,254,200,78,141,149,119,26,127,53,160,93,199,212,29,24,145,156,208,150,218,209,4,216,91,47,184,146,47,140,195,195,125,242,238,63,99,108,140,230,242,31,204,11,178,243,217,156,213,231],null,[0,5,118,222,180,136,136,162,51,46,117,13,215,81,17,139,247,197,171,95,173,65,137,178,68,111,95,101,41,72,214,169,197,95,7,44,154,77,111,236,40,121,143,63,87,80,253,240,126,217,77,34,232,106,50,168,82,76,146,67,106,171,25,132,93,45,105],null,[0,247,159,223,33,224,93,77,70,90,160,32,254,43,150,84,101,190,205,133,52,60,202,165,220,203,151,93,84,15,84,253,173,160,89,227,52,199,97,95,231,52,177,41,125,137,241,166,225,118,2,54,32,82,215,175,198,43,238,235,27,101,184,127,3,5,8,163,238],null]},function(K,A,S){var k,w,u,p,y,C,f,m,g,c,l;function s(t,i){for(var h,b=0;b<i.length;b++)(h=i[b]).enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(t,h.key,h)}function a(t){return t&&t.__esModule?t:{default:t}}function o(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function n(t,i){if(t)return!i||typeof i!="object"&&typeof i!="function"?t:i;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function e(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i)}function r(){return o(this,r),n(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}Object.defineProperty(A,"__esModule",{value:!0}),k=function(t,i,h){return i&&s(t.prototype,i),h&&s(t,h),t},w=S(0),y=S(3),u=a(y),y=S(13),p=a(y),y=a(y=S(14)),c=S(15),C=a(c),c=S(16),f=a(c),c=S(17),m=a(c),c=S(18),g=a(c),c=S(19),l=a(c),e(r,y.default),k(r,[{key:"encodeData",value:function(t,i){var h=this,b=this.charCountIndicatorBitsNumber,_=this.charCode,M=new l.default;return i&&(M.put(u.default.MODE_INDICATOR.StructuredAppend,4),M.put(i.connectionNo,4),M.put(i.connectionCnt-1,4),M.put(u.default.getParityData(_,this.config.charset),8)),t.forEach(function(O){if(O.code){var R=void 0;switch(O.mode){case"Numeric":R=new f.default(O.code);break;case"Alphanumeric":R=new m.default(O.code);break;case"8BitByte":R=new C.default(O.code,h.config.charset);break;case"Kanji":R=new g.default(O.code)}M.put(R.getMode(),4),M.put(R.getLength(),b[R.mode]),R.write(M)}}),M}},{key:"getFinalMessage",value:function(t){for(var i,h=[],b=t.map(function(E){return E.data}),_=t.map(function(E){return E.ec}),M=(0,w.getMaxValue)(b),O=(0,w.getMaxValue)(_),R=function(E){b.forEach(function(z){(0,w.isDefined)(z[E])&&h.push(z[E])})},N=0;N<M;N++)R(N);for(i=function(E){_.forEach(function(z){(0,w.isDefined)(z[E])&&h.push(z[E])})},N=0;N<O;N++)i(N);return h}},{key:"setModules",value:function(t){var i=this.modulesCount,h=this.version;this.modules=u.default.createModules(i),this.addPositionDetectionPattern(),this.addAlignmentPattern(),this.addTimingPattern(),6<h&&this.addVersionInformation(),this.maskModules(t)}},{key:"maskModules",value:function(t){var i,h,b=this.modules,_=this.errorCorrectionLevel,M=this.model;(h=this.config.mask)==="auto"&&(h=this.autoMask(t)),i=u.default.getMaskFunc(h),this.maskPattern=h,b=u.default.addFormatInformation(b,h,_,M),this.modules=this.fillDataModules(b,t,i)}},{key:"autoMask",value:function(t){var i=this,h=this.modules,b=this.errorCorrectionLevel,_=this.model,M=void 0,O=void 0;return u.default.maskFuncs.forEach(function(R,N){var E=u.default.addFormatInformation(h,N,b,_,!0);E=i.fillDataModules(E,t,R),R=u.default.getMaskScore(E),(!M||R<M)&&(M=R,O=N)}),O}},{key:"addAlignmentPattern",value:function(){var t,i=this,h=this.modules,b=this.version;(t=u.default.getAlignmentPattersPos(b)).forEach(function(_){t.forEach(function(M){h[_][M]===null&&i.addPattern(M-2,_-2,5)})})}},{key:"addVersionInformation",value:function(){for(var t,i=this.modulesCount,h=this.modules,b=this.version,_=p.default.getBCH18(b),M=0;M<18;M++)t=_>>M&1,h[Math.floor(M/3)][M%3+i-8-3]=t,h[M%3+i-8-3][Math.floor(M/3)]=t}},{key:"fillDataModules",value:function(t,i,h){for(var b,_,M,O=-1,R=(M=t.length)-1,N=7,E=0,z=M-1;0<z;z-=2)for(z==6&&--z;;){for(b=0;b<2;b+=1)t[R][z-b]==null&&(_=!1,E<i.length&&(_=(i[E]>>>N&1)==1),h(R,z-b)&&(_=!_),t[R][z-b]=+_,--N==-1)&&(E+=1,N=7);if((R+=O)<0||M<=R){R-=O,O=-O;break}}return t}},{key:"getMatrix",value:function(){var t=this.charCode;return t=this.analysisData(t),t=this.encodeData(t),t=this.processConnection(t),this.padBuffer(t),t=this.generateErrorCorrectionCode(t),t=this.getFinalMessage(t),this.setModules(t),this.modules}}]),S=r,A.default=S},function(K,A,S){function k(u){return u&&u.__esModule?u:{default:u}}function w(u){var p;return(p=document.createElement("div")).style.visibility="hidden",p.style.absolute="hidden",p.style.padding="0",p.style.border="0",p.style.width=u,document.body.appendChild(p),u=p.getBoundingClientRect(),document.body.removeChild(p),u.width}k(S(2)).default.registerPlugin("convertUnit",w)},function(K,A,S){function k(u){return u&&u.__esModule?u:{default:u}}function w(u,p){var y;return(y=document.createElement("span")).style.visibility="hidden",y.style.absolute="hidden",y.style.lineHeight="1",y.textContent=u,Object.keys(p).forEach(function(C){y.style[C]=p[C]}),document.body.appendChild(y),u=y.getBoundingClientRect(),document.body.removeChild(y),u.height}k(S(2)).default.registerPlugin("measureText",w)}],N1={},J.m=y1,J.c=N1,J.d=function(K,A,S){J.o(K,A)||Object.defineProperty(K,A,{configurable:!1,enumerable:!0,get:S})},J.n=function(K){var A=K&&K.__esModule?function(){return K.default}:function(){return K};return J.d(A,"a",A),A},J.o=function(K,A){return Object.prototype.hasOwnProperty.call(K,A)},J.p="",J(J.s=20).default;function J(K){var A;return(N1[K]||(A=N1[K]={i:K,l:!1,exports:{}},y1[K].call(A.exports,A,A.exports,J),A.l=!0,A)).exports}var y1,N1}()},Common:function(g1){g1.exports=k1.Spread},CalcEngine:function(g1){g1.exports=k1.Spread.CalcEngine},Core:function(g1){g1.exports=k1.Spread.Sheets},Sparkline:function(g1){g1.exports=k1.Spread.Sheets.Sparklines}},F1={},L1={},function(){var g1,J=L1;Object.defineProperty(J,"__esModule",{value:!0}),J.generatePaintBarcodeViewModel=J.QRCode=J.PDF417=J.GS1_128=J.EAN8=J.EAN13=J.DataMatrix=J.Code93=J.Code49=J.Code39=J.Code128=J.Codabar=J.BarcodeBase=void 0,g1=z1("./dist/plugins/barcode/barcodeSparkline.js"),Object.defineProperty(J,"BarcodeBase",{enumerable:!0,get:function(){return g1.BarcodeBase}}),Object.defineProperty(J,"Codabar",{enumerable:!0,get:function(){return g1.Codabar}}),Object.defineProperty(J,"Code128",{enumerable:!0,get:function(){return g1.Code128}}),Object.defineProperty(J,"Code39",{enumerable:!0,get:function(){return g1.Code39}}),Object.defineProperty(J,"Code49",{enumerable:!0,get:function(){return g1.Code49}}),Object.defineProperty(J,"Code93",{enumerable:!0,get:function(){return g1.Code93}}),Object.defineProperty(J,"DataMatrix",{enumerable:!0,get:function(){return g1.DataMatrix}}),Object.defineProperty(J,"EAN13",{enumerable:!0,get:function(){return g1.EAN13}}),Object.defineProperty(J,"EAN8",{enumerable:!0,get:function(){return g1.EAN8}}),Object.defineProperty(J,"GS1_128",{enumerable:!0,get:function(){return g1.GS1_128}}),Object.defineProperty(J,"PDF417",{enumerable:!0,get:function(){return g1.PDF417}}),Object.defineProperty(J,"QRCode",{enumerable:!0,get:function(){return g1.QRCode}}),Object.defineProperty(J,"generatePaintBarcodeViewModel",{enumerable:!0,get:function(){return g1.generatePaintBarcodeViewModel}})}(),(((k1=k1===void 0?{}:k1).Spread=k1.Spread||{}).Sheets=k1.Spread.Sheets||{}).Barcode=L1})(U1);
|