nfets 0.0.46 → 0.0.47
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.
- package/dist/chunk-NIXT5RTQ.mjs +20 -0
- package/dist/{chunk-EG7US67K.mjs → chunk-Q47VIRPG.mjs} +1 -1
- package/dist/core/index.mjs +1 -1
- package/dist/index.cjs +100 -82
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +1 -1
- package/dist/nfe/index.cjs +99 -81
- package/dist/nfe/index.d.cts +120 -1
- package/dist/nfe/index.d.ts +120 -1
- package/dist/nfe/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-LP4JOWRA.mjs +0 -2
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
+
import{A as uf,B as hf,D as mf,E as gf,F as vf,G as yf,H as Kr,J as H,K as p,L as Ns,M as ui,d as cf,f as d,g as ff,h as y,i as Ss,j as De,l as Wr,n as Ee,o as U,p as pf,q as df,v as lf,w as eo,y as w,z as at}from"./chunk-Q47VIRPG.mjs";import{a as s,b as ye,d as C,f as Ul}from"./chunk-W6MRGYXP.mjs";var gc=C((rI,Op)=>{"use strict";Op.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var xi=C(nn=>{"use strict";var vc,dh=[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];nn.getSymbolSize=s(function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17},"getSymbolSize");nn.getSymbolTotalCodewords=s(function(e){return dh[e]},"getSymbolTotalCodewords");nn.getBCHDigit=function(o){let e=0;for(;o!==0;)e++,o>>>=1;return e};nn.setToSJISFunction=s(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');vc=e},"setToSJISFunction");nn.isKanjiModeEnabled=function(){return typeof vc<"u"};nn.toSJIS=s(function(e){return vc(e)},"toSJIS")});var _a=C(zt=>{"use strict";zt.L={bit:1};zt.M={bit:0};zt.Q={bit:3};zt.H={bit:2};function lh(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return zt.L;case"m":case"medium":return zt.M;case"q":case"quartile":return zt.Q;case"h":case"high":return zt.H;default:throw new Error("Unknown EC Level: "+o)}}s(lh,"fromString");zt.isValid=s(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");zt.from=s(function(e,t){if(zt.isValid(e))return e;try{return lh(e)}catch{return t}},"from")});var Ep=C((pI,Dp)=>{"use strict";function Pp(){this.buffer=[],this.length=0}s(Pp,"BitBuffer");Pp.prototype={get:s(function(o){let e=Math.floor(o/8);return(this.buffer[e]>>>7-o%8&1)===1},"get"),put:s(function(o,e){for(let t=0;t<e;t++)this.putBit((o>>>e-t-1&1)===1)},"put"),getLengthInBits:s(function(){return this.length},"getLengthInBits"),putBit:s(function(o){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),o&&(this.buffer[e]|=128>>>this.length%8),this.length++},"putBit")};Dp.exports=Pp});var jp=C((lI,Tp)=>{"use strict";function Lr(o){if(!o||o<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=o,this.data=new Uint8Array(o*o),this.reservedBit=new Uint8Array(o*o)}s(Lr,"BitMatrix");Lr.prototype.set=function(o,e,t,i){let r=o*this.size+e;this.data[r]=t,i&&(this.reservedBit[r]=!0)};Lr.prototype.get=function(o,e){return this.data[o*this.size+e]};Lr.prototype.xor=function(o,e,t){this.data[o*this.size+e]^=t};Lr.prototype.isReserved=function(o,e){return this.reservedBit[o*this.size+e]};Tp.exports=Lr});var Mp=C($a=>{"use strict";var uh=xi().getSymbolSize;$a.getRowColCoords=s(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,i=uh(e),r=i===145?26:Math.ceil((i-13)/(2*t-2))*2,n=[i-7];for(let a=1;a<t-1;a++)n[a]=n[a-1]-r;return n.push(6),n.reverse()},"getRowColCoords");$a.getPositions=s(function(e){let t=[],i=$a.getRowColCoords(e),r=i.length;for(let n=0;n<r;n++)for(let a=0;a<r;a++)n===0&&a===0||n===0&&a===r-1||n===r-1&&a===0||t.push([i[n],i[a]]);return t},"getPositions")});var Vp=C(Bp=>{"use strict";var hh=xi().getSymbolSize,Lp=7;Bp.getPositions=s(function(e){let t=hh(e);return[[0,0],[t-Lp,0],[0,t-Lp]]},"getPositions")});var Hp=C(X=>{"use strict";X.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var rn={N1:3,N2:3,N3:40,N4:10};X.isValid=s(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");X.from=s(function(e){return X.isValid(e)?parseInt(e,10):void 0},"from");X.getPenaltyN1=s(function(e){let t=e.size,i=0,r=0,n=0,a=null,c=null;for(let f=0;f<t;f++){r=n=0,a=c=null;for(let l=0;l<t;l++){let m=e.get(f,l);m===a?r++:(r>=5&&(i+=rn.N1+(r-5)),a=m,r=1),m=e.get(l,f),m===c?n++:(n>=5&&(i+=rn.N1+(n-5)),c=m,n=1)}r>=5&&(i+=rn.N1+(r-5)),n>=5&&(i+=rn.N1+(n-5))}return i},"getPenaltyN1");X.getPenaltyN2=s(function(e){let t=e.size,i=0;for(let r=0;r<t-1;r++)for(let n=0;n<t-1;n++){let a=e.get(r,n)+e.get(r,n+1)+e.get(r+1,n)+e.get(r+1,n+1);(a===4||a===0)&&i++}return i*rn.N2},"getPenaltyN2");X.getPenaltyN3=s(function(e){let t=e.size,i=0,r=0,n=0;for(let a=0;a<t;a++){r=n=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(a,c),c>=10&&(r===1488||r===93)&&i++,n=n<<1&2047|e.get(c,a),c>=10&&(n===1488||n===93)&&i++}return i*rn.N3},"getPenaltyN3");X.getPenaltyN4=s(function(e){let t=0,i=e.data.length;for(let n=0;n<i;n++)t+=e.data[n];return Math.abs(Math.ceil(t*100/i/5)-10)*rn.N4},"getPenaltyN4");function mh(o,e,t){switch(o){case X.Patterns.PATTERN000:return(e+t)%2===0;case X.Patterns.PATTERN001:return e%2===0;case X.Patterns.PATTERN010:return t%3===0;case X.Patterns.PATTERN011:return(e+t)%3===0;case X.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case X.Patterns.PATTERN101:return e*t%2+e*t%3===0;case X.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case X.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}s(mh,"getMaskAt");X.applyMask=s(function(e,t){let i=t.size;for(let r=0;r<i;r++)for(let n=0;n<i;n++)t.isReserved(n,r)||t.xor(n,r,mh(e,n,r))},"applyMask");X.getBestMask=s(function(e,t){let i=Object.keys(X.Patterns).length,r=0,n=1/0;for(let a=0;a<i;a++){t(a),X.applyMask(a,e);let c=X.getPenaltyN1(e)+X.getPenaltyN2(e)+X.getPenaltyN3(e)+X.getPenaltyN4(e);X.applyMask(a,e),c<n&&(n=c,r=a)}return r},"getBestMask")});var Sc=C(yc=>{"use strict";var Ai=_a(),es=[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],ts=[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];yc.getBlocksCount=s(function(e,t){switch(t){case Ai.L:return es[(e-1)*4+0];case Ai.M:return es[(e-1)*4+1];case Ai.Q:return es[(e-1)*4+2];case Ai.H:return es[(e-1)*4+3];default:return}},"getBlocksCount");yc.getTotalCodewordsCount=s(function(e,t){switch(t){case Ai.L:return ts[(e-1)*4+0];case Ai.M:return ts[(e-1)*4+1];case Ai.Q:return ts[(e-1)*4+2];case Ai.H:return ts[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var Qp=C(is=>{"use strict";var Br=new Uint8Array(512),os=new Uint8Array(256);s((function(){let e=1;for(let t=0;t<255;t++)Br[t]=e,os[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)Br[t]=Br[t-255]}),"initTables")();is.log=s(function(e){if(e<1)throw new Error("log("+e+")");return os[e]},"log");is.exp=s(function(e){return Br[e]},"exp");is.mul=s(function(e,t){return e===0||t===0?0:Br[os[e]+os[t]]},"mul")});var Gp=C(Vr=>{"use strict";var Nc=Qp();Vr.mul=s(function(e,t){let i=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let n=0;n<t.length;n++)i[r+n]^=Nc.mul(e[r],t[n]);return i},"mul");Vr.mod=s(function(e,t){let i=new Uint8Array(e);for(;i.length-t.length>=0;){let r=i[0];for(let a=0;a<t.length;a++)i[a]^=Nc.mul(t[a],r);let n=0;for(;n<i.length&&i[n]===0;)n++;i=i.slice(n)}return i},"mod");Vr.generateECPolynomial=s(function(e){let t=new Uint8Array([1]);for(let i=0;i<e;i++)t=Vr.mul(t,new Uint8Array([1,Nc.exp(i)]));return t},"generateECPolynomial")});var Zp=C((wI,Yp)=>{"use strict";var Up=Gp();function Cc(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}s(Cc,"ReedSolomonEncoder");Cc.prototype.initialize=s(function(e){this.degree=e,this.genPoly=Up.generateECPolynomial(this.degree)},"initialize");Cc.prototype.encode=s(function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let i=Up.mod(t,this.genPoly),r=this.degree-i.length;if(r>0){let n=new Uint8Array(this.degree);return n.set(i,r),n}return i},"encode");Yp.exports=Cc});var bc=C(qp=>{"use strict";qp.isValid=s(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var Rc=C(li=>{"use strict";var Xp="[0-9]+",gh="[A-Z $%*+\\-./:]+",Hr="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Hr=Hr.replace(/u/g,"\\u");var vh="(?:(?![A-Z0-9 $%*+\\-./:]|"+Hr+`)(?:.|[\r
|
|
3
|
+
]))+`;li.KANJI=new RegExp(Hr,"g");li.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");li.BYTE=new RegExp(vh,"g");li.NUMERIC=new RegExp(Xp,"g");li.ALPHANUMERIC=new RegExp(gh,"g");var yh=new RegExp("^"+Hr+"$"),Sh=new RegExp("^"+Xp+"$"),Nh=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");li.testKanji=s(function(e){return yh.test(e)},"testKanji");li.testNumeric=s(function(e){return Sh.test(e)},"testNumeric");li.testAlphanumeric=s(function(e){return Nh.test(e)},"testAlphanumeric")});var Oi=C(ve=>{"use strict";var Ch=bc(),Fc=Rc();ve.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};ve.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};ve.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};ve.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};ve.MIXED={bit:-1};ve.getCharCountIndicator=s(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Ch.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},"getCharCountIndicator");ve.getBestModeForData=s(function(e){return Fc.testNumeric(e)?ve.NUMERIC:Fc.testAlphanumeric(e)?ve.ALPHANUMERIC:Fc.testKanji(e)?ve.KANJI:ve.BYTE},"getBestModeForData");ve.toString=s(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");ve.isValid=s(function(e){return e&&e.bit&&e.ccBits},"isValid");function bh(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return ve.NUMERIC;case"alphanumeric":return ve.ALPHANUMERIC;case"kanji":return ve.KANJI;case"byte":return ve.BYTE;default:throw new Error("Unknown mode: "+o)}}s(bh,"fromString");ve.from=s(function(e,t){if(ve.isValid(e))return e;try{return bh(e)}catch{return t}},"from")});var _p=C(an=>{"use strict";var ns=xi(),Rh=Sc(),Jp=_a(),Pi=Oi(),Ic=bc(),Kp=7973,Wp=ns.getBCHDigit(Kp);function Fh(o,e,t){for(let i=1;i<=40;i++)if(e<=an.getCapacity(i,t,o))return i}s(Fh,"getBestVersionForDataLength");function kp(o,e){return Pi.getCharCountIndicator(o,e)+4}s(kp,"getReservedBitsCount");function Ih(o,e){let t=0;return o.forEach(function(i){let r=kp(i.mode,e);t+=r+i.getBitsLength()}),t}s(Ih,"getTotalBitsFromDataArray");function wh(o,e){for(let t=1;t<=40;t++)if(Ih(o,t)<=an.getCapacity(t,e,Pi.MIXED))return t}s(wh,"getBestVersionForMixedData");an.from=s(function(e,t){return Ic.isValid(e)?parseInt(e,10):t},"from");an.getCapacity=s(function(e,t,i){if(!Ic.isValid(e))throw new Error("Invalid QR Code version");typeof i>"u"&&(i=Pi.BYTE);let r=ns.getSymbolTotalCodewords(e),n=Rh.getTotalCodewordsCount(e,t),a=(r-n)*8;if(i===Pi.MIXED)return a;let c=a-kp(i,e);switch(i){case Pi.NUMERIC:return Math.floor(c/10*3);case Pi.ALPHANUMERIC:return Math.floor(c/11*2);case Pi.KANJI:return Math.floor(c/13);case Pi.BYTE:default:return Math.floor(c/8)}},"getCapacity");an.getBestVersionForData=s(function(e,t){let i,r=Jp.from(t,Jp.M);if(Array.isArray(e)){if(e.length>1)return wh(e,r);if(e.length===0)return 1;i=e[0]}else i=e;return Fh(i.mode,i.getLength(),r)},"getBestVersionForData");an.getEncodedBits=s(function(e){if(!Ic.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;ns.getBCHDigit(t)-Wp>=0;)t^=Kp<<ns.getBCHDigit(t)-Wp;return e<<12|t},"getEncodedBits")});var od=C(td=>{"use strict";var wc=xi(),ed=1335,zh=21522,$p=wc.getBCHDigit(ed);td.getEncodedBits=s(function(e,t){let i=e.bit<<3|t,r=i<<10;for(;wc.getBCHDigit(r)-$p>=0;)r^=ed<<wc.getBCHDigit(r)-$p;return(i<<10|r)^zh},"getEncodedBits")});var nd=C((BI,id)=>{"use strict";var xh=Oi();function or(o){this.mode=xh.NUMERIC,this.data=o.toString()}s(or,"NumericData");or.getBitsLength=s(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");or.prototype.getLength=s(function(){return this.data.length},"getLength");or.prototype.getBitsLength=s(function(){return or.getBitsLength(this.data.length)},"getBitsLength");or.prototype.write=s(function(e){let t,i,r;for(t=0;t+3<=this.data.length;t+=3)i=this.data.substr(t,3),r=parseInt(i,10),e.put(r,10);let n=this.data.length-t;n>0&&(i=this.data.substr(t),r=parseInt(i,10),e.put(r,n*3+1))},"write");id.exports=or});var ad=C((HI,rd)=>{"use strict";var Ah=Oi(),zc=["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 ir(o){this.mode=Ah.ALPHANUMERIC,this.data=o}s(ir,"AlphanumericData");ir.getBitsLength=s(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");ir.prototype.getLength=s(function(){return this.data.length},"getLength");ir.prototype.getBitsLength=s(function(){return ir.getBitsLength(this.data.length)},"getBitsLength");ir.prototype.write=s(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let i=zc.indexOf(this.data[t])*45;i+=zc.indexOf(this.data[t+1]),e.put(i,11)}this.data.length%2&&e.put(zc.indexOf(this.data[t]),6)},"write");rd.exports=ir});var cd=C((GI,sd)=>{"use strict";var Oh=Oi();function nr(o){this.mode=Oh.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}s(nr,"ByteData");nr.getBitsLength=s(function(e){return e*8},"getBitsLength");nr.prototype.getLength=s(function(){return this.data.length},"getLength");nr.prototype.getBitsLength=s(function(){return nr.getBitsLength(this.data.length)},"getBitsLength");nr.prototype.write=function(o){for(let e=0,t=this.data.length;e<t;e++)o.put(this.data[e],8)};sd.exports=nr});var pd=C((YI,fd)=>{"use strict";var Ph=Oi(),Dh=xi();function rr(o){this.mode=Ph.KANJI,this.data=o}s(rr,"KanjiData");rr.getBitsLength=s(function(e){return e*13},"getBitsLength");rr.prototype.getLength=s(function(){return this.data.length},"getLength");rr.prototype.getBitsLength=s(function(){return rr.getBitsLength(this.data.length)},"getBitsLength");rr.prototype.write=function(o){let e;for(e=0;e<this.data.length;e++){let t=Dh.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
4
|
+
Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),o.put(t,13)}};fd.exports=rr});var dd=C((qI,xc)=>{"use strict";var Qr={single_source_shortest_paths:s(function(o,e,t){var i={},r={};r[e]=0;var n=Qr.PriorityQueue.make();n.push(e,0);for(var a,c,f,l,m,g,S,N,F;!n.empty();){a=n.pop(),c=a.value,l=a.cost,m=o[c]||{};for(f in m)m.hasOwnProperty(f)&&(g=m[f],S=l+g,N=r[f],F=typeof r[f]>"u",(F||N>S)&&(r[f]=S,n.push(f,S),i[f]=c))}if(typeof t<"u"&&typeof r[t]>"u"){var O=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(O)}return i},"single_source_shortest_paths"),extract_shortest_path_from_predecessor_list:s(function(o,e){for(var t=[],i=e,r;i;)t.push(i),r=o[i],i=o[i];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:s(function(o,e,t){var i=Qr.single_source_shortest_paths(o,e,t);return Qr.extract_shortest_path_from_predecessor_list(i,t)},"find_path"),PriorityQueue:{make:s(function(o){var e=Qr.PriorityQueue,t={},i;o=o||{};for(i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t.queue=[],t.sorter=o.sorter||e.default_sorter,t},"make"),default_sorter:s(function(o,e){return o.cost-e.cost},"default_sorter"),push:s(function(o,e){var t={value:o,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},"push"),pop:s(function(){return this.queue.shift()},"pop"),empty:s(function(){return this.queue.length===0},"empty")}};typeof xc<"u"&&(xc.exports=Qr)});var Sd=C(ar=>{"use strict";var V=Oi(),hd=nd(),md=ad(),gd=cd(),vd=pd(),Gr=Rc(),rs=xi(),Eh=dd();function ld(o){return unescape(encodeURIComponent(o)).length}s(ld,"getStringByteLength");function Ur(o,e,t){let i=[],r;for(;(r=o.exec(t))!==null;)i.push({data:r[0],index:r.index,mode:e,length:r[0].length});return i}s(Ur,"getSegments");function yd(o){let e=Ur(Gr.NUMERIC,V.NUMERIC,o),t=Ur(Gr.ALPHANUMERIC,V.ALPHANUMERIC,o),i,r;return rs.isKanjiModeEnabled()?(i=Ur(Gr.BYTE,V.BYTE,o),r=Ur(Gr.KANJI,V.KANJI,o)):(i=Ur(Gr.BYTE_KANJI,V.BYTE,o),r=[]),e.concat(t,i,r).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}s(yd,"getSegmentsFromString");function Ac(o,e){switch(e){case V.NUMERIC:return hd.getBitsLength(o);case V.ALPHANUMERIC:return md.getBitsLength(o);case V.KANJI:return vd.getBitsLength(o);case V.BYTE:return gd.getBitsLength(o)}}s(Ac,"getSegmentBitsLength");function Th(o){return o.reduce(function(e,t){let i=e.length-1>=0?e[e.length-1]:null;return i&&i.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}s(Th,"mergeSegments");function jh(o){let e=[];for(let t=0;t<o.length;t++){let i=o[t];switch(i.mode){case V.NUMERIC:e.push([i,{data:i.data,mode:V.ALPHANUMERIC,length:i.length},{data:i.data,mode:V.BYTE,length:i.length}]);break;case V.ALPHANUMERIC:e.push([i,{data:i.data,mode:V.BYTE,length:i.length}]);break;case V.KANJI:e.push([i,{data:i.data,mode:V.BYTE,length:ld(i.data)}]);break;case V.BYTE:e.push([{data:i.data,mode:V.BYTE,length:ld(i.data)}])}}return e}s(jh,"buildNodes");function Mh(o,e){let t={},i={start:{}},r=["start"];for(let n=0;n<o.length;n++){let a=o[n],c=[];for(let f=0;f<a.length;f++){let l=a[f],m=""+n+f;c.push(m),t[m]={node:l,lastCount:0},i[m]={};for(let g=0;g<r.length;g++){let S=r[g];t[S]&&t[S].node.mode===l.mode?(i[S][m]=Ac(t[S].lastCount+l.length,l.mode)-Ac(t[S].lastCount,l.mode),t[S].lastCount+=l.length):(t[S]&&(t[S].lastCount=l.length),i[S][m]=Ac(l.length,l.mode)+4+V.getCharCountIndicator(l.mode,e))}}r=c}for(let n=0;n<r.length;n++)i[r[n]].end=0;return{map:i,table:t}}s(Mh,"buildGraph");function ud(o,e){let t,i=V.getBestModeForData(o);if(t=V.from(e,i),t!==V.BYTE&&t.bit<i.bit)throw new Error('"'+o+'" cannot be encoded with mode '+V.toString(t)+`.
|
|
5
|
+
Suggested mode is: `+V.toString(i));switch(t===V.KANJI&&!rs.isKanjiModeEnabled()&&(t=V.BYTE),t){case V.NUMERIC:return new hd(o);case V.ALPHANUMERIC:return new md(o);case V.KANJI:return new vd(o);case V.BYTE:return new gd(o)}}s(ud,"buildSingleSegment");ar.fromArray=s(function(e){return e.reduce(function(t,i){return typeof i=="string"?t.push(ud(i,null)):i.data&&t.push(ud(i.data,i.mode)),t},[])},"fromArray");ar.fromString=s(function(e,t){let i=yd(e,rs.isKanjiModeEnabled()),r=jh(i),n=Mh(r,t),a=Eh.find_path(n.map,"start","end"),c=[];for(let f=1;f<a.length-1;f++)c.push(n.table[a[f]].node);return ar.fromArray(Th(c))},"fromString");ar.rawSplit=s(function(e){return ar.fromArray(yd(e,rs.isKanjiModeEnabled()))},"rawSplit")});var jc=C(Nd=>{"use strict";var ss=xi(),Oc=_a(),Lh=Ep(),Bh=jp(),Vh=Mp(),Hh=Vp(),Ec=Hp(),Tc=Sc(),Qh=Zp(),as=_p(),Gh=od(),Uh=Oi(),Pc=Sd();function Yh(o,e){let t=o.size,i=Hh.getPositions(e);for(let r=0;r<i.length;r++){let n=i[r][0],a=i[r][1];for(let c=-1;c<=7;c++)if(!(n+c<=-1||t<=n+c))for(let f=-1;f<=7;f++)a+f<=-1||t<=a+f||(c>=0&&c<=6&&(f===0||f===6)||f>=0&&f<=6&&(c===0||c===6)||c>=2&&c<=4&&f>=2&&f<=4?o.set(n+c,a+f,!0,!0):o.set(n+c,a+f,!1,!0))}}s(Yh,"setupFinderPattern");function Zh(o){let e=o.size;for(let t=8;t<e-8;t++){let i=t%2===0;o.set(t,6,i,!0),o.set(6,t,i,!0)}}s(Zh,"setupTimingPattern");function qh(o,e){let t=Vh.getPositions(e);for(let i=0;i<t.length;i++){let r=t[i][0],n=t[i][1];for(let a=-2;a<=2;a++)for(let c=-2;c<=2;c++)a===-2||a===2||c===-2||c===2||a===0&&c===0?o.set(r+a,n+c,!0,!0):o.set(r+a,n+c,!1,!0)}}s(qh,"setupAlignmentPattern");function Xh(o,e){let t=o.size,i=as.getEncodedBits(e),r,n,a;for(let c=0;c<18;c++)r=Math.floor(c/3),n=c%3+t-8-3,a=(i>>c&1)===1,o.set(r,n,a,!0),o.set(n,r,a,!0)}s(Xh,"setupVersionInfo");function Dc(o,e,t){let i=o.size,r=Gh.getEncodedBits(e,t),n,a;for(n=0;n<15;n++)a=(r>>n&1)===1,n<6?o.set(n,8,a,!0):n<8?o.set(n+1,8,a,!0):o.set(i-15+n,8,a,!0),n<8?o.set(8,i-n-1,a,!0):n<9?o.set(8,15-n-1+1,a,!0):o.set(8,15-n-1,a,!0);o.set(i-8,8,1,!0)}s(Dc,"setupFormatInfo");function Jh(o,e){let t=o.size,i=-1,r=t-1,n=7,a=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let f=0;f<2;f++)if(!o.isReserved(r,c-f)){let l=!1;a<e.length&&(l=(e[a]>>>n&1)===1),o.set(r,c-f,l),n--,n===-1&&(a++,n=7)}if(r+=i,r<0||t<=r){r-=i,i=-i;break}}}s(Jh,"setupData");function Wh(o,e,t){let i=new Lh;t.forEach(function(f){i.put(f.mode.bit,4),i.put(f.getLength(),Uh.getCharCountIndicator(f.mode,o)),f.write(i)});let r=ss.getSymbolTotalCodewords(o),n=Tc.getTotalCodewordsCount(o,e),a=(r-n)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);let c=(a-i.getLengthInBits())/8;for(let f=0;f<c;f++)i.put(f%2?17:236,8);return Kh(i,o,e)}s(Wh,"createData");function Kh(o,e,t){let i=ss.getSymbolTotalCodewords(e),r=Tc.getTotalCodewordsCount(e,t),n=i-r,a=Tc.getBlocksCount(e,t),c=i%a,f=a-c,l=Math.floor(i/a),m=Math.floor(n/a),g=m+1,S=l-m,N=new Qh(S),F=0,O=new Array(a),A=new Array(a),L=0,At=new Uint8Array(o.buffer);for(let pn=0;pn<a;pn++){let ys=pn<f?m:g;O[pn]=At.slice(F,F+ys),A[pn]=N.encode(O[pn]),F+=ys,L=Math.max(L,ys)}let Co=new Uint8Array(i),Ue=0,vt,bo;for(vt=0;vt<L;vt++)for(bo=0;bo<a;bo++)vt<O[bo].length&&(Co[Ue++]=O[bo][vt]);for(vt=0;vt<S;vt++)for(bo=0;bo<a;bo++)Co[Ue++]=A[bo][vt];return Co}s(Kh,"createCodewords");function kh(o,e,t,i){let r;if(Array.isArray(o))r=Pc.fromArray(o);else if(typeof o=="string"){let l=e;if(!l){let m=Pc.rawSplit(o);l=as.getBestVersionForData(m,t)}r=Pc.fromString(o,l||40)}else throw new Error("Invalid data");let n=as.getBestVersionForData(r,t);if(!n)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=n;else if(e<n)throw new Error(`
|
|
6
|
+
The chosen QR Code version cannot contain this amount of data.
|
|
7
|
+
Minimum version required to store current data is: `+n+`.
|
|
8
|
+
`);let a=Wh(e,t,r),c=ss.getSymbolSize(e),f=new Bh(c);return Yh(f,e),Zh(f),qh(f,e),Dc(f,t,0),e>=7&&Xh(f,e),Jh(f,a),isNaN(i)&&(i=Ec.getBestMask(f,Dc.bind(null,f,t))),Ec.applyMask(i,f),Dc(f,t,i),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:i,segments:r}}s(kh,"createSymbol");Nd.create=s(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let i=Oc.M,r,n;return typeof t<"u"&&(i=Oc.from(t.errorCorrectionLevel,Oc.M),r=as.from(t.version),n=Ec.from(t.maskPattern),t.toSJISFunc&&ss.setToSJISFunction(t.toSJISFunc)),kh(e,r,i,n)},"create")});var Mc=C((_I,bd)=>{"use strict";var _h=ye("util"),Cd=ye("stream"),$t=bd.exports=function(){Cd.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};_h.inherits($t,Cd);$t.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e}),process.nextTick((function(){this._process(),this._paused&&this._reads&&this._reads.length>0&&(this._paused=!1,this.emit("drain"))}).bind(this))};$t.prototype.write=function(o,e){if(!this.writable)return this.emit("error",new Error("Stream not writable")),!1;let t;return Buffer.isBuffer(o)?t=o:t=Buffer.from(o,e||this._encoding),this._buffers.push(t),this._buffered+=t.length,this._process(),this._reads&&this._reads.length===0&&(this._paused=!0),this.writable&&!this._paused};$t.prototype.end=function(o,e){o&&this.write(o,e),this.writable=!1,this._buffers&&(this._buffers.length===0?this._end():(this._buffers.push(null),this._process()))};$t.prototype.destroySoon=$t.prototype.end;$t.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};$t.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};$t.prototype._processReadAllowingLess=function(o){this._reads.shift();let e=this._buffers[0];e.length>o.length?(this._buffered-=o.length,this._buffers[0]=e.slice(o.length),o.func.call(this,e.slice(0,o.length))):(this._buffered-=e.length,this._buffers.shift(),o.func.call(this,e))};$t.prototype._processRead=function(o){this._reads.shift();let e=0,t=0,i=Buffer.alloc(o.length);for(;e<o.length;){let r=this._buffers[t++],n=Math.min(r.length,o.length-e);r.copy(i,e,0,n),e+=n,n!==r.length&&(this._buffers[--t]=r.slice(n))}t>0&&this._buffers.splice(0,t),this._buffered-=o.length,o.func.call(this,i)};$t.prototype._process=function(){try{for(;this._buffered>0&&this._reads&&this._reads.length>0;){let o=this._reads[0];if(o.allowLess)this._processReadAllowingLess(o);else if(this._buffered>=o.length)this._processRead(o);else break}this._buffers&&!this.writable&&this._end()}catch(o){this.emit("error",o)}}});var Bc=C(Lc=>{"use strict";var Di=[{x:[0],y:[0]},{x:[4],y:[0]},{x:[0,4],y:[4]},{x:[2,6],y:[0,4]},{x:[0,2,4,6],y:[2,6]},{x:[1,3,5,7],y:[0,2,4,6]},{x:[0,1,2,3,4,5,6,7],y:[1,3,5,7]}];Lc.getImagePasses=function(o,e){let t=[],i=o%8,r=e%8,n=(o-i)/8,a=(e-r)/8;for(let c=0;c<Di.length;c++){let f=Di[c],l=n*f.x.length,m=a*f.y.length;for(let g=0;g<f.x.length&&f.x[g]<i;g++)l++;for(let g=0;g<f.y.length&&f.y[g]<r;g++)m++;l>0&&m>0&&t.push({width:l,height:m,index:c})}return t};Lc.getInterlaceIterator=function(o){return function(e,t,i){let r=e%Di[i].x.length,n=(e-r)/Di[i].x.length*8+Di[i].x[r],a=t%Di[i].y.length,c=(t-a)/Di[i].y.length*8+Di[i].y[a];return n*4+c*o*4}}});var Vc=C((e4,Rd)=>{"use strict";Rd.exports=s(function(e,t,i){let r=e+t-i,n=Math.abs(r-e),a=Math.abs(r-t),c=Math.abs(r-i);return n<=a&&n<=c?e:a<=c?t:i},"paethPredictor")});var Hc=C((o4,Id)=>{"use strict";var $h=Bc(),em=Vc();function Fd(o,e,t){let i=o*e;return t!==8&&(i=Math.ceil(i/(8/t))),i}s(Fd,"getByteWidth");var sr=Id.exports=function(o,e){let t=o.width,i=o.height,r=o.interlace,n=o.bpp,a=o.depth;if(this.read=e.read,this.write=e.write,this.complete=e.complete,this._imageIndex=0,this._images=[],r){let c=$h.getImagePasses(t,i);for(let f=0;f<c.length;f++)this._images.push({byteWidth:Fd(c[f].width,n,a),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:Fd(t,n,a),height:i,lineIndex:0});a===8?this._xComparison=n:a===16?this._xComparison=n*2:this._xComparison=1};sr.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};sr.prototype._unFilterType1=function(o,e,t){let i=this._xComparison,r=i-1;for(let n=0;n<t;n++){let a=o[1+n],c=n>r?e[n-i]:0;e[n]=a+c}};sr.prototype._unFilterType2=function(o,e,t){let i=this._lastLine;for(let r=0;r<t;r++){let n=o[1+r],a=i?i[r]:0;e[r]=n+a}};sr.prototype._unFilterType3=function(o,e,t){let i=this._xComparison,r=i-1,n=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],f=n?n[a]:0,l=a>r?e[a-i]:0,m=Math.floor((l+f)/2);e[a]=c+m}};sr.prototype._unFilterType4=function(o,e,t){let i=this._xComparison,r=i-1,n=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],f=n?n[a]:0,l=a>r?e[a-i]:0,m=a>r&&n?n[a-i]:0,g=em(l,f,m);e[a]=c+g}};sr.prototype._reverseFilterLine=function(o){let e=o[0],t,i=this._images[this._imageIndex],r=i.byteWidth;if(e===0)t=o.slice(1,r+1);else switch(t=Buffer.alloc(r),e){case 1:this._unFilterType1(o,t,r);break;case 2:this._unFilterType2(o,t,r);break;case 3:this._unFilterType3(o,t,r);break;case 4:this._unFilterType4(o,t,r);break;default:throw new Error("Unrecognised filter type - "+e)}this.write(t),i.lineIndex++,i.lineIndex>=i.height?(this._lastLine=null,this._imageIndex++,i=this._images[this._imageIndex]):this._lastLine=t,i?this.read(i.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var xd=C((n4,zd)=>{"use strict";var tm=ye("util"),wd=Mc(),om=Hc(),im=zd.exports=function(o){wd.call(this);let e=[],t=this;this._filter=new om(o,{read:this.read.bind(this),write:s(function(i){e.push(i)},"write"),complete:s(function(){t.emit("complete",Buffer.concat(e))},"complete")}),this._filter.start()};tm.inherits(im,wd)});var cr=C((a4,Ad)=>{"use strict";Ad.exports={PNG_SIGNATURE:[137,80,78,71,13,10,26,10],TYPE_IHDR:1229472850,TYPE_IEND:1229278788,TYPE_IDAT:1229209940,TYPE_PLTE:1347179589,TYPE_tRNS:1951551059,TYPE_gAMA:1732332865,COLORTYPE_GRAYSCALE:0,COLORTYPE_PALETTE:1,COLORTYPE_COLOR:2,COLORTYPE_ALPHA:4,COLORTYPE_PALETTE_COLOR:3,COLORTYPE_COLOR_ALPHA:6,COLORTYPE_TO_BPP_MAP:{0:1,2:3,3:1,4:2,6:4},GAMMA_DIVISION:1e5}});var Uc=C((s4,Od)=>{"use strict";var Qc=[];(function(){for(let o=0;o<256;o++){let e=o;for(let t=0;t<8;t++)e&1?e=3988292384^e>>>1:e=e>>>1;Qc[o]=e}})();var Gc=Od.exports=function(){this._crc=-1};Gc.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=Qc[(this._crc^o[e])&255]^this._crc>>>8;return!0};Gc.prototype.crc32=function(){return this._crc^-1};Gc.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=Qc[(e^o[t])&255]^e>>>8;return e^-1}});var Yc=C((c4,Pd)=>{"use strict";var be=cr(),nm=Uc(),Pe=Pd.exports=function(o,e){this._options=o,o.checkCRC=o.checkCRC!==!1,this._hasIHDR=!1,this._hasIEND=!1,this._emittedHeadersFinished=!1,this._palette=[],this._colorType=0,this._chunks={},this._chunks[be.TYPE_IHDR]=this._handleIHDR.bind(this),this._chunks[be.TYPE_IEND]=this._handleIEND.bind(this),this._chunks[be.TYPE_IDAT]=this._handleIDAT.bind(this),this._chunks[be.TYPE_PLTE]=this._handlePLTE.bind(this),this._chunks[be.TYPE_tRNS]=this._handleTRNS.bind(this),this._chunks[be.TYPE_gAMA]=this._handleGAMA.bind(this),this.read=e.read,this.error=e.error,this.metadata=e.metadata,this.gamma=e.gamma,this.transColor=e.transColor,this.palette=e.palette,this.parsed=e.parsed,this.inflateData=e.inflateData,this.finished=e.finished,this.simpleTransparency=e.simpleTransparency,this.headersFinished=e.headersFinished||function(){}};Pe.prototype.start=function(){this.read(be.PNG_SIGNATURE.length,this._parseSignature.bind(this))};Pe.prototype._parseSignature=function(o){let e=be.PNG_SIGNATURE;for(let t=0;t<e.length;t++)if(o[t]!==e[t]){this.error(new Error("Invalid file signature"));return}this.read(8,this._parseChunkBegin.bind(this))};Pe.prototype._parseChunkBegin=function(o){let e=o.readUInt32BE(0),t=o.readUInt32BE(4),i="";for(let n=4;n<8;n++)i+=String.fromCharCode(o[n]);let r=!!(o[4]&32);if(!this._hasIHDR&&t!==be.TYPE_IHDR){this.error(new Error("Expected IHDR on beggining"));return}if(this._crc=new nm,this._crc.write(Buffer.from(i)),this._chunks[t])return this._chunks[t](e);if(!r){this.error(new Error("Unsupported critical chunk type "+i));return}this.read(e+4,this._skipChunk.bind(this))};Pe.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};Pe.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};Pe.prototype._parseChunkEnd=function(o){let e=o.readInt32BE(0),t=this._crc.crc32();if(this._options.checkCRC&&t!==e){this.error(new Error("Crc error - "+e+" - "+t));return}this._hasIEND||this.read(8,this._parseChunkBegin.bind(this))};Pe.prototype._handleIHDR=function(o){this.read(o,this._parseIHDR.bind(this))};Pe.prototype._parseIHDR=function(o){this._crc.write(o);let e=o.readUInt32BE(0),t=o.readUInt32BE(4),i=o[8],r=o[9],n=o[10],a=o[11],c=o[12];if(i!==8&&i!==4&&i!==2&&i!==1&&i!==16){this.error(new Error("Unsupported bit depth "+i));return}if(!(r in be.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(n!==0){this.error(new Error("Unsupported compression method"));return}if(a!==0){this.error(new Error("Unsupported filter method"));return}if(c!==0&&c!==1){this.error(new Error("Unsupported interlace method"));return}this._colorType=r;let f=be.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:t,depth:i,interlace:!!c,palette:!!(r&be.COLORTYPE_PALETTE),color:!!(r&be.COLORTYPE_COLOR),alpha:!!(r&be.COLORTYPE_ALPHA),bpp:f,colorType:r}),this._handleChunkEnd()};Pe.prototype._handlePLTE=function(o){this.read(o,this._parsePLTE.bind(this))};Pe.prototype._parsePLTE=function(o){this._crc.write(o);let e=Math.floor(o.length/3);for(let t=0;t<e;t++)this._palette.push([o[t*3],o[t*3+1],o[t*3+2],255]);this.palette(this._palette),this._handleChunkEnd()};Pe.prototype._handleTRNS=function(o){this.simpleTransparency(),this.read(o,this._parseTRNS.bind(this))};Pe.prototype._parseTRNS=function(o){if(this._crc.write(o),this._colorType===be.COLORTYPE_PALETTE_COLOR){if(this._palette.length===0){this.error(new Error("Transparency chunk must be after palette"));return}if(o.length>this._palette.length){this.error(new Error("More transparent colors than palette size"));return}for(let e=0;e<o.length;e++)this._palette[e][3]=o[e];this.palette(this._palette)}this._colorType===be.COLORTYPE_GRAYSCALE&&this.transColor([o.readUInt16BE(0)]),this._colorType===be.COLORTYPE_COLOR&&this.transColor([o.readUInt16BE(0),o.readUInt16BE(2),o.readUInt16BE(4)]),this._handleChunkEnd()};Pe.prototype._handleGAMA=function(o){this.read(o,this._parseGAMA.bind(this))};Pe.prototype._parseGAMA=function(o){this._crc.write(o),this.gamma(o.readUInt32BE(0)/be.GAMMA_DIVISION),this._handleChunkEnd()};Pe.prototype._handleIDAT=function(o){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-o,this._parseIDAT.bind(this,o))};Pe.prototype._parseIDAT=function(o,e){if(this._crc.write(e),this._colorType===be.COLORTYPE_PALETTE_COLOR&&this._palette.length===0)throw new Error("Expected palette not found");this.inflateData(e);let t=o-e.length;t>0?this._handleIDAT(t):this._handleChunkEnd()};Pe.prototype._handleIEND=function(o){this.read(o,this._parseIEND.bind(this))};Pe.prototype._parseIEND=function(o){this._crc.write(o),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var Zc=C(Ed=>{"use strict";var Dd=Bc(),rm=[function(){},function(o,e,t,i){if(i===e.length)throw new Error("Ran out of data");let r=e[i];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=255},function(o,e,t,i){if(i+1>=e.length)throw new Error("Ran out of data");let r=e[i];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=e[i+1]},function(o,e,t,i){if(i+2>=e.length)throw new Error("Ran out of data");o[t]=e[i],o[t+1]=e[i+1],o[t+2]=e[i+2],o[t+3]=255},function(o,e,t,i){if(i+3>=e.length)throw new Error("Ran out of data");o[t]=e[i],o[t+1]=e[i+1],o[t+2]=e[i+2],o[t+3]=e[i+3]}],am=[function(){},function(o,e,t,i){let r=e[0];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=i},function(o,e,t){let i=e[0];o[t]=i,o[t+1]=i,o[t+2]=i,o[t+3]=e[1]},function(o,e,t,i){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=i},function(o,e,t){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=e[3]}];function sm(o,e){let t=[],i=0;function r(){if(i===o.length)throw new Error("Ran out of data");let n=o[i];i++;let a,c,f,l,m,g,S,N;switch(e){default:throw new Error("unrecognised depth");case 16:S=o[i],i++,t.push((n<<8)+S);break;case 4:S=n&15,N=n>>4,t.push(N,S);break;case 2:m=n&3,g=n>>2&3,S=n>>4&3,N=n>>6&3,t.push(N,S,g,m);break;case 1:a=n&1,c=n>>1&1,f=n>>2&1,l=n>>3&1,m=n>>4&1,g=n>>5&1,S=n>>6&1,N=n>>7&1,t.push(N,S,g,m,l,f,c,a);break}}return s(r,"split"),{get:s(function(n){for(;t.length<n;)r();let a=t.slice(0,n);return t=t.slice(n),a},"get"),resetAfterLine:s(function(){t.length=0},"resetAfterLine"),end:s(function(){if(i!==o.length)throw new Error("extra data found")},"end")}}s(sm,"bitRetriever");function cm(o,e,t,i,r,n){let a=o.width,c=o.height,f=o.index;for(let l=0;l<c;l++)for(let m=0;m<a;m++){let g=t(m,l,f);rm[i](e,r,g,n),n+=i}return n}s(cm,"mapImage8Bit");function fm(o,e,t,i,r,n){let a=o.width,c=o.height,f=o.index;for(let l=0;l<c;l++){for(let m=0;m<a;m++){let g=r.get(i),S=t(m,l,f);am[i](e,g,S,n)}r.resetAfterLine()}}s(fm,"mapImageCustomBit");Ed.dataToBitMap=function(o,e){let t=e.width,i=e.height,r=e.depth,n=e.bpp,a=e.interlace,c;r!==8&&(c=sm(o,r));let f;r<=8?f=Buffer.alloc(t*i*4):f=new Uint16Array(t*i*4);let l=Math.pow(2,r)-1,m=0,g,S;if(a)g=Dd.getImagePasses(t,i),S=Dd.getInterlaceIterator(t,i);else{let N=0;S=s(function(){let F=N;return N+=4,F},"getPxPos"),g=[{width:t,height:i}]}for(let N=0;N<g.length;N++)r===8?m=cm(g[N],f,S,n,o,m):fm(g[N],f,S,n,c,l);if(r===8){if(m!==o.length)throw new Error("extra data found")}else c.end();return f}});var qc=C((d4,Td)=>{"use strict";function pm(o,e,t,i,r){let n=0;for(let a=0;a<i;a++)for(let c=0;c<t;c++){let f=r[o[n]];if(!f)throw new Error("index "+o[n]+" not in palette");for(let l=0;l<4;l++)e[n+l]=f[l];n+=4}}s(pm,"dePalette");function dm(o,e,t,i,r){let n=0;for(let a=0;a<i;a++)for(let c=0;c<t;c++){let f=!1;if(r.length===1?r[0]===o[n]&&(f=!0):r[0]===o[n]&&r[1]===o[n+1]&&r[2]===o[n+2]&&(f=!0),f)for(let l=0;l<4;l++)e[n+l]=0;n+=4}}s(dm,"replaceTransparentColor");function lm(o,e,t,i,r){let n=255,a=Math.pow(2,r)-1,c=0;for(let f=0;f<i;f++)for(let l=0;l<t;l++){for(let m=0;m<4;m++)e[c+m]=Math.floor(o[c+m]*n/a+.5);c+=4}}s(lm,"scaleDepth");Td.exports=function(o,e){let t=e.depth,i=e.width,r=e.height,n=e.colorType,a=e.transColor,c=e.palette,f=o;return n===3?pm(o,f,i,r,c):(a&&dm(o,f,i,r,a),t!==8&&(t===16&&(f=Buffer.alloc(i*r*4)),lm(o,f,i,r,t))),f}});var Ld=C((u4,Md)=>{"use strict";var um=ye("util"),Xc=ye("zlib"),jd=Mc(),hm=xd(),mm=Yc(),gm=Zc(),vm=qc(),So=Md.exports=function(o){jd.call(this),this._parser=new mm(o,{read:this.read.bind(this),error:this._handleError.bind(this),metadata:this._handleMetaData.bind(this),gamma:this.emit.bind(this,"gamma"),palette:this._handlePalette.bind(this),transColor:this._handleTransColor.bind(this),finished:this._finished.bind(this),inflateData:this._inflateData.bind(this),simpleTransparency:this._simpleTransparency.bind(this),headersFinished:this._headersFinished.bind(this)}),this._options=o,this.writable=!0,this._parser.start()};um.inherits(So,jd);So.prototype._handleError=function(o){this.emit("error",o),this.writable=!1,this.destroy(),this._inflate&&this._inflate.destroy&&this._inflate.destroy(),this._filter&&(this._filter.destroy(),this._filter.on("error",function(){})),this.errord=!0};So.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=Xc.createInflate(),this._inflate.on("error",this.emit.bind(this,"error")),this._filter.on("complete",this._complete.bind(this)),this._inflate.pipe(this._filter);else{let t=((this._bitmapInfo.width*this._bitmapInfo.bpp*this._bitmapInfo.depth+7>>3)+1)*this._bitmapInfo.height,i=Math.max(t,Xc.Z_MIN_CHUNK);this._inflate=Xc.createInflate({chunkSize:i});let r=t,n=this.emit.bind(this,"error");this._inflate.on("error",function(c){r&&n(c)}),this._filter.on("complete",this._complete.bind(this));let a=this._filter.write.bind(this._filter);this._inflate.on("data",function(c){r&&(c.length>r&&(c=c.slice(0,r)),r-=c.length,a(c))}),this._inflate.on("end",this._filter.end.bind(this._filter))}this._inflate.write(o)};So.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new hm(this._bitmapInfo)};So.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};So.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};So.prototype._simpleTransparency=function(){this._metaData.alpha=!0};So.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};So.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};So.prototype._complete=function(o){if(this.errord)return;let e;try{let t=gm.dataToBitMap(o,this._bitmapInfo);e=vm(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Vd=C((h4,Bd)=>{"use strict";var xt=cr();Bd.exports=function(o,e,t,i){let r=[xt.COLORTYPE_COLOR_ALPHA,xt.COLORTYPE_ALPHA].indexOf(i.colorType)!==-1;if(i.colorType===i.inputColorType){let F=(function(){let O=new ArrayBuffer(2);return new DataView(O).setInt16(0,256,!0),new Int16Array(O)[0]!==256})();if(i.bitDepth===8||i.bitDepth===16&&F)return o}let n=i.bitDepth!==16?o:new Uint16Array(o.buffer),a=255,c=xt.COLORTYPE_TO_BPP_MAP[i.inputColorType];c===4&&!i.inputHasAlpha&&(c=3);let f=xt.COLORTYPE_TO_BPP_MAP[i.colorType];i.bitDepth===16&&(a=65535,f*=2);let l=Buffer.alloc(e*t*f),m=0,g=0,S=i.bgColor||{};S.red===void 0&&(S.red=a),S.green===void 0&&(S.green=a),S.blue===void 0&&(S.blue=a);function N(){let F,O,A,L=a;switch(i.inputColorType){case xt.COLORTYPE_COLOR_ALPHA:L=n[m+3],F=n[m],O=n[m+1],A=n[m+2];break;case xt.COLORTYPE_COLOR:F=n[m],O=n[m+1],A=n[m+2];break;case xt.COLORTYPE_ALPHA:L=n[m+1],F=n[m],O=F,A=F;break;case xt.COLORTYPE_GRAYSCALE:F=n[m],O=F,A=F;break;default:throw new Error("input color type:"+i.inputColorType+" is not supported at present")}return i.inputHasAlpha&&(r||(L/=a,F=Math.min(Math.max(Math.round((1-L)*S.red+L*F),0),a),O=Math.min(Math.max(Math.round((1-L)*S.green+L*O),0),a),A=Math.min(Math.max(Math.round((1-L)*S.blue+L*A),0),a))),{red:F,green:O,blue:A,alpha:L}}s(N,"getRGBA");for(let F=0;F<t;F++)for(let O=0;O<e;O++){let A=N(n,m);switch(i.colorType){case xt.COLORTYPE_COLOR_ALPHA:case xt.COLORTYPE_COLOR:i.bitDepth===8?(l[g]=A.red,l[g+1]=A.green,l[g+2]=A.blue,r&&(l[g+3]=A.alpha)):(l.writeUInt16BE(A.red,g),l.writeUInt16BE(A.green,g+2),l.writeUInt16BE(A.blue,g+4),r&&l.writeUInt16BE(A.alpha,g+6));break;case xt.COLORTYPE_ALPHA:case xt.COLORTYPE_GRAYSCALE:{let L=(A.red+A.green+A.blue)/3;i.bitDepth===8?(l[g]=L,r&&(l[g+1]=A.alpha)):(l.writeUInt16BE(L,g),r&&l.writeUInt16BE(A.alpha,g+2));break}default:throw new Error("unrecognised color Type "+i.colorType)}m+=c,g+=f}return l}});var Gd=C((g4,Qd)=>{"use strict";var Hd=Vc();function ym(o,e,t,i,r){for(let n=0;n<t;n++)i[r+n]=o[e+n]}s(ym,"filterNone");function Sm(o,e,t){let i=0,r=e+t;for(let n=e;n<r;n++)i+=Math.abs(o[n]);return i}s(Sm,"filterSumNone");function Nm(o,e,t,i,r,n){for(let a=0;a<t;a++){let c=a>=n?o[e+a-n]:0,f=o[e+a]-c;i[r+a]=f}}s(Nm,"filterSub");function Cm(o,e,t,i){let r=0;for(let n=0;n<t;n++){let a=n>=i?o[e+n-i]:0,c=o[e+n]-a;r+=Math.abs(c)}return r}s(Cm,"filterSumSub");function bm(o,e,t,i,r){for(let n=0;n<t;n++){let a=e>0?o[e+n-t]:0,c=o[e+n]-a;i[r+n]=c}}s(bm,"filterUp");function Rm(o,e,t){let i=0,r=e+t;for(let n=e;n<r;n++){let a=e>0?o[n-t]:0,c=o[n]-a;i+=Math.abs(c)}return i}s(Rm,"filterSumUp");function Fm(o,e,t,i,r,n){for(let a=0;a<t;a++){let c=a>=n?o[e+a-n]:0,f=e>0?o[e+a-t]:0,l=o[e+a]-(c+f>>1);i[r+a]=l}}s(Fm,"filterAvg");function Im(o,e,t,i){let r=0;for(let n=0;n<t;n++){let a=n>=i?o[e+n-i]:0,c=e>0?o[e+n-t]:0,f=o[e+n]-(a+c>>1);r+=Math.abs(f)}return r}s(Im,"filterSumAvg");function wm(o,e,t,i,r,n){for(let a=0;a<t;a++){let c=a>=n?o[e+a-n]:0,f=e>0?o[e+a-t]:0,l=e>0&&a>=n?o[e+a-(t+n)]:0,m=o[e+a]-Hd(c,f,l);i[r+a]=m}}s(wm,"filterPaeth");function zm(o,e,t,i){let r=0;for(let n=0;n<t;n++){let a=n>=i?o[e+n-i]:0,c=e>0?o[e+n-t]:0,f=e>0&&n>=i?o[e+n-(t+i)]:0,l=o[e+n]-Hd(a,c,f);r+=Math.abs(l)}return r}s(zm,"filterSumPaeth");var xm={0:ym,1:Nm,2:bm,3:Fm,4:wm},Am={0:Sm,1:Cm,2:Rm,3:Im,4:zm};Qd.exports=function(o,e,t,i,r){let n;if(!("filterType"in i)||i.filterType===-1)n=[0,1,2,3,4];else if(typeof i.filterType=="number")n=[i.filterType];else throw new Error("unrecognised filter types");i.bitDepth===16&&(r*=2);let a=e*r,c=0,f=0,l=Buffer.alloc((a+1)*t),m=n[0];for(let g=0;g<t;g++){if(n.length>1){let S=1/0;for(let N=0;N<n.length;N++){let F=Am[n[N]](o,f,a,r);F<S&&(m=n[N],S=F)}}l[c]=m,c++,xm[m](o,f,a,l,c,r),c+=a,f+=a}return l}});var Jc=C((y4,Ud)=>{"use strict";var _e=cr(),Om=Uc(),Pm=Vd(),Dm=Gd(),Em=ye("zlib"),Ei=Ud.exports=function(o){if(this._options=o,o.deflateChunkSize=o.deflateChunkSize||32*1024,o.deflateLevel=o.deflateLevel!=null?o.deflateLevel:9,o.deflateStrategy=o.deflateStrategy!=null?o.deflateStrategy:3,o.inputHasAlpha=o.inputHasAlpha!=null?o.inputHasAlpha:!0,o.deflateFactory=o.deflateFactory||Em.createDeflate,o.bitDepth=o.bitDepth||8,o.colorType=typeof o.colorType=="number"?o.colorType:_e.COLORTYPE_COLOR_ALPHA,o.inputColorType=typeof o.inputColorType=="number"?o.inputColorType:_e.COLORTYPE_COLOR_ALPHA,[_e.COLORTYPE_GRAYSCALE,_e.COLORTYPE_COLOR,_e.COLORTYPE_COLOR_ALPHA,_e.COLORTYPE_ALPHA].indexOf(o.colorType)===-1)throw new Error("option color type:"+o.colorType+" is not supported at present");if([_e.COLORTYPE_GRAYSCALE,_e.COLORTYPE_COLOR,_e.COLORTYPE_COLOR_ALPHA,_e.COLORTYPE_ALPHA].indexOf(o.inputColorType)===-1)throw new Error("option input color type:"+o.inputColorType+" is not supported at present");if(o.bitDepth!==8&&o.bitDepth!==16)throw new Error("option bit depth:"+o.bitDepth+" is not supported at present")};Ei.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};Ei.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};Ei.prototype.filterData=function(o,e,t){let i=Pm(o,e,t,this._options),r=_e.COLORTYPE_TO_BPP_MAP[this._options.colorType];return Dm(i,e,t,this._options,r)};Ei.prototype._packChunk=function(o,e){let t=e?e.length:0,i=Buffer.alloc(t+12);return i.writeUInt32BE(t,0),i.writeUInt32BE(o,4),e&&e.copy(i,8),i.writeInt32BE(Om.crc32(i.slice(4,i.length-4)),i.length-4),i};Ei.prototype.packGAMA=function(o){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(o*_e.GAMMA_DIVISION),0),this._packChunk(_e.TYPE_gAMA,e)};Ei.prototype.packIHDR=function(o,e){let t=Buffer.alloc(13);return t.writeUInt32BE(o,0),t.writeUInt32BE(e,4),t[8]=this._options.bitDepth,t[9]=this._options.colorType,t[10]=0,t[11]=0,t[12]=0,this._packChunk(_e.TYPE_IHDR,t)};Ei.prototype.packIDAT=function(o){return this._packChunk(_e.TYPE_IDAT,o)};Ei.prototype.packIEND=function(){return this._packChunk(_e.TYPE_IEND,null)}});var Xd=C((S4,qd)=>{"use strict";var Tm=ye("util"),Yd=ye("stream"),jm=cr(),Mm=Jc(),Zd=qd.exports=function(o){Yd.call(this);let e=o||{};this._packer=new Mm(e),this._deflate=this._packer.createDeflate(),this.readable=!0};Tm.inherits(Zd,Yd);Zd.prototype.pack=function(o,e,t,i){this.emit("data",Buffer.from(jm.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),i&&this.emit("data",this._packer.packGAMA(i));let r=this._packer.filterData(o,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(n){this.emit("data",this._packer.packIDAT(n))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(r)}});var $d=C((Yr,_d)=>{"use strict";var Jd=ye("assert").ok,fr=ye("zlib"),Lm=ye("util"),Wd=ye("buffer").kMaxLength;function sn(o){if(!(this instanceof sn))return new sn(o);o&&o.chunkSize<fr.Z_MIN_CHUNK&&(o.chunkSize=fr.Z_MIN_CHUNK),fr.Inflate.call(this,o),this._offset=this._offset===void 0?this._outOffset:this._offset,this._buffer=this._buffer||this._outBuffer,o&&o.maxLength!=null&&(this._maxLength=o.maxLength)}s(sn,"Inflate");function Bm(o){return new sn(o)}s(Bm,"createInflate");function Kd(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}s(Kd,"_close");sn.prototype._processChunk=function(o,e,t){if(typeof t=="function")return fr.Inflate._processChunk.call(this,o,e,t);let i=this,r=o&&o.length,n=this._chunkSize-this._offset,a=this._maxLength,c=0,f=[],l=0,m;this.on("error",function(F){m=F});function g(F,O){if(i._hadError)return;let A=n-O;if(Jd(A>=0,"have should not go down"),A>0){let L=i._buffer.slice(i._offset,i._offset+A);if(i._offset+=A,L.length>a&&(L=L.slice(0,a)),f.push(L),l+=L.length,a-=L.length,a===0)return!1}return(O===0||i._offset>=i._chunkSize)&&(n=i._chunkSize,i._offset=0,i._buffer=Buffer.allocUnsafe(i._chunkSize)),O===0?(c+=r-F,r=F,!0):!1}s(g,"handleChunk"),Jd(this._handle,"zlib binding closed");let S;do S=this._handle.writeSync(e,o,c,r,this._buffer,this._offset,n),S=S||this._writeState;while(!this._hadError&&g(S[0],S[1]));if(this._hadError)throw m;if(l>=Wd)throw Kd(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Wd.toString(16)+" bytes");let N=Buffer.concat(f,l);return Kd(this),N};Lm.inherits(sn,fr.Inflate);function Vm(o,e){if(typeof e=="string"&&(e=Buffer.from(e)),!(e instanceof Buffer))throw new TypeError("Not a string or buffer");let t=o._finishFlushFlag;return t==null&&(t=fr.Z_FINISH),o._processChunk(e,t)}s(Vm,"zlibBufferSync");function kd(o,e){return Vm(new sn(e),o)}s(kd,"inflateSync");_d.exports=Yr=kd;Yr.Inflate=sn;Yr.createInflate=Bm;Yr.inflateSync=kd});var Wc=C((C4,tl)=>{"use strict";var el=tl.exports=function(o){this._buffer=o,this._reads=[]};el.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};el.prototype.process=function(){for(;this._reads.length>0&&this._buffer.length;){let o=this._reads[0];if(this._buffer.length&&(this._buffer.length>=o.length||o.allowLess)){this._reads.shift();let e=this._buffer;this._buffer=e.slice(o.length),o.func.call(this,e.slice(0,o.length))}else break}if(this._reads.length>0)return new Error("There are some read requests waitng on finished stream");if(this._buffer.length>0)return new Error("unrecognised content at end of stream")}});var il=C(ol=>{"use strict";var Hm=Wc(),Qm=Hc();ol.process=function(o,e){let t=[],i=new Hm(o);return new Qm(e,{read:i.read.bind(i),write:s(function(n){t.push(n)},"write"),complete:s(function(){},"complete")}).start(),i.process(),Buffer.concat(t)}});var sl=C((F4,al)=>{"use strict";var nl=!0,rl=ye("zlib"),Gm=$d();rl.deflateSync||(nl=!1);var Um=Wc(),Ym=il(),Zm=Yc(),qm=Zc(),Xm=qc();al.exports=function(o,e){if(!nl)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t;function i(Ue){t=Ue}s(i,"handleError");let r;function n(Ue){r=Ue}s(n,"handleMetaData");function a(Ue){r.transColor=Ue}s(a,"handleTransColor");function c(Ue){r.palette=Ue}s(c,"handlePalette");function f(){r.alpha=!0}s(f,"handleSimpleTransparency");let l;function m(Ue){l=Ue}s(m,"handleGamma");let g=[];function S(Ue){g.push(Ue)}s(S,"handleInflateData");let N=new Um(o);if(new Zm(e,{read:N.read.bind(N),error:i,metadata:n,gamma:m,palette:c,transColor:a,inflateData:S,simpleTransparency:f}).start(),N.process(),t)throw t;let O=Buffer.concat(g);g.length=0;let A;if(r.interlace)A=rl.inflateSync(O);else{let vt=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;A=Gm(O,{chunkSize:vt,maxLength:vt})}if(O=null,!A||!A.length)throw new Error("bad png - invalid inflate data response");let L=Ym.process(A,r);O=null;let At=qm.dataToBitMap(L,r);L=null;let Co=Xm(At,r);return r.data=Co,r.gamma=l||0,r}});var dl=C((w4,pl)=>{"use strict";var cl=!0,fl=ye("zlib");fl.deflateSync||(cl=!1);var Jm=cr(),Wm=Jc();pl.exports=function(o,e){if(!cl)throw new Error("To use the sync capability of this library in old node versions, please pin pngjs to v2.3.0");let t=e||{},i=new Wm(t),r=[];r.push(Buffer.from(Jm.PNG_SIGNATURE)),r.push(i.packIHDR(o.width,o.height)),o.gamma&&r.push(i.packGAMA(o.gamma));let n=i.filterData(o.data,o.width,o.height),a=fl.deflateSync(n,i.getDeflateOptions());if(n=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return r.push(i.packIDAT(a)),r.push(i.packIEND()),Buffer.concat(r)}});var ll=C(Kc=>{"use strict";var Km=sl(),km=dl();Kc.read=function(o,e){return Km(o,e||{})};Kc.write=function(o,e){return km(o,e)}});var ml=C(hl=>{"use strict";var _m=ye("util"),ul=ye("stream"),$m=Ld(),eg=Xd(),tg=ll(),rt=hl.PNG=function(o){ul.call(this),o=o||{},this.width=o.width|0,this.height=o.height|0,this.data=this.width>0&&this.height>0?Buffer.alloc(4*this.width*this.height):null,o.fill&&this.data&&this.data.fill(0),this.gamma=0,this.readable=this.writable=!0,this._parser=new $m(o),this._parser.on("error",this.emit.bind(this,"error")),this._parser.on("close",this._handleClose.bind(this)),this._parser.on("metadata",this._metadata.bind(this)),this._parser.on("gamma",this._gamma.bind(this)),this._parser.on("parsed",(function(e){this.data=e,this.emit("parsed",e)}).bind(this)),this._packer=new eg(o),this._packer.on("data",this.emit.bind(this,"data")),this._packer.on("end",this.emit.bind(this,"end")),this._parser.on("close",this._handleClose.bind(this)),this._packer.on("error",this.emit.bind(this,"error"))};_m.inherits(rt,ul);rt.sync=tg;rt.prototype.pack=function(){return!this.data||!this.data.length?(this.emit("error","No data provided"),this):(process.nextTick((function(){this._packer.pack(this.data,this.width,this.height,this.gamma)}).bind(this)),this)};rt.prototype.parse=function(o,e){if(e){let t,i;t=(function(r){this.removeListener("error",i),this.data=r,e(null,this)}).bind(this),i=(function(r){this.removeListener("parsed",t),e(r,null)}).bind(this),this.once("parsed",t),this.once("error",i)}return this.end(o),this};rt.prototype.write=function(o){return this._parser.write(o),!0};rt.prototype.end=function(o){this._parser.end(o)};rt.prototype._metadata=function(o){this.width=o.width,this.height=o.height,this.emit("metadata",o)};rt.prototype._gamma=function(o){this.gamma=o};rt.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};rt.bitblt=function(o,e,t,i,r,n,a,c){if(t|=0,i|=0,r|=0,n|=0,a|=0,c|=0,t>o.width||i>o.height||t+r>o.width||i+n>o.height)throw new Error("bitblt reading outside image");if(a>e.width||c>e.height||a+r>e.width||c+n>e.height)throw new Error("bitblt writing outside image");for(let f=0;f<n;f++)o.data.copy(e.data,(c+f)*e.width+a<<2,(i+f)*o.width+t<<2,(i+f)*o.width+t+r<<2)};rt.prototype.bitblt=function(o,e,t,i,r,n,a){return rt.bitblt(this,o,e,t,i,r,n,a),this};rt.adjustGamma=function(o){if(o.gamma){for(let e=0;e<o.height;e++)for(let t=0;t<o.width;t++){let i=o.width*e+t<<2;for(let r=0;r<3;r++){let n=o.data[i+r]/255;n=Math.pow(n,1/2.2/o.gamma),o.data[i+r]=Math.round(n*255)}}o.gamma=0}};rt.prototype.adjustGamma=function(){rt.adjustGamma(this)}});var Zr=C(cn=>{"use strict";function gl(o){if(typeof o=="number"&&(o=o.toString()),typeof o!="string")throw new Error("Color should be defined as hex string");let e=o.slice().replace("#","").split("");if(e.length<3||e.length===5||e.length>8)throw new Error("Invalid hex color: "+o);(e.length===3||e.length===4)&&(e=Array.prototype.concat.apply([],e.map(function(i){return[i,i]}))),e.length===6&&e.push("F","F");let t=parseInt(e.join(""),16);return{r:t>>24&255,g:t>>16&255,b:t>>8&255,a:t&255,hex:"#"+e.slice(0,6).join("")}}s(gl,"hex2rgba");cn.getOptions=s(function(e){e||(e={}),e.color||(e.color={});let t=typeof e.margin>"u"||e.margin===null||e.margin<0?4:e.margin,i=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:i,scale:i?4:r,margin:t,color:{dark:gl(e.color.dark||"#000000ff"),light:gl(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");cn.getScale=s(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");cn.getImageWidth=s(function(e,t){let i=cn.getScale(e,t);return Math.floor((e+t.margin*2)*i)},"getImageWidth");cn.qrToImageData=s(function(e,t,i){let r=t.modules.size,n=t.modules.data,a=cn.getScale(r,i),c=Math.floor((r+i.margin*2)*a),f=i.margin*a,l=[i.color.light,i.color.dark];for(let m=0;m<c;m++)for(let g=0;g<c;g++){let S=(m*c+g)*4,N=i.color.light;if(m>=f&&g>=f&&m<c-f&&g<c-f){let F=Math.floor((m-f)/a),O=Math.floor((g-f)/a);N=l[n[F*r+O]?1:0]}e[S++]=N.r,e[S++]=N.g,e[S++]=N.b,e[S]=N.a}},"qrToImageData")});var vl=C(No=>{"use strict";var og=ye("fs"),ig=ml().PNG,kc=Zr();No.render=s(function(e,t){let i=kc.getOptions(t),r=i.rendererOpts,n=kc.getImageWidth(e.modules.size,i);r.width=n,r.height=n;let a=new ig(r);return kc.qrToImageData(a.data,e,i),a},"render");No.renderToDataURL=s(function(e,t,i){typeof i>"u"&&(i=t,t=void 0),No.renderToBuffer(e,t,function(r,n){r&&i(r);let a="data:image/png;base64,";a+=n.toString("base64"),i(null,a)})},"renderToDataURL");No.renderToBuffer=s(function(e,t,i){typeof i>"u"&&(i=t,t=void 0);let r=No.render(e,t),n=[];r.on("error",i),r.on("data",function(a){n.push(a)}),r.on("end",function(){i(null,Buffer.concat(n))}),r.pack()},"renderToBuffer");No.renderToFile=s(function(e,t,i,r){typeof r>"u"&&(r=i,i=void 0);let n=!1,a=s((...f)=>{n||(n=!0,r.apply(null,f))},"done"),c=og.createWriteStream(e);c.on("error",a),c.on("close",a),No.renderToFileStream(c,t,i)},"renderToFile");No.renderToFileStream=s(function(e,t,i){No.render(t,i).pack().pipe(e)},"renderToFileStream")});var yl=C(cs=>{"use strict";var ng=Zr(),rg={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},ag={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function sg(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}s(sg,"getBlockChar");cs.render=function(o,e,t){let i=ng.getOptions(e),r=rg;(i.color.dark.hex==="#ffffff"||i.color.light.hex==="#000000")&&(r=ag);let n=o.modules.size,a=o.modules.data,c="",f=Array(n+i.margin*2+1).join(r.WW);f=Array(i.margin/2+1).join(f+`
|
|
9
|
+
`);let l=Array(i.margin+1).join(r.WW);c+=f;for(let m=0;m<n;m+=2){c+=l;for(let g=0;g<n;g++){let S=a[m*n+g],N=a[(m+1)*n+g];c+=sg(S,N,r)}c+=l+`
|
|
10
|
+
`}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};cs.renderToFile=s(function(e,t,i,r){typeof r>"u"&&(r=i,i=void 0);let n=ye("fs"),a=cs.render(t,i);n.writeFile(e,a,r)},"renderToFile")});var Nl=C(Sl=>{"use strict";Sl.render=function(o,e,t){let i=o.modules.size,r=o.modules.data,n="\x1B[40m \x1B[0m",a="\x1B[47m \x1B[0m",c="",f=Array(i+3).join(a),l=Array(2).join(a);c+=f+`
|
|
11
|
+
`;for(let m=0;m<i;++m){c+=a;for(let g=0;g<i;g++)c+=r[m*i+g]?n:a;c+=l+`
|
|
12
|
+
`}return c+=f+`
|
|
13
|
+
`,typeof t=="function"&&t(null,c),c}});var Fl=C(Rl=>{"use strict";var cg="\x1B[47m",fg="\x1B[40m",_c="\x1B[37m",$c="\x1B[30m",fn="\x1B[0m",pg=cg+$c,dg=fg+_c,lg=s(function(o,e,t){return{"00":fn+" "+o,"01":fn+e+"\u2584"+o,"02":fn+t+"\u2584"+o,10:fn+e+"\u2580"+o,11:" ",12:"\u2584",20:fn+t+"\u2580"+o,21:"\u2580",22:"\u2588"}},"createPalette"),Cl=s(function(o,e,t,i){let r=e+1;if(t>=r||i>=r||i<-1||t<-1)return"0";if(t>=e||i>=e||i<0||t<0)return"1";let n=i*e+t;return o[n]?"2":"1"},"mkCodePixel"),bl=s(function(o,e,t,i){return Cl(o,e,t,i)+Cl(o,e,t,i+1)},"mkCode");Rl.render=function(o,e,t){let i=o.modules.size,r=o.modules.data,n=!!(e&&e.inverse),a=e&&e.inverse?dg:pg,l=lg(a,n?$c:_c,n?_c:$c),m=fn+`
|
|
14
|
+
`+a,g=a;for(let S=-1;S<i+1;S+=2){for(let N=-1;N<i;N++)g+=l[bl(r,i,N,S)];g+=l[bl(r,i,i,S)]+m}return g+=fn,typeof t=="function"&&t(null,g),g}});var wl=C(Il=>{"use strict";var ug=Nl(),hg=Fl();Il.render=function(o,e,t){return e&&e.small?hg.render(o,e,t):ug.render(o,e,t)}});var tf=C(xl=>{"use strict";var mg=Zr();function zl(o,e){let t=o.a/255,i=e+'="'+o.hex+'"';return t<1?i+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':i}s(zl,"getColorAttrib");function ef(o,e,t){let i=o+e;return typeof t<"u"&&(i+=" "+t),i}s(ef,"svgCmd");function gg(o,e,t){let i="",r=0,n=!1,a=0;for(let c=0;c<o.length;c++){let f=Math.floor(c%e),l=Math.floor(c/e);!f&&!n&&(n=!0),o[c]?(a++,c>0&&f>0&&o[c-1]||(i+=n?ef("M",f+t,.5+l+t):ef("m",r,0),r=0,n=!1),f+1<e&&o[c+1]||(i+=ef("h",a),a=0)):r++}return i}s(gg,"qrToPath");xl.render=s(function(e,t,i){let r=mg.getOptions(t),n=e.modules.size,a=e.modules.data,c=n+r.margin*2,f=r.color.light.a?"<path "+zl(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",l="<path "+zl(r.color.dark,"stroke")+' d="'+gg(a,n,r.margin)+'"/>',m='viewBox="0 0 '+c+" "+c+'"',S='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+m+' shape-rendering="crispEdges">'+f+l+`</svg>
|
|
15
|
+
`;return typeof i=="function"&&i(null,S),S},"render")});var Al=C(fs=>{"use strict";var vg=tf();fs.render=vg.render;fs.renderToFile=s(function(e,t,i,r){typeof r>"u"&&(r=i,i=void 0);let n=ye("fs"),c='<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">'+fs.render(t,i);n.writeFile(e,c,r)},"renderToFile")});var Ol=C(ps=>{"use strict";var of=Zr();function yg(o,e,t){o.clearRect(0,0,e.width,e.height),e.style||(e.style={}),e.height=t,e.width=t,e.style.height=t+"px",e.style.width=t+"px"}s(yg,"clearCanvas");function Sg(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}s(Sg,"getCanvasElement");ps.render=s(function(e,t,i){let r=i,n=t;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),t||(n=Sg()),r=of.getOptions(r);let a=of.getImageWidth(e.modules.size,r),c=n.getContext("2d"),f=c.createImageData(a,a);return of.qrToImageData(f.data,e,r),yg(c,n,a),c.putImageData(f,0,0),n},"render");ps.renderToDataURL=s(function(e,t,i){let r=i;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),r||(r={});let n=ps.render(e,t,r),a=r.type||"image/png",c=r.rendererOpts||{};return n.toDataURL(a,c.quality)},"renderToDataURL")});var Dl=C(qr=>{"use strict";var Ng=gc(),nf=jc(),Pl=Ol(),Cg=tf();function rf(o,e,t,i,r){let n=[].slice.call(arguments,1),a=n.length,c=typeof n[a-1]=="function";if(!c&&!Ng())throw new Error("Callback required as last argument");if(c){if(a<2)throw new Error("Too few arguments provided");a===2?(r=t,t=e,e=i=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=i,i=void 0):(r=i,i=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=i=void 0):a===2&&!e.getContext&&(i=t,t=e,e=void 0),new Promise(function(f,l){try{let m=nf.create(t,i);f(o(m,e,i))}catch(m){l(m)}})}try{let f=nf.create(t,i);r(null,o(f,e,i))}catch(f){r(f)}}s(rf,"renderCanvas");qr.create=nf.create;qr.toCanvas=rf.bind(null,Pl.render);qr.toDataURL=rf.bind(null,Pl.renderToDataURL);qr.toString=rf.bind(null,function(o,e,t){return Cg.render(o,t)})});var Ml=C(Ti=>{"use strict";var El=gc(),af=jc(),bg=vl(),Tl=yl(),Rg=wl(),jl=Al();function Xr(o,e,t){if(typeof o>"u")throw new Error("String required as first argument");if(typeof t>"u"&&(t=e,e={}),typeof t!="function")if(El())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}s(Xr,"checkParams");function Fg(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}s(Fg,"getTypeFromFilename");function ds(o){switch(o){case"svg":return jl;case"txt":case"utf8":return Tl;case"png":case"image/png":default:return bg}}s(ds,"getRendererFromType");function Ig(o){switch(o){case"svg":return jl;case"terminal":return Rg;case"utf8":default:return Tl}}s(Ig,"getStringRendererFromType");function Jr(o,e,t){if(!t.cb)return new Promise(function(i,r){try{let n=af.create(e,t.opts);return o(n,t.opts,function(a,c){return a?r(a):i(c)})}catch(n){r(n)}});try{let i=af.create(e,t.opts);return o(i,t.opts,t.cb)}catch(i){t.cb(i)}}s(Jr,"render");Ti.create=af.create;Ti.toCanvas=Dl().toCanvas;Ti.toString=s(function(e,t,i){let r=Xr(e,t,i),n=r.opts?r.opts.type:void 0,a=Ig(n);return Jr(a.render,e,r)},"toString");Ti.toDataURL=s(function(e,t,i){let r=Xr(e,t,i),n=ds(r.opts.type);return Jr(n.renderToDataURL,e,r)},"toDataURL");Ti.toBuffer=s(function(e,t,i){let r=Xr(e,t,i),n=ds(r.opts.type);return Jr(n.renderToBuffer,e,r)},"toBuffer");Ti.toFile=s(function(e,t,i,r){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!El())throw new Error("Too few arguments provided");let n=Xr(t,i,r),a=n.opts.type||Fg(e),f=ds(a).renderToFile.bind(null,e);return Jr(f,t,n)},"toFile");Ti.toFileStream=s(function(e,t,i){if(arguments.length<2)throw new Error("Too few arguments provided");let r=Xr(t,i,e.emit.bind(e,"error")),a=ds("png").renderToFileStream.bind(null,e);Jr(a,t,r)},"toFileStream")});var Bl=C((W4,Ll)=>{"use strict";Ll.exports=Ml()});var $e=(function(o){return o.Normal="1",o.EPEC="4",o.SVCAN="6",o.SVCRS="7",o.OFFLINE="9",o})({});var hi=(function(o){return o.Cancelamento="110111",o})({});import{existsSync as Yl}from"fs";import{resolve as ur}from"path";var Zl={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21"},kr=s(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;let o=vf(),e=[ur(o,"node_modules","nfets","packages","nfe","schemas"),ur(o,"../../../../","nfe","schemas"),ur(o,"../../../","nfe","schemas"),ur(o,"../../","nfe","schemas"),ur(o,"../","nfe","schemas")];for(let t of e)if(Yl(t))return t;return o},"schemas"),Sf=Zl;var _r=class{static{s(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),i=e.year.toString().padStart(2,"0"),r=e.month.toString().padStart(2,"0"),n=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),c=e.serie.toString().padStart(3,"0"),f=e.nNF.toString().padStart(9,"0"),l=e.tpEmis.toString().padStart(1,"0"),m=(e.cNF??this.code()).toString().padStart(8,"0"),g=`${t}${i}${r}${n}${a}${c}${f}${l}${m}`;return`${g}${this.verifyingDigit(g)}`}decompile(e){if(e.length!==44)return;let i=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!i)return;let[r,n,a,c,f,l,m,g,S,N,F]=i;return{cUF:n,year:a,month:c,identification:f,mod:l,serie:m,nNF:g,tpEmis:S,cNF:N,vd:F}}code(){let e=Math.floor(Math.random()*1e8).toString().padStart(8,"0");return this.isCodeValid(e)?e:this.code()}isCodeValid(e){return!~["00000000","11111111","22222222","33333333","44444444","55555555","66666666","77777777","88888888","99999999","12345678","23456789","34567890","45678901","56789012","67890123","78901234","89012345","90123456","01234567"].indexOf(e)}verifyingDigit(e){let t=[2,3,4,5,6,7,8,9],i=42,r=0;for(;i>=0;)for(let a=0;a<8&&i>=0;a++){let c=parseInt(e[i]);r+=c*t[a],i--}let n=11-r%11;return n>9?0:n}};var $r=class{static{s(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let t=at.from(0);this.builder.increment(({ICMSTot:i})=>({ICMSTot:{vProd:at.newOrZero(i?.vProd).add(e.vProd).toFixed(2),vFrete:at.newOrZero(i?.vFrete).add(e.vFrete??t).toFixed(2),vSeg:at.newOrZero(i?.vSeg).add(e.vSeg??t).toFixed(2),vDesc:at.newOrZero(i?.vDesc).add(e.vDesc??t).toFixed(2),vOutro:at.newOrZero(i?.vOutro).add(e.vOutro??t).toFixed(2)}}))}icms(e){}};var ea=class{static{s(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=at.from(0);this.builder.increment(({ICMSTot:t,ISSQNtot:i})=>({ICMSTot:{vNF:at.newOrZero(t?.vProd).sub(t?.vDesc??e).sub(t?.vICMSDeson??e).add(t?.vST??e).add(t?.vFCPST??e).add(t?.vFrete??e).add(t?.vSeg??e).add(t?.vOutro??e).add(t?.vII??e).add(t?.vIPI??e).add(t?.vIPIDevol??e).add(i?.vServ??e).toFixed(2)}}))}};import Nf from"crypto";var ta=class{static{s(this,"CryptoSignerRepository")}async sign(e,t,i){try{if(!t.privateKey)return Ee(new De("Certificate private key not found"));let n=Nf.sign(i,Buffer.from(e),{key:t.privateKey,padding:Nf.constants.RSA_PKCS1_PADDING}).toString("base64");return await Promise.resolve(U(n))}catch(r){return Promise.resolve(hf(r))}}};var dn=class{static{s(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=gf.create();toolkit=new Kr;caching=new uf;signerRepository=new ta;certificates=new mf(this.http,this.signerRepository,this.caching);soap=new yf(this.toolkit,this.certificates);signer=new pf(this.toolkit,this.certificates);xmlSigner=new df(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(eo,this)}};import mu from"path";import{Type as ql}from"class-transformer";import{IsEnum as Cf,IsNotEmptyObject as Xl,IsObject as Jl,ValidateNested as Wl,IsOptional as Kl}from"class-validator";function oa(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(oa,"_ts_decorate");function bs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(bs,"_ts_metadata");var mi=class{static{s(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};oa([Cf(y),bs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],mi.prototype,"tpAmb",void 0);oa([Cf(d),bs("design:type",typeof StateCode>"u"?Object:StateCode)],mi.prototype,"cUF",void 0);oa([Kl()],mi.prototype,"xServ",void 0);var Cs=class{static{s(this,"ConsultStatusRequest")}consStatServ};oa([Xl(),Jl(),Wl(),ql(()=>mi),bs("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],Cs.prototype,"consStatServ",void 0);import{Type as Rs}from"class-transformer";import{IsEnum as bf,IsOptional as na,IsString as Ot,Length as Rf,MinLength as kl,MaxLength as _l,Matches as mr,ValidateNested as Fs,Allow as $l,IsObject as Ff}from"class-validator";function Se(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Se,"_ts_decorate");function je(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(je,"_ts_metadata");var ia=class{static{s(this,"InfInutAttributes")}Id};Se([Ot(),je("design:type",String)],ia.prototype,"Id",void 0);var hr=class{static{s(this,"InutNFeAttributes")}xmlns;versao};Se([Ot(),je("design:type",String)],hr.prototype,"xmlns",void 0);Se([Ot(),na(),je("design:type",String)],hr.prototype,"versao",void 0);var Te=class{static{s(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Se([Fs(),Rs(()=>ia),je("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Te.prototype,"$",void 0);Se([bf(y),je("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Te.prototype,"tpAmb",void 0);Se([na()],Te.prototype,"xServ",void 0);Se([bf(d),je("design:type",typeof StateCode>"u"?Object:StateCode)],Te.prototype,"cUF",void 0);Se([Ot(),Rf(2,2),mr(/^[0-9]{2}$/),je("design:type",String)],Te.prototype,"ano",void 0);Se([Ot(),na(),je("design:type",String)],Te.prototype,"CNPJ",void 0);Se([Ot(),na(),je("design:type",String)],Te.prototype,"CPF",void 0);Se([Ot(),Rf(2,2),mr(/^(55|65)$/),je("design:type",String)],Te.prototype,"mod",void 0);Se([Ot(),mr(/^[0-9]{1,3}$/),je("design:type",String)],Te.prototype,"serie",void 0);Se([Ot(),mr(/^[0-9]{1,9}$/),je("design:type",String)],Te.prototype,"nNFIni",void 0);Se([Ot(),mr(/^[0-9]{1,9}$/),je("design:type",String)],Te.prototype,"nNFFin",void 0);Se([Ot(),kl(15),_l(255),je("design:type",String)],Te.prototype,"xJust",void 0);Te=Se([H({properties:["CNPJ","CPF"],required:!0})],Te);var Ro=class{static{s(this,"InutilizacaoPayload")}$;infInut;Signature};Se([Ff(),Fs(),Rs(()=>hr),je("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Ro.prototype,"$",void 0);Se([Ff(),Fs(),Rs(()=>Te),je("design:type",typeof IInfInut>"u"?Object:IInfInut)],Ro.prototype,"infInut",void 0);Se([$l(),je("design:type",typeof Signature>"u"?Object:Signature)],Ro.prototype,"Signature",void 0);import{IsEnum as eu,IsOptional as tu,IsString as ou,Length as iu,Matches as nu}from"class-validator";function Is(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Is,"_ts_decorate");function If(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(If,"_ts_metadata");var ji=class{static{s(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};Is([eu(y),If("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ji.prototype,"tpAmb",void 0);Is([tu()],ji.prototype,"xServ",void 0);Is([ou(),iu(44,44),nu(/^[0-9]{44}$/),If("design:type",String)],ji.prototype,"chNFe",void 0);import{IsEnum as ws,IsOptional as aa,IsString as ru,IsNotEmpty as au}from"class-validator";function gr(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(gr,"_ts_decorate");function ra(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ra,"_ts_metadata");var Fo=class{static{s(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};gr([ws(y),aa(),ra("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Fo.prototype,"tpAmb",void 0);gr([ws(d),aa(),ra("design:type",typeof StateCode>"u"?Object:StateCode)],Fo.prototype,"cUF",void 0);gr([ru(),aa(),ra("design:type",String)],Fo.prototype,"idLote",void 0);gr([aa(),ws(["0","1"])],Fo.prototype,"indSinc",void 0);gr([au(),ra("design:type",typeof T>"u"?Object:T)],Fo.prototype,"NFe",void 0);import{IsEnum as su,IsString as cu}from"class-validator";function wf(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(wf,"_ts_decorate");function zf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zf,"_ts_metadata");var ln=class{static{s(this,"RetAutorizacaoPayload")}tpAmb;nRec};wf([su(y),zf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ln.prototype,"tpAmb",void 0);wf([cu(),zf("design:type",String)],ln.prototype,"nRec",void 0);import{IsString as Io,IsNotEmpty as fu,ValidateNested as fa,IsObject as pa,IsOptional as xf,IsEnum as pu,IsNumber as du,Allow as lu}from"class-validator";import{Type as da}from"class-transformer";function Ne(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ne,"_ts_decorate");function Fe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fe,"_ts_metadata");var sa=class{static{s(this,"InfEventoAttributes")}Id};Ne([Io(),Fe("design:type",String)],sa.prototype,"Id",void 0);var Re=class{static{s(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Ne([pa(),fa(),da(()=>sa),Fe("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Re.prototype,"$",void 0);Ne([Io(),Fe("design:type",typeof StateCode>"u"?Object:StateCode)],Re.prototype,"cOrgao",void 0);Ne([Io(),Fe("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Re.prototype,"tpAmb",void 0);Ne([Io(),xf(),Fe("design:type",String)],Re.prototype,"CNPJ",void 0);Ne([Io(),xf(),Fe("design:type",String)],Re.prototype,"CPF",void 0);Ne([Io(),Fe("design:type",String)],Re.prototype,"chNFe",void 0);Ne([ui({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Fe("design:type",String)],Re.prototype,"dhEvento",void 0);Ne([pu(hi),Fe("design:type",typeof hi>"u"?Object:hi)],Re.prototype,"tpEvento",void 0);Ne([du(),Fe("design:type",Number)],Re.prototype,"nSeqEvento",void 0);Ne([Io(),Fe("design:type",String)],Re.prototype,"verEvento",void 0);Ne([pa(),Fe("design:type",typeof T>"u"?Object:T)],Re.prototype,"detEvento",void 0);Re=Ne([H({properties:["CNPJ","CPF"],required:!0})],Re);var ca=class{static{s(this,"EventoItemAttributes")}xmlns};Ne([Io(),Fe("design:type",String)],ca.prototype,"xmlns",void 0);var to=class{static{s(this,"EventoItem")}$;infEvento;Signature};Ne([pa(),fa(),da(()=>ca),Fe("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],to.prototype,"$",void 0);Ne([pa(),fa(),da(()=>Re),Fe("design:type",typeof Re>"u"?Object:Re)],to.prototype,"infEvento",void 0);Ne([lu(),Fe("design:type",typeof Signature>"u"?Object:Signature)],to.prototype,"Signature",void 0);var un=class{static{s(this,"EventoPayload")}idLote;evento};Ne([Io(),Fe("design:type",String)],un.prototype,"idLote",void 0);Ne([fu(),fa(),da(()=>to),Fe("design:type",typeof to>"u"?Object:to)],un.prototype,"evento",void 0);import{IsIn as uu,IsOptional as ua,IsString as ha}from"class-validator";function hn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(hn,"_ts_decorate");function la(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(la,"_ts_metadata");var Pt=class{static{s(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};hn([ua()],Pt.prototype,"xServ",void 0);hn([ha(),uu(Object.values(ff)),la("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],Pt.prototype,"UF",void 0);hn([ua(),ha(),la("design:type",String)],Pt.prototype,"IE",void 0);hn([ua(),ha(),la("design:type",String)],Pt.prototype,"CNPJ",void 0);hn([ua(),ha(),la("design:type",String)],Pt.prototype,"CPF",void 0);Pt=hn([H({properties:["IE","CNPJ","CPF"],required:!0})],Pt);var Af={AM:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.am.gov.br/services2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.am.gov.br/services2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},AN:{[y.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[y.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/CadConsultaCadastro4"}}},MG:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hom.nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ms.gov.br/ws/CadConsultaCadastro4"}}},MT:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeConsulta4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/NfeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/RecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.mt.gov.br/nfews/v2/services/CadConsultaCadastro4"}}},PE:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfestatusservico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeautorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeconsultaprotocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferetautorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.sp.gov.br/ws/nferecepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.sp.gov.br/ws/cadconsultacadastro4.asmx"}}},SVAN:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVRS:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.sefazvirtual.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}}},SVCRS:{[y.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00"}},[y.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var hu={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"BA",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVAN",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"PE",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Of=hu;var ma={[d.AC]:"SVCAN",[d.AL]:"SVCAN",[d.AM]:"SVCRS",[d.AP]:"SVCAN",[d.BA]:"SVCRS",[d.CE]:"SVCAN",[d.DF]:"SVCAN",[d.ES]:"SVCAN",[d.GO]:"SVCRS",[d.MA]:"SVCRS",[d.MG]:"SVCAN",[d.MS]:"SVCRS",[d.MT]:"SVCRS",[d.PA]:"SVCAN",[d.PB]:"SVCAN",[d.PE]:"SVCRS",[d.PI]:"SVCAN",[d.PR]:"SVCRS",[d.RJ]:"SVCAN",[d.RN]:"SVCAN",[d.RO]:"SVCAN",[d.RR]:"SVCAN",[d.RS]:"SVCAN",[d.SC]:"SVCAN",[d.SE]:"SVCAN",[d.SP]:"SVCAN",[d.TO]:"SVCAN"};function Mi(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Mi,"_ts_decorate");function ce(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ce,"_ts_metadata");var dt=class{static{s(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Sf.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,i=e.tpAmb??this.options.tpAmb,r=this.options.contingency?ma[t]:Of[t];return Af[r][i][e.service]}errors(){return Reflect.getMetadata(eo,this)}validate(e){try{let t=this.errors();return t?Ee(new De(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),U(e))}finally{Reflect.deleteMetadata(eo,this)}}ns(e,t){let i=e.$??{};return i.xmlns=this.xmlns,i.versao=t,{...e,$:i}}xsd(e){return mu.resolve(kr(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({...i,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(i,r.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:i,tpAmb:r}=t.value.infInut,n=t.value,a=this.service({cUF:i,tpAmb:r,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(n,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({cUF:i.chNFe.substring(0,2),tpAmb:i.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(i,r.version)},method:"nfeConsultaNF"})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({...i,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(i,r.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({...i,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(i,r.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({service:"RecepcaoEvento"});return i.evento=this.ns(i.evento,r.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(i,r.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let i=t.value,r=this.service({cUF:d[i.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(i,r.version)},method:"consultaCadastro"})}};Mi([w(mi),ce("design:type",Function),ce("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),ce("design:returntype",Promise)],dt.prototype,"consultStatus",null);Mi([w(Ro),ce("design:type",Function),ce("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),ce("design:returntype",Promise)],dt.prototype,"inutilizacao",null);Mi([w(ji),ce("design:type",Function),ce("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),ce("design:returntype",Promise)],dt.prototype,"consultaProtocolo",null);Mi([w(Fo),ce("design:type",Function),ce("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),ce("design:returntype",Promise)],dt.prototype,"autorizacao",null);Mi([w(ln),ce("design:type",Function),ce("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),ce("design:returntype",Promise)],dt.prototype,"retAutorizacao",null);Mi([w(un),ce("design:type",Function),ce("design:paramtypes",[Object]),ce("design:returntype",Promise)],dt.prototype,"recepcaoEvento",null);Mi([w(Pt),ce("design:type",Function),ce("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),ce("design:returntype",Promise)],dt.prototype,"consultaCadastro",null);var yt=class extends dn{static{s(this,"TransmissionPipeline")}certificate;transmitter=new dt(this.soap);constructor(e){super(e),this.certificate=e}};var ga=class extends De{static{s(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};var va=class extends yt{static{s(this,"NfeAuthorizerPipeline")}async execute(e,t){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let r=await this.handleNfeBatch(i.value,e.NFe);if(r.isLeft())return r;let[n]=r.value;this.transmitter.configure({cUF:n.infNFe.ide.cUF,tpAmb:n.infNFe.ide.tpAmb,...t,contingency:this.contingency(n),certificate:i.value}),e.idLote??=new Date().getTime().toString().slice(0,15);let a=await this.transmitter.autorizacao({...e,NFe:r.value});if(a.isLeft())return a;let c=a.value;return this.isSyncResponse(c)?U(c):await this.handleAsyncResponse(c)}async signNfe(e,t){return this.signer.sign(t,{tag:"infNFe",mark:"Id"},e)}async handleNfeBatch(e,t){if(!Array.isArray(t)){let r=await this.signNfe(e,t);return r.isLeft()?Ee(r.value):U([r.value])}let i=await Promise.all(t.map(r=>this.signNfe(e,r)));return i.some(r=>r.isLeft())?Ee(new De("Failed to sign a NFe in batch")):U(i.filter(r=>r.isRight()).map(r=>r.value))}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}async handleAsyncResponse(e){let{tpAmb:t,infRec:{nRec:i}}=e.retEnviNFe,r=1;for(;r<=3;)try{await new Promise(c=>setTimeout(c,1e3));let n=await this.transmitter.retAutorizacao({nRec:i,tpAmb:t});if(n.isLeft())continue;let a=n.value.retConsReciNFe.protNFe;if(!a||Array.isArray(a)&&a.length===0)continue;return U({retEnviNFe:{...n.value.retConsReciNFe,protNFe:a}})}finally{r++}return Ee(new ga)}contingency(e){let{dhCont:t,xJust:i,tpEmis:r}=e.infNFe.ide;if(!(!t||!i||r===$e.Normal))return{dhCont:t,xJust:i}}};var zs={AC:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://sistemas.sefaz.am.gov.br/nfceweb-hom/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homnfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sistemas.sefaz.am.gov.br/nfceweb/consultarNFCe.jsp"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfce.sefaz.am.gov.br/nfce-services/services/CscNFCe"}}},AP:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://homolog.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://nfewebhomolog.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/NFeRecepcaoEvento4"},CscNFCe:{method:"admCscNFCe",operation:"CscNFCe",version:"1.00",url:"https://nfe.sefaz.go.gov.br/nfe/services/v2/CscNFCe"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://nfeweb.sefaz.go.gov.br/nfeweb/sites/nfce/danfeNFCe"}}},MA:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.mg.gov.br/nfce/services/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://portalsped.fazenda.mg.gov.br/portalnfce/sistema/qrcode.xhtml"}}},MT:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeConsulta4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/NfeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.mt.gov.br/nfcews/services/RecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.mt.gov.br/nfce/consultanfce"}}},MS:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom.nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefaz.ms.gov.br/ws/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.dfe.ms.gov.br/nfce/qrcode"}}},PA:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rs.gov.br/NFCE/NFCE-COM.aspx"}}},SC:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[y.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[y.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[y.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce-homologacao.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}},[y.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"}}},SVAN:{[y.Homolog]:{},[y.Production]:{}}};var Pf={[y.Homolog]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfcehom",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[d.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[d.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[y.Production]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.sefaz.go.gov.br/nfce/consulta",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[d.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[d.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"www.sefaz.to.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var gu={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"SVRS",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVRS",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"SVRS",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",SVRS:"SVRS"},Df=gu;import{IsEnum as xs,IsOptional as Sa,IsString as vu,IsNotEmpty as yu}from"class-validator";function vr(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(vr,"_ts_decorate");function ya(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ya,"_ts_metadata");var wo=class{static{s(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};vr([xs(y),Sa(),ya("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],wo.prototype,"tpAmb",void 0);vr([xs(d),Sa(),ya("design:type",typeof StateCode>"u"?Object:StateCode)],wo.prototype,"cUF",void 0);vr([vu(),Sa(),ya("design:type",String)],wo.prototype,"idLote",void 0);vr([Sa(),xs(["0","1"])],wo.prototype,"indSinc",void 0);vr([yu(),ya("design:type",typeof T>"u"?Object:T)],wo.prototype,"NFe",void 0);function Su(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Su,"_ts_decorate");function As(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(As,"_ts_metadata");var Li=class extends dt{static{s(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,i=e.tpAmb??this.options.tpAmb,r=Df[t],c=zs[r][i][e.service];if(c)return c;let f=Object.keys(d).find(l=>d[l]===t);return zs[f][i][e.service]}async autorizacao(e){let t=await this.attachInfNfeSupl(e);return t.isLeft()?t:super.autorizacao({...e,NFe:t.value})}getUrlConsult(e){let t=e.cUF??this.options.cUF,i=e.tpAmb??this.options.tpAmb;return Pf[i][t]}async attachInfNfeSupl(e){let{NFe:t}=e;if(!Array.isArray(t))return this.attachQrCode({...e,NFe:t});let i=await Promise.all(t.map(r=>this.attachQrCode({...e,NFe:r})));return i.some(r=>r.isLeft())?Ee(new De("Failed to attach QRCode to NFCe in batch")):U(i.filter(r=>r.isRight()).map(r=>r.value))}async attachQrCode(e){let t=await this.generateQrCode(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,U(e.NFe))}async generateQrCode(e){let t=this.service({...e,service:"NfeConsultaQR"}),i=this.options.qrCode;switch(i.version??=t.version,i.version){case"200":return await this.qrCode.execute(e.NFe,{version:i.version,urlConsult:this.getUrlConsult(e),urlService:t.url,CSC:i.CSC,CSCId:i.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:i.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:t.url}):Ee(new De("Certificate is required in QRCode version 3.00"));default:return Wr(i.version)}}};Su([w(wo),As("design:type",Function),As("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),As("design:returntype",Promise)],Li.prototype,"autorizacao",null);import Nu from"crypto";var mn=class{static{s(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let i=await this.content(e,t);return i.isLeft()?i:U(this.assemble(i.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):Wr(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:i,CSCId:r}=t,n=e.infNFe.ide.tpAmb,a=Number.parseInt(r),c=e.infNFe.$.Id?.substring(3),f=Number.parseInt(i??"")/100;if(e.infNFe.ide.tpEmis!==$e.OFFLINE)return`${c}|${f}|${n}|${a}`;let m=e.Signature.SignedInfo.Reference.DigestValue.split("").map(N=>N.charCodeAt(0).toString(16).padStart(2,"0")).join(""),g=new Date(e.infNFe.ide.dhEmi).getDate(),S=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${f}|${n}|${g}|${S}|${m}|${a}`}async execute200(e,t){let{urlService:i,CSC:r}=t,n=this.getSequence(e,t),a=Nu.createHash("sha1").update(`${n}${r}`).digest("hex").toUpperCase(),c=`${i}?p=`;return Promise.resolve(U(`${c}${n}|${a}`))}async execute300(e,t){let{urlService:i}=t,r=`${i}?p=`,n=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),c=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==$e.OFFLINE)return U(`${r}${a}|${c}|${n}`);let f=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),m=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",g=m.length?e.infNFe.ide.idDest:"",S=`${a}|${c}|${n}|${f}|${l}|${g}$`,N=await this.certificateRepository.sign(S,t.certificate,cf.SHA1);return N.isLeft()?N:U(`${r}${S}|${N.value}`)}};var Ef=class extends va{static{s(this,"NfceAuthorizerPipeline")}certificate;qrCode=new mn(this.certificates);transmitter=new Li(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};var Na=class extends yt{static{s(this,"NfeConsultStatusPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({...e,certificate:t.value}),await this.transmitter.consultStatus(e))}};var Tf=class extends Na{static{s(this,"NfceConsultStatusPipeline")}qrCode=new mn(this.certificates);transmitter=new Li(this.soap,this.qrCode)};var jf=class extends yt{static{s(this,"NfeAuthorizationResponsePipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({cUF:e.cUF,tpAmb:e.tpAmb,certificate:t.value}),this.transmitter.retAutorizacao(e))}};var Mf={[hi.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"}};function Cu(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Cu,"_ts_decorate");function Os(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Os,"_ts_metadata");var yr=class extends yt{static{s(this,"EventPipeline")}async event(e,t,i){let r=await this.certificates.read(this.certificate);if(r.isLeft())return r;let n=t.chNFe.slice(0,2);this.transmitter.configure({cUF:n,...i,certificate:r.value});let a=Mf[e],c=this.certificates.getCertificateInfo(r.value.certificate),{nSeqEvento:f,dhEvento:l,chNFe:m}=t,g=["ID",e,m,f.toString().padStart(2,"0")].join(""),S={$:{xmlns:this.xmlns},infEvento:{$:{Id:g},cOrgao:n,tpAmb:i.tpAmb,CNPJ:c.CNPJ,CPF:c.CPF,chNFe:m,dhEvento:l,tpEvento:e,nSeqEvento:f,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},N=this.validated(S);return N.isLeft()?N:await this.signer.sign(N.value,{tag:"infEvento",mark:"Id"},r.value)}validated(e){let t=this.errors();return t?Ee(new De(t.join(", "))):U(e)}};Cu([w(to),Os("design:type",Function),Os("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),Os("design:returntype",void 0)],yr.prototype,"validated",null);var Lf=class extends yr{static{s(this,"NfeNfceCancelPipeline")}async execute(e,t){let i={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},r=await this.event(hi.Cancelamento,i,t);return r.isLeft()?r:await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:r.value})}};function bu(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(bu,"_ts_decorate");function Ps(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ps,"_ts_metadata");var Ds=class extends yt{static{s(this,"NfeNfceVoidRangePipeline")}async execute(e,t){let i=await this.certificates.read(this.certificate);if(i.isLeft())return i;let r=this.certificates.getCertificateInfo(i.value.certificate);this.transmitter.configure({...t,certificate:i.value});let n=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,n,r.CNPJ?.padStart(14,"0")??"",e.mod,e.serie.padStart(3,"0"),e.nNFIni.padStart(9,"0"),e.nNFFin.padStart(9,"0")].join(""),c={$:{xmlns:this.xmlns},infInut:{$:{Id:a},tpAmb:e.tpAmb??t.tpAmb,cUF:t.cUF,ano:n,CNPJ:r.CNPJ,CPF:r.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},f=this.validated(c);if(f.isLeft())return f;let l=await this.signer.sign(f.value,{tag:"infInut",mark:"Id"},i.value);return l.isLeft()?l:await this.transmitter.inutilizacao(l.value)}validated(e){let t=this.errors();return t?Ee(new De(t.join(", "))):U(e)}};bu([w(Ro),Ps("design:type",Function),Ps("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Ps("design:returntype",void 0)],Ds.prototype,"validated",null);import fh from"path";import{Allow as ah,IsNotEmpty as sh,IsNotEmptyObject as vp,IsObject as yp,IsString as ch,ValidateNested as Sp}from"class-validator";import{ArrayMaxSize as mp,ArrayMinSize as rh,IsNotEmptyObject as uc,IsObject as hc,IsOptional as nt,IsString as gp,ValidateNested as he}from"class-validator";import{Type as me}from"class-transformer";import{ArrayMaxSize as Ru,IsArray as Fu,IsEnum as Iu,IsOptional as st,IsString as P,ValidateNested as Ca}from"class-validator";import{Type as ba}from"class-transformer";function I(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(I,"_ts_decorate");function z(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(z,"_ts_metadata");var zo=class{static{s(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};I([P(),z("design:type",String)],zo.prototype,"cUF",void 0);I([P(),z("design:type",String)],zo.prototype,"AAMM",void 0);I([P(),z("design:type",String)],zo.prototype,"CNPJ",void 0);I([P(),z("design:type",String)],zo.prototype,"mod",void 0);I([P(),z("design:type",String)],zo.prototype,"serie",void 0);I([P(),z("design:type",String)],zo.prototype,"nNF",void 0);var lt=class{static{s(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};I([P(),z("design:type",String)],lt.prototype,"cUF",void 0);I([P(),z("design:type",String)],lt.prototype,"AAMM",void 0);I([st(),P(),z("design:type",String)],lt.prototype,"CNPJ",void 0);I([st(),P(),z("design:type",String)],lt.prototype,"CPF",void 0);I([P(),z("design:type",String)],lt.prototype,"IE",void 0);I([P(),z("design:type",String)],lt.prototype,"mod",void 0);I([P(),z("design:type",String)],lt.prototype,"serie",void 0);I([P(),z("design:type",String)],lt.prototype,"nNF",void 0);lt=I([H({properties:["CNPJ","CPF"],required:!0})],lt);var gn=class{static{s(this,"RefECF")}mod;nECF;nCOO};I([P(),z("design:type",String)],gn.prototype,"mod",void 0);I([P(),z("design:type",String)],gn.prototype,"nECF",void 0);I([P(),z("design:type",String)],gn.prototype,"nCOO",void 0);var xo=class{static{s(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};I([st(),P(),z("design:type",String)],xo.prototype,"refNFe",void 0);I([st(),P(),z("design:type",String)],xo.prototype,"refNFeSig",void 0);I([st(),Ca(),ba(()=>zo),z("design:type",typeof IRefNF>"u"?Object:IRefNF)],xo.prototype,"refNF",void 0);I([st(),Ca(),ba(()=>lt),z("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],xo.prototype,"refNFP",void 0);I([st(),P(),z("design:type",String)],xo.prototype,"refCTe",void 0);I([st(),Ca(),ba(()=>gn),z("design:type",typeof IRefECF>"u"?Object:IRefECF)],xo.prototype,"refECF",void 0);var B=class{static{s(this,"Ide")}cUF;cNF;natOp;mod;serie;nNF;dhEmi;dhSaiEnt;tpNF;idDest;cMunFG;tpImp;tpEmis;cDV="";tpAmb;finNFe;indFinal;indPres;indIntermed;procEmi;verProc;dhCont;xJust;NFref};I([Iu(d),z("design:type",typeof StateCode>"u"?Object:StateCode)],B.prototype,"cUF",void 0);I([P(),z("design:type",String)],B.prototype,"cNF",void 0);I([P(),z("design:type",String)],B.prototype,"natOp",void 0);I([P(),z("design:type",String)],B.prototype,"mod",void 0);I([P(),z("design:type",String)],B.prototype,"serie",void 0);I([P(),z("design:type",String)],B.prototype,"nNF",void 0);I([ui({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),z("design:type",String)],B.prototype,"dhEmi",void 0);I([st(),ui({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),z("design:type",String)],B.prototype,"dhSaiEnt",void 0);I([P(),z("design:type",String)],B.prototype,"tpNF",void 0);I([P(),z("design:type",String)],B.prototype,"idDest",void 0);I([P(),z("design:type",String)],B.prototype,"cMunFG",void 0);I([P(),z("design:type",String)],B.prototype,"tpImp",void 0);I([P(),z("design:type",typeof TpEmis>"u"?Object:TpEmis)],B.prototype,"tpEmis",void 0);I([P(),st(),z("design:type",String)],B.prototype,"cDV",void 0);I([P(),z("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],B.prototype,"tpAmb",void 0);I([P(),z("design:type",String)],B.prototype,"finNFe",void 0);I([P(),z("design:type",String)],B.prototype,"indFinal",void 0);I([P(),z("design:type",String)],B.prototype,"indPres",void 0);I([st(),P(),z("design:type",String)],B.prototype,"indIntermed",void 0);I([P(),z("design:type",String)],B.prototype,"procEmi",void 0);I([P(),z("design:type",String)],B.prototype,"verProc",void 0);I([st(),P(),ui({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),z("design:type",String)],B.prototype,"dhCont",void 0);I([st(),P(),z("design:type",String)],B.prototype,"xJust",void 0);I([st(),Fu(),Ru(999),Ca({each:!0}),ba(()=>xo),z("design:type",Array)],B.prototype,"NFref",void 0);import{IsOptional as vn,IsString as Ao,ValidateNested as wu}from"class-validator";import{Type as zu}from"class-transformer";import{IsOptional as Ra,IsString as Tt}from"class-validator";function Dt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Dt,"_ts_decorate");function Et(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Et,"_ts_metadata");var Me=class{static{s(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Dt([Tt(),Et("design:type",String)],Me.prototype,"xLgr",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"nro",void 0);Dt([Ra(),Tt(),Et("design:type",String)],Me.prototype,"xCpl",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"xBairro",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"cMun",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"xMun",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"UF",void 0);Dt([Tt(),Et("design:type",String)],Me.prototype,"CEP",void 0);Dt([Ra(),Tt(),Et("design:type",String)],Me.prototype,"cPais",void 0);Dt([Ra(),Tt(),Et("design:type",String)],Me.prototype,"xPais",void 0);Dt([Ra(),Tt(),Et("design:type",String)],Me.prototype,"fone",void 0);function jt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(jt,"_ts_decorate");function oo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(oo,"_ts_metadata");var Ie=class{static{s(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"CNPJ",void 0);jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"CPF",void 0);jt([Ao(),oo("design:type",String)],Ie.prototype,"xNome",void 0);jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"xFant",void 0);jt([wu(),zu(()=>Me),oo("design:type",typeof Me>"u"?Object:Me)],Ie.prototype,"enderEmit",void 0);jt([Ao(),oo("design:type",String)],Ie.prototype,"IE",void 0);jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"IEST",void 0);jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"IM",void 0);jt([vn(),Ao(),oo("design:type",String)],Ie.prototype,"CNAE",void 0);jt([Ao(),oo("design:type",String)],Ie.prototype,"CRT",void 0);Ie=jt([H({properties:["CNPJ","CPF"],required:!0})],Ie);import{IsOptional as Oo,IsString as Po,ValidateNested as xu}from"class-validator";import{Type as Au}from"class-transformer";import{IsOptional as Bt,IsString as Vt}from"class-validator";function Mt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Mt,"_ts_decorate");function Lt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Lt,"_ts_metadata");var et=class{static{s(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"xLgr",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"nro",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"xCpl",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"xBairro",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"cMun",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"xMun",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"UF",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"CEP",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"cPais",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"xPais",void 0);Mt([Bt(),Vt(),Lt("design:type",String)],et.prototype,"fone",void 0);function Ht(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ht,"_ts_decorate");function io(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(io,"_ts_metadata");var we=class{static{s(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Ht([Oo(),Po(),io("design:type",String)],we.prototype,"CNPJ",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"CPF",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"idEstrangeiro",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"xNome",void 0);Ht([Oo(),xu(),Au(()=>et),io("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],we.prototype,"enderDest",void 0);Ht([Po(),io("design:type",String)],we.prototype,"indIEDest",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"IE",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"ISUF",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"IM",void 0);Ht([Oo(),Po(),io("design:type",String)],we.prototype,"email",void 0);we=Ht([H({properties:["CNPJ","CPF"],required:!0})],we);import{IsOptional as no,IsString as Ze}from"class-validator";function Le(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Le,"_ts_decorate");function Ye(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ye,"_ts_metadata");var Z=class{static{s(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"CNPJ",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"CPF",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"xNome",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"xLgr",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"nro",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"xCpl",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"xBairro",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"cMun",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"xMun",void 0);Le([Ze(),Ye("design:type",String)],Z.prototype,"UF",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"CEP",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"cPais",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"xPais",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"fone",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"email",void 0);Le([no(),Ze(),Ye("design:type",String)],Z.prototype,"IE",void 0);Z=Le([H({properties:["CNPJ","CPF"]})],Z);import{IsOptional as Vf,IsString as Hf}from"class-validator";function Es(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Es,"_ts_decorate");function Bf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Bf,"_ts_metadata");var ro=class{static{s(this,"AutXML")}CNPJ;CPF};Es([Vf(),Hf(),Bf("design:type",String)],ro.prototype,"CNPJ",void 0);Es([Vf(),Hf(),Bf("design:type",String)],ro.prototype,"CPF",void 0);ro=Es([H({properties:["CNPJ","CPF"]})],ro);import{IsOptional as Ou,IsString as Uf}from"class-validator";function Qf(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Qf,"_ts_decorate");function Gf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gf,"_ts_metadata");var gi=class{static{s(this,"InfIntermed")}CNPJ;idCadIntTran};Qf([Uf(),Gf("design:type",String)],gi.prototype,"CNPJ",void 0);Qf([Ou(),Uf(),Gf("design:type",String)],gi.prototype,"idCadIntTran",void 0);import{IsOptional as Yf,IsString as Ms}from"class-validator";function Ts(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ts,"_ts_decorate");function js(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(js,"_ts_metadata");var Do=class{static{s(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Ts([Ms(),js("design:type",String)],Do.prototype,"UFSaidaPais",void 0);Ts([Yf(),Ms(),js("design:type",String)],Do.prototype,"xLocExporta",void 0);Ts([Yf(),Ms(),js("design:type",String)],Do.prototype,"xLocDespacho",void 0);import{IsOptional as Vs,IsString as Hs}from"class-validator";function Ls(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ls,"_ts_decorate");function Bs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Bs,"_ts_metadata");var Eo=class{static{s(this,"Compra")}xNEmp;xPed;xCont};Ls([Vs(),Hs(),Bs("design:type",String)],Eo.prototype,"xNEmp",void 0);Ls([Vs(),Hs(),Bs("design:type",String)],Eo.prototype,"xPed",void 0);Ls([Vs(),Hs(),Bs("design:type",String)],Eo.prototype,"xCont",void 0);import{IsOptional as Zf,IsString as Nn}from"class-validator";function yn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(yn,"_ts_decorate");function Sn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Sn,"_ts_metadata");var St=class{static{s(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};yn([Nn(),Sn("design:type",String)],St.prototype,"CNPJ",void 0);yn([Nn(),Sn("design:type",String)],St.prototype,"xContato",void 0);yn([Nn(),Sn("design:type",String)],St.prototype,"email",void 0);yn([Nn(),Sn("design:type",String)],St.prototype,"fone",void 0);yn([Zf(),Nn(),Sn("design:type",String)],St.prototype,"idCSRT",void 0);yn([Zf(),Nn(),Sn("design:type",String)],St.prototype,"hashCSRT",void 0);import{IsOptional as qf,ValidateNested as Us}from"class-validator";import{Type as Ys}from"class-transformer";import{IsOptional as ao}from"class-validator";function Q(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Q,"_ts_decorate");function G(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(G,"_ts_metadata");var M=class{static{s(this,"ICMSTot")}vBC="0.00";vICMS="0.00";vICMSDeson="0.00";vFCPUFDest;vICMSUFDest;vICMSUFRemet;vFCP="0.00";vBCST="0.00";vST="0.00";vFCPST="0.00";vFCPSTRet="0.00";qBCMono;vICMSMono;qBCMonoReten;vICMSMonoReten;qBCMonoRet;vICMSMonoRet;vProd="0.00";vFrete="0.00";vSeg="0.00";vDesc="0.00";vII="0.00";vIPI="0.00";vIPIDevol="0.00";vPIS="0.00";vCOFINS="0.00";vOutro="0.00";vNF="0.00";vTotTrib};Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBC",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMS",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSDeson",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPUFDest",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFDest",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFRemet",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCP",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBCST",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vST",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPST",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPSTRet",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMono",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMono",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoReten",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoReten",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoRet",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoRet",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vProd",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFrete",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vSeg",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vDesc",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vII",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPI",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPIDevol",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vPIS",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vCOFINS",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vOutro",void 0);Q([p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vNF",void 0);Q([ao(),p({fixed:2}),G("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vTotTrib",void 0);import{IsOptional as Qt,IsString as bt}from"class-validator";function Nt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Nt,"_ts_decorate");function Ct(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ct,"_ts_metadata");var qe=class{static{s(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vServ",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vBC",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vISS",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vPIS",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vCOFINS",void 0);Nt([bt(),Ct("design:type",String)],qe.prototype,"dCompet",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vDeducao",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vOutro",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vDescIncond",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vDescCond",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"vISSRet",void 0);Nt([Qt(),bt(),Ct("design:type",String)],qe.prototype,"cRegTrib",void 0);import{IsOptional as Hi}from"class-validator";function Bi(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Bi,"_ts_decorate");function Vi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Vi,"_ts_metadata");var Gt=class{static{s(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vRetPIS",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vRetCOFINS",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vRetCSLL",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vBCIRRF",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vIRRF",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vBCRetPrev",void 0);Bi([Hi(),p({fixed:2}),Vi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gt.prototype,"vRetPrev",void 0);function Qs(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Qs,"_ts_decorate");function Gs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gs,"_ts_metadata");var To=class{static{s(this,"Total")}ICMSTot;ISSQNtot;retTrib};Qs([Us(),Ys(()=>M),Gs("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],To.prototype,"ICMSTot",void 0);Qs([qf(),Us(),Ys(()=>qe),Gs("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],To.prototype,"ISSQNtot",void 0);Qs([qf(),Us(),Ys(()=>Gt),Gs("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],To.prototype,"retTrib",void 0);import{ArrayMaxSize as Jf,IsOptional as Zi,IsString as Zs,ValidateNested as Sr}from"class-validator";import{Type as Nr}from"class-transformer";import{IsOptional as Gi,IsString as Ui}from"class-validator";function vi(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(vi,"_ts_decorate");function Qi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Qi,"_ts_metadata");var Xe=class{static{s(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"CNPJ",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"CPF",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"xNome",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"IE",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"xEnder",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"xMun",void 0);vi([Gi(),Ui(),Qi("design:type",String)],Xe.prototype,"UF",void 0);Xe=vi([H({properties:["CNPJ","CPF"]})],Xe);import{IsOptional as Rn,IsString as Xf}from"class-validator";function Cn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Cn,"_ts_decorate");function bn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(bn,"_ts_metadata");var ut=class{static{s(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Cn([Rn(),p({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vServ",void 0);Cn([Rn(),p({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBCRet",void 0);Cn([Rn(),p({fixed:4}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"pICMSRet",void 0);Cn([Rn(),p({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vICMSRet",void 0);Cn([Rn(),Xf(),bn("design:type",String)],ut.prototype,"CFOP",void 0);Cn([Rn(),Xf(),bn("design:type",String)],ut.prototype,"cMunFG",void 0);import{IsOptional as wn,IsString as zn}from"class-validator";function Fn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Fn,"_ts_decorate");function In(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(In,"_ts_metadata");var so=class{static{s(this,"VeicTransp")}placa;UF;RNTC};Fn([wn(),zn(),In("design:type",String)],so.prototype,"placa",void 0);Fn([wn(),zn(),In("design:type",String)],so.prototype,"UF",void 0);Fn([wn(),zn(),In("design:type",String)],so.prototype,"RNTC",void 0);var Yi=class{static{s(this,"Reboque")}placa;UF;RNTC};Fn([wn(),zn(),In("design:type",String)],Yi.prototype,"placa",void 0);Fn([wn(),zn(),In("design:type",String)],Yi.prototype,"UF",void 0);Fn([wn(),zn(),In("design:type",String)],Yi.prototype,"RNTC",void 0);import{IsOptional as On,IsString as Fa}from"class-validator";function xn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(xn,"_ts_decorate");function An(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(An,"_ts_metadata");var co=class{static{s(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};xn([On(),Fa(),An("design:type",String)],co.prototype,"qVol",void 0);xn([On(),Fa(),An("design:type",String)],co.prototype,"esp",void 0);xn([On(),Fa(),An("design:type",String)],co.prototype,"marca",void 0);xn([On(),Fa(),An("design:type",String)],co.prototype,"nVol",void 0);xn([On(),p({fixed:3}),An("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pesoL",void 0);xn([On(),p({fixed:3}),An("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],co.prototype,"pesoB",void 0);function jo(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(jo,"_ts_decorate");function yi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(yi,"_ts_metadata");var Je=class{static{s(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};jo([Zs(),yi("design:type",String)],Je.prototype,"modFrete",void 0);jo([Zi(),Sr(),Nr(()=>Xe),yi("design:type",typeof Xe>"u"?Object:Xe)],Je.prototype,"transporta",void 0);jo([Zi(),Sr(),Nr(()=>ut),yi("design:type",typeof ut>"u"?Object:ut)],Je.prototype,"retTransp",void 0);jo([Zi(),Sr(),Nr(()=>so),yi("design:type",typeof so>"u"?Object:so)],Je.prototype,"veicTransp",void 0);jo([Zi(),Sr({each:!0}),Nr(()=>Yi),Jf(5),yi("design:type",Array)],Je.prototype,"reboque",void 0);jo([Zi(),Zs(),yi("design:type",String)],Je.prototype,"vagao",void 0);jo([Zi(),Zs(),yi("design:type",String)],Je.prototype,"balsa",void 0);jo([Zi(),Sr({each:!0}),Nr(()=>co),Jf(5e3),yi("design:type",Array)],Je.prototype,"vol",void 0);Je=jo([H({properties:["veicTransp","reboque"]}),H({properties:["vagao","balsa"]})],Je);import{ArrayMaxSize as Pu,IsOptional as Vo,IsString as qs,ValidateNested as Wf}from"class-validator";import{Type as Kf}from"class-transformer";function Lo(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Lo,"_ts_decorate");function Bo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Bo,"_ts_metadata");var Mo=class{static{s(this,"Fat")}nFat;vOrig;vDesc;vLiq};Lo([Vo(),qs(),Bo("design:type",String)],Mo.prototype,"nFat",void 0);Lo([Vo(),p({fixed:2}),Bo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mo.prototype,"vOrig",void 0);Lo([Vo(),p({fixed:2}),Bo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mo.prototype,"vDesc",void 0);Lo([Vo(),p({fixed:2}),Bo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mo.prototype,"vLiq",void 0);var Pn=class{static{s(this,"Dup")}nDup;dVenc;vDup};Lo([Vo(),qs(),Bo("design:type",String)],Pn.prototype,"nDup",void 0);Lo([Vo(),qs(),Bo("design:type",String)],Pn.prototype,"dVenc",void 0);Lo([Vo(),p({fixed:2}),Bo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Pn.prototype,"vDup",void 0);var Si=class{static{s(this,"Cobr")}fat;dup};Lo([Vo(),Wf(),Kf(()=>Mo),Bo("design:type",typeof Mo>"u"?Object:Mo)],Si.prototype,"fat",void 0);Lo([Vo(),Wf({each:!0}),Pu(120),Kf(()=>Pn),Bo("design:type",Array)],Si.prototype,"dup",void 0);import{ArrayMaxSize as Tu,ArrayMinSize as ju,IsOptional as Mu,ValidateNested as Lu}from"class-validator";import{Type as Bu}from"class-transformer";import{IsOptional as ks,IsString as _s,ValidateNested as Du}from"class-validator";import{Type as Eu}from"class-transformer";import{IsOptional as Ws,IsString as Ks}from"class-validator";function Xs(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Xs,"_ts_decorate");function Js(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Js,"_ts_metadata");var fo=class{static{s(this,"Card")}cNPJ;tBand;cAut};Xs([Ws(),Ks(),Js("design:type",String)],fo.prototype,"cNPJ",void 0);Xs([Ws(),Ks(),Js("design:type",String)],fo.prototype,"tBand",void 0);Xs([Ws(),Ks(),Js("design:type",String)],fo.prototype,"cAut",void 0);function Cr(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Cr,"_ts_decorate");function br(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(br,"_ts_metadata");var Ho=class{static{s(this,"DetPag")}indPag;tPag;vPag;card;xPag};Cr([ks(),_s(),br("design:type",String)],Ho.prototype,"indPag",void 0);Cr([_s(),br("design:type",typeof TPag>"u"?Object:TPag)],Ho.prototype,"tPag",void 0);Cr([p({fixed:2}),br("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vPag",void 0);Cr([ks(),Du(),Eu(()=>fo),br("design:type",typeof fo>"u"?Object:fo)],Ho.prototype,"card",void 0);Cr([ks(),_s(),br("design:type",String)],Ho.prototype,"xPag",void 0);function kf(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(kf,"_ts_decorate");function _f(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_f,"_ts_metadata");var Ni=class{static{s(this,"Pag")}detPag;vTroco};kf([Lu({each:!0}),ju(1),Tu(100),Bu(()=>Ho),_f("design:type",Array)],Ni.prototype,"detPag",void 0);kf([Mu(),p({fixed:2}),_f("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ni.prototype,"vTroco",void 0);import{ArrayMaxSize as $s,IsOptional as qi,IsString as En,ValidateNested as ec}from"class-validator";import{Type as tc}from"class-transformer";function Qo(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Qo,"_ts_decorate");function Go(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Go,"_ts_metadata");var Dn=class{static{s(this,"InfAdicObs")}xCampo;xTexto};Qo([En(),Go("design:type",String)],Dn.prototype,"xCampo",void 0);Qo([En(),Go("design:type",String)],Dn.prototype,"xTexto",void 0);var Rr=class{static{s(this,"ProcRef")}nProc;indProc};Qo([qi(),En(),Go("design:type",String)],Rr.prototype,"nProc",void 0);Qo([qi(),En(),Go("design:type",String)],Rr.prototype,"indProc",void 0);var Ut=class{static{s(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Qo([qi(),En(),Go("design:type",String)],Ut.prototype,"infAdFisco",void 0);Qo([qi(),En(),Go("design:type",String)],Ut.prototype,"infCpl",void 0);Qo([qi(),ec({each:!0}),tc(()=>Dn),$s(10),Go("design:type",Array)],Ut.prototype,"obsCont",void 0);Qo([qi(),ec({each:!0}),tc(()=>Dn),$s(10),Go("design:type",Array)],Ut.prototype,"obsFisco",void 0);Qo([qi(),ec({each:!0}),tc(()=>Rr),$s(100),Go("design:type",Array)],Ut.prototype,"procRef",void 0);import{ArrayMaxSize as $f,IsNotEmptyObject as Vu,IsObject as Hu,IsOptional as Xi,IsString as Ci,ValidateNested as ep}from"class-validator";import{Type as oc}from"class-transformer";function tt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(tt,"_ts_decorate");function ot(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ot,"_ts_metadata");var Ia=class{static{s(this,"ForDiaAttributes")}dia};tt([Ci(),ot("design:type",String)],Ia.prototype,"dia",void 0);var Fr=class{static{s(this,"ForDia")}$;qtde};tt([Hu(),Vu(),oc(()=>Ia),ot("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Fr.prototype,"$",void 0);tt([Ci(),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fr.prototype,"qtde",void 0);var Ir=class{static{s(this,"Deduc")}xDed;vDed};tt([Ci(),ot("design:type",String)],Ir.prototype,"xDed",void 0);tt([p({fixed:2}),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ir.prototype,"vDed",void 0);var We=class{static{s(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};tt([Ci(),ot("design:type",String)],We.prototype,"safra",void 0);tt([Ci(),ot("design:type",String)],We.prototype,"ref",void 0);tt([ep({each:!0}),$f(31),oc(()=>Fr),ot("design:type",Array)],We.prototype,"forDia",void 0);tt([Xi(),Ci(),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"qTotMes",void 0);tt([Xi(),Ci(),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"qTotAnt",void 0);tt([Xi(),Ci(),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"qTotGer",void 0);tt([Xi(),ep({each:!0}),$f(10),oc(()=>Ir),ot("design:type",Array)],We.prototype,"deduc",void 0);tt([Xi(),p({fixed:2}),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vFor",void 0);tt([Xi(),p({fixed:2}),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vTotDed",void 0);tt([Xi(),p({fixed:2}),ot("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],We.prototype,"vLiqFor",void 0);import{IsObject as eh,IsOptional as Ya,IsString as hp,ValidateNested as Tr}from"class-validator";import{Type as jr}from"class-transformer";import{ArrayMaxSize as Dr,IsArray as Pa,IsObject as Ki,IsOptional as J,IsString as fe,ValidateNested as Zo}from"class-validator";import{Type as qo}from"class-transformer";import{IsOptional as wa,IsString as xr}from"class-validator";function wr(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(wr,"_ts_decorate");function zr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zr,"_ts_metadata");var Uo=class{static{s(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};wr([xr(),zr("design:type",String)],Uo.prototype,"nLote",void 0);wr([wa(),xr(),zr("design:type",String)],Uo.prototype,"qLote",void 0);wr([wa(),xr(),zr("design:type",String)],Uo.prototype,"dFab",void 0);wr([wa(),xr(),zr("design:type",String)],Uo.prototype,"dVal",void 0);wr([wa(),xr(),zr("design:type",String)],Uo.prototype,"cAgreg",void 0);import{IsString as ct,IsOptional as Ar,IsArray as Qu,ValidateNested as Gu,ArrayMaxSize as Uu,ArrayMinSize as Yu}from"class-validator";import{Type as Zu}from"class-transformer";function xe(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(xe,"_ts_decorate");function Be(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Be,"_ts_metadata");var bi=class{static{s(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};xe([ct(),Be("design:type",String)],bi.prototype,"nAdicao",void 0);xe([ct(),Be("design:type",String)],bi.prototype,"nSeqAdic",void 0);xe([ct(),Be("design:type",String)],bi.prototype,"cFabricante",void 0);xe([p({fixed:2}),Be("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vDescDI",void 0);xe([Ar(),ct(),Be("design:type",String)],bi.prototype,"nDraw",void 0);var ze=class{static{s(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};xe([ct(),Be("design:type",String)],ze.prototype,"nDI",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"dDI",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"xLocDesemb",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"UFDesemb",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"dDesemb",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"tpViaTransp",void 0);xe([Ar(),p({fixed:2}),Be("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ze.prototype,"vAFRMM",void 0);xe([ct(),Be("design:type",String)],ze.prototype,"tpIntermedio",void 0);xe([ct(),Ar(),Be("design:type",String)],ze.prototype,"CNPJ",void 0);xe([ct(),Ar(),Be("design:type",String)],ze.prototype,"CPF",void 0);xe([ct(),Ar(),Be("design:type",String)],ze.prototype,"UFTerceiro",void 0);xe([Qu(),Gu({each:!0}),Zu(()=>bi),Uu(999),Yu(1),Be("design:type",Array)],ze.prototype,"adi",void 0);ze=xe([H({properties:["CNPJ","CPF"],required:!0})],ze);import{Type as qu}from"class-transformer";import{IsOptional as tp,IsString as ic,ValidateNested as Xu}from"class-validator";function Or(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Or,"_ts_decorate");function Pr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Pr,"_ts_metadata");var Tn=class{static{s(this,"ExportInd")}nRE;chNFe;qExport};Or([ic(),Pr("design:type",String)],Tn.prototype,"nRE",void 0);Or([ic(),Pr("design:type",String)],Tn.prototype,"chNFe",void 0);Or([p({fixed:4}),Pr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tn.prototype,"qExport",void 0);var jn=class{static{s(this,"DetExport")}nDraw;exportInd};Or([tp(),ic(),Pr("design:type",String)],jn.prototype,"nDraw",void 0);Or([tp(),Xu(),qu(()=>Tn),Pr("design:type",typeof IExportInd>"u"?Object:IExportInd)],jn.prototype,"exportInd",void 0);import{IsString as np}from"class-validator";function op(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(op,"_ts_decorate");function ip(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ip,"_ts_metadata");var Mn=class{static{s(this,"InfProdNFF")}cProdFisco;cOperNFF};op([np(),ip("design:type",String)],Mn.prototype,"cProdFisco",void 0);op([np(),ip("design:type",String)],Mn.prototype,"cOperNFF",void 0);import{IsString as rp}from"class-validator";function nc(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(nc,"_ts_decorate");function rc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(rc,"_ts_metadata");var Ji=class{static{s(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};nc([rp(),rc("design:type",String)],Ji.prototype,"xEmb",void 0);nc([p({fixed:3}),rc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ji.prototype,"qVolEmb",void 0);nc([rp(),rc("design:type",String)],Ji.prototype,"uEmb",void 0);import{IsString as $}from"class-validator";function k(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(k,"_ts_decorate");function _(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_,"_ts_metadata");var Y=class{static{s(this,"VeicProd")}tpOp;chassi;cCor;xCor;pot;cilin;pesoL;pesoB;nSerie;tpComb;nMotor;CMT;dist;anoMod;anoFab;tpPint;tpVeic;espVeic;VIN;condVeic;cMod;cCorDENATRAN;lota;tpRest};k([$(),_("design:type",String)],Y.prototype,"tpOp",void 0);k([$(),_("design:type",String)],Y.prototype,"chassi",void 0);k([$(),_("design:type",String)],Y.prototype,"cCor",void 0);k([$(),_("design:type",String)],Y.prototype,"xCor",void 0);k([$(),_("design:type",String)],Y.prototype,"pot",void 0);k([$(),_("design:type",String)],Y.prototype,"cilin",void 0);k([$(),_("design:type",String)],Y.prototype,"pesoL",void 0);k([$(),_("design:type",String)],Y.prototype,"pesoB",void 0);k([$(),_("design:type",String)],Y.prototype,"nSerie",void 0);k([$(),_("design:type",String)],Y.prototype,"tpComb",void 0);k([$(),_("design:type",String)],Y.prototype,"nMotor",void 0);k([$(),_("design:type",String)],Y.prototype,"CMT",void 0);k([$(),_("design:type",String)],Y.prototype,"dist",void 0);k([$(),_("design:type",String)],Y.prototype,"anoMod",void 0);k([$(),_("design:type",String)],Y.prototype,"anoFab",void 0);k([$(),_("design:type",String)],Y.prototype,"tpPint",void 0);k([$(),_("design:type",String)],Y.prototype,"tpVeic",void 0);k([$(),_("design:type",String)],Y.prototype,"espVeic",void 0);k([$(),_("design:type",String)],Y.prototype,"VIN",void 0);k([$(),_("design:type",String)],Y.prototype,"condVeic",void 0);k([$(),_("design:type",String)],Y.prototype,"cMod",void 0);k([$(),_("design:type",String)],Y.prototype,"cCorDENATRAN",void 0);k([$(),_("design:type",String)],Y.prototype,"lota",void 0);k([$(),_("design:type",String)],Y.prototype,"tpRest",void 0);import{IsString as ap}from"class-validator";function ac(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(ac,"_ts_decorate");function sc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(sc,"_ts_metadata");var Wi=class{static{s(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};ac([ap(),sc("design:type",String)],Wi.prototype,"cProdANVISA",void 0);ac([ap(),sc("design:type",String)],Wi.prototype,"xMotivoIsencao",void 0);ac([p({fixed:2}),sc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wi.prototype,"vPMC",void 0);import{IsString as Aa}from"class-validator";function za(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(za,"_ts_decorate");function xa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(xa,"_ts_metadata");var Ri=class{static{s(this,"Arma")}tpArma;nSerie;nCano;descr};za([Aa(),xa("design:type",String)],Ri.prototype,"tpArma",void 0);za([Aa(),xa("design:type",String)],Ri.prototype,"nSerie",void 0);za([Aa(),xa("design:type",String)],Ri.prototype,"nCano",void 0);za([Aa(),xa("design:type",String)],Ri.prototype,"descr",void 0);import{IsString as Yo,IsOptional as Ii,IsObject as cc,ValidateNested as fc,ArrayMaxSize as Ju,Max as Oa}from"class-validator";import{Type as pc}from"class-transformer";function ee(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(ee,"_ts_decorate");function te(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(te,"_ts_metadata");var Ln=class{static{s(this,"OrigComb")}indImport;cUFOrig;pOrig};ee([Yo(),te("design:type",String)],Ln.prototype,"indImport",void 0);ee([Yo(),te("design:type",String)],Ln.prototype,"cUFOrig",void 0);ee([p({fixed:4}),Oa(100),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ln.prototype,"pOrig",void 0);var Bn=class{static{s(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ee([p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bn.prototype,"qBCProd",void 0);ee([p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bn.prototype,"vAliqProd",void 0);ee([p({fixed:2}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bn.prototype,"vCIDE",void 0);var Fi=class{static{s(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ee([Yo(),te("design:type",String)],Fi.prototype,"nBico",void 0);ee([Yo(),te("design:type",String)],Fi.prototype,"nBomba",void 0);ee([Yo(),te("design:type",String)],Fi.prototype,"nTanque",void 0);ee([p({fixed:3}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fi.prototype,"vEncIni",void 0);ee([p({fixed:3}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fi.prototype,"vEncFin",void 0);var Ve=class{static{s(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ee([Yo(),te("design:type",String)],Ve.prototype,"cProdANP",void 0);ee([Yo(),te("design:type",String)],Ve.prototype,"descANP",void 0);ee([Ii(),Oa(100),p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"pGLP",void 0);ee([Ii(),Oa(100),p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"pGNn",void 0);ee([Ii(),Oa(100),p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"pGNi",void 0);ee([Ii(),p({fixed:2}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"vPart",void 0);ee([Yo(),Ii(),te("design:type",String)],Ve.prototype,"CODIF",void 0);ee([Ii(),p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"qTemp",void 0);ee([Yo(),te("design:type",String)],Ve.prototype,"UFCons",void 0);ee([cc(),fc(),pc(()=>Bn),te("design:type",typeof ICIDE>"u"?Object:ICIDE)],Ve.prototype,"CIDE",void 0);ee([cc(),fc(),pc(()=>Fi),te("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Ve.prototype,"encerrante",void 0);ee([Ii(),p({fixed:4}),te("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ve.prototype,"pBio",void 0);ee([cc(),fc({each:!0}),pc(()=>Ln),Ju(30),Ii(),te("design:type",Array)],Ve.prototype,"origComb",void 0);function D(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(D,"_ts_decorate");function E(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(E,"_ts_metadata");var x=class{static{s(this,"Prod")}cProd;cEAN;cBarra;xProd;NCM;NVE;CEST;indEscala;CNPJFab;cBenef;gCred;EXTIPI;CFOP;uCom;qCom;vUnCom;vProd;cEANTrib;uTrib;qTrib;vUnTrib;vFrete;vSeg;vDesc;vOutro;indTot;DI;detExport;xPed;nItemPed;nFCI;rastro;infProdNFF;infProdEmb;veicProd;med;arma;comb;nRECOPI};D([fe(),E("design:type",String)],x.prototype,"cProd",void 0);D([fe(),E("design:type",String)],x.prototype,"cEAN",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"cBarra",void 0);D([fe(),E("design:type",String)],x.prototype,"xProd",void 0);D([fe(),E("design:type",String)],x.prototype,"NCM",void 0);D([J(),Pa(),Dr(8),fe({each:!0}),E("design:type",Array)],x.prototype,"NVE",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"CEST",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"indEscala",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"CNPJFab",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"cBenef",void 0);D([J(),Ki(),E("design:type",Object)],x.prototype,"gCred",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"EXTIPI",void 0);D([fe(),E("design:type",String)],x.prototype,"CFOP",void 0);D([fe(),E("design:type",String)],x.prototype,"uCom",void 0);D([p({fixed:4}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"qCom",void 0);D([p({fixed:10}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vUnCom",void 0);D([p({fixed:2}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vProd",void 0);D([fe(),E("design:type",String)],x.prototype,"cEANTrib",void 0);D([fe(),E("design:type",String)],x.prototype,"uTrib",void 0);D([p({fixed:4}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"qTrib",void 0);D([p({fixed:10}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vUnTrib",void 0);D([J(),p({fixed:2}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vFrete",void 0);D([J(),p({fixed:2}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vSeg",void 0);D([J(),p({fixed:2}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vDesc",void 0);D([J(),p({fixed:2}),E("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],x.prototype,"vOutro",void 0);D([fe(),E("design:type",String)],x.prototype,"indTot",void 0);D([J(),Pa(),Zo({each:!0}),Dr(100),qo(()=>ze),E("design:type",Array)],x.prototype,"DI",void 0);D([J(),Pa(),Zo({each:!0}),Dr(500),qo(()=>jn),E("design:type",Array)],x.prototype,"detExport",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"xPed",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"nItemPed",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"nFCI",void 0);D([J(),Pa(),Zo({each:!0}),Dr(500),qo(()=>Uo),E("design:type",Array)],x.prototype,"rastro",void 0);D([J(),Ki(),Zo(),qo(()=>Mn),E("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],x.prototype,"infProdNFF",void 0);D([J(),Ki(),Zo(),qo(()=>Ji),E("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],x.prototype,"infProdEmb",void 0);D([J(),Ki(),Zo(),qo(()=>Y),E("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],x.prototype,"veicProd",void 0);D([J(),Ki(),Zo(),qo(()=>Wi),E("design:type",typeof IMed>"u"?Object:IMed)],x.prototype,"med",void 0);D([J(),Ki(),Zo({each:!0}),qo(()=>Ri),Dr(500),E("design:type",Array)],x.prototype,"arma",void 0);D([J(),Ki(),Zo(),qo(()=>Ve),E("design:type",typeof IComb>"u"?Object:IComb)],x.prototype,"comb",void 0);D([J(),fe(),E("design:type",String)],x.prototype,"nRECOPI",void 0);x=D([H({properties:["veicProd","med","arma","comb"]})],x);import{Type as ci}from"class-transformer";import{IsNumber as Ku,IsOptional as vo,ValidateNested as fi}from"class-validator";import{IsOptional as v,IsString as R,Max as Wu,ValidateNested as He}from"class-validator";import{Type as Qe}from"class-transformer";function u(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(u,"_ts_decorate");function h(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(h,"_ts_metadata");var Xo=class{static{s(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};u([R(),h("design:type",String)],Xo.prototype,"orig",void 0);u([R(),h("design:type",String)],Xo.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],Xo.prototype,"modBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"vICMS",void 0);var ht=class{static{s(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([R(),h("design:type",String)],ht.prototype,"orig",void 0);u([R(),h("design:type",String)],ht.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],ht.prototype,"modBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vICMS",void 0);u([v(),R(),h("design:type",String)],ht.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ht.prototype,"vICMSST",void 0);var po=class{static{s(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};u([R(),h("design:type",String)],po.prototype,"orig",void 0);u([R(),h("design:type",String)],po.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],po.prototype,"modBC",void 0);u([v(),R(),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"pRedBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],po.prototype,"vICMS",void 0);var Jo=class{static{s(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};u([R(),h("design:type",String)],Jo.prototype,"orig",void 0);u([R(),h("design:type",String)],Jo.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],Jo.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jo.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jo.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jo.prototype,"vICMSST",void 0);var ki=class{static{s(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};u([R(),h("design:type",String)],ki.prototype,"orig",void 0);u([R(),h("design:type",String)],ki.prototype,"CST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ki.prototype,"vICMSDeson",void 0);u([v(),R(),h("design:type",String)],ki.prototype,"motDesICMS",void 0);var Rt=class{static{s(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};u([R(),h("design:type",String)],Rt.prototype,"orig",void 0);u([R(),h("design:type",String)],Rt.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],Rt.prototype,"modBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pRedBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vICMS",void 0);u([v(),p({fixed:4}),Wu(100),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pDif",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vICMSDif",void 0);var Wo=class{static{s(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([R(),h("design:type",String)],Wo.prototype,"orig",void 0);u([R(),h("design:type",String)],Wo.prototype,"CST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vBCSTRet",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"pST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vICMSSubstituto",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vICMSSTRet",void 0);var ft=class{static{s(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([R(),h("design:type",String)],ft.prototype,"orig",void 0);u([R(),h("design:type",String)],ft.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],ft.prototype,"modBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pRedBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vICMS",void 0);u([v(),R(),h("design:type",String)],ft.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vICMSST",void 0);var pt=class{static{s(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([R(),h("design:type",String)],pt.prototype,"orig",void 0);u([R(),h("design:type",String)],pt.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],pt.prototype,"modBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"pRedBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vICMS",void 0);u([v(),R(),h("design:type",String)],pt.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vICMSST",void 0);var Ae=class{static{s(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};u([R(),h("design:type",String)],Ae.prototype,"orig",void 0);u([R(),h("design:type",String)],Ae.prototype,"CST",void 0);u([v(),R(),h("design:type",String)],Ae.prototype,"modBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pRedBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMS",void 0);u([v(),R(),h("design:type",String)],Ae.prototype,"modBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pMVAST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pRedBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"vICMSST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ae.prototype,"pBCOp",void 0);u([v(),R(),h("design:type",String)],Ae.prototype,"UFST",void 0);var Ko=class{static{s(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([R(),h("design:type",String)],Ko.prototype,"orig",void 0);u([R(),h("design:type",String)],Ko.prototype,"CST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ko.prototype,"vBCSTRet",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ko.prototype,"pST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ko.prototype,"vICMSSubstituto",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ko.prototype,"vICMSSTRet",void 0);var _i=class{static{s(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};u([R(),h("design:type",String)],_i.prototype,"orig",void 0);u([R(),h("design:type",String)],_i.prototype,"CSOSN",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"pCredSN",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"vCredICMSSN",void 0);var Er=class{static{s(this,"ICMSSN102")}orig;CSOSN};u([R(),h("design:type",String)],Er.prototype,"orig",void 0);u([R(),h("design:type",String)],Er.prototype,"CSOSN",void 0);var Yt=class{static{s(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};u([R(),h("design:type",String)],Yt.prototype,"orig",void 0);u([R(),h("design:type",String)],Yt.prototype,"CSOSN",void 0);u([v(),R(),h("design:type",String)],Yt.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vICMSST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"pCredSN",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vCredICMSSN",void 0);var ko=class{static{s(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};u([R(),h("design:type",String)],ko.prototype,"orig",void 0);u([R(),h("design:type",String)],ko.prototype,"CSOSN",void 0);u([v(),R(),h("design:type",String)],ko.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ko.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ko.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ko.prototype,"vICMSST",void 0);var _o=class{static{s(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([R(),h("design:type",String)],_o.prototype,"orig",void 0);u([R(),h("design:type",String)],_o.prototype,"CSOSN",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_o.prototype,"vBCSTRet",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_o.prototype,"pST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_o.prototype,"vICMSSubstituto",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_o.prototype,"vICMSSTRet",void 0);var Ke=class{static{s(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};u([R(),h("design:type",String)],Ke.prototype,"orig",void 0);u([R(),h("design:type",String)],Ke.prototype,"CSOSN",void 0);u([v(),R(),h("design:type",String)],Ke.prototype,"modBC",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"vBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"pRedBC",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"pICMS",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"vICMS",void 0);u([v(),R(),h("design:type",String)],Ke.prototype,"modBCST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"vBCST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"pICMSST",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"vICMSST",void 0);u([v(),p({fixed:4}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"pCredSN",void 0);u([v(),p({fixed:2}),h("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ke.prototype,"vCredICMSSN",void 0);var W=class{static{s(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};u([v(),He(),Qe(()=>Xo),h("design:type",typeof IICMS00>"u"?Object:IICMS00)],W.prototype,"ICMS00",void 0);u([v(),He(),Qe(()=>ht),h("design:type",typeof IICMS10>"u"?Object:IICMS10)],W.prototype,"ICMS10",void 0);u([v(),He(),Qe(()=>po),h("design:type",typeof IICMS20>"u"?Object:IICMS20)],W.prototype,"ICMS20",void 0);u([v(),He(),Qe(()=>Jo),h("design:type",typeof IICMS30>"u"?Object:IICMS30)],W.prototype,"ICMS30",void 0);u([v(),He(),Qe(()=>ki),h("design:type",typeof IICMS40>"u"?Object:IICMS40)],W.prototype,"ICMS40",void 0);u([v(),He(),Qe(()=>Rt),h("design:type",typeof IICMS51>"u"?Object:IICMS51)],W.prototype,"ICMS51",void 0);u([v(),He(),Qe(()=>Wo),h("design:type",typeof IICMS60>"u"?Object:IICMS60)],W.prototype,"ICMS60",void 0);u([v(),He(),Qe(()=>ft),h("design:type",typeof IICMS70>"u"?Object:IICMS70)],W.prototype,"ICMS70",void 0);u([v(),He(),Qe(()=>pt),h("design:type",typeof IICMS90>"u"?Object:IICMS90)],W.prototype,"ICMS90",void 0);u([v(),He(),Qe(()=>Ae),h("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],W.prototype,"ICMSPart",void 0);u([v(),He(),Qe(()=>Ko),h("design:type",typeof IICMSST>"u"?Object:IICMSST)],W.prototype,"ICMSST",void 0);u([v(),He(),Qe(()=>_i),h("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],W.prototype,"ICMSSN101",void 0);u([v(),He(),Qe(()=>Er),h("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],W.prototype,"ICMSSN102",void 0);u([v(),He(),Qe(()=>Yt),h("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],W.prototype,"ICMSSN201",void 0);u([v(),He(),Qe(()=>ko),h("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],W.prototype,"ICMSSN202",void 0);u([v(),He(),Qe(()=>_o),h("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],W.prototype,"ICMSSN500",void 0);u([v(),He(),Qe(()=>Ke),h("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],W.prototype,"ICMSSN900",void 0);W=u([H({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],W);import{IsOptional as lo,IsString as Zt,ValidateNested as sp}from"class-validator";import{Type as cp}from"class-transformer";function mt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(mt,"_ts_decorate");function gt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(gt,"_ts_metadata");var $o=class{static{s(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};mt([Zt(),gt("design:type",String)],$o.prototype,"CST",void 0);mt([lo(),Zt(),gt("design:type",String)],$o.prototype,"vBC",void 0);mt([lo(),Zt(),gt("design:type",String)],$o.prototype,"pIPI",void 0);mt([lo(),Zt(),gt("design:type",String)],$o.prototype,"qUnid",void 0);mt([lo(),Zt(),gt("design:type",String)],$o.prototype,"vUnid",void 0);mt([lo(),Zt(),gt("design:type",String)],$o.prototype,"vIPI",void 0);var Da=class{static{s(this,"IPINT")}CST};mt([Zt(),gt("design:type",String)],Da.prototype,"CST",void 0);var Ft=class{static{s(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};mt([lo(),Zt(),gt("design:type",String)],Ft.prototype,"CNPJProd",void 0);mt([lo(),Zt(),gt("design:type",String)],Ft.prototype,"cSelo",void 0);mt([lo(),Zt(),gt("design:type",String)],Ft.prototype,"qSelo",void 0);mt([Zt(),gt("design:type",String)],Ft.prototype,"cEnq",void 0);mt([lo(),sp(),cp(()=>$o),gt("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Ft.prototype,"IPITrib",void 0);mt([lo(),sp(),cp(()=>Da),gt("design:type",typeof IIPINT>"u"?Object:IIPINT)],Ft.prototype,"IPINT",void 0);import{IsOptional as ja,IsString as Ma}from"class-validator";function Ea(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ea,"_ts_decorate");function Ta(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ta,"_ts_metadata");var uo=class{static{s(this,"II")}vBC;vDespAdu;vII;vIOF};Ea([ja(),Ma(),Ta("design:type",String)],uo.prototype,"vBC",void 0);Ea([ja(),Ma(),Ta("design:type",String)],uo.prototype,"vDespAdu",void 0);Ea([ja(),Ma(),Ta("design:type",String)],uo.prototype,"vII",void 0);Ea([ja(),Ma(),Ta("design:type",String)],uo.prototype,"vIOF",void 0);import{IsOptional as pe,IsString as de,ValidateNested as La}from"class-validator";import{Type as Ba}from"class-transformer";function oe(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(oe,"_ts_decorate");function ie(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ie,"_ts_metadata");var ei=class{static{s(this,"PISAliq")}CST;vBC;pPIS;vPIS};oe([de(),ie("design:type",String)],ei.prototype,"CST",void 0);oe([pe(),de(),ie("design:type",String)],ei.prototype,"vBC",void 0);oe([pe(),de(),ie("design:type",String)],ei.prototype,"pPIS",void 0);oe([pe(),de(),ie("design:type",String)],ei.prototype,"vPIS",void 0);var ti=class{static{s(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};oe([de(),ie("design:type",String)],ti.prototype,"CST",void 0);oe([pe(),de(),ie("design:type",String)],ti.prototype,"qBCProd",void 0);oe([pe(),de(),ie("design:type",String)],ti.prototype,"vAliqProd",void 0);oe([pe(),de(),ie("design:type",String)],ti.prototype,"vPIS",void 0);var Vn=class{static{s(this,"PISNT")}CST};oe([de(),ie("design:type",String)],Vn.prototype,"CST",void 0);var qt=class{static{s(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};oe([de(),ie("design:type",String)],qt.prototype,"CST",void 0);oe([pe(),de(),ie("design:type",String)],qt.prototype,"vBC",void 0);oe([pe(),de(),ie("design:type",String)],qt.prototype,"pPIS",void 0);oe([pe(),de(),ie("design:type",String)],qt.prototype,"qBCProd",void 0);oe([pe(),de(),ie("design:type",String)],qt.prototype,"vAliqProd",void 0);oe([pe(),de(),ie("design:type",String)],qt.prototype,"vPIS",void 0);var ho=class{static{s(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};oe([pe(),La(),Ba(()=>ei),ie("design:type",typeof ei>"u"?Object:ei)],ho.prototype,"PISAliq",void 0);oe([pe(),La(),Ba(()=>ti),ie("design:type",typeof ti>"u"?Object:ti)],ho.prototype,"PISQtde",void 0);oe([pe(),La(),Ba(()=>Vn),ie("design:type",typeof Vn>"u"?Object:Vn)],ho.prototype,"PISNT",void 0);oe([pe(),La(),Ba(()=>qt),ie("design:type",typeof qt>"u"?Object:qt)],ho.prototype,"PISOutr",void 0);var Xt=class{static{s(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};oe([pe(),de(),ie("design:type",String)],Xt.prototype,"vBC",void 0);oe([pe(),de(),ie("design:type",String)],Xt.prototype,"pPIS",void 0);oe([pe(),de(),ie("design:type",String)],Xt.prototype,"qBCProd",void 0);oe([pe(),de(),ie("design:type",String)],Xt.prototype,"vAliqProd",void 0);oe([pe(),de(),ie("design:type",String)],Xt.prototype,"vPIS",void 0);import{IsOptional as le,IsString as ue,ValidateNested as Va}from"class-validator";import{Type as Ha}from"class-transformer";function ne(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(ne,"_ts_decorate");function re(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(re,"_ts_metadata");var oi=class{static{s(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};ne([ue(),re("design:type",String)],oi.prototype,"CST",void 0);ne([le(),ue(),re("design:type",String)],oi.prototype,"vBC",void 0);ne([le(),ue(),re("design:type",String)],oi.prototype,"pCOFINS",void 0);ne([le(),ue(),re("design:type",String)],oi.prototype,"vCOFINS",void 0);var ii=class{static{s(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};ne([ue(),re("design:type",String)],ii.prototype,"CST",void 0);ne([le(),ue(),re("design:type",String)],ii.prototype,"qBCProd",void 0);ne([le(),ue(),re("design:type",String)],ii.prototype,"vAliqProd",void 0);ne([le(),ue(),re("design:type",String)],ii.prototype,"vCOFINS",void 0);var Hn=class{static{s(this,"COFINSNT")}CST};ne([ue(),re("design:type",String)],Hn.prototype,"CST",void 0);var Jt=class{static{s(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ne([ue(),re("design:type",String)],Jt.prototype,"CST",void 0);ne([le(),ue(),re("design:type",String)],Jt.prototype,"vBC",void 0);ne([le(),ue(),re("design:type",String)],Jt.prototype,"pCOFINS",void 0);ne([le(),ue(),re("design:type",String)],Jt.prototype,"qBCProd",void 0);ne([le(),ue(),re("design:type",String)],Jt.prototype,"vAliqProd",void 0);ne([le(),ue(),re("design:type",String)],Jt.prototype,"vCOFINS",void 0);var mo=class{static{s(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};ne([le(),Va(),Ha(()=>oi),re("design:type",typeof oi>"u"?Object:oi)],mo.prototype,"COFINSAliq",void 0);ne([le(),Va(),Ha(()=>ii),re("design:type",typeof ii>"u"?Object:ii)],mo.prototype,"COFINSQtde",void 0);ne([le(),Va(),Ha(()=>Hn),re("design:type",typeof Hn>"u"?Object:Hn)],mo.prototype,"COFINSNT",void 0);ne([le(),Va(),Ha(()=>Jt),re("design:type",typeof Jt>"u"?Object:Jt)],mo.prototype,"COFINSOutr",void 0);var Wt=class{static{s(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};ne([le(),ue(),re("design:type",String)],Wt.prototype,"vBC",void 0);ne([le(),ue(),re("design:type",String)],Wt.prototype,"pCOFINS",void 0);ne([le(),ue(),re("design:type",String)],Wt.prototype,"qBCProd",void 0);ne([le(),ue(),re("design:type",String)],Wt.prototype,"vAliqProd",void 0);ne([le(),ue(),re("design:type",String)],Wt.prototype,"vCOFINS",void 0);import{IsOptional as Un,IsString as Yn}from"class-validator";function Qn(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Qn,"_ts_decorate");function Gn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gn,"_ts_metadata");var It=class{static{s(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"vBC",void 0);Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"vAliq",void 0);Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"vISSQN",void 0);Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"cMunFG",void 0);Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"cListServ",void 0);Qn([Un(),Yn(),Gn("design:type",String)],It.prototype,"cSitTrib",void 0);import{IsOptional as ai,IsString as si}from"class-validator";function ni(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(ni,"_ts_decorate");function ri(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ri,"_ts_metadata");var it=class{static{s(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};ni([ai(),si(),ri("design:type",String)],it.prototype,"vBCUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"vBCFCPUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"pFCPUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"pICMSUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"pICMSInter",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"pICMSInterPart",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"vFCPUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"vICMSUFDest",void 0);ni([ai(),si(),ri("design:type",String)],it.prototype,"vICMSUFRemet",void 0);function Kt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Kt,"_ts_decorate");function go(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(go,"_ts_metadata");var Oe=class{static{s(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};Kt([vo(),Ku(),go("design:type",Number)],Oe.prototype,"vTotTrib",void 0);Kt([vo(),fi(),ci(()=>W),go("design:type",typeof IICMS>"u"?Object:IICMS)],Oe.prototype,"ICMS",void 0);Kt([vo(),fi(),ci(()=>Ft),go("design:type",typeof IIPI>"u"?Object:IIPI)],Oe.prototype,"IPI",void 0);Kt([vo(),fi(),ci(()=>It),go("design:type",typeof IISSQN>"u"?Object:IISSQN)],Oe.prototype,"ISSQN",void 0);Kt([vo(),fi(),ci(()=>uo),go("design:type",typeof III>"u"?Object:III)],Oe.prototype,"II",void 0);Kt([vo(),fi(),ci(()=>ho),go("design:type",typeof IPIS>"u"?Object:IPIS)],Oe.prototype,"PIS",void 0);Kt([vo(),fi(),ci(()=>Xt),go("design:type",typeof IPISST>"u"?Object:IPISST)],Oe.prototype,"PISST",void 0);Kt([vo(),fi(),ci(()=>mo),go("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],Oe.prototype,"COFINS",void 0);Kt([vo(),fi(),ci(()=>Wt),go("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],Oe.prototype,"COFINSST",void 0);Kt([vo(),fi(),ci(()=>it),go("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],Oe.prototype,"ICMSUFDest",void 0);Oe=Kt([H({properties:["ICMS","ISSQN"]})],Oe);import{IsOptional as ku,IsString as fp,ValidateNested as _u}from"class-validator";import{Type as $u}from"class-transformer";function dc(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(dc,"_ts_decorate");function lc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(lc,"_ts_metadata");var Qa=class{static{s(this,"IpiDevol")}vIPIDevol};dc([fp(),lc("design:type",String)],Qa.prototype,"vIPIDevol",void 0);var Zn=class{static{s(this,"Devol")}pDevol;IPI};dc([fp(),lc("design:type",String)],Zn.prototype,"pDevol",void 0);dc([ku(),_u(),$u(()=>Qa),lc("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],Zn.prototype,"IPI",void 0);import{IsOptional as pp,IsString as dp,ValidateNested as lp}from"class-validator";import{Type as up}from"class-transformer";function Ga(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ga,"_ts_decorate");function Ua(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ua,"_ts_metadata");var qn=class{static{s(this,"Observation")}xCampo;xTexto};Ga([dp(),Ua("design:type",String)],qn.prototype,"xCampo",void 0);Ga([dp(),Ua("design:type",String)],qn.prototype,"xTexto",void 0);var Xn=class{static{s(this,"ObsItem")}obsCont;obsFisco};Ga([pp(),lp(),up(()=>qn),Ua("design:type",typeof IObservation>"u"?Object:IObservation)],Xn.prototype,"obsCont",void 0);Ga([pp(),lp(),up(()=>qn),Ua("design:type",typeof IObservation>"u"?Object:IObservation)],Xn.prototype,"obsFisco",void 0);function $i(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s($i,"_ts_decorate");function en(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(en,"_ts_metadata");var Jn=class{static{s(this,"DetAttributes")}nItem};$i([hp(),en("design:type",String)],Jn.prototype,"nItem",void 0);var yo=class{static{s(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};$i([eh(),Tr(),jr(()=>Jn),en("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],yo.prototype,"$",void 0);$i([Tr(),jr(()=>x),en("design:type",typeof IProd>"u"?Object:IProd)],yo.prototype,"prod",void 0);$i([Ya(),Tr(),jr(()=>Oe),en("design:type",typeof IImposto>"u"?Object:IImposto)],yo.prototype,"imposto",void 0);$i([Ya(),Tr(),jr(()=>Zn),en("design:type",typeof IDevol>"u"?Object:IDevol)],yo.prototype,"impostoDevol",void 0);$i([Ya(),hp(),en("design:type",String)],yo.prototype,"infAdProd",void 0);$i([Ya(),Tr(),jr(()=>Xn),en("design:type",typeof IObsItem>"u"?Object:IObsItem)],yo.prototype,"obsItem",void 0);import{IsDate as th,IsOptional as Mr,IsString as wi}from"class-validator";function kt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(kt,"_ts_decorate");function _t(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_t,"_ts_metadata");var Ge=class{static{s(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};kt([wi(),_t("design:type",String)],Ge.prototype,"CNPJ",void 0);kt([wi(),_t("design:type",String)],Ge.prototype,"xOrgao",void 0);kt([wi(),_t("design:type",String)],Ge.prototype,"matr",void 0);kt([wi(),_t("design:type",String)],Ge.prototype,"xAgente",void 0);kt([Mr(),wi(),_t("design:type",String)],Ge.prototype,"fone",void 0);kt([wi(),_t("design:type",String)],Ge.prototype,"UF",void 0);kt([Mr(),wi(),_t("design:type",String)],Ge.prototype,"nDAR",void 0);kt([Mr(),ui({format:"YYYY-MM-DD"}),_t("design:type",typeof Date>"u"?Object:Date)],Ge.prototype,"dEmi",void 0);kt([Mr(),p({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vDAR",void 0);kt([wi(),_t("design:type",String)],Ge.prototype,"repEmi",void 0);kt([Mr(),th(),_t("design:type",typeof Date>"u"?Object:Date)],Ge.prototype,"dPag",void 0);import{IsString as nh}from"class-validator";function oh(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(oh,"_ts_decorate");function ih(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ih,"_ts_metadata");var tn=class{static{s(this,"InfSolicNFF")}xSolic};oh([nh(),ih("design:type",String)],tn.prototype,"xSolic",void 0);function ae(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(ae,"_ts_decorate");function se(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(se,"_ts_metadata");var on=class{static{s(this,"InfNFeAttributes")}Id;versao};ae([nt(),gp(),se("design:type",String)],on.prototype,"Id",void 0);ae([nt(),gp(),se("design:type",String)],on.prototype,"versao",void 0);var q=class{static{s(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};ae([hc(),uc(),me(()=>on),he(),se("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],q.prototype,"$",void 0);ae([hc(),uc(),he(),me(()=>B),se("design:type",typeof IIde>"u"?Object:IIde)],q.prototype,"ide",void 0);ae([hc(),uc(),he(),me(()=>Ie),se("design:type",typeof IEmit>"u"?Object:IEmit)],q.prototype,"emit",void 0);ae([nt(),he(),me(()=>Ge),se("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],q.prototype,"avulsa",void 0);ae([nt(),he(),me(()=>we),se("design:type",typeof IDest>"u"?Object:IDest)],q.prototype,"dest",void 0);ae([nt(),he(),me(()=>Z),se("design:type",typeof ILocal>"u"?Object:ILocal)],q.prototype,"retirada",void 0);ae([nt(),he(),me(()=>Z),se("design:type",typeof ILocal>"u"?Object:ILocal)],q.prototype,"entrega",void 0);ae([nt(),he({each:!0}),mp(10),me(()=>ro),se("design:type",Array)],q.prototype,"autXML",void 0);ae([he({each:!0}),mp(990),rh(1),me(()=>yo),se("design:type",Array)],q.prototype,"det",void 0);ae([he(),me(()=>To),se("design:type",typeof ITotal>"u"?Object:ITotal)],q.prototype,"total",void 0);ae([he(),me(()=>Je),se("design:type",typeof ITransp>"u"?Object:ITransp)],q.prototype,"transp",void 0);ae([nt(),he(),me(()=>Si),se("design:type",typeof ICobr>"u"?Object:ICobr)],q.prototype,"cobr",void 0);ae([he(),me(()=>Ni),se("design:type",typeof IPag>"u"?Object:IPag)],q.prototype,"pag",void 0);ae([nt(),he(),me(()=>gi),se("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],q.prototype,"infIntermed",void 0);ae([nt(),he(),me(()=>Ut),se("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],q.prototype,"infAdic",void 0);ae([nt(),he(),me(()=>Do),se("design:type",typeof IExporta>"u"?Object:IExporta)],q.prototype,"exporta",void 0);ae([nt(),he(),me(()=>Eo),se("design:type",typeof ICompra>"u"?Object:ICompra)],q.prototype,"compra",void 0);ae([nt(),he(),me(()=>We),se("design:type",typeof ICana>"u"?Object:ICana)],q.prototype,"cana",void 0);ae([nt(),he(),me(()=>St),se("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],q.prototype,"infRespTec",void 0);ae([nt(),he(),me(()=>tn),se("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],q.prototype,"infSolicNFF",void 0);import{Type as Np}from"class-transformer";function Za(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Za,"_ts_decorate");function qa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(qa,"_ts_metadata");var Wn=class{static{s(this,"NFeAttributes")}xmlns};Za([ch(),sh(),qa("design:type",String)],Wn.prototype,"xmlns",void 0);var zi=class{static{s(this,"NFe")}$;infNFe;Signature};Za([yp(),vp(),Np(()=>Wn),Sp(),qa("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],zi.prototype,"$",void 0);Za([yp(),vp(),Np(()=>q),Sp(),qa("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],zi.prototype,"infNFe",void 0);Za([ah(),qa("design:type",typeof Signature>"u"?Object:Signature)],zi.prototype,"Signature",void 0);function wt(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(wt,"_ts_decorate");function j(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(j,"_ts_metadata");var ke=class{static{s(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};wt([w(Jn),j("design:type",Function),j("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),j("design:returntype",void 0)],ke.prototype,"det",null);wt([w(x),j("design:type",Function),j("design:paramtypes",[typeof IProd>"u"?Object:IProd]),j("design:returntype",void 0)],ke.prototype,"prod",null);wt([w(Oe),j("design:type",Function),j("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),j("design:returntype",void 0)],ke.prototype,"imposto",null);wt([w(W),j("design:type",Function),j("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),j("design:returntype",void 0)],ke.prototype,"icms",null);wt([w(It),j("design:type",Function),j("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),j("design:returntype",void 0)],ke.prototype,"issqn",null);wt([w(uo),j("design:type",Function),j("design:paramtypes",[typeof III>"u"?Object:III]),j("design:returntype",void 0)],ke.prototype,"ii",null);wt([w(Ft),j("design:type",Function),j("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),j("design:returntype",void 0)],ke.prototype,"ipi",null);wt([w(ho),j("design:type",Function),j("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),j("design:returntype",void 0)],ke.prototype,"pis",null);wt([w(Xt),j("design:type",Function),j("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),j("design:returntype",void 0)],ke.prototype,"pisst",null);wt([w(mo),j("design:type",Function),j("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),j("design:returntype",void 0)],ke.prototype,"cofins",null);wt([w(Wt),j("design:type",Function),j("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),j("design:returntype",void 0)],ke.prototype,"cofinsst",null);wt([w(it),j("design:type",Function),j("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),j("design:returntype",void 0)],ke.prototype,"icmsufdest",null);function Ce(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ce,"_ts_decorate");function b(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(b,"_ts_metadata");var K=class{static{s(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return zi}root="NFe";$det=new $r(this);$total=new ea(this);nfeDetXmlBuilder=ke.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,t){return this.data.infNFe.det=e.map((i,r)=>{let n=t(this.nfeDetXmlBuilder.det({nItem:(r+1).toString()}),i);return this.collect(n),n.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(eo,this),this}toObject(){if(this.$data!==void 0)return U(this.$data);let e=this.errors();return e?Ee(new De(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=lf(this.data,this.entity,{clearEmptyValues:!0}),U(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:U(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==y.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==$e.Normal)return;switch(ma[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=$e.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=$e.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:i}=this.data.infNFe.ide;if(!(!e&&!t&&i===$e.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(eo,this)}collect(e){let t=Reflect.getMetadata(eo,e);if(!t)return;let i=this.errors();Reflect.defineMetadata(eo,(i??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new _r().compile({cUF:this.data.infNFe.ide.cUF,year:this.data.infNFe.ide.dhEmi.substring(2,4),month:this.data.infNFe.ide.dhEmi.substring(5,7),identification:this.data.infNFe.emit.CPF??this.data.infNFe.emit.CNPJ,mod:this.data.infNFe.ide.mod,serie:this.data.infNFe.ide.serie,nNF:this.data.infNFe.ide.nNF,tpEmis:this.data.infNFe.ide.tpEmis,cNF:this.data.infNFe.ide.cNF});this.data.infNFe.ide.cDV=e.slice(-1),this.data.infNFe.$={Id:`${this.root}${e}`,versao:this.data.infNFe.$.versao}}};Ce([w(on),b("design:type",Function),b("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),b("design:returntype",void 0)],K.prototype,"infNFe",null);Ce([w(B),b("design:type",Function),b("design:paramtypes",[typeof IIde>"u"?Object:IIde]),b("design:returntype",void 0)],K.prototype,"ide",null);Ce([w(Ie),b("design:type",Function),b("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),b("design:returntype",void 0)],K.prototype,"emit",null);Ce([w(Ge),b("design:type",Function),b("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),b("design:returntype",void 0)],K.prototype,"avulsa",null);Ce([w(we),b("design:type",Function),b("design:paramtypes",[typeof IDest>"u"?Object:IDest]),b("design:returntype",void 0)],K.prototype,"dest",null);Ce([w(Z),b("design:type",Function),b("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),b("design:returntype",void 0)],K.prototype,"retirada",null);Ce([w(Z),b("design:type",Function),b("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),b("design:returntype",void 0)],K.prototype,"entrega",null);Ce([w(ro),b("design:type",Function),b("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),b("design:returntype",void 0)],K.prototype,"autXML",null);Ce([w(To),b("design:type",Function),b("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),b("design:returntype",void 0)],K.prototype,"total",null);Ce([w(Je),b("design:type",Function),b("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),b("design:returntype",void 0)],K.prototype,"transp",null);Ce([w(Si),b("design:type",Function),b("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),b("design:returntype",void 0)],K.prototype,"cobr",null);Ce([w(Ni),b("design:type",Function),b("design:paramtypes",[typeof IPag>"u"?Object:IPag]),b("design:returntype",void 0)],K.prototype,"pag",null);Ce([w(gi),b("design:type",Function),b("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),b("design:returntype",void 0)],K.prototype,"infIntermed",null);Ce([w(Ut),b("design:type",Function),b("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),b("design:returntype",void 0)],K.prototype,"infAdic",null);Ce([w(Do),b("design:type",Function),b("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),b("design:returntype",void 0)],K.prototype,"exporta",null);Ce([w(Eo),b("design:type",Function),b("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),b("design:returntype",void 0)],K.prototype,"compra",null);Ce([w(We),b("design:type",Function),b("design:paramtypes",[typeof ICana>"u"?Object:ICana]),b("design:returntype",void 0)],K.prototype,"cana",null);Ce([w(St),b("design:type",Function),b("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),b("design:returntype",void 0)],K.prototype,"infRespTec",null);Ce([w(tn),b("design:type",Function),b("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),b("design:returntype",void 0)],K.prototype,"infSolicNFF",null);var Xa=class extends dn{static{s(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=K.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}toObject(){return this.builder.toObject()}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return fh.resolve(kr(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return U(e);let t=await this.certificates.read(this.certificate);if(t.isLeft())return t;let i=await this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value);if(i.isLeft())return i;let r=await this.toolkit.validate(i.value,this.nfeXsdSchema);return r.isLeft()?r:U(i.value)}};import{Type as mc}from"class-transformer";import{Allow as ph,IsNotEmptyObject as Fp,IsObject as Ip,ValidateNested as wp}from"class-validator";import{IsString as Rp}from"class-validator";function Cp(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Cp,"_ts_decorate");function bp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(bp,"_ts_metadata");var Kn=class{static{s(this,"InfNFeSupl")}qrCode;urlChave};Cp([Rp(),bp("design:type",String)],Kn.prototype,"qrCode",void 0);Cp([Rp(),bp("design:type",String)],Kn.prototype,"urlChave",void 0);function Ja(o,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(o,e,t,i);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n}s(Ja,"_ts_decorate");function Wa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Wa,"_ts_metadata");var pi=class{static{s(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Ja([Ip(),Fp(),mc(()=>Wn),wp(),Wa("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],pi.prototype,"$",void 0);Ja([Ip(),Fp(),mc(()=>q),wp(),Wa("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],pi.prototype,"infNFe",void 0);Ja([mc(()=>Kn),Wa("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],pi.prototype,"infNFeSupl",void 0);Ja([ph(),Wa("design:type",typeof Signature>"u"?Object:Signature)],pi.prototype,"Signature",void 0);var Ka=class extends K{static{s(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return pi}static create(e,t){return new this(e,t)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===$e.Normal)return this.data.infNFe.ide.tpEmis=$e.OFFLINE,void 0}};var zp=class extends Xa{static{s(this,"NfceXmlBuilderPipeline")}builder=Ka.create(this.toolkit)};var xp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qOaEx2hNmtmrrmpWPTJf+QCAQCDQvwWloML3D+xaYcaGkc4D/DpwKLImaCFhIFP6fCXzP4NVbuzoONdqQQCAQCFRHcBoaSO/w/vlm3Ad2rqS4LwAmkMXR/hmk3SV01UBXx7Hac681uGLPxwH5vh9twDyMRSjqKwLMI2pSwmChoN3l2didXTd8tDFWBwKBwMS0NdqAWc4bEefK+W7xv4peLRX5nyHa5WZ8uHd4f99AV8dYhXnV1Fyx55Z2jOWGrZB0CvBfDZabsUxiCbDYYLGweaSdK6K+IELItS2ZjDmMHgKC0xAIBJqK4DQ0iN7h/QUzuxr5IsNXyi0uPqJxCDNLk3gv8K/A9mxysn5077mlXcapiNPATgO9HOw0jNMwW45UcKNKAB9oMcyiSIvbcJp3HCyKwlj06j/3C/rpwYYkMhAIBKYgOA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ZQZKedkiG31OOW+qJIlJynStSeSCL5jI3sZuPjchccju2Q9cUzBImCGYb+grmZEg3vmGBbFpw521paOHv+z+wAtxixCHgQNFPPZceeOmCpyhdJ024skTbfZK7GrtvJlrlCajjnfcrPQ1mI++9po7QUCJxtBaQickPz0lbefPeuU//gi6NKythBT8YFHP5VD6Vw5eRGh8rVTL9MQ+J3nLtw8ocJIgUAg8HoiuCcCJyQXn/XPLxv9AfhD0dE5V05M1JyySGRlV0X56GSSuOkYyPDtRkFhCAQCb2iCpSFwwjOwfeksSR+2uVFicdo9keBylsho558uglR2YUyNbMTwOcynliw6XtUyA4FA4NgQlIbA64YtO1pnAVfbvklwPlJLteOiQvJ6tStj0mWv2r4T8dCShZuDwhAIBN7wBKUh8LpjYEdrk+xzkN4PdNheDKpJmxxZI5L4yEmUHTC8LLvH8NiSRZtDkFwgEDhpCEpD4HXNwI6lGaGzsLNIFwMXAfNsWiQyaftA5SsNXquR2SNIh8AHQVsxLyB+CmwCdh6rSpiBQCBwIhGUhsAbii07WrGZI/lsw2JgIWa+pDnALOyoaFEcq2AzIrEPOIC9B9iN9H+AndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var kn=class o{static{s(this,"Header")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}emit(e){let{left:t,right:i}=this.builder.pageMargins(),r=e?.x??t,n=this.context.data.infNFe.emit,{enderEmit:a}=n,{xNome:c}=n,f=this.context.defaults.font,l=`${f}-Bold`,m="left";this.builder.row({left:r,right:i},g=>this.builder.text(this.identification(n),{...g,continued:!0,align:m}).font(l).text(` ${c}`,{...g,align:m}).font(f)).row({left:r,right:i},g=>this.builder.text(this.addressLine1(a),{...g,continued:!0,align:m}).text(this.addressLine2(a),{...g,continued:!0,align:m}).text(this.addressLine3(a),{...g,align:m})).row({left:r,right:i},g=>this.builder.text(this.addressLine4(a),{...g,align:m}))}identification(e){let t=this.cpfOrCnpj(e),i=e.IE.length?` IE: ${e.IE}`:"";return`${t}${i}`}cpfOrCnpj(e){let{CNPJ:t,CPF:i}=e;return t?.length===14?`CNPJ ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:i?.length===11?`CPF ${i.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:i}=e;return`${t}, ${i}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:i}=e;return`, ${t} - ${i}`}addressLine4(e){let{fone:t}=e;return t?`Fone: ${t.replace(/(\d{2})(\d{4,5})(\d{4})/,"($1) $2-$3")}`:""}staticTexts(){let{left:e,right:t}=this.builder.pageMargins();this.builder.moveDown(.5).fontSize(this.context.options.titleFontSize).row({left:e,right:t},i=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...i,align:"center"})).row({left:e,right:t},i=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...i,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return xp}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.emit(),this.staticTexts(),this.builder}end(){o._instance=void 0}};var di=class o{static{s(this,"FiscalMessages")}context;static _instance;constants={issuedInContingency:"EMITIDA EM CONTING\xCANCIA",pendingOfAuthorization:"Pendente de autoriza\xE7\xE3o",notProtocoledInNormalEmission:"PENDENTE DE AUTORIZA\xC7\xC3O - SEM VALOR FISCAL"};static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get contingencyBannerText(){return`${this.constants.issuedInContingency}
|
|
16
|
+
${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==$e.Normal}get hasNotProtocoledInNormalEmission(){return!this.hasContingency&&!this.context.protNFe}contingency(e){if(!this.hasContingency)return;let t=e?.x??0;this.builder.row({left:t},i=>this.builder.text(this.contingencyBannerText,{...i,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},i=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...i,align:"center"}))}build(e){return this.setup(),this.builder.moveDown(.5),this.contingency(e),this.notProtocoledInNormalEmission(e),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){o._instance=void 0}height(){this.setup();let e=[.5],{left:t,right:i}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-i;return this.hasContingency&&e.push(this.builder.heightOfString(this.contingencyBannerText,{width:r,align:"center"})),this.hasNotProtocoledInNormalEmission&&e.push(this.builder.heightOfString(this.constants.notProtocoledInNormalEmission,{width:r,align:"center"})),e.reduce((n,a)=>n+a,0)}};var _n=class o{static{s(this,"HomologMessage")}context;static _instance;constants={withoutFiscalValue:"EMITIDA EM AMBIENTE DE HOMOLOGA\xC7\xC3O \u2013 SEM VALOR FISCAL"};static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasHomologMessage(){let{tpAmb:e}=this.context.data.infNFe.ide;return e!==y.Production}withHomologMessage(){if(!this.hasHomologMessage)return;let{left:e}=this.builder.pageMargins();this.builder.text(this.constants.withoutFiscalValue,{x:e,align:"center"})}build(){return this.setup(),this.builder.moveDown(.5),this.withHomologMessage(),this.builder.font(this.context.defaults.font),this.builder}setup(){let e=this.context.defaults.font,t=`${e}-Bold`;this.builder.font(t,this.context.options.titleFontSize)}end(){o._instance=void 0}height(){if(!this.hasHomologMessage)return 0;this.setup();let{left:e,right:t}=this.builder.pageMargins();return this.builder.heightOfString(this.constants.withoutFiscalValue,{width:this.builder.pageWidth()-e-t,align:"center"})}};var ka=class o{static{s(this,"Items")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get columnStyles(){return[15,32,60,"*","*","*","*"]}get rowStyles(){return{border:!1}}get defaultStyle(){return{padding:{top:1,bottom:1,left:0,right:0}}}get headers(){let e={src:`${this.context.defaults.font}-Bold`};return[{font:e,text:"#"},{font:e,text:"cod."},{font:e,text:"descri\xE7\xE3o"},{font:e,align:{x:"right"},text:"qtde"},{font:e,align:{x:"right"},text:"unit."},{font:e,align:{x:"right"},text:"desc."},{font:e,align:{x:"right"},text:"total"}]}item(e){let{prod:t,$:{nItem:i}}=e,{cProd:r,xProd:n,qCom:a,uCom:c,vUnCom:f,vDesc:l,vProd:m}=t,g={size:this.context.options.textFontSize},S={font:g,text:i.padStart(3,"0")},N={font:g,text:r},F=[{font:g,align:{x:"right"},text:`${this.context.currency(a,4)} ${c}`},{font:g,align:{x:"right"},text:this.context.currency(f,10)},{font:g,align:{x:"right"},text:this.context.currency(l??0)},{font:g,align:{x:"right"},text:this.context.currency(m)}],O=this.builder.widthOfString(r),A=this.columnStyles[1];if(O>=A)return[[S,{colSpan:6,font:g,text:`${r} ${n}`}],[{colSpan:3},...F]];let L=this.builder.widthOfString(n),At=this.columnStyles[2];if(L>=At)return[[S,N,{colSpan:5,font:g,text:n}],[{colSpan:3},...F]];let Co=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${n}`)<=Co?[[S,N,{font:g,text:n},...F]]:[[S,N,{colSpan:5,font:g,text:n}],[{colSpan:3},...F]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:i}=this.builder.pageMargins();this.builder.table({position:{x:i},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((r,n)=>r.concat(this.item(n)),[])]})}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.items(),this.builder}end(){o._instance=void 0}getFirstLineWidth(){return this.columnStyles.slice(1,3).reduce((t,i)=>t+i,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),i=this.builder.pageWidth()-e-t,r=this.columnStyles.reduce((a,c)=>typeof c=="number"?a+c:a,0),n=this.columnStyles.filter(a=>a==="*").length;return(i-r)/n}getAvailableWidth(e,t){if(e.colSpan){let n=t.indexOf(e),a=this.columnStyles.slice(0,n).reduce((f,l)=>typeof l=="number"?f+l:f,0),c=this.getProportionalWidth()*e.colSpan;return a+c}let i=t.indexOf(e),r=this.columnStyles[i];return typeof r=="number"?r:this.getProportionalWidth()}calculateRowHeight(e,t){let i=t;for(let r of e){if(!r.text)continue;let n=r.text,a=this.builder.widthOfString(n),c=this.getAvailableWidth(r,e),f=a<=c?t:this.builder.heightOfString(n,{width:c});i=Math.max(i,f)}return i}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],i=this.builder.currentLineHeight(),r=i*1.2,n=i*.5,a=i*.5,c=t.reduce((l,m)=>{let g=this.item(m),[S]=g,N=this.calculateRowHeight(S,i),F=0;if(g.length>1){let Co=this.calculateRowHeight(g[1],i);F=Math.max(i,Co)}let{top:O,bottom:A}=this.defaultStyle.padding,L=O+A,At=g.length>1?i*.2:0;return l+N+F+g.length*L+At},0),f=i*2;return n+r+a+c+f}};var $n=class o{static{s(this,"Totals")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}count(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:i,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:r},n=>this.builder.text("Qtde. Total de Itens",{...n}),n=>this.builder.text(`${t.length}`,{...n,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:i,vSeg:r,vOutro:n}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new at(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",i),this.conditionalRowValue("Seguro total R$",r),this.conditionalRowValue("Outras despesas total R$",n)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,i=`${t}-Bold`,{left:r,right:n}=this.builder.pageMargins();this.builder.font(i).fontSize(this.context.options.titleFontSize).row({columns:2,left:r,right:n},a=>this.builder.text("Valor a Pagar R$",{...a,align:"left"}),a=>this.builder.text(this.context.currency(e),{...a,align:"right"})).font(t)}conditionalRowValue(e,t,i=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:r,right:n}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:n},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${i}${t}`,{...a,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.count(),this.totalizers(),this.total(),this.builder}end(){o._instance=void 0}};var ge={Dinheiro:"01",Cheque:"02",CartaoDeCredito:"03",CartaoDeDebito:"04",CartaoDaLoja:"05",ValeAlimentacao:"10",ValeRefeicao:"11",ValePresente:"12",ValeCombustivel:"13",BoletoBancario:"15",DepositoBancario:"16",PIXDinamico:"17",TransferenciaBancaria:"18",ProgramaFidelidade:"19",PIXEstatico:"20",CreditoEmLoja:"21",PagamentoNaoInformado:"22",SemPagamento:"90",PagamentoPosterior:"91",Outros:"99"},Ap={[ge.Dinheiro]:"Dinheiro",[ge.Cheque]:"Cheque",[ge.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[ge.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[ge.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[ge.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[ge.ValeRefeicao]:"Vale Refei\xE7\xE3o",[ge.ValePresente]:"Vale Presente",[ge.ValeCombustivel]:"Vale Combust\xEDvel",[ge.BoletoBancario]:"Boleto Banc\xE1rio",[ge.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[ge.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[ge.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[ge.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[ge.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[ge.CreditoEmLoja]:"Cr\xE9dito em Loja",[ge.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[ge.SemPagamento]:"Sem pagamento",[ge.PagamentoPosterior]:"Pagamento Posterior",[ge.Outros]:"Outros"};var er=class o{static{s(this,"Payments")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}payment(e){let{tPag:t,vPag:i}=e,{left:r,right:n}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:n},a=>this.builder.text(Ap[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(i),{...a,align:"right"}))}payments(){let{pag:e}=this.context.data.infNFe,t=Array.isArray(e.detPag)?e.detPag:[e.detPag];if(t.length===0)return;let{left:i,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:i,right:r},n=>this.builder.text("Forma de Pagamento",{...n,align:"left"}),n=>this.builder.text("Valor pago R$",{...n,align:"right"})),t.forEach(n=>this.payment(n))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:i}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:i},r=>this.builder.text("Troco R$",{...r,align:"left"}),r=>this.builder.text(this.context.currency(e),{...r,align:"right"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(.5),this.payments(),this.change(),this.builder}end(){o._instance=void 0}height(){this.setup();let{pag:{vTroco:e,detPag:t}}=this.context.data.infNFe,i=Array.isArray(t)?t:[t],r=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*i.length-1+r}};var tr=class o{static{s(this,"AccessKey")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}statics(){let{left:e,right:t}=this.builder.pageMargins(),i=this.context.defaults.font,r=`${i}-Bold`;this.builder.font(r).row({left:e,right:t},n=>this.builder.text("Consulte pela Chave de Acesso em",{...n,align:"center"})).font(i)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:i}=this.builder.pageMargins();this.builder.row({left:t,right:i},r=>this.builder.text(e??"",{...r,link:e,align:"center"}))}accessKey(){let{Id:e}=this.context.data.infNFe.$;if(!e)return;this.builder.moveDown(.5);let t=e.substring(3).replace(/(.{4})/g,"$1 ").trim(),{left:i,right:r}=this.builder.pageMargins();this.builder.row({left:i,right:r},n=>this.builder.text(t,{...n,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.titleFontSize)}build(){return this.builder.moveDown(.5),this.statics(),this.url(),this.accessKey(),this.builder}end(){o._instance=void 0}};var Vl=Ul(Bl(),1);var ls=class o{static{s(this,"QRCode")}context;static _instance;defaults={qrSize:65};qrCodeSvg;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}async getQrSvgString(e){try{return await Vl.toString(e,{margin:0,type:"svg",errorCorrectionLevel:"M",color:{dark:"#000000",light:"#FFFFFF"}})}catch(t){return console.error("Error generating QR code:",t),""}}drawQrCode(){if(!this.qrCodeSvg)return;let e=this.qrCodeSvg.$.viewBox,[,,t,i]=e.split(" ").map(Number),{qrSize:r}=this.defaults,n=r/t,a=r/i,c=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:f}=this.builder.pageMargins();this.builder.save().translate(f,this.builder.y()).scale(n,a),c.forEach(l=>{this.builder.path(l.$.d),l.$.fill&&this.builder.fill(l.$.fill),l.$.stroke&&this.builder.stroke(l.$.stroke)}),this.builder.restore()}async make(){let{qrCode:e}=this.context.data.infNFeSupl??{};if(!e)return this.builder;let t=await this.getQrSvgString(e);this.qrCodeSvg=await this.context.toolkit.parse(t)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}async build(){return await this.make(),this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder}end(){o._instance=void 0}height(){return this.setup(),this.defaults.qrSize+.5}};var us=class o{static{s(this,"Recipient")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}unknown(e){let{left:t,right:i}=this.builder.pageMargins(),r=this.context.defaults.font,n=`${r}-Bold`;this.builder.row({left:e?.x??t,right:i},a=>this.builder.font(n).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(r))}identification(e){let{CNPJ:t,CPF:i,idEstrangeiro:r}=e;return t?.length===14?`CNPJ: ${t.replace(/(\d{2})(\d{3})(\d{3})(\d{4})(\d{2})/,"$1.$2.$3/$4-$5")}`:i?.length===11?`CPF: ${i.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:r?.length?`Id. Estrangeiro: ${r}`:""}dest(e){let{dest:t}=this.context.data.infNFe;if(!t)return this.unknown(e);let{left:i,right:r}=this.builder.pageMargins(),n=this.identification(t),{xNome:a,enderDest:c}=t,f=this.addressLine(c),l=this.context.defaults.font,m=`${l}-Bold`;this.builder.row({left:e?.x??i,right:r},g=>this.builder.font(m).text(`CONSUMIDOR - ${n}`,{...g,align:"center"}).font(l)).row({left:e?.x??i,right:r},g=>this.builder.text(`${a}${f}`,{...g,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:i,xBairro:r,xCpl:n,xMun:a,UF:c,CEP:f}=e;if(!t||!f)return"";let l=n?`, ${n}`:"";return` - Rua ${t}, ${i}, ${r}${l}, ${a} - ${c}`}addressLine2(e){let{xBairro:t,xCpl:i}=e,r=i?` - ${i}`:"";return`${t}${r}`}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.dest(e),this.builder}end(){o._instance=void 0}height(){let{dest:e}=this.context.data.infNFe;if(!e)return 0;this.setup();let{xNome:t,enderDest:i}=e,r=this.addressLine(i),{left:n,right:a}=this.builder.pageMargins(),c=this.builder.pageWidth()-n-a;return this.builder.fontSize(this.context.options.textFontSize),this.builder.heightOfString(`${t}${r}`,{align:"center",width:c})}};var hs=class o{static{s(this,"Protocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}isProtocoled(e){return!!e}protocol(e){let t=this.context.protNFe;return this.isProtocoled(t)?this.protocoled(t.infProt,e):this.unprotocoled()}unprotocoled(){}metadata(e){let{nNF:t,serie:i,dhEmi:r}=this.context.data.infNFe.ide,n=t.padStart(9,"0"),a=i.padStart(3,"0"),{left:c,right:f}=this.builder.pageMargins(),{cUF:l}=this.context.data.infNFe.ide,m=Ss[l],g=Ns(r).tz(m).format("DD/MM/YYYY HH:mm:ss"),S=this.context.defaults.font,N=`${S}-Bold`;this.builder.row({left:e?.x??c,right:f},F=>this.builder.font(N).text(`NFC-e n\xBA ${n} - s\xE9rie ${a} emitida em: ${g}`,{...F,align:"center"}).font(S))}protocoled(e,t){let{dhRecbto:i,nProt:r}=e,{left:n,right:a}=this.builder.pageMargins(),{cUF:c}=this.context.data.infNFe.ide,f=Ss[c],l=r.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),m=Ns(i).tz(f).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??n,right:a},g=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${l}
|
|
17
|
+
Data de autoriza\xE7\xE3o: ${m}`,{...g,align:"center"}))}assemble(e){let{cMsg:t,xMsg:i}=this.context.protNFe?.infProt??{},{left:r,right:n}=this.builder.pageMargins();return i&&this.builder.row({left:e?.x??r,right:n},a=>this.builder.text(`$(${t}) ${i}`,{...a,align:"left"})),this.protocol(e)}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builder.moveDown(.5),this.metadata(e),this.assemble(e),this.builder}end(){o._instance=void 0}};var ms=class o{static{s(this,"AggregateRecipientToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[us.instance(this.context),hs.instance(this.context),di.instance(this.context)]}get builder(){return this.context.builder}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(e){return this.setup(),this.builders.forEach(t=>t.build(e)),this.builder}end(){o._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>t instanceof di?e:e+(t.height?.()??0),0)}};var pr=class o{static{s(this,"AggregateQrCodeToProtocols")}context;static _instance;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builders(){return[ls.instance(this.context),ms.instance(this.context)]}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}get builder(){return this.context.builder}async build(){this.setup();let e=this.builders[0],t=this.builders[1],{left:i,right:r}=this.builder.pageMargins(),n=this.builder.y();await e.build();let a=this.builder.y();this.builder.row({columns:2,left:i,right:r,size:[4,8]},()=>this.builder,S=>t.build(S));let c=e.height(),f=n+c,l=t.height(),m=a+l,g=Math.max(f,m);this.builder.y()<g&&this.builder.text("",{y:g}),this.builder.moveDown(.5);for(let S of this.builders.slice(2))await S.build();return this.builder}end(){o._instance=void 0,this.builders.forEach(e=>e.end())}height(){return this.setup(),this.builders.reduce((e,t)=>e+t.height(),0)}};var wg=.35277777777777775,sf=.75,Hl={"80mm":80/wg},gs="gerado por github.com/nfets/nfets";var dr=class o{static{s(this,"Footer")}context;static _instance;constants={vTotTrib:"Tributos Totais Incidentes (Lei Federal 12.741/2012): R$"};static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}vTotTrib(){let{vTotTrib:e}=this.context.data.infNFe.total.ICMSTot,{left:t,right:i}=this.builder.pageMargins(),r=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:i},n=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...n,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
|
|
18
|
+
`)??"").split(`
|
|
19
|
+
`).map(t=>t.trim().replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"")).filter(t=>t.length>0).join(`
|
|
20
|
+
`)}infCpl(){if(!this.infCplText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},i=>this.builder.text(this.infCplText,{...i,align:"center"}))}credits(){let e=this.context.options.credits;if(!e)return;this.builder.moveDown(.5);let{left:t,right:i}=this.builder.pageMargins();if(e===gs)return this.builder.row({left:t,right:i},r=>this.builder.text(e,{...r,link:"https://github.com/nfets/nfets",align:"center"}));this.builder.row({left:t,right:i},r=>this.builder.text(e,{...r,align:"center"}))}setup(){this.builder.font(this.context.defaults.font,this.context.options.textFontSize)}build(){return this.setup(),this.builder.moveDown(1),this.vTotTrib(),this.infCpl(),this.credits(),this.builder}end(){o._instance=void 0}height(){let e=this.context.options.credits;if(!this.infCplText&&!e)return 0;this.setup();let t=[],{left:i,right:r}=this.builder.pageMargins(),n=this.builder.pageWidth()-i-r;return this.infCplText&&t.push(this.builder.heightOfString(this.infCplText,{width:n,align:"center"})),e&&t.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(e,{width:n,align:"center"})),t.reduce((a,c)=>a+c,0)}};import{PassThrough as xg}from"stream";import zg from"pdfkit";var vs=class o{static{s(this,"PdfkitPdfBuilder")}defaults={autoFirstPage:!1};doc=new zg(this.defaults);constructor(e){e&&this.configure(e)}static new(e){return new o(e)}configure(e){return this.doc.options={...this.doc.options,...e},this}pipe(e){return this.doc.pipe(e),this}end(){return this.doc.end()}restore(){return this.doc.restore(),this}save(){return this.doc.save(),this}stroke(e){return this.doc.stroke(e),this}page(e){return this.doc.addPage(e),this}table(e){return this.doc.table(e),this}text(e,t){let{x:i,y:r,...n}=t??{};return i||r?(this.doc.text(e,i,r,n),this):(this.doc.text(e,t),this)}fontSize(e){return this.doc.fontSize(e),this}font(e,t,i){return typeof t=="string"?(this.doc.font(e,t,i),this):typeof t=="number"?(this.doc.font(e,t),this):(this.doc.font(e),this)}image(e,t,i,r){return typeof t=="number"&&typeof i=="number"?(this.doc.image(e,t,i,r),this):(this.doc.image(e,t),this)}rect(e,t,i,r){return this.doc.rect(e,t,i,r),this}path(e){return this.doc.path(e),this}translate(e,t){return this.doc.translate(e,t),this}scale(e,t){return this.doc.scale(e,t),this}fill(e,t){return this.doc.fill(e,t),this}pageWidth(){return this.doc.page.width}pageHeight(){return this.doc.page.height}heightOfString(e,t){return this.doc.heightOfString(e,t)}widthOfString(e,t){return this.doc.widthOfString(e,t)}pageMargins(){return this.doc.page.margins}currentLineHeight(e){return this.doc.currentLineHeight(e)}x(){return this.doc.x}y(){return this.doc.y}moveDown(e){return this.doc.moveDown(e),this}row(e,...t){let i,r;typeof e=="function"?(i={},r=[e,...t]):(i=e??{},r=t),i.columns??=1;let n=this.y(),a=i.right??0,c=i.left??0,f=i.gap??0,l=this.pageWidth(),m=l-c-a-f*(i.columns-1);i.size??=Array(i.columns).fill(12/i.columns);let g=[];for(let S=0;S<i.columns;S++){let N=i.size[S]/12;g[S]=m*N}for(let S=0,N=c;S<i.columns;S++){let F=S===i.columns-1,O=g[S];if(F&&i.columns>1){let At=l-a-N;At>0&&Math.abs(At-O)>.01&&(O=At)}let A={y:n,x:N,width:O};r[S](A),N+=O,f>0&&!F&&(N+=f)}return this}};var lr=class{static{s(this,"DanfcePdfDocument")}stream;builder;toolkit=new Kr;defaults={displayTitle:!0,font:"Helvetica",info:{Author:"nfets",Creator:"nfets",Keywords:"nfets, nfce, danfce, sefaz",Title:"Documento Auxiliar da Nota Fiscal do Consumidor Eletr\xF4nica",Subject:"DANFE NFC-e"}};options={width:"80mm",height:160,textFontSize:8*sf,titleFontSize:10*sf,credits:gs};constructor(e){this.stream=e,this.builder=vs.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let i=t(new xg);try{return i.builder.page(),await i.parse(e),i.height()}finally{i.end()}}height(){return this.builder.page(),this.builders.reduce((e,t)=>e+(t.height?.()??0),this.options.height)}apply(){this.builder.configure({size:[Hl[this.options.width],this.options.height],margins:{top:12,right:8,bottom:8,left:8},layout:"portrait"})}async parse(e){let t=await this.toolkit.parse(e);"protNFe"in t&&(this.protNFe=t.protNFe),"NFe"in t?this.data=t.NFe:this.data=t}async build(e){await this.parse(e),this.options.height=await this.getDynamicHeight(e,this.clone.bind(this)),this.apply(),this.builder.page();for(let t of this.builders)await t.build();return this}end(){return this.builder.end(),this.builders.map(e=>e.end()),void 0}currency(e,t=2){return new at(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}};var Ql=class o extends lr{static{s(this,"DanfceDefaultPdfDocument")}clone(e){return new o(e)}get builders(){return[kn.instance(this),di.instance(this),_n.instance(this),ka.instance(this),$n.instance(this),er.instance(this),tr.instance(this),pr.instance(this),dr.instance(this)]}};var Gl=class o extends lr{static{s(this,"DanfceReducedPdfDocument")}clone(e){return new o(e)}get builders(){return[kn.instance(this),di.instance(this),_n.instance(this),$n.instance(this),er.instance(this),tr.instance(this),pr.instance(this),dr.instance(this)]}};export{$e as a,hi as b,kr as c,_r as d,$r as e,ea as f,dt as g,va as h,Li as i,mn as j,Ef as k,Na as l,Tf as m,jf as n,Lf as o,Ds as p,zi as q,ke as r,K as s,Xa as t,pi as u,Ka as v,zp as w,Ql as x,Gl as y};
|