invoice-sample 1.0.96 → 1.0.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.InvoiceSample=n():t.InvoiceSample=n()}(window,(function(){return n=[function(t,n,e){var r=e(39)("wks"),i=e(32),o=e(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,n,e){"use strict";var r=e(43),i={};i[e(0)("toStringTag")]="z",i+""!="[object z]"&&e(17)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){function r(t,n,e){var c,p,f,h=t&r.F,m=t&r.G,d=t&r.P,x=t&r.B,g=m?i:t&r.S?i[n]||(i[n]={}):(i[n]||{})[l],v=m?o:o[n]||(o[n]={}),S=v[l]||(v[l]={});for(c in e=m?n:e)p=((f=!h&&g&&void 0!==g[c])?g:e)[c],f=x&&f?u(p,i):d&&"function"==typeof p?u(Function.call,p):p,g&&s(g,c,p,t&r.U),v[c]!=p&&a(v,c,f),d&&S[c]!=p&&(S[c]=p)}var i=e(3),o=e(28),a=e(20),s=e(17),u=e(23),l="prototype";i.core=o,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},function(t,n){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=t)},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){"use strict";var r=e(45),i=e(110),o=e(35),a=e(29);t.exports=e(80)(Array,"Array",(function(t,n){this._t=a(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){"use strict";function r(){}var i,o,a,s,u=e(33),l=e(3),c=e(23),p=e(43),f=e(2),h=e(7),m=e(40),d=e(94),x=e(95),g=e(73),v=e(74).set,S=e(97)(),y=e(75),b=e(98),w=e(99),T=e(100),A="Promise",E=l.TypeError,C=l.process,Y=C&&C.versions,N=Y&&Y.v8||"",P=l[A],X="process"==p(C),I=o=y.f,R=(p=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[e(0)("species")]=function(t){t(r,r)};return(X||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==N.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n}),_=function(t,n){var e;t._n||(t._n=!0,e=t._c,S((function(){for(var r,i=t._v,o=1==t._s,a=0,s=function(n){var e,r,a,s,u=o?n.ok:n.fail,c=n.resolve,p=n.reject,f=n.domain;try{u?(o||(2==t._h&&(s=t,v.call(l,(function(){var t;X?C.emit("rejectionHandled",s):(t=l.onrejectionhandled)&&t({promise:s,reason:s._v})}))),t._h=1),!0===u?e=i:(f&&f.enter(),e=u(i),f&&(f.exit(),a=!0)),e===n.promise?p(E("Promise-chain cycle")):(r=R(e))?r.call(e,c,p):c(e)):p(i)}catch(n){f&&!a&&f.exit(),p(n)}};e.length>a;)s(e[a++]);t._c=[],t._n=!1,n&&!t._h&&(r=t,v.call(l,(function(){var t,n,e=r._v,i=L(r);if(i&&(t=b((function(){X?C.emit("unhandledRejection",e,r):(n=l.onunhandledrejection)?n({promise:r,reason:e}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",e)})),r._h=X||L(r)?2:1),r._a=void 0,i&&t.e)throw t.v})))})))},L=function(t){return 1!==t._h&&0===(t._a||t._c).length},O=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),_(n,!0))},M=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw E("Promise can't be resolved itself");(n=R(t))?S((function(){var r={_w:e,_d:!1};try{n.call(t,c(M,r,1),c(O,r,1))}catch(t){O.call(r,t)}})):(e._v=t,e._s=1,_(e,!1))}catch(t){O.call({_w:e,_d:!1},t)}}};p||(P=function(t){d(this,P,A,"_h"),m(t),i.call(this);try{t(c(M,this,1),c(O,this,1))}catch(t){O.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(101)(P.prototype,{then:function(t,n){var e=I(g(this,P));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=X?C.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&_(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=c(M,t,1),this.reject=c(O,t,1)},y.f=I=function(t){return t===P||t===s?new a:o(t)}),f(f.G+f.W+f.F*!p,{Promise:P}),e(44)(P,A),e(102)(A),s=e(28)[A],f(f.S+f.F*!p,A,{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),f(f.S+f.F*(u||!p),A,{resolve:function(t){return T(u&&this===s?P:this,t)}}),f(f.S+f.F*!(p&&e(76)((function(t){P.all(t).catch(r)}))),A,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=b((function(){var e=[],o=0,a=1;x(t,!1,(function(t){var s=o++,u=!1;e.push(void 0),a++,n.resolve(t).then((function(t){u||(u=!0,e[s]=t,--a||r(e))}),i)})),--a||r(e)}));return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=b((function(){x(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return i.e&&r(i.v),e.promise}})},function(t,n,e){"use strict";function r(t){var n=z[t]=N(B[k]);return n._k=t,n}function i(t,n){w(t);for(var e,r=y(n=E(n)),i=0,o=r.length;i<o;)Z(t,e=r[i++],n[e]);return t}function o(t){var n=j.call(this,t=C(t,!0));return!(this===Q&&u(z,t)&&!u(H,t))&&(!(n||!u(this,t)||!u(z,t)||u(this,F)&&this[F][t])||n)}function a(t,n){if(t=E(t),n=C(n,!0),t!==Q||!u(z,n)||u(H,n)){var e=L(t,n);return!e||!u(z,n)||u(t,F)&&t[F][n]||(e.enumerable=!0),e}}var s=e(3),u=e(21),l=e(8),c=e(2),p=e(17),f=e(103).KEY,h=e(5),m=e(39),d=e(44),x=e(32),g=e(0),v=e(77),S=e(104),y=e(105),b=e(78),w=e(4),T=e(7),A=e(25),E=e(29),C=e(38),Y=e(31),N=e(54),P=e(107),X=e(56),I=e(52),R=e(14),_=e(34),L=X.f,O=R.f,M=P.f,B=s.Symbol,W=s.JSON,D=W&&W.stringify,k="prototype",F=g("_hidden"),K=g("toPrimitive"),j={}.propertyIsEnumerable,U=m("symbol-registry"),z=m("symbols"),H=m("op-symbols"),Q=Object[k],J="function"==typeof B&&!!I.f,G=!($=s.QObject)||!$[k]||!$[k].findChild,V=l&&h((function(){return 7!=N(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=L(Q,n);r&&delete Q[n],O(t,n,e),r&&t!==Q&&O(Q,n,r)}:O,q=J&&"symbol"==typeof B.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof B},Z=function(t,n,e){return t===Q&&Z(H,n,e),w(t),n=C(n,!0),w(e),u(z,n)?(e.enumerable?(u(t,F)&&t[F][n]&&(t[F][n]=!1),e=N(e,{enumerable:Y(0,!1)})):(u(t,F)||O(t,F,Y(1,{})),t[F][n]=!0),V(t,n,e)):O(t,n,e)},$=(m=function(t){for(var n,e=M(E(t)),r=[],i=0;e.length>i;)u(z,n=e[i++])||n==F||n==f||r.push(n);return r},function(t){for(var n,e=t===Q,r=M(e?H:E(t)),i=[],o=0;r.length>o;)!u(z,n=r[o++])||e&&!u(Q,n)||i.push(z[n]);return i});J||(p((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var t=x(0<arguments.length?arguments[0]:void 0),n=function(e){this===Q&&n.call(H,e),u(this,F)&&u(this[F],t)&&(this[F][t]=!1),V(this,t,Y(1,e))};return l&&G&&V(Q,t,{configurable:!0,set:n}),r(t)})[k],"toString",(function(){return this._k})),X.f=a,R.f=Z,e(55).f=P.f=m,e(42).f=o,I.f=$,l&&!e(33)&&p(Q,"propertyIsEnumerable",o,!0),v.f=function(t){return r(g(t))}),c(c.G+c.W+c.F*!J,{Symbol:B});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)g(tt[nt++]);for(var et=_(g.store),rt=0;et.length>rt;)S(et[rt++]);c(c.S+c.F*!J,"Symbol",{for:function(t){return u(U,t+="")?U[t]:U[t]=B(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in U)if(U[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),c(c.S+c.F*!J,"Object",{create:function(t,n){return void 0===n?N(t):i(N(t),n)},defineProperty:Z,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:m,getOwnPropertySymbols:$}),$=h((function(){I.f(1)})),c(c.S+c.F*$,"Object",{getOwnPropertySymbols:function(t){return I.f(A(t))}}),W&&c(c.S+c.F*(!J||h((function(){var t=B();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;i<arguments.length;)r.push(arguments[i++]);if(e=n=r[1],(T(n)||void 0!==t)&&!q(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,D.apply(W,r)}}),B[k][K]||e(20)(B[k],K,B[k].valueOf),d(B,"Symbol"),d(Math,"Math",!0),d(s.JSON,"JSON",!0)},function(t,n,e){"use strict";var r=e(79)(!0);e(80)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(n=r(t,n),this._i+=n.length,{value:n,done:!1})}))},function(t,n,e){for(var r=e(6),i=e(34),o=e(17),a=e(3),s=e(20),u=e(35),l=(e=e(0))("iterator"),c=e("toStringTag"),p=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(f),m=0;m<h.length;m++){var d,x=h[m],g=f[x],v=a[x],S=v&&v.prototype;if(S&&(S[l]||s(S,l,p),S[c]||s(S,c,x),u[x]=p,g))for(d in r)S[d]||o(S,d,r[d],!0)}},function(t,n,e){"use strict";var r=e(4),i=e(25),o=e(18),a=e(41),s=e(57),u=e(58),l=Math.max,c=Math.min,p=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;e(59)("replace",2,(function(t,n,e,m){return[function(r,i){var o=t(this),a=null==r?void 0:r[n];return void 0!==a?a.call(r,o,i):e.call(String(o),r,i)},function(t,n){var d=m(e,t,this,n);if(d.done)return d.value;var x=r(t),g=String(this),v="function"==typeof n;v||(n=String(n));var S,y=x.global;y&&(S=x.unicode,x.lastIndex=0);for(var b=[];null!==(C=u(x,g))&&(b.push(C),y);)""===String(C[0])&&(x.lastIndex=s(g,o(x.lastIndex),S));for(var w,T="",A=0,E=0;E<b.length;E++){for(var C=b[E],Y=String(C[0]),N=l(c(a(C.index),g.length),0),P=[],X=1;X<C.length;X++)P.push(void 0===(w=C[X])?w:String(w));var I,R=C.groups;R=v?(I=[Y].concat(P,N,g),void 0!==R&&I.push(R),String(n.apply(void 0,I))):function(t,n,r,o,a,s){var u=r+t.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=f),e.call(s,c,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0==c)return e;if(l<c){var f=p(c/10);return 0===f?e:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}s=o[c-1]}return void 0===s?"":s}))}(Y,g,N,P,R,n);A<=N&&(T+=g.slice(A,N)+R,A=N+Y.length)}return T+g.slice(A)}]}))},function(t,n,e){var r=e(4),i=e(67),o=e(38),a=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){"use strict";function r(t){if("string"==typeof(n=u(t,!1))&&2<n.length){var n,e,r,i=(n=v?n.trim():h(n,3)).charCodeAt(0);if(43===i||45===i){if(88===(t=n.charCodeAt(2))||120===t)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:e=2,r=49;break;case 79:case 111:e=8,r=55;break;default:return+n}for(var o,a=n.slice(2),s=0,l=a.length;s<l;s++)if((o=a.charCodeAt(s))<48||r<o)return NaN;return parseInt(a,e)}}return+n}var i=e(3),o=e(21),a=e(22),s=e(112),u=e(38),l=e(5),c=e(55).f,p=e(56).f,f=e(14).f,h=e(114).trim,m="Number",d=y=i[m],x=y.prototype,g=a(e(54)(x))==m,v="trim"in String.prototype;if(!y(" 0o1")||!y("0b1")||y("+0x1")){for(var S,y=function(t){t=arguments.length<1?0:t;var n=this;return n instanceof y&&(g?l((function(){x.valueOf.call(n)})):a(n)!=m)?s(new d(r(t)),n,y):r(t)},b=e(8)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(d,S=b[w])&&!o(y,S)&&f(y,S,p(d,S));(y.prototype=x).constructor=y,e(17)(i,m,y)}},function(t,n,e){var r=e(129),i=e(130),o=e(152),a=e(153);function s(t,n,e,o,a){var s,u=(s=[].slice.call(arguments,1)).length;if(!(s="function"==typeof s[u-1])&&!r())throw new Error("Callback required as last argument");if(!s){if(u<1)throw new Error("Too few arguments provided");return 1===u?(e=n,n=o=void 0):2!==u||n.getContext||(o=e,e=n,n=void 0),new Promise((function(r,a){try{var s=i.create(e,o);r(t(s,n,o))}catch(r){a(r)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=e,e=n,n=o=void 0):3===u&&(n.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=e,e=n,n=void 0));try{var l=i.create(e,o);a(null,t(l,n,o))}catch(s){a(s)}}n.create=i.create,n.toCanvas=s.bind(null,o.render),n.toDataURL=s.bind(null,o.renderToDataURL),n.toString=s.bind(null,(function(t,n,e){return a.render(t,e)}))},function(t,n,e){var r=e(3),i=e(20),o=e(21),a=e(32)("src"),s=e(92),u="toString",l=(""+s).split(u);e(28).inspectSource=function(t){return s.call(t)},(t.exports=function(t,n,e,s){var u="function"==typeof e;u&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(u&&(o(e,a)||i(e,a,t[n]?""+t[n]:l.join(String(n)))),t===r?t[n]=e:s?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,n,e){var r=e(41),i=Math.min;t.exports=function(t){return 0<t?i(r(t),9007199254740991):0}},function(t,n,e){"use strict";function r(t){e(17)(RegExp.prototype,s,t,!0)}e(116);var i=e(4),o=e(61),a=e(8),s="toString",u=/./[s];e(5)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?r((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):u.name!=s&&r((function(){return u.call(this)}))},function(t,n,e){var r=e(14),i=e(31);t.exports=e(8)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(40);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n){var e,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||40<t)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},n.getSymbolTotalCodewords=function(t){return r[t]},n.getBCHDigit=function(t){for(var n=0;0!==t;)n++,t>>>=1;return n},n.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},n.isKanjiModeEnabled=function(){return void 0!==e},n.toSJIS=function(t){return e(t)}},function(t,n,e){var r=e(86),i=e(87);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!r.isValid(n))throw new Error("Invalid version: "+n);return 1<=n&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return i.testNumeric(t)?n.NUMERIC:i.testAlphanumeric(t)?n.ALPHANUMERIC:i.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}},function(t,n){t=t.exports={version:"2.6.12"},"number"==typeof __e&&(__e=t)},function(t,n,e){var r=e(48),i=e(24);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(64),i=(o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())?2147483647:1073741823;function o(t,n,e){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?u(this,t):function(t,n,e,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,r){if(e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,e):new Uint8Array(n,e,r),o.TYPED_ARRAY_SUPPORT?r.__proto__=o.prototype:r=l(t,r),r}(t,n,e,r):("string"!=typeof n?function(t,n){if(o.isBuffer(n)){var e=0|a(n.length),r=s(t,e);return 0===r.length||n.copy(r,0,0,e),r}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function(t){return t!=t}(n.length)?s(t,0):l(t,n);if("Buffer"===n.type&&Array.isArray(n.data))return l(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}:function(t,n){var e=0|p(n);return(n=(t=s(t,e)).write(n))!==e&&(t=t.slice(0,n)),t})(t,n)}(this,t,n,e):new o(t,n,e)}function a(t){if(i<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function s(t,n){var e;return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n)).__proto__=o.prototype:(e=null===(e=t)?new o(n):e).length=n,e}function u(t,n){var e=s(t,n<0?0:0|a(n));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)e[r]=0;return e}function l(t,n){for(var e=n.length<0?0:0|a(n.length),r=s(t,e),i=0;i<e;i+=1)r[i]=255&n[i];return r}function c(t,n){var e;n=n||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(55295<(e=t.charCodeAt(a))&&e<57344){if(!i){if(56319<e){-1<(n-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(n-=3)&&o.push(239,191,189);continue}i=e;continue}if(e<56320){-1<(n-=3)&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&-1<(n-=3)&&o.push(239,191,189);if(i=null,e<128){if(--n<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function p(t){return o.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:0===(t="string"!=typeof t?""+t:t).length?0:c(t).length}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,n,e){void 0===n||void 0===e&&"string"==typeof n?(e=this.length,n=0):isFinite(n)&&(n|=0,isFinite(e)?e|=0:e=void 0);var r=this.length-n;if((void 0===e||r<e)&&(e=r),0<t.length&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,n,e,r){return function(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}(c(n,t.length-e),t,e,r)}(this,t,n,e)},o.prototype.slice=function(t,n){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e<t&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):e<n&&(n=e),n<t&&(n=t),o.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,n)).__proto__=o.prototype;else for(var r=n-t,i=new o(r,void 0),a=0;a<r;++a)i[a]=this[a+t];return i},o.prototype.copy=function(t,n,e,r){if(e=e||0,r||0===r||(r=this.length),n>=t.length&&(n=t.length),(r=0<r&&r<e?e:r)===e)return 0;if(0===t.length||0===this.length)return 0;if((n=n||0)<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var i,a=(r=t.length-n<r-e?t.length-n+e:r)-e;if(this===t&&e<n&&n<r)for(i=a-1;0<=i;--i)t[i+n]=this[i+e];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+a),n);return a},o.prototype.fill=function(t,n,e){var r;if("string"==typeof t?("string"==typeof n?(n=0,e=this.length):"string"==typeof e&&(e=this.length),1!==t.length||(r=t.charCodeAt(0))<256&&(t=r)):"number"==typeof t&&(t&=255),n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;if(n>>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(s=n;s<e;++s)this[s]=t;else for(var i=o.isBuffer(t)?t:new o(t),a=i.length,s=0;s<e-n;++s)this[s+n]=i[s%a];return this},o.concat=function(t,n){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s(null,0);if(void 0===n)for(a=n=0;a<t.length;++a)n+=t[a].length;for(var e=u(null,n),i=0,a=0;a<t.length;++a){var l=t[a];if(!o.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(e,i),i+=l.length}return e},o.byteLength=p,o.prototype._isBuffer=!0,o.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports.alloc=function(t){return(t=new o(t)).fill(0),t},t.exports.from=function(t){return new o(t)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(68),i=e(51);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(82),i=e(4),o=e(73),a=e(57),s=e(18),u=e(58),l=e(60),c=e(5),p=Math.min,f=[].push,h="split",m="length",d="lastIndex",x=4294967295,g=!c((function(){RegExp(x,"y")}));e(59)("split",2,(function(t,n,e,c){var v="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[m]||2!="ab"[h](/(?:ab)*/)[m]||4!="."[h](/(.?)(.?)/)[m]||1<"."[h](/()()/)[m]||""[h](/.?/)[m]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,h=void 0===n?x:n>>>0,g=new RegExp(t.source,c+"g");(o=l.call(g,i))&&!(p<(a=g[d])&&(u.push(i.slice(p,o.index)),1<o[m]&&o.index<i[m]&&f.apply(u,o.slice(1)),s=o[0][m],p=a,u[m]>=h));)g[d]===o.index&&g[d]++;return p===i[m]?!s&&g.test("")||u.push(""):u.push(i.slice(p)),u[m]>h?u.slice(0,h):u}:"0"[h](void 0,0)[m]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e;return[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):v.call(String(i),e,r)},function(t,n){if((f=c(v,t,this,n,v!==e)).done)return f.value;var r=i(t),l=String(this),f=o(r,RegExp),h=r.unicode,m=(t=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(g?"y":"g"),new f(g?r:"^(?:"+r.source+")",t)),d=void 0===n?x:n>>>0;if(0==d)return[];if(0===l.length)return null===u(m,l)?[l]:[];for(var S=0,y=0,b=[];y<l.length;){m.lastIndex=g?y:0;var w,T=u(m,g?l:l.slice(y));if(null===T||(w=p(s(m.lastIndex+(g?0:y)),l.length))===S)y=a(l,y,h);else{if(b.push(l.slice(S,y)),b.length===d)return b;for(var A=1;A<=T.length-1;A++)if(b.push(T[A]),b.length===d)return b;y=S=w}}return b.push(l.slice(S)),b}]}))},function(t,n,e){"use strict";function r(t){var n=-1;i=i||function(){for(var t=new Int32Array(256),n=0;n<256;n++){for(var e=n,r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();for(var e=0;e<t.length;e++)n=i[255&(n^t[e])]^n>>>8;return-1^n}Object.defineProperty(n,"__esModule",{value:!0}),n.changeDpiBlob=function(t,n){var e=t.slice(0,33);return new Promise((function(r,i){var o=new FileReader;o.onload=function(){var e=new Uint8Array(o.result),i=t.slice(33);e=m(e,n,t.type);r(new Blob([e,i],{type:t.type}))},o.readAsArrayBuffer(e)}))},n.changeDpiDataUrl=function(t,n){var e=(c=t.split(","))[0],r=c[1],i=void 0,c=(t=void 0,!1);-1!==e.indexOf(o)&&(i=o,0<=(p=function(t){var n=t.indexOf(s);return-1===n&&(n=t.indexOf(u)),-1===n&&(n=t.indexOf(l)),n}(r))?(t=4*Math.ceil((p+28)/3),c=!0):t=44),-1!==e.indexOf(a)&&(i=a,t=24);for(var p=r.substring(0,t),f=(t=r.substring(t),atob(p)),h=new Uint8Array(f.length),d=0;d<h.length;d++)h[d]=f.charCodeAt(d);return c=m(h,n,i,c),[e,",",c=btoa(String.fromCharCode.apply(String,function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}(c))),t].join("")};var i=void 0,o="image/png",a="image/jpeg",s="AAlwSFlz",u="AAAJcEhZ",l="AAAACXBI",c="p".charCodeAt(0),p="H".charCodeAt(0),f="Y".charCodeAt(0),h="s".charCodeAt(0);function m(t,n,e,i){if(e===a)return t[13]=1,t[14]=n>>8,t[15]=255&n,t[16]=n>>8,t[17]=255&n,t;if(e===o){var s=new Uint8Array(13);if(n*=39.3701,s[0]=c,s[1]=p,s[2]=f,s[3]=h,s[4]=n>>>24,s[5]=n>>>16,s[6]=n>>>8,s[7]=255&n,s[8]=s[4],s[9]=s[5],s[10]=s[6],s[11]=s[7],s[12]=1,e=r(s),(n=new Uint8Array(4))[0]=e>>>24,n[1]=e>>>16,n[2]=e>>>8,n[3]=255&e,i){var u=function(t){for(var n=t.length-1;4<=n;n--)if(9===t[n-4]&&t[n-3]===c&&t[n-2]===p&&t[n-1]===f&&t[n]===h)return n-3}(t);return t.set(s,u),t.set(n,u+13),t}return(i=new Uint8Array(4))[0]=0,i[1]=0,i[2]=0,i[3]=9,(u=new Uint8Array(54)).set(t,0),u.set(i,33),u.set(s,37),u.set(n,50),u}}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(28),i=e(3),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,n){return a[t]||(a[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(33)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(22),i=e(0)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?t:o?r(n):"Object"==(t=r(n))&&"function"==typeof n.callee?"Arguments":t}},function(t,n,e){var r=e(14).f,i=e(21),o=e(0)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(0)("unscopables"),i=Array.prototype;null==i[r]&&e(20)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){"use strict";var r=e(2),i=e(69)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),e(45)("includes")},function(t,n,e){var r=e(7),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(41),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(39)("keys"),i=e(32);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){e=e(3).document,t.exports=e&&e.documentElement},function(t,n,e){function r(){}var i=e(4),o=e(106),a=e(51),s=e(50)("IE_PROTO"),u="prototype",l=function(){var t=e(47)("iframe"),n=a.length;for(t.style.display="none",e(53).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l[u][a[n]];return l()};t.exports=Object.create||function(t,n){var e;return null!==t?(r[u]=i(t),e=new r,r[u]=null,e[s]=t):e=l(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(68),i=e(51).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(42),i=e(31),o=e(29),a=e(38),s=e(21),u=e(67),l=Object.getOwnPropertyDescriptor;n.f=e(8)?l:function(t,n){if(t=o(t),n=a(n,!0),u)try{return l(t,n)}catch(t){}if(s(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r=e(79)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){"use strict";var r=e(43),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){if("object"!=typeof(e=e.call(t,n)))throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,e){"use strict";e(111);var r=e(17),i=e(20),o=e(5),a=e(24),s=e(0),u=e(60),l=s("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),p=function(){var t=/(?:)/,n=t.exec;return t.exec=function(){return n.apply(this,arguments)},2===(t="ab".split(t)).length&&"a"===t[0]&&"b"===t[1]}();t.exports=function(t,n,e){var f,h,m=s(t),d=!o((function(){var n={};return n[m]=function(){return 7},7!=""[t](n)})),x=d?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[l]=function(){return e}),e[m](""),!n})):void 0;d&&x&&("replace"!==t||c)&&("split"!==t||p)||(f=/./[m],e=(x=e(a,m,""[t],(function(t,n,e,r,i){return n.exec===u?d&&!i?{done:!0,value:f.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})))[0],h=x[1],r(String.prototype,t,e),i(RegExp.prototype,m,2==n?function(t,n){return h.call(t,this,n)}:function(t){return h.call(t,this)}))}},function(t,n,e){"use strict";var r,i=e(61),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,u="lastIndex",l=(r=/a/,e=/b*/g,o.call(r,"a"),o.call(e,"a"),0!==r[u]||0!==e[u]),c=void 0!==/()??/.exec("")[1];(l||c)&&(s=function(t){var n,e,r,s,p=this;return c&&(e=new RegExp("^"+p.source+"$(?!\\s)",i.call(p))),l&&(n=p[u]),r=o.call(p,t),l&&r&&(p[u]=p.global?r.index+r[0].length:n),c&&r&&1<r.length&&a.call(r[0],e,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),t.exports=s},function(t,n,e){"use strict";var r=e(4);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(2),i=e(53),o=e(22),a=e(49),s=e(18),u=[].slice;r(r.P+r.F*e(5)((function(){i&&u.call(i)})),"Array",{slice:function(t,n){var e=s(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return u.call(this,t,n);for(var i=a(t,e),l=(e=a(n,e),s(e-i)),c=new Array(l),p=0;p<l;p++)c[p]="String"==r?this.charAt(i+p):this[i+p];return c}})},function(t,n,e){"use strict";var r=e(2),i=e(120),o="includes";r(r.P+r.F*e(121)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,1<arguments.length?arguments[1]:void 0)}})},function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(t){return t&&void 0!==t.bit&&0<=t.bit&&t.bit<4},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}},function(t,n,e){var r=e(2);r(r.S+r.F,"Object",{assign:e(93)})},function(t,n,e){t.exports=!e(8)&&!e(5)((function(){return 7!=Object.defineProperty(e(47)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(21),i=e(29),o=e(69)(!1),a=e(50)("IE_PROTO");t.exports=function(t,n){var e,s=i(t),u=0,l=[];for(e in s)e!=a&&r(s,e)&&l.push(e);for(;n.length>u;)r(s,e=n[u++])&&(~o(l,e)||l.push(e));return l}},function(t,n,e){var r=e(29),i=e(18),o=e(49);t.exports=function(t){return function(n,e,a){var s,u=r(n),l=i(u.length),c=o(a,l);if(t&&e!=e){for(;c<l;)if((s=u[c++])!=s)return!0}else for(;c<l;c++)if((t||c in u)&&u[c]===e)return t||c||0;return!t&&-1}}},function(t,n,e){var r=e(4);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){throw void 0!==(e=t.return)&&r(e.call(t)),n}}},function(t,n,e){var r=e(35),i=e(0)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(43),i=e(0)("iterator"),o=e(35);t.exports=e(28).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){var r=e(4),i=e(40),o=e(0)("species");t.exports=function(t,n){var e;return void 0===(t=r(t).constructor)||null==(e=r(t)[o])?n:i(e)}},function(t,n,e){function r(){var t,n=+this;g.hasOwnProperty(n)&&(t=g[n],delete g[n],t())}function i(t){r.call(t.data)}var o,a=e(23),s=e(96),u=e(53),l=e(47),c=e(3),p=c.process,f=c.setImmediate,h=c.clearImmediate,m=c.MessageChannel,d=c.Dispatch,x=0,g={},v="onreadystatechange";f&&h||(f=function(t){for(var n=[],e=1;e<arguments.length;)n.push(arguments[e++]);return g[++x]=function(){s("function"==typeof t?t:Function(t),n)},o(x),x},h=function(t){delete g[t]},"process"==e(22)(p)?o=function(t){p.nextTick(a(r,t,1))}:d&&d.now?o=function(t){d.now(a(r,t,1))}:m?(m=(e=new m).port2,e.port1.onmessage=i,o=a(m.postMessage,m,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(t){c.postMessage(t+"","*")},c.addEventListener("message",i,!1)):o=v in l("script")?function(t){u.appendChild(l("script"))[v]=function(){u.removeChild(this),r.call(t)}}:function(t){setTimeout(a(r,t,1),0)}),t.exports={set:f,clear:h}},function(t,n,e){"use strict";var r=e(40);function i(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new i(t)}},function(t,n,e){var r=e(0)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:e=!0}},o[r]=function(){return a},t(o)}catch(t){}return e}},function(t,n,e){n.f=e(0)},function(t,n,e){var r=e(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(41),i=e(24);t.exports=function(t){return function(n,e){var o,a=String(i(n)),s=r(e);n=a.length;return s<0||n<=s?t?"":void 0:(e=a.charCodeAt(s))<55296||56319<e||s+1===n||(o=a.charCodeAt(s+1))<56320||57343<o?t?a.charAt(s):e:t?a.slice(s,s+2):o-56320+(e-55296<<10)+65536}}},function(t,n,e){"use strict";function r(){return this}var i=e(33),o=e(2),a=e(17),s=e(20),u=e(35),l=e(108),c=e(44),p=e(109),f=e(0)("iterator"),h=!([].keys&&"next"in[].keys()),m="values";t.exports=function(t,n,e,d,x,g,v){function S(t){if(!h&&t in C)return C[t];switch(t){case"keys":case m:return function(){return new e(this,t)}}return function(){return new e(this,t)}}l(e,n,d);var y,b,w,T=n+" Iterator",A=x==m,E=!1,C=t.prototype,Y=C[f]||C["@@iterator"]||x&&C[x],N=Y||S(x),P=x?A?S("entries"):N:void 0;if((d="Array"==n&&C.entries||Y)&&(w=p(d.call(new t)))!==Object.prototype&&w.next&&(c(w,T,!0),i||"function"==typeof w[f]||s(w,f,r)),A&&Y&&Y.name!==m&&(E=!0,N=function(){return Y.call(this)}),i&&!v||!h&&!E&&C[f]||s(C,f,N),u[n]=N,u[T]=r,x)if(y={values:A?N:S(m),keys:g?N:S("keys"),entries:P},v)for(b in y)b in C||a(C,b,y[b]);else o(o.P+o.F*(h||E),n,y);return y}},function(t,n,e){"use strict";var r=e(4),i=e(18),o=e(57),a=e(58);e(59)("match",1,(function(t,n,e,s){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=s(e,t,this);if(n.done)return n.value;var u=r(t),l=String(this);if(!u.global)return a(u,l);for(var c=u.unicode,p=[],f=u.lastIndex=0;null!==(h=a(u,l));){var h=String(h[0]);""===(p[f]=h)&&(u.lastIndex=o(l,i(u.lastIndex),c)),f++}return 0===f?null:p}]}))},function(t,n,e){var r=e(7),i=e(22),o=e(0)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(23),i=e(48),o=e(25),a=e(18),s=e(123);t.exports=function(t,n){var e=1==t,u=2==t,l=3==t,c=4==t,p=6==t,f=5==t||p,h=n||s;return function(n,s,m){for(var d,x,g=o(n),v=i(g),S=r(s,m,3),y=a(v.length),b=0,w=e?h(n,y):u?h(n,0):void 0;b<y;b++)if((f||b in v)&&(x=S(d=v[b],b,g),t))if(e)w[b]=x;else if(x)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:w.push(d)}else if(c)return!1;return p?-1:l||c?c:w}}},function(t,n,e){"use strict";var r=/^([+-])?0*(\d+)(\.(\d+))?$/,i=/^([+-])?0*(\d+)(\.(\d+))?e(([+-])?(\d+))$/i,o=n.e2ten=function(t){var n=i.exec(t.toString());if(!n)return t;var e,r=n[2],o=n[4]||"",a=n[5]?+n[5]:0;return 0<a?(e=(e=o.substr(0,a)).length<a?e+new Array(a-e.length+1).join("0"):e,o=o.substr(a),r+=e):(t=(t=r.length-(a=-a))<0?0:t,e=(e=r.substr(t,a)).length<a?new Array(a-e.length+1).join("0")+e:e,r=r.substring(0,t),o=e+o),("-"==n[1]?"-":"")+(r=""==r?"0":r)+(o?"."+o:"")};n.getNumbResult=function(t){var n=r.exec(t.toString());if(n=!n&&i.test(t.toString())?r.exec(o(t.toString())):n)return{int:n[2],decimal:n[4],minus:"-"==n[1],num:n.slice(1,3).join("")}},n.centerArray=function t(n,e){return n.splice.apply(n,[0,e.length].concat(e.splice(0,e.length))),2<arguments.length&&((e=[].slice.call(arguments,2)).unshift(n),t.apply(null,e)),n};var a=n.hasAttr=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};n.extend=function(t){for(var n,e=t||{},r=Array.prototype.slice.call(arguments,1),i=0;i<r.length;i++){var o=r[i];for(n in o)a(o,n)&&(e[n]=o[n])}return e},n.getDigit=function(t){return 5<=t?4*(t-4)+4:t},n.unshiftZero=function(t,n){if(!((n=null==n?1:n)<=0))for(;n--;)t.unshift(0)},n.clearZero=function(t,n,e){if(null==t)return"";var r=~"*.?+$^[](){}|\\/".indexOf(n)?"\\"+n:n,i=new RegExp("^"+r+"+"),o=new RegExp(r+"+$");r=new RegExp(r+"{2}","g");return t=t.toString(),"^"==e&&(t=t.replace(i,"")),e&&"$"!=e||(t=t.replace(o,"")),e&&"nto1"!=e?t:t.replace(r,n)}},function(t,n,e){var r=e(65),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(t,n){switch(n){case r.L:return i[4*(t-1)+0];case r.M:return i[4*(t-1)+1];case r.Q:return i[4*(t-1)+2];case r.H:return i[4*(t-1)+3];default:return}},n.getTotalCodewordsCount=function(t,n){switch(n){case r.L:return o[4*(t-1)+0];case r.M:return o[4*(t-1)+1];case r.Q:return o[4*(t-1)+2];case r.H:return o[4*(t-1)+3];default:return}}},function(t,n){n.isValid=function(t){return!isNaN(t)&&1<=t&&t<=40}},function(t,n){var e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(e=e.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=new RegExp(e,"g"),n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=new RegExp(r,"g"),n.NUMERIC=new RegExp("[0-9]+","g"),n.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+e+"$"),o=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(t){return i.test(t)},n.testNumeric=function(t){return o.test(t)},n.testAlphanumeric=function(t){return a.test(t)}},function(t,n){function e(t){if("string"!=typeof(t="number"==typeof t?t.toString():t))throw new Error("Color should be defined as hex string");var n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||8<n.length)throw new Error("Invalid hex color: "+t);return 6===(n=3===n.length||4===n.length?Array.prototype.concat.apply([],n.map((function(t){return[t,t]}))):n).length&&n.push("F","F"),{r:(t=parseInt(n.join(""),16))>>24&255,g:t>>16&255,b:t>>8&255,a:255&t,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(t){(t=t||{}).color||(t.color={});var n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&21<=t.width?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},n.getImageWidth=function(t,e){var r=n.getScale(t,e);return Math.floor((t+2*e.margin)*r)},n.qrToImageData=function(t,e,r){for(var i=e.modules.size,o=e.modules.data,a=n.getScale(i,r),s=Math.floor((i+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark],c=0;c<s;c++)for(var p=0;p<s;p++){var f=4*(c*s+p),h=r.color.light;u<=c&&u<=p&&c<s-u&&p<s-u&&(h=l[o[Math.floor((c-u)/a)*i+Math.floor((p-u)/a)]?1:0]),t[f++]=h.r,t[f++]=h.g,t[f++]=h.b,t[f]=h.a}}},function(t,n,e){"use strict";var r=e(2),i=e(83)(1);r(r.P+r.F*!e(154)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";e.r(n),n.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACACAYAAADQ6SE/AAAR50lEQVR4Xu2dWei+2xTH1/+KDHFMRcJxQZI4mZPhJEMhJIRjOCkkZYoLN5wrKcUhmQrHBUWmlLk4MiSEQiFTckM4x4W4os/7f9bfPvu/97PW2nu/z/O8w66399fv3c8e1v7uNe/9XJDTLc8SkddWpn9HEXnIQNL8QUT4aPmpiNwkIt8SkZ9Nfw/sblxTF8Y1dXAtAYCPiciDNzBywPNuEflCBqTVh3bKAIH4cApA8szVV+L/AwAo122Fq5w6QHRZ7iMiLxMRxM4WOAri52oRQRStWs4AKZP/CdO/9TuvBaD4UBBVd9jDKgKSq9YWOWeAjFlZRBUc6G2DwYJOAldbrZwB4iM9AMDigV7/rTwCJ+GjnMXXsl3ryjW5yBkg9gKpMvs6EeGzD3EyN4pni8jnfcMcX+sMkBhN4SSIkZr/JNaarzYWDX2uUloBAqEwDVWJw+FzwyozWKdTxAjm6BLm8Y0JnRefbQtAkLOfK8ha/AnXLj6DdTtMrRlrJNDn3lalwu+tAGETq8lOG00lChAI8pPJwVTq8BRBAh3e6qA+1kiL+z4KELg648lNdHwqcL0Qp48CBGXJYqunCBJMXIi/DwWWBaV9T6HeR42KuPVRfF1OuAhA4B6/94xycl+forhBmXypk0beal4lFY7xTWejgAQnHM642RIBCCwS3cNbTpGTQBsWquaBVdqx0736CBsNWlqFzRvxwbg40z4BwoROFSTWYqJAwuI9ICEmg5U4V6KbV9u6wuIiEYBEREw6mVMFCTrJCH+JByDQuEW0mU64CEBY9NZJnypI2NnMvUd59QAkKl50A5v6TRQgKjZa0HqqIEGc4KK39JJaVPj108asiRja/4cl0yq/m8FAD0AeJCKvEpEfJspSK0s7VZCwPiwkYhrdQ51YpBvyN7oI36WYCxYHAbtawaz1msF5G6aPxQLIXUTkxyJyr6nlt4jI26e/PT6R0qROFSQKjhZxA83gJKlZCqDe1QEO1sa0ZOYAcisR+Xdhhd8wDYwBol23ZGCdKkgQI9CsBSSAA7rxDe3RbyJmbWmzmiZ0DSB3FZG/zLC1F4rIJ6eBnkESUwB6QBLrab72zRPAZp1lJYDcV0R+6xjJIya95NQ5CbsYHQKCu9zX08ay4jJ4ZR/vWIfWKqaJS8M5QBg0wThvubOI/L2Tk5imlncwC9YDFATEcuVQz7pc73BuMVwFVz50zU5rVT7nSIHlAvhcYE4B8jgRaQkLaxs9nMSUhQsuvtUVi0fMg/nOFXxGKJZzZZ9Bvj9OVhEqgALXmttlv+viPlFEvhF++uIDsFYlVg9IDkVxBRyWT0NJ6ZkTgMMi9LjdvUs0jCsDENiNJ59hbnB/SkxhQILt3qKpewjqJdI+6rXEPDzcsYdm+TxN30aEMHNZ2pF2qPtzEcGpRunR1JHfeB63WFpCDZajS+fZAr4SjYZxDxoHIM8VkU8NWo3vichjBoDEs+sGDTnUDPK8xbIg98KjFAKmXlEzHCBQyAuSX4jIe0TkQyLyTxG5fYG8XxWRpx4pSIh5WMppCXFWPEWfaQVg2udeAOIBCbGYa0Tk19NobiMivxGRexQo8lkRec4RgqR2aColAe5rrAYsFNXDvIvWCsBFADIHEhSfF4sIymhaiNV8V0TuVwDJx5MchR6dZEvihoWfU77z2IZGcflO7wcpcZkRxgLtutMJPcK15EnNxc1XJs7xt0qDyMzPiMhDC7+/X0RePf0/kjOZN7UVkFgiwJO7USKjJ9nYs55aB30HT6kFSrPNWixGQYKogHP8y2jpAZOTjRhOXt4pIm+a/tlDiC2AxEpzsKLjS4DDXPSpAtwQIPGB8xWV6LkJPVpEvu/tzfCnpDL4kEFiiYEoQPA/rXasMltbuCPK9C2AEp1QDS9wGXSOufIKEfnwgXMSS0xG6NmT6BPYt6Gql11cE5lQracnicjXnMN4moh8aQBIWmW9c5jValbitoeeIxJ90gGSlYYDzzow5Z37LS6u8UxoruHHisi3vT1P9dLFbRU3a17RNOfMsu7yABzEcqxQf0pSYl0AABEAQLGI0iQtLEzElPfQlGe5iA2h5F4W7vc8rHUeNg3qdpGHjgAkc4rqHGdrAQeLjws+T+pJx1ACCFylJdMvXcrdXFo5yAMn0/b+DeDQR1JitsQ4aGcNTjLH9WoeU3Y+pxIjnMPKF1WQ5AAhlgUH6OUoKKtXtQLkEyLygg5wlEBimZC17pYGyZweUlpUb/5IOj+vSQ/N4ExsMAUEFiPiqBcgjOfKVoBY5l46WQb/FBHBV1IqKSc5FJCwu0osPI/cRsGBvoGl5AnsKS0BLGKIDHfKSIBc2woQ4jDfmU6IzzGS54nIpycvKx5ZXPPHABIURV2QfD4auY2CA72BhW7xfqZiLwUIgGPTtR4BvaEVIEqUH1Vc7Pz+ZBH5ekK9p4vIF2fQdE8R+fP0+9Y5yVzuLvIfFg/n9BZEE6Azr2OoNJiOB4BQcMJp8pAnyFhq+sZegNBoKQWPg1Z5YI+6bxaRd8xQLR3P1kEyIndDRcIIb6qOB/MUwIwAyE0jAMLxhy+LyJ2m4xJYOP+ZAQFBPcTTrQt1SB9II8M1WW/tzF7FFT0AtqyX2GrSL9xBr3CaEzPW+Pgd9k8bnrs/PO1pRho6nV5D1ctBuvwg6aBB7UtE5I0i8jvHbF4jIu+t1EsTjnqSoFtAQn94JOduN2ansuMhvvfGpXyqLcqog6y7cQFixq8cpMuJNoKDeAZeqjOXHY4Z/aLpoaVAAlsGHF5fBQvBTo1mmKGM8pxH31Brkbr4WLzcRp8rOdE4DuFOa1wLIB4z+SMi8vKFQMIic2Cs96yrtVmiymiuXHqz/pW+JacZIgirx3WFxxoAeaWIfMCi5PQ7ydTPXwAkkbMuzqFfVs2bdpg+WLI+PCBRs7fkEwEg3mOdNy8NkEjkF0L9QEQelVCsJ3Wxloo36rhBDTg9ymjNPPWADQVfTe7UqxoByBAz17ujOA6B9eItEPaRIvKr7IEekEA0CJTK/9brm7zz8Ga05+1ZuSfW4WvEJaJTg4TaPkzBSp3UuosBhEUlZ6SUklgj9Bx3GwUS67C6htrZiYAr6h3VuanjjIPT3mKJPUBOeoGl7Ob6Xg4Q9CK4a+l05WIA4dQd/hFvua0jD3YESJDVNZd57vpuiciW5gvY+GBhlNzq9IM15Tn/6wnq5f6aHCBzsZvFADLnks+JeDcR+asTSb0gYYFqPo/0NFwr57CmoYnDWg9x4DWzecaji+TnfiMAuX4pJfXuIvJBEXmGQTF2D3Z6pPSApNZPGrbfFzgic6zV9QCEZ1MuEgHIdUsBRCdIYjMJzqWCCPplI9UsXSLarKYOqgiKOsOi/bXWtxTVtF29dDA/sD8nYhYHCAN+X3KYSifwcBFBDPWU1vzWvE+974RYTCQi2zP2lmfhtBHHHiDXC2tS83kOIFcvzUGUEER0iexSOC0fTXyuEXQESPTt194cCgA1dxwz5Np2IqU3lrN5gEAHFhMl0bqo3kmzS9V6QaLmrKdfWDxK7pzbmh0KJ8IqQRTqd8sFO4wJ60dp5xljqY4XIM05qa0DW+q5XpBY42QHs9gAnBjOnOVRy3RHPOhldXyn13hpOmN6cyIbSf0x1vis39NcljkRc2EtEWNNYMTv+wJJGo21vJ3MwzorM2Ku0TZSy+9kAaJibNSJM9ojOopnEv+Fx/wFTBG/RnShe+qrh1VN5VLc56g5CCyc9+uNskRUVLDgKLCeO0w9ns6eRe59VkUWYMkBsgP3MYoYFEYcQyN3rirSqa5gLc6WuYeOXfUeOGIOkF264jEBBH0AcRLxDViL3Pp7qsS2trH0c0cNkH0ppC2L1OujaOlzxDNHCxAPOGD3GhZvucbSuwCHCg7mlwNkp7weuoiZi8HgwdQsb33HSvTqBS8wcgsn8txW6h4lQGpJNfm1CS1XL3gXjsgvllLkPK237SXr5QDZZcIdMgepcY/8WME+wbFFJ1grqHKAdN0P0jqIkc/Vjk6kru3oWZfo+Lbu54jM5+gAUkq8TUPgHk9nhIC1uscCkpyeO+54yCKm5BrWs6j4RLjRZ6lEn2MASZ6Zt8PGsQEE04xIpRV/QbEERO4jiA5WE8nucjS3SpU8NfHoAMLCE3+Z4xx6TqV0HgZOkN8i6F2plsPi3raXrMfJPXJcdjQ8Ng4yR0icWEwcWcvkS68zhx78hsnawl2OBSSIm53ZfsgA8Z4OY575GZeSBZQruD0vQMaSOnS/yG6zbR0giAt2vWZetbDa/ER9zX9CLmp6RqbnOMWxcJLNAoSQPd7JXiuEfAd0DhRXFhzA1a57KimZJw+SLXKQNS65nztCcNIg2RpA1gAHYst66WAvSOBOo7P3W8Rt+JktAWTf93T0ekJ7QELfB+lM2xJASpFZvXwFiwDFjzqjMsYQK4AyYm14stjndmkrSMhhUUU9n78eAEfJjszFxU22ApDS/edpVDYSkcWbqhfMQdScoBBRz5i4iJRV8iQojQCJWnCXnFaOwQIWlHuy7617QxzNbcfMLRG99Upr74l3F4EqlXpBgreWRcwLG0Ez5ns4JeDAWiv1EZr3VjhI7rjSjPBaRBbxgEsYlp+nEC4VE+kFSXpSDjAwlwi38Cw0nBSx1sxNtgoQzdJC5yj5QhQEpWOPS76urBcknkXurVO6l83d5lYBoojPwYHSyqKwM2rvbVl6TocAEs/VmUXQLE3MGnI9Jm6eMV667D93l7t3SmfFQwAJ+gi6T6hsBSCW+ZiDo6abtJqRIaJVKre+nWJE3942LIfgZe1sBSBzOzAHR+3mn+iNO16iRuq1vp3C04e+HAjxqgUxC+28Z31QjNHR3GUrAJm7Y4NAm76bDVFUM/+WVE5rBLbeq+temKyi9QIAODA08uSwhOi0NkAiDrA54lpviGxdmJbnRosaOAfAs0xV71sxQnramgCpgQNRATG8731tveq6ZfE9z1j6lKeNtE7E8efNhnOf51kLILXzKmlyj8pXfSdL/rZp5D1u5ZaXAEYXKVofgLfeQZb35V7M6UEPQN2bag2A1CyQLYmJKCDy+pF0yLm+Wu8YsfrX4yHmPJcGSA0cbkSbM9pGBWuBvKNs8l1Mlo119MO19q5K3tkY9Urg6HmXyqBh7aWZUQDpiStZr0J1WTNLAaTk5zjkuzQsVI0CyBUO66U2Fssn4wLfEgApgcOy660F2PrvnLnpTbh26wkVYujd7DVauayjfQOkBA7scP5v2fVbB0FtfKPiMmG3eDYg68WRqwOENxjlRwyOyVKpAWTEK85ci2fsIFwAc/fNu/rYFwcpZaevGUhbihuN4B6tlkvU1F4FIMhdXvGVXjKb5nAstVBr9WPJ/dq48B6j2MJxRzn+LEV5cYCUXOcoo4BleLb1Wggw+rVMy/RxxK3edDwKFGn7lqLs4uijREwNHN5XkG90vUPD8kZyW45bhAYyk22XtrOYH6QEjugryKME2GJ9TwzEG5ntnZ9HF3L5WHo5CN5RrnpKczRGKVm9RFr6eQ9AXHJ/wMCtlAN97ZrZVQ9ASq5zl1wzR3WYFTwAcbH1AdO39A93TkgrQHJwpLf3DJjfQTbhAUg0dN9CCI94cW/kFoCQ9oefQ13JSyhdLYRa+hmPkroEB7Fe6Q5dXPoHFaMAydF57DGVKMgsM3ffaQ0e7uEWL1GA5J2fgts8ChArghpanGDn3ouD3eIlCpDUM7eUNh6k0erVrfgHA9yHHsLmxYNtRZDDGWoREaNHDyDCQd6WswB85l5Pot3DZYjUjiqRW5nCOlAEIKMmdOztWGKG+Xefup9uA4i8gq0pv+QMkPFw9ZwzplfiLwTn0OUihYtlOGOLWe0tzR7cM0C8JI7VsyKpaWskTsFReAYlNk+kwnzmyIfeH9JysUxz8tEZILGF99b2OM28bfXWC1kteWdngPSSv/68x6LZX+8XW+62Ns8A2e8SWUGzffbexTl0YGeA7HOJLra9NEiGxsXOANk/QOhhKXEzPA/nDJBlAEIvONEAiveyl8jIAMbIfNZLfZ8BElmGMXWxcHCN4y/puQEAkxjzmM/ezhidATJm0VtbASx84C7EUUrcBQ8oBccaHzy16TVUrX27nvsf1ZYuuGRplQcAAAAASUVORK5CYII="},function(t,n,e){var r=e(125);e={s:e(127),b:e(128)};t.exports=r(e.s,e.b)},function(t,n,e){t.exports=e(39)("native-function-to-string",Function.toString)},function(t,n,e){"use strict";var r=e(8),i=e(34),o=e(52),a=e(42),s=e(25),u=e(48),l=Object.assign;t.exports=!l||e(5)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=l({},t)[e]||Object.keys(l({},n)).join("")!=r}))?function(t,n){for(var e=s(t),l=arguments.length,c=1,p=o.f,f=a.f;c<l;)for(var h,m=u(arguments[c++]),d=p?i(m).concat(p(m)):i(m),x=d.length,g=0;g<x;)h=d[g++],r&&!f.call(m,h)||(e[h]=m[h]);return e}:l},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(23),i=e(70),o=e(71),a=e(4),s=e(18),u=e(72),l={},c={};(n=t.exports=function(t,n,e,p,f){f=f?function(){return t}:u(t);var h,m,d,x,g=r(e,p,n?2:1),v=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(o(f)){for(h=s(t.length);v<h;v++)if((x=n?g(a(m=t[v])[0],m[1]):g(t[v]))===l||x===c)return x}else for(d=f.call(t);!(m=d.next()).done;)if((x=i(d,g,m.value,n))===l||x===c)return x}).BREAK=l,n.RETURN=c},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(3),i=e(74).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==e(22)(a);t.exports=function(){function t(){var t,r;for(u&&(t=a.domain)&&t.exit();n;){r=n.fn,n=n.next;try{r()}catch(t){throw n?c():e=void 0,t}}e=void 0,t&&t.enter()}var n,e,l,c,p,f;return c=u?function(){a.nextTick(t)}:!o||r.navigator&&r.navigator.standalone?s&&s.resolve?(l=s.resolve(void 0),function(){l.then(t)}):function(){i.call(r,t)}:(p=!0,f=document.createTextNode(""),new o(t).observe(f,{characterData:!0}),function(){f.data=p=!p}),function(t){t={fn:t,next:void 0},e&&(e.next=t),n||(n=t,c()),e=t}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){e=e(3).navigator,t.exports=e&&e.userAgent||""},function(t,n,e){var r=e(4),i=e(7),o=e(75);t.exports=function(t,n){return r(t),i(n)&&n.constructor===t?n:((0,(t=o.f(t)).resolve)(n),t.promise)}},function(t,n,e){var r=e(17);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){"use strict";var r=e(3),i=e(14),o=e(8),a=e(0)("species");t.exports=function(t){t=r[t],o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){function r(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})}var i=e(32)("meta"),o=e(7),a=e(21),s=e(14).f,u=0,l=Object.isExtensible||function(){return!0},c=!e(5)((function(){return l(Object.preventExtensions({}))})),p=t.exports={KEY:i,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!l(t))return"F";if(!n)return"E";r(t)}return t[i].i},getWeak:function(t,n){if(!a(t,i)){if(!l(t))return!0;if(!n)return!1;r(t)}return t[i].w},onFreeze:function(t){return c&&p.NEED&&l(t)&&!a(t,i)&&r(t),t}}},function(t,n,e){var r=e(3),i=e(28),o=e(33),a=e(77),s=e(14).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=!o&&r.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:a.f(t)})}},function(t,n,e){var r=e(34),i=e(52),o=e(42);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var a,s=e(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&n.push(a);return n}},function(t,n,e){var r=e(14),i=e(4),o=e(34);t.exports=e(8)?Object.defineProperties:function(t,n){i(t);for(var e,a=o(n),s=a.length,u=0;u<s;)r.f(t,e=a[u++],n[e]);return t}},function(t,n,e){var r=e(29),i=e(55).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,n,e){"use strict";var r=e(54),i=e(31),o=e(44),a={};e(20)(a,e(0)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(a,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(21),i=e(25),o=e(50)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(60);e(2)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){var r=e(7),i=e(113).set;t.exports=function(t,n,e){var o;return(n=n.constructor)!==e&&"function"==typeof n&&(o=n.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){function r(t,n){if(o(t),!i(n)&&null!==n)throw TypeError(n+": can't set as prototype!")}var i=e(7),o=e(4);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=e(23)(Function.call,e(56).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return r(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:r}},function(t,n,e){var r=e(2),i=e(24),o=e(5),a=e(115),s=(e="["+a+"]",RegExp("^"+e+e+"*")),u=RegExp(e+e+"*$"),l=(e=function(t,n,e){var i={},s=o((function(){return!!a[t]()||"​…"!="​…"[t]()}));n=i[t]=s?n(l):a[t];e&&(i[e]=n),r(r.P+r.F*s,"String",i)}).trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(s,"")),2&n?t.replace(u,""):t};t.exports=e},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(14).f(RegExp.prototype,"flags",{configurable:!0,get:e(61)})},function(t,n,e){"use strict";e(118)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){function r(t,n,e,r){var i=String(a(t));t="<"+n;return""!==e&&(t+=" "+e+'="'+String(r).replace(s,"&quot;")+'"'),t+">"+i+"</"+n+">"}var i=e(2),o=e(5),a=e(24),s=/"/g;t.exports=function(t,n){var e={};e[t]=n(r),i(i.P+i.F*o((function(){var n=""[t]('"');return n!==n.toLowerCase()||3<n.split('"').length})),"String",e)}},function(t,n,e){(e=e(2))(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(82),i=e(24);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(0)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";var r=e(2),i=e(83)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),e(45)(o)},function(t,n,e){var r=e(124);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(7),i=e(78),o=e(0)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(126),i=e(84);t.exports=function(t,n){return{encodeS:function(n,e){return e=i.extend({ww:!0,tenMin:!0},e),r.CL.call(t,n,e)},encodeB:function(t,e){return e=i.extend({ww:!0},e),r.CL.call(n,t,e)},decodeS:function(){return r.unCL.apply(t,arguments)},decodeB:function(){return r.unCL.apply(n,arguments)},toMoney:function(t,e){return e=i.extend({ww:!0},e),r.toMoney.call(n,t,e)}}}},function(t,n,e){var r=e(84);function i(t,n){if(!(p=r.getNumbResult(t)))return t;n=n||{};var e=this.ch,i=this.ch_u,o=this.ch_f||"",a=this.ch_d||".",s=e.charAt(0),u=p.int,l=p.decimal,c=(t="",""),p=p.minus?o:"";o=function t(o,a,u){o=r.getNumbResult(o).int;var l="",c=1<arguments.length?a:n.tenMin,p=o.length;if(1==p)return e.charAt(+o);if(p<=4)for(var f=0,h=p;h--;){var m=+o.charAt(f);l+=c&&2==p&&0==f&&1==m?"":e.charAt(m),l+=m&&h?i.charAt(h):"",f++}else{for(var d=o.length/4>>0,x=o.length%4;0==x||!i.charAt(3+d);)x+=4,d--;var g=o.substr(0,x),v=o.substr(x);l=t(g,c)+i.charAt(3+d)+("0"==v.charAt(0)?s:"")+t(v,4<v.length&&c)}return r.clearZero(l,s)};if(l){l=r.clearZero(l,"0","$");for(var f=0;f<l.length;f++)c+=e.charAt(+l.charAt(f));c=c?a+c:""}return t=o(u),n.ww&&5<i.length&&(a=i.charAt(4),o=i.charAt(5),~(u=t.lastIndexOf(o))&&(t=t.substring(0,u).replace(new RegExp(o,"g"),a+a)+t.substring(u))),p+t+c}t.exports={CL:i,unCL:function(t){for(var n=(a=(t=t.toString()).split(this.ch_d))[0].replace(this.ch_f,""),e=a[1],i=!!~a[0].indexOf(this.ch_f),o=this.ch_u.charAt(1),a=(t=this.ch_u.charAt(4),this.ch_u.charAt(5)),s=(n=n.replace(new RegExp(t+"{2}","g"),a)).split(""),u=0,l=0,c=[],p=[],f=[],h=0;h<s.length;h++){var m,d=s[h],x=0;~(x=this.ch.indexOf(d))?0<x&&f.unshift(x):~(m=this.ch_u.indexOf(d))&&(x=r.getDigit(m),m<u?(r.unshiftZero(f,x),r.centerArray(p,f)):l<=m?(r.centerArray(c,p,f=0==h?[1]:f),0<c.length&&r.unshiftZero(c,x),l=m):(0==f.length&&o==d&&(f=[1]),r.centerArray(p,f),r.unshiftZero(p,r.getDigit(m)),u=m))}if(r.centerArray(c,p,f).reverse(),0==c.length&&c.push(0),e)for(c.push("."),h=0;h<e.length;h++)this.ch.indexOf(e.charAt(h)),c.push(this.ch.indexOf(e.charAt(h)));return i&&c.unshift("-"),parseFloat(c.join(""))},toMoney:function(t,n){var e=r.getNumbResult(t),o=this.ch.charAt(0);if(!e)return t;n=r.extend({ww:!0,complete:!1,outSymbol:!0},n="object"==typeof n?n:{});var a=e.num,s=e.decimal||"",u=(t=n.outSymbol?this.m_t:"",e=s?"":this.m_z,"");if(n.complete){for(var l=1;l<this.m_u.length;l++)u+=i.call(this,s.charAt(l-1)||"0")+this.m_u.charAt(l);e=i.call(this,a,n)+this.m_u.charAt(0)}else{if(s=s.substr(0,this.m_u.length-1),s=r.clearZero(s,"0","$")){var c;for(l=0;l<this.m_u.length-1;l++)s.charAt(l)&&"0"!=s.charAt(l)&&(u+=i.call(this,s.charAt(l))+this.m_u.charAt(l+1),c=!1),"0"!==s.charAt(l)||c||(0==l&&"0"==a||(u+=o),c=!0)}"0"==a&&!e&&u||(e=i.call(this,a,n)+this.m_u.charAt(0)+e)}return t+e+u}}},function(t,n){t.exports={ch:"零一二三四五六七八九",ch_u:"个十百千万亿",ch_f:"负",ch_d:"点"}},function(t,n){t.exports={ch:"零壹贰叁肆伍陆柒捌玖",ch_u:"个拾佰仟万亿",ch_f:"负",ch_d:"点",m_t:"人民币",m_z:"整",m_u:"元角分"}},function(t,n){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(t,n,e){var r=e(30),i=e(26),o=e(65),a=e(131),s=e(132),u=e(133),l=e(134),c=e(135),p=e(85),f=e(136),h=e(144),m=e(145),d=e(27),x=e(146),g=e(64);function v(t,n,e){for(var r,i=t.size,o=m.getEncodedBits(n,e),a=0;a<15;a++)r=1==(o>>a&1),a<6?t.set(a,8,r,!0):a<8?t.set(a+1,8,r,!0):t.set(i-15+a,8,r,!0),a<8?t.set(8,i-a-1,r,!0):a<9?t.set(8,15-a-1+1,r,!0):t.set(8,15-a-1,r,!0);t.set(i-8,8,1,!0)}function S(t,n,e){var o=new a;for(e.forEach((function(n){o.put(n.mode.bit,4),o.put(n.getLength(),d.getCharCountIndicator(n.mode,t)),n.write(o)})),e=8*(i.getSymbolTotalCodewords(t)-p.getTotalCodewordsCount(t,n)),o.getLengthInBits()+4<=e&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var s=(e-o.getLengthInBits())/8,u=0;u<s;u++)o.put(u%2?17:236,8);return function(t,n,e){for(var o=i.getSymbolTotalCodewords(n),a=o-(a=p.getTotalCodewordsCount(n,e)),s=p.getBlocksCount(n,e),u=s-o%s,l=(e=Math.floor(o/s),Math.floor(a/s)),c=l+1,h=e-l,m=new f(h),d=0,x=new Array(s),g=new Array(s),v=0,S=r.from(t.buffer),y=0;y<s;y++){var b=y<u?l:c;x[y]=S.slice(d,d+b),g[y]=m.encode(x[y]),d+=b,v=Math.max(v,b)}var w,T,A=r.alloc(o),E=0;for(w=0;w<v;w++)for(T=0;T<s;T++)w<x[T].length&&(A[E++]=x[T][w]);for(w=0;w<h;w++)for(T=0;T<s;T++)A[E++]=g[T][w];return A}(o,t,n)}n.create=function(t,n){if(void 0===t||""===t)throw new Error("No input text");var e,r,a=o.M;return void 0!==n&&(a=o.from(n.errorCorrectionLevel,o.M),e=h.from(n.version),r=c.from(n.maskPattern),n.toSJISFunc&&i.setToSJISFunction(n.toSJISFunc)),function(t,n,e,r){var o;if(g(t))o=x.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var a,p=n;p||(a=x.rawSplit(t),p=h.getBestVersionForData(a,e)),o=x.fromString(t,p||40)}if(!(t=h.getBestVersionForData(o,e)))throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<t)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+t+".\n")}else n=t;return p=S(n,e,o),t=i.getSymbolSize(n),function(t,n){for(var e=t.size,r=l.getPositions(n),i=0;i<r.length;i++)for(var o=r[i][0],a=r[i][1],s=-1;s<=7;s++)if(!(o+s<=-1||e<=o+s))for(var u=-1;u<=7;u++)a+u<=-1||e<=a+u||(0<=s&&s<=6&&(0===u||6===u)||0<=u&&u<=6&&(0===s||6===s)||2<=s&&s<=4&&2<=u&&u<=4?t.set(o+s,a+u,!0,!0):t.set(o+s,a+u,!1,!0))}(t=new s(t),n),function(t){for(var n=t.size,e=8;e<n-8;e++){var r=e%2==0;t.set(e,6,r,!0),t.set(6,e,r,!0)}}(t),function(t,n){for(var e=u.getPositions(n),r=0;r<e.length;r++)for(var i=e[r][0],o=e[r][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?t.set(i+a,o+s,!0,!0):t.set(i+a,o+s,!1,!0)}(t,n),v(t,e,0),7<=n&&function(t,n){for(var e,r,i,o=t.size,a=h.getEncodedBits(n),s=0;s<18;s++)e=Math.floor(s/3),t.set(e,r=s%3+o-8-3,i=1==(a>>s&1),!0),t.set(r,e,i,!0)}(t,n),function(t,n){for(var e=t.size,r=-1,i=e-1,o=7,a=0,s=e-1;0<s;s-=2)for(6===s&&s--;;){for(var u,l=0;l<2;l++)t.isReserved(i,s-l)||(u=!1,a<n.length&&(u=1==(n[a]>>>o&1)),t.set(i,s-l,u),-1==--o&&(a++,o=7));if((i+=r)<0||e<=i){i-=r,r=-r;break}}}(t,p),isNaN(r)&&(r=c.getBestMask(t,v.bind(null,t,e))),c.applyMask(r,t),v(t,e,r),{modules:t,version:n,errorCorrectionLevel:e,maskPattern:r,segments:o}}(t,e,a,r)}},function(t,n){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(var e=0;e<n;e++)this.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},t.exports=e},function(t,n,e){var r=e(30);function i(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=r.alloc(t*t),this.reservedBit=r.alloc(t*t)}i.prototype.set=function(t,n,e,r){n=t*this.size+n,this.data[n]=e,r&&(this.reservedBit[n]=!0)},i.prototype.get=function(t,n){return this.data[t*this.size+n]},i.prototype.xor=function(t,n,e){this.data[t*this.size+n]^=e},i.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},t.exports=i},function(t,n,e){var r=e(26).getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(var n=Math.floor(t/7)+2,e=145===(t=r(t))?26:2*Math.ceil((t-13)/(2*n-2)),i=[t-7],o=1;o<n-1;o++)i[o]=i[o-1]-e;return i.push(6),i.reverse()},n.getPositions=function(t){for(var e=[],r=n.getRowColCoords(t),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)0===o&&0===a||0===o&&a===i-1||o===i-1&&0===a||e.push([r[o],r[a]]);return e}},function(t,n,e){var r=e(26).getSymbolSize;n.getPositions=function(t){return[[0,0],[(t=r(t))-7,0],[0,t-7]]}},function(t,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};n.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&0<=t&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){for(var n=t.size,e=0,r=0,i=0,o=null,a=null,s=0;s<n;s++){r=i=0,o=a=null;for(var u=0;u<n;u++){var l=t.get(s,u);l===o?r++:(5<=r&&(e+=r-5+3),o=l,r=1),(l=t.get(u,s))===a?i++:(5<=i&&(e+=i-5+3),a=l,i=1)}5<=r&&(e+=r-5+3),5<=i&&(e+=i-5+3)}return e},n.getPenaltyN2=function(t){for(var n=t.size,e=0,r=0;r<n-1;r++)for(var i=0;i<n-1;i++){var o=t.get(r,i)+t.get(r,i+1)+t.get(r+1,i)+t.get(r+1,i+1);4!==o&&0!==o||e++}return 3*e},n.getPenaltyN3=function(t){for(var n=t.size,e=0,r=0,i=0,o=0;o<n;o++){r=i=0;for(var a=0;a<n;a++)r=r<<1&2047|t.get(o,a),10<=a&&(1488===r||93===r)&&e++,i=i<<1&2047|t.get(a,o),10<=a&&(1488===i||93===i)&&e++}return 40*e},n.getPenaltyN4=function(t){for(var n=0,e=t.data.length,r=0;r<e;r++)n+=t.data[r];return 10*Math.abs(Math.ceil(100*n/e/5)-10)},n.applyMask=function(t,e){for(var r=e.size,i=0;i<r;i++)for(var o=0;o<r;o++)e.isReserved(o,i)||e.xor(o,i,function(t,e,r){switch(t){case n.Patterns.PATTERN000:return(e+r)%2==0;case n.Patterns.PATTERN001:return e%2==0;case n.Patterns.PATTERN010:return r%3==0;case n.Patterns.PATTERN011:return(e+r)%3==0;case n.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case n.Patterns.PATTERN101:return e*r%2+e*r%3==0;case n.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case n.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}(t,o,i))},n.getBestMask=function(t,e){for(var r=Object.keys(n.Patterns).length,i=0,o=1/0,a=0;a<r;a++){e(a),n.applyMask(a,t);var s=n.getPenaltyN1(t)+n.getPenaltyN2(t)+n.getPenaltyN3(t)+n.getPenaltyN4(t);n.applyMask(a,t),s<o&&(o=s,i=a)}return i}},function(t,n,e){var r=e(30),i=e(137),o=e(139).Buffer;function a(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=r.alloc(this.degree),e=o.concat([t,n],t.length+this.degree);n=i.mod(e,this.genPoly);return 0<(t=this.degree-n.length)?(e=r.alloc(this.degree),n.copy(e,t),e):n},t.exports=a},function(t,n,e){var r=e(30),i=e(138);n.mul=function(t,n){for(var e=r.alloc(t.length+n.length-1),o=0;o<t.length;o++)for(var a=0;a<n.length;a++)e[o+a]^=i.mul(t[o],n[a]);return e},n.mod=function(t,n){for(var e=r.from(t);0<=e.length-n.length;){for(var o=e[0],a=0;a<n.length;a++)e[a]^=i.mul(n[a],o);for(var s=0;s<e.length&&0===e[s];)s++;e=e.slice(s)}return e},n.generateECPolynomial=function(t){for(var e=r.from([1]),o=0;o<t;o++)e=n.mul(e,[1,i.exp(o)]);return e}},function(t,n,e){var r=(e=e(30)).alloc(512),i=e.alloc(256);!function(){for(var t=1,n=0;n<255;n++)r[n]=t,i[t]=n,256&(t<<=1)&&(t^=285);for(n=255;n<512;n++)r[n]=r[n-255]}(),n.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},n.exp=function(t){return r[t]},n.mul=function(t,n){return 0===t||0===n?0:r[i[t]+i[n]]}},function(t,n,e){"use strict";(function(t){
1
+ !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.InvoiceSample=n():t.InvoiceSample=n()}(window,(function(){return n=[function(t,n,e){var r=e(39)("wks"),i=e(32),o=e(3).Symbol,a="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=a&&o[t]||(a?o:i)("Symbol."+t))}).store=r},function(t,n,e){"use strict";var r=e(43),i={};i[e(0)("toStringTag")]="z",i+""!="[object z]"&&e(17)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){function r(t,n,e){var c,p,f,h=t&r.F,m=t&r.G,d=t&r.P,x=t&r.B,g=m?i:t&r.S?i[n]||(i[n]={}):(i[n]||{})[l],v=m?o:o[n]||(o[n]={}),S=v[l]||(v[l]={});for(c in e=m?n:e)p=((f=!h&&g&&void 0!==g[c])?g:e)[c],f=x&&f?u(p,i):d&&"function"==typeof p?u(Function.call,p):p,g&&s(g,c,p,t&r.U),v[c]!=p&&a(v,c,f),d&&S[c]!=p&&(S[c]=p)}var i=e(3),o=e(28),a=e(20),s=e(17),u=e(23),l="prototype";i.core=o,r.F=1,r.G=2,r.S=4,r.P=8,r.B=16,r.W=32,r.U=64,r.R=128,t.exports=r},function(t,n){t=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),"number"==typeof __g&&(__g=t)},function(t,n,e){var r=e(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){"use strict";var r=e(45),i=e(110),o=e(35),a=e(29);t.exports=e(80)(Array,"Array",(function(t,n){this._t=a(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(5)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){"use strict";function r(){}var i,o,a,s,u=e(33),l=e(3),c=e(23),p=e(43),f=e(2),h=e(7),m=e(40),d=e(94),x=e(95),g=e(73),v=e(74).set,S=e(97)(),y=e(75),b=e(98),w=e(99),T=e(100),A="Promise",E=l.TypeError,C=l.process,Y=C&&C.versions,N=Y&&Y.v8||"",P=l[A],X="process"==p(C),I=o=y.f,R=(p=!!function(){try{var t=P.resolve(1),n=(t.constructor={})[e(0)("species")]=function(t){t(r,r)};return(X||"function"==typeof PromiseRejectionEvent)&&t.then(r)instanceof n&&0!==N.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n}),_=function(t,n){var e;t._n||(t._n=!0,e=t._c,S((function(){for(var r,i=t._v,o=1==t._s,a=0,s=function(n){var e,r,a,s,u=o?n.ok:n.fail,c=n.resolve,p=n.reject,f=n.domain;try{u?(o||(2==t._h&&(s=t,v.call(l,(function(){var t;X?C.emit("rejectionHandled",s):(t=l.onrejectionhandled)&&t({promise:s,reason:s._v})}))),t._h=1),!0===u?e=i:(f&&f.enter(),e=u(i),f&&(f.exit(),a=!0)),e===n.promise?p(E("Promise-chain cycle")):(r=R(e))?r.call(e,c,p):c(e)):p(i)}catch(n){f&&!a&&f.exit(),p(n)}};e.length>a;)s(e[a++]);t._c=[],t._n=!1,n&&!t._h&&(r=t,v.call(l,(function(){var t,n,e=r._v,i=O(r);if(i&&(t=b((function(){X?C.emit("unhandledRejection",e,r):(n=l.onunhandledrejection)?n({promise:r,reason:e}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",e)})),r._h=X||O(r)?2:1),r._a=void 0,i&&t.e)throw t.v})))})))},O=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),_(n,!0))},M=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw E("Promise can't be resolved itself");(n=R(t))?S((function(){var r={_w:e,_d:!1};try{n.call(t,c(M,r,1),c(L,r,1))}catch(t){L.call(r,t)}})):(e._v=t,e._s=1,_(e,!1))}catch(t){L.call({_w:e,_d:!1},t)}}};p||(P=function(t){d(this,P,A,"_h"),m(t),i.call(this);try{t(c(M,this,1),c(L,this,1))}catch(t){L.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(101)(P.prototype,{then:function(t,n){var e=I(g(this,P));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=X?C.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&_(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),a=function(){var t=new i;this.promise=t,this.resolve=c(M,t,1),this.reject=c(L,t,1)},y.f=I=function(t){return t===P||t===s?new a:o(t)}),f(f.G+f.W+f.F*!p,{Promise:P}),e(44)(P,A),e(102)(A),s=e(28)[A],f(f.S+f.F*!p,A,{reject:function(t){var n=I(this);return(0,n.reject)(t),n.promise}}),f(f.S+f.F*(u||!p),A,{resolve:function(t){return T(u&&this===s?P:this,t)}}),f(f.S+f.F*!(p&&e(76)((function(t){P.all(t).catch(r)}))),A,{all:function(t){var n=this,e=I(n),r=e.resolve,i=e.reject,o=b((function(){var e=[],o=0,a=1;x(t,!1,(function(t){var s=o++,u=!1;e.push(void 0),a++,n.resolve(t).then((function(t){u||(u=!0,e[s]=t,--a||r(e))}),i)})),--a||r(e)}));return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=I(n),r=e.reject,i=b((function(){x(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return i.e&&r(i.v),e.promise}})},function(t,n,e){"use strict";function r(t){var n=z[t]=N(B[k]);return n._k=t,n}function i(t,n){w(t);for(var e,r=y(n=E(n)),i=0,o=r.length;i<o;)Z(t,e=r[i++],n[e]);return t}function o(t){var n=j.call(this,t=C(t,!0));return!(this===Q&&u(z,t)&&!u(H,t))&&(!(n||!u(this,t)||!u(z,t)||u(this,F)&&this[F][t])||n)}function a(t,n){if(t=E(t),n=C(n,!0),t!==Q||!u(z,n)||u(H,n)){var e=O(t,n);return!e||!u(z,n)||u(t,F)&&t[F][n]||(e.enumerable=!0),e}}var s=e(3),u=e(21),l=e(8),c=e(2),p=e(17),f=e(103).KEY,h=e(5),m=e(39),d=e(44),x=e(32),g=e(0),v=e(77),S=e(104),y=e(105),b=e(78),w=e(4),T=e(7),A=e(25),E=e(29),C=e(38),Y=e(31),N=e(54),P=e(107),X=e(56),I=e(52),R=e(14),_=e(34),O=X.f,L=R.f,M=P.f,B=s.Symbol,W=s.JSON,D=W&&W.stringify,k="prototype",F=g("_hidden"),K=g("toPrimitive"),j={}.propertyIsEnumerable,U=m("symbol-registry"),z=m("symbols"),H=m("op-symbols"),Q=Object[k],J="function"==typeof B&&!!I.f,G=!($=s.QObject)||!$[k]||!$[k].findChild,V=l&&h((function(){return 7!=N(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=O(Q,n);r&&delete Q[n],L(t,n,e),r&&t!==Q&&L(Q,n,r)}:L,q=J&&"symbol"==typeof B.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof B},Z=function(t,n,e){return t===Q&&Z(H,n,e),w(t),n=C(n,!0),w(e),u(z,n)?(e.enumerable?(u(t,F)&&t[F][n]&&(t[F][n]=!1),e=N(e,{enumerable:Y(0,!1)})):(u(t,F)||L(t,F,Y(1,{})),t[F][n]=!0),V(t,n,e)):L(t,n,e)},$=(m=function(t){for(var n,e=M(E(t)),r=[],i=0;e.length>i;)u(z,n=e[i++])||n==F||n==f||r.push(n);return r},function(t){for(var n,e=t===Q,r=M(e?H:E(t)),i=[],o=0;r.length>o;)!u(z,n=r[o++])||e&&!u(Q,n)||i.push(z[n]);return i});J||(p((B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var t=x(0<arguments.length?arguments[0]:void 0),n=function(e){this===Q&&n.call(H,e),u(this,F)&&u(this[F],t)&&(this[F][t]=!1),V(this,t,Y(1,e))};return l&&G&&V(Q,t,{configurable:!0,set:n}),r(t)})[k],"toString",(function(){return this._k})),X.f=a,R.f=Z,e(55).f=P.f=m,e(42).f=o,I.f=$,l&&!e(33)&&p(Q,"propertyIsEnumerable",o,!0),v.f=function(t){return r(g(t))}),c(c.G+c.W+c.F*!J,{Symbol:B});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),nt=0;tt.length>nt;)g(tt[nt++]);for(var et=_(g.store),rt=0;et.length>rt;)S(et[rt++]);c(c.S+c.F*!J,"Symbol",{for:function(t){return u(U,t+="")?U[t]:U[t]=B(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var n in U)if(U[n]===t)return n},useSetter:function(){G=!0},useSimple:function(){G=!1}}),c(c.S+c.F*!J,"Object",{create:function(t,n){return void 0===n?N(t):i(N(t),n)},defineProperty:Z,defineProperties:i,getOwnPropertyDescriptor:a,getOwnPropertyNames:m,getOwnPropertySymbols:$}),$=h((function(){I.f(1)})),c(c.S+c.F*$,"Object",{getOwnPropertySymbols:function(t){return I.f(A(t))}}),W&&c(c.S+c.F*(!J||h((function(){var t=B();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;i<arguments.length;)r.push(arguments[i++]);if(e=n=r[1],(T(n)||void 0!==t)&&!q(t))return b(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!q(n))return n}),r[1]=n,D.apply(W,r)}}),B[k][K]||e(20)(B[k],K,B[k].valueOf),d(B,"Symbol"),d(Math,"Math",!0),d(s.JSON,"JSON",!0)},function(t,n,e){"use strict";var r=e(79)(!0);e(80)(String,"String",(function(t){this._t=String(t),this._i=0}),(function(){var t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(n=r(t,n),this._i+=n.length,{value:n,done:!1})}))},function(t,n,e){for(var r=e(6),i=e(34),o=e(17),a=e(3),s=e(20),u=e(35),l=(e=e(0))("iterator"),c=e("toStringTag"),p=u.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(f),m=0;m<h.length;m++){var d,x=h[m],g=f[x],v=a[x],S=v&&v.prototype;if(S&&(S[l]||s(S,l,p),S[c]||s(S,c,x),u[x]=p,g))for(d in r)S[d]||o(S,d,r[d],!0)}},function(t,n,e){"use strict";var r=e(4),i=e(25),o=e(18),a=e(41),s=e(57),u=e(58),l=Math.max,c=Math.min,p=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,h=/\$([$&`']|\d\d?)/g;e(59)("replace",2,(function(t,n,e,m){return[function(r,i){var o=t(this),a=null==r?void 0:r[n];return void 0!==a?a.call(r,o,i):e.call(String(o),r,i)},function(t,n){var d=m(e,t,this,n);if(d.done)return d.value;var x=r(t),g=String(this),v="function"==typeof n;v||(n=String(n));var S,y=x.global;y&&(S=x.unicode,x.lastIndex=0);for(var b=[];null!==(C=u(x,g))&&(b.push(C),y);)""===String(C[0])&&(x.lastIndex=s(g,o(x.lastIndex),S));for(var w,T="",A=0,E=0;E<b.length;E++){for(var C=b[E],Y=String(C[0]),N=l(c(a(C.index),g.length),0),P=[],X=1;X<C.length;X++)P.push(void 0===(w=C[X])?w:String(w));var I,R=C.groups;R=v?(I=[Y].concat(P,N,g),void 0!==R&&I.push(R),String(n.apply(void 0,I))):function(t,n,r,o,a,s){var u=r+t.length,l=o.length,c=h;return void 0!==a&&(a=i(a),c=f),e.call(s,c,(function(e,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":s=a[i.slice(1,-1)];break;default:var c=+i;if(0==c)return e;if(l<c){var f=p(c/10);return 0===f?e:f<=l?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):e}s=o[c-1]}return void 0===s?"":s}))}(Y,g,N,P,R,n);A<=N&&(T+=g.slice(A,N)+R,A=N+Y.length)}return T+g.slice(A)}]}))},function(t,n,e){var r=e(4),i=e(67),o=e(38),a=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return a(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){"use strict";function r(t){if("string"==typeof(n=u(t,!1))&&2<n.length){var n,e,r,i=(n=v?n.trim():h(n,3)).charCodeAt(0);if(43===i||45===i){if(88===(t=n.charCodeAt(2))||120===t)return NaN}else if(48===i){switch(n.charCodeAt(1)){case 66:case 98:e=2,r=49;break;case 79:case 111:e=8,r=55;break;default:return+n}for(var o,a=n.slice(2),s=0,l=a.length;s<l;s++)if((o=a.charCodeAt(s))<48||r<o)return NaN;return parseInt(a,e)}}return+n}var i=e(3),o=e(21),a=e(22),s=e(112),u=e(38),l=e(5),c=e(55).f,p=e(56).f,f=e(14).f,h=e(114).trim,m="Number",d=y=i[m],x=y.prototype,g=a(e(54)(x))==m,v="trim"in String.prototype;if(!y(" 0o1")||!y("0b1")||y("+0x1")){for(var S,y=function(t){t=arguments.length<1?0:t;var n=this;return n instanceof y&&(g?l((function(){x.valueOf.call(n)})):a(n)!=m)?s(new d(r(t)),n,y):r(t)},b=e(8)?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;b.length>w;w++)o(d,S=b[w])&&!o(y,S)&&f(y,S,p(d,S));(y.prototype=x).constructor=y,e(17)(i,m,y)}},function(t,n,e){var r=e(129),i=e(130),o=e(152),a=e(153);function s(t,n,e,o,a){var s,u=(s=[].slice.call(arguments,1)).length;if(!(s="function"==typeof s[u-1])&&!r())throw new Error("Callback required as last argument");if(!s){if(u<1)throw new Error("Too few arguments provided");return 1===u?(e=n,n=o=void 0):2!==u||n.getContext||(o=e,e=n,n=void 0),new Promise((function(r,a){try{var s=i.create(e,o);r(t(s,n,o))}catch(r){a(r)}}))}if(u<2)throw new Error("Too few arguments provided");2===u?(a=e,e=n,n=o=void 0):3===u&&(n.getContext&&void 0===a?(a=o,o=void 0):(a=o,o=e,e=n,n=void 0));try{var l=i.create(e,o);a(null,t(l,n,o))}catch(s){a(s)}}n.create=i.create,n.toCanvas=s.bind(null,o.render),n.toDataURL=s.bind(null,o.renderToDataURL),n.toString=s.bind(null,(function(t,n,e){return a.render(t,e)}))},function(t,n,e){var r=e(3),i=e(20),o=e(21),a=e(32)("src"),s=e(92),u="toString",l=(""+s).split(u);e(28).inspectSource=function(t){return s.call(t)},(t.exports=function(t,n,e,s){var u="function"==typeof e;u&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(u&&(o(e,a)||i(e,a,t[n]?""+t[n]:l.join(String(n)))),t===r?t[n]=e:s?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,u,(function(){return"function"==typeof this&&this[a]||s.call(this)}))},function(t,n,e){var r=e(41),i=Math.min;t.exports=function(t){return 0<t?i(r(t),9007199254740991):0}},function(t,n,e){"use strict";function r(t){e(17)(RegExp.prototype,s,t,!0)}e(116);var i=e(4),o=e(61),a=e(8),s="toString",u=/./[s];e(5)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?r((function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!a&&t instanceof RegExp?o.call(t):void 0)})):u.name!=s&&r((function(){return u.call(this)}))},function(t,n,e){var r=e(14),i=e(31);t.exports=e(8)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n,e){var r=e(40);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){var r=e(24);t.exports=function(t){return Object(r(t))}},function(t,n){var e,r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];n.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||40<t)throw new Error('"version" should be in range from 1 to 40');return 4*t+17},n.getSymbolTotalCodewords=function(t){return r[t]},n.getBCHDigit=function(t){for(var n=0;0!==t;)n++,t>>>=1;return n},n.setToSJISFunction=function(t){if("function"!=typeof t)throw new Error('"toSJISFunc" is not a valid function.');e=t},n.isKanjiModeEnabled=function(){return void 0!==e},n.toSJIS=function(t){return e(t)}},function(t,n,e){var r=e(86),i=e(87);n.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},n.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},n.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},n.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},n.MIXED={bit:-1},n.getCharCountIndicator=function(t,n){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!r.isValid(n))throw new Error("Invalid version: "+n);return 1<=n&&n<10?t.ccBits[0]:n<27?t.ccBits[1]:t.ccBits[2]},n.getBestModeForData=function(t){return i.testNumeric(t)?n.NUMERIC:i.testAlphanumeric(t)?n.ALPHANUMERIC:i.testKanji(t)?n.KANJI:n.BYTE},n.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},n.isValid=function(t){return t&&t.bit&&t.ccBits},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"numeric":return n.NUMERIC;case"alphanumeric":return n.ALPHANUMERIC;case"kanji":return n.KANJI;case"byte":return n.BYTE;default:throw new Error("Unknown mode: "+t)}}(t)}catch(t){return e}}},function(t,n){t=t.exports={version:"2.6.12"},"number"==typeof __e&&(__e=t)},function(t,n,e){var r=e(48),i=e(24);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(64),i=(o.TYPED_ARRAY_SUPPORT=function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()}catch(t){return!1}}())?2147483647:1073741823;function o(t,n,e){return o.TYPED_ARRAY_SUPPORT||this instanceof o?"number"==typeof t?u(this,t):function(t,n,e,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,r){if(e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");return r=void 0===e&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,e):new Uint8Array(n,e,r),o.TYPED_ARRAY_SUPPORT?r.__proto__=o.prototype:r=l(t,r),r}(t,n,e,r):("string"!=typeof n?function(t,n){if(o.isBuffer(n)){var e=0|a(n.length),r=s(t,e);return 0===r.length||n.copy(r,0,0,e),r}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function(t){return t!=t}(n.length)?s(t,0):l(t,n);if("Buffer"===n.type&&Array.isArray(n.data))return l(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}:function(t,n){var e=0|p(n);return(n=(t=s(t,e)).write(n))!==e&&(t=t.slice(0,n)),t})(t,n)}(this,t,n,e):new o(t,n,e)}function a(t){if(i<=t)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|t}function s(t,n){var e;return o.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(n)).__proto__=o.prototype:(e=null===(e=t)?new o(n):e).length=n,e}function u(t,n){var e=s(t,n<0?0:0|a(n));if(!o.TYPED_ARRAY_SUPPORT)for(var r=0;r<n;++r)e[r]=0;return e}function l(t,n){for(var e=n.length<0?0:0|a(n.length),r=s(t,e),i=0;i<e;i+=1)r[i]=255&n[i];return r}function c(t,n){var e;n=n||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(55295<(e=t.charCodeAt(a))&&e<57344){if(!i){if(56319<e){-1<(n-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(n-=3)&&o.push(239,191,189);continue}i=e;continue}if(e<56320){-1<(n-=3)&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&-1<(n-=3)&&o.push(239,191,189);if(i=null,e<128){if(--n<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function p(t){return o.isBuffer(t)?t.length:"undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer)?t.byteLength:0===(t="string"!=typeof t?""+t:t).length?0:c(t).length}o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),o.prototype.write=function(t,n,e){void 0===n||void 0===e&&"string"==typeof n?(e=this.length,n=0):isFinite(n)&&(n|=0,isFinite(e)?e|=0:e=void 0);var r=this.length-n;if((void 0===e||r<e)&&(e=r),0<t.length&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");return function(t,n,e,r){return function(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}(c(n,t.length-e),t,e,r)}(this,t,n,e)},o.prototype.slice=function(t,n){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e<t&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):e<n&&(n=e),n<t&&(n=t),o.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,n)).__proto__=o.prototype;else for(var r=n-t,i=new o(r,void 0),a=0;a<r;++a)i[a]=this[a+t];return i},o.prototype.copy=function(t,n,e,r){if(e=e||0,r||0===r||(r=this.length),n>=t.length&&(n=t.length),(r=0<r&&r<e?e:r)===e)return 0;if(0===t.length||0===this.length)return 0;if((n=n||0)<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var i,a=(r=t.length-n<r-e?t.length-n+e:r)-e;if(this===t&&e<n&&n<r)for(i=a-1;0<=i;--i)t[i+n]=this[i+e];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+n]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+a),n);return a},o.prototype.fill=function(t,n,e){var r;if("string"==typeof t?("string"==typeof n?(n=0,e=this.length):"string"==typeof e&&(e=this.length),1!==t.length||(r=t.charCodeAt(0))<256&&(t=r)):"number"==typeof t&&(t&=255),n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;if(n>>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(s=n;s<e;++s)this[s]=t;else for(var i=o.isBuffer(t)?t:new o(t),a=i.length,s=0;s<e-n;++s)this[s+n]=i[s%a];return this},o.concat=function(t,n){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return s(null,0);if(void 0===n)for(a=n=0;a<t.length;++a)n+=t[a].length;for(var e=u(null,n),i=0,a=0;a<t.length;++a){var l=t[a];if(!o.isBuffer(l))throw new TypeError('"list" argument must be an Array of Buffers');l.copy(e,i),i+=l.length}return e},o.byteLength=p,o.prototype._isBuffer=!0,o.isBuffer=function(t){return!(null==t||!t._isBuffer)},t.exports.alloc=function(t){return(t=new o(t)).fill(0),t},t.exports.from=function(t){return new o(t)}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+r).toString(36))}},function(t,n){t.exports=!1},function(t,n,e){var r=e(68),i=e(51);t.exports=Object.keys||function(t){return r(t,i)}},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(82),i=e(4),o=e(73),a=e(57),s=e(18),u=e(58),l=e(60),c=e(5),p=Math.min,f=[].push,h="split",m="length",d="lastIndex",x=4294967295,g=!c((function(){RegExp(x,"y")}));e(59)("split",2,(function(t,n,e,c){var v="c"=="abbc"[h](/(b)*/)[1]||4!="test"[h](/(?:)/,-1)[m]||2!="ab"[h](/(?:ab)*/)[m]||4!="."[h](/(.?)(.?)/)[m]||1<"."[h](/()()/)[m]||""[h](/.?/)[m]?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,a,s,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,h=void 0===n?x:n>>>0,g=new RegExp(t.source,c+"g");(o=l.call(g,i))&&!(p<(a=g[d])&&(u.push(i.slice(p,o.index)),1<o[m]&&o.index<i[m]&&f.apply(u,o.slice(1)),s=o[0][m],p=a,u[m]>=h));)g[d]===o.index&&g[d]++;return p===i[m]?!s&&g.test("")||u.push(""):u.push(i.slice(p)),u[m]>h?u.slice(0,h):u}:"0"[h](void 0,0)[m]?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e;return[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):v.call(String(i),e,r)},function(t,n){if((f=c(v,t,this,n,v!==e)).done)return f.value;var r=i(t),l=String(this),f=o(r,RegExp),h=r.unicode,m=(t=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(g?"y":"g"),new f(g?r:"^(?:"+r.source+")",t)),d=void 0===n?x:n>>>0;if(0==d)return[];if(0===l.length)return null===u(m,l)?[l]:[];for(var S=0,y=0,b=[];y<l.length;){m.lastIndex=g?y:0;var w,T=u(m,g?l:l.slice(y));if(null===T||(w=p(s(m.lastIndex+(g?0:y)),l.length))===S)y=a(l,y,h);else{if(b.push(l.slice(S,y)),b.length===d)return b;for(var A=1;A<=T.length-1;A++)if(b.push(T[A]),b.length===d)return b;y=S=w}}return b.push(l.slice(S)),b}]}))},function(t,n,e){"use strict";function r(t){var n=-1;i=i||function(){for(var t=new Int32Array(256),n=0;n<256;n++){for(var e=n,r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();for(var e=0;e<t.length;e++)n=i[255&(n^t[e])]^n>>>8;return-1^n}Object.defineProperty(n,"__esModule",{value:!0}),n.changeDpiBlob=function(t,n){var e=t.slice(0,33);return new Promise((function(r,i){var o=new FileReader;o.onload=function(){var e=new Uint8Array(o.result),i=t.slice(33);e=m(e,n,t.type);r(new Blob([e,i],{type:t.type}))},o.readAsArrayBuffer(e)}))},n.changeDpiDataUrl=function(t,n){var e=(c=t.split(","))[0],r=c[1],i=void 0,c=(t=void 0,!1);-1!==e.indexOf(o)&&(i=o,0<=(p=function(t){var n=t.indexOf(s);return-1===n&&(n=t.indexOf(u)),-1===n&&(n=t.indexOf(l)),n}(r))?(t=4*Math.ceil((p+28)/3),c=!0):t=44),-1!==e.indexOf(a)&&(i=a,t=24);for(var p=r.substring(0,t),f=(t=r.substring(t),atob(p)),h=new Uint8Array(f.length),d=0;d<h.length;d++)h[d]=f.charCodeAt(d);return c=m(h,n,i,c),[e,",",c=btoa(String.fromCharCode.apply(String,function(t){if(Array.isArray(t)){for(var n=0,e=Array(t.length);n<t.length;n++)e[n]=t[n];return e}return Array.from(t)}(c))),t].join("")};var i=void 0,o="image/png",a="image/jpeg",s="AAlwSFlz",u="AAAJcEhZ",l="AAAACXBI",c="p".charCodeAt(0),p="H".charCodeAt(0),f="Y".charCodeAt(0),h="s".charCodeAt(0);function m(t,n,e,i){if(e===a)return t[13]=1,t[14]=n>>8,t[15]=255&n,t[16]=n>>8,t[17]=255&n,t;if(e===o){var s=new Uint8Array(13);if(n*=39.3701,s[0]=c,s[1]=p,s[2]=f,s[3]=h,s[4]=n>>>24,s[5]=n>>>16,s[6]=n>>>8,s[7]=255&n,s[8]=s[4],s[9]=s[5],s[10]=s[6],s[11]=s[7],s[12]=1,e=r(s),(n=new Uint8Array(4))[0]=e>>>24,n[1]=e>>>16,n[2]=e>>>8,n[3]=255&e,i){var u=function(t){for(var n=t.length-1;4<=n;n--)if(9===t[n-4]&&t[n-3]===c&&t[n-2]===p&&t[n-1]===f&&t[n]===h)return n-3}(t);return t.set(s,u),t.set(n,u+13),t}return(i=new Uint8Array(4))[0]=0,i[1]=0,i[2]=0,i[3]=9,(u=new Uint8Array(54)).set(t,0),u.set(i,33),u.set(s,37),u.set(n,50),u}}},function(t,n,e){var r=e(7);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n,e){var r=e(28),i=e(3),o="__core-js_shared__",a=i[o]||(i[o]={});(t.exports=function(t,n){return a[t]||(a[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(33)?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n){var e=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(0<t?r:e)(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(22),i=e(0)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(t=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?t:o?r(n):"Object"==(t=r(n))&&"function"==typeof n.callee?"Arguments":t}},function(t,n,e){var r=e(14).f,i=e(21),o=e(0)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(0)("unscopables"),i=Array.prototype;null==i[r]&&e(20)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){"use strict";var r=e(2),i=e(69)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),e(45)("includes")},function(t,n,e){var r=e(7),i=e(3).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(22);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n,e){var r=e(41),i=Math.max,o=Math.min;t.exports=function(t,n){return(t=r(t))<0?i(t+n,0):o(t,n)}},function(t,n,e){var r=e(39)("keys"),i=e(32);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){e=e(3).document,t.exports=e&&e.documentElement},function(t,n,e){function r(){}var i=e(4),o=e(106),a=e(51),s=e(50)("IE_PROTO"),u="prototype",l=function(){var t=e(47)("iframe"),n=a.length;for(t.style.display="none",e(53).appendChild(t),t.src="javascript:",(t=t.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l[u][a[n]];return l()};t.exports=Object.create||function(t,n){var e;return null!==t?(r[u]=i(t),e=new r,r[u]=null,e[s]=t):e=l(),void 0===n?e:o(e,n)}},function(t,n,e){var r=e(68),i=e(51).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(42),i=e(31),o=e(29),a=e(38),s=e(21),u=e(67),l=Object.getOwnPropertyDescriptor;n.f=e(8)?l:function(t,n){if(t=o(t),n=a(n,!0),u)try{return l(t,n)}catch(t){}if(s(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){"use strict";var r=e(79)(!0);t.exports=function(t,n,e){return n+(e?r(t,n).length:1)}},function(t,n,e){"use strict";var r=e(43),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){if("object"!=typeof(e=e.call(t,n)))throw new TypeError("RegExp exec method returned something other than an Object or null");return e}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,e){"use strict";e(111);var r=e(17),i=e(20),o=e(5),a=e(24),s=e(0),u=e(60),l=s("species"),c=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),p=function(){var t=/(?:)/,n=t.exec;return t.exec=function(){return n.apply(this,arguments)},2===(t="ab".split(t)).length&&"a"===t[0]&&"b"===t[1]}();t.exports=function(t,n,e){var f,h,m=s(t),d=!o((function(){var n={};return n[m]=function(){return 7},7!=""[t](n)})),x=d?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[l]=function(){return e}),e[m](""),!n})):void 0;d&&x&&("replace"!==t||c)&&("split"!==t||p)||(f=/./[m],e=(x=e(a,m,""[t],(function(t,n,e,r,i){return n.exec===u?d&&!i?{done:!0,value:f.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})))[0],h=x[1],r(String.prototype,t,e),i(RegExp.prototype,m,2==n?function(t,n){return h.call(t,this,n)}:function(t){return h.call(t,this)}))}},function(t,n,e){"use strict";var r,i=e(61),o=RegExp.prototype.exec,a=String.prototype.replace,s=o,u="lastIndex",l=(r=/a/,e=/b*/g,o.call(r,"a"),o.call(e,"a"),0!==r[u]||0!==e[u]),c=void 0!==/()??/.exec("")[1];(l||c)&&(s=function(t){var n,e,r,s,p=this;return c&&(e=new RegExp("^"+p.source+"$(?!\\s)",i.call(p))),l&&(n=p[u]),r=o.call(p,t),l&&r&&(p[u]=p.global?r.index+r[0].length:n),c&&r&&1<r.length&&a.call(r[0],e,(function(){for(s=1;s<arguments.length-2;s++)void 0===arguments[s]&&(r[s]=void 0)})),r}),t.exports=s},function(t,n,e){"use strict";var r=e(4);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(2),i=e(53),o=e(22),a=e(49),s=e(18),u=[].slice;r(r.P+r.F*e(5)((function(){i&&u.call(i)})),"Array",{slice:function(t,n){var e=s(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return u.call(this,t,n);for(var i=a(t,e),l=(e=a(n,e),s(e-i)),c=new Array(l),p=0;p<l;p++)c[p]="String"==r?this.charAt(i+p):this[i+p];return c}})},function(t,n,e){"use strict";var r=e(2),i=e(120),o="includes";r(r.P+r.F*e(121)(o),"String",{includes:function(t){return!!~i(this,t,o).indexOf(t,1<arguments.length?arguments[1]:void 0)}})},function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,n){n.L={bit:1},n.M={bit:0},n.Q={bit:3},n.H={bit:2},n.isValid=function(t){return t&&void 0!==t.bit&&0<=t.bit&&t.bit<4},n.from=function(t,e){if(n.isValid(t))return t;try{return function(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return n.L;case"m":case"medium":return n.M;case"q":case"quartile":return n.Q;case"h":case"high":return n.H;default:throw new Error("Unknown EC Level: "+t)}}(t)}catch(t){return e}}},function(t,n,e){var r=e(2);r(r.S+r.F,"Object",{assign:e(93)})},function(t,n,e){t.exports=!e(8)&&!e(5)((function(){return 7!=Object.defineProperty(e(47)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(21),i=e(29),o=e(69)(!1),a=e(50)("IE_PROTO");t.exports=function(t,n){var e,s=i(t),u=0,l=[];for(e in s)e!=a&&r(s,e)&&l.push(e);for(;n.length>u;)r(s,e=n[u++])&&(~o(l,e)||l.push(e));return l}},function(t,n,e){var r=e(29),i=e(18),o=e(49);t.exports=function(t){return function(n,e,a){var s,u=r(n),l=i(u.length),c=o(a,l);if(t&&e!=e){for(;c<l;)if((s=u[c++])!=s)return!0}else for(;c<l;c++)if((t||c in u)&&u[c]===e)return t||c||0;return!t&&-1}}},function(t,n,e){var r=e(4);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){throw void 0!==(e=t.return)&&r(e.call(t)),n}}},function(t,n,e){var r=e(35),i=e(0)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){var r=e(43),i=e(0)("iterator"),o=e(35);t.exports=e(28).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){var r=e(4),i=e(40),o=e(0)("species");t.exports=function(t,n){var e;return void 0===(t=r(t).constructor)||null==(e=r(t)[o])?n:i(e)}},function(t,n,e){function r(){var t,n=+this;g.hasOwnProperty(n)&&(t=g[n],delete g[n],t())}function i(t){r.call(t.data)}var o,a=e(23),s=e(96),u=e(53),l=e(47),c=e(3),p=c.process,f=c.setImmediate,h=c.clearImmediate,m=c.MessageChannel,d=c.Dispatch,x=0,g={},v="onreadystatechange";f&&h||(f=function(t){for(var n=[],e=1;e<arguments.length;)n.push(arguments[e++]);return g[++x]=function(){s("function"==typeof t?t:Function(t),n)},o(x),x},h=function(t){delete g[t]},"process"==e(22)(p)?o=function(t){p.nextTick(a(r,t,1))}:d&&d.now?o=function(t){d.now(a(r,t,1))}:m?(m=(e=new m).port2,e.port1.onmessage=i,o=a(m.postMessage,m,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(o=function(t){c.postMessage(t+"","*")},c.addEventListener("message",i,!1)):o=v in l("script")?function(t){u.appendChild(l("script"))[v]=function(){u.removeChild(this),r.call(t)}}:function(t){setTimeout(a(r,t,1),0)}),t.exports={set:f,clear:h}},function(t,n,e){"use strict";var r=e(40);function i(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new i(t)}},function(t,n,e){var r=e(0)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:e=!0}},o[r]=function(){return a},t(o)}catch(t){}return e}},function(t,n,e){n.f=e(0)},function(t,n,e){var r=e(22);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(41),i=e(24);t.exports=function(t){return function(n,e){var o,a=String(i(n)),s=r(e);n=a.length;return s<0||n<=s?t?"":void 0:(e=a.charCodeAt(s))<55296||56319<e||s+1===n||(o=a.charCodeAt(s+1))<56320||57343<o?t?a.charAt(s):e:t?a.slice(s,s+2):o-56320+(e-55296<<10)+65536}}},function(t,n,e){"use strict";function r(){return this}var i=e(33),o=e(2),a=e(17),s=e(20),u=e(35),l=e(108),c=e(44),p=e(109),f=e(0)("iterator"),h=!([].keys&&"next"in[].keys()),m="values";t.exports=function(t,n,e,d,x,g,v){function S(t){if(!h&&t in C)return C[t];switch(t){case"keys":case m:return function(){return new e(this,t)}}return function(){return new e(this,t)}}l(e,n,d);var y,b,w,T=n+" Iterator",A=x==m,E=!1,C=t.prototype,Y=C[f]||C["@@iterator"]||x&&C[x],N=Y||S(x),P=x?A?S("entries"):N:void 0;if((d="Array"==n&&C.entries||Y)&&(w=p(d.call(new t)))!==Object.prototype&&w.next&&(c(w,T,!0),i||"function"==typeof w[f]||s(w,f,r)),A&&Y&&Y.name!==m&&(E=!0,N=function(){return Y.call(this)}),i&&!v||!h&&!E&&C[f]||s(C,f,N),u[n]=N,u[T]=r,x)if(y={values:A?N:S(m),keys:g?N:S("keys"),entries:P},v)for(b in y)b in C||a(C,b,y[b]);else o(o.P+o.F*(h||E),n,y);return y}},function(t,n,e){"use strict";var r=e(4),i=e(18),o=e(57),a=e(58);e(59)("match",1,(function(t,n,e,s){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=s(e,t,this);if(n.done)return n.value;var u=r(t),l=String(this);if(!u.global)return a(u,l);for(var c=u.unicode,p=[],f=u.lastIndex=0;null!==(h=a(u,l));){var h=String(h[0]);""===(p[f]=h)&&(u.lastIndex=o(l,i(u.lastIndex),c)),f++}return 0===f?null:p}]}))},function(t,n,e){var r=e(7),i=e(22),o=e(0)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(23),i=e(48),o=e(25),a=e(18),s=e(123);t.exports=function(t,n){var e=1==t,u=2==t,l=3==t,c=4==t,p=6==t,f=5==t||p,h=n||s;return function(n,s,m){for(var d,x,g=o(n),v=i(g),S=r(s,m,3),y=a(v.length),b=0,w=e?h(n,y):u?h(n,0):void 0;b<y;b++)if((f||b in v)&&(x=S(d=v[b],b,g),t))if(e)w[b]=x;else if(x)switch(t){case 3:return!0;case 5:return d;case 6:return b;case 2:w.push(d)}else if(c)return!1;return p?-1:l||c?c:w}}},function(t,n,e){"use strict";var r=/^([+-])?0*(\d+)(\.(\d+))?$/,i=/^([+-])?0*(\d+)(\.(\d+))?e(([+-])?(\d+))$/i,o=n.e2ten=function(t){var n=i.exec(t.toString());if(!n)return t;var e,r=n[2],o=n[4]||"",a=n[5]?+n[5]:0;return 0<a?(e=(e=o.substr(0,a)).length<a?e+new Array(a-e.length+1).join("0"):e,o=o.substr(a),r+=e):(t=(t=r.length-(a=-a))<0?0:t,e=(e=r.substr(t,a)).length<a?new Array(a-e.length+1).join("0")+e:e,r=r.substring(0,t),o=e+o),("-"==n[1]?"-":"")+(r=""==r?"0":r)+(o?"."+o:"")};n.getNumbResult=function(t){var n=r.exec(t.toString());if(n=!n&&i.test(t.toString())?r.exec(o(t.toString())):n)return{int:n[2],decimal:n[4],minus:"-"==n[1],num:n.slice(1,3).join("")}},n.centerArray=function t(n,e){return n.splice.apply(n,[0,e.length].concat(e.splice(0,e.length))),2<arguments.length&&((e=[].slice.call(arguments,2)).unshift(n),t.apply(null,e)),n};var a=n.hasAttr=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)};n.extend=function(t){for(var n,e=t||{},r=Array.prototype.slice.call(arguments,1),i=0;i<r.length;i++){var o=r[i];for(n in o)a(o,n)&&(e[n]=o[n])}return e},n.getDigit=function(t){return 5<=t?4*(t-4)+4:t},n.unshiftZero=function(t,n){if(!((n=null==n?1:n)<=0))for(;n--;)t.unshift(0)},n.clearZero=function(t,n,e){if(null==t)return"";var r=~"*.?+$^[](){}|\\/".indexOf(n)?"\\"+n:n,i=new RegExp("^"+r+"+"),o=new RegExp(r+"+$");r=new RegExp(r+"{2}","g");return t=t.toString(),"^"==e&&(t=t.replace(i,"")),e&&"$"!=e||(t=t.replace(o,"")),e&&"nto1"!=e?t:t.replace(r,n)}},function(t,n,e){var r=e(65),i=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],o=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];n.getBlocksCount=function(t,n){switch(n){case r.L:return i[4*(t-1)+0];case r.M:return i[4*(t-1)+1];case r.Q:return i[4*(t-1)+2];case r.H:return i[4*(t-1)+3];default:return}},n.getTotalCodewordsCount=function(t,n){switch(n){case r.L:return o[4*(t-1)+0];case r.M:return o[4*(t-1)+1];case r.Q:return o[4*(t-1)+2];case r.H:return o[4*(t-1)+3];default:return}}},function(t,n){n.isValid=function(t){return!isNaN(t)&&1<=t&&t<=40}},function(t,n){var e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",r="(?:(?![A-Z0-9 $%*+\\-./:]|"+(e=e.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";n.KANJI=new RegExp(e,"g"),n.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),n.BYTE=new RegExp(r,"g"),n.NUMERIC=new RegExp("[0-9]+","g"),n.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");var i=new RegExp("^"+e+"$"),o=new RegExp("^[0-9]+$"),a=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");n.testKanji=function(t){return i.test(t)},n.testNumeric=function(t){return o.test(t)},n.testAlphanumeric=function(t){return a.test(t)}},function(t,n){function e(t){if("string"!=typeof(t="number"==typeof t?t.toString():t))throw new Error("Color should be defined as hex string");var n=t.slice().replace("#","").split("");if(n.length<3||5===n.length||8<n.length)throw new Error("Invalid hex color: "+t);return 6===(n=3===n.length||4===n.length?Array.prototype.concat.apply([],n.map((function(t){return[t,t]}))):n).length&&n.push("F","F"),{r:(t=parseInt(n.join(""),16))>>24&255,g:t>>16&255,b:t>>8&255,a:255&t,hex:"#"+n.slice(0,6).join("")}}n.getOptions=function(t){(t=t||{}).color||(t.color={});var n=void 0===t.margin||null===t.margin||t.margin<0?4:t.margin,r=t.width&&21<=t.width?t.width:void 0,i=t.scale||4;return{width:r,scale:r?4:i,margin:n,color:{dark:e(t.color.dark||"#000000ff"),light:e(t.color.light||"#ffffffff")},type:t.type,rendererOpts:t.rendererOpts||{}}},n.getScale=function(t,n){return n.width&&n.width>=t+2*n.margin?n.width/(t+2*n.margin):n.scale},n.getImageWidth=function(t,e){var r=n.getScale(t,e);return Math.floor((t+2*e.margin)*r)},n.qrToImageData=function(t,e,r){for(var i=e.modules.size,o=e.modules.data,a=n.getScale(i,r),s=Math.floor((i+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark],c=0;c<s;c++)for(var p=0;p<s;p++){var f=4*(c*s+p),h=r.color.light;u<=c&&u<=p&&c<s-u&&p<s-u&&(h=l[o[Math.floor((c-u)/a)*i+Math.floor((p-u)/a)]?1:0]),t[f++]=h.r,t[f++]=h.g,t[f++]=h.b,t[f]=h.a}}},function(t,n,e){"use strict";var r=e(2),i=e(83)(1);r(r.P+r.F*!e(154)([].map,!0),"Array",{map:function(t){return i(this,t,arguments[1])}})},function(t,n,e){"use strict";e.r(n),n.default="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIgAAACACAYAAADQ6SE/AAAR50lEQVR4Xu2dWei+2xTH1/+KDHFMRcJxQZI4mZPhJEMhJIRjOCkkZYoLN5wrKcUhmQrHBUWmlLk4MiSEQiFTckM4x4W4os/7f9bfPvu/97PW2nu/z/O8w66399fv3c8e1v7uNe/9XJDTLc8SkddWpn9HEXnIQNL8QUT4aPmpiNwkIt8SkZ9Nfw/sblxTF8Y1dXAtAYCPiciDNzBywPNuEflCBqTVh3bKAIH4cApA8szVV+L/AwAo122Fq5w6QHRZ7iMiLxMRxM4WOAri52oRQRStWs4AKZP/CdO/9TuvBaD4UBBVd9jDKgKSq9YWOWeAjFlZRBUc6G2DwYJOAldbrZwB4iM9AMDigV7/rTwCJ+GjnMXXsl3ryjW5yBkg9gKpMvs6EeGzD3EyN4pni8jnfcMcX+sMkBhN4SSIkZr/JNaarzYWDX2uUloBAqEwDVWJw+FzwyozWKdTxAjm6BLm8Y0JnRefbQtAkLOfK8ha/AnXLj6DdTtMrRlrJNDn3lalwu+tAGETq8lOG00lChAI8pPJwVTq8BRBAh3e6qA+1kiL+z4KELg648lNdHwqcL0Qp48CBGXJYqunCBJMXIi/DwWWBaV9T6HeR42KuPVRfF1OuAhA4B6/94xycl+forhBmXypk0beal4lFY7xTWejgAQnHM642RIBCCwS3cNbTpGTQBsWquaBVdqx0736CBsNWlqFzRvxwbg40z4BwoROFSTWYqJAwuI9ICEmg5U4V6KbV9u6wuIiEYBEREw6mVMFCTrJCH+JByDQuEW0mU64CEBY9NZJnypI2NnMvUd59QAkKl50A5v6TRQgKjZa0HqqIEGc4KK39JJaVPj108asiRja/4cl0yq/m8FAD0AeJCKvEpEfJspSK0s7VZCwPiwkYhrdQ51YpBvyN7oI36WYCxYHAbtawaz1msF5G6aPxQLIXUTkxyJyr6nlt4jI26e/PT6R0qROFSQKjhZxA83gJKlZCqDe1QEO1sa0ZOYAcisR+Xdhhd8wDYwBol23ZGCdKkgQI9CsBSSAA7rxDe3RbyJmbWmzmiZ0DSB3FZG/zLC1F4rIJ6eBnkESUwB6QBLrab72zRPAZp1lJYDcV0R+6xjJIya95NQ5CbsYHQKCu9zX08ay4jJ4ZR/vWIfWKqaJS8M5QBg0wThvubOI/L2Tk5imlncwC9YDFATEcuVQz7pc73BuMVwFVz50zU5rVT7nSIHlAvhcYE4B8jgRaQkLaxs9nMSUhQsuvtUVi0fMg/nOFXxGKJZzZZ9Bvj9OVhEqgALXmttlv+viPlFEvhF++uIDsFYlVg9IDkVxBRyWT0NJ6ZkTgMMi9LjdvUs0jCsDENiNJ59hbnB/SkxhQILt3qKpewjqJdI+6rXEPDzcsYdm+TxN30aEMHNZ2pF2qPtzEcGpRunR1JHfeB63WFpCDZajS+fZAr4SjYZxDxoHIM8VkU8NWo3vichjBoDEs+sGDTnUDPK8xbIg98KjFAKmXlEzHCBQyAuSX4jIe0TkQyLyTxG5fYG8XxWRpx4pSIh5WMppCXFWPEWfaQVg2udeAOIBCbGYa0Tk19NobiMivxGRexQo8lkRec4RgqR2aColAe5rrAYsFNXDvIvWCsBFADIHEhSfF4sIymhaiNV8V0TuVwDJx5MchR6dZEvihoWfU77z2IZGcflO7wcpcZkRxgLtutMJPcK15EnNxc1XJs7xt0qDyMzPiMhDC7+/X0RePf0/kjOZN7UVkFgiwJO7USKjJ9nYs55aB30HT6kFSrPNWixGQYKogHP8y2jpAZOTjRhOXt4pIm+a/tlDiC2AxEpzsKLjS4DDXPSpAtwQIPGB8xWV6LkJPVpEvu/tzfCnpDL4kEFiiYEoQPA/rXasMltbuCPK9C2AEp1QDS9wGXSOufIKEfnwgXMSS0xG6NmT6BPYt6Gql11cE5lQracnicjXnMN4moh8aQBIWmW9c5jValbitoeeIxJ90gGSlYYDzzow5Z37LS6u8UxoruHHisi3vT1P9dLFbRU3a17RNOfMsu7yABzEcqxQf0pSYl0AABEAQLGI0iQtLEzElPfQlGe5iA2h5F4W7vc8rHUeNg3qdpGHjgAkc4rqHGdrAQeLjws+T+pJx1ACCFylJdMvXcrdXFo5yAMn0/b+DeDQR1JitsQ4aGcNTjLH9WoeU3Y+pxIjnMPKF1WQ5AAhlgUH6OUoKKtXtQLkEyLygg5wlEBimZC17pYGyZweUlpUb/5IOj+vSQ/N4ExsMAUEFiPiqBcgjOfKVoBY5l46WQb/FBHBV1IqKSc5FJCwu0osPI/cRsGBvoGl5AnsKS0BLGKIDHfKSIBc2woQ4jDfmU6IzzGS54nIpycvKx5ZXPPHABIURV2QfD4auY2CA72BhW7xfqZiLwUIgGPTtR4BvaEVIEqUH1Vc7Pz+ZBH5ekK9p4vIF2fQdE8R+fP0+9Y5yVzuLvIfFg/n9BZEE6Azr2OoNJiOB4BQcMJp8pAnyFhq+sZegNBoKQWPg1Z5YI+6bxaRd8xQLR3P1kEyIndDRcIIb6qOB/MUwIwAyE0jAMLxhy+LyJ2m4xJYOP+ZAQFBPcTTrQt1SB9II8M1WW/tzF7FFT0AtqyX2GrSL9xBr3CaEzPW+Pgd9k8bnrs/PO1pRho6nV5D1ctBuvwg6aBB7UtE5I0i8jvHbF4jIu+t1EsTjnqSoFtAQn94JOduN2ansuMhvvfGpXyqLcqog6y7cQFixq8cpMuJNoKDeAZeqjOXHY4Z/aLpoaVAAlsGHF5fBQvBTo1mmKGM8pxH31Brkbr4WLzcRp8rOdE4DuFOa1wLIB4z+SMi8vKFQMIic2Cs96yrtVmiymiuXHqz/pW+JacZIgirx3WFxxoAeaWIfMCi5PQ7ydTPXwAkkbMuzqFfVs2bdpg+WLI+PCBRs7fkEwEg3mOdNy8NkEjkF0L9QEQelVCsJ3Wxloo36rhBDTg9ymjNPPWADQVfTe7UqxoByBAz17ujOA6B9eItEPaRIvKr7IEekEA0CJTK/9brm7zz8Ga05+1ZuSfW4WvEJaJTg4TaPkzBSp3UuosBhEUlZ6SUklgj9Bx3GwUS67C6htrZiYAr6h3VuanjjIPT3mKJPUBOeoGl7Ob6Xg4Q9CK4a+l05WIA4dQd/hFvua0jD3YESJDVNZd57vpuiciW5gvY+GBhlNzq9IM15Tn/6wnq5f6aHCBzsZvFADLnks+JeDcR+asTSb0gYYFqPo/0NFwr57CmoYnDWg9x4DWzecaji+TnfiMAuX4pJfXuIvJBEXmGQTF2D3Z6pPSApNZPGrbfFzgic6zV9QCEZ1MuEgHIdUsBRCdIYjMJzqWCCPplI9UsXSLarKYOqgiKOsOi/bXWtxTVtF29dDA/sD8nYhYHCAN+X3KYSifwcBFBDPWU1vzWvE+974RYTCQi2zP2lmfhtBHHHiDXC2tS83kOIFcvzUGUEER0iexSOC0fTXyuEXQESPTt194cCgA1dxwz5Np2IqU3lrN5gEAHFhMl0bqo3kmzS9V6QaLmrKdfWDxK7pzbmh0KJ8IqQRTqd8sFO4wJ60dp5xljqY4XIM05qa0DW+q5XpBY42QHs9gAnBjOnOVRy3RHPOhldXyn13hpOmN6cyIbSf0x1vis39NcljkRc2EtEWNNYMTv+wJJGo21vJ3MwzorM2Ku0TZSy+9kAaJibNSJM9ojOopnEv+Fx/wFTBG/RnShe+qrh1VN5VLc56g5CCyc9+uNskRUVLDgKLCeO0w9ns6eRe59VkUWYMkBsgP3MYoYFEYcQyN3rirSqa5gLc6WuYeOXfUeOGIOkF264jEBBH0AcRLxDViL3Pp7qsS2trH0c0cNkH0ppC2L1OujaOlzxDNHCxAPOGD3GhZvucbSuwCHCg7mlwNkp7weuoiZi8HgwdQsb33HSvTqBS8wcgsn8txW6h4lQGpJNfm1CS1XL3gXjsgvllLkPK237SXr5QDZZcIdMgepcY/8WME+wbFFJ1grqHKAdN0P0jqIkc/Vjk6kru3oWZfo+Lbu54jM5+gAUkq8TUPgHk9nhIC1uscCkpyeO+54yCKm5BrWs6j4RLjRZ6lEn2MASZ6Zt8PGsQEE04xIpRV/QbEERO4jiA5WE8nucjS3SpU8NfHoAMLCE3+Z4xx6TqV0HgZOkN8i6F2plsPi3raXrMfJPXJcdjQ8Ng4yR0icWEwcWcvkS68zhx78hsnawl2OBSSIm53ZfsgA8Z4OY575GZeSBZQruD0vQMaSOnS/yG6zbR0giAt2vWZetbDa/ER9zX9CLmp6RqbnOMWxcJLNAoSQPd7JXiuEfAd0DhRXFhzA1a57KimZJw+SLXKQNS65nztCcNIg2RpA1gAHYst66WAvSOBOo7P3W8Rt+JktAWTf93T0ekJ7QELfB+lM2xJASpFZvXwFiwDFjzqjMsYQK4AyYm14stjndmkrSMhhUUU9n78eAEfJjszFxU22ApDS/edpVDYSkcWbqhfMQdScoBBRz5i4iJRV8iQojQCJWnCXnFaOwQIWlHuy7617QxzNbcfMLRG99Upr74l3F4EqlXpBgreWRcwLG0Ez5ns4JeDAWiv1EZr3VjhI7rjSjPBaRBbxgEsYlp+nEC4VE+kFSXpSDjAwlwi38Cw0nBSx1sxNtgoQzdJC5yj5QhQEpWOPS76urBcknkXurVO6l83d5lYBoojPwYHSyqKwM2rvbVl6TocAEs/VmUXQLE3MGnI9Jm6eMV667D93l7t3SmfFQwAJ+gi6T6hsBSCW+ZiDo6abtJqRIaJVKre+nWJE3942LIfgZe1sBSBzOzAHR+3mn+iNO16iRuq1vp3C04e+HAjxqgUxC+28Z31QjNHR3GUrAJm7Y4NAm76bDVFUM/+WVE5rBLbeq+temKyi9QIAODA08uSwhOi0NkAiDrA54lpviGxdmJbnRosaOAfAs0xV71sxQnramgCpgQNRATG8731tveq6ZfE9z1j6lKeNtE7E8efNhnOf51kLILXzKmlyj8pXfSdL/rZp5D1u5ZaXAEYXKVofgLfeQZb35V7M6UEPQN2bag2A1CyQLYmJKCDy+pF0yLm+Wu8YsfrX4yHmPJcGSA0cbkSbM9pGBWuBvKNs8l1Mlo119MO19q5K3tkY9Urg6HmXyqBh7aWZUQDpiStZr0J1WTNLAaTk5zjkuzQsVI0CyBUO66U2Fssn4wLfEgApgcOy660F2PrvnLnpTbh26wkVYujd7DVauayjfQOkBA7scP5v2fVbB0FtfKPiMmG3eDYg68WRqwOENxjlRwyOyVKpAWTEK85ci2fsIFwAc/fNu/rYFwcpZaevGUhbihuN4B6tlkvU1F4FIMhdXvGVXjKb5nAstVBr9WPJ/dq48B6j2MJxRzn+LEV5cYCUXOcoo4BleLb1Wggw+rVMy/RxxK3edDwKFGn7lqLs4uijREwNHN5XkG90vUPD8kZyW45bhAYyk22XtrOYH6QEjugryKME2GJ9TwzEG5ntnZ9HF3L5WHo5CN5RrnpKczRGKVm9RFr6eQ9AXHJ/wMCtlAN97ZrZVQ9ASq5zl1wzR3WYFTwAcbH1AdO39A93TkgrQHJwpLf3DJjfQTbhAUg0dN9CCI94cW/kFoCQ9oefQ13JSyhdLYRa+hmPkroEB7Fe6Q5dXPoHFaMAydF57DGVKMgsM3ffaQ0e7uEWL1GA5J2fgts8ChArghpanGDn3ouD3eIlCpDUM7eUNh6k0erVrfgHA9yHHsLmxYNtRZDDGWoREaNHDyDCQd6WswB85l5Pot3DZYjUjiqRW5nCOlAEIKMmdOztWGKG+Xefup9uA4i8gq0pv+QMkPFw9ZwzplfiLwTn0OUihYtlOGOLWe0tzR7cM0C8JI7VsyKpaWskTsFReAYlNk+kwnzmyIfeH9JysUxz8tEZILGF99b2OM28bfXWC1kteWdngPSSv/68x6LZX+8XW+62Ns8A2e8SWUGzffbexTl0YGeA7HOJLra9NEiGxsXOANk/QOhhKXEzPA/nDJBlAEIvONEAiveyl8jIAMbIfNZLfZ8BElmGMXWxcHCN4y/puQEAkxjzmM/ezhidATJm0VtbASx84C7EUUrcBQ8oBccaHzy16TVUrX27nvsf1ZYuuGRplQcAAAAASUVORK5CYII="},function(t,n,e){var r=e(125);e={s:e(127),b:e(128)};t.exports=r(e.s,e.b)},function(t,n,e){t.exports=e(39)("native-function-to-string",Function.toString)},function(t,n,e){"use strict";var r=e(8),i=e(34),o=e(52),a=e(42),s=e(25),u=e(48),l=Object.assign;t.exports=!l||e(5)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=l({},t)[e]||Object.keys(l({},n)).join("")!=r}))?function(t,n){for(var e=s(t),l=arguments.length,c=1,p=o.f,f=a.f;c<l;)for(var h,m=u(arguments[c++]),d=p?i(m).concat(p(m)):i(m),x=d.length,g=0;g<x;)h=d[g++],r&&!f.call(m,h)||(e[h]=m[h]);return e}:l},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(23),i=e(70),o=e(71),a=e(4),s=e(18),u=e(72),l={},c={};(n=t.exports=function(t,n,e,p,f){f=f?function(){return t}:u(t);var h,m,d,x,g=r(e,p,n?2:1),v=0;if("function"!=typeof f)throw TypeError(t+" is not iterable!");if(o(f)){for(h=s(t.length);v<h;v++)if((x=n?g(a(m=t[v])[0],m[1]):g(t[v]))===l||x===c)return x}else for(d=f.call(t);!(m=d.next()).done;)if((x=i(d,g,m.value,n))===l||x===c)return x}).BREAK=l,n.RETURN=c},function(t,n){t.exports=function(t,n,e){var r=void 0===e;switch(n.length){case 0:return r?t():t.call(e);case 1:return r?t(n[0]):t.call(e,n[0]);case 2:return r?t(n[0],n[1]):t.call(e,n[0],n[1]);case 3:return r?t(n[0],n[1],n[2]):t.call(e,n[0],n[1],n[2]);case 4:return r?t(n[0],n[1],n[2],n[3]):t.call(e,n[0],n[1],n[2],n[3])}return t.apply(e,n)}},function(t,n,e){var r=e(3),i=e(74).set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,u="process"==e(22)(a);t.exports=function(){function t(){var t,r;for(u&&(t=a.domain)&&t.exit();n;){r=n.fn,n=n.next;try{r()}catch(t){throw n?c():e=void 0,t}}e=void 0,t&&t.enter()}var n,e,l,c,p,f;return c=u?function(){a.nextTick(t)}:!o||r.navigator&&r.navigator.standalone?s&&s.resolve?(l=s.resolve(void 0),function(){l.then(t)}):function(){i.call(r,t)}:(p=!0,f=document.createTextNode(""),new o(t).observe(f,{characterData:!0}),function(){f.data=p=!p}),function(t){t={fn:t,next:void 0},e&&(e.next=t),n||(n=t,c()),e=t}}},function(t,n){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,n,e){e=e(3).navigator,t.exports=e&&e.userAgent||""},function(t,n,e){var r=e(4),i=e(7),o=e(75);t.exports=function(t,n){return r(t),i(n)&&n.constructor===t?n:((0,(t=o.f(t)).resolve)(n),t.promise)}},function(t,n,e){var r=e(17);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){"use strict";var r=e(3),i=e(14),o=e(8),a=e(0)("species");t.exports=function(t){t=r[t],o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},function(t,n,e){function r(t){s(t,i,{value:{i:"O"+ ++u,w:{}}})}var i=e(32)("meta"),o=e(7),a=e(21),s=e(14).f,u=0,l=Object.isExtensible||function(){return!0},c=!e(5)((function(){return l(Object.preventExtensions({}))})),p=t.exports={KEY:i,NEED:!1,fastKey:function(t,n){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,i)){if(!l(t))return"F";if(!n)return"E";r(t)}return t[i].i},getWeak:function(t,n){if(!a(t,i)){if(!l(t))return!0;if(!n)return!1;r(t)}return t[i].w},onFreeze:function(t){return c&&p.NEED&&l(t)&&!a(t,i)&&r(t),t}}},function(t,n,e){var r=e(3),i=e(28),o=e(33),a=e(77),s=e(14).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=!o&&r.Symbol||{});"_"==t.charAt(0)||t in n||s(n,t,{value:a.f(t)})}},function(t,n,e){var r=e(34),i=e(52),o=e(42);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var a,s=e(t),u=o.f,l=0;s.length>l;)u.call(t,a=s[l++])&&n.push(a);return n}},function(t,n,e){var r=e(14),i=e(4),o=e(34);t.exports=e(8)?Object.defineProperties:function(t,n){i(t);for(var e,a=o(n),s=a.length,u=0;u<s;)r.f(t,e=a[u++],n[e]);return t}},function(t,n,e){var r=e(29),i=e(55).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(r(t))}},function(t,n,e){"use strict";var r=e(54),i=e(31),o=e(44),a={};e(20)(a,e(0)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(a,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(21),i=e(25),o=e(50)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(60);e(2)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){var r=e(7),i=e(113).set;t.exports=function(t,n,e){var o;return(n=n.constructor)!==e&&"function"==typeof n&&(o=n.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){function r(t,n){if(o(t),!i(n)&&null!==n)throw TypeError(n+": can't set as prototype!")}var i=e(7),o=e(4);t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,i){try{(i=e(23)(Function.call,e(56).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return r(t,e),n?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:r}},function(t,n,e){var r=e(2),i=e(24),o=e(5),a=e(115),s=(e="["+a+"]",RegExp("^"+e+e+"*")),u=RegExp(e+e+"*$"),l=(e=function(t,n,e){var i={},s=o((function(){return!!a[t]()||"​…"!="​…"[t]()}));n=i[t]=s?n(l):a[t];e&&(i[e]=n),r(r.P+r.F*s,"String",i)}).trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(s,"")),2&n?t.replace(u,""):t};t.exports=e},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(14).f(RegExp.prototype,"flags",{configurable:!0,get:e(61)})},function(t,n,e){"use strict";e(118)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){function r(t,n,e,r){var i=String(a(t));t="<"+n;return""!==e&&(t+=" "+e+'="'+String(r).replace(s,"&quot;")+'"'),t+">"+i+"</"+n+">"}var i=e(2),o=e(5),a=e(24),s=/"/g;t.exports=function(t,n){var e={};e[t]=n(r),i(i.P+i.F*o((function(){var n=""[t]('"');return n!==n.toLowerCase()||3<n.split('"').length})),"String",e)}},function(t,n,e){(e=e(2))(e.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(82),i=e(24);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(0)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){"use strict";var r=e(2),i=e(83)(5),o="find",a=!0;o in[]&&Array(1)[o]((function(){a=!1})),r(r.P+r.F*a,"Array",{find:function(t){return i(this,t,1<arguments.length?arguments[1]:void 0)}}),e(45)(o)},function(t,n,e){var r=e(124);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(7),i=e(78),o=e(0)("species");t.exports=function(t){var n;return i(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!i(n.prototype)||(n=void 0),r(n)&&null===(n=n[o])&&(n=void 0)),void 0===n?Array:n}},function(t,n,e){var r=e(126),i=e(84);t.exports=function(t,n){return{encodeS:function(n,e){return e=i.extend({ww:!0,tenMin:!0},e),r.CL.call(t,n,e)},encodeB:function(t,e){return e=i.extend({ww:!0},e),r.CL.call(n,t,e)},decodeS:function(){return r.unCL.apply(t,arguments)},decodeB:function(){return r.unCL.apply(n,arguments)},toMoney:function(t,e){return e=i.extend({ww:!0},e),r.toMoney.call(n,t,e)}}}},function(t,n,e){var r=e(84);function i(t,n){if(!(p=r.getNumbResult(t)))return t;n=n||{};var e=this.ch,i=this.ch_u,o=this.ch_f||"",a=this.ch_d||".",s=e.charAt(0),u=p.int,l=p.decimal,c=(t="",""),p=p.minus?o:"";o=function t(o,a,u){o=r.getNumbResult(o).int;var l="",c=1<arguments.length?a:n.tenMin,p=o.length;if(1==p)return e.charAt(+o);if(p<=4)for(var f=0,h=p;h--;){var m=+o.charAt(f);l+=c&&2==p&&0==f&&1==m?"":e.charAt(m),l+=m&&h?i.charAt(h):"",f++}else{for(var d=o.length/4>>0,x=o.length%4;0==x||!i.charAt(3+d);)x+=4,d--;var g=o.substr(0,x),v=o.substr(x);l=t(g,c)+i.charAt(3+d)+("0"==v.charAt(0)?s:"")+t(v,4<v.length&&c)}return r.clearZero(l,s)};if(l){l=r.clearZero(l,"0","$");for(var f=0;f<l.length;f++)c+=e.charAt(+l.charAt(f));c=c?a+c:""}return t=o(u),n.ww&&5<i.length&&(a=i.charAt(4),o=i.charAt(5),~(u=t.lastIndexOf(o))&&(t=t.substring(0,u).replace(new RegExp(o,"g"),a+a)+t.substring(u))),p+t+c}t.exports={CL:i,unCL:function(t){for(var n=(a=(t=t.toString()).split(this.ch_d))[0].replace(this.ch_f,""),e=a[1],i=!!~a[0].indexOf(this.ch_f),o=this.ch_u.charAt(1),a=(t=this.ch_u.charAt(4),this.ch_u.charAt(5)),s=(n=n.replace(new RegExp(t+"{2}","g"),a)).split(""),u=0,l=0,c=[],p=[],f=[],h=0;h<s.length;h++){var m,d=s[h],x=0;~(x=this.ch.indexOf(d))?0<x&&f.unshift(x):~(m=this.ch_u.indexOf(d))&&(x=r.getDigit(m),m<u?(r.unshiftZero(f,x),r.centerArray(p,f)):l<=m?(r.centerArray(c,p,f=0==h?[1]:f),0<c.length&&r.unshiftZero(c,x),l=m):(0==f.length&&o==d&&(f=[1]),r.centerArray(p,f),r.unshiftZero(p,r.getDigit(m)),u=m))}if(r.centerArray(c,p,f).reverse(),0==c.length&&c.push(0),e)for(c.push("."),h=0;h<e.length;h++)this.ch.indexOf(e.charAt(h)),c.push(this.ch.indexOf(e.charAt(h)));return i&&c.unshift("-"),parseFloat(c.join(""))},toMoney:function(t,n){var e=r.getNumbResult(t),o=this.ch.charAt(0);if(!e)return t;n=r.extend({ww:!0,complete:!1,outSymbol:!0},n="object"==typeof n?n:{});var a=e.num,s=e.decimal||"",u=(t=n.outSymbol?this.m_t:"",e=s?"":this.m_z,"");if(n.complete){for(var l=1;l<this.m_u.length;l++)u+=i.call(this,s.charAt(l-1)||"0")+this.m_u.charAt(l);e=i.call(this,a,n)+this.m_u.charAt(0)}else{if(s=s.substr(0,this.m_u.length-1),s=r.clearZero(s,"0","$")){var c;for(l=0;l<this.m_u.length-1;l++)s.charAt(l)&&"0"!=s.charAt(l)&&(u+=i.call(this,s.charAt(l))+this.m_u.charAt(l+1),c=!1),"0"!==s.charAt(l)||c||(0==l&&"0"==a||(u+=o),c=!0)}"0"==a&&!e&&u||(e=i.call(this,a,n)+this.m_u.charAt(0)+e)}return t+e+u}}},function(t,n){t.exports={ch:"零一二三四五六七八九",ch_u:"个十百千万亿",ch_f:"负",ch_d:"点"}},function(t,n){t.exports={ch:"零壹贰叁肆伍陆柒捌玖",ch_u:"个拾佰仟万亿",ch_f:"负",ch_d:"点",m_t:"人民币",m_z:"整",m_u:"元角分"}},function(t,n){t.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},function(t,n,e){var r=e(30),i=e(26),o=e(65),a=e(131),s=e(132),u=e(133),l=e(134),c=e(135),p=e(85),f=e(136),h=e(144),m=e(145),d=e(27),x=e(146),g=e(64);function v(t,n,e){for(var r,i=t.size,o=m.getEncodedBits(n,e),a=0;a<15;a++)r=1==(o>>a&1),a<6?t.set(a,8,r,!0):a<8?t.set(a+1,8,r,!0):t.set(i-15+a,8,r,!0),a<8?t.set(8,i-a-1,r,!0):a<9?t.set(8,15-a-1+1,r,!0):t.set(8,15-a-1,r,!0);t.set(i-8,8,1,!0)}function S(t,n,e){var o=new a;for(e.forEach((function(n){o.put(n.mode.bit,4),o.put(n.getLength(),d.getCharCountIndicator(n.mode,t)),n.write(o)})),e=8*(i.getSymbolTotalCodewords(t)-p.getTotalCodewordsCount(t,n)),o.getLengthInBits()+4<=e&&o.put(0,4);o.getLengthInBits()%8!=0;)o.putBit(0);for(var s=(e-o.getLengthInBits())/8,u=0;u<s;u++)o.put(u%2?17:236,8);return function(t,n,e){for(var o=i.getSymbolTotalCodewords(n),a=o-(a=p.getTotalCodewordsCount(n,e)),s=p.getBlocksCount(n,e),u=s-o%s,l=(e=Math.floor(o/s),Math.floor(a/s)),c=l+1,h=e-l,m=new f(h),d=0,x=new Array(s),g=new Array(s),v=0,S=r.from(t.buffer),y=0;y<s;y++){var b=y<u?l:c;x[y]=S.slice(d,d+b),g[y]=m.encode(x[y]),d+=b,v=Math.max(v,b)}var w,T,A=r.alloc(o),E=0;for(w=0;w<v;w++)for(T=0;T<s;T++)w<x[T].length&&(A[E++]=x[T][w]);for(w=0;w<h;w++)for(T=0;T<s;T++)A[E++]=g[T][w];return A}(o,t,n)}n.create=function(t,n){if(void 0===t||""===t)throw new Error("No input text");var e,r,a=o.M;return void 0!==n&&(a=o.from(n.errorCorrectionLevel,o.M),e=h.from(n.version),r=c.from(n.maskPattern),n.toSJISFunc&&i.setToSJISFunction(n.toSJISFunc)),function(t,n,e,r){var o;if(g(t))o=x.fromArray(t);else{if("string"!=typeof t)throw new Error("Invalid data");var a,p=n;p||(a=x.rawSplit(t),p=h.getBestVersionForData(a,e)),o=x.fromString(t,p||40)}if(!(t=h.getBestVersionForData(o,e)))throw new Error("The amount of data is too big to be stored in a QR Code");if(n){if(n<t)throw new Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+t+".\n")}else n=t;return p=S(n,e,o),t=i.getSymbolSize(n),function(t,n){for(var e=t.size,r=l.getPositions(n),i=0;i<r.length;i++)for(var o=r[i][0],a=r[i][1],s=-1;s<=7;s++)if(!(o+s<=-1||e<=o+s))for(var u=-1;u<=7;u++)a+u<=-1||e<=a+u||(0<=s&&s<=6&&(0===u||6===u)||0<=u&&u<=6&&(0===s||6===s)||2<=s&&s<=4&&2<=u&&u<=4?t.set(o+s,a+u,!0,!0):t.set(o+s,a+u,!1,!0))}(t=new s(t),n),function(t){for(var n=t.size,e=8;e<n-8;e++){var r=e%2==0;t.set(e,6,r,!0),t.set(6,e,r,!0)}}(t),function(t,n){for(var e=u.getPositions(n),r=0;r<e.length;r++)for(var i=e[r][0],o=e[r][1],a=-2;a<=2;a++)for(var s=-2;s<=2;s++)-2===a||2===a||-2===s||2===s||0===a&&0===s?t.set(i+a,o+s,!0,!0):t.set(i+a,o+s,!1,!0)}(t,n),v(t,e,0),7<=n&&function(t,n){for(var e,r,i,o=t.size,a=h.getEncodedBits(n),s=0;s<18;s++)e=Math.floor(s/3),t.set(e,r=s%3+o-8-3,i=1==(a>>s&1),!0),t.set(r,e,i,!0)}(t,n),function(t,n){for(var e=t.size,r=-1,i=e-1,o=7,a=0,s=e-1;0<s;s-=2)for(6===s&&s--;;){for(var u,l=0;l<2;l++)t.isReserved(i,s-l)||(u=!1,a<n.length&&(u=1==(n[a]>>>o&1)),t.set(i,s-l,u),-1==--o&&(a++,o=7));if((i+=r)<0||e<=i){i-=r,r=-r;break}}}(t,p),isNaN(r)&&(r=c.getBestMask(t,v.bind(null,t,e))),c.applyMask(r,t),v(t,e,r),{modules:t,version:n,errorCorrectionLevel:e,maskPattern:r,segments:o}}(t,e,a,r)}},function(t,n){function e(){this.buffer=[],this.length=0}e.prototype={get:function(t){var n=Math.floor(t/8);return 1==(this.buffer[n]>>>7-t%8&1)},put:function(t,n){for(var e=0;e<n;e++)this.putBit(1==(t>>>n-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var n=Math.floor(this.length/8);this.buffer.length<=n&&this.buffer.push(0),t&&(this.buffer[n]|=128>>>this.length%8),this.length++}},t.exports=e},function(t,n,e){var r=e(30);function i(t){if(!t||t<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=t,this.data=r.alloc(t*t),this.reservedBit=r.alloc(t*t)}i.prototype.set=function(t,n,e,r){n=t*this.size+n,this.data[n]=e,r&&(this.reservedBit[n]=!0)},i.prototype.get=function(t,n){return this.data[t*this.size+n]},i.prototype.xor=function(t,n,e){this.data[t*this.size+n]^=e},i.prototype.isReserved=function(t,n){return this.reservedBit[t*this.size+n]},t.exports=i},function(t,n,e){var r=e(26).getSymbolSize;n.getRowColCoords=function(t){if(1===t)return[];for(var n=Math.floor(t/7)+2,e=145===(t=r(t))?26:2*Math.ceil((t-13)/(2*n-2)),i=[t-7],o=1;o<n-1;o++)i[o]=i[o-1]-e;return i.push(6),i.reverse()},n.getPositions=function(t){for(var e=[],r=n.getRowColCoords(t),i=r.length,o=0;o<i;o++)for(var a=0;a<i;a++)0===o&&0===a||0===o&&a===i-1||o===i-1&&0===a||e.push([r[o],r[a]]);return e}},function(t,n,e){var r=e(26).getSymbolSize;n.getPositions=function(t){return[[0,0],[(t=r(t))-7,0],[0,t-7]]}},function(t,n){n.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};n.isValid=function(t){return null!=t&&""!==t&&!isNaN(t)&&0<=t&&t<=7},n.from=function(t){return n.isValid(t)?parseInt(t,10):void 0},n.getPenaltyN1=function(t){for(var n=t.size,e=0,r=0,i=0,o=null,a=null,s=0;s<n;s++){r=i=0,o=a=null;for(var u=0;u<n;u++){var l=t.get(s,u);l===o?r++:(5<=r&&(e+=r-5+3),o=l,r=1),(l=t.get(u,s))===a?i++:(5<=i&&(e+=i-5+3),a=l,i=1)}5<=r&&(e+=r-5+3),5<=i&&(e+=i-5+3)}return e},n.getPenaltyN2=function(t){for(var n=t.size,e=0,r=0;r<n-1;r++)for(var i=0;i<n-1;i++){var o=t.get(r,i)+t.get(r,i+1)+t.get(r+1,i)+t.get(r+1,i+1);4!==o&&0!==o||e++}return 3*e},n.getPenaltyN3=function(t){for(var n=t.size,e=0,r=0,i=0,o=0;o<n;o++){r=i=0;for(var a=0;a<n;a++)r=r<<1&2047|t.get(o,a),10<=a&&(1488===r||93===r)&&e++,i=i<<1&2047|t.get(a,o),10<=a&&(1488===i||93===i)&&e++}return 40*e},n.getPenaltyN4=function(t){for(var n=0,e=t.data.length,r=0;r<e;r++)n+=t.data[r];return 10*Math.abs(Math.ceil(100*n/e/5)-10)},n.applyMask=function(t,e){for(var r=e.size,i=0;i<r;i++)for(var o=0;o<r;o++)e.isReserved(o,i)||e.xor(o,i,function(t,e,r){switch(t){case n.Patterns.PATTERN000:return(e+r)%2==0;case n.Patterns.PATTERN001:return e%2==0;case n.Patterns.PATTERN010:return r%3==0;case n.Patterns.PATTERN011:return(e+r)%3==0;case n.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case n.Patterns.PATTERN101:return e*r%2+e*r%3==0;case n.Patterns.PATTERN110:return(e*r%2+e*r%3)%2==0;case n.Patterns.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}}(t,o,i))},n.getBestMask=function(t,e){for(var r=Object.keys(n.Patterns).length,i=0,o=1/0,a=0;a<r;a++){e(a),n.applyMask(a,t);var s=n.getPenaltyN1(t)+n.getPenaltyN2(t)+n.getPenaltyN3(t)+n.getPenaltyN4(t);n.applyMask(a,t),s<o&&(o=s,i=a)}return i}},function(t,n,e){var r=e(30),i=e(137),o=e(139).Buffer;function a(t){this.genPoly=void 0,this.degree=t,this.degree&&this.initialize(this.degree)}a.prototype.initialize=function(t){this.degree=t,this.genPoly=i.generateECPolynomial(this.degree)},a.prototype.encode=function(t){if(!this.genPoly)throw new Error("Encoder not initialized");var n=r.alloc(this.degree),e=o.concat([t,n],t.length+this.degree);n=i.mod(e,this.genPoly);return 0<(t=this.degree-n.length)?(e=r.alloc(this.degree),n.copy(e,t),e):n},t.exports=a},function(t,n,e){var r=e(30),i=e(138);n.mul=function(t,n){for(var e=r.alloc(t.length+n.length-1),o=0;o<t.length;o++)for(var a=0;a<n.length;a++)e[o+a]^=i.mul(t[o],n[a]);return e},n.mod=function(t,n){for(var e=r.from(t);0<=e.length-n.length;){for(var o=e[0],a=0;a<n.length;a++)e[a]^=i.mul(n[a],o);for(var s=0;s<e.length&&0===e[s];)s++;e=e.slice(s)}return e},n.generateECPolynomial=function(t){for(var e=r.from([1]),o=0;o<t;o++)e=n.mul(e,[1,i.exp(o)]);return e}},function(t,n,e){var r=(e=e(30)).alloc(512),i=e.alloc(256);!function(){for(var t=1,n=0;n<255;n++)r[n]=t,i[t]=n,256&(t<<=1)&&(t^=285);for(n=255;n<512;n++)r[n]=r[n-255]}(),n.log=function(t){if(t<1)throw new Error("log("+t+")");return i[t]},n.exp=function(t){return r[t]},n.mul=function(t,n){return 0===t||0===n?0:r[i[t]+i[n]]}},function(t,n,e){"use strict";(function(t){
2
2
  /*!
3
3
  * The buffer module from node.js, for the browser.
4
4
  *
@@ -7,4 +7,4 @@
7
7
  */
8
8
  var r=e(141),i=e(142),o=e(143);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,n){if(a()<n)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(n)).__proto__=u.prototype:(t=null===t?new u(n):t).length=n,t}function u(t,n,e){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,n,e);if("number"!=typeof t)return l(this,t,n,e);if("string"==typeof n)throw new Error("If encoding is specified then the first argument must be a string");return p(this,t)}function l(t,n,e,r){if("number"==typeof n)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&n instanceof ArrayBuffer?function(t,n,e,r){if(n.byteLength,e<0||n.byteLength<e)throw new RangeError("'offset' is out of bounds");if(n.byteLength<e+(r||0))throw new RangeError("'length' is out of bounds");return n=void 0===e&&void 0===r?new Uint8Array(n):void 0===r?new Uint8Array(n,e):new Uint8Array(n,e,r),u.TYPED_ARRAY_SUPPORT?(t=n).__proto__=u.prototype:t=f(t,n),t}(t,n,e,r):"string"==typeof n?function(t,n,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(n,e);return(e=(t=s(t,r)).write(n,e))!==r&&(t=t.slice(0,e)),t}(t,n,e):function(t,n){if(u.isBuffer(n)){var e=0|h(n.length);return 0===(t=s(t,e)).length||n.copy(t,0,0,e),t}if(n){if("undefined"!=typeof ArrayBuffer&&n.buffer instanceof ArrayBuffer||"length"in n)return"number"!=typeof n.length||function(t){return t!=t}(n.length)?s(t,0):f(t,n);if("Buffer"===n.type&&o(n.data))return f(t,n.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,n)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function p(t,n){if(c(n),t=s(t,n<0?0:0|h(n)),!u.TYPED_ARRAY_SUPPORT)for(var e=0;e<n;++e)t[e]=0;return t}function f(t,n){var e=n.length<0?0:0|h(n.length);t=s(t,e);for(var r=0;r<e;r+=1)t[r]=255&n[r];return t}function h(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function m(t,n){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;var e=(t="string"!=typeof t?""+t:t).length;if(0===e)return 0;for(var r=!1;;)switch(n){case"ascii":case"latin1":case"binary":return e;case"utf8":case"utf-8":case void 0:return I(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*e;case"hex":return e>>>1;case"base64":return R(t).length;default:if(r)return I(t).length;n=(""+n).toLowerCase(),r=!0}}function d(t,n,e){var i,o,a,s=!1;if((n=void 0===n||n<0?0:n)>this.length)return"";if((e=void 0===e||e>this.length?this.length:e)<=0)return"";if((e>>>=0)<=(n>>>=0))return"";for(t=t||"utf8";;)switch(t){case"hex":return function(t,n,e){var r=t.length;(!n||n<0)&&(n=0),(!e||e<0||r<e)&&(e=r);for(var i="",o=n;o<e;++o)i+=function(t){return t<16?"0"+t.toString(16):t.toString(16)}(t[o]);return i}(this,n,e);case"utf8":case"utf-8":return b(this,n,e);case"ascii":return function(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(127&t[i]);return r}(this,n,e);case"latin1":case"binary":return function(t,n,e){var r="";e=Math.min(t.length,e);for(var i=n;i<e;++i)r+=String.fromCharCode(t[i]);return r}(this,n,e);case"base64":return i=this,a=e,0===(o=n)&&a===i.length?r.fromByteArray(i):r.fromByteArray(i.slice(o,a));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,n,e){for(var r=t.slice(n,e),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}(this,n,e);default:if(s)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),s=!0}}function x(t,n,e){var r=t[n];t[n]=t[e],t[e]=r}function g(t,n,e,r,i){if(0===t.length)return-1;if("string"==typeof e?(r=e,e=0):2147483647<e?e=2147483647:e<-2147483648&&(e=-2147483648),e=+e,(e=(e=isNaN(e)?i?0:t.length-1:e)<0?t.length+e:e)>=t.length){if(i)return-1;e=t.length-1}else if(e<0){if(!i)return-1;e=0}if("string"==typeof n&&(n=u.from(n,r)),u.isBuffer(n))return 0===n.length?-1:v(t,n,e,r,i);if("number"==typeof n)return n&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?(i?Uint8Array.prototype.indexOf:Uint8Array.prototype.lastIndexOf).call(t,n,e):v(t,[n],e,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,n,e,r,i){var o=1,a=t.length,s=n.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||n.length<2)return-1;a/=o=2,s/=2,e/=2}function u(t,n){return 1===o?t[n]:t.readUInt16BE(n*o)}if(i)for(var l=-1,c=e;c<a;c++)if(u(t,c)===u(n,-1===l?0:c-l)){if(c-(l=-1===l?c:l)+1===s)return l*o}else-1!==l&&(c-=c-l),l=-1;else for(c=e=a<e+s?a-s:e;0<=c;c--){for(var p=!0,f=0;f<s;f++)if(u(t,c+f)!==u(n,f)){p=!1;break}if(p)return c}return-1}function S(t,n,e,r){return _(function(t){for(var n=[],e=0;e<t.length;++e)n.push(255&t.charCodeAt(e));return n}(n),t,e,r)}function y(t,n,e,r){return _(function(t,n){for(var e,r,i=[],o=0;o<t.length&&!((n-=2)<0);++o)e=(r=t.charCodeAt(o))>>8,r%=256,i.push(r),i.push(e);return i}(n,t.length-e),t,e,r)}function b(t,n,e){e=Math.min(t.length,e);for(var r=[],i=n;i<e;){var o,a,s,u,l=t[i],c=null,p=239<l?4:223<l?3:191<l?2:1;if(i+p<=e)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=t[i+1]))&&127<(u=(31&l)<<6|63&o)&&(c=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&l)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(c=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(c=u)}null===c?(c=65533,p=1):65535<c&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(t){var n=t.length;if(n<=w)return String.fromCharCode.apply(String,t);for(var e="",r=0;r<n;)e+=String.fromCharCode.apply(String,t.slice(r,r+=w));return e}(r)}n.Buffer=u,n.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},n.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),n.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,n,e){return l(null,t,n,e)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,n,e){return r=null,n=n,e=e,c(t=t),t<=0||void 0===n?s(r,t):"string"==typeof e?s(r,t).fill(n,e):s(r,t).fill(n);var r},u.allocUnsafe=function(t){return p(null,t)},u.allocUnsafeSlow=function(t){return p(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,n){if(!u.isBuffer(t)||!u.isBuffer(n))throw new TypeError("Arguments must be Buffers");if(t===n)return 0;for(var e=t.length,r=n.length,i=0,o=Math.min(e,r);i<o;++i)if(t[i]!==n[i]){e=t[i],r=n[i];break}return e<r?-1:r<e?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,n){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);if(void 0===n)for(i=n=0;i<t.length;++i)n+=t[i].length;for(var e=u.allocUnsafe(n),r=0,i=0;i<t.length;++i){var a=t[i];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(e,r),r+=a.length}return e},u.byteLength=m,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<t;n+=2)x(this,n,n+1);return this},u.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<t;n+=4)x(this,n,n+3),x(this,n+1,n+2);return this},u.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<t;n+=8)x(this,n,n+7),x(this,n+1,n+6),x(this,n+2,n+5),x(this,n+3,n+4);return this},u.prototype.toString=function(){var t=0|this.length;return 0==t?"":0===arguments.length?b(this,0,t):d.apply(this,arguments)},u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return 0<this.length&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},u.prototype.compare=function(t,n,e,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),(n=void 0===n?0:n)<0||e>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(i<=r&&e<=n)return 0;if(i<=r)return-1;if(e<=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(e>>>=0)-(n>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(n,e),p=0;p<s;++p)if(l[p]!==c[p]){o=l[p],a=c[p];break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,n,e){return-1!==this.indexOf(t,n,e)},u.prototype.indexOf=function(t,n,e){return g(this,t,n,e,!0)},u.prototype.lastIndexOf=function(t,n,e){return g(this,t,n,e,!1)},u.prototype.write=function(t,n,e,r){if(void 0===n)r="utf8",e=this.length,n=0;else if(void 0===e&&"string"==typeof n)r=n,e=this.length,n=0;else{if(!isFinite(n))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");n|=0,isFinite(e)?(e|=0,void 0===r&&(r="utf8")):(r=e,e=void 0)}var i=this.length-n;if((void 0===e||i<e)&&(e=i),0<t.length&&(e<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var o,a,s,u=!1;;)switch(r){case"hex":return function(t,n,e,r){e=Number(e)||0;var i=t.length-e;if((!r||i<(r=Number(r)))&&(r=i),(i=n.length)%2!=0)throw new TypeError("Invalid hex string");i/2<r&&(r=i/2);for(var o=0;o<r;++o){var a=parseInt(n.substr(2*o,2),16);if(isNaN(a))return o;t[e+o]=a}return o}(this,t,n,e);case"utf8":case"utf-8":return a=n,s=e,_(I(t,(o=this).length-a),o,a,s);case"ascii":return S(this,t,n,e);case"latin1":case"binary":return S(this,t,n,e);case"base64":return o=this,a=n,s=e,_(R(t),o,a,s);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return y(this,t,n,e);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),u=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var w=4096;function T(t,n,e){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(e<t+n)throw new RangeError("Trying to access beyond buffer length")}function A(t,n,e,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<n||n<o)throw new RangeError('"value" argument is out of bounds');if(e+r>t.length)throw new RangeError("Index out of range")}function E(t,n,e,r){n<0&&(n=65535+n+1);for(var i=0,o=Math.min(t.length-e,2);i<o;++i)t[e+i]=(n&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function C(t,n,e,r){n<0&&(n=4294967295+n+1);for(var i=0,o=Math.min(t.length-e,4);i<o;++i)t[e+i]=n>>>8*(r?i:3-i)&255}function Y(t,n,e,r){if(e+r>t.length)throw new RangeError("Index out of range");if(e<0)throw new RangeError("Index out of range")}function N(t,n,e,r,o){return o||Y(t,0,e,4),i.write(t,n,e,r,23,4),e+4}function P(t,n,e,r,o){return o||Y(t,0,e,8),i.write(t,n,e,r,52,8),e+8}u.prototype.slice=function(t,n){var e=this.length;if((t=~~t)<0?(t+=e)<0&&(t=0):e<t&&(t=e),(n=void 0===n?e:~~n)<0?(n+=e)<0&&(n=0):e<n&&(n=e),n<t&&(n=t),u.TYPED_ARRAY_SUPPORT)(i=this.subarray(t,n)).__proto__=u.prototype;else for(var r=n-t,i=new u(r,void 0),o=0;o<r;++o)i[o]=this[o+t];return i},u.prototype.readUIntLE=function(t,n,e){t|=0,n|=0,e||T(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return r},u.prototype.readUIntBE=function(t,n,e){t|=0,n|=0,e||T(t,n,this.length);for(var r=this[t+--n],i=1;0<n&&(i*=256);)r+=this[t+--n]*i;return r},u.prototype.readUInt8=function(t,n){return n||T(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,n){return n||T(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,n){return n||T(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,n){return n||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,n){return n||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,n,e){t|=0,n|=0,e||T(t,n,this.length);for(var r=this[t],i=1,o=0;++o<n&&(i*=256);)r+=this[t+o]*i;return(i*=128)<=r&&(r-=Math.pow(2,8*n)),r},u.prototype.readIntBE=function(t,n,e){t|=0,n|=0,e||T(t,n,this.length);for(var r=n,i=1,o=this[t+--r];0<r&&(i*=256);)o+=this[t+--r]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*n)),o},u.prototype.readInt8=function(t,n){return n||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,n){return n||T(t,2,this.length),32768&(t=this[t]|this[t+1]<<8)?4294901760|t:t},u.prototype.readInt16BE=function(t,n){return n||T(t,2,this.length),32768&(t=this[t+1]|this[t]<<8)?4294901760|t:t},u.prototype.readInt32LE=function(t,n){return n||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,n){return n||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,n){return n||T(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,n){return n||T(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,n){return n||T(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,n){return n||T(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,n,e,r){t=+t,n|=0,e|=0,r||A(this,t,n,e,Math.pow(2,8*e)-1,0);var i=1,o=0;for(this[n]=255&t;++o<e&&(i*=256);)this[n+o]=t/i&255;return n+e},u.prototype.writeUIntBE=function(t,n,e,r){t=+t,n|=0,e|=0,r||A(this,t,n,e,Math.pow(2,8*e)-1,0);var i=e-1,o=1;for(this[n+i]=255&t;0<=--i&&(o*=256);)this[n+i]=t/o&255;return n+e},u.prototype.writeUInt8=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&t,n+1},u.prototype.writeUInt16LE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):E(this,t,n,!0),n+2},u.prototype.writeUInt16BE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):E(this,t,n,!1),n+2},u.prototype.writeUInt32LE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n+3]=t>>>24,this[n+2]=t>>>16,this[n+1]=t>>>8,this[n]=255&t):C(this,t,n,!0),n+4},u.prototype.writeUInt32BE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):C(this,t,n,!1),n+4},u.prototype.writeIntLE=function(t,n,e,r){t=+t,n|=0,r||A(this,t,n,e,(r=Math.pow(2,8*e-1))-1,-r);var i=0,o=1,a=0;for(this[n]=255&t;++i<e&&(o*=256);)t<0&&0===a&&0!==this[n+i-1]&&(a=1),this[n+i]=(t/o>>0)-a&255;return n+e},u.prototype.writeIntBE=function(t,n,e,r){t=+t,n|=0,r||A(this,t,n,e,(r=Math.pow(2,8*e-1))-1,-r);var i=e-1,o=1,a=0;for(this[n+i]=255&t;0<=--i&&(o*=256);)t<0&&0===a&&0!==this[n+i+1]&&(a=1),this[n+i]=(t/o>>0)-a&255;return n+e},u.prototype.writeInt8=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[n]=255&(t=t<0?255+t+1:t),n+1},u.prototype.writeInt16LE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8):E(this,t,n,!0),n+2},u.prototype.writeInt16BE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>8,this[n+1]=255&t):E(this,t,n,!1),n+2},u.prototype.writeInt32LE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[n]=255&t,this[n+1]=t>>>8,this[n+2]=t>>>16,this[n+3]=t>>>24):C(this,t,n,!0),n+4},u.prototype.writeInt32BE=function(t,n,e){return t=+t,n|=0,e||A(this,t,n,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[n]=t>>>24,this[n+1]=t>>>16,this[n+2]=t>>>8,this[n+3]=255&t):C(this,t,n,!1),n+4},u.prototype.writeFloatLE=function(t,n,e){return N(this,t,n,!0,e)},u.prototype.writeFloatBE=function(t,n,e){return N(this,t,n,!1,e)},u.prototype.writeDoubleLE=function(t,n,e){return P(this,t,n,!0,e)},u.prototype.writeDoubleBE=function(t,n,e){return P(this,t,n,!1,e)},u.prototype.copy=function(t,n,e,r){if(e=e||0,r||0===r||(r=this.length),n>=t.length&&(n=t.length),(r=0<r&&r<e?e:r)===e)return 0;if(0===t.length||0===this.length)return 0;if((n=n||0)<0)throw new RangeError("targetStart out of bounds");if(e<0||e>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length);var i,o=(r=t.length-n<r-e?t.length-n+e:r)-e;if(this===t&&e<n&&n<r)for(i=o-1;0<=i;--i)t[i+n]=this[i+e];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+n]=this[i+e];else Uint8Array.prototype.set.call(t,this.subarray(e,e+o),n);return o},u.prototype.fill=function(t,n,e,r){if("string"==typeof t){var i;if("string"==typeof n?(r=n,n=0,e=this.length):"string"==typeof e&&(r=e,e=this.length),1!==t.length||(i=t.charCodeAt(0))<256&&(t=i),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(n<0||this.length<n||this.length<e)throw new RangeError("Out of range index");if(e<=n)return this;if(n>>>=0,e=void 0===e?this.length:e>>>0,"number"==typeof(t=t||0))for(s=n;s<e;++s)this[s]=t;else for(var o=u.isBuffer(t)?t:I(new u(t,r).toString()),a=o.length,s=0;s<e-n;++s)this[s+n]=o[s%a];return this};var X=/[^+\/0-9A-Za-z-_]/g;function I(t,n){var e;n=n||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if(55295<(e=t.charCodeAt(a))&&e<57344){if(!i){if(56319<e){-1<(n-=3)&&o.push(239,191,189);continue}if(a+1===r){-1<(n-=3)&&o.push(239,191,189);continue}i=e;continue}if(e<56320){-1<(n-=3)&&o.push(239,191,189),i=e;continue}e=65536+(i-55296<<10|e-56320)}else i&&-1<(n-=3)&&o.push(239,191,189);if(i=null,e<128){if(--n<0)break;o.push(e)}else if(e<2048){if((n-=2)<0)break;o.push(e>>6|192,63&e|128)}else if(e<65536){if((n-=3)<0)break;o.push(e>>12|224,e>>6&63|128,63&e|128)}else{if(!(e<1114112))throw new Error("Invalid code point");if((n-=4)<0)break;o.push(e>>18|240,e>>12&63|128,e>>6&63|128,63&e|128)}}return o}function R(t){return r.toByteArray(function(t){var n;if((t=((n=t).trim?n.trim():n.replace(/^\s+|\s+$/g,"")).replace(X,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function _(t,n,e,r){for(var i=0;i<r&&!(i+e>=n.length||i>=t.length);++i)n[i+e]=t[i];return i}}).call(this,e(140))},function(t,n){var e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,n,e){"use strict";n.byteLength=function(t){var n;return 3*((t=(n=l(t))[0])+(n=n[1]))/4-n},n.toByteArray=function(t){var n,e,r=(a=l(t))[0],a=a[1],s=new o(function(t,n){return 3*(t+n)/4-n}(r,a)),u=0,c=0<a?r-4:r;for(e=0;e<c;e+=4)n=i[t.charCodeAt(e)]<<18|i[t.charCodeAt(e+1)]<<12|i[t.charCodeAt(e+2)]<<6|i[t.charCodeAt(e+3)],s[u++]=n>>16&255,s[u++]=n>>8&255,s[u++]=255&n;return 2===a&&(n=i[t.charCodeAt(e)]<<2|i[t.charCodeAt(e+1)]>>4,s[u++]=255&n),1===a&&(n=i[t.charCodeAt(e)]<<10|i[t.charCodeAt(e+1)]<<4|i[t.charCodeAt(e+2)]>>2,s[u++]=n>>8&255,s[u++]=255&n),s},n.fromByteArray=function(t){for(var n,e=t.length,i=e%3,o=[],a=0,s=e-i;a<s;a+=16383)o.push(function(t,n,e){for(var i,o=[],a=n;a<e;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),o.push(function(t){return r[t>>18&63]+r[t>>12&63]+r[t>>6&63]+r[63&t]}(i));return o.join("")}(t,a,s<a+16383?s:a+16383));return 1==i?(n=t[e-1],o.push(r[n>>2]+r[n<<4&63]+"==")):2==i&&(n=(t[e-2]<<8)+t[e-1],o.push(r[n>>10]+r[n>>4&63]+r[n<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s<u;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function l(t){var n=t.length;if(0<n%4)throw new Error("Invalid string. Length must be a multiple of 4");return[t=-1===(t=t.indexOf("="))?n:t,t===n?0:4-t%4]}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,n){
9
9
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
10
- n.read=function(t,n,e,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,p=e?i-1:0,f=e?-1:1;e=t[n+p];for(p+=f,o=e&(1<<-c)-1,e>>=-c,c+=s;0<c;o=256*o+t[n+p],p+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;0<c;a=256*a+t[n+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(e?-1:1);a+=Math.pow(2,r),o-=l}return(e?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var a,s,u=8*o-i-1,l=(1<<u)-1,c=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1;o=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,a=l):(a=Math.floor(Math.log(n)/Math.LN2),n*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(n+=1<=a+c?p/r:p*Math.pow(2,1-c))*r&&(a++,r/=2),l<=a+c?(s=0,a=l):1<=a+c?(s=(n*r-1)*Math.pow(2,i),a+=c):(s=n*Math.pow(2,c-1)*Math.pow(2,i),a=0));8<=i;t[e+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;0<u;t[e+f]=255&a,f+=h,a/=256,u-=8);t[e+f-h]|=128*o}},function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,n,e){var r=e(26),i=e(85),o=e(65),a=e(27),s=e(86),u=e(64),l=r.getBCHDigit(7973);function c(t,n){return a.getCharCountIndicator(t,n)+4}n.from=function(t,n){return s.isValid(t)?parseInt(t,10):n},n.getCapacity=function(t,n,e){if(!s.isValid(t))throw new Error("Invalid QR Code version");if(void 0===e&&(e=a.BYTE),n=8*(r.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,n)),e===a.MIXED)return n;var o=n-c(e,t);switch(e){case a.NUMERIC:return Math.floor(o/10*3);case a.ALPHANUMERIC:return Math.floor(o/11*2);case a.KANJI:return Math.floor(o/13);default:return a.BYTE,Math.floor(o/8)}},n.getBestVersionForData=function(t,e){var r;e=o.from(e,o.M);if(u(t)){if(1<t.length)return function(t,e){for(var r=1;r<=40;r++)if(function(t,n){var e=0;return t.forEach((function(t){var r=c(t.mode,n);e+=r+t.getBitsLength()})),e}(t,r)<=n.getCapacity(r,e,a.MIXED))return r}(t,e);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,e,r){for(var i=1;i<=40;i++)if(e<=n.getCapacity(i,r,t))return i}(r.mode,r.getLength(),e)},n.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var n=t<<12;0<=r.getBCHDigit(n)-l;)n^=7973<<r.getBCHDigit(n)-l;return t<<12|n}},function(t,n,e){var r=e(26),i=r.getBCHDigit(1335);n.getEncodedBits=function(t,n){for(var e=(n=t.bit<<3|n)<<10;0<=r.getBCHDigit(e)-i;)e^=1335<<r.getBCHDigit(e)-i;return 21522^(n<<10|e)}},function(t,n,e){var r=e(27),i=e(147),o=e(148),a=e(149),s=e(150),u=e(87),l=e(26),c=e(151);function p(t){return unescape(encodeURIComponent(t)).length}function f(t,n,e){for(var r,i=[];null!==(r=t.exec(e));)i.push({data:r[0],index:r.index,mode:n,length:r[0].length});return i}function h(t){var n,e=f(u.NUMERIC,r.NUMERIC,t),i=f(u.ALPHANUMERIC,r.ALPHANUMERIC,t);t=l.isKanjiModeEnabled()?(n=f(u.BYTE,r.BYTE,t),f(u.KANJI,r.KANJI,t)):(n=f(u.BYTE_KANJI,r.BYTE,t),[]);return e.concat(i,n,t).sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function m(t,n){switch(n){case r.NUMERIC:return i.getBitsLength(t);case r.ALPHANUMERIC:return o.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return a.getBitsLength(t)}}function d(t,n){var e=r.getBestModeForData(t);if((n=r.from(n,e))!==r.BYTE&&n.bit<e.bit)throw new Error('"'+t+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(e));switch(n=n!==r.KANJI||l.isKanjiModeEnabled()?n:r.BYTE){case r.NUMERIC:return new i(t);case r.ALPHANUMERIC:return new o(t);case r.KANJI:return new s(t);case r.BYTE:return new a(t)}}n.fromArray=function(t){return t.reduce((function(t,n){return"string"==typeof n?t.push(d(n,null)):n.data&&t.push(d(n.data,n.mode)),t}),[])},n.fromString=function(t,e){for(var i=function(t,n){for(var e={},i={start:{}},o=["start"],a=0;a<t.length;a++){for(var s=t[a],u=[],l=0;l<s.length;l++){var c=s[l],p=""+a+l;u.push(p),e[p]={node:c,lastCount:0},i[p]={};for(var f=0;f<o.length;f++){var h=o[f];e[h]&&e[h].node.mode===c.mode?(i[h][p]=m(e[h].lastCount+c.length,c.mode)-m(e[h].lastCount,c.mode),e[h].lastCount+=c.length):(e[h]&&(e[h].lastCount=c.length),i[h][p]=m(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,n))}}o=u}for(f=0;f<o.length;f++)i[o[f]].end=0;return{map:i,table:e}}(function(t){for(var n=[],e=0;e<t.length;e++){var i=t[e];switch(i.mode){case r.NUMERIC:n.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:n.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:n.push([i,{data:i.data,mode:r.BYTE,length:p(i.data)}]);break;case r.BYTE:n.push([{data:i.data,mode:r.BYTE,length:p(i.data)}])}}return n}(h(t,l.isKanjiModeEnabled())),e),o=c.find_path(i.map,"start","end"),a=[],s=1;s<o.length-1;s++)a.push(i.table[o[s]].node);return n.fromArray(a.reduce((function(t,n){var e=0<=t.length-1?t[t.length-1]:null;return e&&e.mode===n.mode?t[t.length-1].data+=n.data:t.push(n),t}),[]))},n.rawSplit=function(t){return n.fromArray(h(t,l.isKanjiModeEnabled()))}},function(t,n,e){var r=e(27);function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var n,e,r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),e=parseInt(n,10),t.put(e,10);var i=this.data.length-r;0<i&&(n=this.data.substr(r),e=parseInt(n,10),t.put(e,3*i+1))},t.exports=i},function(t,n,e){var r=e(27),i=["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"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=r.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0;n+2<=this.data.length;n+=2){var e=45*i.indexOf(this.data[n]);e+=i.indexOf(this.data[n+1]),t.put(e,11)}this.data.length%2&&t.put(i.indexOf(this.data[n]),6)},t.exports=o},function(t,n,e){var r=e(30),i=e(27);function o(t){this.mode=i.BYTE,this.data=r.from(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0,e=this.data.length;n<e;n++)t.put(this.data[n],8)},t.exports=o},function(t,n,e){var r=e(27),i=e(26);function o(t){this.mode=r.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0;n<this.data.length;n++){var e=i.toSJIS(this.data[n]);if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");e-=49472}t.put(e=192*(e>>>8&255)+(255&e),13)}},t.exports=o},function(t,n,e){"use strict";var r={single_source_shortest_paths:function(t,n,e){var i={},o={};o[n]=0;var a,s,u,l,c,p,f,h=r.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in s=(a=h.pop()).value,l=a.cost,c=t[s]||{})c.hasOwnProperty(u)&&(p=l+c[u],f=o[u],(void 0===o[u]||p<f)&&(o[u]=p,h.push(u,p),i[u]=s));if(void 0===e||void 0!==o[e])return i;throw e=["Could not find a path from ",n," to ",e,"."].join(""),new Error(e)},extract_shortest_path_from_predecessor_list:function(t,n){for(var e=[],r=n;r;)e.push(r),t[r],r=t[r];return e.reverse(),e},find_path:function(t,n,e){return n=r.single_source_shortest_paths(t,n,e),r.extract_shortest_path_from_predecessor_list(n,e)},PriorityQueue:{make:function(t){var n,e=r.PriorityQueue,i={};for(n in t=t||{},e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i.queue=[],i.sorter=t.sorter||e.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){this.queue.push({value:t,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=r},function(t,n,e){var r=e(88);n.render=function(t,n,e){var i=n;void 0!==(o=e)||n&&n.getContext||(o=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}());var o=r.getOptions(o),a=r.getImageWidth(t.modules.size,o);n=(e=i.getContext("2d")).createImageData(a,a);return r.qrToImageData(n.data,t,o),o=i,a=a,e.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=a,o.width=a,o.style.height=a+"px",o.style.width=a+"px",e.putImageData(n,0,0),i},n.renderToDataURL=function(t,e,r){return void 0!==(r=r)||e&&e.getContext||(r=e,e=void 0),r=r||{},t=n.render(t,e,r),e=r.type||"image/png",r=r.rendererOpts||{},t.toDataURL(e,r.quality)}},function(t,n,e){var r=e(88);function i(t,n){var e=t.a/255;t=n+'="'+t.hex+'"';return e<1?t+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':t}function o(t,n,e){return n=t+n,void 0!==e&&(n+=" "+e),n}n.render=function(t,n,e){var a=r.getOptions(n),s=t.modules.size,u=t.modules.data;n=s+2*a.margin,t=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+n+"v"+n+'H0z"/>':"",s="<path "+i(a.color.dark,"stroke")+' d="'+function(t,n,e){for(var r="",i=0,a=!1,s=0,u=0;u<t.length;u++){var l=Math.floor(u%n),c=Math.floor(u/n);l||a||(a=!0),t[u]?(s++,0<u&&0<l&&t[u-1]||(r+=a?o("M",l+e,.5+c+e):o("m",i,0),i=0,a=!1),l+1<n&&t[u+1]||(r+=o("h",s),s=0)):i++}return r}(u,s,a.margin)+'"/>',s='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+'viewBox="0 0 '+n+" "+n+'" shape-rendering="crispEdges">'+t+s+"</svg>\n";return"function"==typeof e&&e(null,s),s}},function(t,n,e){"use strict";var r=e(5);t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,e){"use strict";var r=e(23),i=e(2),o=e(25),a=e(70),s=e(71),u=e(18),l=e(156),c=e(72);i(i.S+i.F*!e(76)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,p,f=o(t),h="function"==typeof this?this:Array,m=arguments.length,d=1<m?arguments[1]:void 0,x=void 0!==d,g=0;t=c(f);if(x&&(d=r(d,2<m?arguments[2]:void 0,2)),null==t||h==Array&&s(t))for(e=new h(n=u(f.length));g<n;g++)l(e,g,x?d(f[g],g):f[g]);else for(p=t.call(f),e=new h;!(i=p.next()).done;g++)l(e,g,x?a(p,d,[i.value,g],!0):i.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(14),i=e(31);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(2);r(r.P,"Array",{fill:e(158)}),e(45)("fill")},function(t,n,e){"use strict";var r=e(25),i=e(49),o=e(18);t.exports=function(t){for(var n,e=r(this),a=o(e.length),s=i(1<(n=arguments.length)?arguments[1]:void 0,a),u=void 0===(n=2<n?arguments[2]:void 0)?a:i(n,a);s<u;)e[s++]=t;return e}},function(t,n,e){"use strict";e.r(n),e(66),e(1),e(9),e(10),e(11),e(6),e(12),e(81),e(15),e(13),e(19),e(46),e(36);var r={CRC16:null,isArray:null,ToCRC16:null,ToModbusCRC16:null,strToByte:null,convertChinese:null,filterChinese:null,strToHex:null,padLeft:null,toString:null};r.CRC16=function(t){var n=t.length;if(0<n){for(var e=65535,r=0;r<n;r++){e^=t[r];for(var i=0;i<8;i++)e=0!=(1&e)?e>>1^40961:e>>1}return[(65280&e)>>8,255&e]}return[0,0]},r.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.ToCRC16=function(t,n){return r.toString(r.CRC16(r.isArray(t)?t:r.strToByte(t)),n)},r.ToModbusCRC16=function(t,n){return r.toString(r.CRC16(r.isArray(t)?t:r.strToHex(t)),n)},r.strToByte=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=encodeURI(n[r]);if(1==o.length)e.push(o.charCodeAt(0));else for(var a=o.split("%"),s=1;s<a.length;s++)e.push(parseInt("0x"+a[s]))}return e},r.convertChinese=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=n[r].charCodeAt();o<=0||127<=o?e.push(o.toString(16)):e.push(n[r])}return e},r.filterChinese=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=n[r].charCodeAt();0<o&&o<127&&e.push(n[r])}return e},r.strToHex=function(t,n){t=(t=(n?r.filterChinese(t):r.convertChinese(t)).join("")).replace(/\s/g,"");for(var e=(t+=t.length%2!=0?"0":"").length/2,i=[],o=0;o<e;o++)i.push(parseInt(t.substr(2*o,2),16));return i},r.padLeft=function(t,n,e){null==e&&(e="0");for(var r=0,i=n-t.length;r<i;r++)t=e+t;return t},r.toString=function(t,n){var e=t[0];t=t[1];return r.padLeft(((n=void 0===n||n)?e+256*t:256*e+t).toString(16).toUpperCase(),4,"0")};var i=r,o=(e(62),e(117),e(119),e(63),e(122),e(91)),a=e.n(o),s=function(t){"number"==typeof(t=void 0===t?"":t)&&(t+="");for(var n,e=0,r=(t=null==t?"":t).length,i=0;i<r;i++)e+=0<=(n=t.charCodeAt(i))&&n<=128?1:2;return e},u=function(t){return a.a.toMoney(t,{outSymbol:!1})},l=(c.add=function(t,n){var e,r;try{e=t.toString().split(".")[1].length}catch(t){e=0}try{r=n.toString().split(".")[1].length}catch(t){r=0}return(t*(r=Math.pow(10,Math.max(e,r)))+n*r)/r},c.sub=function(t,n){var e,r;try{e=t.toString().split(".")[1].length}catch(t){e=0}try{r=n.toString().split(".")[1].length}catch(t){r=0}return((t*(t=Math.pow(10,Math.max(e,r)))-n*t)/t).toFixed(r<=e?e:r)},c.mul=function(t,n){var e=0;t=t.toString(),n=n.toString();try{e+=t.split(".")[1].length}catch(t){}try{e+=n.split(".")[1].length}catch(t){}return Number(t.replace(".",""))*Number(n.replace(".",""))/Math.pow(10,e)},c.div=function(t,n){var e=0,r=0;try{e=t.toString().split(".")[1].length}catch(t){}try{r=n.toString().split(".")[1].length}catch(t){}return Number(t.toString().replace(".",""))/Number(n.toString().replace(".",""))*Math.pow(10,r-e)},c);function c(){}var p=function(t,n){return!(!t||!t.hasOwnProperty(n))},f=function(t){if(null===t)return!0;if(void 0===t)return!0;if(function(t){return null!=t&&"number"==typeof(n=t.length)&&-1<n&&n%1==0&&n<=Number.MAX_SAFE_INTEGER&&!("[object Function]"===Object.prototype.toString.call(t));var n}(t))return!t.length;if(function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t))for(var n in t)if(p.call(t,n))return!1;return!1},h=function(t,n,e){return void 0===n&&(n=2),void 0===e&&(e=!1),null==t||""===t||"string"==typeof t&&t.includes(",")?t:(t=+t,isNaN(t)?t:(""+t).includes(".")?(r=(""+t).split(".")[0],o="0."+(""+t).split(".")[1],i=Number(o),o="",e?r.replace(/\B(?=(\d{3})+\b)/g,",")+i:(o="."+(""+(o=i.toFixed(n))).split(".")[1],r.replace(/\B(?=(\d{3})+\b)/g,",")+o)):t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,"));var r,i,o},m=function(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()},d=[{taxOfficeCode:"3100",taxOffice:"上海国税",taxProvince:"上海市税务局",title:"上海"},{taxOfficeCode:"1100",taxOffice:"北京国税",taxProvince:"北京市税务局",title:"北京"},{taxOfficeCode:"4200",taxOffice:"湖北国税",taxProvince:"湖北省税务局",title:"湖北"},{taxOfficeCode:"4300",taxOffice:"湖南国税",taxProvince:"湖南省税务局",title:"湖南"},{taxOfficeCode:"1300",taxOffice:"河北国税",taxProvince:"河北省税务局",title:"河北"},{taxOfficeCode:"4100",taxOffice:"河南国税",taxProvince:"河南省税务局",title:"河南"},{taxOfficeCode:"6100",taxOffice:"陕西国税",taxProvince:"陕西省税务局",title:"陕西"},{taxOfficeCode:"3200",taxOffice:"江苏国税",taxProvince:"江苏省税务局",title:"江苏"},{taxOfficeCode:"3300",taxOffice:"浙江国税",taxProvince:"浙江省税务局",title:"浙江"},{taxOfficeCode:"3302",taxOffice:"宁波国税",taxProvince:"宁波市税务局",title:"宁波"},{taxOfficeCode:"6200",taxOffice:"甘肃国税",taxProvince:"甘肃省税务局",title:"甘肃"},{taxOfficeCode:"5300",taxOffice:"云南国税",taxProvince:"云南省税务局",title:"云南"},{taxOfficeCode:"3500",taxOffice:"福建国税",taxProvince:"福建省税务局",title:"福建"},{taxOfficeCode:"3502",taxOffice:"厦门国税",taxProvince:"厦门市税务局",title:"厦门"},{taxOfficeCode:"2200",taxOffice:"吉林国税",taxProvince:"吉林省税务局",title:"吉林"},{taxOfficeCode:"2100",taxOffice:"辽宁国税",taxProvince:"辽宁省税务局",title:"辽宁"},{taxOfficeCode:"6400",taxOffice:"宁夏国税",taxProvince:"宁夏回族自治区税务局",title:"宁夏"},{taxOfficeCode:"1200",taxOffice:"天津国税",taxProvince:"天津市税务局",title:"天津"},{taxOfficeCode:"4600",taxOffice:"海南国税",taxProvince:"海南省税务局",title:"海南"},{taxOfficeCode:"2102",taxOffice:"大连国税",taxProvince:"大连市税务局",title:"大连"},{taxOfficeCode:"3700",taxOffice:"山东国税",taxProvince:"山东省税务局",title:"山东"},{taxOfficeCode:"3702",taxOffice:"青岛国税",taxProvince:"青岛市税务局",title:"青岛"},{taxOfficeCode:"4400",taxOffice:"广东国税",taxProvince:"广东省税务局",title:"广东"},{taxOfficeCode:"4403",taxOffice:"深圳国税",taxProvince:"深圳市税务局",title:"深圳"},{taxOfficeCode:"5200",taxOffice:"贵州国税",taxProvince:"贵州省税务局",title:"贵州"},{taxOfficeCode:"6300",taxOffice:"青海国税",taxProvince:"青海省税务局",title:"青海"},{taxOfficeCode:"6500",taxOffice:"新疆国税",taxProvince:"新疆维吾尔自治区税务局",title:"新疆"},{taxOfficeCode:"4500",taxOffice:"广西国税",taxProvince:"广西壮族自治区税务局",title:"广西"},{taxOfficeCode:"5100",taxOffice:"四川国税",taxProvince:"四川省税务局",title:"四川"},{taxOfficeCode:"1400",taxOffice:"山西国税",taxProvince:"山西省税务局",title:"山西"},{taxOfficeCode:"5000",taxOffice:"重庆国税",taxProvince:"重庆市税务局",title:"重庆"},{taxOfficeCode:"2300",taxOffice:"黑龙江国税",taxProvince:"黑龙江税务局",title:"黑龙江"},{taxOfficeCode:"3400",taxOffice:"安徽国税",taxProvince:"安徽省税务局",title:"安徽"},{taxOfficeCode:"1500",taxOffice:"内蒙国税",taxProvince:"内蒙古自治区税务局",title:"内蒙古"},{taxOfficeCode:"3600",taxOffice:"江西国税",taxProvince:"上海市税务局",title:"上海"},{taxOfficeCode:"5400",taxOffice:"西藏国税",taxProvince:"西藏自治区税务局",title:"西藏"}],x=function(t,n,e,r){return void 0===e&&(e="value"),void 0===r&&(r="label"),t||0===t?(n||[]).find((function(n){return n[e]===t}))?(n||[]).find((function(n){return n[e]===t}))[r]:t:null},g=(o=e(16),e.n(o)),v=e(37).changeDpiDataUrl;function S(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function y(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function b(t){var n=t.data,e=t.showSample,r=t.samplePosition,o=void 0===r?"bottom":r,a=document.createElement("canvas");if(a.getContext){var l=a.getContext("2d");!function(t,n,e){var r=t.invoiceType,o=t.invoiceCode,a=t.invoiceNo,s=t.amount,u=t.drewDate,l=t.checkCode,c="10";1===Number(r)?c="01":2===Number(r)?c="04":3===Number(r)?c="10":4===Number(r)&&(c="08");var p=new Date(u),f=p.getFullYear();r=(t=p.getMonth()+1).toString();1<=t&&t<=9&&(r="0"+t),p=(t=p.getDate()).toString(),0<=t&&t<=9&&(p="0"+t),p=u?""+f+r+p:"",p="01,"+c+","+o+","+a+","+(s||0===s?Number(s).toFixed(2):s)+","+p+","+l+",",l=i.ToCRC16(p,!0),g.a.toCanvas(n,p+l+",",{errorCorrectionLevel:"M",margin:0,width:113},(function(t){}))}(n,a);var c,p,h,m,b,w,T,A,E=l.getImageData(0,0,113,113);return a.width=1192,a.height=794,l.fillStyle="#fff",l.fillRect(0,0,1192,794),l.putImageData(E,48,20),function(t,n){function e(t,n,e,r,i){var o=.5522848*r,a=.5522848*i;t.beginPath(),t.moveTo(n-r,e),t.bezierCurveTo(n-r,e-a,n-o,e-i,n,e-i),t.bezierCurveTo(n+o,e-i,n+r,e-a,n+r,e),t.bezierCurveTo(n+r,e+a,n+o,e+i,n,e+i),t.bezierCurveTo(n-o,e+i,n-r,e+a,n-r,e),t.closePath(),t.stroke()}t.strokeStyle="red",t.lineWidth=4,e(t,596,100,80,50),t.lineWidth=1,e(t,596,100,75,45),function(t,n,e,r){var i=n,o=e,a=160,s=n=59,u=(a-30)/(r.length-1);t.font="11px KaiTi",e=70/n,n=57/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++)t.save(),t.beginPath(),t.translate(i+Math.cos(Math.PI/180*a)*s-6,o-Math.sin(Math.PI/180*a)*s+14),t.rotate(Math.PI/2-Math.PI/180*a),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a-=u,t.restore();t.scale(1/e,1/n)}(t,508,110,"全国统一发票监制章"),n=void 0===(r=n.invoiceCode)?"":r;var r="";r=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),function(t,n,e,r){var i=n,o=e,a=226,s=n=59,u=(a-150)/(r.length-1);t.font="11px KaiTi",e=60/n,n=50/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++){t.save(),t.beginPath();var c=i+Math.cos(Math.PI/180*a)*s-6,p=o-Math.sin(Math.PI/180*a)*s+14;t.translate(c,p),t.rotate(Math.PI/180*(45-12*l)),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a+=u,t.translate(-c,-p),t.restore()}t.scale(1/e,1/n)}(t,594,96,n=(n=x(r,d,"taxOfficeCode","taxProvince")||"国家税务总局监制")===r?"国家税务总局监制":n),y(t,18,50,"国家税务总局",596,94,"#ff0000","normal 14px KaiTi",1)}(l,n),function(t,n,e,r){function i(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath()}var o,a,s,u,l;e&&(s=n.invoiceStatus,u=n.status,l=n.amountWithTax,o=n.amount,t.save(),t.translate(940,582),t.rotate(-30*Math.PI/180),"top"===r?(a=[{pointX:390,pointY:-410},{pointX:390,pointY:-270},{pointX:55,pointY:-270},{pointX:48,pointY:-410}],i({startX:34,startY:-420,ctx:t,points:[{pointX:400,pointY:-420},{pointX:400,pointY:-260},{pointX:45,pointY:-260},{pointX:38,pointY:-420}],lineWidth:8,color:"#F17171"}),i({startX:46,startY:-410,ctx:t,points:a,lineWidth:4,color:"#F17171"}),y(t,18,30,"样张",220,-380,"#F17171","normal 72px SimHei",1),20!==s&&20!==u||y(t,18,42,"已红冲",290,-310,"#F17171","normal 32px SimHei",0)):(a=[{pointX:190,pointY:-75},{pointX:190,pointY:75},{pointX:-190,pointY:75},{pointX:-186,pointY:-75}],i({startX:-200,startY:-85,ctx:t,points:[{pointX:200,pointY:-85},{pointX:200,pointY:85},{pointX:-200,pointY:85},{pointX:-196,pointY:-85}],lineWidth:8,color:"#F17171"}),i({startX:-188,startY:-75,ctx:t,points:a,lineWidth:4,color:"#F17171"}),y(t,18,30,"样张",0,-36,"#F17171","normal 72px SimHei",1),20!==s&&20!==u||y(t,18,42,"已红冲",74,26,"#F17171","normal 32px SimHei",0)),t.restore(),t.rotate(30*Math.PI/180),t.translate(-940,-582),30!==s&&30!==u||y(t,18,42,"作废",211,92,"#000","normal 32px SimHei",0),l<0&&o<0&&y(t,18,42,"销项负数",211,92,"#000","normal 28px SimHei",0),1===n.specialFlag&&y(t,18,42,"成品油",211,36,"#000","normal 28px SimHei",0),3===n.specialFlag&&y(t,18,42,"机动车",211,36,"#000","normal 28px SimHei",0))}(l,n,e,o),S({startX:26,startY:170,ctx:h=l,points:[{pointX:1164,pointY:170},{pointX:1164,pointY:702},{pointX:26,pointY:702},{pointX:26,pointY:170}],lineWidth:1,color:"#975124"}),S({startX:388,startY:100,ctx:h,points:[{pointX:801,pointY:100}],lineWidth:1,color:"#975124"}),S({startX:388,startY:104,ctx:h,points:[{pointX:801,pointY:104}],lineWidth:1,color:"#975124"}),S({startX:26,startY:294,ctx:h,points:[{pointX:1164,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:26,startY:544,ctx:h,points:[{pointX:1164,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:26,startY:590,ctx:h,points:[{pointX:1164,pointY:590}],lineWidth:1,color:"#975124"}),S({startX:72,startY:170,ctx:h,points:[{pointX:72,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:678,startY:170,ctx:h,points:[{pointX:678,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:708,startY:170,ctx:h,points:[{pointX:708,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:320,startY:294,ctx:h,points:[{pointX:320,pointY:590}],lineWidth:1,color:"#975124"}),S({startX:468,startY:294,ctx:h,points:[{pointX:468,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:536,startY:294,ctx:h,points:[{pointX:536,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:650,startY:294,ctx:h,points:[{pointX:650,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:762,startY:294,ctx:h,points:[{pointX:762,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:932,startY:294,ctx:h,points:[{pointX:932,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:996,startY:294,ctx:h,points:[{pointX:996,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:72,startY:590,ctx:h,points:[{pointX:72,pointY:702}],lineWidth:1,color:"#975124"}),S({startX:678,startY:590,ctx:h,points:[{pointX:678,pointY:702}],lineWidth:1,color:"#975124"}),S({startX:706,startY:590,ctx:h,points:[{pointX:706,pointY:702}],lineWidth:1,color:"#975124"}),w=l,m=(A=n).invoiceType,b=A.invoiceCode,A="",A=b&&12===b.length?b&&b.substr(1,4):b&&b.substr(0,4),A=(b=(b=x(A,d,"taxOfficeCode","title")||"")===A?"":b)+"增值税电子普通发票",1===Number(m)?A=b+"增值税专用发票":2===Number(m)?A=b+"增值税普通发票":4===Number(m)&&(A=b+"增值税电子专用发票"),y(w,18,30,A,596,38,"#9C5223","normal 38px KaiTi",1),y(w,18,30,"机器编号:",32,134,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"发票代码:",842,40,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"发票号码:",842,72,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开票日期:",842,102,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"校验码:",842,134,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"购",40,198,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"买",40,226,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"方",40,252,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"密",684,198,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"码",684,226,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"区",684,252,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"销",40,614,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"售",40,640,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"方",40,668,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"备",684,616,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"注",684,662,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"名",84,178,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"称:",174,178,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"纳税人识别号:",84,208,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"地 址、电 话:",84,236,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开户行及账号:",84,266,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"项目名称",132,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"规格型号",358,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"单位",484,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"数 量",570,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"单 价",684,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"金 额",828,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"税率",948,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"税 额",1058,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"合 计",134,520,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"价税合计(大写)",106,560,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"(小写)",864,560,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"名",84,594,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"称:",174,594,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"纳税人识别号:",84,622,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"地 址、电 话:",84,652,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开户行及账号:",84,680,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"收款人:",40,710,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"复 核:",360,710,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开票人:",598,710,"#9C5223","normal 18px KaiTi",0),function(t,n){var e,r,i,o,a=n.invoiceCode,s=n.invoiceNo,u=n.drewDate,l=n.checkCode,c=n.machineCode;n.invoiceStatus,n.status,y(t,18,42,a,940,40,"#000000","normal 18px SimSun",0),y(t,18,42,s,940,72,"#000000","normal 18px SimSun",0),y(t,18,42,c,126,134,"#000000","normal 18px SimSun",0),(e=u)&&(r=(o=new Date(e)).getFullYear(),e=(i=o.getMonth()+1).toString(),1<=i&&i<=9&&(e="0"+i),o=(i=o.getDate()).toString(),y(t,18,42,r+"年"+e+"月"+(o=0<=i&&i<=9?"0"+i:o)+"日",940,102,"#000000","normal 18px SimSun",0)),function(n){if(!f(n=void 0===n?"":n))for(var e=n.length/4,r=0;r<4;r++){var i=n.substr(0===r?0:e*r,e);y(t,18,32,i,940+50*r,134,"#000000","normal 18px SimSun",0)}}(l)}(l,n),c=l,p=(T=n).purchaserName,t=n.purchaserTaxNo,r=n.purchaserAddress,E=n.purchaserTel,e=n.purchaserBankName,o=n.purchaserBankAccount,h=n.sellerName,m=n.sellerTaxNo,b=n.sellerAddress,A=n.sellerTel,w=n.sellerBankName,T=n.sellerBankAccount,C(206,178,p),y(c,18,49,t,206,204,"#000000","normal 24px Courier New",0),C(206,236,""+(r||"")+(E||"")),C(206,266,""+(e||"")+(o||"")),C(206,594,h),y(c,18,49,m,206,618,"#000000","normal 24px Courier New",0),C(206,652,""+(b||"")+(A||"")),C(206,680,""+(w||"")+(T||"")),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=e.length/4,i=0;i<4;i++)y(t,18,32,e.substr(0===i?0:r*i,r),740,178+30*i,"#000000","normal 24px Courier New",0)}(l,n),function(t,n){var e,r,i,o,a=n.details,u=n.amount,l=n.taxAmount,c=(n.taxRate,n.listFlag),p=n.qdbz;function h(n,e,r,i){i||s(r)<=31?y(t,18,32,r,n,e,"#000000","normal 18px SimSun",0):s(r)<=35?y(t,18,36,r,n,e,"#000000","normal 16px SimSun",0):s(r)<=40?y(t,18,42,r,n,e,"#000000","normal 14px SimSun",0):s(r)<=47?y(t,18,48,r,n,e,"#000000","normal 12px SimSun",0):s(r)<=51?y(t,18,52,r,n,e,"#000000","normal 11px SimSun",0):y(t,11,52,r,n,e-4,"#000000","normal 11px SimSun",0)}function m(n,e,r){s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 18px SimSun",0):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 16px SimSun",0):s(r)<=19?y(t,18,20,r,n,e,"#000000","normal 13px SimSun",0):y(t,12,22,r,n,e-4,"#000000","normal 12px SimSun",0)}function d(n,e,r){s(r)<=7?y(t,18,8,r,n,e,"#000000","normal 18px SimSun",1):s(r)<=9?y(t,18,10,r,n,e,"#000000","normal 14px SimSun",1):s(r)<=11?y(t,18,12,r,n,e,"#000000","normal 12px SimSun",1):s(r)<=13?y(t,18,14,r,n,e,"#000000","normal 10px SimSun",1):s(r)<=17?y(t,18,18,r,n,e,"#000000","normal 8px SimSun",1):y(t,8,18,r,n,e,"#000000","normal 8px SimSun",1)}function x(n,e,r){s(r)<=10?y(t,18,11,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=12?y(t,18,13,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,17,r,n,e,"#000000","normal 12px SimSun",2)}function g(n,e,r){s(r)<=10?y(t,18,11,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=12?y(t,18,13,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,17,r,n,e,"#000000","normal 12px SimSun",2)}function v(n,e,r){r=r||0===r?Number(r).toFixed(2):r,y(t,18,18,r,n,e,"#000000","normal 18px SimSun",2)}function S(n,e,r,i){i&&(0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="免税":0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="不征税":"number"==typeof r&&(r=100*r+"%")),s(r)<=5?y(t,18,6,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=6?y(t,18,7,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=7?y(t,18,8,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=8?y(t,18,9,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,9,r,n,e,"#000000","normal 12px SimSun",2)}function b(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":Number(r).toFixed(2),y(t,18,18,r,n,e,"#000000","normal 18px SimSun",2)}1===c||8<a.length||1===p?(h(38,338,0<=u?"(详见销货清单)":"详见对应正数发票及清单"),v(922,338,u),function(t){var n,e=[];t.details.forEach((function(r,i){n=0===r.taxPre&&1===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"免税":0===r.taxPre&&2===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"不征税":"number"==typeof r.taxRate?100*r.taxRate+"%":r.taxRate,e.includes(n)||e.push(n)})),1===e.length?S(986,338,e[0],""):2===e.length&&e.includes("免税")&&e.includes("不征税")&&S(986,338,"零税率","")}(n),function(n){var e;f(n.taxAmount)?e=n.taxAmount.toFixed(2):"number"==typeof n.taxAmount&&(e=0===n.taxAmount?"***":n.taxAmount.toFixed(2)),y(t,18,18,e,1154,338,"#000000","normal 18px SimSun",2)}(n)):(e=function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e},o=i=r=0,a.forEach((function(t,n){r+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/32)})),a.forEach((function(t,n){var a,s;r<=8?(0!==n&&(o=22*i),i+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/32),h(38,338+o,""+(t.shortName||"")+t.goodsName,"newSize"),m(330,338+o,t.specification),d(502,338+22*n,t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),"0"===a&&"0"===s||(x(640,338+o,13<a.length?a.substr(0,13):a),g(752,338+o,13<s.length?s.substr(0,13):s))),v(922,338+o,t.amount),S(986,338+o,t.taxRate,t),b(1154,338+o,t.taxAmount,t)):(h(38,338+22*n,""+(t.shortName||"")+t.goodsName),m(330,338+24*n,t.specification),d(502,338+22*n,t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),"0"===a&&"0"===s||(x(640,338+22*n,13<a.length?a.substr(0,13):a),g(752,338+22*n,13<s.length?s.substr(0,13):s))),v(922,338+22*n,t.amount),S(986,338+22*n,t.taxRate,t),b(1154,338+22*n,t.taxAmount,t))}))),n=922,a=520,u=(u=u)||0===u?Number(u).toFixed(2):u,y(t,18,18,u,n,a,"#000000","normal 18px Courier New",2),""!==(l=f(l)?"":0===l?"***":l)&&"***"!==l&&(l="¥"+(l=l||0===l?Number(l).toFixed(2):l)),y(t,18,18,l,1154,520,"#000000","normal 18px Courier New",2)}(l,n),function(t,n){var e=n.amountWithTax;t.beginPath(),t.lineWidth=1,t.strokeStyle="black",t.arc(350,567,12,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.save(),t.translate(350,567),t.rotate(45*Math.PI/180),t.lineWidth=1,t.strokeStyle="black",t.beginPath(),t.moveTo(-12,0),t.lineTo(12,0),t.moveTo(0,-12),t.lineTo(0,12),t.stroke(),t.closePath(),t.restore(),y(t,18,56,n=0<(n=e)?u(n).replace("元","圆"):"(负数)"+u(Math.abs(n)).replace("元","圆"),370,560,"#000000","normal 18px SimSun",0),y(t,18,56,"¥"+(e=e||0===e?Number(e).toFixed(2):e),938,558,"#000000","normal 22px Courier New",0)}(l,n),A=(A=n).remark,y(l,18,50,(A=f(A)?"":A).replace(/\\r\\n/g,"\n")||"",714,596,"#000000","normal 18px SimSun",0),w=l,A=(T=n).payee,l=n.reviewer,T=n.drawer,y(w,18,50,A,106,710,"#000000","normal 18px SimSun",0),y(w,18,50,l,420,710,"#000000","normal 18px SimSun",0),y(w,18,50,T,666,710,"#000000","normal 18px SimSun",0),v(a.toDataURL("image/png",.92),300)}function C(t,n,e){s(e)<=48?y(c,18,49,e,t,n,"#000000","normal 18px SimSun",0):s(e)<=62?y(c,18,63,e,t,n,"#000000","normal 15px SimSun",0):y(c,15,63,e,t,n-4,"#000000","normal 15px SimSun",0)}}var w=e(37).changeDpiDataUrl;function T(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#800000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function A(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}var E=e(37).changeDpiDataUrl;function C(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function Y(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function N(t){var n=t.data,e=t.showSample,r=document.createElement("canvas");if(r.getContext){var i,o,a,s,l,c,p,h,m,g,v=r.getContext("2d");return v.getImageData(0,0,113,113),r.width=1150,r.height=821,v.fillStyle="#fff",v.fillRect(0,0,1150,821),function(t,n){function e(t,n,e,r,i){var o=.5522848*r,a=.5522848*i;t.beginPath(),t.moveTo(n-r,e),t.bezierCurveTo(n-r,e-a,n-o,e-i,n,e-i),t.bezierCurveTo(n+o,e-i,n+r,e-a,n+r,e),t.bezierCurveTo(n+r,e+a,n+o,e+i,n,e+i),t.bezierCurveTo(n-o,e+i,n-r,e+a,n-r,e),t.closePath(),t.stroke()}t.strokeStyle="red",t.lineWidth=4,e(t,570,70,80,50),t.lineWidth=1,e(t,570,70,75,45),function(t,n,e,r){var i=n,o=e,a=160,s=n=59,u=(a-30)/(r.length-1);t.font="11px KaiTi",e=70/n,n=57/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++)t.save(),t.beginPath(),t.translate(i+Math.cos(Math.PI/180*a)*s-6,o-Math.sin(Math.PI/180*a)*s+14),t.rotate(Math.PI/2-Math.PI/180*a),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a-=u,t.restore();t.scale(1/e,1/n)}(t,486,80,"全国统一发票监制章"),n=void 0===(r=n.invoiceCode)?"":r;var r="";r=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),function(t,n,e,r){var i=n,o=e,a=226,s=n=59,u=(a-150)/(r.length-1);t.font="11px KaiTi",e=60/n,n=50/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++){t.save(),t.beginPath();var c=i+Math.cos(Math.PI/180*a)*s-6,p=o-Math.sin(Math.PI/180*a)*s+14;t.translate(c,p),t.rotate(Math.PI/180*(45-12*l)),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a+=u,t.translate(-c,-p),t.restore()}t.scale(1/e,1/n)}(t,568,66,n=(n=x(r,d,"taxOfficeCode","taxProvince")||"国家税务总局监制")===r?"国家税务总局监制":n),Y(t,18,50,"国家税务总局",570,64,"#ff0000","normal 14px KaiTi",1)}(v,n),function(t,n,e){function r(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath()}var i,o,a,s;e&&(o=n.invoiceStatus,a=n.status,s=n.amountWithTax,i=n.amount,t.save(),t.translate(940,582),t.rotate(-30*Math.PI/180),r({startX:-150,startY:-65,ctx:t,points:[{pointX:150,pointY:-65},{pointX:150,pointY:65},{pointX:-150,pointY:65},{pointX:-146,pointY:-65}],lineWidth:8,color:"#F17171"}),r({startX:-138,startY:-55,ctx:t,points:[{pointX:140,pointY:-55},{pointX:140,pointY:55},{pointX:-140,pointY:55},{pointX:-136,pointY:-55}],lineWidth:4,color:"#F17171"}),Y(t,18,30,"样张",0,-26,"#F17171","normal 50px SimHei",1),Y(t,18,42,"已红冲",64,26,"#F17171","normal 22px SimHei",0),t.restore(),t.rotate(30*Math.PI/180),t.translate(-940,-582),30!==o&&30!==a||Y(t,18,42,"作废",245,88,"#000","normal 26px SimHei",0),s<0&&i<0&&Y(t,18,42,"销项负数",245,88,"#000","normal 26px SimHei",0))}(v,n,e),C({startX:95,startY:156,ctx:c=v,points:[{pointX:1055,pointY:156}],lineWidth:1,color:"#975124"}),C({startX:95,startY:156,ctx:c,points:[{pointX:95,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:95,startY:756,ctx:c,points:[{pointX:1055,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:1055,startY:156,ctx:c,points:[{pointX:1055,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:95,startY:299,ctx:c,points:[{pointX:1055,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:95,startY:357,ctx:c,points:[{pointX:1055,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:95,startY:399,ctx:c,points:[{pointX:1055,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:95,startY:443,ctx:c,points:[{pointX:1055,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:95,startY:486,ctx:c,points:[{pointX:1055,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:95,startY:528,ctx:c,points:[{pointX:1055,pointY:528}],lineWidth:1,color:"#975124"}),C({startX:95,startY:570,ctx:c,points:[{pointX:1055,pointY:570}],lineWidth:1,color:"#975124"}),C({startX:95,startY:614,ctx:c,points:[{pointX:1055,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:95,startY:656,ctx:c,points:[{pointX:1055,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:95,startY:712,ctx:c,points:[{pointX:1055,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:95,startY:977,ctx:c,points:[{pointX:1055,pointY:977}],lineWidth:1,color:"#975124"}),C({startX:226,startY:156,ctx:c,points:[{pointX:226,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:513,startY:156,ctx:c,points:[{pointX:513,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:552,startY:156,ctx:c,points:[{pointX:552,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:552,startY:299,ctx:c,points:[{pointX:552,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:765,startY:299,ctx:c,points:[{pointX:765,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:432,startY:357,ctx:c,points:[{pointX:432,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:432,startY:357,ctx:c,points:[{pointX:432,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:513,startY:357,ctx:c,points:[{pointX:513,pointY:401}],lineWidth:1,color:"#975124"}),C({startX:550,startY:399,ctx:c,points:[{pointX:550,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:838,startY:357,ctx:c,points:[{pointX:838,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:891,startY:357,ctx:c,points:[{pointX:891,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:815,startY:401,ctx:c,points:[{pointX:815,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:742,startY:443,ctx:c,points:[{pointX:742,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:725,startY:528,ctx:c,points:[{pointX:725,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:775,startY:528,ctx:c,points:[{pointX:775,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:598,startY:614,ctx:c,points:[{pointX:598,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:704,startY:614,ctx:c,points:[{pointX:704,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:348,startY:656,ctx:c,points:[{pointX:348,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:422,startY:656,ctx:c,points:[{pointX:422,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:623,startY:656,ctx:c,points:[{pointX:623,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:726,startY:656,ctx:c,points:[{pointX:726,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:452,startY:714,ctx:c,points:[{pointX:452,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:566,startY:714,ctx:c,points:[{pointX:566,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:798,startY:714,ctx:c,points:[{pointX:798,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:848,startY:714,ctx:c,points:[{pointX:848,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:893,startY:714,ctx:c,points:[{pointX:893,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:974,startY:714,ctx:c,points:[{pointX:974,pointY:754}],lineWidth:1,color:"#975124"}),p=v,n.invoiceType,n.invoiceCode,Y(p,44,40,"机 动 车 销 售 统 一 发 票",366,39,"#9C5223","900 31px KaiTi",0),Y(p,39,40,"发 票 联",492,89,"#9C5223","600 28px HeiTi",0),Y(p,19,30,"机打代码",111,182,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"机打号码",111,215,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"机器编号",111,248,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"税",524,184,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"控",524,214,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"码",524,244,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"购买方名称",111,319,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"纳税人识别号/",566,299,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"统一社会信用代码/",566,318,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"身份证号码/",566,337,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"车辆类型",111,368,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"合格证号",111,412,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"发动机号码",111,456,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"价税合计",111,498,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"销货单位名称",104,540,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"纳税人识别号",104,582,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"地 址",111,626,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"增值税税率 ",111,663,"#9C5223","normal 19px KaiTi",0),Y(p,25,30," 或 征 收 率",111,690,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"不含税价",111,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"厂牌型号",436,369,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"进口证明书号",439,413,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"产地",848,369,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"商检单号",818,411,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"车辆识别代号/车架号码",551,457,"#9C5223","normal 18px KaiTi",0),Y(p,19,30,"小写",806,499,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"电话",731,541,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"账号",731,583,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"开户银行",613,626,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"增值税",358,661,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"税 额",358,681,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"主管税务",630,661,"#9C5223","normal 19px KaiTi",0),Y(p,25,33," 机关及代码",630,681,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"小写",237,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"完税凭证号码",451,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"吨位",804,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"限乘人数",898,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"开票日期:",90,125,"#9C5223","normal 19px KaiTi",0),Y(p,26,33,"发票代码",810,84,"#9C5223","normal 19px KaiTi",0),Y(p,26,33,"发票号码",810,111,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"销货单位盖章",100,762,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"开票人",488,762,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"备注:一车一票",812,762,"#9C5223","normal 19px KaiTi",0),g=v,a=n.invoiceCode,l=n.invoiceNo,o=n.drewDate,n.checkCode,s=n.machineCode,n.invoiceStatus,n.status,Y(g,18,42,a,893,83,"#000000","normal 18px SimSun",0),Y(g,18,42,l,893,111,"#000000","normal 18px SimSun",0),Y(g,34,33,a,242,182,"#000000","normal 18px SimSun",0),Y(g,34,33,l,242,215,"#000000","normal 18px SimSun",0),Y(g,18,42,s,242,248,"#000000","normal 18px SimSun",0),(a=o)&&(s=(l=new Date(a)).getFullYear(),a=(o=l.getMonth()+1).toString(),1<=o&&o<=9&&(a="0"+o),l=(o=l.getDate()).toString(),Y(g,18,42,s+"年"+a+"月"+(l=0<=o&&o<=9?"0"+o:l)+"日",193,126,"#000000","normal 18px SimSun",0)),i=v,h=(m=n).purchaserName,e=void 0===(t=m.purchaserTaxNo)?"":t,p=void 0===(c=m.sellerName)?"":c,s=void 0===(g=m.sellerTaxNo)?"":g,c=void 0===(t=m.sellerTel)?"":t,t=void 0===(g=m.sellerAddress)?"":g,g=void 0===(g=m.sellerBankAccount)?"":g,m=void 0===(m=m.sellerBankName)?"":m,Y(i,18,35,void 0===h?"":h,242,319,"#000000","normal 18px SimSun",0),Y(i,18,33,e,778,319,"#000000","normal 19px Courier New",0),Y(i,18,33,p,242,539,"#000000","normal 18px SimSun",0),Y(i,18,33,c,789,539,"#000000","normal 18px SimSun",0),Y(i,34,33,s,242,583,"#000000","normal 19px Courier New",0),Y(i,34,33,g,789,583,"#000000","normal 18px SimSun",0),Y(i,18,40,t,242,617,"#000000","normal 18px SimSun",0),Y(i,18,38,m,712,617,"#000000","normal 18px SimSun",0),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=0;r<5;r++)Y(t,26,48,e.substr(0===r?0:38*r,38),570,165+26*r,"#000000","normal 19px Courier New",0)}(v,n),a=v,l=(o=n).carTypeName,e=void 0===(h=o.brandTranslation)?"":h,c=void 0===(p=o.productPlace)?"":p,g=void 0===(s=o.certificateNo)?"":s,p=void 0===(h=o.importCertNo)?"":h,h=void 0===(s=o.comInspectionNo)?"":s,s=void 0===(s=o.vehicleIdenNo)?"":s,o=void 0===(o=o.engineNo)?"":o,Y(a,18,33,void 0===l?"":l,242,370,"#000000","normal 18px SimSun",0),Y(a,18,33,e,524,370,"#000000","normal 18px SimSun",0),Y(a,18,33,c,899,370,"#000000","normal 18px SimSun",0),Y(a,18,33,g,242,411,"#000000","normal 18px SimSun",0),Y(a,18,33,p,562,413,"#000000","normal 18px SimSun",0),Y(a,18,33,h,895,411,"#000000","normal 18px SimSun",0),Y(a,18,33,o,242,455,"#000000","normal 18px SimSun",0),Y(a,18,33,s,753,455,"#000000","normal 18px SimSun",0),t=v,l=void 0===(m=(i=n).amountWithTax)?0:m,c=void 0===(e=i.amount)?0:e,p=void 0===(g=i.taxAmount)?0:g,m=void 0===(h=i.taxRate)?0:h,g=void 0===(e=i.zgswjgmc)?"":e,e=void 0===(h=i.zgswjgdm)?"":h,o=242,a=497,Y(t,18,56,s=0<(s=l)?u(s).replace("元","圆"):"(负数)"+u(Math.abs(s)).replace("元","圆"),o,a,"#000000","normal 18px SimSun",0),i=l||0===l?Number(l).toFixed(2):l,h=c||0===c?Number(c).toFixed(2):c,p=c||0===p?Number(p).toFixed(2):p,Y(t,34,33,"¥"+i,854,497,"#000000","normal 19px Courier New",0),Y(t,34,33,"¥"+h,284,726,"#000000","normal 19px Courier New",0),Y(t,34,33,"¥"+p,439,676,"#000000","normal 19px Courier New",0),Y(t,34,33,100*m+"%",242,676,"#000000","normal 18px SimSun",0),Y(t,34,33,g,739,663,"#000000","normal 18px SimSun",0),Y(t,34,33,e,739,685,"#000000","normal 18px SimSun",0),g=v,v=void 0===(e=(t=n).tonnage)?"":e,e=void 0===(n=t.limitPeopleNum)?"":n,n=void 0===(n=t.drawer)?"":n,Y(g,34,33,void 0===(t=t.wspzhm)?"":t,570,726,"#000000","normal 18px SimSun",0),Y(g,34,33,v,848,726,"#000000","normal 18px SimSun",0),Y(g,34,33,e,988,726,"#000000","normal 18px SimSun",0),Y(g,34,33,n,552,762,"#000000","normal 18px SimSun",0),E(r.toDataURL("image/png",.92),300)}}e(89);var P=function(){return(P=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function X(t){var n=t.startX,e=t.startY,r=t.ctx;t=t.points;r.beginPath(),r.moveTo(n,e),r.lineWidth=1,r.strokeStyle="#975124",t&&t.length&&t.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function I(t,n,e,r,i,o,a,s,u){"number"==typeof r&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=function(t,n){for(var e=t.length,r=e,i=0,o=0;o<e;o++)if(128<t.charCodeAt(o)){if(!(i+2<n)){r=o;break}i+=2}else{if(!(i+1<n)){r=o;break}i+=1}return r}(r,e);t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=r.substr(c)}t.save()}function R(t){var n=document.createElement("canvas");if(n.getContext){n.width=1194,n.height=1686;var e,r,i,o,a,u,l,c=n.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,1194,1686),X({startX:26,startY:334,ctx:l=c,points:[{pointX:1166,pointY:334},{pointX:1166,pointY:1570},{pointX:26,pointY:1570},{pointX:26,pointY:334}]}),X({startX:26,startY:374,ctx:l,points:[{pointX:1166,pointY:374}]}),X({startX:26,startY:1526,ctx:l,points:[{pointX:1166,pointY:1526}]}),X({startX:76,startY:334,ctx:l,points:[{pointX:76,pointY:1570}]}),X({startX:320,startY:334,ctx:l,points:[{pointX:320,pointY:1526}]}),X({startX:468,startY:334,ctx:l,points:[{pointX:468,pointY:1526}]}),X({startX:536,startY:334,ctx:l,points:[{pointX:536,pointY:1526}]}),X({startX:650,startY:334,ctx:l,points:[{pointX:650,pointY:1526}]}),X({startX:762,startY:334,ctx:l,points:[{pointX:762,pointY:1526}]}),X({startX:932,startY:334,ctx:l,points:[{pointX:932,pointY:1526}]}),X({startX:996,startY:334,ctx:l,points:[{pointX:996,pointY:1526}]}),a=c,e=(o=t).invoiceType,i=t.invoiceListCurrent,o=t.invoiceListTotalCount,I(a,18,40,"销售货物或者提供应税劳务、服务清单",597,80,"#9C5223","normal 38px KaiTi",1),I(a,18,30,"购买方名称:",56,210,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"销售方名称:",56,242,"#9C5223","normal 18px KaiTi",0),r="所属增值税电子普通发票代码:",1===Number(e)?r="所属增值税专用发票代码:":2===Number(e)?r="所属增值税普通发票代码:":4===Number(e)&&(r="所属增值税电子专用发票代码:"),I(a,18,30,r,56,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"号码:",538,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"共",936,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"页",1018,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"第",1056,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"页",1136,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"序号",34,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"项目名称",162,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"规格型号",358,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"单位",484,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"数量",576,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"单价",688,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"金额",828,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"税率",946,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"税额",1064,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"备注",34,1536,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"开票日期:",788,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"年",920,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"月",966,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"日",1012,1578,"#9C5223","normal 18px KaiTi",0),i===o?(I(a,18,30,"小计",34,1416,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"折扣",34,1456,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"总计",34,1496,"#9C5223","normal 18px KaiTi",0)):(I(a,18,30,"小计",34,1456,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"折扣",34,1496,"#9C5223","normal 18px KaiTi",0)),function(t,n){var e=n.details,r=n.amount,i=n.taxAmount,o=n.invoiceListCurrent,a=n.invoiceListTotalCount,u=n.subtotalAmount,l=n.subtotalTaxAmount,c=n.discountAmount,p=n.discountTaxAmount;e.forEach((function(n,e){var r,i,o,a,u,l,c;I(t,18,26,e+1,48,384+40*e,"#000000","normal 18px SimSun",1),o=84,r=384+40*e,i=""+(n.shortName||"")+n.goodsName,s(i)<=25?I(t,18,26,i,o,r,"#000000","normal 18px SimSun",0):s(i)<=29?I(t,18,30,i,o,r,"#000000","normal 16px SimSun",0):s(i)<=33?I(t,18,34,i,o,r,"#000000","normal 14px SimSun",0):s(i)<=38?I(t,18,39,i,o,r,"#000000","normal 12px SimSun",0):s(i)<=46?I(t,18,47,i,o,r,"#000000","normal 10px SimSun",0):I(t,10,47,i,o,r-4,"#000000","normal 10px SimSun",0),i=330,o=384+40*e,r=n.specification,s(r)<=14?I(t,18,15,r,i,o,"#000000","normal 18px SimSun",0):s(r)<=16?I(t,18,17,r,i,o,"#000000","normal 16px SimSun",0):s(r)<=19?I(t,18,20,r,i,o,"#000000","normal 13px SimSun",0):I(t,13,22,r,i,o-4,"#000000","normal 12px SimSun",0),r=502,i=384+40*e,o=n.unit,s(o)<=7?I(t,18,8,o,r,i,"#000000","normal 18px SimSun",1):s(o)<=9?I(t,18,10,o,r,i,"#000000","normal 14px SimSun",1):s(o)<=11?I(t,18,12,o,r,i,"#000000","normal 12px SimSun",1):s(o)<=13?I(t,18,14,o,r,i,"#000000","normal 10px SimSun",1):s(o)<=17?I(t,18,18,o,r,i,"#000000","normal 8px SimSun",1):I(t,8,18,o,r,i,"#000000","normal 8px SimSun",1),n.quantity&&n.unitPrice&&(u=640,a=384+40*e,l=n.quantity,s(l)<=10?I(t,18,11,l,u,a,"#000000","normal 18px SimSun",2):s(l)<=12?I(t,18,13,l,u,a,"#000000","normal 16px SimSun",2):s(l)<=14?I(t,18,15,l,u,a,"#000000","normal 14px SimSun",2):s(l)<=16?I(t,18,17,l,u,a,"#000000","normal 12px SimSun",2):I(t,12,17,l,u,a,"#000000","normal 12px SimSun",2),c=752,l=384+40*e,u=n.unitPrice,s(u)<=10?I(t,18,11,u,c,l,"#000000","normal 18px SimSun",2):s(u)<=12?I(t,18,13,u,c,l,"#000000","normal 16px SimSun",2):s(u)<=14?I(t,18,15,u,c,l,"#000000","normal 14px SimSun",2):s(u)<=16?I(t,18,17,u,c,l,"#000000","normal 12px SimSun",2):I(t,12,17,u,c,l,"#000000","normal 12px SimSun",2)),a=922,u=384+40*e,c=n.amount,I(t,18,18,c,a,u,"#000000","normal 18px SimSun",2),l=986,c=384+40*e,a=n.taxRate,0===(u=n).taxPre&&1===u.taxPreType&&1!==Number(u.invoiceType)&&4!==Number(u.invoiceType)?a="免税":0===u.taxPre&&2===u.taxPreType&&1!==Number(u.invoiceType)&&4!==Number(u.invoiceType)?a="不征税":"number"==typeof a&&(a=100*a+"%"),s(a)<=5?I(t,18,6,a,l,c,"#000000","normal 18px SimSun",2):s(a)<=6?I(t,18,7,a,l,c,"#000000","normal 16px SimSun",2):s(a)<=7?I(t,18,8,a,l,c,"#000000","normal 14px SimSun",2):s(a)<=8?I(t,18,9,a,l,c,"#000000","normal 12px SimSun",2):I(t,12,9,a,l,c,"#000000","normal 12px SimSun",2),l=1154,c=384+40*e,e=n.taxAmount,e=0===(n=n).taxPre&&1===n.taxPreType&&1!==Number(n.invoiceType)&&4!==Number(n.invoiceType)||0===n.taxPre&&2===n.taxPreType&&1!==Number(n.invoiceType)&&4!==Number(n.invoiceType)?"***":f(e)?"":0===e?"***":e,I(t,18,18,e,l,c,"#000000","normal 18px SimSun",2)})),o===a?(I(t,18,30,"¥"+u,922,1416,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+l,1154,1416,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+r,922,1496,"#000000","normal 18px Courier New",2)):(I(t,18,30,"¥"+u,922,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+l,1154,1456,"#000000","normal 18px Courier New",2)),o===a?(I(t,18,30,"¥"+c,922,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+p,1154,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+i,1154,1496,"#000000","normal 18px Courier New",2)):(I(t,18,30,"¥"+c,922,1496,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+p,1154,1496,"#000000","normal 18px Courier New",2))}(c,t),I(c,18,120,t.remark,86,1530,"#000000","normal 18px SimSun",0),u=c,e=(l=t).purchaserName,r=t.sellerName,i=t.invoiceNo,o=t.invoiceCode,a=t.invoiceListTotalCount,l=t.invoiceListCurrent,I(u,16,110,e,168,210,"#000000","normal 18px SimSun",0),I(u,16,110,r,168,242,"#000000","normal 18px SimSun",0),I(u,18,50,o,300,274,"#000000","normal 18px SimSun",0),I(u,18,50,i,594,274,"#000000","normal 18px SimSun",0),I(u,18,50,a,986,274,"#000000","normal 18px SimSun",1),I(u,18,50,l,1106,274,"#000000","normal 18px SimSun",1),a=c,(l=(u=t).drewDate)&&(t=(c=new Date(l)).getFullYear(),l=(u=c.getMonth()+1).toString(),1<=u&&u<=9&&(l="0"+u),c=(u=c.getDate()).toString(),0<=u&&u<=9&&(c="0"+u),I(a,18,50,t,878,1578,"#000000","normal 18px SimSun",0),I(a,18,50,l,944,1578,"#000000","normal 18px SimSun",0),I(a,18,50,c,988,1578,"#000000","normal 18px SimSun",0)),n.toDataURL()}}e(155);var _=e(37).changeDpiDataUrl,L=e(90);function O(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function M(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function B(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){function t(t){var n=new Image;return n.src=t,new Promise((function(t,e){n.onload=function(){t(n)}}))}var e,r,i,o,a,u,l,c,p,f,h,m;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(d){switch(d.label){case 0:e=n.entryId,r=n.goodsDetailList,i=Math.ceil(r.length/7),o=[],u=6,l=a=0,d.label=1;case 1:return l<i?(a+=6*l,u+=6*l,h=JSON.parse(JSON.stringify(r)),h=Array.from(h).slice(a,u),n.goodsDetailList=h,c="*"+e+"*",[4,t(L.default)]):[3,6];case 2:return p=d.sent(),m={errorCorrectionLevel:"M",margin:0,width:235},[4,g.a.toDataURL(c,m)];case 3:return[4,t(d.sent())];case 4:if(f=d.sent(),!(h=document.createElement("canvas")).getContext)return[2];m=h.getContext("2d"),h.width=2340,h.height=1653.5,m.scale(.5,.5),m.fillStyle="#fff",m.fillRect(0,0,4680,3307),m.drawImage(p,155,144,239,225),m.drawImage(f,4249,144,235,235),O({startX:152,startY:517,ctx:it=m,points:[{pointX:4488,pointY:517},{pointX:4488,pointY:3167},{pointX:152,pointY:3167},{pointX:152,pointY:517}],lineWidth:4,color:"#000"}),O({startX:152,startY:640,ctx:it,points:[{pointX:4488,pointY:640}],lineWidth:4,color:"#000"}),O({startX:152,startY:764,ctx:it,points:[{pointX:4488,pointY:764}],lineWidth:4,color:"#000"}),O({startX:152,startY:887,ctx:it,points:[{pointX:4488,pointY:887}],lineWidth:4,color:"#000"}),O({startX:152,startY:1010,ctx:it,points:[{pointX:4488,pointY:1010}],lineWidth:4,color:"#000"}),O({startX:152,startY:1134,ctx:it,points:[{pointX:4488,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:152,startY:1257,ctx:it,points:[{pointX:4488,pointY:1257}],lineWidth:4,color:"#000"}),O({startX:152,startY:1564,ctx:it,points:[{pointX:4488,pointY:1564}],lineWidth:4,color:"#000"}),O({startX:152,startY:1642,ctx:it,points:[{pointX:4488,pointY:1642}],lineWidth:4,color:"#000"}),O({startX:152,startY:1844,ctx:it,points:[{pointX:4488,pointY:1844}],lineWidth:4,color:"#000"}),O({startX:152,startY:2049,ctx:it,points:[{pointX:4488,pointY:2049}],lineWidth:4,color:"#000"}),O({startX:152,startY:2254,ctx:it,points:[{pointX:4488,pointY:2254}],lineWidth:4,color:"#000"}),O({startX:152,startY:2458,ctx:it,points:[{pointX:4488,pointY:2458}],lineWidth:4,color:"#000"}),O({startX:152,startY:2663,ctx:it,points:[{pointX:4488,pointY:2663}],lineWidth:4,color:"#000"}),O({startX:152,startY:2865,ctx:it,points:[{pointX:4488,pointY:2865}],lineWidth:4,color:"#000"}),O({startX:152,startY:2954,ctx:it,points:[{pointX:4488,pointY:2954}],lineWidth:4,color:"#000"}),O({startX:152,startY:3167,ctx:it,points:[{pointX:4488,pointY:3167}],lineWidth:4,color:"#000"}),O({startX:1499,startY:521,ctx:it,points:[{pointX:1499,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:2209,startY:521,ctx:it,points:[{pointX:2209,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:3038,startY:521,ctx:it,points:[{pointX:3038,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:3697,startY:521,ctx:it,points:[{pointX:3697,pointY:640}],lineWidth:4,color:"#000"}),O({startX:1698,startY:1010,ctx:it,points:[{pointX:1698,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:2715,startY:1010,ctx:it,points:[{pointX:2715,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:3522,startY:1010,ctx:it,points:[{pointX:3522,pointY:1134}],lineWidth:4,color:"#000"}),O({startX:4005,startY:1010,ctx:it,points:[{pointX:4005,pointY:1134}],lineWidth:4,color:"#000"}),rt=n,M(et=m,89,40,"中华人民共和国海关出口货物报关单",2340,180,"#000","normal 90px SimSun",1),M(et,38,30,"预录入编号:",155,449,"#000","normal 42px SimSun",0),M(et,38,30,"海关编号:",1522,449,"#000","normal 42px SimSun",0),M(et,38,30,"海关编号:",1522,449,"#000","normal 42px SimSun",0),M(et,38,30,"仅供核对用",3292,449,"#000","normal 42px SimSun",0),M(et,38,30,"页码/页数:",4171,449,"#000","normal 42px SimSun",0),M(et,38,30,"境内发货人",178,530,"#000","normal 42px SimSun",0),M(et,38,30,"出境关别 ("+rt.importExportPort+")",1527,530,"#000","normal 42px SimSun",0),M(et,38,30,"出口日期",2237,530,"#000","normal 42px SimSun",0),M(et,38,30,"申报日期",3066,530,"#000","normal 42px SimSun",0),M(et,38,30,"备案号",3720,530,"#000","normal 42px SimSun",0),M(et,38,30,"境外收货人",178,655,"#000","normal 42px SimSun",0),M(et,38,30,"运输方式 ("+rt.cusTrafficMode+")",1527,655,"#000","normal 42px SimSun",0),M(et,38,30,"运输工具名称及航次号",2237,655,"#000","normal 42px SimSun",0),M(et,38,30,"提运单号",3066,655,"#000","normal 42px SimSun",0),M(et,38,36,"生产销售单位 ("+rt.ownerSocialCreditCode+")",178,779,"#000","normal 42px SimSun",0),M(et,38,30,"监管方式 ("+rt.superviseModeCode+")",1527,779,"#000","normal 42px SimSun",0),M(et,38,30,"征免性质 ("+rt.cutMode+")",2237,779,"#000","normal 42px SimSun",0),M(et,38,30,"许可证号",3066,779,"#000","normal 42px SimSun",0),M(et,38,30,"合同协议号",178,901,"#000","normal 42px SimSun",0),M(et,38,30,"贸易国(地区)",1527,901,"#000","normal 42px SimSun",0),M(et,38,30,"运抵国(地区) ("+rt.cusTradeCountry+") ",2237,901,"#000","normal 42px SimSun",0),M(et,38,30,"指运港 ("+rt.distinatePort+")",3066,901,"#000","normal 42px SimSun",0),M(et,38,30,"离境口岸 ("+rt.departurePortCode+")",3720,901,"#000","normal 42px SimSun",0),M(et,38,30,"包装种类 ("+rt.wrapType+")",178,1023,"#000","normal 42px SimSun",0),M(et,38,30,"件数",1527,1023,"#000","normal 42px SimSun",0),M(et,38,30,"毛重(千克)",1724,1023,"#000","normal 42px SimSun",0),M(et,38,30,"净重(千克)",2237,1023,"#000","normal 42px SimSun",0),M(et,38,30,"成交方式 ("+rt.transacMode+")",2736,1023,"#000","normal 42px SimSun",0),M(et,38,30,"运费",3066,1023,"#000","normal 42px SimSun",0),M(et,38,30,"保费",3547,1023,"#000","normal 42px SimSun",0),M(et,38,30,"杂费",4028,1023,"#000","normal 42px SimSun",0),M(et,38,30,"附随单证及编号",178,1156,"#000","normal 42px SimSun",0),M(et,38,30,"标记唛码备注",178,1279,"#000","normal 42px SimSun",0),M(et,38,30,"项号",192,1585,"#000","normal 40px SimSun",0),M(et,38,30,"商品编号",400,1585,"#000","normal 40px SimSun",0),M(et,38,30,"商品名称及规格型号",1239,1585,"#000","normal 40px SimSun",0),M(et,38,30,"数量及单位",2279,1585,"#000","normal 40px SimSun",0),M(et,38,30,"单价/总价/币制",2626,1585,"#000","normal 40px SimSun",0),M(et,38,30,"原产国(地区)",2945,1585,"#000","normal 40px SimSun",0),M(et,38,30,"最终目的国(地区)",3226,1585,"#000","normal 40px SimSun",0),M(et,38,30,"境内货源地",3809,1585,"#000","normal 40px SimSun",0),M(et,38,30,"征免",4326,1585,"#000","normal 40px SimSun",0),M(et,38,30,"特殊关系确认:",783,2893,"#000","normal 42px SimSun",0),M(et,38,30,"价格影响确认:",1689,2893,"#000","normal 42px SimSun",0),M(et,38,30,"支付特许权使用费确认:",2596,2893,"#000","normal 42px SimSun",0),M(et,38,30,"自报自缴:",3678,2893,"#000","normal 42px SimSun",0),M(et,38,30,"报关人员",177,2993,"#000","normal 42px SimSun",0),M(et,38,30,"报关人员证号",660,2993,"#000","normal 42px SimSun",0),M(et,38,30,"电话",1315,2993,"#000","normal 42px SimSun",0),M(et,38,50,"兹申明对以上内容承担如实申报、依法纳税之法律责任",1822,2993,"#000","normal 42px SimSun",0),M(et,38,30,"海关批注及签章",3062,2993,"#000","normal 42px SimSun",0),M(et,38,30,"申报单位",177,3107,"#000","normal 42px SimSun",0),M(et,38,30,"申报单位(签章)",2515,3107,"#000","normal 42px SimSun",0),x=m,S=(v=n).preEntryId,y=v.entryId,b=v.consignorCname,w=v.importExportPortName,T=v.importExportDate,A=v.declareDate,E=v.manualNo,C=v.consigneeEname,Y=v.cusTrafficModeName,N=v.trafficName,P=v.billNo,X=v.ownerName,I=v.superviseModeCodeName,R=v.cutModeName,B=v.licenseNo,W=v.contractNo,v.cusTradeCountry,v.distinatePort,D=v.cusTradeCountryName,k=v.distinatePortName,F=v.departurePortCodeName,K=v.wrapTypeName,j=v.packNum,U=v.grossWeight,z=v.netWeight,H=v.transacModeName,Q=v.feeCurrency,J=v.feeMark,G=v.feeRate,V=v.insuranceCurrency,q=v.insuranceMark,Z=v.insuranceRate,$=v.otherCurrency,tt=v.otherMark,nt=v.otherRate,it=v.remark,rt=v.agentName,et=v.agentSocialCreditCode,v.ownerSocialCreditCode,ot(395,447,S),ot(1723,447,y),ot(180,580,b),ot(1529,587,w),ot(2240,587,T),ot(3069,587,A),ot(3724,587,E),ot(180,708,C),ot(1529,708,Y),ot(2239,708,N),ot(3066,708,P),ot(180,832,X),ot(1529,832,I),ot(2241,832,R),ot(3068,832,B),ot(179,953,W),ot(2239,953,D),ot(3069,953,k),ot(3720,953,F),ot(179,1075,K),ot(1529,1075,j),ot(1729,1075,U),ot(2240,1075,z),ot(2737,1075,H),ot(380,3105,rt+"("+et+")"),G&&J&&ot(3071,1079,(Q||"000")+"/"+G+"/"+J),Z&&q&&ot(3549,1079,(V||"000")+"/"+Z+"/"+q),nt&&tt&&ot(4030,1079,($||"000")+"/"+nt+"/"+tt),M(x,48,180,it,180,1333,"#000000","normal 48px SimSun",0),function(t,n){(void 0===(n=n.goodsDetailList)?[]:n).forEach((function(n,e){var r,i,o,a,s,u,l;s=196,o=1660+204*e,i=n.goodsNo,M(t,40,30,i,s,o,"#000000","normal 48px SimSun",0),u=401,r=1660+204*e,a=n.goodsCode,M(t,40,30,a,u,r,"#000000","normal 48px SimSun",0),l=1e3,i=1660+204*e,s=""+n.goodsName+n.specification,Array.from(s).length<120?M(t,54,44,s,l,i,"#000000","normal 48px SimSun",0):M(t,44,75,s,l,i,"#000000","normal 30px SimSun",0),o=2500,a=1660+204*e,r=(u={quantity:n.quantity,unit:n.unit,quantity1:n.quantity1,quantity2:n.quantity2,unit1Name:n.unit1Name,unit2Name:n.unit2Name}).quantity,s=u.unit,l=u.quantity1,i=u.quantity2,l=""+(l||"")+(u.unit1Name||""),u=""+(i||"")+(u.unit2Name||""),M(t,40,53,""+(r||"")+(s||""),o,a,"#000000","normal 48px SimSun",2),M(t,40,53,l,o,a+55,"#000000","normal 48px SimSun",2),M(t,40,53,u,o,a+110,"#000000","normal 48px SimSun",2),s=2860,l=1660+204*e,o=(u={unitPrice:n.unitPrice,declTotal:n.declTotal,tradeCurrency:n.tradeCurrency}).unitPrice,a=u.declTotal,u=u.tradeCurrency,M(t,40,53,o,s,l,"#000000","normal 48px SimSun",2),M(t,40,53,a,s,l+55,"#000000","normal 48px SimSun",2),M(t,40,53,u,s,l+110,"#000000","normal 48px SimSun",2),u=2960,s=1660+204*e,l=n.cusOriginCountryName+"("+n.cusOriginCountry+")",M(t,40,30,l,u,s,"#000000","normal 48px SimSun",0),l=3226,u=1660+204*e,s=n.destinationCountryName+"("+n.destinationCountry+")",M(t,40,53,s,l,u,"#000000","normal 48px SimSun",0),s=3800,l=1660+204*e,u=n.districtCodeName+"("+n.districtCode+")",M(t,40,53,u,s,l,"#000000","normal 48px SimSun",0),l=4280,e=1660+204*e,n=n.dutyModeName,M(t,40,53,n,l,e,"#000000","normal 48px SimSun",0)}))}(m,n),M(m,38,55,"*"+n.entryId+"*",3144,133,"#000000","normal 160px C39HrP24DhTt",0),M(m,38,30," "+(l+1)+"/"+i,4371,449,"#000","normal 38px SimSun",0),o.push(_(h.toDataURL("image/png",.92),300)),n.goodsDetailList=r,d.label=5;case 5:return l++,[3,1];case 6:return[2,o]}var x,v,S,y,b,w,T,A,E,C,Y,N,P,X,I,R,B,W,D,k,F,K,j,U,z,H,Q,J,G,V,q,Z,$,tt,nt,et,rt,it;function ot(t,n,e){s(e)<=56?M(x,38,56,e,t,n,"#000000","normal 48px SimSun",0):s(e)<=76?M(x,40,64,e,t,n-15,"#000000","normal 42px SimSun",0):M(x,30,66,e,t,n-4,"#000000","normal 40px SimSun",0)}}))}))}var W=e(37).changeDpiDataUrl,D=e(90);function k(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function F(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e),p=c.tlen,f=c.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",c=(n-Number(s.split(" ")[1].replace("px","")))/2,t.fillText(r.substr(0,p).replace(/^\s+|\s+$/,""),i,(l-1)*n+c+o),r=f?r.substr(p+1):r.substr(p)}t.save()}function K(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){function t(t){var n=new Image;return n.src=t,new Promise((function(t,e){n.onload=function(){t(n)}}))}var e,r,i;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(o){switch(o.label){case 0:return r=n.entryId,e="*"+r+"*",[4,t(D.default)];case 1:return o.sent(),i={errorCorrectionLevel:"M",margin:0,width:235},[4,g.a.toDataURL(e,i)];case 2:return[4,t(o.sent())];case 3:return o.sent(),(r=document.createElement("canvas")).getContext?(i=r.getContext("2d"),r.width=2340,r.height=1653.5,i.scale(.5,.5),i.fillStyle="#fff",i.fillRect(0,0,4680,3307),k({startX:512,startY:667,ctx:a=i,points:[{pointX:4169,pointY:667},{pointX:4169,pointY:2874},{pointX:512,pointY:2874},{pointX:512,pointY:667}],lineWidth:4,color:"#000"}),k({startX:623,startY:667,ctx:a,points:[{pointX:623,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:1001,startY:667,ctx:a,points:[{pointX:1001,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:968,startY:2029,ctx:a,points:[{pointX:968,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:1679,startY:2029,ctx:a,points:[{pointX:1679,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:2135,startY:2029,ctx:a,points:[{pointX:2135,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:2813,startY:2029,ctx:a,points:[{pointX:2813,pointY:2874}],lineWidth:4,color:"#000"}),k({startX:3480,startY:2029,ctx:a,points:[{pointX:3480,pointY:2874}],lineWidth:4,color:"#000"}),k({startX:3169,startY:1890,ctx:a,points:[{pointX:3169,pointY:2029}],lineWidth:4,color:"#000"}),k({startX:3514,startY:1890,ctx:a,points:[{pointX:3514,pointY:2029}],lineWidth:4,color:"#000"}),k({startX:2074,startY:1134,ctx:a,points:[{pointX:2074,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:2519,startY:1134,ctx:a,points:[{pointX:2519,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:2752,startY:1134,ctx:a,points:[{pointX:2752,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:3247,startY:1134,ctx:a,points:[{pointX:3247,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:3514,startY:1134,ctx:a,points:[{pointX:3514,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:1501,startY:823,ctx:a,points:[{pointX:1501,pointY:978}],lineWidth:4,color:"#000"}),k({startX:1801,startY:823,ctx:a,points:[{pointX:1801,pointY:978}],lineWidth:4,color:"#000"}),k({startX:2340,startY:667,ctx:a,points:[{pointX:2340,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:2451,startY:667,ctx:a,points:[{pointX:2451,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:2829,startY:667,ctx:a,points:[{pointX:2829,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:623,startY:823,ctx:a,points:[{pointX:2340,pointY:823}],lineWidth:4,color:"#000"}),k({startX:623,startY:979,ctx:a,points:[{pointX:2340,pointY:979}],lineWidth:4,color:"#000"}),k({startX:2451,startY:823,ctx:a,points:[{pointX:4168,pointY:823}],lineWidth:4,color:"#000"}),k({startX:2451,startY:979,ctx:a,points:[{pointX:4168,pointY:979}],lineWidth:4,color:"#000"}),k({startX:512,startY:1135,ctx:a,points:[{pointX:4169,pointY:1135}],lineWidth:4,color:"#000"}),k({startX:512,startY:1291,ctx:a,points:[{pointX:4169,pointY:1291}],lineWidth:4,color:"#000"}),k({startX:512,startY:1891,ctx:a,points:[{pointX:4169,pointY:1891}],lineWidth:4,color:"#000"}),k({startX:512,startY:2030,ctx:a,points:[{pointX:4169,pointY:2030}],lineWidth:4,color:"#000"}),k({startX:512,startY:2186,ctx:a,points:[{pointX:2813,pointY:2186}],lineWidth:4,color:"#000"}),k({startX:512,startY:2342,ctx:a,points:[{pointX:2813,pointY:2342}],lineWidth:4,color:"#000"}),k({startX:512,startY:2498,ctx:a,points:[{pointX:2813,pointY:2498}],lineWidth:4,color:"#000"}),k({startX:2901,startY:2179,ctx:a,points:[{pointX:3390,pointY:2179}],lineWidth:4,color:"#000"}),k({startX:3574,startY:2179,ctx:a,points:[{pointX:4063,pointY:2179}],lineWidth:4,color:"#000"}),k({startX:3085,startY:2701,ctx:a,points:[{pointX:3452,pointY:2701}],lineWidth:4,color:"#000"}),F(a=i,183,20,"海关进口关税",1445,345,"#000","normal 133px SimSun",0),F(a,183,20,"专用缴款书",2507,345,"#000","normal 133px SimSun",0),F(a,94,20,"收入系统: 海关系统",667,567,"#000","normal 67px SimSun",0),F(a,94,10,"填发日期: ",1679,567,"#000","normal 67px SimSun",0),F(a,94,10,"号码 No.",3096,572,"#000","normal 67px SimSun",0),F(a,83,3,"收款单位",539,723,"#000","normal 67px SimSun",0),F(a,94,10,"收入机关",667,695,"#000","normal 67px SimSun",0),F(a,94,20,"科 目",667,850,"#000","normal 67px SimSun",0),F(a,94,10,"收款国库",667,1006,"#000","normal 67px SimSun",0),F(a,99,10,"预算级次",1523,850,"#000","normal 67px SimSun",0),F(a,83,3,"收款单位",2362,678,"#000","normal 67px SimSun",0),a.save(),a.translate(2440,1e3),a.rotate(90*Math.PI/180),F(a,83,3,"(",0,0,"#000","normal 67px SimSun",0),a.restore(),a.rotate(-90*Math.PI/180),a.translate(-2440,-1e3),a.translate(2440,1100),a.rotate(90*Math.PI/180),F(a,83,3,")",0,0,"#000","normal 67px SimSun",0),a.restore(),a.rotate(-90*Math.PI/180),a.translate(-2440,-1100),F(a,83,3,"人",2362,1017,"#000","normal 67px SimSun",0),F(a,83,20,"名 称",2496,695,"#000","normal 67px SimSun",0),F(a,83,20,"账 号",2496,850,"#000","normal 67px SimSun",0),F(a,83,20,"开户银行",2496,1006,"#000","normal 67px SimSun",0),F(a,83,20,"税 号",584,1162,"#000","normal 67px SimSun",0),F(a,83,30,"货 物 名 称",1234,1162,"#000","normal 67px SimSun",0),F(a,83,30,"数 量",2162,1162,"#000","normal 67px SimSun",0),F(a,83,10,"单位",2562,1162,"#000","normal 67px SimSun",0),F(a,83,20,"完税价格(¥)",2796,1162,"#000","normal 67px SimSun",0),F(a,83,20,"税率(%)",3263,1162,"#000","normal 67px SimSun",0),F(a,83,20,"税款金额(¥)",3641,1162,"#000","normal 67px SimSun",0),F(a,83,20,"金额人民币(大写)",606,1912,"#000","normal 67px SimSun",0),F(a,83,20,"合计(¥)",3207,1912,"#000","normal 67px SimSun",0),F(a,83,20,"申请单位编号",556,2057,"#000","normal 67px SimSun",0),F(a,83,20,"合同(批文)号",556,2212,"#000","normal 67px SimSun",0),F(a,83,20,"缴款期限",556,2368,"#000","normal 67px SimSun",0),F(a,83,20,"报关单编号",1723,2057,"#000","normal 67px SimSun",0),F(a,83,20,"运输工具(号)",1723,2212,"#000","normal 67px SimSun",0),F(a,83,20,"提/装货单号",1723,2368,"#000","normal 67px SimSun",0),F(a,83,3,"备注",550,2573,"#000","normal 67px SimSun",0),F(a,83,20,"填 制 单 位",2940,2079,"#000","normal 67px SimSun",0),F(a,83,30,"收款国库(银行)",3596,2079,"#000","normal 67px SimSun",0),F(a,83,20,"制单人",2874,2629,"#000","normal 67px SimSun",0),F(a,83,30,"复核人",2874,2740,"#000","normal 67px SimSun",0),F(a,83,100,"从填发缴款书之日起限15日内缴纳(期末遇法定节假日顺延),逾期按日征收税款总额万分之五的滞纳金",634,2885,"#000","normal 67px SimSun",0),function(t,n){var e=n.invoiceNo,r=(x=n.purchaserCoveringWarrantVo).exchequerNo,i=x.deliveryNum,o=(x.portCode,x.purchaserTaxNo2,x.drewDate),a=x.payDate,l=x.applyCompanyNo,c=x.incomeOrganization,p=x.contractNo,f=(x.sources,x.purchaserTaxNo1,x.amount),h=x.transportWay,m=x.manifestNo,d=x.purchaserName1,x=(x.budgetNo,x.tradeWay,x.purchaserName2);function g(n,e,r){s(r)<=11?F(t,94,60,r,n,e,"#000000","normal 67px SimSun",1):s(r)<=16?F(t,94,64,r,n,e,"#000000","normal 43px SimSun",1):F(t,94,66,r,n,e,"#000000","normal 40px SimSun",1)}function v(n,e,r,i){s(r)<=17?F(t,94,60,r,n,e,"#000000","normal 67px SimSun",i):s(r)<=20?F(t,94,64,r,n,e,"#000000","normal 43px SimSun",i):F(t,94,66,r,n,e,"#000000","normal 40px SimSun",i)}n=n.purchaserInvoiceDetailVOList,F(t,85,20,o,2014,567,"#000","normal 67px SimSun",0),F(t,85,40,e,3360,572,"#000","normal 67px SimSun",0),F(t,85,40,d,2851,667,"#000","normal 67px SimSun",0),F(t,85,40,x,2851,734,"#000","normal 67px SimSun",0),F(t,85,30,c,1023,667,"#000","normal 67px SimSun",0),F(t,85,30,"进口关税",1023,823,"#000","normal 67px SimSun",0),F(t,85,10,"中央",1812,823,"#000","normal 67px SimSun",0),F(t,85,30,r,1023,978,"#000","normal 67px SimSun",0),F(t,85,18,l,978,2029,"#000","normal 67px SimSun",0),F(t,85,18,p,978,2184,"#000","normal 67px SimSun",0),F(t,85,18,a,978,2340,"#000","normal 67px SimSun",0),F(t,85,18,m,2145,2029,"#000","normal 67px SimSun",0),F(t,85,18,h,2145,2184,"#000","normal 67px SimSun",0),F(t,85,18,i,2145,2340,"#000","normal 67px SimSun",0),F(t,85,50,u(f).replace("元","圆"),1212,1912,"#000","normal 67px SimSun",0),v(3524,1890,f,0),n&&Array.isArray(n)&&n.forEach((function(n,e){var r,i,o;r=522,i=1284+90*e,o=e+1+". "+n.taxInfo,s(o)<=13?F(t,94,60,o,r,i,"#000000","normal 67px SimSun",0):s(o)<=20?F(t,94,64,o,r,i,"#000000","normal 43px SimSun",0):F(t,94,66,o,r,i,"#000000","normal 40px SimSun",0),o=1023,r=1284+90*e,i=n.goodsName,s(i)<=30?F(t,94,60,i,o,r,"#000000","normal 67px SimSun",0):s(i)<=48?F(t,94,64,i,o,r,"#000000","normal 43px SimSun",0):F(t,94,66,i,o,r,"#000000","normal 40px SimSun",0),g(2290,1284+90*e,n.quantity),i=2630,o=1284+90*e,r=n.unit,s(r)<=6?F(t,94,60,r,i,o,"#000000","normal 67px SimSun",1):s(r)<=10?F(t,94,64,r,i,o,"#000000","normal 43px SimSun",1):F(t,94,66,r,i,o,"#000000","normal 40px SimSun",1),r=3240,i=1284+90*e,o=n.unitPrice,s(o)<=13?F(t,94,60,o,r,i,"#000000","normal 67px SimSun",2):s(o)<=20?F(t,94,64,o,r,i,"#000000","normal 43px SimSun",2):F(t,94,66,o,r,i,"#000000","normal 40px SimSun",2),g(3376,1284+90*e,n.taxRate),v(4150,1284+90*e,n.taxAmount,2)}))}(i,n),[2,W(r.toDataURL("image/png",.92),300)]):[2]}var a}))}))}e(157);function j(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function U(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e,r,i,o,a,s,u;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(l){switch(l.label){case 0:return a=n.url,t=n.amountWithTax,e=n.remark,r=n.sellerName,i=n.orderCode,o=n.createTime,s={errorCorrectionLevel:"M",margin:0,width:800},[4,g.a.toDataURL(a,s)];case 1:return[4,(c=u=l.sent(),(p=new Image).src=c,new Promise((function(t,n){p.onload=function(){t(p)}})))];case 2:return a=l.sent(),(s=document.createElement("canvas")).getContext?(u=s.getContext("2d"),s.width=1200,s.height=1900,u.fillStyle="#fff",u.fillRect(0,0,1200,1900),u.fillStyle="#3378FF",u.fillRect(0,0,1200,280),u.fillStyle="rgba(255, 128, 0, 0.04)",u.fillRect(0,280,1200,104),u.drawImage(a,200,484,800,800),j(u,80,30,r,600,63,"#FFFFFF","Bold 56px Microsoft YaHei",1),j(u,52,60,"提醒:二维码有效期为15天,电子发票默认推送至客户定制邮箱",47,310,"#FF8000","400 40px Microsoft YaHei",0),j(u,52,16,"发票金额",200,1384,"#666666","400 40px Microsoft YaHei",0),j(u,52,16,"开票日期",200,1500,"#666666","400 40px Microsoft YaHei",0),j(u,52,16,"订单编号",200,1616,"#666666","400 40px Microsoft YaHei",0),j(u,52,8,"备注",200,1732,"#666666","400 40px Microsoft YaHei",0),j(u,52,20,t,1e3,1384,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,20,o,1e3,1500,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,20,i,1e3,1616,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,36,e,1e3,1732,"#000000","Bold 40px Microsoft YaHei",2),[2,s.toDataURL()]):[2]}var c,p}))}))}function z(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function H(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){return(t=document.createElement("canvas")).getContext?(e=t.getContext("2d"),t.width=2480,t.height=3508,e.fillStyle="#fff",e.fillRect(0,0,2480,3508),z({startX:200,startY:472,ctx:o=e,points:[{pointX:2280,pointY:472},{pointX:2280,pointY:3303},{pointX:200,pointY:3303},{pointX:200,pointY:472}],lineWidth:4,color:"#000"}),z({startX:200,startY:672,ctx:o,points:[{pointX:2280,pointY:672}],lineWidth:4,color:"#000"}),z({startX:424,startY:572,ctx:o,points:[{pointX:1240,pointY:572}],lineWidth:4,color:"#000"}),z({startX:1464,startY:572,ctx:o,points:[{pointX:2280,pointY:572}],lineWidth:4,color:"#000"}),z({startX:424,startY:472,ctx:o,points:[{pointX:424,pointY:3303}],lineWidth:4,color:"#000"}),z({startX:738,startY:472,ctx:o,points:[{pointX:738,pointY:672}],lineWidth:4,color:"#000"}),z({startX:1240,startY:472,ctx:o,points:[{pointX:1240,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1464,startY:472,ctx:o,points:[{pointX:1464,pointY:672}],lineWidth:4,color:"#000"}),z({startX:1778,startY:472,ctx:o,points:[{pointX:1778,pointY:672}],lineWidth:4,color:"#000"}),z({startX:424,startY:784,ctx:o,points:[{pointX:2280,pointY:784}],lineWidth:4,color:"#000"}),z({startX:842,startY:672,ctx:o,points:[{pointX:842,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1240,startY:672,ctx:o,points:[{pointX:1240,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1518,startY:672,ctx:o,points:[{pointX:1518,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1796,startY:672,ctx:o,points:[{pointX:1796,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1974,startY:672,ctx:o,points:[{pointX:1974,pointY:784}],lineWidth:4,color:"#000"}),z({startX:200,startY:1808,ctx:o,points:[{pointX:2280,pointY:1808}],lineWidth:4,color:"#000"}),z({startX:200,startY:2833,ctx:o,points:[{pointX:2280,pointY:2833}],lineWidth:4,color:"#000"}),z({startX:1090,startY:2419,ctx:o,points:[{pointX:1493,pointY:2419}],lineWidth:2,color:"#000"}),z({startX:1643,startY:2419,ctx:o,points:[{pointX:2055,pointY:2419}],lineWidth:2,color:"#000"}),z({startX:1090,startY:2750,ctx:o,points:[{pointX:1493,pointY:2750}],lineWidth:2,color:"#000"}),z({startX:1643,startY:2750,ctx:o,points:[{pointX:2055,pointY:2750}],lineWidth:2,color:"#000"}),z({startX:698,startY:1828,ctx:o,points:[{pointX:750,pointY:1828},{pointX:750,pointY:1880},{pointX:698,pointY:1880},{pointX:698,pointY:1828}],lineWidth:2,color:"#000"}),z({startX:910,startY:1957,ctx:o,points:[{pointX:962,pointY:1957},{pointX:962,pointY:2009},{pointX:910,pointY:2009},{pointX:910,pointY:1957}],lineWidth:2,color:"#000"}),z({startX:910,startY:2025,ctx:o,points:[{pointX:962,pointY:2025},{pointX:962,pointY:2077},{pointX:910,pointY:2077},{pointX:910,pointY:2025}],lineWidth:2,color:"#000"}),z({startX:698,startY:2486,ctx:o,points:[{pointX:750,pointY:2486},{pointX:750,pointY:2537},{pointX:698,pointY:2537},{pointX:698,pointY:2486}],lineWidth:2,color:"#000"}),m(i=e,64,40,"开具红字增值税专用发票信息表",1240,180,"#000","normal 64px Microsoft YaHei",1),m(i,40,40,"填开日期:",272,384,"#000","normal 40px Microsoft YaHei",0),m(i,48,10,"销售方",312,545,"#000","normal 48px SimSun",1),m(i,48,10,"购买方",1352,545,"#000","normal 48px SimSun",1),m(i,44,20,"名 称",581,497,"#000","normal 44px SimSun",1),m(i,44,20,"纳税人识别号",581,596,"#000","normal 44px SimSun",1),m(i,44,20,"名 称",1621,497,"#000","normal 44px SimSun",1),m(i,44,20,"纳税人识别号",1621,596,"#000","normal 44px SimSun",1),m(i,60,5,"开具红字专用发票内容",312,1054,"#000","normal 48px SimSun",1),m(i,44,18,"货物(劳务服务)名称",633,680,"#000","normal 44px SimSun",1),m(i,44,18,"数量",1046,703,"#000","normal 44px SimSun",1),m(i,44,18,"单价",1379,703,"#000","normal 44px SimSun",1),m(i,44,18,"金额",1662,703,"#000","normal 44px SimSun",1),m(i,44,18,"税率",1885,703,"#000","normal 44px SimSun",1),m(i,44,18,"税额",2137,703,"#000","normal 44px SimSun",1),m(i,44,18,"合计",590,1743,"#000","normal 44px SimSun",0),m(i,60,5,"说明",312,2296,"#000","normal 48px SimSun",1),m(i,48,20,"一、购买方",450,1830,"#000","normal 48px SimSun",0),m(i,48,100,"对应蓝字专用发票抵扣增值税销项税额情况:",536,1893,"#000","normal 44px SimSun",0),m(i,48,100,"1.已抵扣:",698,1961,"#000","normal 44px SimSun",0),m(i,48,100,"2.未抵扣:",698,2029,"#000","normal 44px SimSun",0),m(i,48,100,"对应蓝字专用发票的代码:",536,2351,"#000","normal 44px SimSun",0),m(i,48,100,"号码:",1504,2351,"#000","normal 44px SimSun",0),m(i,48,20,"二、销售方",450,2488,"#000","normal 48px SimSun",0),m(i,48,100,"对应蓝字专用发票的代码:",536,2691,"#000","normal 44px SimSun",0),m(i,48,100,"号码:",1504,2691,"#000","normal 44px SimSun",0),m(i,60,7,"红字发票信息表编号",240,2978,"#000","normal 48px SimSun",1),l=e,c=(a=n).applyTime,o=(u=new Date(c)).getFullYear(),a=(i=u.getMonth()+1).toString(),1<=i&&i<=9&&(a="0"+i),u=(i=u.getDate()).toString(),0<=i&&i<=9&&(u="0"+i),m(l,44,24,c?o+"年"+a+"月"+u+"日":"",500,378,"#000","normal 44px SimSun",0),m(l=e,48,24,(c=n).sellerName,753,476,"#000","normal 44px SimSun",0),m(l,48,24,c.sellerTaxNo,753,600,"#000","normal 44px SimSun",0),m(l,48,24,c.purchaserName,1786,476,"#000","normal 44px SimSun",0),m(l,48,24,c.purchaserTaxNo,1786,600,"#000","normal 44px SimSun",0),function(t,n){var e=n.details;function r(n,e,r){s(r)<=11?m(t,44,12,r,n,e,"#000000","normal 44px SimSun",2):s(r)<=14?m(t,36,15,r,n,e,"#000000","normal 36px SimSun",2):(s(r),m(t,20,20,r,n,e,"#000000","normal 26px SimSun",2))}function i(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":r,s(r)<=18?m(t,44,19,r,n,e,"#000000","normal 44px SimSun",2):s(r)<=22?m(t,36,23,r,n,e,"#000000","normal 36px SimSun",2):s(r)<=30?m(t,26,31,r,n,e,"#000000","normal 26px SimSun",2):s(r)<=34?m(t,24,35,r,n,e,"#000000","normal 24px SimSun",2):s(r)<=42?m(t,20,43,r,n,e,"#000000","normal 20px SimSun",0):m(t,20,43,r,n,e-4,"#000000","normal 20px SimSun",0)}e.forEach((function(n,e){var o,a,u,l,c,p,f;o=432,a=793+40*e,u=""+n.goodsName,s(u)<=18?m(t,44,19,u,o,a,"#000000","normal 44px SimSun",0):s(u)<=22?m(t,40,23,u,o,a,"#000000","normal 36px SimSun",0):s(u)<=30?m(t,26,31,u,o,a,"#000000","normal 26px SimSun",0):s(u)<=34?m(t,24,35,u,o,a,"#000000","normal 24px SimSun",0):s(u)<=42?m(t,20,43,u,o,a,"#000000","normal 20px SimSun",0):m(t,20,43,u,o,a-4,"#000000","normal 20px SimSun",0),n.quantity&&n.unitPrice&&(c=1238,l=793+40*e,f=n.quantity,s(f)<=18?m(t,44,19,f,c,l,"#000000","normal 44px SimSun",2):s(f)<=22?m(t,36,23,f,c,l,"#000000","normal 36px SimSun",2):s(f)<=30?m(t,26,31,f,c,l,"#000000","normal 26px SimSun",2):s(f)<=34?m(t,24,35,f,c,l,"#000000","normal 24px SimSun",2):s(f)<=42?m(t,20,43,f,c,l,"#000000","normal 20px SimSun",0):m(t,20,43,f,c,l-4,"#000000","normal 20px SimSun",0),p=1516,f=793+40*e,c=n.unitPrice,s(c)<=11?m(t,44,12,c,p,f,"#000000","normal 44px SimSun",2):s(c)<=14?m(t,36,15,c,p,f,"#000000","normal 36px SimSun",2):(s(c),m(t,20,20,c,p,f,"#000000","normal 26px SimSun",2))),r(1794,793+40*e,n.amount),l=1885,c=793+40*e,p=n.taxRate,0===(f=n).taxPre&&1===f.taxPreType&&1!==Number(f.invoiceType)&&4!==Number(f.invoiceType)?p="免税":0===f.taxPre&&2===f.taxPreType&&1!==Number(f.invoiceType)&&4!==Number(f.invoiceType)?p="不征税":"number"==typeof p&&(p=100*p+"%"),m(t,44,6,p,l,c,"#000000","normal 44px SimSun",1),i(2278,793+40*e,n.taxAmount,n)}));var o=e[0].amount;n=e[0].taxAmount,r(1794,1743,o&&"¥"+o),i(2278,1743,n&&"¥"+n,e[0])}(e,n),o=e,u=(a=n).applicationRole,l=a.invoiceCode,c=a.invoiceNo,a=a.deductFlag,1===u?(m(o,44,43,l,1090,2351,"#000000","normal 44px SimSun",0),m(o,44,43,c,1644,2351,"#000000","normal 44px SimSun",0),m(o,44,43,"√",698,1828,"#000000","normal 50px SimSun",0),1===a?m(o,44,43,"√",910,1957,"#000000","normal 50px SimSun",0):2===a&&m(o,44,43,"√",910,2025,"#000000","normal 50px SimSun",0)):(m(o,44,43,l,1090,2691,"#000000","normal 44px SimSun",0),m(o,44,43,c,1644,2691,"#000000","normal 44px SimSun",0),m(o,44,43,"√",698,2486,"#000000","normal 50px SimSun",0)),m(e,44,43,n.applicationNo,440,3043,"#000000","normal 50px SimSun",0),[2,t.toDataURL()]):[2];var i,o,a,u,l,c}))}))}function Q(t,n){t.lineWidth=4,t.strokeStyle="black",t.beginPath(),t.setLineDash([20,15]),t.moveTo(0,n),t.lineTo(630,n),t.stroke()}function J(t,n){t.beginPath(),t.lineWidth=4,t.strokeStyle="black",t.setLineDash([]),t.arc(116,n+60,60,0,2*Math.PI,!1),t.stroke()}function G(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){return(t=document.createElement("canvas")).getContext?(e=t.getContext("2d"),t.width=3508,t.height=2480,e.fillStyle="#fff",e.fillRect(0,0,3508,2480),i=e,n.forEach((function(t,n){0===n?i.translate(60,60):n<5?i.translate(690,0):5===n?i.translate(0,1210):i.translate(-690,0),function(t,n){t.fillStyle="#fff",t.fillRect(0,0,630,1150),Q(t,160),Q(t,542),J(t,198),m(t,65,40,"收",84,230,"#000","bold 65px Microsoft YaHei",0),J(t,580),m(t,65,40,"寄",84,612,"#000","bold 65px Microsoft YaHei",0),m(t,56,16,n.mailNo,315,32,"#000","normal 56px Bahnschrift",1),m(t,28,40,n.createTime,315,96,"#000","normal 28px Microsoft YaHei",1),m(t,42,26,n.sender,56,352,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.senderMobile,56,452,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.receiver,56,734,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.receiveAddress,56,834,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.mailNo,315,970,"#000","normal 120px C39HrP24DhTt",1)}(i,t)})),[2,t.toDataURL()]):[2];var i}))}))}function V(){try{var t=navigator.userAgent;if(t.match(/Windows\sPhone/i))return!0;if(t.match(/iPhone|iPod|iPad/i))return!0;if(t.match(/Android/i))return!0;if(t.match(/Edge\D?\d+/i))return!0;var n=t.match(/Trident\D?\d+/i),e=t.match(/MSIE\D?\d+/i),r=t.match(/OPR\D?\d+/i),i=t.match(/Firefox\D?\d+/i),o=t.match(/x64/i);if(!n&&!e&&o)return!0;if(i){if(i=i[0].match(/\d+/),41<=Number(i[0])||o)return!0}else if(r){if(r=r[0].match(/\d+/),32<=Number(r[0]))return!0}else if(!n&&!e){var a=t.match(/Chrome\D?\d+/i);if(a&&(a=a[0].match(/\d+/),41<=Number(a[0])))return!0}return!1}catch(t){return!0}}var q=null,Z=function(t,n,e,r){var i,o="<br><font color='#000'>第一步:<br>请先安装打印所需字体!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/resource/%E5%AD%97%E4%BD%93.ttf' target='_self'>下载并双击打开后安装字体文件</a><br>(如已安装,请忽略)</font><br>";function a(t){t='\n <div style="width:500px;height:300px;padding: 20px 15px 0px 15px;z-index:99999;background:rgba(255,251,251,1);">\n <p style="text-align: right;margin: 0"><span class="icon-font" id="lodop-print-close" style="cursor:pointer"><img style="width: 20px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFKUlEQVR4Xu2bWc8URRSGX2IIUSOKK664RI0aWVwQccEt7oILeM8N/AN/hRfeypXXqCgKIu6K+woSYowxigqKCigKRo1LHnMm6Uy6TndXV9U3cabuYLqr6nmm+nTNOfVN05i3aWPOr4mAyQoYcwOTR2DMF0BjEDxC0gOSlkh6VdLDkr4dcWknS1pdmfODkn4NzbnpEVgraUXl5h32709GVMIFkh6VdFFlfo9IWhkj4DpJL9fcuN0kfDpiEs43+Itr5nWWpC/r5uutgJAA+tlmEj4bEQnnGvy8wHwuk/RBVwHzbQUcE+j0I5Pw+RRLOFvSY5IWBObxiqTrYx4B7mGF/O0AYpUY8cUUSTjT4C8NjE+sYn7ErtrWFAS5abqkPxzA9yQtl/RVYQlnGPzlgXGJUcATs4KtjQBuPlzSIaefd0zCN4UknGbwVwTGIzYBT6xyW1sBdHKUpANOb2+ZhN1Ng/b8/BSDvzLQDzEJeGJUY+sigM6OlbTX6fUNk/Bd48hxF8w2+KsCtxOL7pf0ftvuuwqg3xMl7XEG2GISvm87iZbXMS7R/prA9TsN/t2W/f13WYwA7mMZ7nIGYttMYPyxy2Sca4+39zx7k7r2tcG/3XW8WAGMQxTGeqixi0TCvq6TGrqex47t7Q2BfvgiWPZvxozTRwDjsQnxNkIvmoSfYiYniU0Y8DcF7ueHGfCvR/Yf/QhUxztPkve74HmT4L1B6uY/0+BvDsARh4B/LRa+TwwYHvNCb7clabNJCP4sHerwSAt4twbgfjB4trm9Wt9HoDo4P0S2OrPZJOk+Sb81zJhNF9H+9sB1vIb55l/qRW43pxRAl+zJvXfwBlsJvwcmP8Pg7wx8vt/gX0gBn/IRqM6H7an3OnrKJPw5BMFvDr75pQG4nw3+uVTwuQTQLzs1LzI/aRL+MpjDDP7uANwvBv9sSvicAuibPKIXpNaZBK7lm783AHfQ4J9JDZ9bAP3fKMl7XgGnsWGqawRMAh6xI0tLHQTrJsmrjDdA10agBJ6Yka2VEMDkiepPd6AgQAJPrMjaSgkAggD3RAsaAiPwxIjsraSAwbPO3j7U/jH4QWz43wkYLrTUASKIFVCklVwBbeAH0MUklBLQBb6ohBICPPhBjZGa3pQ8DrkFePDkEAYbIIIetb3iEnIK8ODJ2wP/sRHPte0wNb6iEnIJ8OBJoQE/nDugFslKOKekhBwCPHjy9sB/GIC8xCRQzi6yElIL8ODJIAPfVLSglM1KmFNCQkoBHjx5e+DbFi0WmoTTc0tIJcCDJ28PfNeixSKTcGpOCSkEePDk7YGPKlpIWmwSOPiUJSb0FeDBk7cHPrpoYcRXm4STckjoI8CDJ28PfK+iRQX4WpNwQmoJsQI8ePL21OfrTpgF5t/qvymM8nY4LqWEGAEePHl74KkJ5mgUSJEwK5WErgI8ePL2wFMLzNkolCLh6BQSugjw4MnbA08NsES7xQqnHNvp9XZoK8CDJ28PfEzmt4+s20wChdRoCW0EePDk7YHf2Iekx713mAQKqlESmgRwOnxVoHPy9sB3SXf3YA3eepdJoLBa19bY6fHaDz0BbDxCp73I2wO/PgdRRJ/LTAIF1rrGmabaY/6eAJIUdQcNydsD3ybHH8ESfcs9JoFC63CLOixNJ2xmqiezyNsD/3j0NPPeyAEMMsrVL7bXYWnK3PzFCDV7nnWep2yFykRuKMMRt4gNvJkekhQ8U9AUBBPNaXS7mQgY3e+mzMwmK6CM59EdZexXwL8Q0/tB+Dg3tAAAAABJRU5ErkJggg=="></img></span></p>\n '.concat(t,"\n </div>");var n=document.createElement("div");n.style.cssText="background:rgba(0,0,0,0.3);position:fixed;top:0%;left:0%;width:100%;height:100%;z-index:99999;display: flex;justify-content: center;align-items: center;",n.innerHTML=t,document.body.appendChild(n),document.getElementById("lodop-print-close").onclick=function(){document.body.removeChild(n)}}try{var s=navigator.userAgent,u=!!s.match(/MSIE/i)||!!s.match(/Trident/i);if(V()){try{i=window.getCLodop()}catch(t){}if(!i&&"complete"!==document.readyState)return;if(!i)return void a(o+"<br><font color='#000'>第二步:<br>Web打印服务CLodop未安装启动,点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>"+(r?"<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)":"")+",成功后请刷新本页面。</font>");window.CLODOP.CVERSION<"3.0.6.0"&&a(o+"<br><font color='#000'>第二步:<br>Web打印服务CLodop需升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>"),n&&n.parentNode&&n.parentNode.removeChild(n),t&&t.parentNode&&t.parentNode.removeChild(t)}else{var l=u&&!!s.match(/x64/i);if(t||n?i=u?t:n:q?i=q:((i=document.createElement("object")).setAttribute("width",0),i.setAttribute("height",0),i.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),u?i.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):i.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(i),q=i,(i=document.createElement("object")).setAttribute("width",0),i.setAttribute("height",0),i.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),u?i.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):i.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(i),q=i),!i||!i.VERSION)return 0<=s.indexOf("Chrome")&&a("<br><br><font color='#000'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>"),0<=s.indexOf("Firefox")&&a("<br><br><font color='#000'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>"),a(l?"<br><font color='#000'>第二步:<br>打印控件未安装!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>":"<br><font color='#000'>第二步:<br>打印控件未安装!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"),i}return i.VERSION<"6.2.2.4"?(V()||a(l?"<br><font color='#000'>第二步:<br>打印控件需要升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>":"<br><font color='#000'>第二步:<br>打印控件需要升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"),i):(i.SET_LICENSES("",e,"",""),i)}catch(t){alert("getLodop出错:"+t)}};function $(t){return t.toString().includes("mm")?Number(t.split("mm")[0]):t.toString().includes("pt")?.376*t.split("pt")[0]:Number(25.4*t/96)}function tt(t,n,e,r,i,o,a,s,u,l,c){void 0===u&&(u=1),void 0===l&&(l=null),void 0===c&&(c=.3),"number"==typeof r&&(r+=""),null==r&&(r="");for(var p=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);p++){var f=(d=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,h=d.isNextLine,m=(p-1)*$(n)+$(o)+"mm",d=l||e/2*a+a+"pt";t.ADD_PRINT_TEXT(m,i,d,18,r.substr(0,f).replace(/^\s+|\s+$/,"")),r=h?r.substr(f+1):r.substr(f),t.SET_PRINT_STYLEA(0,"FontSize",a),t.SET_PRINT_STYLEA(0,"LineSpacing",-3),t.SET_PRINT_STYLEA(0,"LetterSpacing",c),t.SET_PRINT_STYLEA(0,"TextNeatRow",!0),t.SET_PRINT_STYLEA(0,"FontName",s),2===u?r.length<e&&t.SET_PRINT_STYLEA(0,"Alignment",2):1===u?t.SET_PRINT_STYLEA(0,"Alignment",1):3===u&&t.SET_PRINT_STYLEA(0,"Alignment",3)}}function nt(t){var n,e=t.data,r=t.top,o=void 0===r?0:r,a=void 0===(S=t.left)?0:S,l=t.showWindow,c=void 0!==l&&l,p=t.toolsType,h=t.licenses,m=void 0===h?"":h,d=t.company,x=void 0===d?"":d,g=t.getProjectLodop,v=void 0===g?Z:g,S=void 0===(r=t.isInitPrinter)?1:r;p=void 0===(l=t.printer)?"":l;function y(t,e,r){s(r)<=48?tt(n,"9pt",49,r,t,e,9,"宋体",1,"80mm"):s(r)<=62?tt(n,"7pt",60,r,t,e,7.5,"宋体",1,"84mm"):tt(n,"7pt",69,r,t,e,6.5,"宋体",1,"88mm")}a-=16,(h=v("","",m))&&(h.PRINT_INITA(o,a,"241.3mm","139.7mm",e.invoiceCode+" "+e.invoiceNo),h.SET_PRINT_PAGESIZE(1,"241.3mm","139.7mm",""),h.SET_SHOW_MODE("LANGUAGE",0),h.SET_LICENSES(x,m,"",""),0===S&&p&&h.SET_PRINTER_INDEXA(p),function(t,n){var e=n.invoiceType,r=n.invoiceCode,o=n.invoiceNo,a=n.amount,s=n.drewDate,u=n.checkCode,l="10";1===Number(e)?l="01":2===Number(e)?l="04":3===Number(e)?l="10":4===Number(e)&&(l="08");var c=new Date(s),p=c.getFullYear();e=(n=c.getMonth()+1).toString();1<=n&&n<=9&&(e="0"+n),c=(n=c.getDate()).toString(),0<=n&&n<=9&&(c="0"+n),c=s?""+p+e+c:"",u=(u="01,"+l+","+r+","+o+","+(a||0===a?Number(a).toFixed(2):a)+","+c+","+u)+","+i.ToCRC16(u,!0),t.ADD_PRINT_BARCODE("3.5mm","8.5mm","22.00mm","22.00mm","QRCode",u),t.SET_PRINT_STYLEA(0,"GroundColor","#FFFFFF"),t.SET_PRINT_STYLEA(0,"QRCodeVersion",5),t.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","L"),t.SET_PRINT_STYLEA(0,"DataCharset","GB2312")}(h,e),function(t,n){var e,r,i,o,a=n.invoiceCode,s=n.invoiceNo,u=n.drewDate,l=n.checkCode,c=(n.machineCode,n.invoiceStatus,n.status,n.invoiceType);(e=u)&&(r=(o=new Date(e)).getFullYear(),e=(i=o.getMonth()+1).toString(),1<=i&&i<=9&&(e="0"+i),o=(i=o.getDate()).toString(),tt(t,"9pt",42,r+"年"+e+"月"+(o=0<=i&&i<=9?"0"+i:o)+"日","175mm","18mm",9,"宋体")),function(n){if(!f(n=void 0===n?"":n)&&1!==Number(c)&&4!==Number(c)){tt(t,"9pt",8,"校验码","30mm","18mm",9,"宋体");for(var e=n.length/4,r=0;r<4;r++){var i=n.substr(0===r?0:e*r,e);tt(t,"9pt",6,i,42+10*r+"mm","18mm",9,"宋体")}}}(l),tt(t,"9pt",42,a,"178mm","8mm",8,"宋体",2,"38mm"),tt(t,"9pt",42,s,"178mm","13mm",11,"宋体",2,"38mm")}(h,e),n=h,g=(d=e).purchaserName,r=e.purchaserTaxNo,t=e.purchaserAddress,l=e.purchaserTel,v=e.purchaserBankName,o=e.purchaserBankAccount,a=e.sellerName,x=e.sellerTaxNo,m=e.sellerAddress,S=e.sellerTel,p=e.sellerBankName,d=e.sellerBankAccount,y("36mm","26mm",g),tt(n,"9pt",30,r,"39mm","31mm",12,"Courier New"),y("36mm","36mm",""+(t||"")+(l||"")),y("36mm","41mm",""+(v||"")+(o||"")),y("36mm","100mm",a),tt(n,"9pt",30,x,"39mm","105mm",12,"Courier New"),y("36mm","110mm",""+(m||"")+(S||"")),y("36mm","115mm",""+(p||"")+(d||"")),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=e.length/4,i=0;i<4;i++)tt(t,"9pt",36,e.substr(0===i?0:r*i,r),"126mm",26+5*i+"mm",12,"Courier New")}(h,e),function(t,n){var e,r,i,o,a=n.details,u=n.amount,l=n.taxAmount,c=(n.taxRate,n.listFlag),p=n.qdbz;function h(n,e,r,i){i?tt(t,"9pt",29,r,n,e,9,"宋体",0,"53mm"):s(r)<=31?tt(t,"9pt",32,r,n,e,9,"宋体",0,"53mm"):s(r)<=34?tt(t,"8pt",36,r,n,e,8,"宋体",0,"54mm"):s(r)<=40?tt(t,"7pt",42,r,n,e,7,"宋体",0,"54mm"):s(r)<=47?tt(t,"6pt",48,r,n,e,6,"宋体",0,"54mm"):(s(r),tt(t,"5.5pt",52,r,n,e,5.5,"宋体",0,"54mm"))}function m(n,e,r){s(r)<=14?tt(t,"9pt",15,r,n,e,9,"宋体",0,"26mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,7,"宋体",0,"26mm"):s(r)<=19?tt(t,"9pt",20,r,n,e,6.5,"宋体",0,"26mm"):tt(t,"4.5pt",22,r,n,e,5.5,"宋体",0,"26mm")}function d(n,e,r){s(r)<=7?tt(t,"9pt",8,r,n,e,9,"宋体",2):s(r)<=9?tt(t,"9pt",10,r,n,e,7,"宋体",2):s(r)<=11?tt(t,"9pt",12,r,n,e,6,"宋体",2):s(r)<=13?tt(t,"9pt",14,r,n,e,5,"宋体",2):s(r)<=17?tt(t,"9pt",18,r,n,e,4,"宋体",2):tt(t,"5pt",18,r,n,e,4,"宋体",2)}function x(n,e,r){s(r)<=9?tt(t,"9pt",11,r,n,e,9,"宋体",3,"20mm"):s(r)<=12?tt(t,"9pt",13,r,n,e,7,"宋体",3,"20mm"):s(r)<=14?tt(t,"9pt",15,r,n,e,7,"宋体",3,"20mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,6,"宋体",3,"20mm"):tt(t,"6pt",17,r,n,e,6,"宋体",3,"20mm")}function g(n,e,r){s(r)<=9?tt(t,"9pt",11,r,n,e,9,"宋体",3,"22mm"):s(r)<=12?tt(t,"9pt",13,r,n,e,8,"宋体",3,"22mm"):s(r)<=14?tt(t,"9pt",15,r,n,e,7,"宋体",3,"22mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,6,"宋体",3,"22mm"):tt(t,"6pt",17,r,n,e,6,"宋体",3,"22mm")}function v(n,e,r){r=r||0===r?Number(r).toFixed(2):r,tt(t,"9pt",18,r,n,e,9,"宋体",3,"28mm")}function S(n,e,r,i){i&&(0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="免税":0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="不征税":"number"==typeof r&&(r=100*r+"%")),s(r)<=5?tt(t,"9pt",6,r,n,e,9,"宋体",3,"12mm",1):s(r)<=6?tt(t,"8pt",7,r,n,e,8,"宋体",3,"12mm",1):s(r)<=7?tt(t,"7pt",8,r,n,e,7,"宋体",3,"12mm",1):(s(r),tt(t,"6pt",9,r,n,e,6,"宋体",3,"12mm",1))}function y(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":Number(r).toFixed(2),tt(t,"9pt",18,r,n,e,9,"宋体",3,"28mm")}1===c||8<a.length||1===p?(h("7mm","52mm",0<=u?"(详见销货清单)":"详见对应正数发票及清单"),v("134mm","52mm",u),function(t){var n,e=[];t.details.forEach((function(r,i){n=0===r.taxPre&&1===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"免税":0===r.taxPre&&2===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"不征税":"number"==typeof r.taxRate?100*r.taxRate+"%":r.taxRate,e.includes(n)||e.push(n)})),1===e.length?S("162mm","52mm",e[0],""):2===e.length&&e.includes("免税")&&e.includes("不征税")&&S("162mm","52mm","零税率","")}(n),function(n){var e;f(n.taxAmount)?e=n.taxAmount.toFixed(2):"number"==typeof n.taxAmount&&(e=0===n.taxAmount?"***":n.taxAmount.toFixed(2)),tt(t,"9pt",18,e,"175mm","52mm",9,"宋体",3,"28mm")}(n)):(e=function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e},o=i=r=0,a.forEach((function(t,n){r+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/28)})),a.forEach((function(t,n){var a,s;r<=8?(0!==n&&(o=3.5*i),i+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/28),h("6mm",52+o+"mm",""+(t.shortName||"")+t.goodsName,"newSize"),m("57mm",52+o+"mm",t.specification),d("80mm",52+o+"mm",t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),x("92mm",52+o+"mm",13<a.length?a.substr(0,13):a),g("112mm",52+o+"mm",13<s.length?s.substr(0,13):s)),v("134mm",52+o+"mm",t.amount),S("162mm",52+o+"mm",t.taxRate,t),y("175mm",52+o+"mm",t.taxAmount,t)):(h("6mm",52+4*n+"mm",""+(t.shortName||"")+t.goodsName),m("57mm",52+4*n+"mm",t.specification),d("80mm",52+4*n+"mm",t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),x("92mm",52+4*n+"mm",13<a.length?a.substr(0,13):a),g("112mm",52+4*n+"mm",13<s.length?s.substr(0,13):s)),v("134mm",52+4*n+"mm",t.amount),S("162mm",52+4*n+"mm",t.taxRate,t),y("175mm",52+4*n+"mm",t.taxAmount,t))}))),n="134mm",a="86mm",u=(u=u)||0===u?Number(u).toFixed(2):u,tt(t,"9pt",18,"¥"+u,n,a,9,"Courier New",3,"28mm"),""!==(l=f(l)?"":0===l?"***":l)&&"***"!==l&&(l="¥"+(l=l||0===l?Number(l).toFixed(2):l)),tt(t,"9pt",18,l,"175mm","86mm",9,"Courier New",3,"28mm")}(h,e),function(t,n){var e,r,i=n.amountWithTax;r="60mm",e="94.2mm",n="4mm",t.ADD_PRINT_ELLIPSE($(e)-$(n)/2+"mm",$(r)-$(n)/2+"mm",n,n,0,1),n=Math.sqrt($(n)/2),t.ADD_PRINT_LINE($(e)-n+"mm",$(r)-n+"mm",$(e)+n+"mm",$(r)+n+"mm",0,1),t.ADD_PRINT_LINE($(e)-n+"mm",$(r)+n+"mm",$(e)+n+"mm",$(r)-n+"mm",0,1),e="63mm",r="93mm",tt(t,"9pt",56,n=0<(n=i)?u(n).replace("元","圆"):"(负数)"+u(Math.abs(n)).replace("元","圆"),e,r,9,"宋体",0,"96mm"),tt(t,"9pt",56,"¥"+(i=i||0===i?Number(i).toFixed(2):i),"168mm","93mm",11,"Courier New",0,"37mm")}(h,e),m=(m=e).remark,tt(h,"9pt",50,(m=f(m)?"":m).replace(/\\r\\n/g,"\n")||"","126mm","100mm",9,"宋体"),S=h,d=(p=e).payee,m=e.reviewer,p=e.drawer,tt(S,"9pt",50,d,"22mm","121mm",9,"宋体"),tt(S,"9pt",50,m,"74mm","121mm",9,"宋体"),tt(S,"9pt",50,p,"121mm","121mm",9,"宋体"),function(t,n){n.invoiceStatus,n.status;var e=n.amountWithTax,r=n.amount;e<0&&r<0&&tt(t,"9pt",42,"销项负数","30mm","14mm",9,"黑体"),1===n.specialFlag&&tt(t,"9pt",42,"成品油","30mm","10mm",9,"黑体"),3===n.specialFlag&&tt(t,"9pt",42,"机动车","30mm","10mm",9,"黑体")}(h,e),c?h.PREVIEW():h.PRINT())}var et={0:"类型异常",1:"增值税专用发票",2:"增值税普通发票",3:"增值税电子发票"},rt=function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))},it=function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function ot(t){return t.toString().includes("mm")?Number(t.split("mm")[0]):t.toString().includes("pt")?.376*t.split("pt")[0]:Number(25.4*t/96)}function at(t,n,e,r,i,o,a,s,u,l){void 0===u&&(u=1),void 0===l&&(l=null),"number"==typeof r&&(r+=""),null==r&&(r="");for(var c=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);c++){var p=(m=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,f=m.isNextLine,h=(c-1)*ot(n)+ot(o)+"mm",m=l||e/2*a+a+"pt";t.ADD_PRINT_TEXT(h,i,m,18,r.substr(0,p).replace(/^\s+|\s+$/,"")),r=f?r.substr(p+1):r.substr(p),t.SET_PRINT_STYLEA(0,"FontSize",a),t.SET_PRINT_STYLEA(0,"LineSpacing",-3),t.SET_PRINT_STYLEA(0,"TextNeatRow",!0),t.SET_PRINT_STYLEA(0,"FontName",s),2===u?r.length<e&&t.SET_PRINT_STYLEA(0,"Alignment",2):1===u?t.SET_PRINT_STYLEA(0,"Alignment",1):3===u&&t.SET_PRINT_STYLEA(0,"Alignment",3)}}function st(t){var n=t.data,e=t.top,r=void 0===e?0:e,i=void 0===(e=t.left)?0:e,o=void 0!==(e=t.showWindow)&&e,a=void 0===(e=t.licenses)?"":e,s=void 0===(e=t.company)?"":e,u=void 0===(e=t.getProjectLodop)?Z:e,l=void 0===(e=t.isInitPrinter)?1:e,c=void 0===(t=t.printer)?"":t;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(e){return(t=u("","",a))&&(t.PRINT_INITA(r,i,"80mm","100mm","开票二维码"),t.SET_PRINT_PAGESIZE(1,"80mm","100mm",""),t.SET_SHOW_MODE("LANGUAGE",0),t.SET_LICENSES(s,a,"",""),0===l&&c&&t.SET_PRINTER_INDEXA(c),at(t,"10pt",28,n.sellerName,"3mm","5mm",10,"宋体",2),at(t,"9pt",40,"二维码有限期为15天,请及时开票!","4mm","15mm",7,"宋体",2),at(t,"9pt",40,"开票金额:","5mm","70mm",7,"宋体",1),at(t,"9pt",32,n.amountWithTax+"元","5mm","70mm",8,"宋体",3),at(t,"9pt",40,"订单编号:","5mm","75mm",7,"宋体",1),at(t,"9pt",32,""+n.orderCode,"10mm","75mm",7,"宋体",3),at(t,"9pt",40,"生成时间:","5mm","80mm",7,"宋体",1),at(t,"9pt",32,""+n.createTime,"10mm","80mm",7,"宋体",3),(p=t).ADD_PRINT_BARCODE("20mm","7mm","60.00mm","60.00mm","QRCode",""+n.url),p.SET_PRINT_STYLEA(0,"GroundColor","#FFFFFF"),p.SET_PRINT_STYLEA(0,"QRCodeVersion",10),p.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","L"),p.SET_PRINT_STYLEA(0,"DataCharset","GB2312"),o?t.PREVIEW():t.PRINT()),[2];var p}))}))}function ut(t){var n,e,r,i,o,a,s,u,l,c;e=(n=t).data,t=n.top,r=void 0===t?0:t,t=n.left,i=void 0===t?0:t,t=n.showWindow,o=void 0!==t&&t,t=n.licenses,a=void 0===t?"":t,t=n.company,s=void 0===t?"":t,t=n.getProjectLodop,u=void 0===t?Z:t,t=n.isInitPrinter,l=void 0===t?1:t,n=n.printer,c=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(p){switch(p.label){case 0:t="",p.label=1;case 1:return p.trys.push([1,3,,4]),[4,H({data:e})];case 2:return t=p.sent(),[3,4];case 3:return p.sent(),[3,4];case 4:return(n=u("","",a))?(n.PRINT_INITA(r,i,"210mm","297mm",e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(1,"210mm","297mm",""),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(s,a,"",""),0===l&&c&&n.SET_PRINTER_INDEXA(c),n.ADD_PRINT_IMAGE(0,0,"100%","100%",t),n.SET_PRINT_STYLEA(0,"Stretch",2),o?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function lt(t){var n,e,r,i,o,a,s,u;e=(n=t).data,n.top,n.left,t=n.showWindow,r=void 0!==t&&t,t=n.licenses,i=void 0===t?"":t,t=n.company,o=void 0===t?"":t,t=n.getProjectLodop,a=void 0===t?Z:t,t=n.isInitPrinter,s=void 0===t?1:t,n=n.printer,u=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(l){switch(l.label){case 0:t="",l.label=1;case 1:return l.trys.push([1,3,,4]),[4,b({data:e,showSample:!1})];case 2:return t=l.sent(),[3,4];case 3:return l.sent(),[3,4];case 4:return(n=a("","",i))?(n.PRINT_INIT(e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(2,0,0,"A4"),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(o,i,"",""),0===s&&u&&n.SET_PRINTER_INDEXA(u),n.ADD_PRINT_IMAGE(0,0,"200mm","133.2mm",t),n.SET_PRINT_STYLEA(0,"Stretch",1),n.SET_PRINT_STYLEA(0,"Horient",2),r?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function ct(t){var n,e,r,i,o,a,s,u,l,c;e=(n=t).data,t=n.top,r=void 0===t?0:t,t=n.left,i=void 0===t?0:t,t=n.showWindow,o=void 0!==t&&t,t=n.licenses,a=void 0===t?"":t,t=n.company,s=void 0===t?"":t,t=n.getProjectLodop,u=void 0===t?Z:t,t=n.isInitPrinter,l=void 0===t?1:t,n=n.printer,c=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(p){switch(p.label){case 0:t="",p.label=1;case 1:return p.trys.push([1,3,,4]),[4,G({data:e})];case 2:return t=p.sent(),[3,4];case 3:return p.sent(),[3,4];case 4:return(n=u("","",a))?(n.PRINT_INITA(r,i,"297mm","210mm",e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(2,"210mm","297mm",""),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(s,a,"",""),0===l&&c&&n.SET_PRINTER_INDEXA(c),n.ADD_PRINT_IMAGE(0,0,"100%","100%",t),n.SET_PRINT_STYLEA(0,"Stretch",2),o?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function pt(t){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ft=function(){return(ft=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},ht=function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))},mt=function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},dt=function(t,n){var e={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(e[i[r]]=t[i[r]]);return e};xt.prototype.getInvoiceSample=function(t){var n=!0,e="bottom";t&&"object"===pt(t)&&(n=t.showSample,e=t.samplePosition);try{return b({data:this.invoiceData,showSample:n,samplePosition:e})}catch(t){}},xt.prototype.getMotorVehicleInvoiceSample=function(t){var n=!0;t&&"object"===pt(t)&&(n=t.showSample);try{return N({data:this.invoiceData,showSample:n})}catch(t){}},xt.prototype.getInvoiceListSample=function(){try{return t=this.invoiceData,(n=function(t,n){for(var e=0,r=[];e<t.length;)r.push(t.slice(e,e+=26));return r}(t.details)).map((function(e,r){var i=0,o=0,a=0,s=0;return e.forEach((function(t){1===t.invoiceLineType?(a=l.add(a,t.amount),s=l.add(s,t.taxAmount)):(i=l.add(i,t.amount),o=l.add(o,t.taxAmount))})),R(P(P({},t),{details:e,invoiceListTotalCount:n.length,invoiceListCurrent:r+1,subtotalAmount:i.toFixed(2),subtotalTaxAmount:o.toFixed(2),discountAmount:a.toFixed(2),discountTaxAmount:s.toFixed(2)}))}))}catch(t){}var t,n},xt.prototype.getFullElectricity=function(t){var n=!0,e="bottom";t&&"object"===pt(t)&&(n=t.showSample,e=t.samplePosition);try{return function(t){var n=t.data,e=(t.showSample,t.samplePosition),r=document.createElement("canvas");if(r.getContext){var o=r.getContext("2d");return function(t,n,e){var r=t.invoiceType,o=t.invoiceCode,a=t.invoiceNo,s=t.amount,u=t.drewDate,l=t.checkCode,c="10";1===Number(r)?c="01":2===Number(r)?c="04":3===Number(r)?c="10":4===Number(r)&&(c="08");var p=new Date(u),f=p.getFullYear();r=(t=p.getMonth()+1).toString();1<=t&&t<=9&&(r="0"+t),p=(t=p.getDate()).toString(),0<=t&&t<=9&&(p="0"+t),p=u?""+f+r+p:"",p="01,"+c+","+o+","+a+","+(s||0===s?Number(s).toFixed(2):s)+","+p+","+l+",",l=i.ToCRC16(p,!0),g.a.toCanvas(n,p+l+",",{errorCorrectionLevel:"M",margin:0,width:113},(function(t){}))}(n,r),t=o.getImageData(0,0,113,113),r.width=1192,r.height=794,o.fillStyle="#fff",o.fillRect(0,0,1192,794),o.putImageData(t,48,20),T({startX:26,startY:170,ctx:e=o,points:[{pointX:1164,pointY:170},{pointX:1164,pointY:702},{pointX:26,pointY:702},{pointX:26,pointY:170}],lineWidth:1,color:"#800000"}),T({startX:388,startY:100,ctx:e,points:[{pointX:801,pointY:100}],lineWidth:1,color:"#800000"}),T({startX:388,startY:104,ctx:e,points:[{pointX:801,pointY:104}],lineWidth:1,color:"#800000"}),T({startX:26,startY:294,ctx:e,points:[{pointX:1164,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:26,startY:544,ctx:e,points:[{pointX:1164,pointY:544}],lineWidth:1,color:"#800000"}),T({startX:26,startY:590,ctx:e,points:[{pointX:1164,pointY:590}],lineWidth:1,color:"#800000"}),T({startX:72,startY:170,ctx:e,points:[{pointX:72,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:608,startY:170,ctx:e,points:[{pointX:608,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:652,startY:170,ctx:e,points:[{pointX:652,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:72,startY:590,ctx:e,points:[{pointX:72,pointY:702}],lineWidth:1,color:"#800000"}),t=o,o=(e=n).invoiceType,n=e.invoiceCode,e="",e=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),e=(n=(n=x(e,d,"taxOfficeCode","title")||"")===e?"":n)+"增值税电子普通发票",1===Number(o)?e=n+"增值税专用发票":2===Number(o)?e=n+"增值税普通发票":4===Number(o)&&(e=n+"增值税电子专用发票"),A(t,18,30,e,596,38,"#9C5223","normal 38px KaiTi",1),A(t,18,30,"发票号码:",860,55,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"开票日期:",860,100,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"购",40,183,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"买",40,203,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"方",40,223,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"信",40,243,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"息",40,263,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"名称:",80,210,"#9C5223","normal 18px KaiTi",0),A(t,18,32,"统一社会信用代码/纳税人识别号:",80,240,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"名称:",660,210,"#9C5223","normal 18px KaiTi",0),A(t,18,32,"统一社会信用代码/纳税人识别号:",660,240,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"销",620,183,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"售",620,203,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"方",620,223,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"信",620,243,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"息",620,263,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"项目名称",132,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"规格型号",358,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"单位",484,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"数 量",570,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"单 价",684,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"金 额",828,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"税率",948,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"税 额",1058,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"合 计",134,520,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"价税合计(大写)",106,560,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"(小写)",864,560,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"备",40,620,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"注",40,660,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"开票人:",126,710,"#9C5223","normal 18px KaiTi",0),w(r.toDataURL("image/png",.92),300)}}({data:this.invoiceData,showSample:n,samplePosition:e})}catch(t){}},xt.prototype.getCustomsDeclarationFormSample=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,B({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.getCustomsPaymentLetterSample=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,K({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createInvoiceQrCode=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,U({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createRedLetterNotice=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,H({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createExpressDeliveryCode=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,G({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.printInvoice=function(t){var n=t.licenses;t=dt(t,["licenses"]);nt(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceList=function(t){var n=t.licenses;t=dt(t,["licenses"]);!function(t){!function(t){var n,e=t.data,r=void 0===(c=t.top)?0:c,i=void 0===(u=t.left)?0:u,o=void 0===(f=t.width)?"210mm":f,a=void 0===(l=t.height)?"297mm":l,s=void 0!==(p=t.showWindow)&&p,u=void 0===(c=t.invoiceListFieldMapping)?{invoiceList:[]}:c,l=void 0===(f=t.licenses)?"":f,c=void 0===(p=t.company)?"":p,p=void 0===(f=t.getProjectLodop)?Z:f,f=void 0===(f=t.isInitPrinter)?1:f,m=(t=void 0===(t=t.printer)?"":t,[]),d=0,x=0,g=[];u.invoiceList&&(g=u.invoiceList),n=0<g.length?(S=g.length,d=Number(h(70/(7+S),2)),x=Number(h(84/(7+S),2)),Number(h(54/(7+S),2))):(d=10,x=12,8),e.details.forEach((function(t){1===t.invoiceLineType&&m.push(t)}));var v,S=document.createElement("div");S.innerHTML='<table border=0 width="700" cellspacing="0" cellpadding="0" style="border-collapse:collapse" bordercolor="#000000">\n <thead>\n <tr>\n <td colspan="'+(9+g.length)+'" height="50px;"></td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" style="font-size: 24px;font-weight: bold;text-align: center;">销售货物或者提供应税劳务、服务清单</td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="20px;"></td>\n </tr>\n <tr>\n <td border=1 colspan="'+(9+g.length)+'" style="text-align: left;">\n <span style="font-size: 14px;">购买方名称:</span>\n '+(e.purchaserName&&26<e.purchaserName.length?'<span style="font-size: 12px;">'+e.purchaserName+"</span>":'<span style="font-size: 14px;">'+e.purchaserName+"</span>")+'\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="15px;"></td>\n </tr>\n <tr>\n <td border=1 colspan="'+(9+g.length)+'" style="text-align: left;">\n <span style="font-size: 14px;">销售方名称:</span>\n '+(e.sellerName&&26<e.sellerName.length?'<span style="font-size: 12px;">'+e.sellerName+"</span>":'<span style="font-size: 14px;">'+e.sellerName+"</span>")+'\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="15px;"></td>\n </tr>\n <tr>\n <td colspan="'+(6+g.length/2)+'" style="text-align: left;font-size: 14px;">\n 所属增值税'+(1===Number(e.invoiceType)?"专用":2===Number(e.invoiceType)?"普通":3===Number(e.invoiceType)?"电子普通":"电子专用")+"发票代码:"+e.invoiceCode+'\n <span style="margin-left: 10px;">号码:'+e.invoiceNo+'</span>\n </td>\n <td width="100%" colspan="'+(3+g.length/2)+'" tindex="1" style="text-align: right;font-size: 14px;">\n 共<span style="margin: 0px 10px;"><font tdata="PageCount">##</font></span>页\n <span style="margin-left: 10px;">第<span style="margin: 0px 10px;"><font tdata="PageNO">##</font></span>页</span>\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n <tr>\n <td width="7%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">序号</td>\n <td width="23%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">货物(劳务)名称</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">规格型号</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">单位</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">数量</td>\n <td width="'+x+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">单价</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">金额</td>\n <td width="'+n+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">税率</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">税额</td>\n '+g.map((function(t,n){return'<td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">'+t.displayName+"</td>"}))+"\n </tr>\n </thead>\n "+e.details.map((function(t,r){var i,o,a=t.goodsName,s=(a=t.shortName+a)&&a.length<14?"12px":a&&a.length<23?"10px":"8px",u="12px",l="12px",c="12px",p="12px";1!==t.discountFlag&&(u=t.specification&&t.specification.length<9?"12px":t.specification&&t.specification.length<17?"10px":"8px",l=t.unit&&t.unit.length<3?"12px":t.unit&&t.unit.length<5?"10px":"8px",o=0===t.quantity&&0===t.unitPrice?i="":0!==t.quantity&&0===t.unitPrice?(i=t.quantity,t.unitPrice.toFixed(2)):(i=t.quantity,t.unitPrice&&String(t.unitPrice).slice(0,13)),c=i&&JSON.stringify(i).length<9?"12px":i&&JSON.stringify(i).length<23?"10px":"8px",p=o&&JSON.stringify(o).length<12?"12px":o&&JSON.stringify(o).length<23?"10px":"8px");var f=t.amount&&Number(t.amount).toFixed(2),h=(f=f.toString())&&JSON.stringify(f).length<15?"12px":f&&JSON.stringify(f).length<23?"10px":"8px",m=0===t.taxPre&&1===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)?"免税":0===t.taxPre&&2===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)?"不征税":"number"==typeof t.taxRate?100*t.taxRate+"%":t.taxRate,v=0===t.taxPre&&1===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)||0===t.taxPre&&2===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)||0===t.taxAmount?"***":t.taxAmount&&Number(t.taxAmount).toFixed(2),S=(v=v.toString())&&JSON.stringify(v).length<15?"12px":v&&JSON.stringify(v).length<23?"10px":"8px",y="";return g.forEach((function(n){var r="";"mainFields"===n.source?(r=e[n.fieldName],"invoiceType"===n.sourceFieldName&&(r=et[r]||"")):r=t[n.fieldName],y+='<td width="'+d+'%" height="30px;" style="height: 30px;text-align: left;border-right: 1px solid #000;font-size: 12px;table-layout:fixed;word-break:break-all;word-wrap:break-word;border-collapse:collapse;">\n '+r+"\n </td>"})),'<tr>\n <td width="7%" style="height: 30px;font-size: 12px;text-align: center;border-left: 1px solid #000;border-right: 1px solid #000;">'+(r+1)+'</td>\n <td width="23%" style="height: 30px;border-right: 1px solid #000;font-size: '+s+';">'+a+'</td>\n <td width="'+d+'%" style="height: 30px;border-right: 1px solid #000;font-size: '+u+';">'+t.specification+'</td>\n <td width="'+d+'%" style="height: 30px;text-align: center;border-right: 1px solid #000;font-size: '+l+';">'+t.unit+'</td>\n <td width="'+d+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+c+';padding-right: 2px;">'+i+'</td>\n <td width="'+x+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+p+';padding-right: 2px;">'+o+'</td>\n <td width="'+d+'%" tclass="'+(1===t.invoiceLineType?"discountTemporaryAmount":"temporaryAmount")+'" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+h+';padding-right: 2px;">'+f+'</td>\n <td width="'+n+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;padding-right: 2px;font-size: 12px;">'+m+'</td>\n <td width="'+d+'%" tclass="'+(1===t.invoiceLineType?"discountTemporaryTax":"temporaryTax")+'" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+S+';padding-right: 2px;">'+v+"</td>\n "+y+"\n </tr>"}))+'\n <tfoot>\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">小计</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id01">#########</font></td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id01">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+"\n </tr>\n "+(m.length?'\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">折扣</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font tclass="discountTemporaryAmount">#########</font></td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font tclass="discountTemporaryTax">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+"\n </tr>\n ":"")+'\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">合计</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="AllSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;">\n <font id="id02" >###########</font>\n </td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="AllSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id02">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+'\n </tr>\n <tr>\n <td width="7%" align="center" style="height:50px;border: 1px solid #000;font-size: 12px;">备注</td>\n <td colspan="'+(8+g.length)+'" style="height:50px;border: 1px solid #000;">'+((v=e.remark&&e.remark.replace(/\\r\\n/g,"\n")||"")&&v.length<=50?'<span style="font-size: 14px;">'+v+"</span>":v&&50<v.length&&v.length<100?'<span style="font-size: 12px;">'+v+"</span>":v?'<span style="font-size: 10px;">'+v+"</span>":"")+'</td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(6+g.length/2)+'" style="font-size: 14px;">销货单位(章):</td>\n <td width="100%" colspan="'+(3+g.length/2)+'" style="font-size: 14px;">开票日期:'+function(t){if(t){var n=new Date(t),e=n.getFullYear(),r=n.getMonth()+1;t=r.toString();return 1<=r&&r<=9&&(t="0"+r),r=n.getDate(),n=r.toString(),e+"年"+t+"月"+(n=0<=r&&r<=9?"0"+r:n)+"日"}}(e.drewDate)+'</td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n \n </tfoot>\n </table>',(p=p("","",l)).PRINT_INITA(r,i,o,a,e.invoiceCode+" "+e.invoiceNo),"210mm"===o&&"297mm"===a?p.SET_PRINT_PAGESIZE(1,0,0,"A4"):p.SET_PRINT_PAGESIZE(1,o,a,""),p.SET_SHOW_MODE("LANGUAGE",0),p.SET_LICENSES(c,l,"",""),p.ADD_PRINT_TABLE(0,"5%","90%","BottomMargin:30mm",S.innerHTML),0===f&&t&&p.SET_PRINTER_INDEXA(t),s?p.PREVIEW():p.PRINT()}(t)}(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printCustomsDeclaration=function(t){var n=t.licenses;t=dt(t,["licenses"]);(function(t){var n=t.data,e=t.top,r=void 0===e?0:e,i=void 0===(e=t.left)?0:e,o=void 0!==(e=t.showWindow)&&e,a=void 0===(e=t.licenses)?"":e,s=void 0===(e=t.company)?"":e,u=void 0===(e=t.getProjectLodop)?Z:e,l=void 0===(e=t.isInitPrinter)?1:e,c=void 0===(t=t.printer)?"":t;rt(void 0,void 0,void 0,(function(){var t,e;return it(this,(function(p){switch(p.label){case 0:t=[],p.label=1;case 1:return p.trys.push([1,7,,8]),[4,B({data:n})];case 2:t=p.sent(),e=0,p.label=3;case 3:return e<t.length?[4,function(t,n){var e,r=t.data,i=void 0===(e=t.top)?0:e,o=void 0===(e=t.left)?0:e,a=void 0!==(e=t.showWindow)&&e,s=void 0===(e=t.licenses)?"":e,u=void 0===(e=t.company)?"":e,l=void 0===(e=t.getProjectLodop)?Z:e,c=void 0===(e=t.isInitPrinter)?1:e,p=void 0===(t=t.printer)?"":t;return rt(this,void 0,void 0,(function(){var t;return it(this,(function(e){return(t=l("","",s))&&(t.PRINT_INITA(i,o,"297mm","210mm",r.invoiceCode+" "+r.invoiceNo),t.SET_PRINT_PAGESIZE(2,"210mm","297mm",""),t.SET_SHOW_MODE("LANGUAGE",0),t.SET_LICENSES(u,s,"",""),0===c&&p&&t.SET_PRINTER_INDEXA(p),t.ADD_PRINT_IMAGE(0,0,"100%","100%",n),t.SET_PRINT_STYLEA(0,"Stretch",2),a?t.PREVIEW():t.PRINT()),[2]}))}))}({data:n,top:r,left:i,showWindow:o,licenses:a,company:s,getProjectLodop:u,isInitPrinter:l,printer:c},t[e])]:[3,6];case 4:p.sent(),p.label=5;case 5:return e++,[3,3];case 6:return[3,8];case 7:return p.sent(),[3,8];case 8:return[2]}}))}))})(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printExpressDeliveryCode=function(t){var n=t.licenses;t=dt(t,["licenses"]);ct(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceQrCode=function(t){var n=t.licenses;t=dt(t,["licenses"]);st(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printRedLetterNotice=function(t){var n=t.licenses;t=dt(t,["licenses"]);ut(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceSample=function(t){var n=t.licenses;t=dt(t,["licenses"]);lt(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.initLodop=function(t){var n,e=t.targetAddress,r=void 0===e?"localhost":e;V()&&(n="http://"+r+":8000/CLodopfuncs.js?priority=1",t="http://"+r+":18000/CLodopfuncs.js?priority=0",e=document.head||document.getElementsByTagName("head")[0]||document.documentElement,(r=document.createElement("script")).src=n,e.insertBefore(r,e.firstChild),(r=document.createElement("script")).src=t,e.insertBefore(r,e.firstChild),t=!!(n+t).match(/\/\/localho|\/\/127.0.0./i),this.CLodopIsLocal=t)},e=xt;function xt(t){this.getLodop=null,t=((this.needCLodop=null)==t?void 0:t.data)||{},this.invoiceData=t,this.getInvoiceSample=this.getInvoiceSample.bind(this),this.getMotorVehicleInvoiceSample=this.getMotorVehicleInvoiceSample.bind(this),this.getInvoiceListSample=this.getInvoiceListSample.bind(this),this.getCustomsDeclarationFormSample=this.getCustomsDeclarationFormSample.bind(this),this.getCustomsPaymentLetterSample=this.getCustomsPaymentLetterSample.bind(this),this.createInvoiceQrCode=this.createInvoiceQrCode.bind(this),this.createRedLetterNotice=this.createRedLetterNotice.bind(this),this.createExpressDeliveryCode=this.createExpressDeliveryCode.bind(this),this.printInvoice=this.printInvoice.bind(this),this.printInvoiceList=this.printInvoiceList.bind(this),this.printCustomsDeclaration=this.printCustomsDeclaration.bind(this),this.printInvoiceQrCode=this.printInvoiceQrCode.bind(this),this.printRedLetterNotice=this.printRedLetterNotice.bind(this),this.printInvoiceSample=this.printInvoiceSample.bind(this),this.printExpressDeliveryCode=this.printExpressDeliveryCode.bind(this),this.initLodop=this.initLodop.bind(this),this.getLodop=Z,this.needCLodop=V}n.default=e}],e={},t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(r,i,function(t){return n[t]}.bind(null,i));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t.p="",t(t.s=159).default;function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,e}));
10
+ n.read=function(t,n,e,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,l=u>>1,c=-7,p=e?i-1:0,f=e?-1:1;e=t[n+p];for(p+=f,o=e&(1<<-c)-1,e>>=-c,c+=s;0<c;o=256*o+t[n+p],p+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;0<c;a=256*a+t[n+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(e?-1:1);a+=Math.pow(2,r),o-=l}return(e?-1:1)*a*Math.pow(2,o-r)},n.write=function(t,n,e,r,i,o){var a,s,u=8*o-i-1,l=(1<<u)-1,c=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,h=r?1:-1;o=n<0||0===n&&1/n<0?1:0;for(n=Math.abs(n),isNaN(n)||n===1/0?(s=isNaN(n)?1:0,a=l):(a=Math.floor(Math.log(n)/Math.LN2),n*(r=Math.pow(2,-a))<1&&(a--,r*=2),2<=(n+=1<=a+c?p/r:p*Math.pow(2,1-c))*r&&(a++,r/=2),l<=a+c?(s=0,a=l):1<=a+c?(s=(n*r-1)*Math.pow(2,i),a+=c):(s=n*Math.pow(2,c-1)*Math.pow(2,i),a=0));8<=i;t[e+f]=255&s,f+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;0<u;t[e+f]=255&a,f+=h,a/=256,u-=8);t[e+f-h]|=128*o}},function(t,n){var e={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==e.call(t)}},function(t,n,e){var r=e(26),i=e(85),o=e(65),a=e(27),s=e(86),u=e(64),l=r.getBCHDigit(7973);function c(t,n){return a.getCharCountIndicator(t,n)+4}n.from=function(t,n){return s.isValid(t)?parseInt(t,10):n},n.getCapacity=function(t,n,e){if(!s.isValid(t))throw new Error("Invalid QR Code version");if(void 0===e&&(e=a.BYTE),n=8*(r.getSymbolTotalCodewords(t)-i.getTotalCodewordsCount(t,n)),e===a.MIXED)return n;var o=n-c(e,t);switch(e){case a.NUMERIC:return Math.floor(o/10*3);case a.ALPHANUMERIC:return Math.floor(o/11*2);case a.KANJI:return Math.floor(o/13);default:return a.BYTE,Math.floor(o/8)}},n.getBestVersionForData=function(t,e){var r;e=o.from(e,o.M);if(u(t)){if(1<t.length)return function(t,e){for(var r=1;r<=40;r++)if(function(t,n){var e=0;return t.forEach((function(t){var r=c(t.mode,n);e+=r+t.getBitsLength()})),e}(t,r)<=n.getCapacity(r,e,a.MIXED))return r}(t,e);if(0===t.length)return 1;r=t[0]}else r=t;return function(t,e,r){for(var i=1;i<=40;i++)if(e<=n.getCapacity(i,r,t))return i}(r.mode,r.getLength(),e)},n.getEncodedBits=function(t){if(!s.isValid(t)||t<7)throw new Error("Invalid QR Code version");for(var n=t<<12;0<=r.getBCHDigit(n)-l;)n^=7973<<r.getBCHDigit(n)-l;return t<<12|n}},function(t,n,e){var r=e(26),i=r.getBCHDigit(1335);n.getEncodedBits=function(t,n){for(var e=(n=t.bit<<3|n)<<10;0<=r.getBCHDigit(e)-i;)e^=1335<<r.getBCHDigit(e)-i;return 21522^(n<<10|e)}},function(t,n,e){var r=e(27),i=e(147),o=e(148),a=e(149),s=e(150),u=e(87),l=e(26),c=e(151);function p(t){return unescape(encodeURIComponent(t)).length}function f(t,n,e){for(var r,i=[];null!==(r=t.exec(e));)i.push({data:r[0],index:r.index,mode:n,length:r[0].length});return i}function h(t){var n,e=f(u.NUMERIC,r.NUMERIC,t),i=f(u.ALPHANUMERIC,r.ALPHANUMERIC,t);t=l.isKanjiModeEnabled()?(n=f(u.BYTE,r.BYTE,t),f(u.KANJI,r.KANJI,t)):(n=f(u.BYTE_KANJI,r.BYTE,t),[]);return e.concat(i,n,t).sort((function(t,n){return t.index-n.index})).map((function(t){return{data:t.data,mode:t.mode,length:t.length}}))}function m(t,n){switch(n){case r.NUMERIC:return i.getBitsLength(t);case r.ALPHANUMERIC:return o.getBitsLength(t);case r.KANJI:return s.getBitsLength(t);case r.BYTE:return a.getBitsLength(t)}}function d(t,n){var e=r.getBestModeForData(t);if((n=r.from(n,e))!==r.BYTE&&n.bit<e.bit)throw new Error('"'+t+'" cannot be encoded with mode '+r.toString(n)+".\n Suggested mode is: "+r.toString(e));switch(n=n!==r.KANJI||l.isKanjiModeEnabled()?n:r.BYTE){case r.NUMERIC:return new i(t);case r.ALPHANUMERIC:return new o(t);case r.KANJI:return new s(t);case r.BYTE:return new a(t)}}n.fromArray=function(t){return t.reduce((function(t,n){return"string"==typeof n?t.push(d(n,null)):n.data&&t.push(d(n.data,n.mode)),t}),[])},n.fromString=function(t,e){for(var i=function(t,n){for(var e={},i={start:{}},o=["start"],a=0;a<t.length;a++){for(var s=t[a],u=[],l=0;l<s.length;l++){var c=s[l],p=""+a+l;u.push(p),e[p]={node:c,lastCount:0},i[p]={};for(var f=0;f<o.length;f++){var h=o[f];e[h]&&e[h].node.mode===c.mode?(i[h][p]=m(e[h].lastCount+c.length,c.mode)-m(e[h].lastCount,c.mode),e[h].lastCount+=c.length):(e[h]&&(e[h].lastCount=c.length),i[h][p]=m(c.length,c.mode)+4+r.getCharCountIndicator(c.mode,n))}}o=u}for(f=0;f<o.length;f++)i[o[f]].end=0;return{map:i,table:e}}(function(t){for(var n=[],e=0;e<t.length;e++){var i=t[e];switch(i.mode){case r.NUMERIC:n.push([i,{data:i.data,mode:r.ALPHANUMERIC,length:i.length},{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.ALPHANUMERIC:n.push([i,{data:i.data,mode:r.BYTE,length:i.length}]);break;case r.KANJI:n.push([i,{data:i.data,mode:r.BYTE,length:p(i.data)}]);break;case r.BYTE:n.push([{data:i.data,mode:r.BYTE,length:p(i.data)}])}}return n}(h(t,l.isKanjiModeEnabled())),e),o=c.find_path(i.map,"start","end"),a=[],s=1;s<o.length-1;s++)a.push(i.table[o[s]].node);return n.fromArray(a.reduce((function(t,n){var e=0<=t.length-1?t[t.length-1]:null;return e&&e.mode===n.mode?t[t.length-1].data+=n.data:t.push(n),t}),[]))},n.rawSplit=function(t){return n.fromArray(h(t,l.isKanjiModeEnabled()))}},function(t,n,e){var r=e(27);function i(t){this.mode=r.NUMERIC,this.data=t.toString()}i.getBitsLength=function(t){return 10*Math.floor(t/3)+(t%3?t%3*3+1:0)},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(t){for(var n,e,r=0;r+3<=this.data.length;r+=3)n=this.data.substr(r,3),e=parseInt(n,10),t.put(e,10);var i=this.data.length-r;0<i&&(n=this.data.substr(r),e=parseInt(n,10),t.put(e,3*i+1))},t.exports=i},function(t,n,e){var r=e(27),i=["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"," ","$","%","*","+","-",".","/",":"];function o(t){this.mode=r.ALPHANUMERIC,this.data=t}o.getBitsLength=function(t){return 11*Math.floor(t/2)+t%2*6},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0;n+2<=this.data.length;n+=2){var e=45*i.indexOf(this.data[n]);e+=i.indexOf(this.data[n+1]),t.put(e,11)}this.data.length%2&&t.put(i.indexOf(this.data[n]),6)},t.exports=o},function(t,n,e){var r=e(30),i=e(27);function o(t){this.mode=i.BYTE,this.data=r.from(t)}o.getBitsLength=function(t){return 8*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0,e=this.data.length;n<e;n++)t.put(this.data[n],8)},t.exports=o},function(t,n,e){var r=e(27),i=e(26);function o(t){this.mode=r.KANJI,this.data=t}o.getBitsLength=function(t){return 13*t},o.prototype.getLength=function(){return this.data.length},o.prototype.getBitsLength=function(){return o.getBitsLength(this.data.length)},o.prototype.write=function(t){for(var n=0;n<this.data.length;n++){var e=i.toSJIS(this.data[n]);if(33088<=e&&e<=40956)e-=33088;else{if(!(57408<=e&&e<=60351))throw new Error("Invalid SJIS character: "+this.data[n]+"\nMake sure your charset is UTF-8");e-=49472}t.put(e=192*(e>>>8&255)+(255&e),13)}},t.exports=o},function(t,n,e){"use strict";var r={single_source_shortest_paths:function(t,n,e){var i={},o={};o[n]=0;var a,s,u,l,c,p,f,h=r.PriorityQueue.make();for(h.push(n,0);!h.empty();)for(u in s=(a=h.pop()).value,l=a.cost,c=t[s]||{})c.hasOwnProperty(u)&&(p=l+c[u],f=o[u],(void 0===o[u]||p<f)&&(o[u]=p,h.push(u,p),i[u]=s));if(void 0===e||void 0!==o[e])return i;throw e=["Could not find a path from ",n," to ",e,"."].join(""),new Error(e)},extract_shortest_path_from_predecessor_list:function(t,n){for(var e=[],r=n;r;)e.push(r),t[r],r=t[r];return e.reverse(),e},find_path:function(t,n,e){return n=r.single_source_shortest_paths(t,n,e),r.extract_shortest_path_from_predecessor_list(n,e)},PriorityQueue:{make:function(t){var n,e=r.PriorityQueue,i={};for(n in t=t||{},e)e.hasOwnProperty(n)&&(i[n]=e[n]);return i.queue=[],i.sorter=t.sorter||e.default_sorter,i},default_sorter:function(t,n){return t.cost-n.cost},push:function(t,n){this.queue.push({value:t,cost:n}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};t.exports=r},function(t,n,e){var r=e(88);n.render=function(t,n,e){var i=n;void 0!==(o=e)||n&&n.getContext||(o=n,n=void 0),n||(i=function(){try{return document.createElement("canvas")}catch(t){throw new Error("You need to specify a canvas element")}}());var o=r.getOptions(o),a=r.getImageWidth(t.modules.size,o);n=(e=i.getContext("2d")).createImageData(a,a);return r.qrToImageData(n.data,t,o),o=i,a=a,e.clearRect(0,0,o.width,o.height),o.style||(o.style={}),o.height=a,o.width=a,o.style.height=a+"px",o.style.width=a+"px",e.putImageData(n,0,0),i},n.renderToDataURL=function(t,e,r){return void 0!==(r=r)||e&&e.getContext||(r=e,e=void 0),r=r||{},t=n.render(t,e,r),e=r.type||"image/png",r=r.rendererOpts||{},t.toDataURL(e,r.quality)}},function(t,n,e){var r=e(88);function i(t,n){var e=t.a/255;t=n+'="'+t.hex+'"';return e<1?t+" "+n+'-opacity="'+e.toFixed(2).slice(1)+'"':t}function o(t,n,e){return n=t+n,void 0!==e&&(n+=" "+e),n}n.render=function(t,n,e){var a=r.getOptions(n),s=t.modules.size,u=t.modules.data;n=s+2*a.margin,t=a.color.light.a?"<path "+i(a.color.light,"fill")+' d="M0 0h'+n+"v"+n+'H0z"/>':"",s="<path "+i(a.color.dark,"stroke")+' d="'+function(t,n,e){for(var r="",i=0,a=!1,s=0,u=0;u<t.length;u++){var l=Math.floor(u%n),c=Math.floor(u/n);l||a||(a=!0),t[u]?(s++,0<u&&0<l&&t[u-1]||(r+=a?o("M",l+e,.5+c+e):o("m",i,0),i=0,a=!1),l+1<n&&t[u+1]||(r+=o("h",s),s=0)):i++}return r}(u,s,a.margin)+'"/>',s='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+'viewBox="0 0 '+n+" "+n+'" shape-rendering="crispEdges">'+t+s+"</svg>\n";return"function"==typeof e&&e(null,s),s}},function(t,n,e){"use strict";var r=e(5);t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,e){"use strict";var r=e(23),i=e(2),o=e(25),a=e(70),s=e(71),u=e(18),l=e(156),c=e(72);i(i.S+i.F*!e(76)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,p,f=o(t),h="function"==typeof this?this:Array,m=arguments.length,d=1<m?arguments[1]:void 0,x=void 0!==d,g=0;t=c(f);if(x&&(d=r(d,2<m?arguments[2]:void 0,2)),null==t||h==Array&&s(t))for(e=new h(n=u(f.length));g<n;g++)l(e,g,x?d(f[g],g):f[g]);else for(p=t.call(f),e=new h;!(i=p.next()).done;g++)l(e,g,x?a(p,d,[i.value,g],!0):i.value);return e.length=g,e}})},function(t,n,e){"use strict";var r=e(14),i=e(31);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(2);r(r.P,"Array",{fill:e(158)}),e(45)("fill")},function(t,n,e){"use strict";var r=e(25),i=e(49),o=e(18);t.exports=function(t){for(var n,e=r(this),a=o(e.length),s=i(1<(n=arguments.length)?arguments[1]:void 0,a),u=void 0===(n=2<n?arguments[2]:void 0)?a:i(n,a);s<u;)e[s++]=t;return e}},function(t,n,e){"use strict";e.r(n),e(66),e(1),e(9),e(10),e(11),e(6),e(12),e(81),e(15),e(13),e(19),e(46),e(36);var r={CRC16:null,isArray:null,ToCRC16:null,ToModbusCRC16:null,strToByte:null,convertChinese:null,filterChinese:null,strToHex:null,padLeft:null,toString:null};r.CRC16=function(t){var n=t.length;if(0<n){for(var e=65535,r=0;r<n;r++){e^=t[r];for(var i=0;i<8;i++)e=0!=(1&e)?e>>1^40961:e>>1}return[(65280&e)>>8,255&e]}return[0,0]},r.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},r.ToCRC16=function(t,n){return r.toString(r.CRC16(r.isArray(t)?t:r.strToByte(t)),n)},r.ToModbusCRC16=function(t,n){return r.toString(r.CRC16(r.isArray(t)?t:r.strToHex(t)),n)},r.strToByte=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=encodeURI(n[r]);if(1==o.length)e.push(o.charCodeAt(0));else for(var a=o.split("%"),s=1;s<a.length;s++)e.push(parseInt("0x"+a[s]))}return e},r.convertChinese=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=n[r].charCodeAt();o<=0||127<=o?e.push(o.toString(16)):e.push(n[r])}return e},r.filterChinese=function(t){for(var n=t.split(""),e=[],r=0,i=n.length;r<i;r++){var o=n[r].charCodeAt();0<o&&o<127&&e.push(n[r])}return e},r.strToHex=function(t,n){t=(t=(n?r.filterChinese(t):r.convertChinese(t)).join("")).replace(/\s/g,"");for(var e=(t+=t.length%2!=0?"0":"").length/2,i=[],o=0;o<e;o++)i.push(parseInt(t.substr(2*o,2),16));return i},r.padLeft=function(t,n,e){null==e&&(e="0");for(var r=0,i=n-t.length;r<i;r++)t=e+t;return t},r.toString=function(t,n){var e=t[0];t=t[1];return r.padLeft(((n=void 0===n||n)?e+256*t:256*e+t).toString(16).toUpperCase(),4,"0")};var i=r,o=(e(62),e(117),e(119),e(63),e(122),e(91)),a=e.n(o),s=function(t){"number"==typeof(t=void 0===t?"":t)&&(t+="");for(var n,e=0,r=(t=null==t?"":t).length,i=0;i<r;i++)e+=0<=(n=t.charCodeAt(i))&&n<=128?1:2;return e},u=function(t){return a.a.toMoney(t,{outSymbol:!1})},l=(c.add=function(t,n){var e,r;try{e=t.toString().split(".")[1].length}catch(t){e=0}try{r=n.toString().split(".")[1].length}catch(t){r=0}return(t*(r=Math.pow(10,Math.max(e,r)))+n*r)/r},c.sub=function(t,n){var e,r;try{e=t.toString().split(".")[1].length}catch(t){e=0}try{r=n.toString().split(".")[1].length}catch(t){r=0}return((t*(t=Math.pow(10,Math.max(e,r)))-n*t)/t).toFixed(r<=e?e:r)},c.mul=function(t,n){var e=0;t=t.toString(),n=n.toString();try{e+=t.split(".")[1].length}catch(t){}try{e+=n.split(".")[1].length}catch(t){}return Number(t.replace(".",""))*Number(n.replace(".",""))/Math.pow(10,e)},c.div=function(t,n){var e=0,r=0;try{e=t.toString().split(".")[1].length}catch(t){}try{r=n.toString().split(".")[1].length}catch(t){}return Number(t.toString().replace(".",""))/Number(n.toString().replace(".",""))*Math.pow(10,r-e)},c);function c(){}var p=function(t,n){return!(!t||!t.hasOwnProperty(n))},f=function(t){if(null===t)return!0;if(void 0===t)return!0;if(function(t){return null!=t&&"number"==typeof(n=t.length)&&-1<n&&n%1==0&&n<=Number.MAX_SAFE_INTEGER&&!("[object Function]"===Object.prototype.toString.call(t));var n}(t))return!t.length;if(function(t){return"[object Object]"===Object.prototype.toString.call(t)}(t))for(var n in t)if(p.call(t,n))return!1;return!1},h=function(t,n,e){return void 0===n&&(n=2),void 0===e&&(e=!1),null==t||""===t||"string"==typeof t&&t.includes(",")?t:(t=+t,isNaN(t)?t:(""+t).includes(".")?(r=(""+t).split(".")[0],o="0."+(""+t).split(".")[1],i=Number(o),o="",e?r.replace(/\B(?=(\d{3})+\b)/g,",")+i:(o="."+(""+(o=i.toFixed(n))).split(".")[1],r.replace(/\B(?=(\d{3})+\b)/g,",")+o)):t.toFixed(n).replace(/(\d)(?=(\d{3})+\.)/g,"$1,"));var r,i,o},m=function(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()},d=[{taxOfficeCode:"3100",taxOffice:"上海国税",taxProvince:"上海市税务局",title:"上海"},{taxOfficeCode:"1100",taxOffice:"北京国税",taxProvince:"北京市税务局",title:"北京"},{taxOfficeCode:"4200",taxOffice:"湖北国税",taxProvince:"湖北省税务局",title:"湖北"},{taxOfficeCode:"4300",taxOffice:"湖南国税",taxProvince:"湖南省税务局",title:"湖南"},{taxOfficeCode:"1300",taxOffice:"河北国税",taxProvince:"河北省税务局",title:"河北"},{taxOfficeCode:"4100",taxOffice:"河南国税",taxProvince:"河南省税务局",title:"河南"},{taxOfficeCode:"6100",taxOffice:"陕西国税",taxProvince:"陕西省税务局",title:"陕西"},{taxOfficeCode:"3200",taxOffice:"江苏国税",taxProvince:"江苏省税务局",title:"江苏"},{taxOfficeCode:"3300",taxOffice:"浙江国税",taxProvince:"浙江省税务局",title:"浙江"},{taxOfficeCode:"3302",taxOffice:"宁波国税",taxProvince:"宁波市税务局",title:"宁波"},{taxOfficeCode:"6200",taxOffice:"甘肃国税",taxProvince:"甘肃省税务局",title:"甘肃"},{taxOfficeCode:"5300",taxOffice:"云南国税",taxProvince:"云南省税务局",title:"云南"},{taxOfficeCode:"3500",taxOffice:"福建国税",taxProvince:"福建省税务局",title:"福建"},{taxOfficeCode:"3502",taxOffice:"厦门国税",taxProvince:"厦门市税务局",title:"厦门"},{taxOfficeCode:"2200",taxOffice:"吉林国税",taxProvince:"吉林省税务局",title:"吉林"},{taxOfficeCode:"2100",taxOffice:"辽宁国税",taxProvince:"辽宁省税务局",title:"辽宁"},{taxOfficeCode:"6400",taxOffice:"宁夏国税",taxProvince:"宁夏回族自治区税务局",title:"宁夏"},{taxOfficeCode:"1200",taxOffice:"天津国税",taxProvince:"天津市税务局",title:"天津"},{taxOfficeCode:"4600",taxOffice:"海南国税",taxProvince:"海南省税务局",title:"海南"},{taxOfficeCode:"2102",taxOffice:"大连国税",taxProvince:"大连市税务局",title:"大连"},{taxOfficeCode:"3700",taxOffice:"山东国税",taxProvince:"山东省税务局",title:"山东"},{taxOfficeCode:"3702",taxOffice:"青岛国税",taxProvince:"青岛市税务局",title:"青岛"},{taxOfficeCode:"4400",taxOffice:"广东国税",taxProvince:"广东省税务局",title:"广东"},{taxOfficeCode:"4403",taxOffice:"深圳国税",taxProvince:"深圳市税务局",title:"深圳"},{taxOfficeCode:"5200",taxOffice:"贵州国税",taxProvince:"贵州省税务局",title:"贵州"},{taxOfficeCode:"6300",taxOffice:"青海国税",taxProvince:"青海省税务局",title:"青海"},{taxOfficeCode:"6500",taxOffice:"新疆国税",taxProvince:"新疆维吾尔自治区税务局",title:"新疆"},{taxOfficeCode:"4500",taxOffice:"广西国税",taxProvince:"广西壮族自治区税务局",title:"广西"},{taxOfficeCode:"5100",taxOffice:"四川国税",taxProvince:"四川省税务局",title:"四川"},{taxOfficeCode:"1400",taxOffice:"山西国税",taxProvince:"山西省税务局",title:"山西"},{taxOfficeCode:"5000",taxOffice:"重庆国税",taxProvince:"重庆市税务局",title:"重庆"},{taxOfficeCode:"2300",taxOffice:"黑龙江国税",taxProvince:"黑龙江税务局",title:"黑龙江"},{taxOfficeCode:"3400",taxOffice:"安徽国税",taxProvince:"安徽省税务局",title:"安徽"},{taxOfficeCode:"1500",taxOffice:"内蒙国税",taxProvince:"内蒙古自治区税务局",title:"内蒙古"},{taxOfficeCode:"3600",taxOffice:"江西国税",taxProvince:"上海市税务局",title:"上海"},{taxOfficeCode:"5400",taxOffice:"西藏国税",taxProvince:"西藏自治区税务局",title:"西藏"}],x=function(t,n,e,r){return void 0===e&&(e="value"),void 0===r&&(r="label"),t||0===t?(n||[]).find((function(n){return n[e]===t}))?(n||[]).find((function(n){return n[e]===t}))[r]:t:null},g=(o=e(16),e.n(o)),v=e(37).changeDpiDataUrl;function S(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function y(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function b(t){var n=t.data,e=t.showSample,r=t.samplePosition,o=void 0===r?"bottom":r,a=document.createElement("canvas");if(a.getContext){var l=a.getContext("2d");!function(t,n,e){var r=t.invoiceType,o=t.invoiceCode,a=t.invoiceNo,s=t.amount,u=t.drewDate,l=t.checkCode,c="10";1===Number(r)?c="01":2===Number(r)?c="04":3===Number(r)?c="10":4===Number(r)&&(c="08");var p=new Date(u),f=p.getFullYear();r=(t=p.getMonth()+1).toString();1<=t&&t<=9&&(r="0"+t),p=(t=p.getDate()).toString(),0<=t&&t<=9&&(p="0"+t),p=u?""+f+r+p:"",p="01,"+c+","+o+","+a+","+(s||0===s?Number(s).toFixed(2):s)+","+p+","+l+",",l=i.ToCRC16(p,!0),g.a.toCanvas(n,p+l+",",{errorCorrectionLevel:"M",margin:0,width:113},(function(t){}))}(n,a);var c,p,h,m,b,w,T,A,E=l.getImageData(0,0,113,113);return a.width=1192,a.height=794,l.fillStyle="#fff",l.fillRect(0,0,1192,794),l.putImageData(E,48,20),function(t,n){function e(t,n,e,r,i){var o=.5522848*r,a=.5522848*i;t.beginPath(),t.moveTo(n-r,e),t.bezierCurveTo(n-r,e-a,n-o,e-i,n,e-i),t.bezierCurveTo(n+o,e-i,n+r,e-a,n+r,e),t.bezierCurveTo(n+r,e+a,n+o,e+i,n,e+i),t.bezierCurveTo(n-o,e+i,n-r,e+a,n-r,e),t.closePath(),t.stroke()}t.strokeStyle="red",t.lineWidth=4,e(t,596,100,80,50),t.lineWidth=1,e(t,596,100,75,45),function(t,n,e,r){var i=n,o=e,a=160,s=n=59,u=(a-30)/(r.length-1);t.font="11px KaiTi",e=70/n,n=57/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++)t.save(),t.beginPath(),t.translate(i+Math.cos(Math.PI/180*a)*s-6,o-Math.sin(Math.PI/180*a)*s+14),t.rotate(Math.PI/2-Math.PI/180*a),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a-=u,t.restore();t.scale(1/e,1/n)}(t,508,110,"全国统一发票监制章"),n=void 0===(r=n.invoiceCode)?"":r;var r="";r=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),function(t,n,e,r){var i=n,o=e,a=226,s=n=59,u=(a-150)/(r.length-1);t.font="11px KaiTi",e=60/n,n=50/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++){t.save(),t.beginPath();var c=i+Math.cos(Math.PI/180*a)*s-6,p=o-Math.sin(Math.PI/180*a)*s+14;t.translate(c,p),t.rotate(Math.PI/180*(45-12*l)),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a+=u,t.translate(-c,-p),t.restore()}t.scale(1/e,1/n)}(t,594,96,n=(n=x(r,d,"taxOfficeCode","taxProvince")||"国家税务总局监制")===r?"国家税务总局监制":n),y(t,18,50,"国家税务总局",596,94,"#ff0000","normal 14px KaiTi",1)}(l,n),function(t,n,e,r){function i(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath()}var o,a,s,u,l;e&&(s=n.invoiceStatus,u=n.status,l=n.amountWithTax,o=n.amount,t.save(),t.translate(940,582),t.rotate(-30*Math.PI/180),"top"===r?(a=[{pointX:390,pointY:-410},{pointX:390,pointY:-270},{pointX:55,pointY:-270},{pointX:48,pointY:-410}],i({startX:34,startY:-420,ctx:t,points:[{pointX:400,pointY:-420},{pointX:400,pointY:-260},{pointX:45,pointY:-260},{pointX:38,pointY:-420}],lineWidth:8,color:"#F17171"}),i({startX:46,startY:-410,ctx:t,points:a,lineWidth:4,color:"#F17171"}),y(t,18,30,"样张",220,-380,"#F17171","normal 72px SimHei",1),20!==s&&20!==u||y(t,18,42,"已红冲",290,-310,"#F17171","normal 32px SimHei",0)):(a=[{pointX:190,pointY:-75},{pointX:190,pointY:75},{pointX:-190,pointY:75},{pointX:-186,pointY:-75}],i({startX:-200,startY:-85,ctx:t,points:[{pointX:200,pointY:-85},{pointX:200,pointY:85},{pointX:-200,pointY:85},{pointX:-196,pointY:-85}],lineWidth:8,color:"#F17171"}),i({startX:-188,startY:-75,ctx:t,points:a,lineWidth:4,color:"#F17171"}),y(t,18,30,"样张",0,-36,"#F17171","normal 72px SimHei",1),20!==s&&20!==u||y(t,18,42,"已红冲",74,26,"#F17171","normal 32px SimHei",0)),t.restore(),t.rotate(30*Math.PI/180),t.translate(-940,-582),30!==s&&30!==u||y(t,18,42,"作废",211,92,"#000","normal 32px SimHei",0),l<0&&o<0&&y(t,18,42,"销项负数",211,92,"#000","normal 28px SimHei",0),1===n.specialFlag&&y(t,18,42,"成品油",211,36,"#000","normal 28px SimHei",0),3===n.specialFlag&&y(t,18,42,"机动车",211,36,"#000","normal 28px SimHei",0))}(l,n,e,o),S({startX:26,startY:170,ctx:h=l,points:[{pointX:1164,pointY:170},{pointX:1164,pointY:702},{pointX:26,pointY:702},{pointX:26,pointY:170}],lineWidth:1,color:"#975124"}),S({startX:388,startY:100,ctx:h,points:[{pointX:801,pointY:100}],lineWidth:1,color:"#975124"}),S({startX:388,startY:104,ctx:h,points:[{pointX:801,pointY:104}],lineWidth:1,color:"#975124"}),S({startX:26,startY:294,ctx:h,points:[{pointX:1164,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:26,startY:544,ctx:h,points:[{pointX:1164,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:26,startY:590,ctx:h,points:[{pointX:1164,pointY:590}],lineWidth:1,color:"#975124"}),S({startX:72,startY:170,ctx:h,points:[{pointX:72,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:678,startY:170,ctx:h,points:[{pointX:678,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:708,startY:170,ctx:h,points:[{pointX:708,pointY:294}],lineWidth:1,color:"#975124"}),S({startX:320,startY:294,ctx:h,points:[{pointX:320,pointY:590}],lineWidth:1,color:"#975124"}),S({startX:468,startY:294,ctx:h,points:[{pointX:468,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:536,startY:294,ctx:h,points:[{pointX:536,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:650,startY:294,ctx:h,points:[{pointX:650,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:762,startY:294,ctx:h,points:[{pointX:762,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:932,startY:294,ctx:h,points:[{pointX:932,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:996,startY:294,ctx:h,points:[{pointX:996,pointY:544}],lineWidth:1,color:"#975124"}),S({startX:72,startY:590,ctx:h,points:[{pointX:72,pointY:702}],lineWidth:1,color:"#975124"}),S({startX:678,startY:590,ctx:h,points:[{pointX:678,pointY:702}],lineWidth:1,color:"#975124"}),S({startX:706,startY:590,ctx:h,points:[{pointX:706,pointY:702}],lineWidth:1,color:"#975124"}),w=l,m=(A=n).invoiceType,b=A.invoiceCode,A="",A=b&&12===b.length?b&&b.substr(1,4):b&&b.substr(0,4),A=(b=(b=x(A,d,"taxOfficeCode","title")||"")===A?"":b)+"增值税电子普通发票",1===Number(m)?A=b+"增值税专用发票":2===Number(m)?A=b+"增值税普通发票":4===Number(m)&&(A=b+"增值税电子专用发票"),y(w,18,30,A,596,38,"#9C5223","normal 38px KaiTi",1),y(w,18,30,"机器编号:",32,134,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"发票代码:",842,40,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"发票号码:",842,72,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开票日期:",842,102,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"校验码:",842,134,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"购",40,198,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"买",40,226,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"方",40,252,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"密",684,198,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"码",684,226,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"区",684,252,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"销",40,614,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"售",40,640,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"方",40,668,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"备",684,616,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"注",684,662,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"名",84,178,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"称:",174,178,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"纳税人识别号:",84,208,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"地 址、电 话:",84,236,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开户行及账号:",84,266,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"项目名称",132,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"规格型号",358,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"单位",484,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"数 量",570,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"单 价",684,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"金 额",828,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"税率",948,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"税 额",1058,304,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"合 计",134,520,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"价税合计(大写)",106,560,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"(小写)",864,560,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"名",84,594,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"称:",174,594,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"纳税人识别号:",84,622,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"地 址、电 话:",84,652,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开户行及账号:",84,680,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"收款人:",40,710,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"复 核:",360,710,"#9C5223","normal 18px KaiTi",0),y(w,18,30,"开票人:",598,710,"#9C5223","normal 18px KaiTi",0),function(t,n){var e,r,i,o,a=n.invoiceCode,s=n.invoiceNo,u=n.drewDate,l=n.checkCode,c=n.machineCode;n.invoiceStatus,n.status,y(t,18,42,a,940,40,"#000000","normal 18px SimSun",0),y(t,18,42,s,940,72,"#000000","normal 18px SimSun",0),y(t,18,42,c,126,134,"#000000","normal 18px SimSun",0),(e=u)&&(o=null,r=(o=u&&-1===u.indexOf("-")&&-1===u.indexOf("年")?new Date(Number(u)):new Date(e)).getFullYear(),e=(i=o.getMonth()+1).toString(),1<=i&&i<=9&&(e="0"+i),o=(i=o.getDate()).toString(),y(t,18,42,r+"年"+e+"月"+(o=0<=i&&i<=9?"0"+i:o)+"日",940,102,"#000000","normal 18px SimSun",0)),function(n){if(!f(n=void 0===n?"":n))for(var e=n.length/4,r=0;r<4;r++){var i=n.substr(0===r?0:e*r,e);y(t,18,32,i,940+50*r,134,"#000000","normal 18px SimSun",0)}}(l)}(l,n),c=l,p=(T=n).purchaserName,t=n.purchaserTaxNo,r=n.purchaserAddress,E=n.purchaserTel,e=n.purchaserBankName,o=n.purchaserBankAccount,h=n.sellerName,m=n.sellerTaxNo,b=n.sellerAddress,A=n.sellerTel,w=n.sellerBankName,T=n.sellerBankAccount,C(206,178,p),y(c,18,49,t,206,204,"#000000","normal 24px Courier New",0),C(206,236,""+(r||"")+(E||"")),C(206,266,""+(e||"")+(o||"")),C(206,594,h),y(c,18,49,m,206,618,"#000000","normal 24px Courier New",0),C(206,652,""+(b||"")+(A||"")),C(206,680,""+(w||"")+(T||"")),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=e.length/4,i=0;i<4;i++)y(t,18,32,e.substr(0===i?0:r*i,r),740,178+30*i,"#000000","normal 24px Courier New",0)}(l,n),function(t,n){var e,r,i,o,a=n.details,u=n.amount,l=n.taxAmount,c=(n.taxRate,n.listFlag),p=n.qdbz;function h(n,e,r,i){i||s(r)<=31?y(t,18,32,r,n,e,"#000000","normal 18px SimSun",0):s(r)<=35?y(t,18,36,r,n,e,"#000000","normal 16px SimSun",0):s(r)<=40?y(t,18,42,r,n,e,"#000000","normal 14px SimSun",0):s(r)<=47?y(t,18,48,r,n,e,"#000000","normal 12px SimSun",0):s(r)<=51?y(t,18,52,r,n,e,"#000000","normal 11px SimSun",0):y(t,11,52,r,n,e-4,"#000000","normal 11px SimSun",0)}function m(n,e,r){s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 18px SimSun",0):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 16px SimSun",0):s(r)<=19?y(t,18,20,r,n,e,"#000000","normal 13px SimSun",0):y(t,12,22,r,n,e-4,"#000000","normal 12px SimSun",0)}function d(n,e,r){s(r)<=7?y(t,18,8,r,n,e,"#000000","normal 18px SimSun",1):s(r)<=9?y(t,18,10,r,n,e,"#000000","normal 14px SimSun",1):s(r)<=11?y(t,18,12,r,n,e,"#000000","normal 12px SimSun",1):s(r)<=13?y(t,18,14,r,n,e,"#000000","normal 10px SimSun",1):s(r)<=17?y(t,18,18,r,n,e,"#000000","normal 8px SimSun",1):y(t,8,18,r,n,e,"#000000","normal 8px SimSun",1)}function x(n,e,r){s(r)<=10?y(t,18,11,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=12?y(t,18,13,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,17,r,n,e,"#000000","normal 12px SimSun",2)}function g(n,e,r){s(r)<=10?y(t,18,11,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=12?y(t,18,13,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=14?y(t,18,15,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=16?y(t,18,17,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,17,r,n,e,"#000000","normal 12px SimSun",2)}function v(n,e,r){r=r||0===r?Number(r).toFixed(2):r,y(t,18,18,r,n,e,"#000000","normal 18px SimSun",2)}function S(n,e,r,i){i&&(0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="免税":0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="不征税":"number"==typeof r&&(r=100*r+"%")),s(r)<=5?y(t,18,6,r,n,e,"#000000","normal 18px SimSun",2):s(r)<=6?y(t,18,7,r,n,e,"#000000","normal 16px SimSun",2):s(r)<=7?y(t,18,8,r,n,e,"#000000","normal 14px SimSun",2):s(r)<=8?y(t,18,9,r,n,e,"#000000","normal 12px SimSun",2):y(t,12,9,r,n,e,"#000000","normal 12px SimSun",2)}function b(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":Number(r).toFixed(2),y(t,18,18,r,n,e,"#000000","normal 18px SimSun",2)}1===c||8<a.length||1===p?(h(38,338,0<=u?"(详见销货清单)":"详见对应正数发票及清单"),v(922,338,u),function(t){var n,e=[];t.details.forEach((function(r,i){n=0===r.taxPre&&1===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"免税":0===r.taxPre&&2===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"不征税":"number"==typeof r.taxRate?100*r.taxRate+"%":r.taxRate,e.includes(n)||e.push(n)})),1===e.length?S(986,338,e[0],""):2===e.length&&e.includes("免税")&&e.includes("不征税")&&S(986,338,"零税率","")}(n),function(n){var e;f(n.taxAmount)?e=n.taxAmount.toFixed(2):"number"==typeof n.taxAmount&&(e=0===n.taxAmount?"***":n.taxAmount.toFixed(2)),y(t,18,18,e,1154,338,"#000000","normal 18px SimSun",2)}(n)):(e=function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e},o=i=r=0,a.forEach((function(t,n){r+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/32)})),a.forEach((function(t,n){var a,s;r<=8?(0!==n&&(o=22*i),i+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/32),h(38,338+o,""+(t.shortName||"")+t.goodsName,"newSize"),m(330,338+o,t.specification),d(502,338+22*n,t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),"0"===a&&"0"===s||(x(640,338+o,13<a.length?a.substr(0,13):a),g(752,338+o,13<s.length?s.substr(0,13):s))),v(922,338+o,t.amount),S(986,338+o,t.taxRate,t),b(1154,338+o,t.taxAmount,t)):(h(38,338+22*n,""+(t.shortName||"")+t.goodsName),m(330,338+24*n,t.specification),d(502,338+22*n,t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),"0"===a&&"0"===s||(x(640,338+22*n,13<a.length?a.substr(0,13):a),g(752,338+22*n,13<s.length?s.substr(0,13):s))),v(922,338+22*n,t.amount),S(986,338+22*n,t.taxRate,t),b(1154,338+22*n,t.taxAmount,t))}))),n=922,a=520,u=(u=u)||0===u?Number(u).toFixed(2):u,y(t,18,18,u,n,a,"#000000","normal 18px Courier New",2),""!==(l=f(l)?"":0===l?"***":l)&&"***"!==l&&(l="¥"+(l=l||0===l?Number(l).toFixed(2):l)),y(t,18,18,l,1154,520,"#000000","normal 18px Courier New",2)}(l,n),function(t,n){var e=n.amountWithTax;t.beginPath(),t.lineWidth=1,t.strokeStyle="black",t.arc(350,567,12,0,2*Math.PI,!1),t.stroke(),t.closePath(),t.save(),t.translate(350,567),t.rotate(45*Math.PI/180),t.lineWidth=1,t.strokeStyle="black",t.beginPath(),t.moveTo(-12,0),t.lineTo(12,0),t.moveTo(0,-12),t.lineTo(0,12),t.stroke(),t.closePath(),t.restore(),y(t,18,56,n=0<(n=e)?u(n).replace("元","圆"):"(负数)"+u(Math.abs(n)).replace("元","圆"),370,560,"#000000","normal 18px SimSun",0),y(t,18,56,"¥"+(e=e||0===e?Number(e).toFixed(2):e),938,558,"#000000","normal 22px Courier New",0)}(l,n),A=(A=n).remark,y(l,18,50,(A=f(A)?"":A).replace(/\\r\\n/g,"\n")||"",714,596,"#000000","normal 18px SimSun",0),w=l,A=(T=n).payee,l=n.reviewer,T=n.drawer,y(w,18,50,A,106,710,"#000000","normal 18px SimSun",0),y(w,18,50,l,420,710,"#000000","normal 18px SimSun",0),y(w,18,50,T,666,710,"#000000","normal 18px SimSun",0),v(a.toDataURL("image/png",.92),300)}function C(t,n,e){s(e)<=48?y(c,18,49,e,t,n,"#000000","normal 18px SimSun",0):s(e)<=62?y(c,18,63,e,t,n,"#000000","normal 15px SimSun",0):y(c,15,63,e,t,n-4,"#000000","normal 15px SimSun",0)}}var w=e(37).changeDpiDataUrl;function T(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#800000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function A(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}var E=e(37).changeDpiDataUrl;function C(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function Y(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function N(t){var n=t.data,e=t.showSample,r=document.createElement("canvas");if(r.getContext){var i,o,a,s,l,c,p,h,m,g,v=r.getContext("2d");return v.getImageData(0,0,113,113),r.width=1150,r.height=821,v.fillStyle="#fff",v.fillRect(0,0,1150,821),function(t,n){function e(t,n,e,r,i){var o=.5522848*r,a=.5522848*i;t.beginPath(),t.moveTo(n-r,e),t.bezierCurveTo(n-r,e-a,n-o,e-i,n,e-i),t.bezierCurveTo(n+o,e-i,n+r,e-a,n+r,e),t.bezierCurveTo(n+r,e+a,n+o,e+i,n,e+i),t.bezierCurveTo(n-o,e+i,n-r,e+a,n-r,e),t.closePath(),t.stroke()}t.strokeStyle="red",t.lineWidth=4,e(t,570,70,80,50),t.lineWidth=1,e(t,570,70,75,45),function(t,n,e,r){var i=n,o=e,a=160,s=n=59,u=(a-30)/(r.length-1);t.font="11px KaiTi",e=70/n,n=57/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++)t.save(),t.beginPath(),t.translate(i+Math.cos(Math.PI/180*a)*s-6,o-Math.sin(Math.PI/180*a)*s+14),t.rotate(Math.PI/2-Math.PI/180*a),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a-=u,t.restore();t.scale(1/e,1/n)}(t,486,80,"全国统一发票监制章"),n=void 0===(r=n.invoiceCode)?"":r;var r="";r=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),function(t,n,e,r){var i=n,o=e,a=226,s=n=59,u=(a-150)/(r.length-1);t.font="11px KaiTi",e=60/n,n=50/n,t.scale(e,n);var l=0;for(l=0;l<r.length;l++){t.save(),t.beginPath();var c=i+Math.cos(Math.PI/180*a)*s-6,p=o-Math.sin(Math.PI/180*a)*s+14;t.translate(c,p),t.rotate(Math.PI/180*(45-12*l)),t.fillText(r.charAt(l),0,0),t.strokeText(r.charAt(l),0,0),a+=u,t.translate(-c,-p),t.restore()}t.scale(1/e,1/n)}(t,568,66,n=(n=x(r,d,"taxOfficeCode","taxProvince")||"国家税务总局监制")===r?"国家税务总局监制":n),Y(t,18,50,"国家税务总局",570,64,"#ff0000","normal 14px KaiTi",1)}(v,n),function(t,n,e){function r(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?1:o;t=void 0===(t=t.color)?"#975124":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath()}var i,o,a,s;e&&(o=n.invoiceStatus,a=n.status,s=n.amountWithTax,i=n.amount,t.save(),t.translate(940,582),t.rotate(-30*Math.PI/180),r({startX:-150,startY:-65,ctx:t,points:[{pointX:150,pointY:-65},{pointX:150,pointY:65},{pointX:-150,pointY:65},{pointX:-146,pointY:-65}],lineWidth:8,color:"#F17171"}),r({startX:-138,startY:-55,ctx:t,points:[{pointX:140,pointY:-55},{pointX:140,pointY:55},{pointX:-140,pointY:55},{pointX:-136,pointY:-55}],lineWidth:4,color:"#F17171"}),Y(t,18,30,"样张",0,-26,"#F17171","normal 50px SimHei",1),Y(t,18,42,"已红冲",64,26,"#F17171","normal 22px SimHei",0),t.restore(),t.rotate(30*Math.PI/180),t.translate(-940,-582),30!==o&&30!==a||Y(t,18,42,"作废",245,88,"#000","normal 26px SimHei",0),s<0&&i<0&&Y(t,18,42,"销项负数",245,88,"#000","normal 26px SimHei",0))}(v,n,e),C({startX:95,startY:156,ctx:c=v,points:[{pointX:1055,pointY:156}],lineWidth:1,color:"#975124"}),C({startX:95,startY:156,ctx:c,points:[{pointX:95,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:95,startY:756,ctx:c,points:[{pointX:1055,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:1055,startY:156,ctx:c,points:[{pointX:1055,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:95,startY:299,ctx:c,points:[{pointX:1055,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:95,startY:357,ctx:c,points:[{pointX:1055,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:95,startY:399,ctx:c,points:[{pointX:1055,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:95,startY:443,ctx:c,points:[{pointX:1055,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:95,startY:486,ctx:c,points:[{pointX:1055,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:95,startY:528,ctx:c,points:[{pointX:1055,pointY:528}],lineWidth:1,color:"#975124"}),C({startX:95,startY:570,ctx:c,points:[{pointX:1055,pointY:570}],lineWidth:1,color:"#975124"}),C({startX:95,startY:614,ctx:c,points:[{pointX:1055,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:95,startY:656,ctx:c,points:[{pointX:1055,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:95,startY:712,ctx:c,points:[{pointX:1055,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:95,startY:977,ctx:c,points:[{pointX:1055,pointY:977}],lineWidth:1,color:"#975124"}),C({startX:226,startY:156,ctx:c,points:[{pointX:226,pointY:756}],lineWidth:1,color:"#975124"}),C({startX:513,startY:156,ctx:c,points:[{pointX:513,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:552,startY:156,ctx:c,points:[{pointX:552,pointY:299}],lineWidth:1,color:"#975124"}),C({startX:552,startY:299,ctx:c,points:[{pointX:552,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:765,startY:299,ctx:c,points:[{pointX:765,pointY:357}],lineWidth:1,color:"#975124"}),C({startX:432,startY:357,ctx:c,points:[{pointX:432,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:432,startY:357,ctx:c,points:[{pointX:432,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:513,startY:357,ctx:c,points:[{pointX:513,pointY:401}],lineWidth:1,color:"#975124"}),C({startX:550,startY:399,ctx:c,points:[{pointX:550,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:838,startY:357,ctx:c,points:[{pointX:838,pointY:399}],lineWidth:1,color:"#975124"}),C({startX:891,startY:357,ctx:c,points:[{pointX:891,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:815,startY:401,ctx:c,points:[{pointX:815,pointY:443}],lineWidth:1,color:"#975124"}),C({startX:742,startY:443,ctx:c,points:[{pointX:742,pointY:486}],lineWidth:1,color:"#975124"}),C({startX:725,startY:528,ctx:c,points:[{pointX:725,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:775,startY:528,ctx:c,points:[{pointX:775,pointY:614}],lineWidth:1,color:"#975124"}),C({startX:598,startY:614,ctx:c,points:[{pointX:598,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:704,startY:614,ctx:c,points:[{pointX:704,pointY:656}],lineWidth:1,color:"#975124"}),C({startX:348,startY:656,ctx:c,points:[{pointX:348,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:422,startY:656,ctx:c,points:[{pointX:422,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:623,startY:656,ctx:c,points:[{pointX:623,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:726,startY:656,ctx:c,points:[{pointX:726,pointY:712}],lineWidth:1,color:"#975124"}),C({startX:452,startY:714,ctx:c,points:[{pointX:452,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:566,startY:714,ctx:c,points:[{pointX:566,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:798,startY:714,ctx:c,points:[{pointX:798,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:848,startY:714,ctx:c,points:[{pointX:848,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:893,startY:714,ctx:c,points:[{pointX:893,pointY:754}],lineWidth:1,color:"#975124"}),C({startX:974,startY:714,ctx:c,points:[{pointX:974,pointY:754}],lineWidth:1,color:"#975124"}),p=v,n.invoiceType,n.invoiceCode,Y(p,44,40,"机 动 车 销 售 统 一 发 票",366,39,"#9C5223","900 31px KaiTi",0),Y(p,39,40,"发 票 联",492,89,"#9C5223","600 28px HeiTi",0),Y(p,19,30,"机打代码",111,182,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"机打号码",111,215,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"机器编号",111,248,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"税",524,184,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"控",524,214,"#9C5223","normal 19px KaiTi",0),Y(p,30,30,"码",524,244,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"购买方名称",111,319,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"纳税人识别号/",566,299,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"统一社会信用代码/",566,318,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"身份证号码/",566,337,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"车辆类型",111,368,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"合格证号",111,412,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"发动机号码",111,456,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"价税合计",111,498,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"销货单位名称",104,540,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"纳税人识别号",104,582,"#9C5223","normal 19px KaiTi",0),Y(p,26,30,"地 址",111,626,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"增值税税率 ",111,663,"#9C5223","normal 19px KaiTi",0),Y(p,25,30," 或 征 收 率",111,690,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"不含税价",111,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"厂牌型号",436,369,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"进口证明书号",439,413,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"产地",848,369,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"商检单号",818,411,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"车辆识别代号/车架号码",551,457,"#9C5223","normal 18px KaiTi",0),Y(p,19,30,"小写",806,499,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"电话",731,541,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"账号",731,583,"#9C5223","normal 19px KaiTi",0),Y(p,19,30,"开户银行",613,626,"#9C5223","normal 19px KaiTi",0),Y(p,25,30,"增值税",358,661,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"税 额",358,681,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"主管税务",630,661,"#9C5223","normal 19px KaiTi",0),Y(p,25,33," 机关及代码",630,681,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"小写",237,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"完税凭证号码",451,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"吨位",804,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"限乘人数",898,726,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"开票日期:",90,125,"#9C5223","normal 19px KaiTi",0),Y(p,26,33,"发票代码",810,84,"#9C5223","normal 19px KaiTi",0),Y(p,26,33,"发票号码",810,111,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"销货单位盖章",100,762,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"开票人",488,762,"#9C5223","normal 19px KaiTi",0),Y(p,25,33,"备注:一车一票",812,762,"#9C5223","normal 19px KaiTi",0),g=v,a=n.invoiceCode,l=n.invoiceNo,o=n.drewDate,n.checkCode,s=n.machineCode,n.invoiceStatus,n.status,Y(g,18,42,a,893,83,"#000000","normal 18px SimSun",0),Y(g,18,42,l,893,111,"#000000","normal 18px SimSun",0),Y(g,34,33,a,242,182,"#000000","normal 18px SimSun",0),Y(g,34,33,l,242,215,"#000000","normal 18px SimSun",0),Y(g,18,42,s,242,248,"#000000","normal 18px SimSun",0),(a=o)&&(s=(l=new Date(a)).getFullYear(),a=(o=l.getMonth()+1).toString(),1<=o&&o<=9&&(a="0"+o),l=(o=l.getDate()).toString(),Y(g,18,42,s+"年"+a+"月"+(l=0<=o&&o<=9?"0"+o:l)+"日",193,126,"#000000","normal 18px SimSun",0)),i=v,h=(m=n).purchaserName,e=void 0===(t=m.purchaserTaxNo)?"":t,p=void 0===(c=m.sellerName)?"":c,s=void 0===(g=m.sellerTaxNo)?"":g,c=void 0===(t=m.sellerTel)?"":t,t=void 0===(g=m.sellerAddress)?"":g,g=void 0===(g=m.sellerBankAccount)?"":g,m=void 0===(m=m.sellerBankName)?"":m,Y(i,18,35,void 0===h?"":h,242,319,"#000000","normal 18px SimSun",0),Y(i,18,33,e,778,319,"#000000","normal 19px Courier New",0),Y(i,18,33,p,242,539,"#000000","normal 18px SimSun",0),Y(i,18,33,c,789,539,"#000000","normal 18px SimSun",0),Y(i,34,33,s,242,583,"#000000","normal 19px Courier New",0),Y(i,34,33,g,789,583,"#000000","normal 18px SimSun",0),Y(i,18,40,t,242,617,"#000000","normal 18px SimSun",0),Y(i,18,38,m,712,617,"#000000","normal 18px SimSun",0),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=0;r<5;r++)Y(t,26,48,e.substr(0===r?0:38*r,38),570,165+26*r,"#000000","normal 19px Courier New",0)}(v,n),a=v,l=(o=n).carTypeName,e=void 0===(h=o.brandTranslation)?"":h,c=void 0===(p=o.productPlace)?"":p,g=void 0===(s=o.certificateNo)?"":s,p=void 0===(h=o.importCertNo)?"":h,h=void 0===(s=o.comInspectionNo)?"":s,s=void 0===(s=o.vehicleIdenNo)?"":s,o=void 0===(o=o.engineNo)?"":o,Y(a,18,33,void 0===l?"":l,242,370,"#000000","normal 18px SimSun",0),Y(a,18,33,e,524,370,"#000000","normal 18px SimSun",0),Y(a,18,33,c,899,370,"#000000","normal 18px SimSun",0),Y(a,18,33,g,242,411,"#000000","normal 18px SimSun",0),Y(a,18,33,p,562,413,"#000000","normal 18px SimSun",0),Y(a,18,33,h,895,411,"#000000","normal 18px SimSun",0),Y(a,18,33,o,242,455,"#000000","normal 18px SimSun",0),Y(a,18,33,s,753,455,"#000000","normal 18px SimSun",0),t=v,l=void 0===(m=(i=n).amountWithTax)?0:m,c=void 0===(e=i.amount)?0:e,p=void 0===(g=i.taxAmount)?0:g,m=void 0===(h=i.taxRate)?0:h,g=void 0===(e=i.zgswjgmc)?"":e,e=void 0===(h=i.zgswjgdm)?"":h,o=242,a=497,Y(t,18,56,s=0<(s=l)?u(s).replace("元","圆"):"(负数)"+u(Math.abs(s)).replace("元","圆"),o,a,"#000000","normal 18px SimSun",0),i=l||0===l?Number(l).toFixed(2):l,h=c||0===c?Number(c).toFixed(2):c,p=c||0===p?Number(p).toFixed(2):p,Y(t,34,33,"¥"+i,854,497,"#000000","normal 19px Courier New",0),Y(t,34,33,"¥"+h,284,726,"#000000","normal 19px Courier New",0),Y(t,34,33,"¥"+p,439,676,"#000000","normal 19px Courier New",0),Y(t,34,33,100*m+"%",242,676,"#000000","normal 18px SimSun",0),Y(t,34,33,g,739,663,"#000000","normal 18px SimSun",0),Y(t,34,33,e,739,685,"#000000","normal 18px SimSun",0),g=v,v=void 0===(e=(t=n).tonnage)?"":e,e=void 0===(n=t.limitPeopleNum)?"":n,n=void 0===(n=t.drawer)?"":n,Y(g,34,33,void 0===(t=t.wspzhm)?"":t,570,726,"#000000","normal 18px SimSun",0),Y(g,34,33,v,848,726,"#000000","normal 18px SimSun",0),Y(g,34,33,e,988,726,"#000000","normal 18px SimSun",0),Y(g,34,33,n,552,762,"#000000","normal 18px SimSun",0),E(r.toDataURL("image/png",.92),300)}}e(89);var P=function(){return(P=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)};function X(t){var n=t.startX,e=t.startY,r=t.ctx;t=t.points;r.beginPath(),r.moveTo(n,e),r.lineWidth=1,r.strokeStyle="#975124",t&&t.length&&t.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function I(t,n,e,r,i,o,a,s,u){"number"==typeof r&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=function(t,n){for(var e=t.length,r=e,i=0,o=0;o<e;o++)if(128<t.charCodeAt(o)){if(!(i+2<n)){r=o;break}i+=2}else{if(!(i+1<n)){r=o;break}i+=1}return r}(r,e);t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=r.substr(c)}t.save()}function R(t){var n=document.createElement("canvas");if(n.getContext){n.width=1194,n.height=1686;var e,r,i,o,a,u,l,c=n.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,1194,1686),X({startX:26,startY:334,ctx:l=c,points:[{pointX:1166,pointY:334},{pointX:1166,pointY:1570},{pointX:26,pointY:1570},{pointX:26,pointY:334}]}),X({startX:26,startY:374,ctx:l,points:[{pointX:1166,pointY:374}]}),X({startX:26,startY:1526,ctx:l,points:[{pointX:1166,pointY:1526}]}),X({startX:76,startY:334,ctx:l,points:[{pointX:76,pointY:1570}]}),X({startX:320,startY:334,ctx:l,points:[{pointX:320,pointY:1526}]}),X({startX:468,startY:334,ctx:l,points:[{pointX:468,pointY:1526}]}),X({startX:536,startY:334,ctx:l,points:[{pointX:536,pointY:1526}]}),X({startX:650,startY:334,ctx:l,points:[{pointX:650,pointY:1526}]}),X({startX:762,startY:334,ctx:l,points:[{pointX:762,pointY:1526}]}),X({startX:932,startY:334,ctx:l,points:[{pointX:932,pointY:1526}]}),X({startX:996,startY:334,ctx:l,points:[{pointX:996,pointY:1526}]}),a=c,e=(o=t).invoiceType,i=t.invoiceListCurrent,o=t.invoiceListTotalCount,I(a,18,40,"销售货物或者提供应税劳务、服务清单",597,80,"#9C5223","normal 38px KaiTi",1),I(a,18,30,"购买方名称:",56,210,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"销售方名称:",56,242,"#9C5223","normal 18px KaiTi",0),r="所属增值税电子普通发票代码:",1===Number(e)?r="所属增值税专用发票代码:":2===Number(e)?r="所属增值税普通发票代码:":4===Number(e)&&(r="所属增值税电子专用发票代码:"),I(a,18,30,r,56,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"号码:",538,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"共",936,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"页",1018,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"第",1056,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"页",1136,274,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"序号",34,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"项目名称",162,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"规格型号",358,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"单位",484,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"数量",576,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"单价",688,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"金额",828,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"税率",946,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"税额",1064,344,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"备注",34,1536,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"开票日期:",788,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"年",920,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"月",966,1578,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"日",1012,1578,"#9C5223","normal 18px KaiTi",0),i===o?(I(a,18,30,"小计",34,1416,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"折扣",34,1456,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"总计",34,1496,"#9C5223","normal 18px KaiTi",0)):(I(a,18,30,"小计",34,1456,"#9C5223","normal 18px KaiTi",0),I(a,18,30,"折扣",34,1496,"#9C5223","normal 18px KaiTi",0)),function(t,n){var e=n.details,r=n.amount,i=n.taxAmount,o=n.invoiceListCurrent,a=n.invoiceListTotalCount,u=n.subtotalAmount,l=n.subtotalTaxAmount,c=n.discountAmount,p=n.discountTaxAmount;e.forEach((function(n,e){var r,i,o,a,u,l,c;I(t,18,26,e+1,48,384+40*e,"#000000","normal 18px SimSun",1),o=84,r=384+40*e,i=""+(n.shortName||"")+n.goodsName,s(i)<=25?I(t,18,26,i,o,r,"#000000","normal 18px SimSun",0):s(i)<=29?I(t,18,30,i,o,r,"#000000","normal 16px SimSun",0):s(i)<=33?I(t,18,34,i,o,r,"#000000","normal 14px SimSun",0):s(i)<=38?I(t,18,39,i,o,r,"#000000","normal 12px SimSun",0):s(i)<=46?I(t,18,47,i,o,r,"#000000","normal 10px SimSun",0):I(t,10,47,i,o,r-4,"#000000","normal 10px SimSun",0),i=330,o=384+40*e,r=n.specification,s(r)<=14?I(t,18,15,r,i,o,"#000000","normal 18px SimSun",0):s(r)<=16?I(t,18,17,r,i,o,"#000000","normal 16px SimSun",0):s(r)<=19?I(t,18,20,r,i,o,"#000000","normal 13px SimSun",0):I(t,13,22,r,i,o-4,"#000000","normal 12px SimSun",0),r=502,i=384+40*e,o=n.unit,s(o)<=7?I(t,18,8,o,r,i,"#000000","normal 18px SimSun",1):s(o)<=9?I(t,18,10,o,r,i,"#000000","normal 14px SimSun",1):s(o)<=11?I(t,18,12,o,r,i,"#000000","normal 12px SimSun",1):s(o)<=13?I(t,18,14,o,r,i,"#000000","normal 10px SimSun",1):s(o)<=17?I(t,18,18,o,r,i,"#000000","normal 8px SimSun",1):I(t,8,18,o,r,i,"#000000","normal 8px SimSun",1),n.quantity&&n.unitPrice&&(u=640,a=384+40*e,l=n.quantity,s(l)<=10?I(t,18,11,l,u,a,"#000000","normal 18px SimSun",2):s(l)<=12?I(t,18,13,l,u,a,"#000000","normal 16px SimSun",2):s(l)<=14?I(t,18,15,l,u,a,"#000000","normal 14px SimSun",2):s(l)<=16?I(t,18,17,l,u,a,"#000000","normal 12px SimSun",2):I(t,12,17,l,u,a,"#000000","normal 12px SimSun",2),c=752,l=384+40*e,u=n.unitPrice,s(u)<=10?I(t,18,11,u,c,l,"#000000","normal 18px SimSun",2):s(u)<=12?I(t,18,13,u,c,l,"#000000","normal 16px SimSun",2):s(u)<=14?I(t,18,15,u,c,l,"#000000","normal 14px SimSun",2):s(u)<=16?I(t,18,17,u,c,l,"#000000","normal 12px SimSun",2):I(t,12,17,u,c,l,"#000000","normal 12px SimSun",2)),a=922,u=384+40*e,c=n.amount,I(t,18,18,c,a,u,"#000000","normal 18px SimSun",2),l=986,c=384+40*e,a=n.taxRate,0===(u=n).taxPre&&1===u.taxPreType&&1!==Number(u.invoiceType)&&4!==Number(u.invoiceType)?a="免税":0===u.taxPre&&2===u.taxPreType&&1!==Number(u.invoiceType)&&4!==Number(u.invoiceType)?a="不征税":"number"==typeof a&&(a=100*a+"%"),s(a)<=5?I(t,18,6,a,l,c,"#000000","normal 18px SimSun",2):s(a)<=6?I(t,18,7,a,l,c,"#000000","normal 16px SimSun",2):s(a)<=7?I(t,18,8,a,l,c,"#000000","normal 14px SimSun",2):s(a)<=8?I(t,18,9,a,l,c,"#000000","normal 12px SimSun",2):I(t,12,9,a,l,c,"#000000","normal 12px SimSun",2),l=1154,c=384+40*e,e=n.taxAmount,e=0===(n=n).taxPre&&1===n.taxPreType&&1!==Number(n.invoiceType)&&4!==Number(n.invoiceType)||0===n.taxPre&&2===n.taxPreType&&1!==Number(n.invoiceType)&&4!==Number(n.invoiceType)?"***":f(e)?"":0===e?"***":e,I(t,18,18,e,l,c,"#000000","normal 18px SimSun",2)})),o===a?(I(t,18,30,"¥"+u,922,1416,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+l,1154,1416,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+r,922,1496,"#000000","normal 18px Courier New",2)):(I(t,18,30,"¥"+u,922,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+l,1154,1456,"#000000","normal 18px Courier New",2)),o===a?(I(t,18,30,"¥"+c,922,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+p,1154,1456,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+i,1154,1496,"#000000","normal 18px Courier New",2)):(I(t,18,30,"¥"+c,922,1496,"#000000","normal 18px Courier New",2),I(t,18,30,"¥"+p,1154,1496,"#000000","normal 18px Courier New",2))}(c,t),I(c,18,120,t.remark,86,1530,"#000000","normal 18px SimSun",0),u=c,e=(l=t).purchaserName,r=t.sellerName,i=t.invoiceNo,o=t.invoiceCode,a=t.invoiceListTotalCount,l=t.invoiceListCurrent,I(u,16,110,e,168,210,"#000000","normal 18px SimSun",0),I(u,16,110,r,168,242,"#000000","normal 18px SimSun",0),I(u,18,50,o,300,274,"#000000","normal 18px SimSun",0),I(u,18,50,i,594,274,"#000000","normal 18px SimSun",0),I(u,18,50,a,986,274,"#000000","normal 18px SimSun",1),I(u,18,50,l,1106,274,"#000000","normal 18px SimSun",1),a=c,(l=(u=t).drewDate)&&(t=(c=new Date(l)).getFullYear(),l=(u=c.getMonth()+1).toString(),1<=u&&u<=9&&(l="0"+u),c=(u=c.getDate()).toString(),0<=u&&u<=9&&(c="0"+u),I(a,18,50,t,878,1578,"#000000","normal 18px SimSun",0),I(a,18,50,l,944,1578,"#000000","normal 18px SimSun",0),I(a,18,50,c,988,1578,"#000000","normal 18px SimSun",0)),n.toDataURL()}}e(155);var _=e(37).changeDpiDataUrl,O=e(90);function L(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function M(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function B(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){function t(t){var n=new Image;return n.src=t,new Promise((function(t,e){n.onload=function(){t(n)}}))}var e,r,i,o,a,u,l,c,p,f,h,m;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(d){switch(d.label){case 0:e=n.entryId,r=n.goodsDetailList,i=Math.ceil(r.length/7),o=[],u=6,l=a=0,d.label=1;case 1:return l<i?(a+=6*l,u+=6*l,h=JSON.parse(JSON.stringify(r)),h=Array.from(h).slice(a,u),n.goodsDetailList=h,c="*"+e+"*",[4,t(O.default)]):[3,6];case 2:return p=d.sent(),m={errorCorrectionLevel:"M",margin:0,width:235},[4,g.a.toDataURL(c,m)];case 3:return[4,t(d.sent())];case 4:if(f=d.sent(),!(h=document.createElement("canvas")).getContext)return[2];m=h.getContext("2d"),h.width=2340,h.height=1653.5,m.scale(.5,.5),m.fillStyle="#fff",m.fillRect(0,0,4680,3307),m.drawImage(p,155,144,239,225),m.drawImage(f,4249,144,235,235),L({startX:152,startY:517,ctx:it=m,points:[{pointX:4488,pointY:517},{pointX:4488,pointY:3167},{pointX:152,pointY:3167},{pointX:152,pointY:517}],lineWidth:4,color:"#000"}),L({startX:152,startY:640,ctx:it,points:[{pointX:4488,pointY:640}],lineWidth:4,color:"#000"}),L({startX:152,startY:764,ctx:it,points:[{pointX:4488,pointY:764}],lineWidth:4,color:"#000"}),L({startX:152,startY:887,ctx:it,points:[{pointX:4488,pointY:887}],lineWidth:4,color:"#000"}),L({startX:152,startY:1010,ctx:it,points:[{pointX:4488,pointY:1010}],lineWidth:4,color:"#000"}),L({startX:152,startY:1134,ctx:it,points:[{pointX:4488,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:152,startY:1257,ctx:it,points:[{pointX:4488,pointY:1257}],lineWidth:4,color:"#000"}),L({startX:152,startY:1564,ctx:it,points:[{pointX:4488,pointY:1564}],lineWidth:4,color:"#000"}),L({startX:152,startY:1642,ctx:it,points:[{pointX:4488,pointY:1642}],lineWidth:4,color:"#000"}),L({startX:152,startY:1844,ctx:it,points:[{pointX:4488,pointY:1844}],lineWidth:4,color:"#000"}),L({startX:152,startY:2049,ctx:it,points:[{pointX:4488,pointY:2049}],lineWidth:4,color:"#000"}),L({startX:152,startY:2254,ctx:it,points:[{pointX:4488,pointY:2254}],lineWidth:4,color:"#000"}),L({startX:152,startY:2458,ctx:it,points:[{pointX:4488,pointY:2458}],lineWidth:4,color:"#000"}),L({startX:152,startY:2663,ctx:it,points:[{pointX:4488,pointY:2663}],lineWidth:4,color:"#000"}),L({startX:152,startY:2865,ctx:it,points:[{pointX:4488,pointY:2865}],lineWidth:4,color:"#000"}),L({startX:152,startY:2954,ctx:it,points:[{pointX:4488,pointY:2954}],lineWidth:4,color:"#000"}),L({startX:152,startY:3167,ctx:it,points:[{pointX:4488,pointY:3167}],lineWidth:4,color:"#000"}),L({startX:1499,startY:521,ctx:it,points:[{pointX:1499,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:2209,startY:521,ctx:it,points:[{pointX:2209,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:3038,startY:521,ctx:it,points:[{pointX:3038,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:3697,startY:521,ctx:it,points:[{pointX:3697,pointY:640}],lineWidth:4,color:"#000"}),L({startX:1698,startY:1010,ctx:it,points:[{pointX:1698,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:2715,startY:1010,ctx:it,points:[{pointX:2715,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:3522,startY:1010,ctx:it,points:[{pointX:3522,pointY:1134}],lineWidth:4,color:"#000"}),L({startX:4005,startY:1010,ctx:it,points:[{pointX:4005,pointY:1134}],lineWidth:4,color:"#000"}),rt=n,M(et=m,89,40,"中华人民共和国海关出口货物报关单",2340,180,"#000","normal 90px SimSun",1),M(et,38,30,"预录入编号:",155,449,"#000","normal 42px SimSun",0),M(et,38,30,"海关编号:",1522,449,"#000","normal 42px SimSun",0),M(et,38,30,"海关编号:",1522,449,"#000","normal 42px SimSun",0),M(et,38,30,"仅供核对用",3292,449,"#000","normal 42px SimSun",0),M(et,38,30,"页码/页数:",4171,449,"#000","normal 42px SimSun",0),M(et,38,30,"境内发货人",178,530,"#000","normal 42px SimSun",0),M(et,38,30,"出境关别 ("+rt.importExportPort+")",1527,530,"#000","normal 42px SimSun",0),M(et,38,30,"出口日期",2237,530,"#000","normal 42px SimSun",0),M(et,38,30,"申报日期",3066,530,"#000","normal 42px SimSun",0),M(et,38,30,"备案号",3720,530,"#000","normal 42px SimSun",0),M(et,38,30,"境外收货人",178,655,"#000","normal 42px SimSun",0),M(et,38,30,"运输方式 ("+rt.cusTrafficMode+")",1527,655,"#000","normal 42px SimSun",0),M(et,38,30,"运输工具名称及航次号",2237,655,"#000","normal 42px SimSun",0),M(et,38,30,"提运单号",3066,655,"#000","normal 42px SimSun",0),M(et,38,36,"生产销售单位 ("+rt.ownerSocialCreditCode+")",178,779,"#000","normal 42px SimSun",0),M(et,38,30,"监管方式 ("+rt.superviseModeCode+")",1527,779,"#000","normal 42px SimSun",0),M(et,38,30,"征免性质 ("+rt.cutMode+")",2237,779,"#000","normal 42px SimSun",0),M(et,38,30,"许可证号",3066,779,"#000","normal 42px SimSun",0),M(et,38,30,"合同协议号",178,901,"#000","normal 42px SimSun",0),M(et,38,30,"贸易国(地区)",1527,901,"#000","normal 42px SimSun",0),M(et,38,30,"运抵国(地区) ("+rt.cusTradeCountry+") ",2237,901,"#000","normal 42px SimSun",0),M(et,38,30,"指运港 ("+rt.distinatePort+")",3066,901,"#000","normal 42px SimSun",0),M(et,38,30,"离境口岸 ("+rt.departurePortCode+")",3720,901,"#000","normal 42px SimSun",0),M(et,38,30,"包装种类 ("+rt.wrapType+")",178,1023,"#000","normal 42px SimSun",0),M(et,38,30,"件数",1527,1023,"#000","normal 42px SimSun",0),M(et,38,30,"毛重(千克)",1724,1023,"#000","normal 42px SimSun",0),M(et,38,30,"净重(千克)",2237,1023,"#000","normal 42px SimSun",0),M(et,38,30,"成交方式 ("+rt.transacMode+")",2736,1023,"#000","normal 42px SimSun",0),M(et,38,30,"运费",3066,1023,"#000","normal 42px SimSun",0),M(et,38,30,"保费",3547,1023,"#000","normal 42px SimSun",0),M(et,38,30,"杂费",4028,1023,"#000","normal 42px SimSun",0),M(et,38,30,"附随单证及编号",178,1156,"#000","normal 42px SimSun",0),M(et,38,30,"标记唛码备注",178,1279,"#000","normal 42px SimSun",0),M(et,38,30,"项号",192,1585,"#000","normal 40px SimSun",0),M(et,38,30,"商品编号",400,1585,"#000","normal 40px SimSun",0),M(et,38,30,"商品名称及规格型号",1239,1585,"#000","normal 40px SimSun",0),M(et,38,30,"数量及单位",2279,1585,"#000","normal 40px SimSun",0),M(et,38,30,"单价/总价/币制",2626,1585,"#000","normal 40px SimSun",0),M(et,38,30,"原产国(地区)",2945,1585,"#000","normal 40px SimSun",0),M(et,38,30,"最终目的国(地区)",3226,1585,"#000","normal 40px SimSun",0),M(et,38,30,"境内货源地",3809,1585,"#000","normal 40px SimSun",0),M(et,38,30,"征免",4326,1585,"#000","normal 40px SimSun",0),M(et,38,30,"特殊关系确认:",783,2893,"#000","normal 42px SimSun",0),M(et,38,30,"价格影响确认:",1689,2893,"#000","normal 42px SimSun",0),M(et,38,30,"支付特许权使用费确认:",2596,2893,"#000","normal 42px SimSun",0),M(et,38,30,"自报自缴:",3678,2893,"#000","normal 42px SimSun",0),M(et,38,30,"报关人员",177,2993,"#000","normal 42px SimSun",0),M(et,38,30,"报关人员证号",660,2993,"#000","normal 42px SimSun",0),M(et,38,30,"电话",1315,2993,"#000","normal 42px SimSun",0),M(et,38,50,"兹申明对以上内容承担如实申报、依法纳税之法律责任",1822,2993,"#000","normal 42px SimSun",0),M(et,38,30,"海关批注及签章",3062,2993,"#000","normal 42px SimSun",0),M(et,38,30,"申报单位",177,3107,"#000","normal 42px SimSun",0),M(et,38,30,"申报单位(签章)",2515,3107,"#000","normal 42px SimSun",0),x=m,S=(v=n).preEntryId,y=v.entryId,b=v.consignorCname,w=v.importExportPortName,T=v.importExportDate,A=v.declareDate,E=v.manualNo,C=v.consigneeEname,Y=v.cusTrafficModeName,N=v.trafficName,P=v.billNo,X=v.ownerName,I=v.superviseModeCodeName,R=v.cutModeName,B=v.licenseNo,W=v.contractNo,v.cusTradeCountry,v.distinatePort,D=v.cusTradeCountryName,k=v.distinatePortName,F=v.departurePortCodeName,K=v.wrapTypeName,j=v.packNum,U=v.grossWeight,z=v.netWeight,H=v.transacModeName,Q=v.feeCurrency,J=v.feeMark,G=v.feeRate,V=v.insuranceCurrency,q=v.insuranceMark,Z=v.insuranceRate,$=v.otherCurrency,tt=v.otherMark,nt=v.otherRate,it=v.remark,rt=v.agentName,et=v.agentSocialCreditCode,v.ownerSocialCreditCode,ot(395,447,S),ot(1723,447,y),ot(180,580,b),ot(1529,587,w),ot(2240,587,T),ot(3069,587,A),ot(3724,587,E),ot(180,708,C),ot(1529,708,Y),ot(2239,708,N),ot(3066,708,P),ot(180,832,X),ot(1529,832,I),ot(2241,832,R),ot(3068,832,B),ot(179,953,W),ot(2239,953,D),ot(3069,953,k),ot(3720,953,F),ot(179,1075,K),ot(1529,1075,j),ot(1729,1075,U),ot(2240,1075,z),ot(2737,1075,H),ot(380,3105,rt+"("+et+")"),G&&J&&ot(3071,1079,(Q||"000")+"/"+G+"/"+J),Z&&q&&ot(3549,1079,(V||"000")+"/"+Z+"/"+q),nt&&tt&&ot(4030,1079,($||"000")+"/"+nt+"/"+tt),M(x,48,180,it,180,1333,"#000000","normal 48px SimSun",0),function(t,n){(void 0===(n=n.goodsDetailList)?[]:n).forEach((function(n,e){var r,i,o,a,s,u,l;s=196,o=1660+204*e,i=n.goodsNo,M(t,40,30,i,s,o,"#000000","normal 48px SimSun",0),u=401,r=1660+204*e,a=n.goodsCode,M(t,40,30,a,u,r,"#000000","normal 48px SimSun",0),l=1e3,i=1660+204*e,s=""+n.goodsName+n.specification,Array.from(s).length<120?M(t,54,44,s,l,i,"#000000","normal 48px SimSun",0):M(t,44,75,s,l,i,"#000000","normal 30px SimSun",0),o=2500,a=1660+204*e,r=(u={quantity:n.quantity,unit:n.unit,quantity1:n.quantity1,quantity2:n.quantity2,unit1Name:n.unit1Name,unit2Name:n.unit2Name}).quantity,s=u.unit,l=u.quantity1,i=u.quantity2,l=""+(l||"")+(u.unit1Name||""),u=""+(i||"")+(u.unit2Name||""),M(t,40,53,""+(r||"")+(s||""),o,a,"#000000","normal 48px SimSun",2),M(t,40,53,l,o,a+55,"#000000","normal 48px SimSun",2),M(t,40,53,u,o,a+110,"#000000","normal 48px SimSun",2),s=2860,l=1660+204*e,o=(u={unitPrice:n.unitPrice,declTotal:n.declTotal,tradeCurrency:n.tradeCurrency}).unitPrice,a=u.declTotal,u=u.tradeCurrency,M(t,40,53,o,s,l,"#000000","normal 48px SimSun",2),M(t,40,53,a,s,l+55,"#000000","normal 48px SimSun",2),M(t,40,53,u,s,l+110,"#000000","normal 48px SimSun",2),u=2960,s=1660+204*e,l=n.cusOriginCountryName+"("+n.cusOriginCountry+")",M(t,40,30,l,u,s,"#000000","normal 48px SimSun",0),l=3226,u=1660+204*e,s=n.destinationCountryName+"("+n.destinationCountry+")",M(t,40,53,s,l,u,"#000000","normal 48px SimSun",0),s=3800,l=1660+204*e,u=n.districtCodeName+"("+n.districtCode+")",M(t,40,53,u,s,l,"#000000","normal 48px SimSun",0),l=4280,e=1660+204*e,n=n.dutyModeName,M(t,40,53,n,l,e,"#000000","normal 48px SimSun",0)}))}(m,n),M(m,38,55,"*"+n.entryId+"*",3144,133,"#000000","normal 160px C39HrP24DhTt",0),M(m,38,30," "+(l+1)+"/"+i,4371,449,"#000","normal 38px SimSun",0),o.push(_(h.toDataURL("image/png",.92),300)),n.goodsDetailList=r,d.label=5;case 5:return l++,[3,1];case 6:return[2,o]}var x,v,S,y,b,w,T,A,E,C,Y,N,P,X,I,R,B,W,D,k,F,K,j,U,z,H,Q,J,G,V,q,Z,$,tt,nt,et,rt,it;function ot(t,n,e){s(e)<=56?M(x,38,56,e,t,n,"#000000","normal 48px SimSun",0):s(e)<=76?M(x,40,64,e,t,n-15,"#000000","normal 42px SimSun",0):M(x,30,66,e,t,n-4,"#000000","normal 40px SimSun",0)}}))}))}var W=e(37).changeDpiDataUrl,D=e(90);function k(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function F(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e),p=c.tlen,f=c.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",c=(n-Number(s.split(" ")[1].replace("px","")))/2,t.fillText(r.substr(0,p).replace(/^\s+|\s+$/,""),i,(l-1)*n+c+o),r=f?r.substr(p+1):r.substr(p)}t.save()}function K(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){function t(t){var n=new Image;return n.src=t,new Promise((function(t,e){n.onload=function(){t(n)}}))}var e,r,i;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(o){switch(o.label){case 0:return r=n.entryId,e="*"+r+"*",[4,t(D.default)];case 1:return o.sent(),i={errorCorrectionLevel:"M",margin:0,width:235},[4,g.a.toDataURL(e,i)];case 2:return[4,t(o.sent())];case 3:return o.sent(),(r=document.createElement("canvas")).getContext?(i=r.getContext("2d"),r.width=2340,r.height=1653.5,i.scale(.5,.5),i.fillStyle="#fff",i.fillRect(0,0,4680,3307),k({startX:512,startY:667,ctx:a=i,points:[{pointX:4169,pointY:667},{pointX:4169,pointY:2874},{pointX:512,pointY:2874},{pointX:512,pointY:667}],lineWidth:4,color:"#000"}),k({startX:623,startY:667,ctx:a,points:[{pointX:623,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:1001,startY:667,ctx:a,points:[{pointX:1001,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:968,startY:2029,ctx:a,points:[{pointX:968,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:1679,startY:2029,ctx:a,points:[{pointX:1679,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:2135,startY:2029,ctx:a,points:[{pointX:2135,pointY:2496}],lineWidth:4,color:"#000"}),k({startX:2813,startY:2029,ctx:a,points:[{pointX:2813,pointY:2874}],lineWidth:4,color:"#000"}),k({startX:3480,startY:2029,ctx:a,points:[{pointX:3480,pointY:2874}],lineWidth:4,color:"#000"}),k({startX:3169,startY:1890,ctx:a,points:[{pointX:3169,pointY:2029}],lineWidth:4,color:"#000"}),k({startX:3514,startY:1890,ctx:a,points:[{pointX:3514,pointY:2029}],lineWidth:4,color:"#000"}),k({startX:2074,startY:1134,ctx:a,points:[{pointX:2074,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:2519,startY:1134,ctx:a,points:[{pointX:2519,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:2752,startY:1134,ctx:a,points:[{pointX:2752,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:3247,startY:1134,ctx:a,points:[{pointX:3247,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:3514,startY:1134,ctx:a,points:[{pointX:3514,pointY:1890}],lineWidth:4,color:"#000"}),k({startX:1501,startY:823,ctx:a,points:[{pointX:1501,pointY:978}],lineWidth:4,color:"#000"}),k({startX:1801,startY:823,ctx:a,points:[{pointX:1801,pointY:978}],lineWidth:4,color:"#000"}),k({startX:2340,startY:667,ctx:a,points:[{pointX:2340,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:2451,startY:667,ctx:a,points:[{pointX:2451,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:2829,startY:667,ctx:a,points:[{pointX:2829,pointY:1134}],lineWidth:4,color:"#000"}),k({startX:623,startY:823,ctx:a,points:[{pointX:2340,pointY:823}],lineWidth:4,color:"#000"}),k({startX:623,startY:979,ctx:a,points:[{pointX:2340,pointY:979}],lineWidth:4,color:"#000"}),k({startX:2451,startY:823,ctx:a,points:[{pointX:4168,pointY:823}],lineWidth:4,color:"#000"}),k({startX:2451,startY:979,ctx:a,points:[{pointX:4168,pointY:979}],lineWidth:4,color:"#000"}),k({startX:512,startY:1135,ctx:a,points:[{pointX:4169,pointY:1135}],lineWidth:4,color:"#000"}),k({startX:512,startY:1291,ctx:a,points:[{pointX:4169,pointY:1291}],lineWidth:4,color:"#000"}),k({startX:512,startY:1891,ctx:a,points:[{pointX:4169,pointY:1891}],lineWidth:4,color:"#000"}),k({startX:512,startY:2030,ctx:a,points:[{pointX:4169,pointY:2030}],lineWidth:4,color:"#000"}),k({startX:512,startY:2186,ctx:a,points:[{pointX:2813,pointY:2186}],lineWidth:4,color:"#000"}),k({startX:512,startY:2342,ctx:a,points:[{pointX:2813,pointY:2342}],lineWidth:4,color:"#000"}),k({startX:512,startY:2498,ctx:a,points:[{pointX:2813,pointY:2498}],lineWidth:4,color:"#000"}),k({startX:2901,startY:2179,ctx:a,points:[{pointX:3390,pointY:2179}],lineWidth:4,color:"#000"}),k({startX:3574,startY:2179,ctx:a,points:[{pointX:4063,pointY:2179}],lineWidth:4,color:"#000"}),k({startX:3085,startY:2701,ctx:a,points:[{pointX:3452,pointY:2701}],lineWidth:4,color:"#000"}),F(a=i,183,20,"海关进口关税",1445,345,"#000","normal 133px SimSun",0),F(a,183,20,"专用缴款书",2507,345,"#000","normal 133px SimSun",0),F(a,94,20,"收入系统: 海关系统",667,567,"#000","normal 67px SimSun",0),F(a,94,10,"填发日期: ",1679,567,"#000","normal 67px SimSun",0),F(a,94,10,"号码 No.",3096,572,"#000","normal 67px SimSun",0),F(a,83,3,"收款单位",539,723,"#000","normal 67px SimSun",0),F(a,94,10,"收入机关",667,695,"#000","normal 67px SimSun",0),F(a,94,20,"科 目",667,850,"#000","normal 67px SimSun",0),F(a,94,10,"收款国库",667,1006,"#000","normal 67px SimSun",0),F(a,99,10,"预算级次",1523,850,"#000","normal 67px SimSun",0),F(a,83,3,"收款单位",2362,678,"#000","normal 67px SimSun",0),a.save(),a.translate(2440,1e3),a.rotate(90*Math.PI/180),F(a,83,3,"(",0,0,"#000","normal 67px SimSun",0),a.restore(),a.rotate(-90*Math.PI/180),a.translate(-2440,-1e3),a.translate(2440,1100),a.rotate(90*Math.PI/180),F(a,83,3,")",0,0,"#000","normal 67px SimSun",0),a.restore(),a.rotate(-90*Math.PI/180),a.translate(-2440,-1100),F(a,83,3,"人",2362,1017,"#000","normal 67px SimSun",0),F(a,83,20,"名 称",2496,695,"#000","normal 67px SimSun",0),F(a,83,20,"账 号",2496,850,"#000","normal 67px SimSun",0),F(a,83,20,"开户银行",2496,1006,"#000","normal 67px SimSun",0),F(a,83,20,"税 号",584,1162,"#000","normal 67px SimSun",0),F(a,83,30,"货 物 名 称",1234,1162,"#000","normal 67px SimSun",0),F(a,83,30,"数 量",2162,1162,"#000","normal 67px SimSun",0),F(a,83,10,"单位",2562,1162,"#000","normal 67px SimSun",0),F(a,83,20,"完税价格(¥)",2796,1162,"#000","normal 67px SimSun",0),F(a,83,20,"税率(%)",3263,1162,"#000","normal 67px SimSun",0),F(a,83,20,"税款金额(¥)",3641,1162,"#000","normal 67px SimSun",0),F(a,83,20,"金额人民币(大写)",606,1912,"#000","normal 67px SimSun",0),F(a,83,20,"合计(¥)",3207,1912,"#000","normal 67px SimSun",0),F(a,83,20,"申请单位编号",556,2057,"#000","normal 67px SimSun",0),F(a,83,20,"合同(批文)号",556,2212,"#000","normal 67px SimSun",0),F(a,83,20,"缴款期限",556,2368,"#000","normal 67px SimSun",0),F(a,83,20,"报关单编号",1723,2057,"#000","normal 67px SimSun",0),F(a,83,20,"运输工具(号)",1723,2212,"#000","normal 67px SimSun",0),F(a,83,20,"提/装货单号",1723,2368,"#000","normal 67px SimSun",0),F(a,83,3,"备注",550,2573,"#000","normal 67px SimSun",0),F(a,83,20,"填 制 单 位",2940,2079,"#000","normal 67px SimSun",0),F(a,83,30,"收款国库(银行)",3596,2079,"#000","normal 67px SimSun",0),F(a,83,20,"制单人",2874,2629,"#000","normal 67px SimSun",0),F(a,83,30,"复核人",2874,2740,"#000","normal 67px SimSun",0),F(a,83,100,"从填发缴款书之日起限15日内缴纳(期末遇法定节假日顺延),逾期按日征收税款总额万分之五的滞纳金",634,2885,"#000","normal 67px SimSun",0),function(t,n){var e=n.invoiceNo,r=(x=n.purchaserCoveringWarrantVo).exchequerNo,i=x.deliveryNum,o=(x.portCode,x.purchaserTaxNo2,x.drewDate),a=x.payDate,l=x.applyCompanyNo,c=x.incomeOrganization,p=x.contractNo,f=(x.sources,x.purchaserTaxNo1,x.amount),h=x.transportWay,m=x.manifestNo,d=x.purchaserName1,x=(x.budgetNo,x.tradeWay,x.purchaserName2);function g(n,e,r){s(r)<=11?F(t,94,60,r,n,e,"#000000","normal 67px SimSun",1):s(r)<=16?F(t,94,64,r,n,e,"#000000","normal 43px SimSun",1):F(t,94,66,r,n,e,"#000000","normal 40px SimSun",1)}function v(n,e,r,i){s(r)<=17?F(t,94,60,r,n,e,"#000000","normal 67px SimSun",i):s(r)<=20?F(t,94,64,r,n,e,"#000000","normal 43px SimSun",i):F(t,94,66,r,n,e,"#000000","normal 40px SimSun",i)}n=n.purchaserInvoiceDetailVOList,F(t,85,20,o,2014,567,"#000","normal 67px SimSun",0),F(t,85,40,e,3360,572,"#000","normal 67px SimSun",0),F(t,85,40,d,2851,667,"#000","normal 67px SimSun",0),F(t,85,40,x,2851,734,"#000","normal 67px SimSun",0),F(t,85,30,c,1023,667,"#000","normal 67px SimSun",0),F(t,85,30,"进口关税",1023,823,"#000","normal 67px SimSun",0),F(t,85,10,"中央",1812,823,"#000","normal 67px SimSun",0),F(t,85,30,r,1023,978,"#000","normal 67px SimSun",0),F(t,85,18,l,978,2029,"#000","normal 67px SimSun",0),F(t,85,18,p,978,2184,"#000","normal 67px SimSun",0),F(t,85,18,a,978,2340,"#000","normal 67px SimSun",0),F(t,85,18,m,2145,2029,"#000","normal 67px SimSun",0),F(t,85,18,h,2145,2184,"#000","normal 67px SimSun",0),F(t,85,18,i,2145,2340,"#000","normal 67px SimSun",0),F(t,85,50,u(f).replace("元","圆"),1212,1912,"#000","normal 67px SimSun",0),v(3524,1890,f,0),n&&Array.isArray(n)&&n.forEach((function(n,e){var r,i,o;r=522,i=1284+90*e,o=e+1+". "+n.taxInfo,s(o)<=13?F(t,94,60,o,r,i,"#000000","normal 67px SimSun",0):s(o)<=20?F(t,94,64,o,r,i,"#000000","normal 43px SimSun",0):F(t,94,66,o,r,i,"#000000","normal 40px SimSun",0),o=1023,r=1284+90*e,i=n.goodsName,s(i)<=30?F(t,94,60,i,o,r,"#000000","normal 67px SimSun",0):s(i)<=48?F(t,94,64,i,o,r,"#000000","normal 43px SimSun",0):F(t,94,66,i,o,r,"#000000","normal 40px SimSun",0),g(2290,1284+90*e,n.quantity),i=2630,o=1284+90*e,r=n.unit,s(r)<=6?F(t,94,60,r,i,o,"#000000","normal 67px SimSun",1):s(r)<=10?F(t,94,64,r,i,o,"#000000","normal 43px SimSun",1):F(t,94,66,r,i,o,"#000000","normal 40px SimSun",1),r=3240,i=1284+90*e,o=n.unitPrice,s(o)<=13?F(t,94,60,o,r,i,"#000000","normal 67px SimSun",2):s(o)<=20?F(t,94,64,o,r,i,"#000000","normal 43px SimSun",2):F(t,94,66,o,r,i,"#000000","normal 40px SimSun",2),g(3376,1284+90*e,n.taxRate),v(4150,1284+90*e,n.taxAmount,2)}))}(i,n),[2,W(r.toDataURL("image/png",.92),300)]):[2]}var a}))}))}e(157);function j(t,n,e,r,i,o,a,s,u){"number"==typeof(r=void 0===r?"":r)&&(r+=""),null==r&&(r=""),1===u?r.length<e&&(t.textAlign="center"):0===u?t.textAlign="left":2===u&&(t.textAlign="right");for(var l=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);l++){var c=(p=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,p=p.isNextLine;t.fillStyle=a,t.font=s,t.textBaseline="top",t.fillText(r.substr(0,c).replace(/^\s+|\s+$/,""),i,(l-1)*n+o),r=p?r.substr(c+1):r.substr(c)}t.save()}function U(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e,r,i,o,a,s,u;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(l){switch(l.label){case 0:return a=n.url,t=n.amountWithTax,e=n.remark,r=n.sellerName,i=n.orderCode,o=n.createTime,s={errorCorrectionLevel:"M",margin:0,width:800},[4,g.a.toDataURL(a,s)];case 1:return[4,(c=u=l.sent(),(p=new Image).src=c,new Promise((function(t,n){p.onload=function(){t(p)}})))];case 2:return a=l.sent(),(s=document.createElement("canvas")).getContext?(u=s.getContext("2d"),s.width=1200,s.height=1900,u.fillStyle="#fff",u.fillRect(0,0,1200,1900),u.fillStyle="#3378FF",u.fillRect(0,0,1200,280),u.fillStyle="rgba(255, 128, 0, 0.04)",u.fillRect(0,280,1200,104),u.drawImage(a,200,484,800,800),j(u,80,30,r,600,63,"#FFFFFF","Bold 56px Microsoft YaHei",1),j(u,52,60,"提醒:二维码有效期为15天,电子发票默认推送至客户定制邮箱",47,310,"#FF8000","400 40px Microsoft YaHei",0),j(u,52,16,"发票金额",200,1384,"#666666","400 40px Microsoft YaHei",0),j(u,52,16,"开票日期",200,1500,"#666666","400 40px Microsoft YaHei",0),j(u,52,16,"订单编号",200,1616,"#666666","400 40px Microsoft YaHei",0),j(u,52,8,"备注",200,1732,"#666666","400 40px Microsoft YaHei",0),j(u,52,20,t,1e3,1384,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,20,o,1e3,1500,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,20,i,1e3,1616,"#000000","Bold 40px Microsoft YaHei",2),j(u,52,36,e,1e3,1732,"#000000","Bold 40px Microsoft YaHei",2),[2,s.toDataURL()]):[2]}var c,p}))}))}function z(t){var n=t.startX,e=t.startY,r=t.ctx,i=t.points,o=void 0===(o=t.lineWidth)?4:o;t=void 0===(t=t.color)?"#000":t;r.beginPath(),r.moveTo(n,e),r.lineWidth=o,r.strokeStyle=t,i&&i.length&&i.forEach((function(t){r.lineTo(t.pointX,t.pointY)})),r.stroke(),r.closePath(),r.save()}function H(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){return(t=document.createElement("canvas")).getContext?(e=t.getContext("2d"),t.width=2480,t.height=3508,e.fillStyle="#fff",e.fillRect(0,0,2480,3508),z({startX:200,startY:472,ctx:o=e,points:[{pointX:2280,pointY:472},{pointX:2280,pointY:3303},{pointX:200,pointY:3303},{pointX:200,pointY:472}],lineWidth:4,color:"#000"}),z({startX:200,startY:672,ctx:o,points:[{pointX:2280,pointY:672}],lineWidth:4,color:"#000"}),z({startX:424,startY:572,ctx:o,points:[{pointX:1240,pointY:572}],lineWidth:4,color:"#000"}),z({startX:1464,startY:572,ctx:o,points:[{pointX:2280,pointY:572}],lineWidth:4,color:"#000"}),z({startX:424,startY:472,ctx:o,points:[{pointX:424,pointY:3303}],lineWidth:4,color:"#000"}),z({startX:738,startY:472,ctx:o,points:[{pointX:738,pointY:672}],lineWidth:4,color:"#000"}),z({startX:1240,startY:472,ctx:o,points:[{pointX:1240,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1464,startY:472,ctx:o,points:[{pointX:1464,pointY:672}],lineWidth:4,color:"#000"}),z({startX:1778,startY:472,ctx:o,points:[{pointX:1778,pointY:672}],lineWidth:4,color:"#000"}),z({startX:424,startY:784,ctx:o,points:[{pointX:2280,pointY:784}],lineWidth:4,color:"#000"}),z({startX:842,startY:672,ctx:o,points:[{pointX:842,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1240,startY:672,ctx:o,points:[{pointX:1240,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1518,startY:672,ctx:o,points:[{pointX:1518,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1796,startY:672,ctx:o,points:[{pointX:1796,pointY:784}],lineWidth:4,color:"#000"}),z({startX:1974,startY:672,ctx:o,points:[{pointX:1974,pointY:784}],lineWidth:4,color:"#000"}),z({startX:200,startY:1808,ctx:o,points:[{pointX:2280,pointY:1808}],lineWidth:4,color:"#000"}),z({startX:200,startY:2833,ctx:o,points:[{pointX:2280,pointY:2833}],lineWidth:4,color:"#000"}),z({startX:1090,startY:2419,ctx:o,points:[{pointX:1493,pointY:2419}],lineWidth:2,color:"#000"}),z({startX:1643,startY:2419,ctx:o,points:[{pointX:2055,pointY:2419}],lineWidth:2,color:"#000"}),z({startX:1090,startY:2750,ctx:o,points:[{pointX:1493,pointY:2750}],lineWidth:2,color:"#000"}),z({startX:1643,startY:2750,ctx:o,points:[{pointX:2055,pointY:2750}],lineWidth:2,color:"#000"}),z({startX:698,startY:1828,ctx:o,points:[{pointX:750,pointY:1828},{pointX:750,pointY:1880},{pointX:698,pointY:1880},{pointX:698,pointY:1828}],lineWidth:2,color:"#000"}),z({startX:910,startY:1957,ctx:o,points:[{pointX:962,pointY:1957},{pointX:962,pointY:2009},{pointX:910,pointY:2009},{pointX:910,pointY:1957}],lineWidth:2,color:"#000"}),z({startX:910,startY:2025,ctx:o,points:[{pointX:962,pointY:2025},{pointX:962,pointY:2077},{pointX:910,pointY:2077},{pointX:910,pointY:2025}],lineWidth:2,color:"#000"}),z({startX:698,startY:2486,ctx:o,points:[{pointX:750,pointY:2486},{pointX:750,pointY:2537},{pointX:698,pointY:2537},{pointX:698,pointY:2486}],lineWidth:2,color:"#000"}),m(i=e,64,40,"开具红字增值税专用发票信息表",1240,180,"#000","normal 64px Microsoft YaHei",1),m(i,40,40,"填开日期:",272,384,"#000","normal 40px Microsoft YaHei",0),m(i,48,10,"销售方",312,545,"#000","normal 48px SimSun",1),m(i,48,10,"购买方",1352,545,"#000","normal 48px SimSun",1),m(i,44,20,"名 称",581,497,"#000","normal 44px SimSun",1),m(i,44,20,"纳税人识别号",581,596,"#000","normal 44px SimSun",1),m(i,44,20,"名 称",1621,497,"#000","normal 44px SimSun",1),m(i,44,20,"纳税人识别号",1621,596,"#000","normal 44px SimSun",1),m(i,60,5,"开具红字专用发票内容",312,1054,"#000","normal 48px SimSun",1),m(i,44,18,"货物(劳务服务)名称",633,680,"#000","normal 44px SimSun",1),m(i,44,18,"数量",1046,703,"#000","normal 44px SimSun",1),m(i,44,18,"单价",1379,703,"#000","normal 44px SimSun",1),m(i,44,18,"金额",1662,703,"#000","normal 44px SimSun",1),m(i,44,18,"税率",1885,703,"#000","normal 44px SimSun",1),m(i,44,18,"税额",2137,703,"#000","normal 44px SimSun",1),m(i,44,18,"合计",590,1743,"#000","normal 44px SimSun",0),m(i,60,5,"说明",312,2296,"#000","normal 48px SimSun",1),m(i,48,20,"一、购买方",450,1830,"#000","normal 48px SimSun",0),m(i,48,100,"对应蓝字专用发票抵扣增值税销项税额情况:",536,1893,"#000","normal 44px SimSun",0),m(i,48,100,"1.已抵扣:",698,1961,"#000","normal 44px SimSun",0),m(i,48,100,"2.未抵扣:",698,2029,"#000","normal 44px SimSun",0),m(i,48,100,"对应蓝字专用发票的代码:",536,2351,"#000","normal 44px SimSun",0),m(i,48,100,"号码:",1504,2351,"#000","normal 44px SimSun",0),m(i,48,20,"二、销售方",450,2488,"#000","normal 48px SimSun",0),m(i,48,100,"对应蓝字专用发票的代码:",536,2691,"#000","normal 44px SimSun",0),m(i,48,100,"号码:",1504,2691,"#000","normal 44px SimSun",0),m(i,60,7,"红字发票信息表编号",240,2978,"#000","normal 48px SimSun",1),l=e,c=(a=n).applyTime,o=(u=new Date(c)).getFullYear(),a=(i=u.getMonth()+1).toString(),1<=i&&i<=9&&(a="0"+i),u=(i=u.getDate()).toString(),0<=i&&i<=9&&(u="0"+i),m(l,44,24,c?o+"年"+a+"月"+u+"日":"",500,378,"#000","normal 44px SimSun",0),m(l=e,48,24,(c=n).sellerName,753,476,"#000","normal 44px SimSun",0),m(l,48,24,c.sellerTaxNo,753,600,"#000","normal 44px SimSun",0),m(l,48,24,c.purchaserName,1786,476,"#000","normal 44px SimSun",0),m(l,48,24,c.purchaserTaxNo,1786,600,"#000","normal 44px SimSun",0),function(t,n){var e=n.details;function r(n,e,r){s(r)<=11?m(t,44,12,r,n,e,"#000000","normal 44px SimSun",2):s(r)<=14?m(t,36,15,r,n,e,"#000000","normal 36px SimSun",2):(s(r),m(t,20,20,r,n,e,"#000000","normal 26px SimSun",2))}function i(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":r,s(r)<=18?m(t,44,19,r,n,e,"#000000","normal 44px SimSun",2):s(r)<=22?m(t,36,23,r,n,e,"#000000","normal 36px SimSun",2):s(r)<=30?m(t,26,31,r,n,e,"#000000","normal 26px SimSun",2):s(r)<=34?m(t,24,35,r,n,e,"#000000","normal 24px SimSun",2):s(r)<=42?m(t,20,43,r,n,e,"#000000","normal 20px SimSun",0):m(t,20,43,r,n,e-4,"#000000","normal 20px SimSun",0)}e.forEach((function(n,e){var o,a,u,l,c,p,f;o=432,a=793+40*e,u=""+n.goodsName,s(u)<=18?m(t,44,19,u,o,a,"#000000","normal 44px SimSun",0):s(u)<=22?m(t,40,23,u,o,a,"#000000","normal 36px SimSun",0):s(u)<=30?m(t,26,31,u,o,a,"#000000","normal 26px SimSun",0):s(u)<=34?m(t,24,35,u,o,a,"#000000","normal 24px SimSun",0):s(u)<=42?m(t,20,43,u,o,a,"#000000","normal 20px SimSun",0):m(t,20,43,u,o,a-4,"#000000","normal 20px SimSun",0),n.quantity&&n.unitPrice&&(c=1238,l=793+40*e,f=n.quantity,s(f)<=18?m(t,44,19,f,c,l,"#000000","normal 44px SimSun",2):s(f)<=22?m(t,36,23,f,c,l,"#000000","normal 36px SimSun",2):s(f)<=30?m(t,26,31,f,c,l,"#000000","normal 26px SimSun",2):s(f)<=34?m(t,24,35,f,c,l,"#000000","normal 24px SimSun",2):s(f)<=42?m(t,20,43,f,c,l,"#000000","normal 20px SimSun",0):m(t,20,43,f,c,l-4,"#000000","normal 20px SimSun",0),p=1516,f=793+40*e,c=n.unitPrice,s(c)<=11?m(t,44,12,c,p,f,"#000000","normal 44px SimSun",2):s(c)<=14?m(t,36,15,c,p,f,"#000000","normal 36px SimSun",2):(s(c),m(t,20,20,c,p,f,"#000000","normal 26px SimSun",2))),r(1794,793+40*e,n.amount),l=1885,c=793+40*e,p=n.taxRate,0===(f=n).taxPre&&1===f.taxPreType&&1!==Number(f.invoiceType)&&4!==Number(f.invoiceType)?p="免税":0===f.taxPre&&2===f.taxPreType&&1!==Number(f.invoiceType)&&4!==Number(f.invoiceType)?p="不征税":"number"==typeof p&&(p=100*p+"%"),m(t,44,6,p,l,c,"#000000","normal 44px SimSun",1),i(2278,793+40*e,n.taxAmount,n)}));var o=e[0].amount;n=e[0].taxAmount,r(1794,1743,o&&"¥"+o),i(2278,1743,n&&"¥"+n,e[0])}(e,n),o=e,u=(a=n).applicationRole,l=a.invoiceCode,c=a.invoiceNo,a=a.deductFlag,1===u?(m(o,44,43,l,1090,2351,"#000000","normal 44px SimSun",0),m(o,44,43,c,1644,2351,"#000000","normal 44px SimSun",0),m(o,44,43,"√",698,1828,"#000000","normal 50px SimSun",0),1===a?m(o,44,43,"√",910,1957,"#000000","normal 50px SimSun",0):2===a&&m(o,44,43,"√",910,2025,"#000000","normal 50px SimSun",0)):(m(o,44,43,l,1090,2691,"#000000","normal 44px SimSun",0),m(o,44,43,c,1644,2691,"#000000","normal 44px SimSun",0),m(o,44,43,"√",698,2486,"#000000","normal 50px SimSun",0)),m(e,44,43,n.applicationNo,440,3043,"#000000","normal 50px SimSun",0),[2,t.toDataURL()]):[2];var i,o,a,u,l,c}))}))}function Q(t,n){t.lineWidth=4,t.strokeStyle="black",t.beginPath(),t.setLineDash([20,15]),t.moveTo(0,n),t.lineTo(630,n),t.stroke()}function J(t,n){t.beginPath(),t.lineWidth=4,t.strokeStyle="black",t.setLineDash([]),t.arc(116,n+60,60,0,2*Math.PI,!1),t.stroke()}function G(t){var n=t.data;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(this,void 0,void 0,(function(){var t,e;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(r){return(t=document.createElement("canvas")).getContext?(e=t.getContext("2d"),t.width=3508,t.height=2480,e.fillStyle="#fff",e.fillRect(0,0,3508,2480),i=e,n.forEach((function(t,n){0===n?i.translate(60,60):n<5?i.translate(690,0):5===n?i.translate(0,1210):i.translate(-690,0),function(t,n){t.fillStyle="#fff",t.fillRect(0,0,630,1150),Q(t,160),Q(t,542),J(t,198),m(t,65,40,"收",84,230,"#000","bold 65px Microsoft YaHei",0),J(t,580),m(t,65,40,"寄",84,612,"#000","bold 65px Microsoft YaHei",0),m(t,56,16,n.mailNo,315,32,"#000","normal 56px Bahnschrift",1),m(t,28,40,n.createTime,315,96,"#000","normal 28px Microsoft YaHei",1),m(t,42,26,n.sender,56,352,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.senderMobile,56,452,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.receiver,56,734,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.receiveAddress,56,834,"#000","normal 40px Microsoft YaHei",0),m(t,42,26,n.mailNo,315,970,"#000","normal 120px C39HrP24DhTt",1)}(i,t)})),[2,t.toDataURL()]):[2];var i}))}))}function V(){try{var t=navigator.userAgent;if(t.match(/Windows\sPhone/i))return!0;if(t.match(/iPhone|iPod|iPad/i))return!0;if(t.match(/Android/i))return!0;if(t.match(/Edge\D?\d+/i))return!0;var n=t.match(/Trident\D?\d+/i),e=t.match(/MSIE\D?\d+/i),r=t.match(/OPR\D?\d+/i),i=t.match(/Firefox\D?\d+/i),o=t.match(/x64/i);if(!n&&!e&&o)return!0;if(i){if(i=i[0].match(/\d+/),41<=Number(i[0])||o)return!0}else if(r){if(r=r[0].match(/\d+/),32<=Number(r[0]))return!0}else if(!n&&!e){var a=t.match(/Chrome\D?\d+/i);if(a&&(a=a[0].match(/\d+/),41<=Number(a[0])))return!0}return!1}catch(t){return!0}}var q=null,Z=function(t,n,e,r){var i,o="<br><font color='#000'>第一步:<br>请先安装打印所需字体!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/resource/%E5%AD%97%E4%BD%93.ttf' target='_self'>下载并双击打开后安装字体文件</a><br>(如已安装,请忽略)</font><br>";function a(t){t='\n <div style="width:500px;height:300px;padding: 20px 15px 0px 15px;z-index:99999;background:rgba(255,251,251,1);">\n <p style="text-align: right;margin: 0"><span class="icon-font" id="lodop-print-close" style="cursor:pointer"><img style="width: 20px" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAFKUlEQVR4Xu2bWc8URRSGX2IIUSOKK664RI0aWVwQccEt7oILeM8N/AN/hRfeypXXqCgKIu6K+woSYowxigqKCigKRo1LHnMm6Uy6TndXV9U3cabuYLqr6nmm+nTNOfVN05i3aWPOr4mAyQoYcwOTR2DMF0BjEDxC0gOSlkh6VdLDkr4dcWknS1pdmfODkn4NzbnpEVgraUXl5h32709GVMIFkh6VdFFlfo9IWhkj4DpJL9fcuN0kfDpiEs43+Itr5nWWpC/r5uutgJAA+tlmEj4bEQnnGvy8wHwuk/RBVwHzbQUcE+j0I5Pw+RRLOFvSY5IWBObxiqTrYx4B7mGF/O0AYpUY8cUUSTjT4C8NjE+sYn7ErtrWFAS5abqkPxzA9yQtl/RVYQlnGPzlgXGJUcATs4KtjQBuPlzSIaefd0zCN4UknGbwVwTGIzYBT6xyW1sBdHKUpANOb2+ZhN1Ng/b8/BSDvzLQDzEJeGJUY+sigM6OlbTX6fUNk/Bd48hxF8w2+KsCtxOL7pf0ftvuuwqg3xMl7XEG2GISvm87iZbXMS7R/prA9TsN/t2W/f13WYwA7mMZ7nIGYttMYPyxy2Sca4+39zx7k7r2tcG/3XW8WAGMQxTGeqixi0TCvq6TGrqex47t7Q2BfvgiWPZvxozTRwDjsQnxNkIvmoSfYiYniU0Y8DcF7ueHGfCvR/Yf/QhUxztPkve74HmT4L1B6uY/0+BvDsARh4B/LRa+TwwYHvNCb7clabNJCP4sHerwSAt4twbgfjB4trm9Wt9HoDo4P0S2OrPZJOk+Sb81zJhNF9H+9sB1vIb55l/qRW43pxRAl+zJvXfwBlsJvwcmP8Pg7wx8vt/gX0gBn/IRqM6H7an3OnrKJPw5BMFvDr75pQG4nw3+uVTwuQTQLzs1LzI/aRL+MpjDDP7uANwvBv9sSvicAuibPKIXpNaZBK7lm783AHfQ4J9JDZ9bAP3fKMl7XgGnsWGqawRMAh6xI0tLHQTrJsmrjDdA10agBJ6Yka2VEMDkiepPd6AgQAJPrMjaSgkAggD3RAsaAiPwxIjsraSAwbPO3j7U/jH4QWz43wkYLrTUASKIFVCklVwBbeAH0MUklBLQBb6ohBICPPhBjZGa3pQ8DrkFePDkEAYbIIIetb3iEnIK8ODJ2wP/sRHPte0wNb6iEnIJ8OBJoQE/nDugFslKOKekhBwCPHjy9sB/GIC8xCRQzi6yElIL8ODJIAPfVLSglM1KmFNCQkoBHjx5e+DbFi0WmoTTc0tIJcCDJ28PfNeixSKTcGpOCSkEePDk7YGPKlpIWmwSOPiUJSb0FeDBk7cHPrpoYcRXm4STckjoI8CDJ28PfK+iRQX4WpNwQmoJsQI8ePL21OfrTpgF5t/qvymM8nY4LqWEGAEePHl74KkJ5mgUSJEwK5WErgI8ePL2wFMLzNkolCLh6BQSugjw4MnbA08NsES7xQqnHNvp9XZoK8CDJ28PfEzmt4+s20wChdRoCW0EePDk7YHf2Iekx713mAQKqlESmgRwOnxVoHPy9sB3SXf3YA3eepdJoLBa19bY6fHaDz0BbDxCp73I2wO/PgdRRJ/LTAIF1rrGmabaY/6eAJIUdQcNydsD3ybHH8ESfcs9JoFC63CLOixNJ2xmqiezyNsD/3j0NPPeyAEMMsrVL7bXYWnK3PzFCDV7nnWep2yFykRuKMMRt4gNvJkekhQ8U9AUBBPNaXS7mQgY3e+mzMwmK6CM59EdZexXwL8Q0/tB+Dg3tAAAAABJRU5ErkJggg=="></img></span></p>\n '.concat(t,"\n </div>");var n=document.createElement("div");n.style.cssText="background:rgba(0,0,0,0.3);position:fixed;top:0%;left:0%;width:100%;height:100%;z-index:99999;display: flex;justify-content: center;align-items: center;",n.innerHTML=t,document.body.appendChild(n),document.getElementById("lodop-print-close").onclick=function(){document.body.removeChild(n)}}try{var s=navigator.userAgent,u=!!s.match(/MSIE/i)||!!s.match(/Trident/i);if(V()){try{i=window.getCLodop()}catch(t){}if(!i&&"complete"!==document.readyState)return;if(!i)return void a(o+"<br><font color='#000'>第二步:<br>Web打印服务CLodop未安装启动,点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>"+(r?"<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)":"")+",成功后请刷新本页面。</font>");window.CLODOP.CVERSION<"3.0.6.0"&&a(o+"<br><font color='#000'>第二步:<br>Web打印服务CLodop需升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>"),n&&n.parentNode&&n.parentNode.removeChild(n),t&&t.parentNode&&t.parentNode.removeChild(t)}else{var l=u&&!!s.match(/x64/i);if(t||n?i=u?t:n:q?i=q:((i=document.createElement("object")).setAttribute("width",0),i.setAttribute("height",0),i.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),u?i.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):i.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(i),q=i,(i=document.createElement("object")).setAttribute("width",0),i.setAttribute("height",0),i.setAttribute("style","position:absolute;left:0px;top:-100px;width:0px;height:0px;"),u?i.setAttribute("classid","clsid:2105C259-1E0C-4534-8141-A753534CB4CA"):i.setAttribute("type","application/x-print-lodop"),document.documentElement.appendChild(i),q=i),!i||!i.VERSION)return 0<=s.indexOf("Chrome")&&a("<br><br><font color='#000'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>"),0<=s.indexOf("Firefox")&&a("<br><br><font color='#000'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>"),a(l?"<br><font color='#000'>第二步:<br>打印控件未安装!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>":"<br><font color='#000'>第二步:<br>打印控件未安装!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>"),i}return i.VERSION<"6.2.2.4"?(V()||a(l?"<br><font color='#000'>第二步:<br>打印控件需要升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>":"<br><font color='#000'>第二步:<br>打印控件需要升级!点击这里<a href='https://smarttax-basic.oss-cn-shanghai.aliyuncs.com/lodop_plugin/install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>"),i):(i.SET_LICENSES("",e,"",""),i)}catch(t){alert("getLodop出错:"+t)}};function $(t){return t.toString().includes("mm")?Number(t.split("mm")[0]):t.toString().includes("pt")?.376*t.split("pt")[0]:Number(25.4*t/96)}function tt(t,n,e,r,i,o,a,s,u,l,c){void 0===u&&(u=1),void 0===l&&(l=null),void 0===c&&(c=.3),"number"==typeof r&&(r+=""),null==r&&(r="");for(var p=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);p++){var f=(d=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,h=d.isNextLine,m=(p-1)*$(n)+$(o)+"mm",d=l||e/2*a+a+"pt";t.ADD_PRINT_TEXT(m,i,d,18,r.substr(0,f).replace(/^\s+|\s+$/,"")),r=h?r.substr(f+1):r.substr(f),t.SET_PRINT_STYLEA(0,"FontSize",a),t.SET_PRINT_STYLEA(0,"LineSpacing",-3),t.SET_PRINT_STYLEA(0,"LetterSpacing",c),t.SET_PRINT_STYLEA(0,"TextNeatRow",!0),t.SET_PRINT_STYLEA(0,"FontName",s),2===u?r.length<e&&t.SET_PRINT_STYLEA(0,"Alignment",2):1===u?t.SET_PRINT_STYLEA(0,"Alignment",1):3===u&&t.SET_PRINT_STYLEA(0,"Alignment",3)}}function nt(t){var n,e=t.data,r=t.top,o=void 0===r?0:r,a=void 0===(S=t.left)?0:S,l=t.showWindow,c=void 0!==l&&l,p=t.toolsType,h=t.licenses,m=void 0===h?"":h,d=t.company,x=void 0===d?"":d,g=t.getProjectLodop,v=void 0===g?Z:g,S=void 0===(r=t.isInitPrinter)?1:r;p=void 0===(l=t.printer)?"":l;function y(t,e,r){s(r)<=48?tt(n,"9pt",49,r,t,e,9,"宋体",1,"80mm"):s(r)<=62?tt(n,"7pt",60,r,t,e,7.5,"宋体",1,"84mm"):tt(n,"7pt",69,r,t,e,6.5,"宋体",1,"88mm")}a-=16,(h=v("","",m))&&(h.PRINT_INITA(o,a,"241.3mm","139.7mm",e.invoiceCode+" "+e.invoiceNo),h.SET_PRINT_PAGESIZE(1,"241.3mm","139.7mm",""),h.SET_SHOW_MODE("LANGUAGE",0),h.SET_LICENSES(x,m,"",""),0===S&&p&&h.SET_PRINTER_INDEXA(p),function(t,n){var e=n.invoiceType,r=n.invoiceCode,o=n.invoiceNo,a=n.amount,s=n.drewDate,u=n.checkCode,l="10";1===Number(e)?l="01":2===Number(e)?l="04":3===Number(e)?l="10":4===Number(e)&&(l="08");var c=new Date(s),p=c.getFullYear();e=(n=c.getMonth()+1).toString();1<=n&&n<=9&&(e="0"+n),c=(n=c.getDate()).toString(),0<=n&&n<=9&&(c="0"+n),c=s?""+p+e+c:"",u=(u="01,"+l+","+r+","+o+","+(a||0===a?Number(a).toFixed(2):a)+","+c+","+u)+","+i.ToCRC16(u,!0),t.ADD_PRINT_BARCODE("3.5mm","8.5mm","22.00mm","22.00mm","QRCode",u),t.SET_PRINT_STYLEA(0,"GroundColor","#FFFFFF"),t.SET_PRINT_STYLEA(0,"QRCodeVersion",5),t.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","L"),t.SET_PRINT_STYLEA(0,"DataCharset","GB2312")}(h,e),function(t,n){var e,r,i,o,a=n.invoiceCode,s=n.invoiceNo,u=n.drewDate,l=n.checkCode,c=(n.machineCode,n.invoiceStatus,n.status,n.invoiceType);(e=u)&&(o=null,r=(o=u&&-1===u.indexOf("-")&&-1===u.indexOf("年")?new Date(Number(u)):new Date(e)).getFullYear(),e=(i=o.getMonth()+1).toString(),1<=i&&i<=9&&(e="0"+i),o=(i=o.getDate()).toString(),tt(t,"9pt",42,r+"年"+e+"月"+(o=0<=i&&i<=9?"0"+i:o)+"日","175mm","18mm",9,"宋体")),function(n){if(!f(n=void 0===n?"":n)&&1!==Number(c)&&4!==Number(c)){tt(t,"9pt",8,"校验码","30mm","18mm",9,"宋体");for(var e=n.length/4,r=0;r<4;r++){var i=n.substr(0===r?0:e*r,e);tt(t,"9pt",6,i,42+10*r+"mm","18mm",9,"宋体")}}}(l),tt(t,"9pt",42,a,"178mm","8mm",8,"宋体",2,"38mm"),tt(t,"9pt",42,s,"178mm","13mm",11,"宋体",2,"38mm")}(h,e),n=h,g=(d=e).purchaserName,r=e.purchaserTaxNo,t=e.purchaserAddress,l=e.purchaserTel,v=e.purchaserBankName,o=e.purchaserBankAccount,a=e.sellerName,x=e.sellerTaxNo,m=e.sellerAddress,S=e.sellerTel,p=e.sellerBankName,d=e.sellerBankAccount,y("36mm","26mm",g),tt(n,"9pt",30,r,"39mm","31mm",12,"Courier New"),y("36mm","36mm",""+(t||"")+(l||"")),y("36mm","41mm",""+(v||"")+(o||"")),y("36mm","100mm",a),tt(n,"9pt",30,x,"39mm","105mm",12,"Courier New"),y("36mm","110mm",""+(m||"")+(S||"")),y("36mm","115mm",""+(p||"")+(d||"")),function(t,n){var e=void 0===(n=n.ciphertext)?"":n;if(!f(e))for(var r=e.length/4,i=0;i<4;i++)tt(t,"9pt",36,e.substr(0===i?0:r*i,r),"126mm",26+5*i+"mm",12,"Courier New")}(h,e),function(t,n){var e,r,i,o,a=n.details,u=n.amount,l=n.taxAmount,c=(n.taxRate,n.listFlag),p=n.qdbz;function h(n,e,r,i){i?tt(t,"9pt",29,r,n,e,9,"宋体",0,"53mm"):s(r)<=31?tt(t,"9pt",32,r,n,e,9,"宋体",0,"53mm"):s(r)<=34?tt(t,"8pt",36,r,n,e,8,"宋体",0,"54mm"):s(r)<=40?tt(t,"7pt",42,r,n,e,7,"宋体",0,"54mm"):s(r)<=47?tt(t,"6pt",48,r,n,e,6,"宋体",0,"54mm"):(s(r),tt(t,"5.5pt",52,r,n,e,5.5,"宋体",0,"54mm"))}function m(n,e,r){s(r)<=14?tt(t,"9pt",15,r,n,e,9,"宋体",0,"26mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,7,"宋体",0,"26mm"):s(r)<=19?tt(t,"9pt",20,r,n,e,6.5,"宋体",0,"26mm"):tt(t,"4.5pt",22,r,n,e,5.5,"宋体",0,"26mm")}function d(n,e,r){s(r)<=7?tt(t,"9pt",8,r,n,e,9,"宋体",2):s(r)<=9?tt(t,"9pt",10,r,n,e,7,"宋体",2):s(r)<=11?tt(t,"9pt",12,r,n,e,6,"宋体",2):s(r)<=13?tt(t,"9pt",14,r,n,e,5,"宋体",2):s(r)<=17?tt(t,"9pt",18,r,n,e,4,"宋体",2):tt(t,"5pt",18,r,n,e,4,"宋体",2)}function x(n,e,r){s(r)<=9?tt(t,"9pt",11,r,n,e,9,"宋体",3,"20mm"):s(r)<=12?tt(t,"9pt",13,r,n,e,7,"宋体",3,"20mm"):s(r)<=14?tt(t,"9pt",15,r,n,e,7,"宋体",3,"20mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,6,"宋体",3,"20mm"):tt(t,"6pt",17,r,n,e,6,"宋体",3,"20mm")}function g(n,e,r){s(r)<=9?tt(t,"9pt",11,r,n,e,9,"宋体",3,"22mm"):s(r)<=12?tt(t,"9pt",13,r,n,e,8,"宋体",3,"22mm"):s(r)<=14?tt(t,"9pt",15,r,n,e,7,"宋体",3,"22mm"):s(r)<=16?tt(t,"9pt",17,r,n,e,6,"宋体",3,"22mm"):tt(t,"6pt",17,r,n,e,6,"宋体",3,"22mm")}function v(n,e,r){r=r||0===r?Number(r).toFixed(2):r,tt(t,"9pt",18,r,n,e,9,"宋体",3,"28mm")}function S(n,e,r,i){i&&(0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="免税":0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?r="不征税":"number"==typeof r&&(r=100*r+"%")),s(r)<=5?tt(t,"9pt",6,r,n,e,9,"宋体",3,"12mm",1):s(r)<=6?tt(t,"8pt",7,r,n,e,8,"宋体",3,"12mm",1):s(r)<=7?tt(t,"7pt",8,r,n,e,7,"宋体",3,"12mm",1):(s(r),tt(t,"6pt",9,r,n,e,6,"宋体",3,"12mm",1))}function y(n,e,r,i){r=0===i.taxPre&&1===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)||0===i.taxPre&&2===i.taxPreType&&1!==Number(i.invoiceType)&&4!==Number(i.invoiceType)?"***":f(r)?"":0===r?"***":Number(r).toFixed(2),tt(t,"9pt",18,r,n,e,9,"宋体",3,"28mm")}1===c||8<a.length||1===p?(h("7mm","52mm",0<=u?"(详见销货清单)":"详见对应正数发票及清单"),v("134mm","52mm",u),function(t){var n,e=[];t.details.forEach((function(r,i){n=0===r.taxPre&&1===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"免税":0===r.taxPre&&2===r.taxPreType&&1!==Number(t.invoiceType)&&4!==Number(t.invoiceType)?"不征税":"number"==typeof r.taxRate?100*r.taxRate+"%":r.taxRate,e.includes(n)||e.push(n)})),1===e.length?S("162mm","52mm",e[0],""):2===e.length&&e.includes("免税")&&e.includes("不征税")&&S("162mm","52mm","零税率","")}(n),function(n){var e;f(n.taxAmount)?e=n.taxAmount.toFixed(2):"number"==typeof n.taxAmount&&(e=0===n.taxAmount?"***":n.taxAmount.toFixed(2)),tt(t,"9pt",18,e,"175mm","52mm",9,"宋体",3,"28mm")}(n)):(e=function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e},o=i=r=0,a.forEach((function(t,n){r+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/28)})),a.forEach((function(t,n){var a,s;r<=8?(0!==n&&(o=3.5*i),i+=Math.ceil(e(""+(t.shortName||"")+t.goodsName)/28),h("6mm",52+o+"mm",""+(t.shortName||"")+t.goodsName,"newSize"),m("57mm",52+o+"mm",t.specification),d("80mm",52+o+"mm",t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),x("92mm",52+o+"mm",13<a.length?a.substr(0,13):a),g("112mm",52+o+"mm",13<s.length?s.substr(0,13):s)),v("134mm",52+o+"mm",t.amount),S("162mm",52+o+"mm",t.taxRate,t),y("175mm",52+o+"mm",t.taxAmount,t)):(h("6mm",52+4*n+"mm",""+(t.shortName||"")+t.goodsName),m("57mm",52+4*n+"mm",t.specification),d("80mm",52+4*n+"mm",t.unit),t.quantity&&t.unitPrice&&(a=String(t.quantity),s=String(t.unitPrice),x("92mm",52+4*n+"mm",13<a.length?a.substr(0,13):a),g("112mm",52+4*n+"mm",13<s.length?s.substr(0,13):s)),v("134mm",52+4*n+"mm",t.amount),S("162mm",52+4*n+"mm",t.taxRate,t),y("175mm",52+4*n+"mm",t.taxAmount,t))}))),n="134mm",a="86mm",u=(u=u)||0===u?Number(u).toFixed(2):u,tt(t,"9pt",18,"¥"+u,n,a,9,"Courier New",3,"28mm"),""!==(l=f(l)?"":0===l?"***":l)&&"***"!==l&&(l="¥"+(l=l||0===l?Number(l).toFixed(2):l)),tt(t,"9pt",18,l,"175mm","86mm",9,"Courier New",3,"28mm")}(h,e),function(t,n){var e,r,i=n.amountWithTax;r="60mm",e="94.2mm",n="4mm",t.ADD_PRINT_ELLIPSE($(e)-$(n)/2+"mm",$(r)-$(n)/2+"mm",n,n,0,1),n=Math.sqrt($(n)/2),t.ADD_PRINT_LINE($(e)-n+"mm",$(r)-n+"mm",$(e)+n+"mm",$(r)+n+"mm",0,1),t.ADD_PRINT_LINE($(e)-n+"mm",$(r)+n+"mm",$(e)+n+"mm",$(r)-n+"mm",0,1),e="63mm",r="93mm",tt(t,"9pt",56,n=0<(n=i)?u(n).replace("元","圆"):"(负数)"+u(Math.abs(n)).replace("元","圆"),e,r,9,"宋体",0,"96mm"),tt(t,"9pt",56,"¥"+(i=i||0===i?Number(i).toFixed(2):i),"168mm","93mm",11,"Courier New",0,"37mm")}(h,e),m=(m=e).remark,tt(h,"9pt",50,(m=f(m)?"":m).replace(/\\r\\n/g,"\n")||"","126mm","100mm",9,"宋体"),S=h,d=(p=e).payee,m=e.reviewer,p=e.drawer,tt(S,"9pt",50,d,"22mm","121mm",9,"宋体"),tt(S,"9pt",50,m,"74mm","121mm",9,"宋体"),tt(S,"9pt",50,p,"121mm","121mm",9,"宋体"),function(t,n){n.invoiceStatus,n.status;var e=n.amountWithTax,r=n.amount;e<0&&r<0&&tt(t,"9pt",42,"销项负数","30mm","14mm",9,"黑体"),1===n.specialFlag&&tt(t,"9pt",42,"成品油","30mm","10mm",9,"黑体"),3===n.specialFlag&&tt(t,"9pt",42,"机动车","30mm","10mm",9,"黑体")}(h,e),c?h.PREVIEW():h.PRINT())}var et={0:"类型异常",1:"增值税专用发票",2:"增值税普通发票",3:"增值税电子发票"},rt=function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))},it=function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}};function ot(t){return t.toString().includes("mm")?Number(t.split("mm")[0]):t.toString().includes("pt")?.376*t.split("pt")[0]:Number(25.4*t/96)}function at(t,n,e,r,i,o,a,s,u,l){void 0===u&&(u=1),void 0===l&&(l=null),"number"==typeof r&&(r+=""),null==r&&(r="");for(var c=1;0<function(t){for(var n=t.length,e=0,r=0;r<n;r++)128<t.charCodeAt(r)?e+=2:e+=1;return e}(r);c++){var p=(m=function(t,n){for(var e=t.length,r=e,i=0,o=!1,a=0;a<e;a++){if(o="\n"===t.substr(a,1)){r=a;break}if(128<t.charCodeAt(a)){if(!(i+2<n)){r=a;break}i+=2}else{if(!(i+1<n)){r=a;break}i+=1}}return{tlen:r,isNextLine:o}}(r,e)).tlen,f=m.isNextLine,h=(c-1)*ot(n)+ot(o)+"mm",m=l||e/2*a+a+"pt";t.ADD_PRINT_TEXT(h,i,m,18,r.substr(0,p).replace(/^\s+|\s+$/,"")),r=f?r.substr(p+1):r.substr(p),t.SET_PRINT_STYLEA(0,"FontSize",a),t.SET_PRINT_STYLEA(0,"LineSpacing",-3),t.SET_PRINT_STYLEA(0,"TextNeatRow",!0),t.SET_PRINT_STYLEA(0,"FontName",s),2===u?r.length<e&&t.SET_PRINT_STYLEA(0,"Alignment",2):1===u?t.SET_PRINT_STYLEA(0,"Alignment",1):3===u&&t.SET_PRINT_STYLEA(0,"Alignment",3)}}function st(t){var n=t.data,e=t.top,r=void 0===e?0:e,i=void 0===(e=t.left)?0:e,o=void 0!==(e=t.showWindow)&&e,a=void 0===(e=t.licenses)?"":e,s=void 0===(e=t.company)?"":e,u=void 0===(e=t.getProjectLodop)?Z:e,l=void 0===(e=t.isInitPrinter)?1:e,c=void 0===(t=t.printer)?"":t;return function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(e){return(t=u("","",a))&&(t.PRINT_INITA(r,i,"80mm","100mm","开票二维码"),t.SET_PRINT_PAGESIZE(1,"80mm","100mm",""),t.SET_SHOW_MODE("LANGUAGE",0),t.SET_LICENSES(s,a,"",""),0===l&&c&&t.SET_PRINTER_INDEXA(c),at(t,"10pt",28,n.sellerName,"3mm","5mm",10,"宋体",2),at(t,"9pt",40,"二维码有限期为15天,请及时开票!","4mm","15mm",7,"宋体",2),at(t,"9pt",40,"开票金额:","5mm","70mm",7,"宋体",1),at(t,"9pt",32,n.amountWithTax+"元","5mm","70mm",8,"宋体",3),at(t,"9pt",40,"订单编号:","5mm","75mm",7,"宋体",1),at(t,"9pt",32,""+n.orderCode,"10mm","75mm",7,"宋体",3),at(t,"9pt",40,"生成时间:","5mm","80mm",7,"宋体",1),at(t,"9pt",32,""+n.createTime,"10mm","80mm",7,"宋体",3),(p=t).ADD_PRINT_BARCODE("20mm","7mm","60.00mm","60.00mm","QRCode",""+n.url),p.SET_PRINT_STYLEA(0,"GroundColor","#FFFFFF"),p.SET_PRINT_STYLEA(0,"QRCodeVersion",10),p.SET_PRINT_STYLEA(0,"QRCodeErrorLevel","L"),p.SET_PRINT_STYLEA(0,"DataCharset","GB2312"),o?t.PREVIEW():t.PRINT()),[2];var p}))}))}function ut(t){var n,e,r,i,o,a,s,u,l,c;e=(n=t).data,t=n.top,r=void 0===t?0:t,t=n.left,i=void 0===t?0:t,t=n.showWindow,o=void 0!==t&&t,t=n.licenses,a=void 0===t?"":t,t=n.company,s=void 0===t?"":t,t=n.getProjectLodop,u=void 0===t?Z:t,t=n.isInitPrinter,l=void 0===t?1:t,n=n.printer,c=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(p){switch(p.label){case 0:t="",p.label=1;case 1:return p.trys.push([1,3,,4]),[4,H({data:e})];case 2:return t=p.sent(),[3,4];case 3:return p.sent(),[3,4];case 4:return(n=u("","",a))?(n.PRINT_INITA(r,i,"210mm","297mm",e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(1,"210mm","297mm",""),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(s,a,"",""),0===l&&c&&n.SET_PRINTER_INDEXA(c),n.ADD_PRINT_IMAGE(0,0,"100%","100%",t),n.SET_PRINT_STYLEA(0,"Stretch",2),o?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function lt(t){var n,e,r,i,o,a,s,u;e=(n=t).data,n.top,n.left,t=n.showWindow,r=void 0!==t&&t,t=n.licenses,i=void 0===t?"":t,t=n.company,o=void 0===t?"":t,t=n.getProjectLodop,a=void 0===t?Z:t,t=n.isInitPrinter,s=void 0===t?1:t,n=n.printer,u=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(l){switch(l.label){case 0:t="",l.label=1;case 1:return l.trys.push([1,3,,4]),[4,b({data:e,showSample:!1})];case 2:return t=l.sent(),[3,4];case 3:return l.sent(),[3,4];case 4:return(n=a("","",i))?(n.PRINT_INIT(e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(2,0,0,"A4"),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(o,i,"",""),0===s&&u&&n.SET_PRINTER_INDEXA(u),n.ADD_PRINT_IMAGE(0,0,"200mm","133.2mm",t),n.SET_PRINT_STYLEA(0,"Stretch",1),n.SET_PRINT_STYLEA(0,"Horient",2),r?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function ct(t){var n,e,r,i,o,a,s,u,l,c;e=(n=t).data,t=n.top,r=void 0===t?0:t,t=n.left,i=void 0===t?0:t,t=n.showWindow,o=void 0!==t&&t,t=n.licenses,a=void 0===t?"":t,t=n.company,s=void 0===t?"":t,t=n.getProjectLodop,u=void 0===t?Z:t,t=n.isInitPrinter,l=void 0===t?1:t,n=n.printer,c=void 0===n?"":n,function(t,n,e,r){new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))}(void 0,void 0,void 0,(function(){var t,n;return function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}(this,(function(p){switch(p.label){case 0:t="",p.label=1;case 1:return p.trys.push([1,3,,4]),[4,G({data:e})];case 2:return t=p.sent(),[3,4];case 3:return p.sent(),[3,4];case 4:return(n=u("","",a))?(n.PRINT_INITA(r,i,"297mm","210mm",e.invoiceCode+" "+e.invoiceNo),n.SET_PRINT_PAGESIZE(2,"210mm","297mm",""),n.SET_SHOW_MODE("LANGUAGE",0),n.SET_LICENSES(s,a,"",""),0===l&&c&&n.SET_PRINTER_INDEXA(c),n.ADD_PRINT_IMAGE(0,0,"100%","100%",t),n.SET_PRINT_STYLEA(0,"Stretch",2),o?n.PREVIEW():n.PRINT(),[2]):[2]}}))}))}function pt(t){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var ft=function(){return(ft=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var i in n=arguments[e])Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t}).apply(this,arguments)},ht=function(t,n,e,r){return new(e=e||Promise)((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var n;t.done?i(t.value):((n=t.value)instanceof e?n:new e((function(t){t(n)}))).then(a,s)}u((r=r.apply(t,n||[])).next())}))},mt=function(t,n){var e,r,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a={next:s(0),throw:s(1),return:s(2)};return"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(e)throw new TypeError("Generator is already executing.");for(;o;)try{if(e=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,(a=i?[2&a[0],i.value]:a)[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=0<(i=o.trys).length&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=n.call(t,o)}catch(t){a=[6,t],r=0}finally{e=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},dt=function(t,n){var e={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.indexOf(i)<0&&(e[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)n.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(e[i[r]]=t[i[r]]);return e};xt.prototype.getInvoiceSample=function(t){var n=!0,e="bottom";t&&"object"===pt(t)&&(n=t.showSample,e=t.samplePosition);try{return b({data:this.invoiceData,showSample:n,samplePosition:e})}catch(t){}},xt.prototype.getMotorVehicleInvoiceSample=function(t){var n=!0;t&&"object"===pt(t)&&(n=t.showSample);try{return N({data:this.invoiceData,showSample:n})}catch(t){}},xt.prototype.getInvoiceListSample=function(){try{return t=this.invoiceData,(n=function(t,n){for(var e=0,r=[];e<t.length;)r.push(t.slice(e,e+=26));return r}(t.details)).map((function(e,r){var i=0,o=0,a=0,s=0;return e.forEach((function(t){1===t.invoiceLineType?(a=l.add(a,t.amount),s=l.add(s,t.taxAmount)):(i=l.add(i,t.amount),o=l.add(o,t.taxAmount))})),R(P(P({},t),{details:e,invoiceListTotalCount:n.length,invoiceListCurrent:r+1,subtotalAmount:i.toFixed(2),subtotalTaxAmount:o.toFixed(2),discountAmount:a.toFixed(2),discountTaxAmount:s.toFixed(2)}))}))}catch(t){}var t,n},xt.prototype.getFullElectricity=function(t){var n=!0,e="bottom";t&&"object"===pt(t)&&(n=t.showSample,e=t.samplePosition);try{return function(t){var n=t.data,e=(t.showSample,t.samplePosition),r=document.createElement("canvas");if(r.getContext){var o=r.getContext("2d");return function(t,n,e){var r=t.invoiceType,o=t.invoiceCode,a=t.invoiceNo,s=t.amount,u=t.drewDate,l=t.checkCode,c="10";1===Number(r)?c="01":2===Number(r)?c="04":3===Number(r)?c="10":4===Number(r)&&(c="08");var p=new Date(u),f=p.getFullYear();r=(t=p.getMonth()+1).toString();1<=t&&t<=9&&(r="0"+t),p=(t=p.getDate()).toString(),0<=t&&t<=9&&(p="0"+t),p=u?""+f+r+p:"",p="01,"+c+","+o+","+a+","+(s||0===s?Number(s).toFixed(2):s)+","+p+","+l+",",l=i.ToCRC16(p,!0),g.a.toCanvas(n,p+l+",",{errorCorrectionLevel:"M",margin:0,width:113},(function(t){}))}(n,r),t=o.getImageData(0,0,113,113),r.width=1192,r.height=794,o.fillStyle="#fff",o.fillRect(0,0,1192,794),o.putImageData(t,48,20),T({startX:26,startY:170,ctx:e=o,points:[{pointX:1164,pointY:170},{pointX:1164,pointY:702},{pointX:26,pointY:702},{pointX:26,pointY:170}],lineWidth:1,color:"#800000"}),T({startX:388,startY:100,ctx:e,points:[{pointX:801,pointY:100}],lineWidth:1,color:"#800000"}),T({startX:388,startY:104,ctx:e,points:[{pointX:801,pointY:104}],lineWidth:1,color:"#800000"}),T({startX:26,startY:294,ctx:e,points:[{pointX:1164,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:26,startY:544,ctx:e,points:[{pointX:1164,pointY:544}],lineWidth:1,color:"#800000"}),T({startX:26,startY:590,ctx:e,points:[{pointX:1164,pointY:590}],lineWidth:1,color:"#800000"}),T({startX:72,startY:170,ctx:e,points:[{pointX:72,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:608,startY:170,ctx:e,points:[{pointX:608,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:652,startY:170,ctx:e,points:[{pointX:652,pointY:294}],lineWidth:1,color:"#800000"}),T({startX:72,startY:590,ctx:e,points:[{pointX:72,pointY:702}],lineWidth:1,color:"#800000"}),t=o,o=(e=n).invoiceType,n=e.invoiceCode,e="",e=n&&12===n.length?n&&n.substr(1,4):n&&n.substr(0,4),e=(n=(n=x(e,d,"taxOfficeCode","title")||"")===e?"":n)+"增值税电子普通发票",1===Number(o)?e=n+"增值税专用发票":2===Number(o)?e=n+"增值税普通发票":4===Number(o)&&(e=n+"增值税电子专用发票"),A(t,18,30,e,596,38,"#9C5223","normal 38px KaiTi",1),A(t,18,30,"发票号码:",860,55,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"开票日期:",860,100,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"购",40,183,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"买",40,203,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"方",40,223,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"信",40,243,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"息",40,263,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"名称:",80,210,"#9C5223","normal 18px KaiTi",0),A(t,18,32,"统一社会信用代码/纳税人识别号:",80,240,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"名称:",660,210,"#9C5223","normal 18px KaiTi",0),A(t,18,32,"统一社会信用代码/纳税人识别号:",660,240,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"销",620,183,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"售",620,203,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"方",620,223,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"信",620,243,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"息",620,263,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"项目名称",132,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"规格型号",358,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"单位",484,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"数 量",570,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"单 价",684,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"金 额",828,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"税率",948,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"税 额",1058,304,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"合 计",134,520,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"价税合计(大写)",106,560,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"(小写)",864,560,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"备",40,620,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"注",40,660,"#9C5223","normal 18px KaiTi",0),A(t,18,30,"开票人:",126,710,"#9C5223","normal 18px KaiTi",0),w(r.toDataURL("image/png",.92),300)}}({data:this.invoiceData,showSample:n,samplePosition:e})}catch(t){}},xt.prototype.getCustomsDeclarationFormSample=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,B({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.getCustomsPaymentLetterSample=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,K({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createInvoiceQrCode=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,U({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createRedLetterNotice=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,H({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.createExpressDeliveryCode=function(){return ht(this,void 0,void 0,(function(){return mt(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,G({data:this.invoiceData})];case 1:return[2,t.sent()];case 2:return t.sent(),[3,3];case 3:return[2]}}))}))},xt.prototype.printInvoice=function(t){var n=t.licenses;t=dt(t,["licenses"]);nt(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceList=function(t){var n=t.licenses;t=dt(t,["licenses"]);!function(t){!function(t){var n,e=t.data,r=void 0===(c=t.top)?0:c,i=void 0===(u=t.left)?0:u,o=void 0===(f=t.width)?"210mm":f,a=void 0===(l=t.height)?"297mm":l,s=void 0!==(p=t.showWindow)&&p,u=void 0===(c=t.invoiceListFieldMapping)?{invoiceList:[]}:c,l=void 0===(f=t.licenses)?"":f,c=void 0===(p=t.company)?"":p,p=void 0===(f=t.getProjectLodop)?Z:f,f=void 0===(f=t.isInitPrinter)?1:f,m=(t=void 0===(t=t.printer)?"":t,[]),d=0,x=0,g=[];u.invoiceList&&(g=u.invoiceList),n=0<g.length?(S=g.length,d=Number(h(70/(7+S),2)),x=Number(h(84/(7+S),2)),Number(h(54/(7+S),2))):(d=10,x=12,8),e.details.forEach((function(t){1===t.invoiceLineType&&m.push(t)}));var v,S=document.createElement("div");S.innerHTML='<table border=0 width="700" cellspacing="0" cellpadding="0" style="border-collapse:collapse" bordercolor="#000000">\n <thead>\n <tr>\n <td colspan="'+(9+g.length)+'" height="50px;"></td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" style="font-size: 24px;font-weight: bold;text-align: center;">销售货物或者提供应税劳务、服务清单</td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="20px;"></td>\n </tr>\n <tr>\n <td border=1 colspan="'+(9+g.length)+'" style="text-align: left;">\n <span style="font-size: 14px;">购买方名称:</span>\n '+(e.purchaserName&&26<e.purchaserName.length?'<span style="font-size: 12px;">'+e.purchaserName+"</span>":'<span style="font-size: 14px;">'+e.purchaserName+"</span>")+'\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="15px;"></td>\n </tr>\n <tr>\n <td border=1 colspan="'+(9+g.length)+'" style="text-align: left;">\n <span style="font-size: 14px;">销售方名称:</span>\n '+(e.sellerName&&26<e.sellerName.length?'<span style="font-size: 12px;">'+e.sellerName+"</span>":'<span style="font-size: 14px;">'+e.sellerName+"</span>")+'\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="15px;"></td>\n </tr>\n <tr>\n <td colspan="'+(6+g.length/2)+'" style="text-align: left;font-size: 14px;">\n 所属增值税'+(1===Number(e.invoiceType)?"专用":2===Number(e.invoiceType)?"普通":3===Number(e.invoiceType)?"电子普通":"电子专用")+"发票代码:"+e.invoiceCode+'\n <span style="margin-left: 10px;">号码:'+e.invoiceNo+'</span>\n </td>\n <td width="100%" colspan="'+(3+g.length/2)+'" tindex="1" style="text-align: right;font-size: 14px;">\n 共<span style="margin: 0px 10px;"><font tdata="PageCount">##</font></span>页\n <span style="margin-left: 10px;">第<span style="margin: 0px 10px;"><font tdata="PageNO">##</font></span>页</span>\n </td>\n </tr>\n <tr>\n <td colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n <tr>\n <td width="7%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">序号</td>\n <td width="23%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">货物(劳务)名称</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">规格型号</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">单位</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">数量</td>\n <td width="'+x+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">单价</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">金额</td>\n <td width="'+n+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">税率</td>\n <td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">税额</td>\n '+g.map((function(t,n){return'<td width="'+d+'%" height="30px;" style="text-align: center;border: 1px solid #000;font-size: 12px;">'+t.displayName+"</td>"}))+"\n </tr>\n </thead>\n "+e.details.map((function(t,r){var i,o,a=t.goodsName,s=(a=t.shortName+a)&&a.length<14?"12px":a&&a.length<23?"10px":"8px",u="12px",l="12px",c="12px",p="12px";1!==t.discountFlag&&(u=t.specification&&t.specification.length<9?"12px":t.specification&&t.specification.length<17?"10px":"8px",l=t.unit&&t.unit.length<3?"12px":t.unit&&t.unit.length<5?"10px":"8px",o=0===t.quantity&&0===t.unitPrice?i="":0!==t.quantity&&0===t.unitPrice?(i=t.quantity,t.unitPrice.toFixed(2)):(i=t.quantity,t.unitPrice&&String(t.unitPrice).slice(0,13)),c=i&&JSON.stringify(i).length<9?"12px":i&&JSON.stringify(i).length<23?"10px":"8px",p=o&&JSON.stringify(o).length<12?"12px":o&&JSON.stringify(o).length<23?"10px":"8px");var f=t.amount&&Number(t.amount).toFixed(2),h=(f=f.toString())&&JSON.stringify(f).length<15?"12px":f&&JSON.stringify(f).length<23?"10px":"8px",m=0===t.taxPre&&1===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)?"免税":0===t.taxPre&&2===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)?"不征税":"number"==typeof t.taxRate?100*t.taxRate+"%":t.taxRate,v=0===t.taxPre&&1===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)||0===t.taxPre&&2===t.taxPreType&&1!==Number(e.invoiceType)&&4!==Number(e.invoiceType)||0===t.taxAmount?"***":t.taxAmount&&Number(t.taxAmount).toFixed(2),S=(v=v.toString())&&JSON.stringify(v).length<15?"12px":v&&JSON.stringify(v).length<23?"10px":"8px",y="";return g.forEach((function(n){var r="";"mainFields"===n.source?(r=e[n.fieldName],"invoiceType"===n.sourceFieldName&&(r=et[r]||"")):r=t[n.fieldName],y+='<td width="'+d+'%" height="30px;" style="height: 30px;text-align: left;border-right: 1px solid #000;font-size: 12px;table-layout:fixed;word-break:break-all;word-wrap:break-word;border-collapse:collapse;">\n '+r+"\n </td>"})),'<tr>\n <td width="7%" style="height: 30px;font-size: 12px;text-align: center;border-left: 1px solid #000;border-right: 1px solid #000;">'+(r+1)+'</td>\n <td width="23%" style="height: 30px;border-right: 1px solid #000;font-size: '+s+';">'+a+'</td>\n <td width="'+d+'%" style="height: 30px;border-right: 1px solid #000;font-size: '+u+';">'+t.specification+'</td>\n <td width="'+d+'%" style="height: 30px;text-align: center;border-right: 1px solid #000;font-size: '+l+';">'+t.unit+'</td>\n <td width="'+d+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+c+';padding-right: 2px;">'+i+'</td>\n <td width="'+x+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+p+';padding-right: 2px;">'+o+'</td>\n <td width="'+d+'%" tclass="'+(1===t.invoiceLineType?"discountTemporaryAmount":"temporaryAmount")+'" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+h+';padding-right: 2px;">'+f+'</td>\n <td width="'+n+'%" style="height: 30px;text-align: right;border-right: 1px solid #000;padding-right: 2px;font-size: 12px;">'+m+'</td>\n <td width="'+d+'%" tclass="'+(1===t.invoiceLineType?"discountTemporaryTax":"temporaryTax")+'" style="height: 30px;text-align: right;border-right: 1px solid #000;font-size: '+S+';padding-right: 2px;">'+v+"</td>\n "+y+"\n </tr>"}))+'\n <tfoot>\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">小计</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id01">#########</font></td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id01">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+"\n </tr>\n "+(m.length?'\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">折扣</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font tclass="discountTemporaryAmount">#########</font></td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="SubSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font tclass="discountTemporaryTax">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+"\n </tr>\n ":"")+'\n <tr>\n <td width="7%" align="center" style="height:30px;border-left: 1px solid #000;border-right: 1px solid #000;font-size: 12px;">合计</td>\n <td width="23%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+x+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="AllSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;">\n <font id="id02" >###########</font>\n </td>\n <td width="'+n+'%" style="border-right: 1px solid #000;"></td>\n <td width="'+d+'%" tdata="AllSum" format="#,##0.00" align="right" style="height:30px;font-size: 12px;border-right: 1px solid #000;padding-right: 2px;"><font id="id02">#########</font></td>\n '+g.map((function(t,n){return'<td width="'+d+'%" style="border-right: 1px solid #000;"></td>'}))+'\n </tr>\n <tr>\n <td width="7%" align="center" style="height:50px;border: 1px solid #000;font-size: 12px;">备注</td>\n <td colspan="'+(8+g.length)+'" style="height:50px;border: 1px solid #000;">'+((v=e.remark&&e.remark.replace(/\\r\\n/g,"\n")||"")&&v.length<=50?'<span style="font-size: 14px;">'+v+"</span>":v&&50<v.length&&v.length<100?'<span style="font-size: 12px;">'+v+"</span>":v?'<span style="font-size: 10px;">'+v+"</span>":"")+'</td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(6+g.length/2)+'" style="font-size: 14px;">销货单位(章):</td>\n <td width="100%" colspan="'+(3+g.length/2)+'" style="font-size: 14px;">开票日期:'+function(t){if(t){var n=new Date(t),e=n.getFullYear(),r=n.getMonth()+1;t=r.toString();return 1<=r&&r<=9&&(t="0"+r),r=n.getDate(),n=r.toString(),e+"年"+t+"月"+(n=0<=r&&r<=9?"0"+r:n)+"日"}}(e.drewDate)+'</td>\n </tr>\n <tr>\n <td width="100%" colspan="'+(9+g.length)+'" height="10px"></td>\n </tr>\n \n </tfoot>\n </table>',(p=p("","",l)).PRINT_INITA(r,i,o,a,e.invoiceCode+" "+e.invoiceNo),"210mm"===o&&"297mm"===a?p.SET_PRINT_PAGESIZE(1,0,0,"A4"):p.SET_PRINT_PAGESIZE(1,o,a,""),p.SET_SHOW_MODE("LANGUAGE",0),p.SET_LICENSES(c,l,"",""),p.ADD_PRINT_TABLE(0,"5%","90%","BottomMargin:30mm",S.innerHTML),0===f&&t&&p.SET_PRINTER_INDEXA(t),s?p.PREVIEW():p.PRINT()}(t)}(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printCustomsDeclaration=function(t){var n=t.licenses;t=dt(t,["licenses"]);(function(t){var n=t.data,e=t.top,r=void 0===e?0:e,i=void 0===(e=t.left)?0:e,o=void 0!==(e=t.showWindow)&&e,a=void 0===(e=t.licenses)?"":e,s=void 0===(e=t.company)?"":e,u=void 0===(e=t.getProjectLodop)?Z:e,l=void 0===(e=t.isInitPrinter)?1:e,c=void 0===(t=t.printer)?"":t;rt(void 0,void 0,void 0,(function(){var t,e;return it(this,(function(p){switch(p.label){case 0:t=[],p.label=1;case 1:return p.trys.push([1,7,,8]),[4,B({data:n})];case 2:t=p.sent(),e=0,p.label=3;case 3:return e<t.length?[4,function(t,n){var e,r=t.data,i=void 0===(e=t.top)?0:e,o=void 0===(e=t.left)?0:e,a=void 0!==(e=t.showWindow)&&e,s=void 0===(e=t.licenses)?"":e,u=void 0===(e=t.company)?"":e,l=void 0===(e=t.getProjectLodop)?Z:e,c=void 0===(e=t.isInitPrinter)?1:e,p=void 0===(t=t.printer)?"":t;return rt(this,void 0,void 0,(function(){var t;return it(this,(function(e){return(t=l("","",s))&&(t.PRINT_INITA(i,o,"297mm","210mm",r.invoiceCode+" "+r.invoiceNo),t.SET_PRINT_PAGESIZE(2,"210mm","297mm",""),t.SET_SHOW_MODE("LANGUAGE",0),t.SET_LICENSES(u,s,"",""),0===c&&p&&t.SET_PRINTER_INDEXA(p),t.ADD_PRINT_IMAGE(0,0,"100%","100%",n),t.SET_PRINT_STYLEA(0,"Stretch",2),a?t.PREVIEW():t.PRINT()),[2]}))}))}({data:n,top:r,left:i,showWindow:o,licenses:a,company:s,getProjectLodop:u,isInitPrinter:l,printer:c},t[e])]:[3,6];case 4:p.sent(),p.label=5;case 5:return e++,[3,3];case 6:return[3,8];case 7:return p.sent(),[3,8];case 8:return[2]}}))}))})(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printExpressDeliveryCode=function(t){var n=t.licenses;t=dt(t,["licenses"]);ct(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceQrCode=function(t){var n=t.licenses;t=dt(t,["licenses"]);st(t=ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printRedLetterNotice=function(t){var n=t.licenses;t=dt(t,["licenses"]);ut(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.printInvoiceSample=function(t){var n=t.licenses;t=dt(t,["licenses"]);lt(ft({data:this.invoiceData,licenses:n},t))},xt.prototype.initLodop=function(t){var n,e=t.targetAddress,r=void 0===e?"localhost":e;V()&&(n="http://"+r+":8000/CLodopfuncs.js?priority=1",t="http://"+r+":18000/CLodopfuncs.js?priority=0",e=document.head||document.getElementsByTagName("head")[0]||document.documentElement,(r=document.createElement("script")).src=n,e.insertBefore(r,e.firstChild),(r=document.createElement("script")).src=t,e.insertBefore(r,e.firstChild),t=!!(n+t).match(/\/\/localho|\/\/127.0.0./i),this.CLodopIsLocal=t)},e=xt;function xt(t){this.getLodop=null,t=((this.needCLodop=null)==t?void 0:t.data)||{},this.invoiceData=t,this.getInvoiceSample=this.getInvoiceSample.bind(this),this.getMotorVehicleInvoiceSample=this.getMotorVehicleInvoiceSample.bind(this),this.getInvoiceListSample=this.getInvoiceListSample.bind(this),this.getCustomsDeclarationFormSample=this.getCustomsDeclarationFormSample.bind(this),this.getCustomsPaymentLetterSample=this.getCustomsPaymentLetterSample.bind(this),this.createInvoiceQrCode=this.createInvoiceQrCode.bind(this),this.createRedLetterNotice=this.createRedLetterNotice.bind(this),this.createExpressDeliveryCode=this.createExpressDeliveryCode.bind(this),this.printInvoice=this.printInvoice.bind(this),this.printInvoiceList=this.printInvoiceList.bind(this),this.printCustomsDeclaration=this.printCustomsDeclaration.bind(this),this.printInvoiceQrCode=this.printInvoiceQrCode.bind(this),this.printRedLetterNotice=this.printRedLetterNotice.bind(this),this.printInvoiceSample=this.printInvoiceSample.bind(this),this.printExpressDeliveryCode=this.printExpressDeliveryCode.bind(this),this.initLodop=this.initLodop.bind(this),this.getLodop=Z,this.needCLodop=V}n.default=e}],e={},t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{enumerable:!0,get:r})},t.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},t.t=function(n,e){if(1&e&&(n=t(n)),8&e)return n;if(4&e&&"object"==typeof n&&n&&n.__esModule)return n;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&e&&"string"!=typeof n)for(var i in n)t.d(r,i,function(t){return n[t]}.bind(null,i));return r},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},t.p="",t(t.s=159).default;function t(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n,e}));