nfets 0.0.123 → 0.0.125

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,21 @@
1
1
  import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{d as bd}from"../chunk-24AGSZQQ.mjs";import{a as s,b as Ae,d as C,f as Dh}from"../chunk-W6MRGYXP.mjs";var wf=C((WP,hu)=>{"use strict";hu.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var wn=C(cr=>{"use strict";var Pf,my=[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];cr.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");cr.getSymbolTotalCodewords=s(function(e){return my[e]},"getSymbolTotalCodewords");cr.getBCHDigit=function(o){let e=0;for(;o!==0;)e++,o>>>=1;return e};cr.setToSJISFunction=s(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Pf=e},"setToSJISFunction");cr.isKanjiModeEnabled=function(){return typeof Pf<"u"};cr.toSJIS=s(function(e){return Pf(e)},"toSJIS")});var Bc=C(oo=>{"use strict";oo.L={bit:1};oo.M={bit:0};oo.Q={bit:3};oo.H={bit:2};function hy(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return oo.L;case"m":case"medium":return oo.M;case"q":case"quartile":return oo.Q;case"h":case"high":return oo.H;default:throw new Error("Unknown EC Level: "+o)}}s(hy,"fromString");oo.isValid=s(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");oo.from=s(function(e,t){if(oo.isValid(e))return e;try{return hy(e)}catch{return t}},"from")});var yu=C((tA,vu)=>{"use strict";function gu(){this.buffer=[],this.length=0}s(gu,"BitBuffer");gu.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")};vu.exports=gu});var Cu=C((iA,Su)=>{"use strict";function cs(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(cs,"BitMatrix");cs.prototype.set=function(o,e,t,n){let r=o*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};cs.prototype.get=function(o,e){return this.data[o*this.size+e]};cs.prototype.xor=function(o,e,t){this.data[o*this.size+e]^=t};cs.prototype.isReserved=function(o,e){return this.reservedBit[o*this.size+e]};Su.exports=cs});var bu=C(Vc=>{"use strict";var gy=wn().getSymbolSize;Vc.getRowColCoords=s(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=gy(e),r=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let a=1;a<t-1;a++)i[a]=i[a-1]-r;return i.push(6),i.reverse()},"getRowColCoords");Vc.getPositions=s(function(e){let t=[],n=Vc.getRowColCoords(e),r=n.length;for(let i=0;i<r;i++)for(let a=0;a<r;a++)i===0&&a===0||i===0&&a===r-1||i===r-1&&a===0||t.push([n[i],n[a]]);return t},"getPositions")});var Ru=C(Iu=>{"use strict";var vy=wn().getSymbolSize,Nu=7;Iu.getPositions=s(function(e){let t=vy(e);return[[0,0],[t-Nu,0],[0,t-Nu]]},"getPositions")});var Fu=C(K=>{"use strict";K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var pr={N1:3,N2:3,N3:40,N4:10};K.isValid=s(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");K.from=s(function(e){return K.isValid(e)?parseInt(e,10):void 0},"from");K.getPenaltyN1=s(function(e){let t=e.size,n=0,r=0,i=0,a=null,c=null;for(let p=0;p<t;p++){r=i=0,a=c=null;for(let u=0;u<t;u++){let h=e.get(p,u);h===a?r++:(r>=5&&(n+=pr.N1+(r-5)),a=h,r=1),h=e.get(u,p),h===c?i++:(i>=5&&(n+=pr.N1+(i-5)),c=h,i=1)}r>=5&&(n+=pr.N1+(r-5)),i>=5&&(n+=pr.N1+(i-5))}return n},"getPenaltyN1");K.getPenaltyN2=s(function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let a=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(a===4||a===0)&&n++}return n*pr.N2},"getPenaltyN2");K.getPenaltyN3=s(function(e){let t=e.size,n=0,r=0,i=0;for(let a=0;a<t;a++){r=i=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(a,c),c>=10&&(r===1488||r===93)&&n++,i=i<<1&2047|e.get(c,a),c>=10&&(i===1488||i===93)&&n++}return n*pr.N3},"getPenaltyN3");K.getPenaltyN4=s(function(e){let t=0,n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/n/5)-10)*pr.N4},"getPenaltyN4");function yy(o,e,t){switch(o){case K.Patterns.PATTERN000:return(e+t)%2===0;case K.Patterns.PATTERN001:return e%2===0;case K.Patterns.PATTERN010:return t%3===0;case K.Patterns.PATTERN011:return(e+t)%3===0;case K.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case K.Patterns.PATTERN101:return e*t%2+e*t%3===0;case K.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case K.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}s(yy,"getMaskAt");K.applyMask=s(function(e,t){let n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,yy(e,i,r))},"applyMask");K.getBestMask=s(function(e,t){let n=Object.keys(K.Patterns).length,r=0,i=1/0;for(let a=0;a<n;a++){t(a),K.applyMask(a,e);let c=K.getPenaltyN1(e)+K.getPenaltyN2(e)+K.getPenaltyN3(e)+K.getPenaltyN4(e);K.applyMask(a,e),c<i&&(i=c,r=a)}return r},"getBestMask")});var zf=C(Af=>{"use strict";var Pn=Bc(),Lc=[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],Hc=[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];Af.getBlocksCount=s(function(e,t){switch(t){case Pn.L:return Lc[(e-1)*4+0];case Pn.M:return Lc[(e-1)*4+1];case Pn.Q:return Lc[(e-1)*4+2];case Pn.H:return Lc[(e-1)*4+3];default:return}},"getBlocksCount");Af.getTotalCodewordsCount=s(function(e,t){switch(t){case Pn.L:return Hc[(e-1)*4+0];case Pn.M:return Hc[(e-1)*4+1];case Pn.Q:return Hc[(e-1)*4+2];case Pn.H:return Hc[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var xu=C(qc=>{"use strict";var ps=new Uint8Array(512),Qc=new Uint8Array(256);s((function(){let e=1;for(let t=0;t<255;t++)ps[t]=e,Qc[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)ps[t]=ps[t-255]}),"initTables")();qc.log=s(function(e){if(e<1)throw new Error("log("+e+")");return Qc[e]},"log");qc.exp=s(function(e){return ps[e]},"exp");qc.mul=s(function(e,t){return e===0||t===0?0:ps[Qc[e]+Qc[t]]},"mul")});var Ou=C(fs=>{"use strict";var Ef=xu();fs.mul=s(function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]^=Ef.mul(e[r],t[i]);return n},"mul");fs.mod=s(function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let r=n[0];for(let a=0;a<t.length;a++)n[a]^=Ef.mul(t[a],r);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n},"mod");fs.generateECPolynomial=s(function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=fs.mul(t,new Uint8Array([1,Ef.exp(n)]));return t},"generateECPolynomial")});var Pu=C((vA,wu)=>{"use strict";var Du=Ou();function jf(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}s(jf,"ReedSolomonEncoder");jf.prototype.initialize=s(function(e){this.degree=e,this.genPoly=Du.generateECPolynomial(this.degree)},"initialize");jf.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 n=Du.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let i=new Uint8Array(this.degree);return i.set(n,r),i}return n},"encode");wu.exports=jf});var Tf=C(Au=>{"use strict";Au.isValid=s(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var Mf=C(Wi=>{"use strict";var zu="[0-9]+",Sy="[A-Z $%*+\\-./:]+",ds="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ds=ds.replace(/u/g,"\\u");var Cy="(?:(?![A-Z0-9 $%*+\\-./:]|"+ds+`)(?:.|[\r
3
- ]))+`;Wi.KANJI=new RegExp(ds,"g");Wi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Wi.BYTE=new RegExp(Cy,"g");Wi.NUMERIC=new RegExp(zu,"g");Wi.ALPHANUMERIC=new RegExp(Sy,"g");var by=new RegExp("^"+ds+"$"),Ny=new RegExp("^"+zu+"$"),Iy=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Wi.testKanji=s(function(e){return by.test(e)},"testKanji");Wi.testNumeric=s(function(e){return Ny.test(e)},"testNumeric");Wi.testAlphanumeric=s(function(e){return Iy.test(e)},"testAlphanumeric")});var An=C(Pe=>{"use strict";var Ry=Tf(),Bf=Mf();Pe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Pe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Pe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Pe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Pe.MIXED={bit:-1};Pe.getCharCountIndicator=s(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!Ry.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");Pe.getBestModeForData=s(function(e){return Bf.testNumeric(e)?Pe.NUMERIC:Bf.testAlphanumeric(e)?Pe.ALPHANUMERIC:Bf.testKanji(e)?Pe.KANJI:Pe.BYTE},"getBestModeForData");Pe.toString=s(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");Pe.isValid=s(function(e){return e&&e.bit&&e.ccBits},"isValid");function Fy(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return Pe.NUMERIC;case"alphanumeric":return Pe.ALPHANUMERIC;case"kanji":return Pe.KANJI;case"byte":return Pe.BYTE;default:throw new Error("Unknown mode: "+o)}}s(Fy,"fromString");Pe.from=s(function(e,t){if(Pe.isValid(e))return e;try{return Fy(e)}catch{return t}},"from")});var Bu=C(fr=>{"use strict";var Uc=wn(),xy=zf(),Eu=Bc(),zn=An(),Vf=Tf(),Tu=7973,ju=Uc.getBCHDigit(Tu);function Oy(o,e,t){for(let n=1;n<=40;n++)if(e<=fr.getCapacity(n,t,o))return n}s(Oy,"getBestVersionForDataLength");function Mu(o,e){return zn.getCharCountIndicator(o,e)+4}s(Mu,"getReservedBitsCount");function Dy(o,e){let t=0;return o.forEach(function(n){let r=Mu(n.mode,e);t+=r+n.getBitsLength()}),t}s(Dy,"getTotalBitsFromDataArray");function wy(o,e){for(let t=1;t<=40;t++)if(Dy(o,t)<=fr.getCapacity(t,e,zn.MIXED))return t}s(wy,"getBestVersionForMixedData");fr.from=s(function(e,t){return Vf.isValid(e)?parseInt(e,10):t},"from");fr.getCapacity=s(function(e,t,n){if(!Vf.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=zn.BYTE);let r=Uc.getSymbolTotalCodewords(e),i=xy.getTotalCodewordsCount(e,t),a=(r-i)*8;if(n===zn.MIXED)return a;let c=a-Mu(n,e);switch(n){case zn.NUMERIC:return Math.floor(c/10*3);case zn.ALPHANUMERIC:return Math.floor(c/11*2);case zn.KANJI:return Math.floor(c/13);case zn.BYTE:default:return Math.floor(c/8)}},"getCapacity");fr.getBestVersionForData=s(function(e,t){let n,r=Eu.from(t,Eu.M);if(Array.isArray(e)){if(e.length>1)return wy(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return Oy(n.mode,n.getLength(),r)},"getBestVersionForData");fr.getEncodedBits=s(function(e){if(!Vf.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;Uc.getBCHDigit(t)-ju>=0;)t^=Tu<<Uc.getBCHDigit(t)-ju;return e<<12|t},"getEncodedBits")});var Qu=C(Hu=>{"use strict";var Lf=wn(),Lu=1335,Py=21522,Vu=Lf.getBCHDigit(Lu);Hu.getEncodedBits=s(function(e,t){let n=e.bit<<3|t,r=n<<10;for(;Lf.getBCHDigit(r)-Vu>=0;)r^=Lu<<Lf.getBCHDigit(r)-Vu;return(n<<10|r)^Py},"getEncodedBits")});var Uu=C((wA,qu)=>{"use strict";var Ay=An();function da(o){this.mode=Ay.NUMERIC,this.data=o.toString()}s(da,"NumericData");da.getBitsLength=s(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");da.prototype.getLength=s(function(){return this.data.length},"getLength");da.prototype.getBitsLength=s(function(){return da.getBitsLength(this.data.length)},"getBitsLength");da.prototype.write=s(function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},"write");qu.exports=da});var Zu=C((AA,Gu)=>{"use strict";var zy=An(),Hf=["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 la(o){this.mode=zy.ALPHANUMERIC,this.data=o}s(la,"AlphanumericData");la.getBitsLength=s(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");la.prototype.getLength=s(function(){return this.data.length},"getLength");la.prototype.getBitsLength=s(function(){return la.getBitsLength(this.data.length)},"getBitsLength");la.prototype.write=s(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Hf.indexOf(this.data[t])*45;n+=Hf.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Hf.indexOf(this.data[t]),6)},"write");Gu.exports=la});var Xu=C((EA,Yu)=>{"use strict";var Ey=An();function ua(o){this.mode=Ey.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}s(ua,"ByteData");ua.getBitsLength=s(function(e){return e*8},"getBitsLength");ua.prototype.getLength=s(function(){return this.data.length},"getLength");ua.prototype.getBitsLength=s(function(){return ua.getBitsLength(this.data.length)},"getBitsLength");ua.prototype.write=function(o){for(let e=0,t=this.data.length;e<t;e++)o.put(this.data[e],8)};Yu.exports=ua});var _u=C((TA,Ju)=>{"use strict";var jy=An(),Ty=wn();function ma(o){this.mode=jy.KANJI,this.data=o}s(ma,"KanjiData");ma.getBitsLength=s(function(e){return e*13},"getBitsLength");ma.prototype.getLength=s(function(){return this.data.length},"getLength");ma.prototype.getBitsLength=s(function(){return ma.getBitsLength(this.data.length)},"getBitsLength");ma.prototype.write=function(o){let e;for(e=0;e<this.data.length;e++){let t=Ty.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)}};Ju.exports=ma});var Wu=C((BA,Qf)=>{"use strict";var ls={single_source_shortest_paths:s(function(o,e,t){var n={},r={};r[e]=0;var i=ls.PriorityQueue.make();i.push(e,0);for(var a,c,p,u,h,g,v,y,R;!i.empty();){a=i.pop(),c=a.value,u=a.cost,h=o[c]||{};for(p in h)h.hasOwnProperty(p)&&(g=h[p],v=u+g,y=r[p],R=typeof r[p]>"u",(R||y>v)&&(r[p]=v,i.push(p,v),n[p]=c))}if(typeof t<"u"&&typeof r[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},"single_source_shortest_paths"),extract_shortest_path_from_predecessor_list:s(function(o,e){for(var t=[],n=e,r;n;)t.push(n),r=o[n],n=o[n];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:s(function(o,e,t){var n=ls.single_source_shortest_paths(o,e,t);return ls.extract_shortest_path_from_predecessor_list(n,t)},"find_path"),PriorityQueue:{make:s(function(o){var e=ls.PriorityQueue,t={},n;o=o||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);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 Qf<"u"&&(Qf.exports=ls)});var nm=C(ha=>{"use strict";var L=An(),$u=Uu(),em=Zu(),tm=Xu(),om=_u(),us=Mf(),Gc=wn(),My=Wu();function Ku(o){return unescape(encodeURIComponent(o)).length}s(Ku,"getStringByteLength");function ms(o,e,t){let n=[],r;for(;(r=o.exec(t))!==null;)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}s(ms,"getSegments");function im(o){let e=ms(us.NUMERIC,L.NUMERIC,o),t=ms(us.ALPHANUMERIC,L.ALPHANUMERIC,o),n,r;return Gc.isKanjiModeEnabled()?(n=ms(us.BYTE,L.BYTE,o),r=ms(us.KANJI,L.KANJI,o)):(n=ms(us.BYTE_KANJI,L.BYTE,o),r=[]),e.concat(t,n,r).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}s(im,"getSegmentsFromString");function qf(o,e){switch(e){case L.NUMERIC:return $u.getBitsLength(o);case L.ALPHANUMERIC:return em.getBitsLength(o);case L.KANJI:return om.getBitsLength(o);case L.BYTE:return tm.getBitsLength(o)}}s(qf,"getSegmentBitsLength");function By(o){return o.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}s(By,"mergeSegments");function Vy(o){let e=[];for(let t=0;t<o.length;t++){let n=o[t];switch(n.mode){case L.NUMERIC:e.push([n,{data:n.data,mode:L.ALPHANUMERIC,length:n.length},{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.ALPHANUMERIC:e.push([n,{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.KANJI:e.push([n,{data:n.data,mode:L.BYTE,length:Ku(n.data)}]);break;case L.BYTE:e.push([{data:n.data,mode:L.BYTE,length:Ku(n.data)}])}}return e}s(Vy,"buildNodes");function Ly(o,e){let t={},n={start:{}},r=["start"];for(let i=0;i<o.length;i++){let a=o[i],c=[];for(let p=0;p<a.length;p++){let u=a[p],h=""+i+p;c.push(h),t[h]={node:u,lastCount:0},n[h]={};for(let g=0;g<r.length;g++){let v=r[g];t[v]&&t[v].node.mode===u.mode?(n[v][h]=qf(t[v].lastCount+u.length,u.mode)-qf(t[v].lastCount,u.mode),t[v].lastCount+=u.length):(t[v]&&(t[v].lastCount=u.length),n[v][h]=qf(u.length,u.mode)+4+L.getCharCountIndicator(u.mode,e))}}r=c}for(let i=0;i<r.length;i++)n[r[i]].end=0;return{map:n,table:t}}s(Ly,"buildGraph");function ku(o,e){let t,n=L.getBestModeForData(o);if(t=L.from(e,n),t!==L.BYTE&&t.bit<n.bit)throw new Error('"'+o+'" cannot be encoded with mode '+L.toString(t)+`.
5
- Suggested mode is: `+L.toString(n));switch(t===L.KANJI&&!Gc.isKanjiModeEnabled()&&(t=L.BYTE),t){case L.NUMERIC:return new $u(o);case L.ALPHANUMERIC:return new em(o);case L.KANJI:return new om(o);case L.BYTE:return new tm(o)}}s(ku,"buildSingleSegment");ha.fromArray=s(function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(ku(n,null)):n.data&&t.push(ku(n.data,n.mode)),t},[])},"fromArray");ha.fromString=s(function(e,t){let n=im(e,Gc.isKanjiModeEnabled()),r=Vy(n),i=Ly(r,t),a=My.find_path(i.map,"start","end"),c=[];for(let p=1;p<a.length-1;p++)c.push(i.table[a[p]].node);return ha.fromArray(By(c))},"fromString");ha.rawSplit=s(function(e){return ha.fromArray(im(e,Gc.isKanjiModeEnabled()))},"rawSplit")});var Jf=C(rm=>{"use strict";var Yc=wn(),Uf=Bc(),Hy=yu(),Qy=Cu(),qy=bu(),Uy=Ru(),Yf=Fu(),Xf=zf(),Gy=Pu(),Zc=Bu(),Zy=Qu(),Yy=An(),Gf=nm();function Xy(o,e){let t=o.size,n=Uy.getPositions(e);for(let r=0;r<n.length;r++){let i=n[r][0],a=n[r][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||t<=i+c))for(let p=-1;p<=7;p++)a+p<=-1||t<=a+p||(c>=0&&c<=6&&(p===0||p===6)||p>=0&&p<=6&&(c===0||c===6)||c>=2&&c<=4&&p>=2&&p<=4?o.set(i+c,a+p,!0,!0):o.set(i+c,a+p,!1,!0))}}s(Xy,"setupFinderPattern");function Jy(o){let e=o.size;for(let t=8;t<e-8;t++){let n=t%2===0;o.set(t,6,n,!0),o.set(6,t,n,!0)}}s(Jy,"setupTimingPattern");function _y(o,e){let t=qy.getPositions(e);for(let n=0;n<t.length;n++){let r=t[n][0],i=t[n][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,i+c,!0,!0):o.set(r+a,i+c,!1,!0)}}s(_y,"setupAlignmentPattern");function Wy(o,e){let t=o.size,n=Zc.getEncodedBits(e),r,i,a;for(let c=0;c<18;c++)r=Math.floor(c/3),i=c%3+t-8-3,a=(n>>c&1)===1,o.set(r,i,a,!0),o.set(i,r,a,!0)}s(Wy,"setupVersionInfo");function Zf(o,e,t){let n=o.size,r=Zy.getEncodedBits(e,t),i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?o.set(i,8,a,!0):i<8?o.set(i+1,8,a,!0):o.set(n-15+i,8,a,!0),i<8?o.set(8,n-i-1,a,!0):i<9?o.set(8,15-i-1+1,a,!0):o.set(8,15-i-1,a,!0);o.set(n-8,8,1,!0)}s(Zf,"setupFormatInfo");function Ky(o,e){let t=o.size,n=-1,r=t-1,i=7,a=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let p=0;p<2;p++)if(!o.isReserved(r,c-p)){let u=!1;a<e.length&&(u=(e[a]>>>i&1)===1),o.set(r,c-p,u),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}s(Ky,"setupData");function ky(o,e,t){let n=new Hy;t.forEach(function(p){n.put(p.mode.bit,4),n.put(p.getLength(),Yy.getCharCountIndicator(p.mode,o)),p.write(n)});let r=Yc.getSymbolTotalCodewords(o),i=Xf.getTotalCodewordsCount(o,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let c=(a-n.getLengthInBits())/8;for(let p=0;p<c;p++)n.put(p%2?17:236,8);return $y(n,o,e)}s(ky,"createData");function $y(o,e,t){let n=Yc.getSymbolTotalCodewords(e),r=Xf.getTotalCodewordsCount(e,t),i=n-r,a=Xf.getBlocksCount(e,t),c=n%a,p=a-c,u=Math.floor(n/a),h=Math.floor(i/a),g=h+1,v=u-h,y=new Gy(v),R=0,E=new Array(a),D=new Array(a),j=0,ci=new Uint8Array(o.buffer);for(let mr=0;mr<a;mr++){let np=mr<p?h:g;E[mr]=ci.slice(R,R+np),D[mr]=y.encode(E[mr]),R+=np,j=Math.max(j,np)}let no=new Uint8Array(n),ot=0,Gt,pi;for(Gt=0;Gt<j;Gt++)for(pi=0;pi<a;pi++)Gt<E[pi].length&&(no[ot++]=E[pi][Gt]);for(Gt=0;Gt<v;Gt++)for(pi=0;pi<a;pi++)no[ot++]=D[pi][Gt];return no}s($y,"createCodewords");function e0(o,e,t,n){let r;if(Array.isArray(o))r=Gf.fromArray(o);else if(typeof o=="string"){let u=e;if(!u){let h=Gf.rawSplit(o);u=Zc.getBestVersionForData(h,t)}r=Gf.fromString(o,u||40)}else throw new Error("Invalid data");let i=Zc.getBestVersionForData(r,t);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
2
+ import{d as Rd}from"../chunk-24AGSZQQ.mjs";import{a as s,b as Ae,d as C,f as zh}from"../chunk-W6MRGYXP.mjs";var zp=C((gA,Su)=>{"use strict";Su.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var On=C(ar=>{"use strict";var Ep,Ny=[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];ar.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");ar.getSymbolTotalCodewords=s(function(e){return Ny[e]},"getSymbolTotalCodewords");ar.getBCHDigit=function(o){let e=0;for(;o!==0;)e++,o>>>=1;return e};ar.setToSJISFunction=s(function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Ep=e},"setToSJISFunction");ar.isKanjiModeEnabled=function(){return typeof Ep<"u"};ar.toSJIS=s(function(e){return Ep(e)},"toSJIS")});var Lc=C(no=>{"use strict";no.L={bit:1};no.M={bit:0};no.Q={bit:3};no.H={bit:2};function Iy(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"l":case"low":return no.L;case"m":case"medium":return no.M;case"q":case"quartile":return no.Q;case"h":case"high":return no.H;default:throw new Error("Unknown EC Level: "+o)}}s(Iy,"fromString");no.isValid=s(function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4},"isValid");no.from=s(function(e,t){if(no.isValid(e))return e;try{return Iy(e)}catch{return t}},"from")});var Nu=C((bA,bu)=>{"use strict";function Cu(){this.buffer=[],this.length=0}s(Cu,"BitBuffer");Cu.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")};bu.exports=Cu});var Ru=C((IA,Iu)=>{"use strict";function us(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(us,"BitMatrix");us.prototype.set=function(o,e,t,n){let r=o*this.size+e;this.data[r]=t,n&&(this.reservedBit[r]=!0)};us.prototype.get=function(o,e){return this.data[o*this.size+e]};us.prototype.xor=function(o,e,t){this.data[o*this.size+e]^=t};us.prototype.isReserved=function(o,e){return this.reservedBit[o*this.size+e]};Iu.exports=us});var Fu=C(Hc=>{"use strict";var Ry=On().getSymbolSize;Hc.getRowColCoords=s(function(e){if(e===1)return[];let t=Math.floor(e/7)+2,n=Ry(e),r=n===145?26:Math.ceil((n-13)/(2*t-2))*2,i=[n-7];for(let a=1;a<t-1;a++)i[a]=i[a-1]-r;return i.push(6),i.reverse()},"getRowColCoords");Hc.getPositions=s(function(e){let t=[],n=Hc.getRowColCoords(e),r=n.length;for(let i=0;i<r;i++)for(let a=0;a<r;a++)i===0&&a===0||i===0&&a===r-1||i===r-1&&a===0||t.push([n[i],n[a]]);return t},"getPositions")});var Du=C(Ou=>{"use strict";var Fy=On().getSymbolSize,xu=7;Ou.getPositions=s(function(e){let t=Fy(e);return[[0,0],[t-xu,0],[0,t-xu]]},"getPositions")});var wu=C(K=>{"use strict";K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var sr={N1:3,N2:3,N3:40,N4:10};K.isValid=s(function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7},"isValid");K.from=s(function(e){return K.isValid(e)?parseInt(e,10):void 0},"from");K.getPenaltyN1=s(function(e){let t=e.size,n=0,r=0,i=0,a=null,c=null;for(let f=0;f<t;f++){r=i=0,a=c=null;for(let u=0;u<t;u++){let h=e.get(f,u);h===a?r++:(r>=5&&(n+=sr.N1+(r-5)),a=h,r=1),h=e.get(u,f),h===c?i++:(i>=5&&(n+=sr.N1+(i-5)),c=h,i=1)}r>=5&&(n+=sr.N1+(r-5)),i>=5&&(n+=sr.N1+(i-5))}return n},"getPenaltyN1");K.getPenaltyN2=s(function(e){let t=e.size,n=0;for(let r=0;r<t-1;r++)for(let i=0;i<t-1;i++){let a=e.get(r,i)+e.get(r,i+1)+e.get(r+1,i)+e.get(r+1,i+1);(a===4||a===0)&&n++}return n*sr.N2},"getPenaltyN2");K.getPenaltyN3=s(function(e){let t=e.size,n=0,r=0,i=0;for(let a=0;a<t;a++){r=i=0;for(let c=0;c<t;c++)r=r<<1&2047|e.get(a,c),c>=10&&(r===1488||r===93)&&n++,i=i<<1&2047|e.get(c,a),c>=10&&(i===1488||i===93)&&n++}return n*sr.N3},"getPenaltyN3");K.getPenaltyN4=s(function(e){let t=0,n=e.data.length;for(let i=0;i<n;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/n/5)-10)*sr.N4},"getPenaltyN4");function xy(o,e,t){switch(o){case K.Patterns.PATTERN000:return(e+t)%2===0;case K.Patterns.PATTERN001:return e%2===0;case K.Patterns.PATTERN010:return t%3===0;case K.Patterns.PATTERN011:return(e+t)%3===0;case K.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case K.Patterns.PATTERN101:return e*t%2+e*t%3===0;case K.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case K.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}s(xy,"getMaskAt");K.applyMask=s(function(e,t){let n=t.size;for(let r=0;r<n;r++)for(let i=0;i<n;i++)t.isReserved(i,r)||t.xor(i,r,xy(e,i,r))},"applyMask");K.getBestMask=s(function(e,t){let n=Object.keys(K.Patterns).length,r=0,i=1/0;for(let a=0;a<n;a++){t(a),K.applyMask(a,e);let c=K.getPenaltyN1(e)+K.getPenaltyN2(e)+K.getPenaltyN3(e)+K.getPenaltyN4(e);K.applyMask(a,e),c<i&&(i=c,r=a)}return r},"getBestMask")});var Tp=C(jp=>{"use strict";var Dn=Lc(),Qc=[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],qc=[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];jp.getBlocksCount=s(function(e,t){switch(t){case Dn.L:return Qc[(e-1)*4+0];case Dn.M:return Qc[(e-1)*4+1];case Dn.Q:return Qc[(e-1)*4+2];case Dn.H:return Qc[(e-1)*4+3];default:return}},"getBlocksCount");jp.getTotalCodewordsCount=s(function(e,t){switch(t){case Dn.L:return qc[(e-1)*4+0];case Dn.M:return qc[(e-1)*4+1];case Dn.Q:return qc[(e-1)*4+2];case Dn.H:return qc[(e-1)*4+3];default:return}},"getTotalCodewordsCount")});var Pu=C(Gc=>{"use strict";var ms=new Uint8Array(512),Uc=new Uint8Array(256);s((function(){let e=1;for(let t=0;t<255;t++)ms[t]=e,Uc[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)ms[t]=ms[t-255]}),"initTables")();Gc.log=s(function(e){if(e<1)throw new Error("log("+e+")");return Uc[e]},"log");Gc.exp=s(function(e){return ms[e]},"exp");Gc.mul=s(function(e,t){return e===0||t===0?0:ms[Uc[e]+Uc[t]]},"mul")});var Au=C(hs=>{"use strict";var Mp=Pu();hs.mul=s(function(e,t){let n=new Uint8Array(e.length+t.length-1);for(let r=0;r<e.length;r++)for(let i=0;i<t.length;i++)n[r+i]^=Mp.mul(e[r],t[i]);return n},"mul");hs.mod=s(function(e,t){let n=new Uint8Array(e);for(;n.length-t.length>=0;){let r=n[0];for(let a=0;a<t.length;a++)n[a]^=Mp.mul(t[a],r);let i=0;for(;i<n.length&&n[i]===0;)i++;n=n.slice(i)}return n},"mod");hs.generateECPolynomial=s(function(e){let t=new Uint8Array([1]);for(let n=0;n<e;n++)t=hs.mul(t,new Uint8Array([1,Mp.exp(n)]));return t},"generateECPolynomial")});var ju=C((BA,Eu)=>{"use strict";var zu=Au();function Bp(o){this.genPoly=void 0,this.degree=o,this.degree&&this.initialize(this.degree)}s(Bp,"ReedSolomonEncoder");Bp.prototype.initialize=s(function(e){this.degree=e,this.genPoly=zu.generateECPolynomial(this.degree)},"initialize");Bp.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 n=zu.mod(t,this.genPoly),r=this.degree-n.length;if(r>0){let i=new Uint8Array(this.degree);return i.set(n,r),i}return n},"encode");Eu.exports=Bp});var Vp=C(Tu=>{"use strict";Tu.isValid=s(function(e){return!isNaN(e)&&e>=1&&e<=40},"isValid")});var Lp=C(Wi=>{"use strict";var Mu="[0-9]+",Oy="[A-Z $%*+\\-./:]+",gs="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";gs=gs.replace(/u/g,"\\u");var Dy="(?:(?![A-Z0-9 $%*+\\-./:]|"+gs+`)(?:.|[\r
3
+ ]))+`;Wi.KANJI=new RegExp(gs,"g");Wi.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");Wi.BYTE=new RegExp(Dy,"g");Wi.NUMERIC=new RegExp(Mu,"g");Wi.ALPHANUMERIC=new RegExp(Oy,"g");var wy=new RegExp("^"+gs+"$"),Py=new RegExp("^"+Mu+"$"),Ay=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");Wi.testKanji=s(function(e){return wy.test(e)},"testKanji");Wi.testNumeric=s(function(e){return Py.test(e)},"testNumeric");Wi.testAlphanumeric=s(function(e){return Ay.test(e)},"testAlphanumeric")});var wn=C(Pe=>{"use strict";var zy=Vp(),Hp=Lp();Pe.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};Pe.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};Pe.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};Pe.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};Pe.MIXED={bit:-1};Pe.getCharCountIndicator=s(function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!zy.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");Pe.getBestModeForData=s(function(e){return Hp.testNumeric(e)?Pe.NUMERIC:Hp.testAlphanumeric(e)?Pe.ALPHANUMERIC:Hp.testKanji(e)?Pe.KANJI:Pe.BYTE},"getBestModeForData");Pe.toString=s(function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},"toString");Pe.isValid=s(function(e){return e&&e.bit&&e.ccBits},"isValid");function Ey(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return Pe.NUMERIC;case"alphanumeric":return Pe.ALPHANUMERIC;case"kanji":return Pe.KANJI;case"byte":return Pe.BYTE;default:throw new Error("Unknown mode: "+o)}}s(Ey,"fromString");Pe.from=s(function(e,t){if(Pe.isValid(e))return e;try{return Ey(e)}catch{return t}},"from")});var Qu=C(cr=>{"use strict";var Zc=On(),jy=Tp(),Bu=Lc(),Pn=wn(),Qp=Vp(),Lu=7973,Vu=Zc.getBCHDigit(Lu);function Ty(o,e,t){for(let n=1;n<=40;n++)if(e<=cr.getCapacity(n,t,o))return n}s(Ty,"getBestVersionForDataLength");function Hu(o,e){return Pn.getCharCountIndicator(o,e)+4}s(Hu,"getReservedBitsCount");function My(o,e){let t=0;return o.forEach(function(n){let r=Hu(n.mode,e);t+=r+n.getBitsLength()}),t}s(My,"getTotalBitsFromDataArray");function By(o,e){for(let t=1;t<=40;t++)if(My(o,t)<=cr.getCapacity(t,e,Pn.MIXED))return t}s(By,"getBestVersionForMixedData");cr.from=s(function(e,t){return Qp.isValid(e)?parseInt(e,10):t},"from");cr.getCapacity=s(function(e,t,n){if(!Qp.isValid(e))throw new Error("Invalid QR Code version");typeof n>"u"&&(n=Pn.BYTE);let r=Zc.getSymbolTotalCodewords(e),i=jy.getTotalCodewordsCount(e,t),a=(r-i)*8;if(n===Pn.MIXED)return a;let c=a-Hu(n,e);switch(n){case Pn.NUMERIC:return Math.floor(c/10*3);case Pn.ALPHANUMERIC:return Math.floor(c/11*2);case Pn.KANJI:return Math.floor(c/13);case Pn.BYTE:default:return Math.floor(c/8)}},"getCapacity");cr.getBestVersionForData=s(function(e,t){let n,r=Bu.from(t,Bu.M);if(Array.isArray(e)){if(e.length>1)return By(e,r);if(e.length===0)return 1;n=e[0]}else n=e;return Ty(n.mode,n.getLength(),r)},"getBestVersionForData");cr.getEncodedBits=s(function(e){if(!Qp.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;Zc.getBCHDigit(t)-Vu>=0;)t^=Lu<<Zc.getBCHDigit(t)-Vu;return e<<12|t},"getEncodedBits")});var Zu=C(Gu=>{"use strict";var qp=On(),Uu=1335,Vy=21522,qu=qp.getBCHDigit(Uu);Gu.getEncodedBits=s(function(e,t){let n=e.bit<<3|t,r=n<<10;for(;qp.getBCHDigit(r)-qu>=0;)r^=Uu<<qp.getBCHDigit(r)-qu;return(n<<10|r)^Vy},"getEncodedBits")});var Xu=C((_A,Yu)=>{"use strict";var Ly=wn();function ua(o){this.mode=Ly.NUMERIC,this.data=o.toString()}s(ua,"NumericData");ua.getBitsLength=s(function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},"getBitsLength");ua.prototype.getLength=s(function(){return this.data.length},"getLength");ua.prototype.getBitsLength=s(function(){return ua.getBitsLength(this.data.length)},"getBitsLength");ua.prototype.write=s(function(e){let t,n,r;for(t=0;t+3<=this.data.length;t+=3)n=this.data.substr(t,3),r=parseInt(n,10),e.put(r,10);let i=this.data.length-t;i>0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,i*3+1))},"write");Yu.exports=ua});var _u=C((KA,Ju)=>{"use strict";var Hy=wn(),Up=["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 ma(o){this.mode=Hy.ALPHANUMERIC,this.data=o}s(ma,"AlphanumericData");ma.getBitsLength=s(function(e){return 11*Math.floor(e/2)+6*(e%2)},"getBitsLength");ma.prototype.getLength=s(function(){return this.data.length},"getLength");ma.prototype.getBitsLength=s(function(){return ma.getBitsLength(this.data.length)},"getBitsLength");ma.prototype.write=s(function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let n=Up.indexOf(this.data[t])*45;n+=Up.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Up.indexOf(this.data[t]),6)},"write");Ju.exports=ma});var Ku=C(($A,Wu)=>{"use strict";var Qy=wn();function ha(o){this.mode=Qy.BYTE,typeof o=="string"?this.data=new TextEncoder().encode(o):this.data=new Uint8Array(o)}s(ha,"ByteData");ha.getBitsLength=s(function(e){return e*8},"getBitsLength");ha.prototype.getLength=s(function(){return this.data.length},"getLength");ha.prototype.getBitsLength=s(function(){return ha.getBitsLength(this.data.length)},"getBitsLength");ha.prototype.write=function(o){for(let e=0,t=this.data.length;e<t;e++)o.put(this.data[e],8)};Wu.exports=ha});var $u=C((tz,ku)=>{"use strict";var qy=wn(),Uy=On();function ga(o){this.mode=qy.KANJI,this.data=o}s(ga,"KanjiData");ga.getBitsLength=s(function(e){return e*13},"getBitsLength");ga.prototype.getLength=s(function(){return this.data.length},"getLength");ga.prototype.getBitsLength=s(function(){return ga.getBitsLength(this.data.length)},"getBitsLength");ga.prototype.write=function(o){let e;for(e=0;e<this.data.length;e++){let t=Uy.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)}};ku.exports=ga});var em=C((iz,Gp)=>{"use strict";var vs={single_source_shortest_paths:s(function(o,e,t){var n={},r={};r[e]=0;var i=vs.PriorityQueue.make();i.push(e,0);for(var a,c,f,u,h,g,v,y,R;!i.empty();){a=i.pop(),c=a.value,u=a.cost,h=o[c]||{};for(f in h)h.hasOwnProperty(f)&&(g=h[f],v=u+g,y=r[f],R=typeof r[f]>"u",(R||y>v)&&(r[f]=v,i.push(f,v),n[f]=c))}if(typeof t<"u"&&typeof r[t]>"u"){var E=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(E)}return n},"single_source_shortest_paths"),extract_shortest_path_from_predecessor_list:s(function(o,e){for(var t=[],n=e,r;n;)t.push(n),r=o[n],n=o[n];return t.reverse(),t},"extract_shortest_path_from_predecessor_list"),find_path:s(function(o,e,t){var n=vs.single_source_shortest_paths(o,e,t);return vs.extract_shortest_path_from_predecessor_list(n,t)},"find_path"),PriorityQueue:{make:s(function(o){var e=vs.PriorityQueue,t={},n;o=o||{};for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);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 Gp<"u"&&(Gp.exports=vs)});var cm=C(va=>{"use strict";var L=wn(),im=Xu(),nm=_u(),rm=Ku(),am=$u(),ys=Lp(),Yc=On(),Gy=em();function tm(o){return unescape(encodeURIComponent(o)).length}s(tm,"getStringByteLength");function Ss(o,e,t){let n=[],r;for(;(r=o.exec(t))!==null;)n.push({data:r[0],index:r.index,mode:e,length:r[0].length});return n}s(Ss,"getSegments");function sm(o){let e=Ss(ys.NUMERIC,L.NUMERIC,o),t=Ss(ys.ALPHANUMERIC,L.ALPHANUMERIC,o),n,r;return Yc.isKanjiModeEnabled()?(n=Ss(ys.BYTE,L.BYTE,o),r=Ss(ys.KANJI,L.KANJI,o)):(n=Ss(ys.BYTE_KANJI,L.BYTE,o),r=[]),e.concat(t,n,r).sort(function(a,c){return a.index-c.index}).map(function(a){return{data:a.data,mode:a.mode,length:a.length}})}s(sm,"getSegmentsFromString");function Zp(o,e){switch(e){case L.NUMERIC:return im.getBitsLength(o);case L.ALPHANUMERIC:return nm.getBitsLength(o);case L.KANJI:return am.getBitsLength(o);case L.BYTE:return rm.getBitsLength(o)}}s(Zp,"getSegmentBitsLength");function Zy(o){return o.reduce(function(e,t){let n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}s(Zy,"mergeSegments");function Yy(o){let e=[];for(let t=0;t<o.length;t++){let n=o[t];switch(n.mode){case L.NUMERIC:e.push([n,{data:n.data,mode:L.ALPHANUMERIC,length:n.length},{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.ALPHANUMERIC:e.push([n,{data:n.data,mode:L.BYTE,length:n.length}]);break;case L.KANJI:e.push([n,{data:n.data,mode:L.BYTE,length:tm(n.data)}]);break;case L.BYTE:e.push([{data:n.data,mode:L.BYTE,length:tm(n.data)}])}}return e}s(Yy,"buildNodes");function Xy(o,e){let t={},n={start:{}},r=["start"];for(let i=0;i<o.length;i++){let a=o[i],c=[];for(let f=0;f<a.length;f++){let u=a[f],h=""+i+f;c.push(h),t[h]={node:u,lastCount:0},n[h]={};for(let g=0;g<r.length;g++){let v=r[g];t[v]&&t[v].node.mode===u.mode?(n[v][h]=Zp(t[v].lastCount+u.length,u.mode)-Zp(t[v].lastCount,u.mode),t[v].lastCount+=u.length):(t[v]&&(t[v].lastCount=u.length),n[v][h]=Zp(u.length,u.mode)+4+L.getCharCountIndicator(u.mode,e))}}r=c}for(let i=0;i<r.length;i++)n[r[i]].end=0;return{map:n,table:t}}s(Xy,"buildGraph");function om(o,e){let t,n=L.getBestModeForData(o);if(t=L.from(e,n),t!==L.BYTE&&t.bit<n.bit)throw new Error('"'+o+'" cannot be encoded with mode '+L.toString(t)+`.
5
+ Suggested mode is: `+L.toString(n));switch(t===L.KANJI&&!Yc.isKanjiModeEnabled()&&(t=L.BYTE),t){case L.NUMERIC:return new im(o);case L.ALPHANUMERIC:return new nm(o);case L.KANJI:return new am(o);case L.BYTE:return new rm(o)}}s(om,"buildSingleSegment");va.fromArray=s(function(e){return e.reduce(function(t,n){return typeof n=="string"?t.push(om(n,null)):n.data&&t.push(om(n.data,n.mode)),t},[])},"fromArray");va.fromString=s(function(e,t){let n=sm(e,Yc.isKanjiModeEnabled()),r=Yy(n),i=Xy(r,t),a=Gy.find_path(i.map,"start","end"),c=[];for(let f=1;f<a.length-1;f++)c.push(i.table[a[f]].node);return va.fromArray(Zy(c))},"fromString");va.rawSplit=s(function(e){return va.fromArray(sm(e,Yc.isKanjiModeEnabled()))},"rawSplit")});var Kp=C(fm=>{"use strict";var Jc=On(),Yp=Lc(),Jy=Nu(),_y=Ru(),Wy=Fu(),Ky=Du(),_p=wu(),Wp=Tp(),ky=ju(),Xc=Qu(),$y=Zu(),e0=wn(),Xp=cm();function t0(o,e){let t=o.size,n=Ky.getPositions(e);for(let r=0;r<n.length;r++){let i=n[r][0],a=n[r][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||t<=i+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(i+c,a+f,!0,!0):o.set(i+c,a+f,!1,!0))}}s(t0,"setupFinderPattern");function o0(o){let e=o.size;for(let t=8;t<e-8;t++){let n=t%2===0;o.set(t,6,n,!0),o.set(6,t,n,!0)}}s(o0,"setupTimingPattern");function i0(o,e){let t=Wy.getPositions(e);for(let n=0;n<t.length;n++){let r=t[n][0],i=t[n][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,i+c,!0,!0):o.set(r+a,i+c,!1,!0)}}s(i0,"setupAlignmentPattern");function n0(o,e){let t=o.size,n=Xc.getEncodedBits(e),r,i,a;for(let c=0;c<18;c++)r=Math.floor(c/3),i=c%3+t-8-3,a=(n>>c&1)===1,o.set(r,i,a,!0),o.set(i,r,a,!0)}s(n0,"setupVersionInfo");function Jp(o,e,t){let n=o.size,r=$y.getEncodedBits(e,t),i,a;for(i=0;i<15;i++)a=(r>>i&1)===1,i<6?o.set(i,8,a,!0):i<8?o.set(i+1,8,a,!0):o.set(n-15+i,8,a,!0),i<8?o.set(8,n-i-1,a,!0):i<9?o.set(8,15-i-1+1,a,!0):o.set(8,15-i-1,a,!0);o.set(n-8,8,1,!0)}s(Jp,"setupFormatInfo");function r0(o,e){let t=o.size,n=-1,r=t-1,i=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 u=!1;a<e.length&&(u=(e[a]>>>i&1)===1),o.set(r,c-f,u),i--,i===-1&&(a++,i=7)}if(r+=n,r<0||t<=r){r-=n,n=-n;break}}}s(r0,"setupData");function a0(o,e,t){let n=new Jy;t.forEach(function(f){n.put(f.mode.bit,4),n.put(f.getLength(),e0.getCharCountIndicator(f.mode,o)),f.write(n)});let r=Jc.getSymbolTotalCodewords(o),i=Wp.getTotalCodewordsCount(o,e),a=(r-i)*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!==0;)n.putBit(0);let c=(a-n.getLengthInBits())/8;for(let f=0;f<c;f++)n.put(f%2?17:236,8);return s0(n,o,e)}s(a0,"createData");function s0(o,e,t){let n=Jc.getSymbolTotalCodewords(e),r=Wp.getTotalCodewordsCount(e,t),i=n-r,a=Wp.getBlocksCount(e,t),c=n%a,f=a-c,u=Math.floor(n/a),h=Math.floor(i/a),g=h+1,v=u-h,y=new ky(v),R=0,E=new Array(a),D=new Array(a),j=0,fi=new Uint8Array(o.buffer);for(let lr=0;lr<a;lr++){let sf=lr<f?h:g;E[lr]=fi.slice(R,R+sf),D[lr]=y.encode(E[lr]),R+=sf,j=Math.max(j,sf)}let ao=new Uint8Array(n),it=0,Zt,pi;for(Zt=0;Zt<j;Zt++)for(pi=0;pi<a;pi++)Zt<E[pi].length&&(ao[it++]=E[pi][Zt]);for(Zt=0;Zt<v;Zt++)for(pi=0;pi<a;pi++)ao[it++]=D[pi][Zt];return ao}s(s0,"createCodewords");function c0(o,e,t,n){let r;if(Array.isArray(o))r=Xp.fromArray(o);else if(typeof o=="string"){let u=e;if(!u){let h=Xp.rawSplit(o);u=Xc.getBestVersionForData(h,t)}r=Xp.fromString(o,u||40)}else throw new Error("Invalid data");let i=Xc.getBestVersionForData(r,t);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
6
6
  The chosen QR Code version cannot contain this amount of data.
7
7
  Minimum version required to store current data is: `+i+`.
8
- `);let a=ky(e,t,r),c=Yc.getSymbolSize(e),p=new Qy(c);return Xy(p,e),Jy(p),_y(p,e),Zf(p,t,0),e>=7&&Wy(p,e),Ky(p,a),isNaN(n)&&(n=Yf.getBestMask(p,Zf.bind(null,p,t))),Yf.applyMask(n,p),Zf(p,t,n),{modules:p,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}s(e0,"createSymbol");rm.create=s(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Uf.M,r,i;return typeof t<"u"&&(n=Uf.from(t.errorCorrectionLevel,Uf.M),r=Zc.from(t.version),i=Yf.from(t.maskPattern),t.toSJISFunc&&Yc.setToSJISFunction(t.toSJISFunc)),e0(e,r,n,i)},"create")});var _f=C((UA,sm)=>{"use strict";var t0=Ae("util"),am=Ae("stream"),Mo=sm.exports=function(){am.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};t0.inherits(Mo,am);Mo.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))};Mo.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};Mo.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()))};Mo.prototype.destroySoon=Mo.prototype.end;Mo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Mo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Mo.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))};Mo.prototype._processRead=function(o){this._reads.shift();let e=0,t=0,n=Buffer.alloc(o.length);for(;e<o.length;){let r=this._buffers[t++],i=Math.min(r.length,o.length-e);r.copy(n,e,0,i),e+=i,i!==r.length&&(this._buffers[--t]=r.slice(i))}t>0&&this._buffers.splice(0,t),this._buffered-=o.length,o.func.call(this,n)};Mo.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 Kf=C(Wf=>{"use strict";var En=[{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]}];Wf.getImagePasses=function(o,e){let t=[],n=o%8,r=e%8,i=(o-n)/8,a=(e-r)/8;for(let c=0;c<En.length;c++){let p=En[c],u=i*p.x.length,h=a*p.y.length;for(let g=0;g<p.x.length&&p.x[g]<n;g++)u++;for(let g=0;g<p.y.length&&p.y[g]<r;g++)h++;u>0&&h>0&&t.push({width:u,height:h,index:c})}return t};Wf.getInterlaceIterator=function(o){return function(e,t,n){let r=e%En[n].x.length,i=(e-r)/En[n].x.length*8+En[n].x[r],a=t%En[n].y.length,c=(t-a)/En[n].y.length*8+En[n].y[a];return i*4+c*o*4}}});var kf=C((ZA,cm)=>{"use strict";cm.exports=s(function(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),c=Math.abs(r-n);return i<=a&&i<=c?e:a<=c?t:n},"paethPredictor")});var $f=C((XA,fm)=>{"use strict";var o0=Kf(),i0=kf();function pm(o,e,t){let n=o*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}s(pm,"getByteWidth");var ga=fm.exports=function(o,e){let t=o.width,n=o.height,r=o.interlace,i=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=o0.getImagePasses(t,n);for(let p=0;p<c.length;p++)this._images.push({byteWidth:pm(c[p].width,i,a),height:c[p].height,lineIndex:0})}else this._images.push({byteWidth:pm(t,i,a),height:n,lineIndex:0});a===8?this._xComparison=i:a===16?this._xComparison=i*2:this._xComparison=1};ga.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};ga.prototype._unFilterType1=function(o,e,t){let n=this._xComparison,r=n-1;for(let i=0;i<t;i++){let a=o[1+i],c=i>r?e[i-n]:0;e[i]=a+c}};ga.prototype._unFilterType2=function(o,e,t){let n=this._lastLine;for(let r=0;r<t;r++){let i=o[1+r],a=n?n[r]:0;e[r]=i+a}};ga.prototype._unFilterType3=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],p=i?i[a]:0,u=a>r?e[a-n]:0,h=Math.floor((u+p)/2);e[a]=c+h}};ga.prototype._unFilterType4=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],p=i?i[a]:0,u=a>r?e[a-n]:0,h=a>r&&i?i[a-n]:0,g=i0(u,p,h);e[a]=c+g}};ga.prototype._reverseFilterLine=function(o){let e=o[0],t,n=this._images[this._imageIndex],r=n.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),n.lineIndex++,n.lineIndex>=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=t,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var um=C((_A,lm)=>{"use strict";var n0=Ae("util"),dm=_f(),r0=$f(),a0=lm.exports=function(o){dm.call(this);let e=[],t=this;this._filter=new r0(o,{read:this.read.bind(this),write:s(function(n){e.push(n)},"write"),complete:s(function(){t.emit("complete",Buffer.concat(e))},"complete")}),this._filter.start()};n0.inherits(a0,dm)});var va=C((KA,mm)=>{"use strict";mm.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 od=C((kA,hm)=>{"use strict";var ed=[];(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;ed[o]=e}})();var td=hm.exports=function(){this._crc=-1};td.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=ed[(this._crc^o[e])&255]^this._crc>>>8;return!0};td.prototype.crc32=function(){return this._crc^-1};td.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=ed[(e^o[t])&255]^e>>>8;return e^-1}});var id=C(($A,gm)=>{"use strict";var Be=va(),s0=od(),Ze=gm.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(){}};Ze.prototype.start=function(){this.read(Be.PNG_SIGNATURE.length,this._parseSignature.bind(this))};Ze.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))};Ze.prototype._parseChunkBegin=function(o){let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n="";for(let i=4;i<8;i++)n+=String.fromCharCode(o[i]);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 s0,this._crc.write(Buffer.from(n)),this._chunks[t])return this._chunks[t](e);if(!r){this.error(new Error("Unsupported critical chunk type "+n));return}this.read(e+4,this._skipChunk.bind(this))};Ze.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};Ze.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};Ze.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))};Ze.prototype._handleIHDR=function(o){this.read(o,this._parseIHDR.bind(this))};Ze.prototype._parseIHDR=function(o){this._crc.write(o);let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n=o[8],r=o[9],i=o[10],a=o[11],c=o[12];if(n!==8&&n!==4&&n!==2&&n!==1&&n!==16){this.error(new Error("Unsupported bit depth "+n));return}if(!(r in Be.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(i!==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 p=Be.COLORTYPE_TO_BPP_MAP[this._colorType];this._hasIHDR=!0,this.metadata({width:e,height:t,depth:n,interlace:!!c,palette:!!(r&Be.COLORTYPE_PALETTE),color:!!(r&Be.COLORTYPE_COLOR),alpha:!!(r&Be.COLORTYPE_ALPHA),bpp:p,colorType:r}),this._handleChunkEnd()};Ze.prototype._handlePLTE=function(o){this.read(o,this._parsePLTE.bind(this))};Ze.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()};Ze.prototype._handleTRNS=function(o){this.simpleTransparency(),this.read(o,this._parseTRNS.bind(this))};Ze.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()};Ze.prototype._handleGAMA=function(o){this.read(o,this._parseGAMA.bind(this))};Ze.prototype._parseGAMA=function(o){this._crc.write(o),this.gamma(o.readUInt32BE(0)/Be.GAMMA_DIVISION),this._handleChunkEnd()};Ze.prototype._handleIDAT=function(o){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-o,this._parseIDAT.bind(this,o))};Ze.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()};Ze.prototype._handleIEND=function(o){this.read(o,this._parseIEND.bind(this))};Ze.prototype._parseIEND=function(o){this._crc.write(o),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var nd=C(ym=>{"use strict";var vm=Kf(),c0=[function(){},function(o,e,t,n){if(n===e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=255},function(o,e,t,n){if(n+1>=e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=e[n+1]},function(o,e,t,n){if(n+2>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=255},function(o,e,t,n){if(n+3>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=e[n+3]}],p0=[function(){},function(o,e,t,n){let r=e[0];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=n},function(o,e,t){let n=e[0];o[t]=n,o[t+1]=n,o[t+2]=n,o[t+3]=e[1]},function(o,e,t,n){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=n},function(o,e,t){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=e[3]}];function f0(o,e){let t=[],n=0;function r(){if(n===o.length)throw new Error("Ran out of data");let i=o[n];n++;let a,c,p,u,h,g,v,y;switch(e){default:throw new Error("unrecognised depth");case 16:v=o[n],n++,t.push((i<<8)+v);break;case 4:v=i&15,y=i>>4,t.push(y,v);break;case 2:h=i&3,g=i>>2&3,v=i>>4&3,y=i>>6&3,t.push(y,v,g,h);break;case 1:a=i&1,c=i>>1&1,p=i>>2&1,u=i>>3&1,h=i>>4&1,g=i>>5&1,v=i>>6&1,y=i>>7&1,t.push(y,v,g,h,u,p,c,a);break}}return s(r,"split"),{get:s(function(i){for(;t.length<i;)r();let a=t.slice(0,i);return t=t.slice(i),a},"get"),resetAfterLine:s(function(){t.length=0},"resetAfterLine"),end:s(function(){if(n!==o.length)throw new Error("extra data found")},"end")}}s(f0,"bitRetriever");function d0(o,e,t,n,r,i){let a=o.width,c=o.height,p=o.index;for(let u=0;u<c;u++)for(let h=0;h<a;h++){let g=t(h,u,p);c0[n](e,r,g,i),i+=n}return i}s(d0,"mapImage8Bit");function l0(o,e,t,n,r,i){let a=o.width,c=o.height,p=o.index;for(let u=0;u<c;u++){for(let h=0;h<a;h++){let g=r.get(n),v=t(h,u,p);p0[n](e,g,v,i)}r.resetAfterLine()}}s(l0,"mapImageCustomBit");ym.dataToBitMap=function(o,e){let t=e.width,n=e.height,r=e.depth,i=e.bpp,a=e.interlace,c;r!==8&&(c=f0(o,r));let p;r<=8?p=Buffer.alloc(t*n*4):p=new Uint16Array(t*n*4);let u=Math.pow(2,r)-1,h=0,g,v;if(a)g=vm.getImagePasses(t,n),v=vm.getInterlaceIterator(t,n);else{let y=0;v=s(function(){let R=y;return y+=4,R},"getPxPos"),g=[{width:t,height:n}]}for(let y=0;y<g.length;y++)r===8?h=d0(g[y],p,v,i,o,h):l0(g[y],p,v,i,c,u);if(r===8){if(h!==o.length)throw new Error("extra data found")}else c.end();return p}});var rd=C((oz,Sm)=>{"use strict";function u0(o,e,t,n,r){let i=0;for(let a=0;a<n;a++)for(let c=0;c<t;c++){let p=r[o[i]];if(!p)throw new Error("index "+o[i]+" not in palette");for(let u=0;u<4;u++)e[i+u]=p[u];i+=4}}s(u0,"dePalette");function m0(o,e,t,n,r){let i=0;for(let a=0;a<n;a++)for(let c=0;c<t;c++){let p=!1;if(r.length===1?r[0]===o[i]&&(p=!0):r[0]===o[i]&&r[1]===o[i+1]&&r[2]===o[i+2]&&(p=!0),p)for(let u=0;u<4;u++)e[i+u]=0;i+=4}}s(m0,"replaceTransparentColor");function h0(o,e,t,n,r){let i=255,a=Math.pow(2,r)-1,c=0;for(let p=0;p<n;p++)for(let u=0;u<t;u++){for(let h=0;h<4;h++)e[c+h]=Math.floor(o[c+h]*i/a+.5);c+=4}}s(h0,"scaleDepth");Sm.exports=function(o,e){let t=e.depth,n=e.width,r=e.height,i=e.colorType,a=e.transColor,c=e.palette,p=o;return i===3?u0(o,p,n,r,c):(a&&m0(o,p,n,r,a),t!==8&&(t===16&&(p=Buffer.alloc(n*r*4)),h0(o,p,n,r,t))),p}});var Nm=C((nz,bm)=>{"use strict";var g0=Ae("util"),ad=Ae("zlib"),Cm=_f(),v0=um(),y0=id(),S0=nd(),C0=rd(),ai=bm.exports=function(o){Cm.call(this),this._parser=new y0(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()};g0.inherits(ai,Cm);ai.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};ai.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=ad.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,n=Math.max(t,ad.Z_MIN_CHUNK);this._inflate=ad.createInflate({chunkSize:n});let r=t,i=this.emit.bind(this,"error");this._inflate.on("error",function(c){r&&i(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)};ai.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new v0(this._bitmapInfo)};ai.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};ai.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};ai.prototype._simpleTransparency=function(){this._metaData.alpha=!0};ai.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};ai.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};ai.prototype._complete=function(o){if(this.errord)return;let e;try{let t=S0.dataToBitMap(o,this._bitmapInfo);e=C0(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Rm=C((rz,Im)=>{"use strict";var io=va();Im.exports=function(o,e,t,n){let r=[io.COLORTYPE_COLOR_ALPHA,io.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let R=(function(){let E=new ArrayBuffer(2);return new DataView(E).setInt16(0,256,!0),new Int16Array(E)[0]!==256})();if(n.bitDepth===8||n.bitDepth===16&&R)return o}let i=n.bitDepth!==16?o:new Uint16Array(o.buffer),a=255,c=io.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let p=io.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(a=65535,p*=2);let u=Buffer.alloc(e*t*p),h=0,g=0,v=n.bgColor||{};v.red===void 0&&(v.red=a),v.green===void 0&&(v.green=a),v.blue===void 0&&(v.blue=a);function y(){let R,E,D,j=a;switch(n.inputColorType){case io.COLORTYPE_COLOR_ALPHA:j=i[h+3],R=i[h],E=i[h+1],D=i[h+2];break;case io.COLORTYPE_COLOR:R=i[h],E=i[h+1],D=i[h+2];break;case io.COLORTYPE_ALPHA:j=i[h+1],R=i[h],E=R,D=R;break;case io.COLORTYPE_GRAYSCALE:R=i[h],E=R,D=R;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(r||(j/=a,R=Math.min(Math.max(Math.round((1-j)*v.red+j*R),0),a),E=Math.min(Math.max(Math.round((1-j)*v.green+j*E),0),a),D=Math.min(Math.max(Math.round((1-j)*v.blue+j*D),0),a))),{red:R,green:E,blue:D,alpha:j}}s(y,"getRGBA");for(let R=0;R<t;R++)for(let E=0;E<e;E++){let D=y(i,h);switch(n.colorType){case io.COLORTYPE_COLOR_ALPHA:case io.COLORTYPE_COLOR:n.bitDepth===8?(u[g]=D.red,u[g+1]=D.green,u[g+2]=D.blue,r&&(u[g+3]=D.alpha)):(u.writeUInt16BE(D.red,g),u.writeUInt16BE(D.green,g+2),u.writeUInt16BE(D.blue,g+4),r&&u.writeUInt16BE(D.alpha,g+6));break;case io.COLORTYPE_ALPHA:case io.COLORTYPE_GRAYSCALE:{let j=(D.red+D.green+D.blue)/3;n.bitDepth===8?(u[g]=j,r&&(u[g+1]=D.alpha)):(u.writeUInt16BE(j,g),r&&u.writeUInt16BE(D.alpha,g+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}h+=c,g+=p}return u}});var Om=C((sz,xm)=>{"use strict";var Fm=kf();function b0(o,e,t,n,r){for(let i=0;i<t;i++)n[r+i]=o[e+i]}s(b0,"filterNone");function N0(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++)n+=Math.abs(o[i]);return n}s(N0,"filterSumNone");function I0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,p=o[e+a]-c;n[r+a]=p}}s(I0,"filterSub");function R0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=o[e+i]-a;r+=Math.abs(c)}return r}s(R0,"filterSumSub");function F0(o,e,t,n,r){for(let i=0;i<t;i++){let a=e>0?o[e+i-t]:0,c=o[e+i]-a;n[r+i]=c}}s(F0,"filterUp");function x0(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++){let a=e>0?o[i-t]:0,c=o[i]-a;n+=Math.abs(c)}return n}s(x0,"filterSumUp");function O0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,p=e>0?o[e+a-t]:0,u=o[e+a]-(c+p>>1);n[r+a]=u}}s(O0,"filterAvg");function D0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,p=o[e+i]-(a+c>>1);r+=Math.abs(p)}return r}s(D0,"filterSumAvg");function w0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,p=e>0?o[e+a-t]:0,u=e>0&&a>=i?o[e+a-(t+i)]:0,h=o[e+a]-Fm(c,p,u);n[r+a]=h}}s(w0,"filterPaeth");function P0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,p=e>0&&i>=n?o[e+i-(t+n)]:0,u=o[e+i]-Fm(a,c,p);r+=Math.abs(u)}return r}s(P0,"filterSumPaeth");var A0={0:b0,1:I0,2:F0,3:O0,4:w0},z0={0:N0,1:R0,2:x0,3:D0,4:P0};xm.exports=function(o,e,t,n,r){let i;if(!("filterType"in n)||n.filterType===-1)i=[0,1,2,3,4];else if(typeof n.filterType=="number")i=[n.filterType];else throw new Error("unrecognised filter types");n.bitDepth===16&&(r*=2);let a=e*r,c=0,p=0,u=Buffer.alloc((a+1)*t),h=i[0];for(let g=0;g<t;g++){if(i.length>1){let v=1/0;for(let y=0;y<i.length;y++){let R=z0[i[y]](o,p,a,r);R<v&&(h=i[y],v=R)}}u[c]=h,c++,A0[h](o,p,a,u,c,r),c+=a,p+=a}return u}});var sd=C((pz,Dm)=>{"use strict";var vt=va(),E0=od(),j0=Rm(),T0=Om(),M0=Ae("zlib"),jn=Dm.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||M0.createDeflate,o.bitDepth=o.bitDepth||8,o.colorType=typeof o.colorType=="number"?o.colorType:vt.COLORTYPE_COLOR_ALPHA,o.inputColorType=typeof o.inputColorType=="number"?o.inputColorType:vt.COLORTYPE_COLOR_ALPHA,[vt.COLORTYPE_GRAYSCALE,vt.COLORTYPE_COLOR,vt.COLORTYPE_COLOR_ALPHA,vt.COLORTYPE_ALPHA].indexOf(o.colorType)===-1)throw new Error("option color type:"+o.colorType+" is not supported at present");if([vt.COLORTYPE_GRAYSCALE,vt.COLORTYPE_COLOR,vt.COLORTYPE_COLOR_ALPHA,vt.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")};jn.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};jn.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};jn.prototype.filterData=function(o,e,t){let n=j0(o,e,t,this._options),r=vt.COLORTYPE_TO_BPP_MAP[this._options.colorType];return T0(n,e,t,this._options,r)};jn.prototype._packChunk=function(o,e){let t=e?e.length:0,n=Buffer.alloc(t+12);return n.writeUInt32BE(t,0),n.writeUInt32BE(o,4),e&&e.copy(n,8),n.writeInt32BE(E0.crc32(n.slice(4,n.length-4)),n.length-4),n};jn.prototype.packGAMA=function(o){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(o*vt.GAMMA_DIVISION),0),this._packChunk(vt.TYPE_gAMA,e)};jn.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(vt.TYPE_IHDR,t)};jn.prototype.packIDAT=function(o){return this._packChunk(vt.TYPE_IDAT,o)};jn.prototype.packIEND=function(){return this._packChunk(vt.TYPE_IEND,null)}});var zm=C((fz,Am)=>{"use strict";var B0=Ae("util"),wm=Ae("stream"),V0=va(),L0=sd(),Pm=Am.exports=function(o){wm.call(this);let e=o||{};this._packer=new L0(e),this._deflate=this._packer.createDeflate(),this.readable=!0};B0.inherits(Pm,wm);Pm.prototype.pack=function(o,e,t,n){this.emit("data",Buffer.from(V0.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),n&&this.emit("data",this._packer.packGAMA(n));let r=this._packer.filterData(o,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(i){this.emit("data",this._packer.packIDAT(i))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(r)}});var Vm=C((hs,Bm)=>{"use strict";var Em=Ae("assert").ok,ya=Ae("zlib"),H0=Ae("util"),jm=Ae("buffer").kMaxLength;function dr(o){if(!(this instanceof dr))return new dr(o);o&&o.chunkSize<ya.Z_MIN_CHUNK&&(o.chunkSize=ya.Z_MIN_CHUNK),ya.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(dr,"Inflate");function Q0(o){return new dr(o)}s(Q0,"createInflate");function Tm(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}s(Tm,"_close");dr.prototype._processChunk=function(o,e,t){if(typeof t=="function")return ya.Inflate._processChunk.call(this,o,e,t);let n=this,r=o&&o.length,i=this._chunkSize-this._offset,a=this._maxLength,c=0,p=[],u=0,h;this.on("error",function(R){h=R});function g(R,E){if(n._hadError)return;let D=i-E;if(Em(D>=0,"have should not go down"),D>0){let j=n._buffer.slice(n._offset,n._offset+D);if(n._offset+=D,j.length>a&&(j=j.slice(0,a)),p.push(j),u+=j.length,a-=j.length,a===0)return!1}return(E===0||n._offset>=n._chunkSize)&&(i=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),E===0?(c+=r-R,r=R,!0):!1}s(g,"handleChunk"),Em(this._handle,"zlib binding closed");let v;do v=this._handle.writeSync(e,o,c,r,this._buffer,this._offset,i),v=v||this._writeState;while(!this._hadError&&g(v[0],v[1]));if(this._hadError)throw h;if(u>=jm)throw Tm(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+jm.toString(16)+" bytes");let y=Buffer.concat(p,u);return Tm(this),y};H0.inherits(dr,ya.Inflate);function q0(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=ya.Z_FINISH),o._processChunk(e,t)}s(q0,"zlibBufferSync");function Mm(o,e){return q0(new dr(e),o)}s(Mm,"inflateSync");Bm.exports=hs=Mm;hs.Inflate=dr;hs.createInflate=Q0;hs.inflateSync=Mm});var cd=C((lz,Hm)=>{"use strict";var Lm=Hm.exports=function(o){this._buffer=o,this._reads=[]};Lm.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};Lm.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 qm=C(Qm=>{"use strict";var U0=cd(),G0=$f();Qm.process=function(o,e){let t=[],n=new U0(o);return new G0(e,{read:n.read.bind(n),write:s(function(i){t.push(i)},"write"),complete:s(function(){},"complete")}).start(),n.process(),Buffer.concat(t)}});var Ym=C((hz,Zm)=>{"use strict";var Um=!0,Gm=Ae("zlib"),Z0=Vm();Gm.deflateSync||(Um=!1);var Y0=cd(),X0=qm(),J0=id(),_0=nd(),W0=rd();Zm.exports=function(o,e){if(!Um)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 n(ot){t=ot}s(n,"handleError");let r;function i(ot){r=ot}s(i,"handleMetaData");function a(ot){r.transColor=ot}s(a,"handleTransColor");function c(ot){r.palette=ot}s(c,"handlePalette");function p(){r.alpha=!0}s(p,"handleSimpleTransparency");let u;function h(ot){u=ot}s(h,"handleGamma");let g=[];function v(ot){g.push(ot)}s(v,"handleInflateData");let y=new Y0(o);if(new J0(e,{read:y.read.bind(y),error:n,metadata:i,gamma:h,palette:c,transColor:a,inflateData:v,simpleTransparency:p}).start(),y.process(),t)throw t;let E=Buffer.concat(g);g.length=0;let D;if(r.interlace)D=Gm.inflateSync(E);else{let Gt=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;D=Z0(E,{chunkSize:Gt,maxLength:Gt})}if(E=null,!D||!D.length)throw new Error("bad png - invalid inflate data response");let j=X0.process(D,r);E=null;let ci=_0.dataToBitMap(j,r);j=null;let no=W0(ci,r);return r.data=no,r.gamma=u||0,r}});var Wm=C((vz,_m)=>{"use strict";var Xm=!0,Jm=Ae("zlib");Jm.deflateSync||(Xm=!1);var K0=va(),k0=sd();_m.exports=function(o,e){if(!Xm)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||{},n=new k0(t),r=[];r.push(Buffer.from(K0.PNG_SIGNATURE)),r.push(n.packIHDR(o.width,o.height)),o.gamma&&r.push(n.packGAMA(o.gamma));let i=n.filterData(o.data,o.width,o.height),a=Jm.deflateSync(i,n.getDeflateOptions());if(i=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return r.push(n.packIDAT(a)),r.push(n.packIEND()),Buffer.concat(r)}});var Km=C(pd=>{"use strict";var $0=Ym(),eS=Wm();pd.read=function(o,e){return $0(o,e||{})};pd.write=function(o,e){return eS(o,e)}});var eh=C($m=>{"use strict";var tS=Ae("util"),km=Ae("stream"),oS=Nm(),iS=zm(),nS=Km(),Ft=$m.PNG=function(o){km.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 oS(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 iS(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"))};tS.inherits(Ft,km);Ft.sync=nS;Ft.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)};Ft.prototype.parse=function(o,e){if(e){let t,n;t=(function(r){this.removeListener("error",n),this.data=r,e(null,this)}).bind(this),n=(function(r){this.removeListener("parsed",t),e(r,null)}).bind(this),this.once("parsed",t),this.once("error",n)}return this.end(o),this};Ft.prototype.write=function(o){return this._parser.write(o),!0};Ft.prototype.end=function(o){this._parser.end(o)};Ft.prototype._metadata=function(o){this.width=o.width,this.height=o.height,this.emit("metadata",o)};Ft.prototype._gamma=function(o){this.gamma=o};Ft.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};Ft.bitblt=function(o,e,t,n,r,i,a,c){if(t|=0,n|=0,r|=0,i|=0,a|=0,c|=0,t>o.width||n>o.height||t+r>o.width||n+i>o.height)throw new Error("bitblt reading outside image");if(a>e.width||c>e.height||a+r>e.width||c+i>e.height)throw new Error("bitblt writing outside image");for(let p=0;p<i;p++)o.data.copy(e.data,(c+p)*e.width+a<<2,(n+p)*o.width+t<<2,(n+p)*o.width+t+r<<2)};Ft.prototype.bitblt=function(o,e,t,n,r,i,a){return Ft.bitblt(this,o,e,t,n,r,i,a),this};Ft.adjustGamma=function(o){if(o.gamma){for(let e=0;e<o.height;e++)for(let t=0;t<o.width;t++){let n=o.width*e+t<<2;for(let r=0;r<3;r++){let i=o.data[n+r]/255;i=Math.pow(i,1/2.2/o.gamma),o.data[n+r]=Math.round(i*255)}}o.gamma=0}};Ft.prototype.adjustGamma=function(){Ft.adjustGamma(this)}});var gs=C(lr=>{"use strict";function th(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(n){return[n,n]}))),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(th,"hex2rgba");lr.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,n=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:n,scale:n?4:r,margin:t,color:{dark:th(e.color.dark||"#000000ff"),light:th(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");lr.getScale=s(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");lr.getImageWidth=s(function(e,t){let n=lr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");lr.qrToImageData=s(function(e,t,n){let r=t.modules.size,i=t.modules.data,a=lr.getScale(r,n),c=Math.floor((r+n.margin*2)*a),p=n.margin*a,u=[n.color.light,n.color.dark];for(let h=0;h<c;h++)for(let g=0;g<c;g++){let v=(h*c+g)*4,y=n.color.light;if(h>=p&&g>=p&&h<c-p&&g<c-p){let R=Math.floor((h-p)/a),E=Math.floor((g-p)/a);y=u[i[R*r+E]?1:0]}e[v++]=y.r,e[v++]=y.g,e[v++]=y.b,e[v]=y.a}},"qrToImageData")});var oh=C(si=>{"use strict";var rS=Ae("fs"),aS=eh().PNG,fd=gs();si.render=s(function(e,t){let n=fd.getOptions(t),r=n.rendererOpts,i=fd.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let a=new aS(r);return fd.qrToImageData(a.data,e,n),a},"render");si.renderToDataURL=s(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),si.renderToBuffer(e,t,function(r,i){r&&n(r);let a="data:image/png;base64,";a+=i.toString("base64"),n(null,a)})},"renderToDataURL");si.renderToBuffer=s(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=si.render(e,t),i=[];r.on("error",n),r.on("data",function(a){i.push(a)}),r.on("end",function(){n(null,Buffer.concat(i))}),r.pack()},"renderToBuffer");si.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=!1,a=s((...p)=>{i||(i=!0,r.apply(null,p))},"done"),c=rS.createWriteStream(e);c.on("error",a),c.on("close",a),si.renderToFileStream(c,t,n)},"renderToFile");si.renderToFileStream=s(function(e,t,n){si.render(t,n).pack().pipe(e)},"renderToFileStream")});var ih=C(Xc=>{"use strict";var sS=gs(),cS={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},pS={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function fS(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}s(fS,"getBlockChar");Xc.render=function(o,e,t){let n=sS.getOptions(e),r=cS;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=pS);let i=o.modules.size,a=o.modules.data,c="",p=Array(i+n.margin*2+1).join(r.WW);p=Array(n.margin/2+1).join(p+`
9
- `);let u=Array(n.margin+1).join(r.WW);c+=p;for(let h=0;h<i;h+=2){c+=u;for(let g=0;g<i;g++){let v=a[h*i+g],y=a[(h+1)*i+g];c+=fS(v,y,r)}c+=u+`
10
- `}return c+=p.slice(0,-1),typeof t=="function"&&t(null,c),c};Xc.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ae("fs"),a=Xc.render(t,n);i.writeFile(e,a,r)},"renderToFile")});var rh=C(nh=>{"use strict";nh.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i="\x1B[40m \x1B[0m",a="\x1B[47m \x1B[0m",c="",p=Array(n+3).join(a),u=Array(2).join(a);c+=p+`
8
+ `);let a=a0(e,t,r),c=Jc.getSymbolSize(e),f=new _y(c);return t0(f,e),o0(f),i0(f,e),Jp(f,t,0),e>=7&&n0(f,e),r0(f,a),isNaN(n)&&(n=_p.getBestMask(f,Jp.bind(null,f,t))),_p.applyMask(n,f),Jp(f,t,n),{modules:f,version:e,errorCorrectionLevel:t,maskPattern:n,segments:r}}s(c0,"createSymbol");fm.create=s(function(e,t){if(typeof e>"u"||e==="")throw new Error("No input text");let n=Yp.M,r,i;return typeof t<"u"&&(n=Yp.from(t.errorCorrectionLevel,Yp.M),r=Xc.from(t.version),i=_p.from(t.maskPattern),t.toSJISFunc&&Jc.setToSJISFunction(t.toSJISFunc)),c0(e,r,n,i)},"create")});var kp=C((fz,dm)=>{"use strict";var f0=Ae("util"),pm=Ae("stream"),Bo=dm.exports=function(){pm.call(this),this._buffers=[],this._buffered=0,this._reads=[],this._paused=!1,this._encoding="utf8",this.writable=!0};f0.inherits(Bo,pm);Bo.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))};Bo.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};Bo.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()))};Bo.prototype.destroySoon=Bo.prototype.end;Bo.prototype._end=function(){this._reads.length>0&&this.emit("error",new Error("Unexpected end of input")),this.destroy()};Bo.prototype.destroy=function(){this._buffers&&(this.writable=!1,this._reads=null,this._buffers=null,this.emit("close"))};Bo.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))};Bo.prototype._processRead=function(o){this._reads.shift();let e=0,t=0,n=Buffer.alloc(o.length);for(;e<o.length;){let r=this._buffers[t++],i=Math.min(r.length,o.length-e);r.copy(n,e,0,i),e+=i,i!==r.length&&(this._buffers[--t]=r.slice(i))}t>0&&this._buffers.splice(0,t),this._buffered-=o.length,o.func.call(this,n)};Bo.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 ed=C($p=>{"use strict";var An=[{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]}];$p.getImagePasses=function(o,e){let t=[],n=o%8,r=e%8,i=(o-n)/8,a=(e-r)/8;for(let c=0;c<An.length;c++){let f=An[c],u=i*f.x.length,h=a*f.y.length;for(let g=0;g<f.x.length&&f.x[g]<n;g++)u++;for(let g=0;g<f.y.length&&f.y[g]<r;g++)h++;u>0&&h>0&&t.push({width:u,height:h,index:c})}return t};$p.getInterlaceIterator=function(o){return function(e,t,n){let r=e%An[n].x.length,i=(e-r)/An[n].x.length*8+An[n].x[r],a=t%An[n].y.length,c=(t-a)/An[n].y.length*8+An[n].y[a];return i*4+c*o*4}}});var td=C((dz,lm)=>{"use strict";lm.exports=s(function(e,t,n){let r=e+t-n,i=Math.abs(r-e),a=Math.abs(r-t),c=Math.abs(r-n);return i<=a&&i<=c?e:a<=c?t:n},"paethPredictor")});var od=C((uz,mm)=>{"use strict";var p0=ed(),d0=td();function um(o,e,t){let n=o*e;return t!==8&&(n=Math.ceil(n/(8/t))),n}s(um,"getByteWidth");var ya=mm.exports=function(o,e){let t=o.width,n=o.height,r=o.interlace,i=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=p0.getImagePasses(t,n);for(let f=0;f<c.length;f++)this._images.push({byteWidth:um(c[f].width,i,a),height:c[f].height,lineIndex:0})}else this._images.push({byteWidth:um(t,i,a),height:n,lineIndex:0});a===8?this._xComparison=i:a===16?this._xComparison=i*2:this._xComparison=1};ya.prototype.start=function(){this.read(this._images[this._imageIndex].byteWidth+1,this._reverseFilterLine.bind(this))};ya.prototype._unFilterType1=function(o,e,t){let n=this._xComparison,r=n-1;for(let i=0;i<t;i++){let a=o[1+i],c=i>r?e[i-n]:0;e[i]=a+c}};ya.prototype._unFilterType2=function(o,e,t){let n=this._lastLine;for(let r=0;r<t;r++){let i=o[1+r],a=n?n[r]:0;e[r]=i+a}};ya.prototype._unFilterType3=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],f=i?i[a]:0,u=a>r?e[a-n]:0,h=Math.floor((u+f)/2);e[a]=c+h}};ya.prototype._unFilterType4=function(o,e,t){let n=this._xComparison,r=n-1,i=this._lastLine;for(let a=0;a<t;a++){let c=o[1+a],f=i?i[a]:0,u=a>r?e[a-n]:0,h=a>r&&i?i[a-n]:0,g=d0(u,f,h);e[a]=c+g}};ya.prototype._reverseFilterLine=function(o){let e=o[0],t,n=this._images[this._imageIndex],r=n.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),n.lineIndex++,n.lineIndex>=n.height?(this._lastLine=null,this._imageIndex++,n=this._images[this._imageIndex]):this._lastLine=t,n?this.read(n.byteWidth+1,this._reverseFilterLine.bind(this)):(this._lastLine=null,this.complete())}});var vm=C((hz,gm)=>{"use strict";var l0=Ae("util"),hm=kp(),u0=od(),m0=gm.exports=function(o){hm.call(this);let e=[],t=this;this._filter=new u0(o,{read:this.read.bind(this),write:s(function(n){e.push(n)},"write"),complete:s(function(){t.emit("complete",Buffer.concat(e))},"complete")}),this._filter.start()};l0.inherits(m0,hm)});var Sa=C((vz,ym)=>{"use strict";ym.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 rd=C((yz,Sm)=>{"use strict";var id=[];(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;id[o]=e}})();var nd=Sm.exports=function(){this._crc=-1};nd.prototype.write=function(o){for(let e=0;e<o.length;e++)this._crc=id[(this._crc^o[e])&255]^this._crc>>>8;return!0};nd.prototype.crc32=function(){return this._crc^-1};nd.crc32=function(o){let e=-1;for(let t=0;t<o.length;t++)e=id[(e^o[t])&255]^e>>>8;return e^-1}});var ad=C((Sz,Cm)=>{"use strict";var Be=Sa(),h0=rd(),Ye=Cm.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(){}};Ye.prototype.start=function(){this.read(Be.PNG_SIGNATURE.length,this._parseSignature.bind(this))};Ye.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))};Ye.prototype._parseChunkBegin=function(o){let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n="";for(let i=4;i<8;i++)n+=String.fromCharCode(o[i]);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 h0,this._crc.write(Buffer.from(n)),this._chunks[t])return this._chunks[t](e);if(!r){this.error(new Error("Unsupported critical chunk type "+n));return}this.read(e+4,this._skipChunk.bind(this))};Ye.prototype._skipChunk=function(){this.read(8,this._parseChunkBegin.bind(this))};Ye.prototype._handleChunkEnd=function(){this.read(4,this._parseChunkEnd.bind(this))};Ye.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))};Ye.prototype._handleIHDR=function(o){this.read(o,this._parseIHDR.bind(this))};Ye.prototype._parseIHDR=function(o){this._crc.write(o);let e=o.readUInt32BE(0),t=o.readUInt32BE(4),n=o[8],r=o[9],i=o[10],a=o[11],c=o[12];if(n!==8&&n!==4&&n!==2&&n!==1&&n!==16){this.error(new Error("Unsupported bit depth "+n));return}if(!(r in Be.COLORTYPE_TO_BPP_MAP)){this.error(new Error("Unsupported color type"));return}if(i!==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:n,interlace:!!c,palette:!!(r&Be.COLORTYPE_PALETTE),color:!!(r&Be.COLORTYPE_COLOR),alpha:!!(r&Be.COLORTYPE_ALPHA),bpp:f,colorType:r}),this._handleChunkEnd()};Ye.prototype._handlePLTE=function(o){this.read(o,this._parsePLTE.bind(this))};Ye.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()};Ye.prototype._handleTRNS=function(o){this.simpleTransparency(),this.read(o,this._parseTRNS.bind(this))};Ye.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()};Ye.prototype._handleGAMA=function(o){this.read(o,this._parseGAMA.bind(this))};Ye.prototype._parseGAMA=function(o){this._crc.write(o),this.gamma(o.readUInt32BE(0)/Be.GAMMA_DIVISION),this._handleChunkEnd()};Ye.prototype._handleIDAT=function(o){this._emittedHeadersFinished||(this._emittedHeadersFinished=!0,this.headersFinished()),this.read(-o,this._parseIDAT.bind(this,o))};Ye.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()};Ye.prototype._handleIEND=function(o){this.read(o,this._parseIEND.bind(this))};Ye.prototype._parseIEND=function(o){this._crc.write(o),this._hasIEND=!0,this._handleChunkEnd(),this.finished&&this.finished()}});var sd=C(Nm=>{"use strict";var bm=ed(),g0=[function(){},function(o,e,t,n){if(n===e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=255},function(o,e,t,n){if(n+1>=e.length)throw new Error("Ran out of data");let r=e[n];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=e[n+1]},function(o,e,t,n){if(n+2>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=255},function(o,e,t,n){if(n+3>=e.length)throw new Error("Ran out of data");o[t]=e[n],o[t+1]=e[n+1],o[t+2]=e[n+2],o[t+3]=e[n+3]}],v0=[function(){},function(o,e,t,n){let r=e[0];o[t]=r,o[t+1]=r,o[t+2]=r,o[t+3]=n},function(o,e,t){let n=e[0];o[t]=n,o[t+1]=n,o[t+2]=n,o[t+3]=e[1]},function(o,e,t,n){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=n},function(o,e,t){o[t]=e[0],o[t+1]=e[1],o[t+2]=e[2],o[t+3]=e[3]}];function y0(o,e){let t=[],n=0;function r(){if(n===o.length)throw new Error("Ran out of data");let i=o[n];n++;let a,c,f,u,h,g,v,y;switch(e){default:throw new Error("unrecognised depth");case 16:v=o[n],n++,t.push((i<<8)+v);break;case 4:v=i&15,y=i>>4,t.push(y,v);break;case 2:h=i&3,g=i>>2&3,v=i>>4&3,y=i>>6&3,t.push(y,v,g,h);break;case 1:a=i&1,c=i>>1&1,f=i>>2&1,u=i>>3&1,h=i>>4&1,g=i>>5&1,v=i>>6&1,y=i>>7&1,t.push(y,v,g,h,u,f,c,a);break}}return s(r,"split"),{get:s(function(i){for(;t.length<i;)r();let a=t.slice(0,i);return t=t.slice(i),a},"get"),resetAfterLine:s(function(){t.length=0},"resetAfterLine"),end:s(function(){if(n!==o.length)throw new Error("extra data found")},"end")}}s(y0,"bitRetriever");function S0(o,e,t,n,r,i){let a=o.width,c=o.height,f=o.index;for(let u=0;u<c;u++)for(let h=0;h<a;h++){let g=t(h,u,f);g0[n](e,r,g,i),i+=n}return i}s(S0,"mapImage8Bit");function C0(o,e,t,n,r,i){let a=o.width,c=o.height,f=o.index;for(let u=0;u<c;u++){for(let h=0;h<a;h++){let g=r.get(n),v=t(h,u,f);v0[n](e,g,v,i)}r.resetAfterLine()}}s(C0,"mapImageCustomBit");Nm.dataToBitMap=function(o,e){let t=e.width,n=e.height,r=e.depth,i=e.bpp,a=e.interlace,c;r!==8&&(c=y0(o,r));let f;r<=8?f=Buffer.alloc(t*n*4):f=new Uint16Array(t*n*4);let u=Math.pow(2,r)-1,h=0,g,v;if(a)g=bm.getImagePasses(t,n),v=bm.getInterlaceIterator(t,n);else{let y=0;v=s(function(){let R=y;return y+=4,R},"getPxPos"),g=[{width:t,height:n}]}for(let y=0;y<g.length;y++)r===8?h=S0(g[y],f,v,i,o,h):C0(g[y],f,v,i,c,u);if(r===8){if(h!==o.length)throw new Error("extra data found")}else c.end();return f}});var cd=C((Nz,Im)=>{"use strict";function b0(o,e,t,n,r){let i=0;for(let a=0;a<n;a++)for(let c=0;c<t;c++){let f=r[o[i]];if(!f)throw new Error("index "+o[i]+" not in palette");for(let u=0;u<4;u++)e[i+u]=f[u];i+=4}}s(b0,"dePalette");function N0(o,e,t,n,r){let i=0;for(let a=0;a<n;a++)for(let c=0;c<t;c++){let f=!1;if(r.length===1?r[0]===o[i]&&(f=!0):r[0]===o[i]&&r[1]===o[i+1]&&r[2]===o[i+2]&&(f=!0),f)for(let u=0;u<4;u++)e[i+u]=0;i+=4}}s(N0,"replaceTransparentColor");function I0(o,e,t,n,r){let i=255,a=Math.pow(2,r)-1,c=0;for(let f=0;f<n;f++)for(let u=0;u<t;u++){for(let h=0;h<4;h++)e[c+h]=Math.floor(o[c+h]*i/a+.5);c+=4}}s(I0,"scaleDepth");Im.exports=function(o,e){let t=e.depth,n=e.width,r=e.height,i=e.colorType,a=e.transColor,c=e.palette,f=o;return i===3?b0(o,f,n,r,c):(a&&N0(o,f,n,r,a),t!==8&&(t===16&&(f=Buffer.alloc(n*r*4)),I0(o,f,n,r,t))),f}});var xm=C((Rz,Fm)=>{"use strict";var R0=Ae("util"),fd=Ae("zlib"),Rm=kp(),F0=vm(),x0=ad(),O0=sd(),D0=cd(),si=Fm.exports=function(o){Rm.call(this),this._parser=new x0(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()};R0.inherits(si,Rm);si.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};si.prototype._inflateData=function(o){if(!this._inflate)if(this._bitmapInfo.interlace)this._inflate=fd.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,n=Math.max(t,fd.Z_MIN_CHUNK);this._inflate=fd.createInflate({chunkSize:n});let r=t,i=this.emit.bind(this,"error");this._inflate.on("error",function(c){r&&i(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)};si.prototype._handleMetaData=function(o){this._metaData=o,this._bitmapInfo=Object.create(o),this._filter=new F0(this._bitmapInfo)};si.prototype._handleTransColor=function(o){this._bitmapInfo.transColor=o};si.prototype._handlePalette=function(o){this._bitmapInfo.palette=o};si.prototype._simpleTransparency=function(){this._metaData.alpha=!0};si.prototype._headersFinished=function(){this.emit("metadata",this._metaData)};si.prototype._finished=function(){this.errord||(this._inflate?this._inflate.end():this.emit("error","No Inflate block"))};si.prototype._complete=function(o){if(this.errord)return;let e;try{let t=O0.dataToBitMap(o,this._bitmapInfo);e=D0(t,this._bitmapInfo),t=null}catch(t){this._handleError(t);return}this.emit("parsed",e)}});var Dm=C((Fz,Om)=>{"use strict";var ro=Sa();Om.exports=function(o,e,t,n){let r=[ro.COLORTYPE_COLOR_ALPHA,ro.COLORTYPE_ALPHA].indexOf(n.colorType)!==-1;if(n.colorType===n.inputColorType){let R=(function(){let E=new ArrayBuffer(2);return new DataView(E).setInt16(0,256,!0),new Int16Array(E)[0]!==256})();if(n.bitDepth===8||n.bitDepth===16&&R)return o}let i=n.bitDepth!==16?o:new Uint16Array(o.buffer),a=255,c=ro.COLORTYPE_TO_BPP_MAP[n.inputColorType];c===4&&!n.inputHasAlpha&&(c=3);let f=ro.COLORTYPE_TO_BPP_MAP[n.colorType];n.bitDepth===16&&(a=65535,f*=2);let u=Buffer.alloc(e*t*f),h=0,g=0,v=n.bgColor||{};v.red===void 0&&(v.red=a),v.green===void 0&&(v.green=a),v.blue===void 0&&(v.blue=a);function y(){let R,E,D,j=a;switch(n.inputColorType){case ro.COLORTYPE_COLOR_ALPHA:j=i[h+3],R=i[h],E=i[h+1],D=i[h+2];break;case ro.COLORTYPE_COLOR:R=i[h],E=i[h+1],D=i[h+2];break;case ro.COLORTYPE_ALPHA:j=i[h+1],R=i[h],E=R,D=R;break;case ro.COLORTYPE_GRAYSCALE:R=i[h],E=R,D=R;break;default:throw new Error("input color type:"+n.inputColorType+" is not supported at present")}return n.inputHasAlpha&&(r||(j/=a,R=Math.min(Math.max(Math.round((1-j)*v.red+j*R),0),a),E=Math.min(Math.max(Math.round((1-j)*v.green+j*E),0),a),D=Math.min(Math.max(Math.round((1-j)*v.blue+j*D),0),a))),{red:R,green:E,blue:D,alpha:j}}s(y,"getRGBA");for(let R=0;R<t;R++)for(let E=0;E<e;E++){let D=y(i,h);switch(n.colorType){case ro.COLORTYPE_COLOR_ALPHA:case ro.COLORTYPE_COLOR:n.bitDepth===8?(u[g]=D.red,u[g+1]=D.green,u[g+2]=D.blue,r&&(u[g+3]=D.alpha)):(u.writeUInt16BE(D.red,g),u.writeUInt16BE(D.green,g+2),u.writeUInt16BE(D.blue,g+4),r&&u.writeUInt16BE(D.alpha,g+6));break;case ro.COLORTYPE_ALPHA:case ro.COLORTYPE_GRAYSCALE:{let j=(D.red+D.green+D.blue)/3;n.bitDepth===8?(u[g]=j,r&&(u[g+1]=D.alpha)):(u.writeUInt16BE(j,g),r&&u.writeUInt16BE(D.alpha,g+2));break}default:throw new Error("unrecognised color Type "+n.colorType)}h+=c,g+=f}return u}});var Am=C((Oz,Pm)=>{"use strict";var wm=td();function w0(o,e,t,n,r){for(let i=0;i<t;i++)n[r+i]=o[e+i]}s(w0,"filterNone");function P0(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++)n+=Math.abs(o[i]);return n}s(P0,"filterSumNone");function A0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,f=o[e+a]-c;n[r+a]=f}}s(A0,"filterSub");function z0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=o[e+i]-a;r+=Math.abs(c)}return r}s(z0,"filterSumSub");function E0(o,e,t,n,r){for(let i=0;i<t;i++){let a=e>0?o[e+i-t]:0,c=o[e+i]-a;n[r+i]=c}}s(E0,"filterUp");function j0(o,e,t){let n=0,r=e+t;for(let i=e;i<r;i++){let a=e>0?o[i-t]:0,c=o[i]-a;n+=Math.abs(c)}return n}s(j0,"filterSumUp");function T0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,f=e>0?o[e+a-t]:0,u=o[e+a]-(c+f>>1);n[r+a]=u}}s(T0,"filterAvg");function M0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,f=o[e+i]-(a+c>>1);r+=Math.abs(f)}return r}s(M0,"filterSumAvg");function B0(o,e,t,n,r,i){for(let a=0;a<t;a++){let c=a>=i?o[e+a-i]:0,f=e>0?o[e+a-t]:0,u=e>0&&a>=i?o[e+a-(t+i)]:0,h=o[e+a]-wm(c,f,u);n[r+a]=h}}s(B0,"filterPaeth");function V0(o,e,t,n){let r=0;for(let i=0;i<t;i++){let a=i>=n?o[e+i-n]:0,c=e>0?o[e+i-t]:0,f=e>0&&i>=n?o[e+i-(t+n)]:0,u=o[e+i]-wm(a,c,f);r+=Math.abs(u)}return r}s(V0,"filterSumPaeth");var L0={0:w0,1:A0,2:E0,3:T0,4:B0},H0={0:P0,1:z0,2:j0,3:M0,4:V0};Pm.exports=function(o,e,t,n,r){let i;if(!("filterType"in n)||n.filterType===-1)i=[0,1,2,3,4];else if(typeof n.filterType=="number")i=[n.filterType];else throw new Error("unrecognised filter types");n.bitDepth===16&&(r*=2);let a=e*r,c=0,f=0,u=Buffer.alloc((a+1)*t),h=i[0];for(let g=0;g<t;g++){if(i.length>1){let v=1/0;for(let y=0;y<i.length;y++){let R=H0[i[y]](o,f,a,r);R<v&&(h=i[y],v=R)}}u[c]=h,c++,L0[h](o,f,a,u,c,r),c+=a,f+=a}return u}});var pd=C((wz,zm)=>{"use strict";var yt=Sa(),Q0=rd(),q0=Dm(),U0=Am(),G0=Ae("zlib"),zn=zm.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||G0.createDeflate,o.bitDepth=o.bitDepth||8,o.colorType=typeof o.colorType=="number"?o.colorType:yt.COLORTYPE_COLOR_ALPHA,o.inputColorType=typeof o.inputColorType=="number"?o.inputColorType:yt.COLORTYPE_COLOR_ALPHA,[yt.COLORTYPE_GRAYSCALE,yt.COLORTYPE_COLOR,yt.COLORTYPE_COLOR_ALPHA,yt.COLORTYPE_ALPHA].indexOf(o.colorType)===-1)throw new Error("option color type:"+o.colorType+" is not supported at present");if([yt.COLORTYPE_GRAYSCALE,yt.COLORTYPE_COLOR,yt.COLORTYPE_COLOR_ALPHA,yt.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")};zn.prototype.getDeflateOptions=function(){return{chunkSize:this._options.deflateChunkSize,level:this._options.deflateLevel,strategy:this._options.deflateStrategy}};zn.prototype.createDeflate=function(){return this._options.deflateFactory(this.getDeflateOptions())};zn.prototype.filterData=function(o,e,t){let n=q0(o,e,t,this._options),r=yt.COLORTYPE_TO_BPP_MAP[this._options.colorType];return U0(n,e,t,this._options,r)};zn.prototype._packChunk=function(o,e){let t=e?e.length:0,n=Buffer.alloc(t+12);return n.writeUInt32BE(t,0),n.writeUInt32BE(o,4),e&&e.copy(n,8),n.writeInt32BE(Q0.crc32(n.slice(4,n.length-4)),n.length-4),n};zn.prototype.packGAMA=function(o){let e=Buffer.alloc(4);return e.writeUInt32BE(Math.floor(o*yt.GAMMA_DIVISION),0),this._packChunk(yt.TYPE_gAMA,e)};zn.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(yt.TYPE_IHDR,t)};zn.prototype.packIDAT=function(o){return this._packChunk(yt.TYPE_IDAT,o)};zn.prototype.packIEND=function(){return this._packChunk(yt.TYPE_IEND,null)}});var Mm=C((Pz,Tm)=>{"use strict";var Z0=Ae("util"),Em=Ae("stream"),Y0=Sa(),X0=pd(),jm=Tm.exports=function(o){Em.call(this);let e=o||{};this._packer=new X0(e),this._deflate=this._packer.createDeflate(),this.readable=!0};Z0.inherits(jm,Em);jm.prototype.pack=function(o,e,t,n){this.emit("data",Buffer.from(Y0.PNG_SIGNATURE)),this.emit("data",this._packer.packIHDR(e,t)),n&&this.emit("data",this._packer.packGAMA(n));let r=this._packer.filterData(o,e,t);this._deflate.on("error",this.emit.bind(this,"error")),this._deflate.on("data",(function(i){this.emit("data",this._packer.packIDAT(i))}).bind(this)),this._deflate.on("end",(function(){this.emit("data",this._packer.packIEND()),this.emit("end")}).bind(this)),this._deflate.end(r)}});var qm=C((Cs,Qm)=>{"use strict";var Bm=Ae("assert").ok,Ca=Ae("zlib"),J0=Ae("util"),Vm=Ae("buffer").kMaxLength;function fr(o){if(!(this instanceof fr))return new fr(o);o&&o.chunkSize<Ca.Z_MIN_CHUNK&&(o.chunkSize=Ca.Z_MIN_CHUNK),Ca.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(fr,"Inflate");function _0(o){return new fr(o)}s(_0,"createInflate");function Lm(o,e){e&&process.nextTick(e),o._handle&&(o._handle.close(),o._handle=null)}s(Lm,"_close");fr.prototype._processChunk=function(o,e,t){if(typeof t=="function")return Ca.Inflate._processChunk.call(this,o,e,t);let n=this,r=o&&o.length,i=this._chunkSize-this._offset,a=this._maxLength,c=0,f=[],u=0,h;this.on("error",function(R){h=R});function g(R,E){if(n._hadError)return;let D=i-E;if(Bm(D>=0,"have should not go down"),D>0){let j=n._buffer.slice(n._offset,n._offset+D);if(n._offset+=D,j.length>a&&(j=j.slice(0,a)),f.push(j),u+=j.length,a-=j.length,a===0)return!1}return(E===0||n._offset>=n._chunkSize)&&(i=n._chunkSize,n._offset=0,n._buffer=Buffer.allocUnsafe(n._chunkSize)),E===0?(c+=r-R,r=R,!0):!1}s(g,"handleChunk"),Bm(this._handle,"zlib binding closed");let v;do v=this._handle.writeSync(e,o,c,r,this._buffer,this._offset,i),v=v||this._writeState;while(!this._hadError&&g(v[0],v[1]));if(this._hadError)throw h;if(u>=Vm)throw Lm(this),new RangeError("Cannot create final Buffer. It would be larger than 0x"+Vm.toString(16)+" bytes");let y=Buffer.concat(f,u);return Lm(this),y};J0.inherits(fr,Ca.Inflate);function W0(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=Ca.Z_FINISH),o._processChunk(e,t)}s(W0,"zlibBufferSync");function Hm(o,e){return W0(new fr(e),o)}s(Hm,"inflateSync");Qm.exports=Cs=Hm;Cs.Inflate=fr;Cs.createInflate=_0;Cs.inflateSync=Hm});var dd=C((zz,Gm)=>{"use strict";var Um=Gm.exports=function(o){this._buffer=o,this._reads=[]};Um.prototype.read=function(o,e){this._reads.push({length:Math.abs(o),allowLess:o<0,func:e})};Um.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 Ym=C(Zm=>{"use strict";var K0=dd(),k0=od();Zm.process=function(o,e){let t=[],n=new K0(o);return new k0(e,{read:n.read.bind(n),write:s(function(i){t.push(i)},"write"),complete:s(function(){},"complete")}).start(),n.process(),Buffer.concat(t)}});var Wm=C((Tz,_m)=>{"use strict";var Xm=!0,Jm=Ae("zlib"),$0=qm();Jm.deflateSync||(Xm=!1);var eS=dd(),tS=Ym(),oS=ad(),iS=sd(),nS=cd();_m.exports=function(o,e){if(!Xm)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 n(it){t=it}s(n,"handleError");let r;function i(it){r=it}s(i,"handleMetaData");function a(it){r.transColor=it}s(a,"handleTransColor");function c(it){r.palette=it}s(c,"handlePalette");function f(){r.alpha=!0}s(f,"handleSimpleTransparency");let u;function h(it){u=it}s(h,"handleGamma");let g=[];function v(it){g.push(it)}s(v,"handleInflateData");let y=new eS(o);if(new oS(e,{read:y.read.bind(y),error:n,metadata:i,gamma:h,palette:c,transColor:a,inflateData:v,simpleTransparency:f}).start(),y.process(),t)throw t;let E=Buffer.concat(g);g.length=0;let D;if(r.interlace)D=Jm.inflateSync(E);else{let Zt=((r.width*r.bpp*r.depth+7>>3)+1)*r.height;D=$0(E,{chunkSize:Zt,maxLength:Zt})}if(E=null,!D||!D.length)throw new Error("bad png - invalid inflate data response");let j=tS.process(D,r);E=null;let fi=iS.dataToBitMap(j,r);j=null;let ao=nS(fi,r);return r.data=ao,r.gamma=u||0,r}});var eh=C((Bz,$m)=>{"use strict";var Km=!0,km=Ae("zlib");km.deflateSync||(Km=!1);var rS=Sa(),aS=pd();$m.exports=function(o,e){if(!Km)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||{},n=new aS(t),r=[];r.push(Buffer.from(rS.PNG_SIGNATURE)),r.push(n.packIHDR(o.width,o.height)),o.gamma&&r.push(n.packGAMA(o.gamma));let i=n.filterData(o.data,o.width,o.height),a=km.deflateSync(i,n.getDeflateOptions());if(i=null,!a||!a.length)throw new Error("bad png - invalid compressed data response");return r.push(n.packIDAT(a)),r.push(n.packIEND()),Buffer.concat(r)}});var th=C(ld=>{"use strict";var sS=Wm(),cS=eh();ld.read=function(o,e){return sS(o,e||{})};ld.write=function(o,e){return cS(o,e)}});var nh=C(ih=>{"use strict";var fS=Ae("util"),oh=Ae("stream"),pS=xm(),dS=Mm(),lS=th(),xt=ih.PNG=function(o){oh.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 pS(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 dS(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"))};fS.inherits(xt,oh);xt.sync=lS;xt.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)};xt.prototype.parse=function(o,e){if(e){let t,n;t=(function(r){this.removeListener("error",n),this.data=r,e(null,this)}).bind(this),n=(function(r){this.removeListener("parsed",t),e(r,null)}).bind(this),this.once("parsed",t),this.once("error",n)}return this.end(o),this};xt.prototype.write=function(o){return this._parser.write(o),!0};xt.prototype.end=function(o){this._parser.end(o)};xt.prototype._metadata=function(o){this.width=o.width,this.height=o.height,this.emit("metadata",o)};xt.prototype._gamma=function(o){this.gamma=o};xt.prototype._handleClose=function(){!this._parser.writable&&!this._packer.readable&&this.emit("close")};xt.bitblt=function(o,e,t,n,r,i,a,c){if(t|=0,n|=0,r|=0,i|=0,a|=0,c|=0,t>o.width||n>o.height||t+r>o.width||n+i>o.height)throw new Error("bitblt reading outside image");if(a>e.width||c>e.height||a+r>e.width||c+i>e.height)throw new Error("bitblt writing outside image");for(let f=0;f<i;f++)o.data.copy(e.data,(c+f)*e.width+a<<2,(n+f)*o.width+t<<2,(n+f)*o.width+t+r<<2)};xt.prototype.bitblt=function(o,e,t,n,r,i,a){return xt.bitblt(this,o,e,t,n,r,i,a),this};xt.adjustGamma=function(o){if(o.gamma){for(let e=0;e<o.height;e++)for(let t=0;t<o.width;t++){let n=o.width*e+t<<2;for(let r=0;r<3;r++){let i=o.data[n+r]/255;i=Math.pow(i,1/2.2/o.gamma),o.data[n+r]=Math.round(i*255)}}o.gamma=0}};xt.prototype.adjustGamma=function(){xt.adjustGamma(this)}});var bs=C(pr=>{"use strict";function rh(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(n){return[n,n]}))),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(rh,"hex2rgba");pr.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,n=e.width&&e.width>=21?e.width:void 0,r=e.scale||4;return{width:n,scale:n?4:r,margin:t,color:{dark:rh(e.color.dark||"#000000ff"),light:rh(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},"getOptions");pr.getScale=s(function(e,t){return t.width&&t.width>=e+t.margin*2?t.width/(e+t.margin*2):t.scale},"getScale");pr.getImageWidth=s(function(e,t){let n=pr.getScale(e,t);return Math.floor((e+t.margin*2)*n)},"getImageWidth");pr.qrToImageData=s(function(e,t,n){let r=t.modules.size,i=t.modules.data,a=pr.getScale(r,n),c=Math.floor((r+n.margin*2)*a),f=n.margin*a,u=[n.color.light,n.color.dark];for(let h=0;h<c;h++)for(let g=0;g<c;g++){let v=(h*c+g)*4,y=n.color.light;if(h>=f&&g>=f&&h<c-f&&g<c-f){let R=Math.floor((h-f)/a),E=Math.floor((g-f)/a);y=u[i[R*r+E]?1:0]}e[v++]=y.r,e[v++]=y.g,e[v++]=y.b,e[v]=y.a}},"qrToImageData")});var ah=C(ci=>{"use strict";var uS=Ae("fs"),mS=nh().PNG,ud=bs();ci.render=s(function(e,t){let n=ud.getOptions(t),r=n.rendererOpts,i=ud.getImageWidth(e.modules.size,n);r.width=i,r.height=i;let a=new mS(r);return ud.qrToImageData(a.data,e,n),a},"render");ci.renderToDataURL=s(function(e,t,n){typeof n>"u"&&(n=t,t=void 0),ci.renderToBuffer(e,t,function(r,i){r&&n(r);let a="data:image/png;base64,";a+=i.toString("base64"),n(null,a)})},"renderToDataURL");ci.renderToBuffer=s(function(e,t,n){typeof n>"u"&&(n=t,t=void 0);let r=ci.render(e,t),i=[];r.on("error",n),r.on("data",function(a){i.push(a)}),r.on("end",function(){n(null,Buffer.concat(i))}),r.pack()},"renderToBuffer");ci.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=!1,a=s((...f)=>{i||(i=!0,r.apply(null,f))},"done"),c=uS.createWriteStream(e);c.on("error",a),c.on("close",a),ci.renderToFileStream(c,t,n)},"renderToFile");ci.renderToFileStream=s(function(e,t,n){ci.render(t,n).pack().pipe(e)},"renderToFileStream")});var sh=C(_c=>{"use strict";var hS=bs(),gS={WW:" ",WB:"\u2584",BB:"\u2588",BW:"\u2580"},vS={BB:" ",BW:"\u2584",WW:"\u2588",WB:"\u2580"};function yS(o,e,t){return o&&e?t.BB:o&&!e?t.BW:!o&&e?t.WB:t.WW}s(yS,"getBlockChar");_c.render=function(o,e,t){let n=hS.getOptions(e),r=gS;(n.color.dark.hex==="#ffffff"||n.color.light.hex==="#000000")&&(r=vS);let i=o.modules.size,a=o.modules.data,c="",f=Array(i+n.margin*2+1).join(r.WW);f=Array(n.margin/2+1).join(f+`
9
+ `);let u=Array(n.margin+1).join(r.WW);c+=f;for(let h=0;h<i;h+=2){c+=u;for(let g=0;g<i;g++){let v=a[h*i+g],y=a[(h+1)*i+g];c+=yS(v,y,r)}c+=u+`
10
+ `}return c+=f.slice(0,-1),typeof t=="function"&&t(null,c),c};_c.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ae("fs"),a=_c.render(t,n);i.writeFile(e,a,r)},"renderToFile")});var fh=C(ch=>{"use strict";ch.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i="\x1B[40m \x1B[0m",a="\x1B[47m \x1B[0m",c="",f=Array(n+3).join(a),u=Array(2).join(a);c+=f+`
11
11
  `;for(let h=0;h<n;++h){c+=a;for(let g=0;g<n;g++)c+=r[h*n+g]?i:a;c+=u+`
12
- `}return c+=p+`
13
- `,typeof t=="function"&&t(null,c),c}});var ph=C(ch=>{"use strict";var dS="\x1B[47m",lS="\x1B[40m",dd="\x1B[37m",ld="\x1B[30m",ur="\x1B[0m",uS=dS+ld,mS=lS+dd,hS=s(function(o,e,t){return{"00":ur+" "+o,"01":ur+e+"\u2584"+o,"02":ur+t+"\u2584"+o,10:ur+e+"\u2580"+o,11:" ",12:"\u2584",20:ur+t+"\u2580"+o,21:"\u2580",22:"\u2588"}},"createPalette"),ah=s(function(o,e,t,n){let r=e+1;if(t>=r||n>=r||n<-1||t<-1)return"0";if(t>=e||n>=e||n<0||t<0)return"1";let i=n*e+t;return o[i]?"2":"1"},"mkCodePixel"),sh=s(function(o,e,t,n){return ah(o,e,t,n)+ah(o,e,t,n+1)},"mkCode");ch.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i=!!(e&&e.inverse),a=e&&e.inverse?mS:uS,u=hS(a,i?ld:dd,i?dd:ld),h=ur+`
14
- `+a,g=a;for(let v=-1;v<n+1;v+=2){for(let y=-1;y<n;y++)g+=u[sh(r,n,y,v)];g+=u[sh(r,n,n,v)]+h}return g+=ur,typeof t=="function"&&t(null,g),g}});var dh=C(fh=>{"use strict";var gS=rh(),vS=ph();fh.render=function(o,e,t){return e&&e.small?vS.render(o,e,t):gS.render(o,e,t)}});var md=C(uh=>{"use strict";var yS=gs();function lh(o,e){let t=o.a/255,n=e+'="'+o.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}s(lh,"getColorAttrib");function ud(o,e,t){let n=o+e;return typeof t<"u"&&(n+=" "+t),n}s(ud,"svgCmd");function SS(o,e,t){let n="",r=0,i=!1,a=0;for(let c=0;c<o.length;c++){let p=Math.floor(c%e),u=Math.floor(c/e);!p&&!i&&(i=!0),o[c]?(a++,c>0&&p>0&&o[c-1]||(n+=i?ud("M",p+t,.5+u+t):ud("m",r,0),r=0,i=!1),p+1<e&&o[c+1]||(n+=ud("h",a),a=0)):r++}return n}s(SS,"qrToPath");uh.render=s(function(e,t,n){let r=yS.getOptions(t),i=e.modules.size,a=e.modules.data,c=i+r.margin*2,p=r.color.light.a?"<path "+lh(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+lh(r.color.dark,"stroke")+' d="'+SS(a,i,r.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+p+u+`</svg>
15
- `;return typeof n=="function"&&n(null,v),v},"render")});var mh=C(Jc=>{"use strict";var CS=md();Jc.render=CS.render;Jc.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ae("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">'+Jc.render(t,n);i.writeFile(e,c,r)},"renderToFile")});var hh=C(_c=>{"use strict";var hd=gs();function bS(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(bS,"clearCanvas");function NS(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}s(NS,"getCanvasElement");_c.render=s(function(e,t,n){let r=n,i=t;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),t||(i=NS()),r=hd.getOptions(r);let a=hd.getImageWidth(e.modules.size,r),c=i.getContext("2d"),p=c.createImageData(a,a);return hd.qrToImageData(p.data,e,r),bS(c,i,a),c.putImageData(p,0,0),i},"render");_c.renderToDataURL=s(function(e,t,n){let r=n;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),r||(r={});let i=_c.render(e,t,r),a=r.type||"image/png",c=r.rendererOpts||{};return i.toDataURL(a,c.quality)},"renderToDataURL")});var vh=C(vs=>{"use strict";var IS=wf(),gd=Jf(),gh=hh(),RS=md();function vd(o,e,t,n,r){let i=[].slice.call(arguments,1),a=i.length,c=typeof i[a-1]=="function";if(!c&&!IS())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=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(p,u){try{let h=gd.create(t,n);p(o(h,e,n))}catch(h){u(h)}})}try{let p=gd.create(t,n);r(null,o(p,e,n))}catch(p){r(p)}}s(vd,"renderCanvas");vs.create=gd.create;vs.toCanvas=vd.bind(null,gh.render);vs.toDataURL=vd.bind(null,gh.renderToDataURL);vs.toString=vd.bind(null,function(o,e,t){return RS.render(o,t)})});var bh=C(Tn=>{"use strict";var yh=wf(),yd=Jf(),FS=oh(),Sh=ih(),xS=dh(),Ch=mh();function ys(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(yh())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}s(ys,"checkParams");function OS(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}s(OS,"getTypeFromFilename");function Wc(o){switch(o){case"svg":return Ch;case"txt":case"utf8":return Sh;case"png":case"image/png":default:return FS}}s(Wc,"getRendererFromType");function DS(o){switch(o){case"svg":return Ch;case"terminal":return xS;case"utf8":default:return Sh}}s(DS,"getStringRendererFromType");function Ss(o,e,t){if(!t.cb)return new Promise(function(n,r){try{let i=yd.create(e,t.opts);return o(i,t.opts,function(a,c){return a?r(a):n(c)})}catch(i){r(i)}});try{let n=yd.create(e,t.opts);return o(n,t.opts,t.cb)}catch(n){t.cb(n)}}s(Ss,"render");Tn.create=yd.create;Tn.toCanvas=vh().toCanvas;Tn.toString=s(function(e,t,n){let r=ys(e,t,n),i=r.opts?r.opts.type:void 0,a=DS(i);return Ss(a.render,e,r)},"toString");Tn.toDataURL=s(function(e,t,n){let r=ys(e,t,n),i=Wc(r.opts.type);return Ss(i.renderToDataURL,e,r)},"toDataURL");Tn.toBuffer=s(function(e,t,n){let r=ys(e,t,n),i=Wc(r.opts.type);return Ss(i.renderToBuffer,e,r)},"toBuffer");Tn.toFile=s(function(e,t,n,r){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!yh())throw new Error("Too few arguments provided");let i=ys(t,n,r),a=i.opts.type||OS(e),p=Wc(a).renderToFile.bind(null,e);return Ss(p,t,i)},"toFile");Tn.toFileStream=s(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let r=ys(t,n,e.emit.bind(e,"error")),a=Wc("png").renderToFileStream.bind(null,e);Ss(a,t,r)},"toFileStream")});var Ih=C((Hz,Nh)=>{"use strict";Nh.exports=bh()});import{NFeTsError as wh}from"nfets/core";var Cs=class extends wh{static{s(this,"XmlValidationError")}xml;name="XmlValidationError";constructor(e,t,n){super(e,n),this.xml=t}};var Ye=(function(o){return o.Normal="1",o.EPEC="4",o.SVCAN="6",o.SVCRS="7",o.OFFLINE="9",o})({});var zt=(function(o){return o.Cancelamento="110111",o.CancelamentoSubstituicao="110112",o})({});var Nd=(function(o){return o.RegistradoEVinculado="135",o})({}),Id=(function(o){return o.RegistradoEVinculado="135",o.RegistradoNaoVinculado="136",o.CancelamentoHomologadoForaPrazo="155",o})({});var Rd=(function(o){return o.InutilizacaoHomologada="102",o})({});import{search as Fd}from"nfets/core";var Ph={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},bs=s(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Fd("packages/nfe/schemas",{onFound:s(o=>o,"onFound"),onNotFound:s(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Fd("nfe/schemas",{onFound:s(o=>o,"onFound"),onNotFound:s(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),fi=Ph;var Ns=class{static{s(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),r=e.month.toString().padStart(2,"0"),i=(e.identification??"").padStart(14,"0"),a=e.mod.toString().padStart(2,"0"),c=e.serie.toString().padStart(3,"0"),p=e.nNF.toString().padStart(9,"0"),u=e.tpEmis.toString().padStart(1,"0"),h=(e.cNF??this.code()).toString().padStart(8,"0"),g=`${t}${n}${r}${i}${a}${c}${p}${u}${h}`;return`${g}${this.verifyingDigit(g)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([A-Z0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[r,i,a,c,p,u,h,g,v,y,R]=n;return{cUF:i,year:a,month:c,identification:p,mod:u,serie:h,nNF:g,tpEmis:v,cNF:y,vd:R}}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=[4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2],n=48,r=43,i=0;for(let c=0;c<r;c++){let p=e.charCodeAt(c)-n;i+=p*t[c]}return i%11<2?0:11-i%11}};import{Xml2JsToolkit as Ah}from"nfets/core";import{left as rp,NFeTsError as ap,right as xd}from"nfets/core";var zh=new Set([zt.Cancelamento,zt.CancelamentoSubstituicao]),Od=class{static{s(this,"NfeComplements")}toolkit;constructor(e=new Ah){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return rp(new ap("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return rp(new ap("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return rp(new ap("Access key not found in protNFe"));let i=this.findMatchingRetEvento(t,r);return i?xd(this.toolkit.appendNode(e,i)):xd(e)}findMatchingRetEvento(e,t){for(let n of this.toolkit.getNodes(e,"retEvento")){let r=this.toolkit.getNodeValue(n,"cStat"),i=this.toolkit.getNodeValue(n,"tpEvento"),a=this.toolkit.getNodeValue(n,"chNFe");if(r&&Object.values(Id).includes(r)&&i&&zh.has(i)&&a===t)return n}return null}};import{Decimal as Dd}from"nfets/core";var Is=class{static{s(this,"DefaultDetBuilderAggregator")}builder;zero=Dd.from(0);constructor(e){this.builder=e}prod(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vProd:this.sum(t?.vProd,e.vProd),vFrete:this.sum(t?.vFrete,e.vFrete),vSeg:this.sum(t?.vSeg,e.vSeg),vDesc:this.sum(t?.vDesc,e.vDesc),vOutro:this.sum(t?.vOutro,e.vOutro)}}))}issqn(e){this.builder.increment(({ISSQNtot:t})=>({ISSQNtot:{vISS:this.sum(t?.vISS,e.vISSQN)}}))}cofins(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vCOFINS:this.sum(t?.vCOFINS,e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS)}}))}pis(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vPIS:this.sum(t?.vPIS,e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS)}}))}icms(e){let[t]=Object.keys(e),n=e[t];this.builder.increment(({ICMSTot:r})=>({ICMSTot:{vBC:this.sum(r?.vBC,n.vBC),vICMS:this.sum(r?.vICMS,n.vICMS),vICMSDeson:this.sum(r?.vICMSDeson,n.vICMSDeson),vBCST:this.sum(r?.vBCST,n.vBCST),vST:this.sum(r?.vST,n.vICMSST),vFCP:this.sum(r?.vFCP,n.vFCP),vFCPST:this.sum(r?.vFCPST,n.vFCPST),vFCPSTRet:this.sum(r?.vFCPSTRet,n.vFCPSTRet),qBCMono:this.sum(r?.qBCMono,n.qBCMono),vICMSMono:this.sum(r?.vICMSMono,n.vICMSMono),qBCMonoReten:this.sum(r?.qBCMonoReten,n.qBCMonoReten),vICMSMonoReten:this.sum(r?.vICMSMonoReten,n.vICMSMonoReten),qBCMonoRet:this.sum(r?.qBCMonoRet,n.qBCMonoRet),vICMSMonoRet:this.sum(r?.vICMSMonoRet,n.vICMSMonoRet)}}))}imposto(e){e.vTotTrib!=null&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vTotTrib:this.sum(t?.vTotTrib,e.vTotTrib)}}))}ii(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vII:this.sum(t?.vII,e.vII)}}))}ipi(e){let t=e.IPITrib?.vIPI;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPI:this.sum(n?.vIPI,t)}}))}impostoDevol(e){let t=e.IPI?.vIPIDevol;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPIDevol:this.sum(n?.vIPIDevol,t)}}))}sum(e,t,n=2){return Dd.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as sp}from"nfets/core";var Rs=class{static{s(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=sp.from(0),t=this.builder.schema===fi.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:r},i)=>{let a=this.resolveDeductibleVICMSDeson(i);return{vNFTot:t?i.reduce((c,p)=>c.add(p?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:sp.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(a).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vICMSMonoReten??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(r?.vServ??e).toFixed(2)}}})}resolveDeductibleVICMSDeson(e){let t=sp.from(0);return e.length?e.reduce((n,r)=>{let i=r?.imposto?.ICMS;if(!i)return n;let[a]=Object.keys(i),c=i[a];return c?.indDeduzDeson!=="1"||c.vICMSDeson==null?n:n.add(c.vICMSDeson)},t).toFixed(2):t.toFixed(2)}};import{NFeTsError as Dg,right as wg,Validates as Pg,left as Ag}from"nfets/core";var Fs={[zt.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"},[zt.CancelamentoSubstituicao]:{method:"envEventoCancSubstNFe",version:"1.00",descEvento:"Cancelamento por substituicao"}};import{Xml2JsToolkit as Eh,NativeCertificateRepository as jh,SoapRemoteTransmissionRepository as Th,MemoryCacheAdapter as Mh}from"nfets/core";import{EntitySigner as Bh,ValidateErrorsMetadata as Vh,XmlSigner as Lh}from"nfets/core";var hr=class{static{s(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=bd.create();toolkit=new Eh;caching=new Mh;certificates=new jh(this.http,this.caching);soap=new Th(this.toolkit,this.certificates);signer=new Bh(this.toolkit,this.certificates);xmlSigner=new Lh(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(Vh,this)}};import Ng from"path";import{NFeTsError as Ig,StateCodes as Rg}from"nfets/core";import{ValidateErrorsMetadata as Ld,Validates as Vn}from"nfets/core";import{left as Fg,right as xg}from"nfets/core";import{StateCodes as Hh,Environment as Qh}from"nfets/core";import{Type as qh}from"class-transformer";import{IsEnum as wd,IsNotEmptyObject as Uh,IsObject as Gh,ValidateNested as Zh,IsOptional as Yh}from"class-validator";function xs(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(xs,"_ts_decorate");function pp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(pp,"_ts_metadata");var Ki=class{static{s(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};xs([wd(Qh),pp("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ki.prototype,"tpAmb",void 0);xs([wd(Hh),pp("design:type",typeof StateCode>"u"?Object:StateCode)],Ki.prototype,"cUF",void 0);xs([Yh()],Ki.prototype,"xServ",void 0);var cp=class{static{s(this,"ConsultStatusRequest")}consStatServ};xs([Uh(),Gh(),Zh(),qh(()=>Ki),pp("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],cp.prototype,"consStatServ",void 0);import{Choice as Xh}from"nfets/core";import{StateCodes as Jh,Environment as _h}from"nfets/core";import{Type as fp}from"class-transformer";import{IsEnum as Pd,IsOptional as Ds,IsString as ro,Length as Ad,MinLength as Wh,MaxLength as Kh,Matches as Na,ValidateNested as dp,Allow as kh,IsObject as zd}from"class-validator";function ze(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ze,"_ts_decorate");function Je(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Je,"_ts_metadata");var Os=class{static{s(this,"InfInutAttributes")}Id};ze([ro(),Je("design:type",String)],Os.prototype,"Id",void 0);var ba=class{static{s(this,"InutNFeAttributes")}xmlns;versao};ze([ro(),Je("design:type",String)],ba.prototype,"xmlns",void 0);ze([ro(),Ds(),Je("design:type",String)],ba.prototype,"versao",void 0);var Xe=class{static{s(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ze([dp(),fp(()=>Os),Je("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Xe.prototype,"$",void 0);ze([Pd(_h),Je("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Xe.prototype,"tpAmb",void 0);ze([Ds()],Xe.prototype,"xServ",void 0);ze([Pd(Jh),Je("design:type",typeof StateCode>"u"?Object:StateCode)],Xe.prototype,"cUF",void 0);ze([ro(),Ad(2,2),Na(/^[0-9]{2}$/),Je("design:type",String)],Xe.prototype,"ano",void 0);ze([ro(),Ds(),Je("design:type",String)],Xe.prototype,"CNPJ",void 0);ze([ro(),Ds(),Je("design:type",String)],Xe.prototype,"CPF",void 0);ze([ro(),Ad(2,2),Na(/^(55|65)$/),Je("design:type",String)],Xe.prototype,"mod",void 0);ze([ro(),Na(/^[0-9]{1,3}$/),Je("design:type",String)],Xe.prototype,"serie",void 0);ze([ro(),Na(/^[0-9]{1,9}$/),Je("design:type",String)],Xe.prototype,"nNFIni",void 0);ze([ro(),Na(/^[0-9]{1,9}$/),Je("design:type",String)],Xe.prototype,"nNFFin",void 0);ze([ro(),Wh(15),Kh(255),Je("design:type",String)],Xe.prototype,"xJust",void 0);Xe=ze([Xh({properties:["CNPJ","CPF"],required:!0})],Xe);var di=class{static{s(this,"InutilizacaoPayload")}$;infInut;Signature};ze([zd(),dp(),fp(()=>ba),Je("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],di.prototype,"$",void 0);ze([zd(),dp(),fp(()=>Xe),Je("design:type",typeof IInfInut>"u"?Object:IInfInut)],di.prototype,"infInut",void 0);ze([kh(),Je("design:type",typeof Signature>"u"?Object:Signature)],di.prototype,"Signature",void 0);import{Environment as $h}from"nfets/core";import{IsEnum as eg,IsOptional as tg,IsString as og,Length as ig,Matches as ng}from"class-validator";function lp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(lp,"_ts_decorate");function Ed(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ed,"_ts_metadata");var Mn=class{static{s(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};lp([eg($h),Ed("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Mn.prototype,"tpAmb",void 0);lp([tg()],Mn.prototype,"xServ",void 0);lp([og(),ig(44,44),ng(/^[A-Z0-9]{44}$/),Ed("design:type",String)],Mn.prototype,"chNFe",void 0);import{StateCodes as rg,Environment as ag}from"nfets/core";import{IsEnum as up,IsOptional as Ps,IsString as sg,IsNotEmpty as cg}from"class-validator";function Ia(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ia,"_ts_decorate");function ws(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ws,"_ts_metadata");var ao=class{static{s(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Ia([up(ag),Ps(),ws("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ao.prototype,"tpAmb",void 0);Ia([up(rg),Ps(),ws("design:type",typeof StateCode>"u"?Object:StateCode)],ao.prototype,"cUF",void 0);Ia([sg(),Ps(),ws("design:type",String)],ao.prototype,"idLote",void 0);Ia([Ps(),up(["0","1"])],ao.prototype,"indSinc",void 0);Ia([cg(),ws("design:type",typeof T>"u"?Object:T)],ao.prototype,"NFe",void 0);import{Environment as pg}from"nfets/core";import{IsEnum as fg,IsString as dg}from"class-validator";function jd(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(jd,"_ts_decorate");function Td(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Td,"_ts_metadata");var gr=class{static{s(this,"RetAutorizacaoPayload")}tpAmb;nRec};jd([fg(pg),Td("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gr.prototype,"tpAmb",void 0);jd([dg(),Td("design:type",String)],gr.prototype,"nRec",void 0);import{IsString as li,IsNotEmpty as lg,ValidateNested as Es,IsObject as js,IsOptional as Md,IsEnum as ug,IsNumber as mg,Allow as hg}from"class-validator";import{Type as Ts}from"class-transformer";import{Choice as gg,TransformDateString as vg}from"nfets/core";function Ee(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ee,"_ts_decorate");function Le(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Le,"_ts_metadata");var As=class{static{s(this,"InfEventoAttributes")}Id};Ee([li(),Le("design:type",String)],As.prototype,"Id",void 0);var Ve=class{static{s(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Ee([js(),Es(),Ts(()=>As),Le("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Ve.prototype,"$",void 0);Ee([li(),Le("design:type",typeof StateCode>"u"?Object:StateCode)],Ve.prototype,"cOrgao",void 0);Ee([li(),Le("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ve.prototype,"tpAmb",void 0);Ee([li(),Md(),Le("design:type",String)],Ve.prototype,"CNPJ",void 0);Ee([li(),Md(),Le("design:type",String)],Ve.prototype,"CPF",void 0);Ee([li(),Le("design:type",String)],Ve.prototype,"chNFe",void 0);Ee([vg({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Le("design:type",String)],Ve.prototype,"dhEvento",void 0);Ee([ug(zt),Le("design:type",typeof zt>"u"?Object:zt)],Ve.prototype,"tpEvento",void 0);Ee([mg(),Le("design:type",Number)],Ve.prototype,"nSeqEvento",void 0);Ee([li(),Le("design:type",String)],Ve.prototype,"verEvento",void 0);Ee([js(),Le("design:type",typeof T>"u"?Object:T)],Ve.prototype,"detEvento",void 0);Ve=Ee([gg({properties:["CNPJ","CPF"],required:!0})],Ve);var zs=class{static{s(this,"EventoItemAttributes")}xmlns};Ee([li(),Le("design:type",String)],zs.prototype,"xmlns",void 0);var Bo=class{static{s(this,"EventoItem")}$;infEvento;Signature};Ee([js(),Es(),Ts(()=>zs),Le("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Bo.prototype,"$",void 0);Ee([js(),Es(),Ts(()=>Ve),Le("design:type",typeof Ve>"u"?Object:Ve)],Bo.prototype,"infEvento",void 0);Ee([hg(),Le("design:type",typeof Signature>"u"?Object:Signature)],Bo.prototype,"Signature",void 0);var vr=class{static{s(this,"EventoPayload")}idLote;evento};Ee([li(),Le("design:type",String)],vr.prototype,"idLote",void 0);Ee([lg(),Es(),Ts(()=>Bo),Le("design:type",typeof Bo>"u"?Object:Bo)],vr.prototype,"evento",void 0);import{StateAcronyms as yg}from"nfets/core";import{Choice as Sg}from"nfets/core";import{IsIn as Cg,IsOptional as Bs,IsString as Vs}from"class-validator";function yr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(yr,"_ts_decorate");function Ms(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ms,"_ts_metadata");var so=class{static{s(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};yr([Bs()],so.prototype,"xServ",void 0);yr([Vs(),Cg(Object.values(yg)),Ms("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],so.prototype,"UF",void 0);yr([Bs(),Vs(),Ms("design:type",String)],so.prototype,"IE",void 0);yr([Bs(),Vs(),Ms("design:type",String)],so.prototype,"CNPJ",void 0);yr([Bs(),Vs(),Ms("design:type",String)],so.prototype,"CPF",void 0);so=yr([Sg({properties:["IE","CNPJ","CPF"],required:!0})],so);import{Environment as B}from"nfets/core";var Bd={AM:{[B.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"}},[B.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:{[B.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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"}},[B.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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:{[B.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:"NFeInutilizacao",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"}},[B.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:"NFeInutilizacao",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:{[B.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"}},[B.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:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[B.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"}},[B.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:{[B.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"}},[B.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:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[B.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[B.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[B.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"}},[B.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:{[B.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"}},[B.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:{[B.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"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[B.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"}},[B.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:{[B.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"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};import{StateCodes as Z}from"nfets/core";var bg={[Z.AC]:"SVRS",[Z.AL]:"SVRS",[Z.AM]:"AM",[Z.AP]:"SVRS",[Z.BA]:"BA",[Z.CE]:"SVRS",[Z.DF]:"SVRS",[Z.ES]:"SVRS",[Z.GO]:"GO",[Z.MA]:"SVAN",[Z.MG]:"MG",[Z.MS]:"MS",[Z.MT]:"MT",[Z.PA]:"SVRS",[Z.PB]:"SVRS",[Z.PE]:"PE",[Z.PI]:"SVRS",[Z.PR]:"PR",[Z.RJ]:"SVRS",[Z.RN]:"SVRS",[Z.RO]:"SVRS",[Z.RR]:"SVRS",[Z.RS]:"RS",[Z.SC]:"SVRS",[Z.SE]:"SVRS",[Z.SP]:"SP",[Z.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Vd=bg;import{StateCodes as Y}from"nfets/core";var Ls={[Y.AC]:"SVCAN",[Y.AL]:"SVCAN",[Y.AM]:"SVCRS",[Y.AP]:"SVCAN",[Y.BA]:"SVCRS",[Y.CE]:"SVCAN",[Y.DF]:"SVCAN",[Y.ES]:"SVCAN",[Y.GO]:"SVCRS",[Y.MA]:"SVCRS",[Y.MG]:"SVCAN",[Y.MS]:"SVCRS",[Y.MT]:"SVCRS",[Y.PA]:"SVCAN",[Y.PB]:"SVCAN",[Y.PE]:"SVCRS",[Y.PI]:"SVCAN",[Y.PR]:"SVCRS",[Y.RJ]:"SVCAN",[Y.RN]:"SVCAN",[Y.RO]:"SVCAN",[Y.RR]:"SVCAN",[Y.RS]:"SVCAN",[Y.SC]:"SVCAN",[Y.SE]:"SVCAN",[Y.SP]:"SVCAN",[Y.TO]:"SVCAN"};function Bn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Bn,"_ts_decorate");function me(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(me,"_ts_metadata");var Et=class{static{s(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}xmlns="http://www.portalfiscal.inf.br/nfe";options={timeout:6e4};configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=fi.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,r=this.options.contingency?Ls[t]:Vd[t];return Bd[r][n][e.service]}errors(){return Reflect.getMetadata(Ld,this)}validate(e){try{let t=this.errors();return t?Fg(new Ig(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),xg(e))}finally{Reflect.deleteMetadata(Ld,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return Ng.resolve(bs(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,r.version)},method:r.method})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:r}=t.value.infInut,i=t.value,a=this.service({cUF:n,tpAmb:r,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(i,a.version)},method:a.method})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,r.version)},method:r.method})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,timeout:this.options.timeout,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,r.version)},method:r.method})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,r.version)},method:r.method})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,r.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,r.version)},method:r.method})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:Rg[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,r.version)},method:r.method})}};Bn([Vn(Ki),me("design:type",Function),me("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),me("design:returntype",Promise)],Et.prototype,"consultStatus",null);Bn([Vn(di),me("design:type",Function),me("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),me("design:returntype",Promise)],Et.prototype,"inutilizacao",null);Bn([Vn(Mn),me("design:type",Function),me("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),me("design:returntype",Promise)],Et.prototype,"consultaProtocolo",null);Bn([Vn(ao),me("design:type",Function),me("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),me("design:returntype",Promise)],Et.prototype,"autorizacao",null);Bn([Vn(gr),me("design:type",Function),me("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),me("design:returntype",Promise)],Et.prototype,"retAutorizacao",null);Bn([Vn(vr),me("design:type",Function),me("design:paramtypes",[Object]),me("design:returntype",Promise)],Et.prototype,"recepcaoEvento",null);Bn([Vn(so),me("design:type",Function),me("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),me("design:returntype",Promise)],Et.prototype,"consultaCadastro",null);var xt=class extends hr{static{s(this,"TransmissionPipeline")}certificate;transmitter=new Et(this.soap);constructor(e){super(e),this.certificate=e}};function Og(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Og,"_ts_decorate");function mp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(mp,"_ts_metadata");var Ra=class extends xt{static{s(this,"EventPipeline")}async event(e,t,n){let r=await this.certificates.read(this.certificate);if(r.isLeft())return r;let i=t.chNFe.slice(0,2);this.transmitter.configure({cUF:i,...n,certificate:r.value});let a=Fs[e],c=this.certificates.getCertificateInfo(r.value.certificate),{nSeqEvento:p,dhEvento:u,chNFe:h}=t,g=["ID",e,h,p.toString().padStart(2,"0")].join(""),v={$:{xmlns:this.xmlns},infEvento:{$:{Id:g},cOrgao:i,tpAmb:n.tpAmb,CNPJ:c.CNPJ,CPF:c.CPF,chNFe:h,dhEvento:u,tpEvento:e,nSeqEvento:p,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(v);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},r.value)}versionedEvent(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infEvento;if(!Object.values(Nd).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"evento"});let i={evento:e,retEvento:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procEventoNFe"})}validated(e){let t=this.errors();return t?Ag(new Dg(t.join(", "))):wg(e)}};Og([Pg(Bo),mp("design:type",Function),mp("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),mp("design:returntype",void 0)],Ra.prototype,"validated",null);import{left as zg,NFeTsError as Eg,right as jg}from"nfets/core";var Hs=class extends Ra{static{s(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},r=await this.event(zt.Cancelamento,n,t);if(r.isLeft())return r;let i=r.value,a=Fs[zt.Cancelamento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i});if(c.isLeft())return c;let p=c.value,u=p.retEnvEvento.retEvento;if(!u)return zg(new Eg("Evento de cancelamento n\xE3o retornado"));let h=await this.protocol(this.versionedEvent(i,a),u,a);return jg({xml:h,response:p})}};var Ln=(function(o){return o.Asynchronous="0",o.Synchronous="1",o})({});var hp=(function(o){return o.LotReceived="103",o.ProcessedBatch="104",o})({});import{NFeTsError as Tg}from"nfets/core";var Fa=class extends Tg{static{s(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};import{left as Qs,right as xa,NFeTsError as Mg}from"nfets/core";var Hd=(function(o){return o.Autorizada="100",o.AutorizadaForaDoPrazo="150",o.UsoDenegado="110",o.NfeDenegada="205",o.DenegadaIrregularidadeEmissor="301",o.DenegadaIrregularidadeDestinatario="302",o.DenegadaNaoHabilitadaNaUf="303",o})({});var qs=class extends xt{static{s(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=Ln.Synchronous;let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=await this.handleNfeBatch(n.value,e.xml);if(r.isLeft())return r;let[i]=r.value;this.transmitter.configure({cUF:i.infNFe.ide.cUF,tpAmb:i.infNFe.ide.tpAmb,...t,contingency:this.contingency(i),certificate:n.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.isLotNotProcessed(c,e)?xa(await this.handleLotNotProcessed(r.value,c)):e.indSinc===Ln.Synchronous&&this.isSyncResponse(c)?xa(await this.response(r.value,c)):e.indSinc===Ln.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):Qs(new Fa)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(Hd).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let r={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(r,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],r=await Promise.all(e.map((i,a)=>this.protocol(i,n[a])));return r.length>1?{xml:r,response:t}:{xml:r[0],response:t}}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.toolkit.parse(t),i=await this.signNfe(e,r);return i.isLeft()?Qs(i.value):xa([i.value])}let n=await Promise.all(t.map(async r=>this.signNfe(e,await this.toolkit.parse(r))));return n.some(r=>r.isLeft())?Qs(new Mg("Failed to sign a NFe in batch")):xa(n.filter(r=>r.isRight()).map(r=>r.value))}isLotNotProcessed(e,t){let{cStat:n}=e.retEnviNFe,r=t.indSinc??Ln.Synchronous;return r===Ln.Asynchronous&&n!==hp.LotReceived.toString()||r===Ln.Synchronous&&n!==hp.ProcessedBatch.toString()}async handleLotNotProcessed(e,t){return this.response(e,this.toRejectionSyncResponse(e,t))}toRejectionSyncResponse(e,t){let{retEnviNFe:n}=t,r=e.map(i=>this.buildRejectionProtNFe(i,n));return{retEnviNFe:{...n,protNFe:r.length===1?r[0]:r}}}buildRejectionProtNFe(e,t){return{$:{versao:t.$.versao},infProt:{tpAmb:t.tpAmb,verAplic:t.verAplic,chNFe:e.infNFe.$.Id?.substring(3)??"",dhRecbto:t.dhRecbto,nProt:"",digVal:"",cStat:t.cStat,xMotivo:t.xMotivo}}}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}hasReceipt(e){return"infRec"in e.retEnviNFe&&!!e.retEnviNFe.infRec.nRec}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:r}=t.retEnviNFe,{nRec:i}=r,a=1;for(;a<=3;)try{await new Promise(u=>setTimeout(u,1e3));let c=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(c.isLeft())continue;let p=c.value.retConsReciNFe.protNFe;if(!p||Array.isArray(p)&&p.length===0)continue;return xa(await this.response(e,{retEnviNFe:{...c.value.retConsReciNFe,protNFe:p}}))}finally{a++}return Qs(new Fa)}contingency(e){let{dhCont:t,xJust:n,tpEmis:r}=e.infNFe.ide;if(!(!t||!n||r===Ye.Normal))return{dhCont:t,xJust:n}}};import{left as Qd,NFeTsError as qd,right as Ud,Validates as Vg}from"nfets/core";function Bg(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Bg,"_ts_decorate");function gp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(gp,"_ts_metadata");var Oa=class extends xt{static{s(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let i=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,i,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:i,CNPJ:r.CNPJ,CPF:r.CPF,mod:e.mod,serie:e.serie,nNFIni:e.nNFIni,nNFFin:e.nNFFin,xJust:e.xJust}},p=this.validated(c);if(p.isLeft())return p;let u=await this.signer.sign(p.value,{tag:"infInut",mark:"Id"},n.value);if(u.isLeft())return u;let h=await this.transmitter.inutilizacao(u.value);if(h.isLeft())return h;let g=h.value,v=g.retInutNFe;if(!v)return Qd(new qd("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=v.$.versao,R=await this.protocol(this.versionedInutNFe(u.value,y),v,y);return Ud({xml:R,response:g})}versionedInutNFe(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infInut;if(!Object.values(Rd).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"inutNFe"});let i={inutNFe:e,retInutNFe:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procInutNFe"})}validated(e){let t=this.errors();return t?Qd(new qd(t.join(", "))):Ud(e)}};Bg([Vg(di),gp("design:type",Function),gp("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),gp("design:returntype",void 0)],Oa.prototype,"validated",null);var Us=class extends xt{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 Gs=class extends xt{static{s(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Gd=class extends xt{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))}};import Lg from"crypto";import{right as Zs,SignatureAlgorithm as Hg,unreachable as Qg}from"nfets/core";var it=class{static{s(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Zs(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):Qg(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:n,CSCId:r}=t,i=e.infNFe.ide.tpAmb,a=Number.parseInt(r),c=e.infNFe.$.Id?.substring(3),p=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ye.OFFLINE)return`${c}|${p}|${i}|${a}`;let h=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),g=new Date(e.infNFe.ide.dhEmi).getDate(),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${p}|${i}|${g}|${v}|${h}|${a}`}async execute200(e,t){let{urlService:n,CSC:r}=t,i=this.getSequence(e,t),a=Lg.createHash("sha1").update(`${i}${r}`).digest("hex").toUpperCase(),c=`${n}?p=`;return Promise.resolve(Zs(`${c}${i}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:r}=e,i=t?t.replace(/\D/g,""):n?n.replace(/[^A-Z0-9]/g,""):r?.replace(/\D/g,"");return i?i.length===11?{tipo:"2",documento:i}:i.length===14?{tipo:"1",documento:i}:r&&i.length>=3&&i.length<=14?{tipo:"3",documento:i}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,r=`${n}?p=`,i=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),c=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ye.OFFLINE)return Zs(`${r}${a}|${c}|${i}`);let p=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),u=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:h,documento:g}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),v=`${a}|${c}|${i}|${p}|${u}|${h}|${g}`,y=await this.certificateRepository.sign(v,t.certificate,Hg.SHA1);return y.isLeft()?y:Zs(`${r}${v}|${y.value}`)}};import{StateCodes as Jd}from"nfets/core";import{Environment as b}from"nfets/core";var vp={AC:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[b.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"}},[b.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:{[b.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"}},[b.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:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[b.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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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"}},[b.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[b.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:"nfeRecepcaoEventoNF",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"}},[b.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:"nfeRecepcaoEventoNF",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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[b.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"}},[b.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:{[b.Homolog]:{},[b.Production]:{}}};import{Environment as Zd,StateCodes as I}from"nfets/core";var Yd={[Zd.Homolog]:{[I.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[I.AL]:"www.sefaz.al.gov.br/nfce/consulta",[I.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[I.AM]:"www.sefaz.am.gov.br/nfce/consulta",[I.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[I.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[I.DF]:"www.fazenda.df.gov.br/nfce/consulta",[I.ES]:"www.sefaz.es.gov.br/nfce/consulta",[I.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[I.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[I.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[I.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[I.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[I.PA]:"www.sefa.pa.gov.br/nfce/consulta",[I.PB]:"www.sefaz.pb.gov.br/nfcehom",[I.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[I.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[I.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[I.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[I.RN]:"www.set.rn.gov.br/nfce/consulta",[I.RO]:"www.sefin.ro.gov.br/nfce/consulta",[I.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[I.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[I.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[I.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[I.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[I.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Zd.Production]:{[I.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[I.AL]:"www.sefaz.al.gov.br/nfce/consulta",[I.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[I.AM]:"www.sefaz.am.gov.br/nfce/consulta",[I.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[I.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[I.DF]:"www.fazenda.df.gov.br/nfce/consulta",[I.ES]:"www.sefaz.es.gov.br/nfce/consulta",[I.GO]:"www.sefaz.go.gov.br/nfce/consulta",[I.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[I.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[I.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[I.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[I.PA]:"www.sefa.pa.gov.br/nfce/consulta",[I.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[I.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[I.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[I.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[I.RN]:"www.set.rn.gov.br/nfce/consulta",[I.RO]:"www.sefin.ro.gov.br/nfce/consulta",[I.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[I.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[I.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[I.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[I.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[I.TO]:"www.sefaz.to.gov.br/nfce/consulta",[I.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};import{StateCodes as X}from"nfets/core";var qg={[X.AC]:"SVRS",[X.AL]:"SVRS",[X.AM]:"AM",[X.AP]:"SVRS",[X.BA]:"SVRS",[X.CE]:"SVRS",[X.DF]:"SVRS",[X.ES]:"SVRS",[X.GO]:"GO",[X.MA]:"SVRS",[X.MG]:"MG",[X.MS]:"MS",[X.MT]:"MT",[X.PA]:"SVRS",[X.PB]:"SVRS",[X.PE]:"SVRS",[X.PI]:"SVRS",[X.PR]:"PR",[X.RJ]:"SVRS",[X.RN]:"SVRS",[X.RO]:"SVRS",[X.RR]:"SVRS",[X.RS]:"RS",[X.SC]:"SVRS",[X.SE]:"SVRS",[X.SP]:"SP",[X.TO]:"SVRS",SVRS:"SVRS"},Xd=qg;var Ys=class extends ao{static{s(this,"NfceAutorizacaoPayload")}};import{Validates as Gg}from"nfets/core";function Ug(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ug,"_ts_decorate");function yp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(yp,"_ts_metadata");var _e=class extends Et{static{s(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={timeout:6e4};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,n=e.tpAmb??this.options.tpAmb,r=Xd[t],c=vp[r][n][e.service];if(c)return c;let p=Object.keys(Jd).find(u=>Jd[u]===t);return vp[p][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return Yd[n][t]}async autorizacao(e){return super.autorizacao(e)}};Ug([Gg(Ys),yp("design:type",Function),yp("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),yp("design:returntype",Promise)],_e.prototype,"autorizacao",null);var _d=class extends Hs{static{s(this,"NfceCancelPipeline")}qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode)};var Xs=class extends qs{static{s(this,"NfceAuthorizerPipeline")}certificate;qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};import{DigestAlgorithm as Zg,SignatureAlgorithm as Wd,left as Sp,right as Js,NFeTsError as Cp}from"nfets/core";var Kd=class extends Xs{static{s(this,"NfceContingencyXmlAuthorizerPipeline")}certificate;qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}async handleNfeBatch(e,t){if(!Array.isArray(t))return this.parseContingencyXml(t).then(r=>r.isLeft()?r:Js([r.value]));let n=await Promise.all(t.map(r=>this.parseContingencyXml(r)));if(n.some(r=>r.isLeft())){let r=n.find(i=>i.isLeft());return Sp(r?.value??new Cp("NFC-e XML must be signed"))}return Js(n.filter(r=>r.isRight()).map(r=>r.value))}async parseContingencyXml(e){let t=await this.toolkit.parse(e);return this.assertSignatureIntegrity(t)}async assertSignatureIntegrity(e){let t=e.Signature?.SignedInfo?.Reference?.DigestValue;if(!t)return Sp(new Cp("NFC-e XML must be signed"));let n=await this.rebuildInfNFeNode(e);if(n.isLeft())return n;let r=this.signatureAlgorithm(e);return this.toolkit.digest(n.value,r)!==t?Sp(new Cp("NFC-e XML signature digest mismatch")):Js(e)}async rebuildInfNFeNode(e){let t=e.$?.xmlns,{$:n,...r}=e.infNFe??{};delete n.xmlns;let i=await this.toolkit.build({$:{xmlns:t,...n},...r},{headless:!0,rootName:"infNFe",renderOpts:{pretty:!1}});return Js(i)}signatureAlgorithm(e){return e.Signature?.SignedInfo?.Reference?.DigestMethod?.$?.Algorithm===Zg.SHA256?Wd.SHA256:Wd.SHA1}};var kd=class extends Oa{static{s(this,"NfceVoidRangePipeline")}qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode)};var $d=class extends Us{static{s(this,"NfceConsultStatusPipeline")}qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode)};var el=class extends Gs{static{s(this,"NfceConsultProtocoloPipeline")}qrCode=new it(this.certificates);transmitter=new _e(this.soap,this.qrCode)};import ry from"path";import{left as ay,right as Rf}from"nfets/core";import{Allow as kv,IsNotEmpty as $v,IsNotEmptyObject as ru,IsObject as au,IsString as ey,ValidateNested as su}from"class-validator";import{ArrayMaxSize as iu,ArrayMinSize as Kv,IsNotEmptyObject as bf,IsObject as Nf,IsOptional as Rt,IsString as nu,ValidateNested as Oe}from"class-validator";import{Type as De}from"class-transformer";import{ArrayMaxSize as Yg,IsArray as Xg,IsEnum as Jg,IsOptional as Ot,IsString as w,ValidateNested as _s}from"class-validator";import{Type as Ws}from"class-transformer";import{Choice as _g,TransformDateString as bp}from"nfets/core";import{StateCodes as Wg}from"nfets/core";function F(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(F,"_ts_decorate");function x(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(x,"_ts_metadata");var ui=class{static{s(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};F([w(),x("design:type",String)],ui.prototype,"cUF",void 0);F([w(),x("design:type",String)],ui.prototype,"AAMM",void 0);F([w(),x("design:type",String)],ui.prototype,"CNPJ",void 0);F([w(),x("design:type",String)],ui.prototype,"mod",void 0);F([w(),x("design:type",String)],ui.prototype,"serie",void 0);F([w(),x("design:type",String)],ui.prototype,"nNF",void 0);var jt=class{static{s(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};F([w(),x("design:type",String)],jt.prototype,"cUF",void 0);F([w(),x("design:type",String)],jt.prototype,"AAMM",void 0);F([Ot(),w(),x("design:type",String)],jt.prototype,"CNPJ",void 0);F([Ot(),w(),x("design:type",String)],jt.prototype,"CPF",void 0);F([w(),x("design:type",String)],jt.prototype,"IE",void 0);F([w(),x("design:type",String)],jt.prototype,"mod",void 0);F([w(),x("design:type",String)],jt.prototype,"serie",void 0);F([w(),x("design:type",String)],jt.prototype,"nNF",void 0);jt=F([_g({properties:["CNPJ","CPF"],required:!0})],jt);var Sr=class{static{s(this,"RefECF")}mod;nECF;nCOO};F([w(),x("design:type",String)],Sr.prototype,"mod",void 0);F([w(),x("design:type",String)],Sr.prototype,"nECF",void 0);F([w(),x("design:type",String)],Sr.prototype,"nCOO",void 0);var mi=class{static{s(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};F([Ot(),w(),x("design:type",String)],mi.prototype,"refNFe",void 0);F([Ot(),w(),x("design:type",String)],mi.prototype,"refNFeSig",void 0);F([Ot(),_s(),Ws(()=>ui),x("design:type",typeof IRefNF>"u"?Object:IRefNF)],mi.prototype,"refNF",void 0);F([Ot(),_s(),Ws(()=>jt),x("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],mi.prototype,"refNFP",void 0);F([Ot(),w(),x("design:type",String)],mi.prototype,"refCTe",void 0);F([Ot(),_s(),Ws(()=>Sr),x("design:type",typeof IRefECF>"u"?Object:IRefECF)],mi.prototype,"refECF",void 0);var V=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};F([Jg(Wg),x("design:type",typeof StateCode>"u"?Object:StateCode)],V.prototype,"cUF",void 0);F([w(),x("design:type",String)],V.prototype,"cNF",void 0);F([w(),x("design:type",String)],V.prototype,"natOp",void 0);F([w(),x("design:type",String)],V.prototype,"mod",void 0);F([w(),x("design:type",String)],V.prototype,"serie",void 0);F([w(),x("design:type",String)],V.prototype,"nNF",void 0);F([bp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhEmi",void 0);F([Ot(),bp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhSaiEnt",void 0);F([w(),x("design:type",String)],V.prototype,"tpNF",void 0);F([w(),x("design:type",String)],V.prototype,"idDest",void 0);F([w(),x("design:type",String)],V.prototype,"cMunFG",void 0);F([w(),x("design:type",String)],V.prototype,"tpImp",void 0);F([w(),x("design:type",typeof TpEmis>"u"?Object:TpEmis)],V.prototype,"tpEmis",void 0);F([w(),Ot(),x("design:type",String)],V.prototype,"cDV",void 0);F([w(),x("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],V.prototype,"tpAmb",void 0);F([w(),x("design:type",String)],V.prototype,"finNFe",void 0);F([w(),x("design:type",String)],V.prototype,"indFinal",void 0);F([w(),x("design:type",String)],V.prototype,"indPres",void 0);F([Ot(),w(),x("design:type",String)],V.prototype,"indIntermed",void 0);F([w(),x("design:type",String)],V.prototype,"procEmi",void 0);F([w(),x("design:type",String)],V.prototype,"verProc",void 0);F([Ot(),w(),bp({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhCont",void 0);F([Ot(),w(),x("design:type",String)],V.prototype,"xJust",void 0);F([Ot(),Xg(),Yg(999),_s({each:!0}),Ws(()=>mi),x("design:type",Array)],V.prototype,"NFref",void 0);import{IsOptional as Cr,IsString as hi,ValidateNested as Kg}from"class-validator";import{Choice as kg}from"nfets/core";import{Type as $g}from"class-transformer";import{IsOptional as Ks,IsString as fo}from"class-validator";function co(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(co,"_ts_decorate");function po(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(po,"_ts_metadata");var We=class{static{s(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};co([fo(),po("design:type",String)],We.prototype,"xLgr",void 0);co([fo(),po("design:type",String)],We.prototype,"nro",void 0);co([Ks(),fo(),po("design:type",String)],We.prototype,"xCpl",void 0);co([fo(),po("design:type",String)],We.prototype,"xBairro",void 0);co([fo(),po("design:type",String)],We.prototype,"cMun",void 0);co([fo(),po("design:type",String)],We.prototype,"xMun",void 0);co([fo(),po("design:type",String)],We.prototype,"UF",void 0);co([fo(),po("design:type",String)],We.prototype,"CEP",void 0);co([Ks(),fo(),po("design:type",String)],We.prototype,"cPais",void 0);co([Ks(),fo(),po("design:type",String)],We.prototype,"xPais",void 0);co([Ks(),fo(),po("design:type",String)],We.prototype,"fone",void 0);function lo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(lo,"_ts_decorate");function Vo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Vo,"_ts_metadata");var He=class{static{s(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"CNPJ",void 0);lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"CPF",void 0);lo([hi(),Vo("design:type",String)],He.prototype,"xNome",void 0);lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"xFant",void 0);lo([Kg(),$g(()=>We),Vo("design:type",typeof We>"u"?Object:We)],He.prototype,"enderEmit",void 0);lo([hi(),Vo("design:type",String)],He.prototype,"IE",void 0);lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"IEST",void 0);lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"IM",void 0);lo([Cr(),hi(),Vo("design:type",String)],He.prototype,"CNAE",void 0);lo([hi(),Vo("design:type",String)],He.prototype,"CRT",void 0);He=lo([kg({properties:["CNPJ","CPF"],required:!0})],He);import{IsOptional as gi,IsString as vi,ValidateNested as ev}from"class-validator";import{Type as tv}from"class-transformer";import{IsOptional as ho,IsString as go}from"class-validator";function uo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(uo,"_ts_decorate");function mo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(mo,"_ts_metadata");var yt=class{static{s(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};uo([ho(),go(),mo("design:type",String)],yt.prototype,"xLgr",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"nro",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"xCpl",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"xBairro",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"cMun",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"xMun",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"UF",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"CEP",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"cPais",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"xPais",void 0);uo([ho(),go(),mo("design:type",String)],yt.prototype,"fone",void 0);import{Choice as ov}from"nfets/core";function vo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(vo,"_ts_decorate");function Lo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Lo,"_ts_metadata");var Qe=class{static{s(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"CNPJ",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"CPF",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"idEstrangeiro",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"xNome",void 0);vo([gi(),ev(),tv(()=>yt),Lo("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],Qe.prototype,"enderDest",void 0);vo([vi(),Lo("design:type",String)],Qe.prototype,"indIEDest",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"IE",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"ISUF",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"IM",void 0);vo([gi(),vi(),Lo("design:type",String)],Qe.prototype,"email",void 0);Qe=vo([ov({properties:["CNPJ","CPF"],required:!0})],Qe);import{IsOptional as Ho,IsString as rt}from"class-validator";import{Choice as iv}from"nfets/core";function Ke(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ke,"_ts_decorate");function nt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(nt,"_ts_metadata");var _=class{static{s(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"CNPJ",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"CPF",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"xNome",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"xLgr",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"nro",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"xCpl",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"xBairro",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"cMun",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"xMun",void 0);Ke([rt(),nt("design:type",String)],_.prototype,"UF",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"CEP",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"cPais",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"xPais",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"fone",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"email",void 0);Ke([Ho(),rt(),nt("design:type",String)],_.prototype,"IE",void 0);_=Ke([iv({properties:["CNPJ","CPF"]})],_);import{IsOptional as ol,IsString as il}from"class-validator";import{Choice as nv}from"nfets/core";function Np(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Np,"_ts_decorate");function tl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(tl,"_ts_metadata");var Qo=class{static{s(this,"AutXML")}CNPJ;CPF};Np([ol(),il(),tl("design:type",String)],Qo.prototype,"CNPJ",void 0);Np([ol(),il(),tl("design:type",String)],Qo.prototype,"CPF",void 0);Qo=Np([nv({properties:["CNPJ","CPF"]})],Qo);import{IsOptional as rv,IsString as al}from"class-validator";function nl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(nl,"_ts_decorate");function rl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(rl,"_ts_metadata");var ki=class{static{s(this,"InfIntermed")}CNPJ;idCadIntTran};nl([al(),rl("design:type",String)],ki.prototype,"CNPJ",void 0);nl([rv(),al(),rl("design:type",String)],ki.prototype,"idCadIntTran",void 0);import{IsOptional as sl,IsString as Fp}from"class-validator";function Ip(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ip,"_ts_decorate");function Rp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Rp,"_ts_metadata");var yi=class{static{s(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Ip([Fp(),Rp("design:type",String)],yi.prototype,"UFSaidaPais",void 0);Ip([sl(),Fp(),Rp("design:type",String)],yi.prototype,"xLocExporta",void 0);Ip([sl(),Fp(),Rp("design:type",String)],yi.prototype,"xLocDespacho",void 0);import{IsOptional as Dp,IsString as wp}from"class-validator";function xp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(xp,"_ts_decorate");function Op(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Op,"_ts_metadata");var Si=class{static{s(this,"Compra")}xNEmp;xPed;xCont};xp([Dp(),wp(),Op("design:type",String)],Si.prototype,"xNEmp",void 0);xp([Dp(),wp(),Op("design:type",String)],Si.prototype,"xPed",void 0);xp([Dp(),wp(),Op("design:type",String)],Si.prototype,"xCont",void 0);import{IsOptional as cl,IsString as Ir}from"class-validator";function br(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(br,"_ts_decorate");function Nr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Nr,"_ts_metadata");var Zt=class{static{s(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};br([Ir(),Nr("design:type",String)],Zt.prototype,"CNPJ",void 0);br([Ir(),Nr("design:type",String)],Zt.prototype,"xContato",void 0);br([Ir(),Nr("design:type",String)],Zt.prototype,"email",void 0);br([Ir(),Nr("design:type",String)],Zt.prototype,"fone",void 0);br([cl(),Ir(),Nr("design:type",String)],Zt.prototype,"idCSRT",void 0);br([cl(),Ir(),Nr("design:type",String)],Zt.prototype,"hashCSRT",void 0);import{IsOptional as tc,ValidateNested as oc}from"class-validator";import{Type as ic}from"class-transformer";import{IsOptional as qo}from"class-validator";import{TransformDecimal as q}from"nfets/core";function H(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(H,"_ts_decorate");function Q(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Q,"_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};H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBC",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSDeson",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPUFDest",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFDest",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFRemet",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCP",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBCST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPSTRet",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMono",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMono",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoReten",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoReten",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoRet",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoRet",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vProd",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFrete",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vSeg",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vDesc",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vII",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPI",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPIDevol",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vPIS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vCOFINS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vOutro",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vNF",void 0);H([qo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vTotTrib",void 0);import{IsOptional as yo,IsString as pl}from"class-validator";import{TransformDecimal as Uo}from"nfets/core";function Yt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Yt,"_ts_decorate");function Xt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Xt,"_ts_metadata");var at=class{static{s(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vServ",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vBC",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vISS",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vPIS",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vCOFINS",void 0);Yt([pl(),Xt("design:type",String)],at.prototype,"dCompet",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDeducao",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vOutro",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDescIncond",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vDescCond",void 0);Yt([yo(),Uo({fixed:2}),Xt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],at.prototype,"vISSRet",void 0);Yt([yo(),pl(),Xt("design:type",String)],at.prototype,"cRegTrib",void 0);import{IsOptional as qn}from"class-validator";import{TransformDecimal as Un}from"nfets/core";function Hn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Hn,"_ts_decorate");function Qn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Qn,"_ts_metadata");var So=class{static{s(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vRetPIS",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vRetCOFINS",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vRetCSLL",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vBCIRRF",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vIRRF",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vBCRetPrev",void 0);Hn([qn(),Un({fixed:2}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],So.prototype,"vRetPrev",void 0);import{IsOptional as ec,ValidateNested as Bp}from"class-validator";import{IsOptional as Pa,ValidateNested as fl}from"class-validator";import{TransformDecimal as zp}from"nfets/core";function Pp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Pp,"_ts_decorate");function Ap(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ap,"_ts_metadata");var Gn=class{static{s(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};Pp([zp({fixed:2}),Ap("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gn.prototype,"vDif",void 0);Pp([zp({fixed:2}),Ap("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gn.prototype,"vDevTrib",void 0);Pp([zp({fixed:2}),Ap("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gn.prototype,"vIBSMun",void 0);import{Type as dl}from"class-transformer";import{TransformDecimal as Tp}from"nfets/core";function Ep(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ep,"_ts_decorate");function jp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(jp,"_ts_metadata");var Zn=class{static{s(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};Ep([Tp({fixed:2}),jp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"vDif",void 0);Ep([Tp({fixed:2}),jp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"vDevTrib",void 0);Ep([Tp({fixed:2}),jp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"vIBSUF",void 0);import{TransformDecimal as Mp}from"nfets/core";function Da(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Da,"_ts_decorate");function wa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(wa,"_ts_metadata");var Ci=class{static{s(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};Da([Pa(),fl(),dl(()=>Zn),wa("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Ci.prototype,"gIBSUF",void 0);Da([Pa(),fl(),dl(()=>Gn),wa("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Ci.prototype,"gIBSMun",void 0);Da([Pa(),Mp({fixed:2}),wa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vIBS",void 0);Da([Pa(),Mp({fixed:2}),wa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vCredPres",void 0);Da([Pa(),Mp({fixed:2}),wa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as av}from"nfets/core";import{Type as Vp}from"class-transformer";import{TransformDecimal as Ea}from"nfets/core";import{IsOptional as ja}from"class-validator";function Aa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Aa,"_ts_decorate");function za(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(za,"_ts_metadata");var bi=class{static{s(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};Aa([ja(),Ea({fixed:2}),za("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vDif",void 0);Aa([ja(),Ea({fixed:2}),za("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vDevTrib",void 0);Aa([ja(),Ea({fixed:2}),za("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCBS",void 0);Aa([ja(),Ea({fixed:2}),za("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCredPres",void 0);Aa([ja(),Ea({fixed:2}),za("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as xr}from"nfets/core";import{IsOptional as Or}from"class-validator";function Rr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Rr,"_ts_decorate");function Fr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fr,"_ts_metadata");var Go=class{static{s(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vIBSMono",void 0);Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vCBSMono",void 0);Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vIBSMonoReten",void 0);Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vCBSMonoReten",void 0);Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vIBSMonoRet",void 0);Rr([Or(),xr({fixed:2}),Fr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Go.prototype,"vCBSMonoRet",void 0);function ks(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ks,"_ts_decorate");function $s(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s($s,"_ts_metadata");var $i=class{static{s(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};ks([ec(),av({fixed:2}),$s("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$i.prototype,"vBCIBSCBS",void 0);ks([ec(),Bp(),Vp(()=>Ci),$s("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],$i.prototype,"gIBS",void 0);ks([ec(),Bp(),Vp(()=>bi),$s("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],$i.prototype,"gCBS",void 0);ks([ec(),Bp(),Vp(()=>Go),$s("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],$i.prototype,"gMono",void 0);import{TransformDecimal as sv}from"nfets/core";function Ta(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ta,"_ts_decorate");function Ma(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ma,"_ts_metadata");var Co=class{static{s(this,"Total")}ICMSTot;ISSQNtot;retTrib;IBSCBSTot;vNFTot};Ta([oc(),ic(()=>M),Ma("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Co.prototype,"ICMSTot",void 0);Ta([tc(),oc(),ic(()=>at),Ma("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Co.prototype,"ISSQNtot",void 0);Ta([tc(),oc(),ic(()=>So),Ma("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Co.prototype,"retTrib",void 0);Ta([tc(),oc(),ic(()=>$i),Ma("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Co.prototype,"IBSCBSTot",void 0);Ta([tc(),sv({fixed:2}),Ma("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vNFTot",void 0);import{ArrayMaxSize as hl,IsOptional as Wn,IsString as Lp,ValidateNested as Ba}from"class-validator";import{Type as Va}from"class-transformer";import{IsOptional as Xn,IsString as Jn}from"class-validator";import{Choice as cv}from"nfets/core";function en(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(en,"_ts_decorate");function Yn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Yn,"_ts_metadata");var st=class{static{s(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"CNPJ",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"CPF",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"xNome",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"IE",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"xEnder",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"xMun",void 0);en([Xn(),Jn(),Yn("design:type",String)],st.prototype,"UF",void 0);st=en([cv({properties:["CNPJ","CPF"]})],st);import{IsOptional as Pr,IsString as ll}from"class-validator";import{TransformDecimal as nc}from"nfets/core";function Dr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Dr,"_ts_decorate");function wr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(wr,"_ts_metadata");var Tt=class{static{s(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Dr([Pr(),nc({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vServ",void 0);Dr([Pr(),nc({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vBCRet",void 0);Dr([Pr(),nc({fixed:4}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"pICMSRet",void 0);Dr([Pr(),nc({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tt.prototype,"vICMSRet",void 0);Dr([Pr(),ll(),wr("design:type",String)],Tt.prototype,"CFOP",void 0);Dr([Pr(),ll(),wr("design:type",String)],Tt.prototype,"cMunFG",void 0);import{IsOptional as Er,IsString as jr}from"class-validator";function Ar(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ar,"_ts_decorate");function zr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zr,"_ts_metadata");var Zo=class{static{s(this,"VeicTransp")}placa;UF;RNTC};Ar([Er(),jr(),zr("design:type",String)],Zo.prototype,"placa",void 0);Ar([Er(),jr(),zr("design:type",String)],Zo.prototype,"UF",void 0);Ar([Er(),jr(),zr("design:type",String)],Zo.prototype,"RNTC",void 0);var _n=class{static{s(this,"Reboque")}placa;UF;RNTC};Ar([Er(),jr(),zr("design:type",String)],_n.prototype,"placa",void 0);Ar([Er(),jr(),zr("design:type",String)],_n.prototype,"UF",void 0);Ar([Er(),jr(),zr("design:type",String)],_n.prototype,"RNTC",void 0);import{IsOptional as Br,IsString as rc}from"class-validator";import{TransformDecimal as ul}from"nfets/core";function Tr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Tr,"_ts_decorate");function Mr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Mr,"_ts_metadata");var Yo=class{static{s(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Tr([Br(),rc(),Mr("design:type",String)],Yo.prototype,"qVol",void 0);Tr([Br(),rc(),Mr("design:type",String)],Yo.prototype,"esp",void 0);Tr([Br(),rc(),Mr("design:type",String)],Yo.prototype,"marca",void 0);Tr([Br(),rc(),Mr("design:type",String)],Yo.prototype,"nVol",void 0);Tr([Br(),ul({fixed:3}),Mr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yo.prototype,"pesoL",void 0);Tr([Br(),ul({fixed:3}),Mr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yo.prototype,"pesoB",void 0);import{Choice as ml}from"nfets/core";function Ni(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ni,"_ts_decorate");function tn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(tn,"_ts_metadata");var ct=class{static{s(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Ni([Lp(),tn("design:type",String)],ct.prototype,"modFrete",void 0);Ni([Wn(),Ba(),Va(()=>st),tn("design:type",typeof st>"u"?Object:st)],ct.prototype,"transporta",void 0);Ni([Wn(),Ba(),Va(()=>Tt),tn("design:type",typeof Tt>"u"?Object:Tt)],ct.prototype,"retTransp",void 0);Ni([Wn(),Ba(),Va(()=>Zo),tn("design:type",typeof Zo>"u"?Object:Zo)],ct.prototype,"veicTransp",void 0);Ni([Wn(),Ba({each:!0}),Va(()=>_n),hl(5),tn("design:type",Array)],ct.prototype,"reboque",void 0);Ni([Wn(),Lp(),tn("design:type",String)],ct.prototype,"vagao",void 0);Ni([Wn(),Lp(),tn("design:type",String)],ct.prototype,"balsa",void 0);Ni([Wn(),Ba({each:!0}),Va(()=>Yo),hl(5e3),tn("design:type",Array)],ct.prototype,"vol",void 0);ct=Ni([ml({properties:["veicTransp","reboque"]}),ml({properties:["vagao","balsa"]})],ct);import{ArrayMaxSize as pv,IsOptional as xi,IsString as Hp,ValidateNested as gl}from"class-validator";import{Type as vl}from"class-transformer";import{TransformDecimal as ac}from"nfets/core";function Ri(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ri,"_ts_decorate");function Fi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fi,"_ts_metadata");var Ii=class{static{s(this,"Fat")}nFat;vOrig;vDesc;vLiq};Ri([xi(),Hp(),Fi("design:type",String)],Ii.prototype,"nFat",void 0);Ri([xi(),ac({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vOrig",void 0);Ri([xi(),ac({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vDesc",void 0);Ri([xi(),ac({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vLiq",void 0);var Vr=class{static{s(this,"Dup")}nDup;dVenc;vDup};Ri([xi(),Hp(),Fi("design:type",String)],Vr.prototype,"nDup",void 0);Ri([xi(),Hp(),Fi("design:type",String)],Vr.prototype,"dVenc",void 0);Ri([xi(),ac({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vr.prototype,"vDup",void 0);var on=class{static{s(this,"Cobr")}fat;dup};Ri([xi(),gl(),vl(()=>Ii),Fi("design:type",typeof Ii>"u"?Object:Ii)],on.prototype,"fat",void 0);Ri([xi(),gl({each:!0}),pv(120),vl(()=>Vr),Fi("design:type",Array)],on.prototype,"dup",void 0);import{ArrayMaxSize as uv,ArrayMinSize as mv,IsOptional as hv,ValidateNested as gv}from"class-validator";import{Type as vv}from"class-transformer";import{IsOptional as Qp,IsString as qp,ValidateNested as fv}from"class-validator";import{Type as dv}from"class-transformer";import{IsOptional as Qr,IsString as qr}from"class-validator";function Lr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Lr,"_ts_decorate");function Hr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Hr,"_ts_metadata");var Mt=class{static{s(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"tpIntegra",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"CNPJ",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"tBand",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"cAut",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"CNPJReceb",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Mt.prototype,"idTermPag",void 0);import{TransformDecimal as lv}from"nfets/core";function La(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(La,"_ts_decorate");function Ha(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ha,"_ts_metadata");var Oi=class{static{s(this,"DetPag")}indPag;tPag;vPag;card;xPag};La([Qp(),qp(),Ha("design:type",String)],Oi.prototype,"indPag",void 0);La([qp(),Ha("design:type",typeof TPag>"u"?Object:TPag)],Oi.prototype,"tPag",void 0);La([lv({fixed:2}),Ha("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oi.prototype,"vPag",void 0);La([Qp(),fv(),dv(()=>Mt),Ha("design:type",typeof Mt>"u"?Object:Mt)],Oi.prototype,"card",void 0);La([Qp(),qp(),Ha("design:type",String)],Oi.prototype,"xPag",void 0);import{TransformDecimal as yv}from"nfets/core";function yl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(yl,"_ts_decorate");function Sl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Sl,"_ts_metadata");var nn=class{static{s(this,"Pag")}detPag;vTroco};yl([gv({each:!0}),mv(1),uv(100),vv(()=>Oi),Sl("design:type",Array)],nn.prototype,"detPag",void 0);yl([hv(),yv({fixed:2}),Sl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nn.prototype,"vTroco",void 0);import{ArrayMaxSize as Up,IsOptional as Kn,IsString as Gr,ValidateNested as Gp}from"class-validator";import{Type as Zp}from"class-transformer";function Di(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Di,"_ts_decorate");function wi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(wi,"_ts_metadata");var Ur=class{static{s(this,"InfAdicObs")}xCampo;xTexto};Di([Gr(),wi("design:type",String)],Ur.prototype,"xCampo",void 0);Di([Gr(),wi("design:type",String)],Ur.prototype,"xTexto",void 0);var Qa=class{static{s(this,"ProcRef")}nProc;indProc};Di([Kn(),Gr(),wi("design:type",String)],Qa.prototype,"nProc",void 0);Di([Kn(),Gr(),wi("design:type",String)],Qa.prototype,"indProc",void 0);var bo=class{static{s(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Di([Kn(),Gr(),wi("design:type",String)],bo.prototype,"infAdFisco",void 0);Di([Kn(),Gr(),wi("design:type",String)],bo.prototype,"infCpl",void 0);Di([Kn(),Gp({each:!0}),Zp(()=>Ur),Up(10),wi("design:type",Array)],bo.prototype,"obsCont",void 0);Di([Kn(),Gp({each:!0}),Zp(()=>Ur),Up(10),wi("design:type",Array)],bo.prototype,"obsFisco",void 0);Di([Kn(),Gp({each:!0}),Zp(()=>Qa),Up(100),wi("design:type",Array)],bo.prototype,"procRef",void 0);import{ArrayMaxSize as Cl,IsNotEmptyObject as Sv,IsObject as Cv,IsOptional as kn,IsString as rn,ValidateNested as bl}from"class-validator";import{Type as Yp}from"class-transformer";import{TransformDecimal as cc}from"nfets/core";function St(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(St,"_ts_decorate");function Ct(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ct,"_ts_metadata");var sc=class{static{s(this,"ForDiaAttributes")}dia};St([rn(),Ct("design:type",String)],sc.prototype,"dia",void 0);var qa=class{static{s(this,"ForDia")}$;qtde};St([Cv(),Sv(),Yp(()=>sc),Ct("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],qa.prototype,"$",void 0);St([rn(),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qa.prototype,"qtde",void 0);var Ua=class{static{s(this,"Deduc")}xDed;vDed};St([rn(),Ct("design:type",String)],Ua.prototype,"xDed",void 0);St([cc({fixed:2}),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ua.prototype,"vDed",void 0);var pt=class{static{s(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};St([rn(),Ct("design:type",String)],pt.prototype,"safra",void 0);St([rn(),Ct("design:type",String)],pt.prototype,"ref",void 0);St([bl({each:!0}),Cl(31),Yp(()=>qa),Ct("design:type",Array)],pt.prototype,"forDia",void 0);St([kn(),rn(),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotMes",void 0);St([kn(),rn(),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotAnt",void 0);St([kn(),rn(),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotGer",void 0);St([kn(),bl({each:!0}),Cl(10),Yp(()=>Ua),Ct("design:type",Array)],pt.prototype,"deduc",void 0);St([kn(),cc({fixed:2}),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vFor",void 0);St([kn(),cc({fixed:2}),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vTotDed",void 0);St([kn(),cc({fixed:2}),Ct("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vLiqFor",void 0);import{IsObject as Uv,IsOptional as ns,IsString as ou,ValidateNested as rs}from"class-validator";import{Type as as}from"class-transformer";import{ArrayMaxSize as Wa,IsArray as uc,IsObject as tr,IsOptional as k,IsString as be,ValidateNested as zi}from"class-validator";import{TransformDecimal as Ei}from"nfets/core";import{Type as ji}from"class-transformer";import{IsOptional as pc,IsString as Ya}from"class-validator";function Ga(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ga,"_ts_decorate");function Za(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Za,"_ts_metadata");var Pi=class{static{s(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};Ga([Ya(),Za("design:type",String)],Pi.prototype,"nLote",void 0);Ga([pc(),Ya(),Za("design:type",String)],Pi.prototype,"qLote",void 0);Ga([pc(),Ya(),Za("design:type",String)],Pi.prototype,"dFab",void 0);Ga([pc(),Ya(),Za("design:type",String)],Pi.prototype,"dVal",void 0);Ga([pc(),Ya(),Za("design:type",String)],Pi.prototype,"cAgreg",void 0);import{Choice as Ev}from"nfets/core";import{IsString as Dt,IsOptional as Xa,IsArray as bv,ValidateNested as Nv,ArrayMaxSize as Iv,ArrayMinSize as Rv}from"class-validator";import{Type as Fv}from"class-transformer";import{TransformDecimal as Nl,Choice as xv}from"nfets/core";function Ue(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ue,"_ts_decorate");function ke(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ke,"_ts_metadata");var an=class{static{s(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Ue([Dt(),ke("design:type",String)],an.prototype,"nAdicao",void 0);Ue([Dt(),ke("design:type",String)],an.prototype,"nSeqAdic",void 0);Ue([Dt(),ke("design:type",String)],an.prototype,"cFabricante",void 0);Ue([Nl({fixed:2}),ke("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"vDescDI",void 0);Ue([Xa(),Dt(),ke("design:type",String)],an.prototype,"nDraw",void 0);var qe=class{static{s(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Ue([Dt(),ke("design:type",String)],qe.prototype,"nDI",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"dDI",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"xLocDesemb",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"UFDesemb",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"dDesemb",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"tpViaTransp",void 0);Ue([Xa(),Nl({fixed:2}),ke("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qe.prototype,"vAFRMM",void 0);Ue([Dt(),ke("design:type",String)],qe.prototype,"tpIntermedio",void 0);Ue([Dt(),Xa(),ke("design:type",String)],qe.prototype,"CNPJ",void 0);Ue([Dt(),Xa(),ke("design:type",String)],qe.prototype,"CPF",void 0);Ue([Dt(),Xa(),ke("design:type",String)],qe.prototype,"UFTerceiro",void 0);Ue([bv(),Nv({each:!0}),Fv(()=>an),Iv(999),Rv(1),ke("design:type",Array)],qe.prototype,"adi",void 0);qe=Ue([xv({properties:["CNPJ","CPF"],required:!0})],qe);import{Type as Ov}from"class-transformer";import{IsOptional as Il,IsString as Xp,ValidateNested as Dv}from"class-validator";import{TransformDecimal as wv}from"nfets/core";function Ja(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ja,"_ts_decorate");function _a(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_a,"_ts_metadata");var Zr=class{static{s(this,"ExportInd")}nRE;chNFe;qExport};Ja([Xp(),_a("design:type",String)],Zr.prototype,"nRE",void 0);Ja([Xp(),_a("design:type",String)],Zr.prototype,"chNFe",void 0);Ja([wv({fixed:4}),_a("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zr.prototype,"qExport",void 0);var Yr=class{static{s(this,"DetExport")}nDraw;exportInd};Ja([Il(),Xp(),_a("design:type",String)],Yr.prototype,"nDraw",void 0);Ja([Il(),Dv(),Ov(()=>Zr),_a("design:type",typeof IExportInd>"u"?Object:IExportInd)],Yr.prototype,"exportInd",void 0);import{IsString as xl}from"class-validator";function Rl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Rl,"_ts_decorate");function Fl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fl,"_ts_metadata");var Xr=class{static{s(this,"InfProdNFF")}cProdFisco;cOperNFF};Rl([xl(),Fl("design:type",String)],Xr.prototype,"cProdFisco",void 0);Rl([xl(),Fl("design:type",String)],Xr.prototype,"cOperNFF",void 0);import{IsString as Ol}from"class-validator";import{TransformDecimal as Pv}from"nfets/core";function Jp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Jp,"_ts_decorate");function _p(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_p,"_ts_metadata");var $n=class{static{s(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};Jp([Ol(),_p("design:type",String)],$n.prototype,"xEmb",void 0);Jp([Pv({fixed:3}),_p("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$n.prototype,"qVolEmb",void 0);Jp([Ol(),_p("design:type",String)],$n.prototype,"uEmb",void 0);import{IsString as oe}from"class-validator";function ee(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 G=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};ee([oe(),te("design:type",String)],G.prototype,"tpOp",void 0);ee([oe(),te("design:type",String)],G.prototype,"chassi",void 0);ee([oe(),te("design:type",String)],G.prototype,"cCor",void 0);ee([oe(),te("design:type",String)],G.prototype,"xCor",void 0);ee([oe(),te("design:type",String)],G.prototype,"pot",void 0);ee([oe(),te("design:type",String)],G.prototype,"cilin",void 0);ee([oe(),te("design:type",String)],G.prototype,"pesoL",void 0);ee([oe(),te("design:type",String)],G.prototype,"pesoB",void 0);ee([oe(),te("design:type",String)],G.prototype,"nSerie",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpComb",void 0);ee([oe(),te("design:type",String)],G.prototype,"nMotor",void 0);ee([oe(),te("design:type",String)],G.prototype,"CMT",void 0);ee([oe(),te("design:type",String)],G.prototype,"dist",void 0);ee([oe(),te("design:type",String)],G.prototype,"anoMod",void 0);ee([oe(),te("design:type",String)],G.prototype,"anoFab",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpPint",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"espVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"VIN",void 0);ee([oe(),te("design:type",String)],G.prototype,"condVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"cMod",void 0);ee([oe(),te("design:type",String)],G.prototype,"cCorDENATRAN",void 0);ee([oe(),te("design:type",String)],G.prototype,"lota",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpRest",void 0);import{IsString as Dl}from"class-validator";import{TransformDecimal as Av}from"nfets/core";function Wp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Wp,"_ts_decorate");function Kp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Kp,"_ts_metadata");var er=class{static{s(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};Wp([Dl(),Kp("design:type",String)],er.prototype,"cProdANVISA",void 0);Wp([Dl(),Kp("design:type",String)],er.prototype,"xMotivoIsencao",void 0);Wp([Av({fixed:2}),Kp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],er.prototype,"vPMC",void 0);import{IsString as lc}from"class-validator";function fc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(fc,"_ts_decorate");function dc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(dc,"_ts_metadata");var sn=class{static{s(this,"Arma")}tpArma;nSerie;nCano;descr};fc([lc(),dc("design:type",String)],sn.prototype,"tpArma",void 0);fc([lc(),dc("design:type",String)],sn.prototype,"nSerie",void 0);fc([lc(),dc("design:type",String)],sn.prototype,"nCano",void 0);fc([lc(),dc("design:type",String)],sn.prototype,"descr",void 0);import{IsString as Ai,IsOptional as Xo,IsObject as kp,ValidateNested as $p,ArrayMaxSize as zv}from"class-validator";import{Type as ef}from"class-transformer";import{TransformDecimal as Jt}from"nfets/core";function ie(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ie,"_ts_decorate");function ne(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ne,"_ts_metadata");var Jr=class{static{s(this,"OrigComb")}indImport;cUFOrig;pOrig};ie([Ai(),ne("design:type",String)],Jr.prototype,"indImport",void 0);ie([Ai(),ne("design:type",String)],Jr.prototype,"cUFOrig",void 0);ie([Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jr.prototype,"pOrig",void 0);var _r=class{static{s(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ie([Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"qBCProd",void 0);ie([Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"vAliqProd",void 0);ie([Jt({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"vCIDE",void 0);var cn=class{static{s(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ie([Ai(),ne("design:type",String)],cn.prototype,"nBico",void 0);ie([Ai(),ne("design:type",String)],cn.prototype,"nBomba",void 0);ie([Ai(),ne("design:type",String)],cn.prototype,"nTanque",void 0);ie([Jt({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cn.prototype,"vEncIni",void 0);ie([Jt({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cn.prototype,"vEncFin",void 0);var $e=class{static{s(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ie([Ai(),ne("design:type",String)],$e.prototype,"cProdANP",void 0);ie([Ai(),ne("design:type",String)],$e.prototype,"descANP",void 0);ie([Xo(),Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGLP",void 0);ie([Xo(),Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNn",void 0);ie([Xo(),Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pGNi",void 0);ie([Xo(),Jt({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"vPart",void 0);ie([Ai(),Xo(),ne("design:type",String)],$e.prototype,"CODIF",void 0);ie([Xo(),Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"qTemp",void 0);ie([Ai(),ne("design:type",String)],$e.prototype,"UFCons",void 0);ie([Xo(),kp(),$p(),ef(()=>_r),ne("design:type",typeof ICIDE>"u"?Object:ICIDE)],$e.prototype,"CIDE",void 0);ie([Xo(),kp(),$p(),ef(()=>cn),ne("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],$e.prototype,"encerrante",void 0);ie([Xo(),Jt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$e.prototype,"pBio",void 0);ie([kp(),$p({each:!0}),ef(()=>Jr),zv(30),Xo(),ne("design:type",Array)],$e.prototype,"origComb",void 0);function P(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(P,"_ts_decorate");function A(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(A,"_ts_metadata");var O=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};P([be(),A("design:type",String)],O.prototype,"cProd",void 0);P([be(),A("design:type",String)],O.prototype,"cEAN",void 0);P([k(),be(),A("design:type",String)],O.prototype,"cBarra",void 0);P([be(),A("design:type",String)],O.prototype,"xProd",void 0);P([be(),A("design:type",String)],O.prototype,"NCM",void 0);P([k(),uc(),Wa(8),be({each:!0}),A("design:type",Array)],O.prototype,"NVE",void 0);P([k(),be(),A("design:type",String)],O.prototype,"CEST",void 0);P([k(),be(),A("design:type",String)],O.prototype,"indEscala",void 0);P([k(),be(),A("design:type",String)],O.prototype,"CNPJFab",void 0);P([k(),be(),A("design:type",String)],O.prototype,"cBenef",void 0);P([k(),tr(),A("design:type",Object)],O.prototype,"gCred",void 0);P([k(),be(),A("design:type",String)],O.prototype,"EXTIPI",void 0);P([be(),A("design:type",String)],O.prototype,"CFOP",void 0);P([be(),A("design:type",String)],O.prototype,"uCom",void 0);P([Ei({fixed:4}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"qCom",void 0);P([Ei({fixed:10}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vUnCom",void 0);P([Ei({fixed:2}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vProd",void 0);P([be(),A("design:type",String)],O.prototype,"cEANTrib",void 0);P([be(),A("design:type",String)],O.prototype,"uTrib",void 0);P([Ei({fixed:4}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"qTrib",void 0);P([Ei({fixed:10}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vUnTrib",void 0);P([k(),Ei({fixed:2}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vFrete",void 0);P([k(),Ei({fixed:2}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vSeg",void 0);P([k(),Ei({fixed:2}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vDesc",void 0);P([k(),Ei({fixed:2}),A("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vOutro",void 0);P([be(),A("design:type",String)],O.prototype,"indTot",void 0);P([k(),uc(),zi({each:!0}),Wa(100),ji(()=>qe),A("design:type",Array)],O.prototype,"DI",void 0);P([k(),uc(),zi({each:!0}),Wa(500),ji(()=>Yr),A("design:type",Array)],O.prototype,"detExport",void 0);P([k(),be(),A("design:type",String)],O.prototype,"xPed",void 0);P([k(),be(),A("design:type",String)],O.prototype,"nItemPed",void 0);P([k(),be(),A("design:type",String)],O.prototype,"nFCI",void 0);P([k(),uc(),zi({each:!0}),Wa(500),ji(()=>Pi),A("design:type",Array)],O.prototype,"rastro",void 0);P([k(),tr(),zi(),ji(()=>Xr),A("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],O.prototype,"infProdNFF",void 0);P([k(),tr(),zi(),ji(()=>$n),A("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],O.prototype,"infProdEmb",void 0);P([k(),tr(),zi(),ji(()=>G),A("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],O.prototype,"veicProd",void 0);P([k(),tr(),zi(),ji(()=>er),A("design:type",typeof IMed>"u"?Object:IMed)],O.prototype,"med",void 0);P([k(),tr(),zi({each:!0}),ji(()=>sn),Wa(500),A("design:type",Array)],O.prototype,"arma",void 0);P([k(),tr(),zi(),ji(()=>$e),A("design:type",typeof IComb>"u"?Object:IComb)],O.prototype,"comb",void 0);P([k(),be(),A("design:type",String)],O.prototype,"nRECOPI",void 0);O=P([Ev({properties:["veicProd","med","arma","comb"]})],O);import{Type as Ao}from"class-transformer";import{IsOptional as to,ValidateNested as zo}from"class-validator";import{IsOptional as l,IsString as S,Max as tf,ValidateNested as ge}from"class-validator";import{Type as ve}from"class-transformer";import{Choice as jv,TransformDecimal as m}from"nfets/core";function f(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(f,"_ts_decorate");function d(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(d,"_ts_metadata");var _t=class{static{s(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};f([S(),d("design:type",String)],_t.prototype,"orig",void 0);f([S(),d("design:type",String)],_t.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],_t.prototype,"modBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vBCFCP",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"pFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_t.prototype,"vFCP",void 0);var pn=class{static{s(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};f([S(),d("design:type",String)],pn.prototype,"orig",void 0);f([S(),d("design:type",String)],pn.prototype,"CST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"qBCMono",void 0);f([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"adRemICMS",void 0);f([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"vICMSMono",void 0);var he=class{static{s(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};f([S(),d("design:type",String)],he.prototype,"orig",void 0);f([S(),d("design:type",String)],he.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],he.prototype,"modBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCFCP",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vFCP",void 0);f([l(),S(),d("design:type",String)],he.prototype,"modBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pMVAST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pRedBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCFCPST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pFCPST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vFCPST",void 0);var Bt=class{static{s(this,"ICMS15")}orig;CST;qBCMono;adRemICMS;vICMSMono;qBCMonoReten;adRemICMSReten;vICMSMonoReten;pRedAdRem;motRedAdRem};f([S(),d("design:type",String)],Bt.prototype,"orig",void 0);f([S(),d("design:type",String)],Bt.prototype,"CST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"qBCMono",void 0);f([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"adRemICMS",void 0);f([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"vICMSMono",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"qBCMonoReten",void 0);f([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"adRemICMSReten",void 0);f([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"vICMSMonoReten",void 0);f([l(),m({fixed:4}),tf(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bt.prototype,"pRedAdRem",void 0);f([l(),S(),d("design:type",String)],Bt.prototype,"motRedAdRem",void 0);var bt=class{static{s(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS};f([S(),d("design:type",String)],bt.prototype,"orig",void 0);f([S(),d("design:type",String)],bt.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],bt.prototype,"modBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"pRedBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vBCFCP",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"pFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vICMSDeson",void 0);f([l(),S(),d("design:type",String)],bt.prototype,"motDesICMS",void 0);var ft=class{static{s(this,"ICMS30")}orig;CST;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST;vICMSDeson;motDesICMS};f([S(),d("design:type",String)],ft.prototype,"orig",void 0);f([S(),d("design:type",String)],ft.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],ft.prototype,"modBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pMVAST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pRedBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vBCFCPST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"pFCPST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vFCPST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ft.prototype,"vICMSDeson",void 0);f([l(),S(),d("design:type",String)],ft.prototype,"motDesICMS",void 0);var or=class{static{s(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};f([S(),d("design:type",String)],or.prototype,"orig",void 0);f([S(),d("design:type",String)],or.prototype,"CST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],or.prototype,"vICMSDeson",void 0);f([l(),S(),d("design:type",String)],or.prototype,"motDesICMS",void 0);var Wt=class{static{s(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};f([S(),d("design:type",String)],Wt.prototype,"orig",void 0);f([S(),d("design:type",String)],Wt.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],Wt.prototype,"modBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"pRedBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vICMS",void 0);f([l(),m({fixed:4}),tf(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"pDif",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vICMSDif",void 0);var Vt=class{static{s(this,"ICMS53")}orig;CST;qBCMono;adRemICMS;vICMSMonoOp;pDif;vICMSMonoDif;vICMSMono;qBCMonoDif;adRemICMSDif};f([S(),d("design:type",String)],Vt.prototype,"orig",void 0);f([S(),d("design:type",String)],Vt.prototype,"CST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"qBCMono",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"adRemICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vICMSMonoOp",void 0);f([l(),m({fixed:4}),tf(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"pDif",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vICMSMonoDif",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vICMSMono",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"qBCMonoDif",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"adRemICMSDif",void 0);var dt=class{static{s(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};f([S(),d("design:type",String)],dt.prototype,"orig",void 0);f([S(),d("design:type",String)],dt.prototype,"CST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vBCSTRet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vICMSSubstituto",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vICMSSTRet",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vBCFCPSTRet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pFCPSTRet",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vFCPSTRet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pRedBCEfet",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vBCEfet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pICMSEfet",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vICMSEfet",void 0);var fn=class{static{s(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};f([S(),d("design:type",String)],fn.prototype,"orig",void 0);f([S(),d("design:type",String)],fn.prototype,"CST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"qBCMonoRet",void 0);f([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"adRemICMSRet",void 0);f([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"vICMSMonoRet",void 0);var re=class{static{s(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};f([S(),d("design:type",String)],re.prototype,"orig",void 0);f([S(),d("design:type",String)],re.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],re.prototype,"modBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pRedBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCFCP",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMSDeson",void 0);f([l(),S(),d("design:type",String)],re.prototype,"motDesICMS",void 0);f([l(),S(),d("design:type",String)],re.prototype,"modBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pMVAST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pRedBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCFCPST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pFCPST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vFCPST",void 0);var ae=class{static{s(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};f([S(),d("design:type",String)],ae.prototype,"orig",void 0);f([S(),d("design:type",String)],ae.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],ae.prototype,"modBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pRedBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCFCP",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vFCP",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMSDeson",void 0);f([l(),S(),d("design:type",String)],ae.prototype,"motDesICMS",void 0);f([l(),S(),d("design:type",String)],ae.prototype,"modBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pMVAST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pRedBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCFCPST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pFCPST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vFCPST",void 0);var Ge=class{static{s(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};f([S(),d("design:type",String)],Ge.prototype,"orig",void 0);f([S(),d("design:type",String)],Ge.prototype,"CST",void 0);f([l(),S(),d("design:type",String)],Ge.prototype,"modBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pRedBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vICMS",void 0);f([l(),S(),d("design:type",String)],Ge.prototype,"modBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pMVAST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pRedBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vICMSST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pBCOp",void 0);f([l(),S(),d("design:type",String)],Ge.prototype,"UFST",void 0);var Ti=class{static{s(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};f([S(),d("design:type",String)],Ti.prototype,"orig",void 0);f([S(),d("design:type",String)],Ti.prototype,"CST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vBCSTRet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"pST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vICMSSubstituto",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vICMSSTRet",void 0);var ir=class{static{s(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};f([S(),d("design:type",String)],ir.prototype,"orig",void 0);f([S(),d("design:type",String)],ir.prototype,"CSOSN",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"pCredSN",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"vCredICMSSN",void 0);var Ka=class{static{s(this,"ICMSSN102")}orig;CSOSN};f([S(),d("design:type",String)],Ka.prototype,"orig",void 0);f([S(),d("design:type",String)],Ka.prototype,"CSOSN",void 0);var No=class{static{s(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};f([S(),d("design:type",String)],No.prototype,"orig",void 0);f([S(),d("design:type",String)],No.prototype,"CSOSN",void 0);f([l(),S(),d("design:type",String)],No.prototype,"modBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],No.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],No.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],No.prototype,"vICMSST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],No.prototype,"pCredSN",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],No.prototype,"vCredICMSSN",void 0);var Mi=class{static{s(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};f([S(),d("design:type",String)],Mi.prototype,"orig",void 0);f([S(),d("design:type",String)],Mi.prototype,"CSOSN",void 0);f([l(),S(),d("design:type",String)],Mi.prototype,"modBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vICMSST",void 0);var Bi=class{static{s(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};f([S(),d("design:type",String)],Bi.prototype,"orig",void 0);f([S(),d("design:type",String)],Bi.prototype,"CSOSN",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vBCSTRet",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"pST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vICMSSubstituto",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vICMSSTRet",void 0);var lt=class{static{s(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};f([S(),d("design:type",String)],lt.prototype,"orig",void 0);f([S(),d("design:type",String)],lt.prototype,"CSOSN",void 0);f([l(),S(),d("design:type",String)],lt.prototype,"modBC",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pRedBC",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pICMS",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vICMS",void 0);f([l(),S(),d("design:type",String)],lt.prototype,"modBCST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vBCST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pICMSST",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vICMSST",void 0);f([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pCredSN",void 0);f([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vCredICMSSN",void 0);var U=class{static{s(this,"ICMS")}ICMS00;ICMS02;ICMS10;ICMS15;ICMS20;ICMS30;ICMS40;ICMS51;ICMS53;ICMS60;ICMS61;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};f([l(),ge(),ve(()=>_t),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],U.prototype,"ICMS00",void 0);f([l(),ge(),ve(()=>pn),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],U.prototype,"ICMS02",void 0);f([l(),ge(),ve(()=>he),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],U.prototype,"ICMS10",void 0);f([l(),ge(),ve(()=>Bt),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],U.prototype,"ICMS15",void 0);f([l(),ge(),ve(()=>bt),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],U.prototype,"ICMS20",void 0);f([l(),ge(),ve(()=>ft),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],U.prototype,"ICMS30",void 0);f([l(),ge(),ve(()=>or),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],U.prototype,"ICMS40",void 0);f([l(),ge(),ve(()=>Wt),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],U.prototype,"ICMS51",void 0);f([l(),ge(),ve(()=>Vt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],U.prototype,"ICMS53",void 0);f([l(),ge(),ve(()=>dt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],U.prototype,"ICMS60",void 0);f([l(),ge(),ve(()=>fn),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],U.prototype,"ICMS61",void 0);f([l(),ge(),ve(()=>re),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],U.prototype,"ICMS70",void 0);f([l(),ge(),ve(()=>ae),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],U.prototype,"ICMS90",void 0);f([l(),ge(),ve(()=>Ge),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],U.prototype,"ICMSPart",void 0);f([l(),ge(),ve(()=>Ti),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],U.prototype,"ICMSST",void 0);f([l(),ge(),ve(()=>ir),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],U.prototype,"ICMSSN101",void 0);f([l(),ge(),ve(()=>Ka),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],U.prototype,"ICMSSN102",void 0);f([l(),ge(),ve(()=>No),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],U.prototype,"ICMSSN201",void 0);f([l(),ge(),ve(()=>Mi),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],U.prototype,"ICMSSN202",void 0);f([l(),ge(),ve(()=>Bi),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],U.prototype,"ICMSSN500",void 0);f([l(),ge(),ve(()=>lt),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],U.prototype,"ICMSSN900",void 0);U=f([jv({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],U);import{IsOptional as Jo,IsString as Io,ValidateNested as wl}from"class-validator";import{Type as Pl}from"class-transformer";function Lt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Lt,"_ts_decorate");function Ht(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ht,"_ts_metadata");var Vi=class{static{s(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Lt([Io(),Ht("design:type",String)],Vi.prototype,"CST",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Vi.prototype,"vBC",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Vi.prototype,"pIPI",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Vi.prototype,"qUnid",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Vi.prototype,"vUnid",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Vi.prototype,"vIPI",void 0);var mc=class{static{s(this,"IPINT")}CST};Lt([Io(),Ht("design:type",String)],mc.prototype,"CST",void 0);var Kt=class{static{s(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Lt([Jo(),Io(),Ht("design:type",String)],Kt.prototype,"CNPJProd",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Kt.prototype,"cSelo",void 0);Lt([Jo(),Io(),Ht("design:type",String)],Kt.prototype,"qSelo",void 0);Lt([Io(),Ht("design:type",String)],Kt.prototype,"cEnq",void 0);Lt([Jo(),wl(),Pl(()=>Vi),Ht("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Kt.prototype,"IPITrib",void 0);Lt([Jo(),wl(),Pl(()=>mc),Ht("design:type",typeof IIPINT>"u"?Object:IIPINT)],Kt.prototype,"IPINT",void 0);import{IsOptional as vc,IsString as yc}from"class-validator";function hc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(hc,"_ts_decorate");function gc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(gc,"_ts_metadata");var _o=class{static{s(this,"II")}vBC;vDespAdu;vII;vIOF};hc([vc(),yc(),gc("design:type",String)],_o.prototype,"vBC",void 0);hc([vc(),yc(),gc("design:type",String)],_o.prototype,"vDespAdu",void 0);hc([vc(),yc(),gc("design:type",String)],_o.prototype,"vII",void 0);hc([vc(),yc(),gc("design:type",String)],_o.prototype,"vIOF",void 0);import{IsOptional as Ne,IsString as Ie,ValidateNested as Sc}from"class-validator";import{Type as Cc}from"class-transformer";import{TransformDecimal as Ko}from"nfets/core";function se(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(se,"_ts_decorate");function ce(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ce,"_ts_metadata");var Li=class{static{s(this,"PISAliq")}CST;vBC;pPIS;vPIS};se([Ie(),ce("design:type",String)],Li.prototype,"CST",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Li.prototype,"vBC",void 0);se([Ne(),Ie(),Ko({fixed:4}),ce("design:type",String)],Li.prototype,"pPIS",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Li.prototype,"vPIS",void 0);var Hi=class{static{s(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};se([Ie(),ce("design:type",String)],Hi.prototype,"CST",void 0);se([Ne(),Ie(),ce("design:type",String)],Hi.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],Hi.prototype,"vAliqProd",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Hi.prototype,"vPIS",void 0);var Wr=class{static{s(this,"PISNT")}CST};se([Ie(),ce("design:type",String)],Wr.prototype,"CST",void 0);var Ro=class{static{s(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ie(),ce("design:type",String)],Ro.prototype,"CST",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Ro.prototype,"vBC",void 0);se([Ne(),Ie(),Ko({fixed:4}),ce("design:type",String)],Ro.prototype,"pPIS",void 0);se([Ne(),Ie(),ce("design:type",String)],Ro.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],Ro.prototype,"vAliqProd",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Ro.prototype,"vPIS",void 0);var Wo=class{static{s(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};se([Ne(),Sc(),Cc(()=>Li),ce("design:type",typeof Li>"u"?Object:Li)],Wo.prototype,"PISAliq",void 0);se([Ne(),Sc(),Cc(()=>Hi),ce("design:type",typeof Hi>"u"?Object:Hi)],Wo.prototype,"PISQtde",void 0);se([Ne(),Sc(),Cc(()=>Wr),ce("design:type",typeof Wr>"u"?Object:Wr)],Wo.prototype,"PISNT",void 0);se([Ne(),Sc(),Cc(()=>Ro),ce("design:type",typeof Ro>"u"?Object:Ro)],Wo.prototype,"PISOutr",void 0);var Fo=class{static{s(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Fo.prototype,"vBC",void 0);se([Ne(),Ie(),Ko({fixed:4}),ce("design:type",String)],Fo.prototype,"pPIS",void 0);se([Ne(),Ie(),ce("design:type",String)],Fo.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],Fo.prototype,"vAliqProd",void 0);se([Ne(),Ie(),Ko({fixed:2}),ce("design:type",String)],Fo.prototype,"vPIS",void 0);import{IsOptional as Re,IsString as Fe,ValidateNested as bc}from"class-validator";import{Type as Nc}from"class-transformer";import{TransformDecimal as $o}from"nfets/core";function pe(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(pe,"_ts_decorate");function fe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(fe,"_ts_metadata");var Qi=class{static{s(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};pe([Fe(),fe("design:type",String)],Qi.prototype,"CST",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],Qi.prototype,"vBC",void 0);pe([Re(),Fe(),$o({fixed:4}),fe("design:type",String)],Qi.prototype,"pCOFINS",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],Qi.prototype,"vCOFINS",void 0);var qi=class{static{s(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};pe([Fe(),fe("design:type",String)],qi.prototype,"CST",void 0);pe([Re(),Fe(),fe("design:type",String)],qi.prototype,"qBCProd",void 0);pe([Re(),Fe(),fe("design:type",String)],qi.prototype,"vAliqProd",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],qi.prototype,"vCOFINS",void 0);var Kr=class{static{s(this,"COFINSNT")}CST};pe([Fe(),fe("design:type",String)],Kr.prototype,"CST",void 0);var xo=class{static{s(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};pe([Fe(),fe("design:type",String)],xo.prototype,"CST",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],xo.prototype,"vBC",void 0);pe([Re(),Fe(),$o({fixed:4}),fe("design:type",String)],xo.prototype,"pCOFINS",void 0);pe([Re(),Fe(),fe("design:type",String)],xo.prototype,"qBCProd",void 0);pe([Re(),Fe(),fe("design:type",String)],xo.prototype,"vAliqProd",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],xo.prototype,"vCOFINS",void 0);var ko=class{static{s(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};pe([Re(),bc(),Nc(()=>Qi),fe("design:type",typeof Qi>"u"?Object:Qi)],ko.prototype,"COFINSAliq",void 0);pe([Re(),bc(),Nc(()=>qi),fe("design:type",typeof qi>"u"?Object:qi)],ko.prototype,"COFINSQtde",void 0);pe([Re(),bc(),Nc(()=>Kr),fe("design:type",typeof Kr>"u"?Object:Kr)],ko.prototype,"COFINSNT",void 0);pe([Re(),bc(),Nc(()=>xo),fe("design:type",typeof xo>"u"?Object:xo)],ko.prototype,"COFINSOutr",void 0);var Oo=class{static{s(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],Oo.prototype,"vBC",void 0);pe([Re(),Fe(),$o({fixed:4}),fe("design:type",String)],Oo.prototype,"pCOFINS",void 0);pe([Re(),Fe(),fe("design:type",String)],Oo.prototype,"qBCProd",void 0);pe([Re(),Fe(),fe("design:type",String)],Oo.prototype,"vAliqProd",void 0);pe([Re(),Fe(),$o({fixed:2}),fe("design:type",String)],Oo.prototype,"vCOFINS",void 0);import{IsOptional as wt,IsString as dn}from"class-validator";import{TransformDecimal as ln}from"nfets/core";function ut(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ut,"_ts_decorate");function mt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(mt,"_ts_metadata");var de=class{static{s(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBC",void 0);ut([wt(),ln({fixed:4}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vAliq",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vISSQN",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"cMunFG",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"cListServ",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDeducao",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vOutro",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDescIncond",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDescCond",void 0);ut([wt(),ln({fixed:2}),mt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vISSRet",void 0);ut([dn(),mt("design:type",String)],de.prototype,"indISS",void 0);ut([dn(),mt("design:type",String)],de.prototype,"indIncentivo",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"cServico",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"cMun",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"cPais",void 0);ut([wt(),dn(),mt("design:type",String)],de.prototype,"nProcesso",void 0);import{IsOptional as Zi,IsString as Yi}from"class-validator";function Ui(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ui,"_ts_decorate");function Gi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gi,"_ts_metadata");var Nt=class{static{s(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"vBCUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"vBCFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"pFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"pICMSUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"pICMSInter",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"pICMSInterPart",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"vFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"vICMSUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],Nt.prototype,"vICMSUFRemet",void 0);import{IsOptional as ri,IsString as yf,ValidateNested as nr}from"class-validator";import{IsOptional as El,IsString as jl}from"class-validator";function Al(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Al,"_ts_decorate");function zl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zl,"_ts_metadata");var un=class{static{s(this,"TransferenciaCredito")}vIBS;vCBS};Al([El(),jl(),zl("design:type",String)],un.prototype,"vIBS",void 0);Al([El(),jl(),zl("design:type",String)],un.prototype,"vCBS",void 0);import{IsString as rf}from"class-validator";function of(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(of,"_ts_decorate");function nf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(nf,"_ts_metadata");var Xi=class{static{s(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};of([rf(),nf("design:type",String)],Xi.prototype,"tpCredPresIBSZFM",void 0);of([rf(),nf("design:type",String)],Xi.prototype,"vCredPresIBSZFM",void 0);of([rf(),nf("design:type",String)],Xi.prototype,"competApur",void 0);import{IsOptional as Tl,IsString as gn,ValidateNested as Ml}from"class-validator";import{Type as Bl}from"class-transformer";function ti(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ti,"_ts_decorate");function oi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(oi,"_ts_metadata");var mn=class{static{s(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ti([gn(),oi("design:type",String)],mn.prototype,"vCredPresCondSus",void 0);ti([gn(),oi("design:type",String)],mn.prototype,"pCredPres",void 0);ti([gn(),oi("design:type",String)],mn.prototype,"vCredPres",void 0);var hn=class{static{s(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};ti([gn(),oi("design:type",String)],hn.prototype,"vCredPresCondSus",void 0);ti([gn(),oi("design:type",String)],hn.prototype,"pCredPres",void 0);ti([gn(),oi("design:type",String)],hn.prototype,"vCredPres",void 0);var ei=class{static{s(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};ti([Tl(),Ml(),Bl(()=>mn),oi("design:type",typeof mn>"u"?Object:mn)],ei.prototype,"gIBSCredPres",void 0);ti([Tl(),Ml(),Bl(()=>hn),oi("design:type",typeof hn>"u"?Object:hn)],ei.prototype,"gCBSCredPres",void 0);ti([gn(),oi("design:type",String)],ei.prototype,"vBCCredPres",void 0);ti([gn(),oi("design:type",String)],ei.prototype,"cCredPres",void 0);import{IsString as Hl}from"class-validator";function Vl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Vl,"_ts_decorate");function Ll(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ll,"_ts_metadata");var vn=class{static{s(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Vl([Hl(),Ll("design:type",String)],vn.prototype,"vIBSEstCred",void 0);Vl([Hl(),Ll("design:type",String)],vn.prototype,"vCBSEstCred",void 0);import{IsString as cf}from"class-validator";function af(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(af,"_ts_decorate");function sf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(sf,"_ts_metadata");var Ji=class{static{s(this,"AjusteCompet")}competApur;vCBS;vIBS};af([cf(),sf("design:type",String)],Ji.prototype,"competApur",void 0);af([cf(),sf("design:type",String)],Ji.prototype,"vCBS",void 0);af([cf(),sf("design:type",String)],Ji.prototype,"vIBS",void 0);import{IsOptional as Pt,IsString as Ce}from"class-validator";function ye(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ye,"_ts_decorate");function Se(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Se,"_ts_metadata");var J=class{static{s(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};ye([Ce(),Se("design:type",String)],J.prototype,"vTotIBSMonoItem",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vTotCBSMonoItem",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"adRemIBS",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"adRemCBS",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vIBSMono",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vCBSMono",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"qBCMono",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"adRemIBSReten",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoReten",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"adRemCBSReten",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoReten",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"qBCMonoReten",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"adRemIBSRet",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoRet",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"adRemCBSRet",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoRet",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"qBCMonoRet",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoDif",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoDif",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"pDifIBS",void 0);ye([Pt(),Ce(),Se("design:type",String)],J.prototype,"pDifCBS",void 0);import{IsOptional as Ic,IsString as Wl,ValidateNested as Rc}from"class-validator";import{IsString as Cn}from"class-validator";function yn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 At=class{static{s(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};yn([Cn(),Sn("design:type",String)],At.prototype,"CSTReg",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"cClassTribReg",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"pAliqEfetRegIBSUF",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"vTribRegIBSUF",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"pAliqEfetRegIBSMun",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"vTribRegIBSMun",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"pAliqEfetRegCBS",void 0);yn([Cn(),Sn("design:type",String)],At.prototype,"vTribRegCBS",void 0);import{Type as Fc}from"class-transformer";import{IsOptional as pf,IsString as Xl,ValidateNested as ff}from"class-validator";import{Type as df}from"class-transformer";import{IsString as Bv}from"class-validator";function Tv(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Tv,"_ts_decorate");function Mv(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Mv,"_ts_metadata");var It=class{static{s(this,"DevTrib")}vDevTrib};Tv([Bv(),Mv("design:type",String)],It.prototype,"vDevTrib",void 0);import{IsString as Ul}from"class-validator";function Ql(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ql,"_ts_decorate");function ql(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ql,"_ts_metadata");var ht=class{static{s(this,"Dif")}pDif;vDif};Ql([Ul(),ql("design:type",String)],ht.prototype,"pDif",void 0);Ql([Ul(),ql("design:type",String)],ht.prototype,"vDif",void 0);import{IsString as Yl}from"class-validator";function Gl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Gl,"_ts_decorate");function Zl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Zl,"_ts_metadata");var gt=class{static{s(this,"Red")}pAliqEfet;pRedAliq};Gl([Yl(),Zl("design:type",String)],gt.prototype,"pAliqEfet",void 0);Gl([Yl(),Zl("design:type",String)],gt.prototype,"pRedAliq",void 0);function ka(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ka,"_ts_decorate");function $a(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s($a,"_ts_metadata");var Do=class{static{s(this,"IBSMun")}pIBSMun;vIBSMun;gDevTrib;gDif;gRed};ka([Xl(),$a("design:type",String)],Do.prototype,"pIBSMun",void 0);ka([Xl(),$a("design:type",String)],Do.prototype,"vIBSMun",void 0);ka([pf(),ff(),df(()=>It),$a("design:type",typeof It>"u"?Object:It)],Do.prototype,"gDevTrib",void 0);ka([pf(),ff(),df(()=>ht),$a("design:type",typeof ht>"u"?Object:ht)],Do.prototype,"gDif",void 0);ka([pf(),ff(),df(()=>gt),$a("design:type",typeof gt>"u"?Object:gt)],Do.prototype,"gRed",void 0);import{IsOptional as lf,IsString as Jl,ValidateNested as uf}from"class-validator";import{Type as mf}from"class-transformer";function es(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(es,"_ts_decorate");function ts(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ts,"_ts_metadata");var wo=class{static{s(this,"IBSUF")}pIBSUF;vIBSUF;gDevTrib;gDif;gRed};es([Jl(),ts("design:type",String)],wo.prototype,"pIBSUF",void 0);es([Jl(),ts("design:type",String)],wo.prototype,"vIBSUF",void 0);es([lf(),uf(),mf(()=>It),ts("design:type",typeof It>"u"?Object:It)],wo.prototype,"gDevTrib",void 0);es([lf(),uf(),mf(()=>ht),ts("design:type",typeof ht>"u"?Object:ht)],wo.prototype,"gDif",void 0);es([lf(),uf(),mf(()=>gt),ts("design:type",typeof gt>"u"?Object:gt)],wo.prototype,"gRed",void 0);import{IsOptional as hf,IsString as _l,ValidateNested as gf}from"class-validator";import{Type as vf}from"class-transformer";function os(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(os,"_ts_decorate");function is(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(is,"_ts_metadata");var Po=class{static{s(this,"CBS")}pCBS;vCBS;gDevTrib;gDif;gRed};os([_l(),is("design:type",String)],Po.prototype,"pCBS",void 0);os([_l(),is("design:type",String)],Po.prototype,"vCBS",void 0);os([hf(),gf(),vf(()=>It),is("design:type",typeof It>"u"?Object:It)],Po.prototype,"gDevTrib",void 0);os([hf(),gf(),vf(()=>ht),is("design:type",typeof ht>"u"?Object:ht)],Po.prototype,"gDif",void 0);os([hf(),gf(),vf(()=>gt),is("design:type",typeof gt>"u"?Object:gt)],Po.prototype,"gRed",void 0);function kr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(kr,"_ts_decorate");function $r(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s($r,"_ts_metadata");var kt=class{static{s(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};kr([Wl(),$r("design:type",String)],kt.prototype,"vBC",void 0);kr([Ic(),Rc(),Fc(()=>wo),$r("design:type",typeof wo>"u"?Object:wo)],kt.prototype,"gIBSUF",void 0);kr([Ic(),Rc(),Fc(()=>Do),$r("design:type",typeof Do>"u"?Object:Do)],kt.prototype,"gIBSMun",void 0);kr([Wl(),$r("design:type",String)],kt.prototype,"vIBS",void 0);kr([Ic(),Rc(),Fc(()=>Po),$r("design:type",typeof Po>"u"?Object:Po)],kt.prototype,"gCBS",void 0);kr([Ic(),Rc(),Fc(()=>At),$r("design:type",typeof At>"u"?Object:At)],kt.prototype,"gTribRegular",void 0);import{Type as rr}from"class-transformer";function ii(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ii,"_ts_decorate");function ni(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ni,"_ts_metadata");var je=class{static{s(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};ii([ri(),yf(),ni("design:type",String)],je.prototype,"CST",void 0);ii([ri(),yf(),ni("design:type",String)],je.prototype,"cClassTrib",void 0);ii([ri(),yf(),ni("design:type",String)],je.prototype,"indDoacao",void 0);ii([ri(),nr(),rr(()=>un),ni("design:type",typeof un>"u"?Object:un)],je.prototype,"gTransfCred",void 0);ii([ri(),nr(),rr(()=>Xi),ni("design:type",typeof Xi>"u"?Object:Xi)],je.prototype,"gCredPresIBSZFM",void 0);ii([ri(),nr(),rr(()=>ei),ni("design:type",typeof ei>"u"?Object:ei)],je.prototype,"gCredPresOper",void 0);ii([ri(),nr(),rr(()=>Ji),ni("design:type",typeof Ji>"u"?Object:Ji)],je.prototype,"gAjusteCompet",void 0);ii([ri(),nr(),rr(()=>vn),ni("design:type",typeof vn>"u"?Object:vn)],je.prototype,"gEstornoCred",void 0);ii([ri(),nr(),rr(()=>J),ni("design:type",typeof J>"u"?Object:J)],je.prototype,"gIBSCBSMono",void 0);ii([ri(),nr(),rr(()=>kt),ni("design:type",typeof kt>"u"?Object:kt)],je.prototype,"gIBSCBS",void 0);import{IsString as In}from"class-validator";function bn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(bn,"_ts_decorate");function Nn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Nn,"_ts_metadata");var $t=class{static{s(this,"IS")}cClassTrib;CSTIS;pISEspec;vBCIS;uTrib;qTrib;pIS;vIS};bn([In(),Nn("design:type",String)],$t.prototype,"cClassTrib",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"CSTIS",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"pISEspec",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"vBCIS",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"uTrib",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"qTrib",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"pIS",void 0);bn([In(),Nn("design:type",String)],$t.prototype,"vIS",void 0);import{Choice as Vv,TransformDecimal as Lv}from"nfets/core";function Qt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Qt,"_ts_decorate");function eo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(eo,"_ts_metadata");var xe=class{static{s(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IBSCBS;IS};Qt([to(),Lv({fixed:2}),eo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xe.prototype,"vTotTrib",void 0);Qt([to(),zo(),Ao(()=>U),eo("design:type",typeof IICMS>"u"?Object:IICMS)],xe.prototype,"ICMS",void 0);Qt([to(),zo(),Ao(()=>Kt),eo("design:type",typeof IIPI>"u"?Object:IIPI)],xe.prototype,"IPI",void 0);Qt([to(),zo(),Ao(()=>de),eo("design:type",typeof IISSQN>"u"?Object:IISSQN)],xe.prototype,"ISSQN",void 0);Qt([to(),zo(),Ao(()=>_o),eo("design:type",typeof III>"u"?Object:III)],xe.prototype,"II",void 0);Qt([to(),zo(),Ao(()=>Wo),eo("design:type",typeof IPIS>"u"?Object:IPIS)],xe.prototype,"PIS",void 0);Qt([to(),zo(),Ao(()=>Fo),eo("design:type",typeof IPISST>"u"?Object:IPISST)],xe.prototype,"PISST",void 0);Qt([to(),zo(),Ao(()=>ko),eo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],xe.prototype,"COFINS",void 0);Qt([to(),zo(),Ao(()=>Oo),eo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],xe.prototype,"COFINSST",void 0);Qt([to(),zo(),Ao(()=>Nt),eo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],xe.prototype,"ICMSUFDest",void 0);Qt([to(),zo(),Ao(()=>je),eo("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],xe.prototype,"IBSCBS",void 0);Qt([to(),zo(),Ao(()=>$t),eo("design:type",typeof IIS>"u"?Object:IIS)],xe.prototype,"IS",void 0);xe=Qt([Vv({properties:["ICMS","ISSQN"]})],xe);import{IsOptional as Hv,IsString as Kl,ValidateNested as Qv}from"class-validator";import{Type as qv}from"class-transformer";function Sf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Sf,"_ts_decorate");function Cf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Cf,"_ts_metadata");var xc=class{static{s(this,"IpiDevol")}vIPIDevol};Sf([Kl(),Cf("design:type",String)],xc.prototype,"vIPIDevol",void 0);var ea=class{static{s(this,"Devol")}pDevol;IPI};Sf([Kl(),Cf("design:type",String)],ea.prototype,"pDevol",void 0);Sf([Hv(),Qv(),qv(()=>xc),Cf("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],ea.prototype,"IPI",void 0);import{IsOptional as kl,IsString as $l,ValidateNested as eu}from"class-validator";import{Type as tu}from"class-transformer";function Oc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Oc,"_ts_decorate");function Dc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Dc,"_ts_metadata");var ta=class{static{s(this,"Observation")}xCampo;xTexto};Oc([$l(),Dc("design:type",String)],ta.prototype,"xCampo",void 0);Oc([$l(),Dc("design:type",String)],ta.prototype,"xTexto",void 0);var oa=class{static{s(this,"ObsItem")}obsCont;obsFisco};Oc([kl(),eu(),tu(()=>ta),Dc("design:type",typeof IObservation>"u"?Object:IObservation)],oa.prototype,"obsCont",void 0);Oc([kl(),eu(),tu(()=>ta),Dc("design:type",typeof IObservation>"u"?Object:IObservation)],oa.prototype,"obsFisco",void 0);import{TransformDecimal as Gv}from"nfets/core";function Rn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Rn,"_ts_decorate");function Fn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fn,"_ts_metadata");var ia=class{static{s(this,"DetAttributes")}nItem};Rn([ou(),Fn("design:type",String)],ia.prototype,"nItem",void 0);var Eo=class{static{s(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};Rn([Uv(),rs(),as(()=>ia),Fn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Eo.prototype,"$",void 0);Rn([rs(),as(()=>O),Fn("design:type",typeof IProd>"u"?Object:IProd)],Eo.prototype,"prod",void 0);Rn([ns(),rs(),as(()=>xe),Fn("design:type",typeof IImposto>"u"?Object:IImposto)],Eo.prototype,"imposto",void 0);Rn([ns(),rs(),as(()=>ea),Fn("design:type",typeof IDevol>"u"?Object:IDevol)],Eo.prototype,"impostoDevol",void 0);Rn([ns(),ou(),Fn("design:type",String)],Eo.prototype,"infAdProd",void 0);Rn([ns(),rs(),as(()=>oa),Fn("design:type",typeof IObsItem>"u"?Object:IObsItem)],Eo.prototype,"obsItem",void 0);Rn([ns(),Gv({fixed:2}),Fn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vItem",void 0);import{IsDate as Zv,IsOptional as ss,IsString as xn}from"class-validator";import{TransformDecimal as Yv,TransformDateString as Xv}from"nfets/core";function jo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(jo,"_ts_decorate");function To(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(To,"_ts_metadata");var et=class{static{s(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};jo([xn(),To("design:type",String)],et.prototype,"CNPJ",void 0);jo([xn(),To("design:type",String)],et.prototype,"xOrgao",void 0);jo([xn(),To("design:type",String)],et.prototype,"matr",void 0);jo([xn(),To("design:type",String)],et.prototype,"xAgente",void 0);jo([ss(),xn(),To("design:type",String)],et.prototype,"fone",void 0);jo([xn(),To("design:type",String)],et.prototype,"UF",void 0);jo([ss(),xn(),To("design:type",String)],et.prototype,"nDAR",void 0);jo([ss(),Xv({format:"YYYY-MM-DD"}),To("design:type",typeof Date>"u"?Object:Date)],et.prototype,"dEmi",void 0);jo([ss(),Yv({fixed:2}),To("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vDAR",void 0);jo([xn(),To("design:type",String)],et.prototype,"repEmi",void 0);jo([ss(),Zv(),To("design:type",typeof Date>"u"?Object:Date)],et.prototype,"dPag",void 0);import{IsString as Wv}from"class-validator";function Jv(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Jv,"_ts_decorate");function _v(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_v,"_ts_metadata");var ar=class{static{s(this,"InfSolicNFF")}xSolic};Jv([Wv(),_v("design:type",String)],ar.prototype,"xSolic",void 0);function le(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(le,"_ts_decorate");function ue(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ue,"_ts_metadata");var sr=class{static{s(this,"InfNFeAttributes")}Id;versao};le([Rt(),nu(),ue("design:type",String)],sr.prototype,"Id",void 0);le([Rt(),nu(),ue("design:type",String)],sr.prototype,"versao",void 0);var W=class{static{s(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};le([Nf(),bf(),De(()=>sr),Oe(),ue("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],W.prototype,"$",void 0);le([Nf(),bf(),Oe(),De(()=>V),ue("design:type",typeof IIde>"u"?Object:IIde)],W.prototype,"ide",void 0);le([Nf(),bf(),Oe(),De(()=>He),ue("design:type",typeof IEmit>"u"?Object:IEmit)],W.prototype,"emit",void 0);le([Rt(),Oe(),De(()=>et),ue("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],W.prototype,"avulsa",void 0);le([Rt(),Oe(),De(()=>Qe),ue("design:type",typeof IDest>"u"?Object:IDest)],W.prototype,"dest",void 0);le([Rt(),Oe(),De(()=>_),ue("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"retirada",void 0);le([Rt(),Oe(),De(()=>_),ue("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"entrega",void 0);le([Rt(),Oe({each:!0}),iu(10),De(()=>Qo),ue("design:type",Array)],W.prototype,"autXML",void 0);le([Oe({each:!0}),iu(990),Kv(1),De(()=>Eo),ue("design:type",Array)],W.prototype,"det",void 0);le([Oe(),De(()=>Co),ue("design:type",typeof ITotal>"u"?Object:ITotal)],W.prototype,"total",void 0);le([Oe(),De(()=>ct),ue("design:type",typeof ITransp>"u"?Object:ITransp)],W.prototype,"transp",void 0);le([Rt(),Oe(),De(()=>on),ue("design:type",typeof ICobr>"u"?Object:ICobr)],W.prototype,"cobr",void 0);le([Oe(),De(()=>nn),ue("design:type",typeof IPag>"u"?Object:IPag)],W.prototype,"pag",void 0);le([Rt(),Oe(),De(()=>ki),ue("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],W.prototype,"infIntermed",void 0);le([Rt(),Oe(),De(()=>bo),ue("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],W.prototype,"infAdic",void 0);le([Rt(),Oe(),De(()=>yi),ue("design:type",typeof IExporta>"u"?Object:IExporta)],W.prototype,"exporta",void 0);le([Rt(),Oe(),De(()=>Si),ue("design:type",typeof ICompra>"u"?Object:ICompra)],W.prototype,"compra",void 0);le([Rt(),Oe(),De(()=>pt),ue("design:type",typeof ICana>"u"?Object:ICana)],W.prototype,"cana",void 0);le([Rt(),Oe(),De(()=>Zt),ue("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],W.prototype,"infRespTec",void 0);le([Rt(),Oe(),De(()=>ar),ue("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],W.prototype,"infSolicNFF",void 0);import{Type as cu}from"class-transformer";function wc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(wc,"_ts_decorate");function Pc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Pc,"_ts_metadata");var na=class{static{s(this,"NFeAttributes")}xmlns};wc([ey(),$v(),Pc("design:type",String)],na.prototype,"xmlns",void 0);var On=class{static{s(this,"NFe")}$;infNFe;Signature};wc([au(),ru(),cu(()=>na),su(),Pc("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],On.prototype,"$",void 0);wc([au(),ru(),cu(()=>W),su(),Pc("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],On.prototype,"infNFe",void 0);wc([kv(),Pc("design:type",typeof Signature>"u"?Object:Signature)],On.prototype,"Signature",void 0);import{plainToInstance as ty}from"nfets/core";import{Validates as Ut}from"nfets/core";function qt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(qt,"_ts_decorate");function z(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(z,"_ts_metadata");var tt=class{static{s(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}setImposto(e){return this.data.imposto=e,e}imposto(e){return this.listener?.imposto(this.setImposto(e)),this}icms(e){return e?(this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this):this}issqn(e){return e?(this.data.imposto??={},this.data.imposto.ISSQN=e,this.listener?.issqn(e),this):this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this.listener?.ii(e),this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this.listener?.ipi(e),this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.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.listener?.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}ibscbs(e){return this.schema===fi.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===fi.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.setImposto(this.data.imposto);let e={...this.data};return this.data={},e}};qt([Ut(ia),z("design:type",Function),z("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),z("design:returntype",void 0)],tt.prototype,"det",null);qt([Ut(O),z("design:type",Function),z("design:paramtypes",[typeof IProd>"u"?Object:IProd]),z("design:returntype",void 0)],tt.prototype,"prod",null);qt([Ut(xe),z("design:type",Function),z("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),z("design:returntype",typeof IImposto>"u"?Object:IImposto)],tt.prototype,"setImposto",null);qt([Ut(U),z("design:type",Function),z("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),z("design:returntype",void 0)],tt.prototype,"icms",null);qt([Ut(de),z("design:type",Function),z("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),z("design:returntype",void 0)],tt.prototype,"issqn",null);qt([Ut(_o),z("design:type",Function),z("design:paramtypes",[typeof III>"u"?Object:III]),z("design:returntype",void 0)],tt.prototype,"ii",null);qt([Ut(Kt),z("design:type",Function),z("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),z("design:returntype",void 0)],tt.prototype,"ipi",null);qt([Ut(Wo),z("design:type",Function),z("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),z("design:returntype",void 0)],tt.prototype,"pis",null);qt([Ut(Fo),z("design:type",Function),z("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),z("design:returntype",void 0)],tt.prototype,"pisst",null);qt([Ut(ko),z("design:type",Function),z("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),z("design:returntype",void 0)],tt.prototype,"cofins",null);qt([Ut(Oo),z("design:type",Function),z("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),z("design:returntype",void 0)],tt.prototype,"cofinsst",null);qt([Ut(Nt),z("design:type",Function),z("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),z("design:returntype",void 0)],tt.prototype,"icmsufdest",null);qt([Ut(je),z("design:type",Function),z("design:paramtypes",[typeof je>"u"?Object:je]),z("design:returntype",void 0)],tt.prototype,"ibscbs",null);import{left as oy,right as If}from"nfets/core";import{ValidateErrorsMetadata as Ac,Validates as Me}from"nfets/core";import{Environment as iy,NFeTsError as ny}from"nfets/core";function Te(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Te,"_ts_decorate");function N(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(N,"_ts_metadata");var $=class{static{s(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return On}root="NFe";$det=new Is(this);$total=new Rs(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=tt.create(this.$det,this.schema)}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 e==null?this:(this.data.infNFe.avulsa=e,this)}dest(e){return e==null?this:(this.data.infNFe.dest=e,this)}retirada(e){return e==null?this:(this.data.infNFe.retirada=e,this)}entrega(e){return e==null?this:(this.data.infNFe.entrega=e,this)}autXML(e){return e==null?this:(this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this)}det(e,t){return this.data.infNFe.det=e.map((n,r)=>{let i=t(this.nfeDetXmlBuilder.det({nItem:(r+1).toString()}),n);return this.collect(i),i.assemble()}),this}total(e){return e==null?this:(this.data.infNFe.total=e,this)}ISSQNtot(e){return e==null?this:(this.data.infNFe.total.ISSQNtot??={},this.data.infNFe.total.ISSQNtot={...this.data.infNFe.total.ISSQNtot,...e},this)}ICMSTot(e){return e==null?this:(this.data.infNFe.total.ICMSTot={...this.data.infNFe.total.ICMSTot,...e},this)}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);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}:this.data.infNFe.total.ISSQNtot},this.schema!==fi.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...this.data.infNFe.total.IBSCBSTot,gCBS:{...this.data.infNFe.total.IBSCBSTot?.gCBS},gIBS:{...this.data.infNFe.total.IBSCBSTot?.gIBS,gIBSMun:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSMun},gIBSUF:{...this.data.infNFe.total.IBSCBSTot?.gIBS?.gIBSUF}},gMono:{...this.data.infNFe.total.IBSCBSTot?.gMono}},vNFTot:e.vNFTot}}transp(e){return e==null?this:(this.data.infNFe.transp=e,this)}cobr(e){return e==null?this:(this.data.infNFe.cobr=e,this)}pag(e){return e==null?this:(this.data.infNFe.pag=e,this)}infIntermed(e){return e==null?this:(this.data.infNFe.infIntermed=e,this)}infAdic(e){return e==null?this:(this.data.infNFe.infAdic=e,this)}exporta(e){return e==null?this:(this.data.infNFe.exporta=e,this)}compra(e){return e==null?this:(this.data.infNFe.compra=e,this)}cana(e){return e==null?this:(this.data.infNFe.cana=e,this)}infRespTec(e){return e==null?this:(this.data.infNFe.infRespTec=e,this)}infSolicNFF(e){return e==null?this:(this.data.infNFe.infSolicNFF=e,this)}quiet(){return Reflect.deleteMetadata(Ac,this),this}toObject(){if(this.$data!==void 0)return If(this.$data);let e=this.errors();return e?oy(new ny(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=ty(this.data,this.entity,{clearEmptyValues:!0}),If(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:If(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==iy.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!==Ye.Normal)return;switch(Ls[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ye.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ye.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ye.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Ac,this)}collect(e){let t=Reflect.getMetadata(Ac,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Ac,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Ns().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}}};Te([Me(sr),N("design:type",Function),N("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),N("design:returntype",void 0)],$.prototype,"infNFe",null);Te([Me(V),N("design:type",Function),N("design:paramtypes",[typeof IIde>"u"?Object:IIde]),N("design:returntype",void 0)],$.prototype,"ide",null);Te([Me(He),N("design:type",Function),N("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),N("design:returntype",void 0)],$.prototype,"emit",null);Te([Me(et),N("design:type",Function),N("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),N("design:returntype",void 0)],$.prototype,"avulsa",null);Te([Me(Qe),N("design:type",Function),N("design:paramtypes",[typeof IDest>"u"?Object:IDest]),N("design:returntype",void 0)],$.prototype,"dest",null);Te([Me(_),N("design:type",Function),N("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),N("design:returntype",void 0)],$.prototype,"retirada",null);Te([Me(_),N("design:type",Function),N("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),N("design:returntype",void 0)],$.prototype,"entrega",null);Te([Me(Qo),N("design:type",Function),N("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),N("design:returntype",void 0)],$.prototype,"autXML",null);Te([Me(Co),N("design:type",Function),N("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),N("design:returntype",void 0)],$.prototype,"total",null);Te([Me(ct),N("design:type",Function),N("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),N("design:returntype",void 0)],$.prototype,"transp",null);Te([Me(on),N("design:type",Function),N("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),N("design:returntype",void 0)],$.prototype,"cobr",null);Te([Me(nn),N("design:type",Function),N("design:paramtypes",[typeof IPag>"u"?Object:IPag]),N("design:returntype",void 0)],$.prototype,"pag",null);Te([Me(ki),N("design:type",Function),N("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),N("design:returntype",void 0)],$.prototype,"infIntermed",null);Te([Me(bo),N("design:type",Function),N("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),N("design:returntype",void 0)],$.prototype,"infAdic",null);Te([Me(yi),N("design:type",Function),N("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),N("design:returntype",void 0)],$.prototype,"exporta",null);Te([Me(Si),N("design:type",Function),N("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),N("design:returntype",void 0)],$.prototype,"compra",null);Te([Me(pt),N("design:type",Function),N("design:paramtypes",[typeof ICana>"u"?Object:ICana]),N("design:returntype",void 0)],$.prototype,"cana",null);Te([Me(Zt),N("design:type",Function),N("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),N("design:returntype",void 0)],$.prototype,"infRespTec",null);Te([Me(ar),N("design:type",Function),N("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),N("design:returntype",void 0)],$.prototype,"infSolicNFF",null);var zc=class extends hr{static{s(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=$.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return ry.resolve(bs(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Rf(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Rf(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?ay(new Cs(t.value.message,e,{cause:t.value.cause})):Rf(e)}};import{NFeTsError as cy}from"nfets/core";import{left as py,right as fy}from"nfets/core";import{unreachable as dy}from"nfets/core";import{Type as Ff}from"class-transformer";import{Allow as sy,IsNotEmptyObject as xf,IsObject as Of,ValidateNested as Df}from"class-validator";import{IsString as du}from"class-validator";function pu(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(pu,"_ts_decorate");function fu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(fu,"_ts_metadata");var ra=class{static{s(this,"InfNFeSupl")}qrCode;urlChave};pu([du(),fu("design:type",String)],ra.prototype,"qrCode",void 0);pu([du(),fu("design:type",String)],ra.prototype,"urlChave",void 0);function Ec(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ec,"_ts_decorate");function jc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(jc,"_ts_metadata");var _i=class{static{s(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Ec([Of(),xf(),Ff(()=>na),Df(),jc("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],_i.prototype,"$",void 0);Ec([Of(),xf(),Ff(()=>W),Df(),jc("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],_i.prototype,"infNFe",void 0);Ec([Of(),xf(),Ff(()=>ra),Df(),jc("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],_i.prototype,"infNFeSupl",void 0);Ec([sy(),jc("design:type",typeof Signature>"u"?Object:Signature)],_i.prototype,"Signature",void 0);var Tc=class extends ${static{s(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return _i}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}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===Ye.Normal)return this.data.infNFe.ide.tpEmis=Ye.OFFLINE,void 0}};var lu=class extends zc{static{s(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new it(this.certificates);transmitter=new _e(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=Tc.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return py(new cy("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,r=await this.toolkit.parse(n),i=await this.generateQrCode(r,this.options,this.certificate);if(i.isLeft())return i;let a=await this.toolkit.build(i.value,{rootName:"infNFeSupl"}),c=this.toolkit.insertBefore(n,"Signature",a);return fy(c)}async generateQrCode(e,t,n){let r=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),i={...t.qrCode};switch(i.version??=r.version,i.version){case"200":return await this.nfceQrcode.execute(e,{version:i.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url,CSC:i.CSC,CSCId:i.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:i.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url})}default:return dy(i.version)}}};var uu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOY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ndjbLe1asjDEKgQCgQDA/wf59f5AwcXxcQAAAABJRU5ErkJggg==";var aa=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:n}=this.builder.pageMargins(),r=e?.x??t,i=this.context.data.infNFe.emit,{enderEmit:a}=i,{xNome:c}=i,p=this.context.defaults.font,u=`${p}-Bold`,h="left";this.builder.row({left:r,right:n},g=>this.builder.text(this.identification(i),{...g,continued:!0,align:h}).font(u).text(` ${c}`,{...g,align:h}).font(p)).row({left:r,right:n},g=>this.builder.text(this.addressLine1(a),{...g,continued:!0,align:h}).text(this.addressLine2(a),{...g,continued:!0,align:h}).text(this.addressLine3(a),{...g,align:h})).row({left:r,right:n},g=>this.builder.text(this.addressLine4(a),{...g,align:h}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}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},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return uu}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 Dn=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.context.protNFe?.infProt?this.constants.issuedInContingency:`${this.constants.issuedInContingency}
16
- ${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ye.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},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,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:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n;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((i,a)=>i+a,0)}};import{Environment as ly}from"nfets/core";var sa=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!==ly.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 Mc=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:n}}=e,{cProd:r,xProd:i,qCom:a,uCom:c,vUnCom:p,vDesc:u,vProd:h}=t,g={size:this.context.options.textFontSize},v={font:g,text:n.padStart(3,"0")},y={font:g,text:r},R=[{font:g,align:{x:"right"},text:`${this.context.currency(a,4)} ${c}`},{font:g,align:{x:"right"},text:this.context.currency(p,10)},{font:g,align:{x:"right"},text:this.context.currency(u??0)},{font:g,align:{x:"right"},text:this.context.currency(h)}],E=this.builder.widthOfString(r),D=this.columnStyles[1];if(E>=D)return[[v,{colSpan:6,font:g,text:`${r} ${i}`}],[{colSpan:3},...R]];let j=this.builder.widthOfString(i),ci=this.columnStyles[2];if(j>=ci)return[[v,y,{colSpan:5,font:g,text:i}],[{colSpan:3},...R]];let no=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${i}`)<=no?[[v,y,{font:g,text:i},...R]]:[[v,y,{colSpan:5,font:g,text:i}],[{colSpan:3},...R]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n}=this.builder.pageMargins();this.builder.table({position:{x:n},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((r,i)=>r.concat(this.item(i)),[])]})}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,n)=>t+n,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.columnStyles.reduce((a,c)=>typeof c=="number"?a+c:a,0),i=this.columnStyles.filter(a=>a==="*").length;return(n-r)/i}getAvailableWidth(e,t){if(e.colSpan){let i=t.indexOf(e),a=this.columnStyles.slice(0,i).reduce((p,u)=>typeof u=="number"?p+u:p,0),c=this.getProportionalWidth()*e.colSpan;return a+c}let n=t.indexOf(e),r=this.columnStyles[n];return typeof r=="number"?r:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let r of e){if(!r.text)continue;let i=r.text,a=this.builder.widthOfString(i),c=this.getAvailableWidth(r,e),p=a<=c?t:this.builder.heightOfString(i,{width:c});n=Math.max(n,p)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),r=n*1.2,i=n*.5,a=n*.5,c=t.reduce((u,h)=>{let g=this.item(h),[v]=g,y=this.calculateRowHeight(v,n),R=0;if(g.length>1){let no=this.calculateRowHeight(g[1],n);R=Math.max(n,no)}let{top:E,bottom:D}=this.defaultStyle.padding,j=E+D,ci=g.length>1?n*.2:0;return u+y+R+g.length*j+ci},0),p=n*2;return i+r+a+c+p}};import{Decimal as uy}from"nfets/core";var ca=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:n,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Qtde. Total de Itens",{...i}),i=>this.builder.text(`${t.length}`,{...i,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:r,vOutro:i}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new uy(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",r),this.conditionalRowValue("Outras despesas total R$",i)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:r,right:i}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:r,right:i},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,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${n}${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 we={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"},mu={[we.Dinheiro]:"Dinheiro",[we.Cheque]:"Cheque",[we.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[we.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[we.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[we.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[we.ValeRefeicao]:"Vale Refei\xE7\xE3o",[we.ValePresente]:"Vale Presente",[we.ValeCombustivel]:"Vale Combust\xEDvel",[we.BoletoBancario]:"Boleto Banc\xE1rio",[we.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[we.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[we.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[we.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[we.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[we.CreditoEmLoja]:"Cr\xE9dito em Loja",[we.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[we.SemPagamento]:"Sem pagamento",[we.PagamentoPosterior]:"Pagamento Posterior",[we.Outros]:"Outros"};var pa=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:n}=e,{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},a=>this.builder.text(mu[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(n),{...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:n,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Forma de Pagamento",{...i,align:"left"}),i=>this.builder.text("Valor pago R$",{...i,align:"right"})),t.forEach(i=>this.payment(i))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:n}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:n},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,n=Array.isArray(t)?t:[t],r=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+r}};var fa=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(),n=this.context.defaults.font,r=`${n}-Bold`;this.builder.font(r).row({left:e,right:t},i=>this.builder.text("Consulte pela Chave de Acesso em",{...i,align:"center"})).font(n)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:t,right:n},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:n,right:r}=this.builder.pageMargins();this.builder.row({left:n,right:r},i=>this.builder.text(t,{...i,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 Rh=Dh(Ih(),1);var Kc=class o{static{s(this,"QRCode")}context;static _instance;qrCodeSvg;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Ye.Normal}get qrSize(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.hasContingency?.6:.4;return Math.floor(n*r)}async getQrSvgString(e){try{return await Rh.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,n]=e.split(" ").map(Number),r=this.qrSize,i=r/t,a=r/n,c=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:p,right:u}=this.builder.pageMargins(),h=this.builder.pageWidth()-p-u,g=p+(h-r)/2,v=this.builder.y();this.builder.save().translate(g,v).scale(i,a),c.forEach(y=>{this.builder.path(y.$.d),y.$.fill&&this.builder.fill(y.$.fill),y.$.stroke&&this.builder.stroke(y.$.stroke)}),this.builder.restore(),this.builder.text("",{y:v+r})}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.qrCodeSvg?(this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder):this.builder}end(){o._instance=void 0}height(){let{qrCode:e}=this.context.data.infNFeSupl??{};return e?(this.setup(),this.qrSize+.5):0}};var kc=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:n}=this.builder.pageMargins(),r=this.context.defaults.font,i=`${r}-Bold`;this.builder.row({left:e?.x??t,right:n},a=>this.builder.font(i).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(r))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:r}=e;return t?.length===14?`CNPJ: ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.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:n,right:r}=this.builder.pageMargins(),i=this.identification(t),{xNome:a,enderDest:c}=t,p=this.addressLine(c),u=this.context.defaults.font,h=`${u}-Bold`;this.builder.row({left:e?.x??n,right:r},g=>this.builder.font(h).text(`CONSUMIDOR - ${i}`,{...g,align:"center"}).font(u)).row({left:e?.x??n,right:r},g=>this.builder.text(`${a}${p}`,{...g,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:r,xCpl:i,xMun:a,UF:c,CEP:p}=e;if(!t||!p)return"";let u=i?`, ${i}`:"";return` - Rua ${t}, ${n}, ${r}${u}, ${a} - ${c}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,r=n?` - ${n}`:"";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(){this.setup();let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=[this.builder.currentLineHeight()*.5],{dest:i}=this.context.data.infNFe;if(!i)return r.push(this.builder.heightOfString("CONSUMIDOR N\xC3O IDENTIFICADO",{width:n,align:"center"})),r.reduce((h,g)=>h+g,0);let a=this.identification(i),{xNome:c,enderDest:p}=i,u=this.addressLine(p);return r.push(this.builder.heightOfString(`CONSUMIDOR - ${a}`,{width:n,align:"center"}),this.builder.heightOfString(`${c}${u}`,{width:n,align:"center"})),r.reduce((h,g)=>h+g,0)}};import{dateToolkit as $c,timezones as Sd}from"nfets/core";var ep=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:n,dhEmi:r}=this.context.data.infNFe.ide,i=t.padStart(9,"0"),a=n.padStart(3,"0"),{left:c,right:p}=this.builder.pageMargins(),{cUF:u}=this.context.data.infNFe.ide,h=Sd[u],g=$c(r).tz(h).format("DD/MM/YYYY HH:mm:ss"),v=this.context.defaults.font,y=`${v}-Bold`;this.builder.row({left:e?.x??c,right:p},R=>this.builder.font(y).text(`NFC-e n\xBA ${i} - s\xE9rie ${a} emitida em: ${g}`,{...R,align:"center"}).font(v))}protocoled(e,t){let{dhRecbto:n,nProt:r}=e,{left:i,right:a}=this.builder.pageMargins(),{cUF:c}=this.context.data.infNFe.ide,p=Sd[c],u=r.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),h=$c(n).tz(p).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??i,right:a},g=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${u}
17
- Data de autoriza\xE7\xE3o: ${h}`,{...g,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:r,right:i}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??r,right:i},a=>this.builder.text(`$(${t}) ${n}`,{...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}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n,{nNF:i,serie:a,dhEmi:c}=this.context.data.infNFe.ide,p=i.padStart(9,"0"),u=a.padStart(3,"0"),{cUF:h}=this.context.data.infNFe.ide,g=Sd[h],v=$c(c).tz(g).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`NFC-e n\xBA ${p} - s\xE9rie ${u} emitida em: ${v}`,{width:r,align:"center"}));let{cMsg:y,xMsg:R}=this.context.protNFe?.infProt??{};R&&e.push(this.builder.heightOfString(`$(${y}) ${R}`,{width:r,align:"left"}));let E=this.context.protNFe;if(E){let{dhRecbto:D,nProt:j}=E.infProt,ci=j.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),no=$c(D).tz(g).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`Protocolo de autoriza\xE7\xE3o: ${ci}
18
- Data de autoriza\xE7\xE3o: ${no}`,{width:r,align:"center"}))}return e.reduce((D,j)=>D+j,0)}};var tp=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[kc.instance(this.context),ep.instance(this.context),Dn.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)=>e+(t.height?.()??0),0)}};var wS=.35277777777777775,Cd=.75,Fh={"80mm":80/wS},op="gerado por github.com/nfets/nfets";var ip=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:n}=this.builder.pageMargins(),r=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:n},i=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...i,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
12
+ `}return c+=f+`
13
+ `,typeof t=="function"&&t(null,c),c}});var uh=C(lh=>{"use strict";var SS="\x1B[47m",CS="\x1B[40m",md="\x1B[37m",hd="\x1B[30m",dr="\x1B[0m",bS=SS+hd,NS=CS+md,IS=s(function(o,e,t){return{"00":dr+" "+o,"01":dr+e+"\u2584"+o,"02":dr+t+"\u2584"+o,10:dr+e+"\u2580"+o,11:" ",12:"\u2584",20:dr+t+"\u2580"+o,21:"\u2580",22:"\u2588"}},"createPalette"),ph=s(function(o,e,t,n){let r=e+1;if(t>=r||n>=r||n<-1||t<-1)return"0";if(t>=e||n>=e||n<0||t<0)return"1";let i=n*e+t;return o[i]?"2":"1"},"mkCodePixel"),dh=s(function(o,e,t,n){return ph(o,e,t,n)+ph(o,e,t,n+1)},"mkCode");lh.render=function(o,e,t){let n=o.modules.size,r=o.modules.data,i=!!(e&&e.inverse),a=e&&e.inverse?NS:bS,u=IS(a,i?hd:md,i?md:hd),h=dr+`
14
+ `+a,g=a;for(let v=-1;v<n+1;v+=2){for(let y=-1;y<n;y++)g+=u[dh(r,n,y,v)];g+=u[dh(r,n,n,v)]+h}return g+=dr,typeof t=="function"&&t(null,g),g}});var hh=C(mh=>{"use strict";var RS=fh(),FS=uh();mh.render=function(o,e,t){return e&&e.small?FS.render(o,e,t):RS.render(o,e,t)}});var vd=C(vh=>{"use strict";var xS=bs();function gh(o,e){let t=o.a/255,n=e+'="'+o.hex+'"';return t<1?n+" "+e+'-opacity="'+t.toFixed(2).slice(1)+'"':n}s(gh,"getColorAttrib");function gd(o,e,t){let n=o+e;return typeof t<"u"&&(n+=" "+t),n}s(gd,"svgCmd");function OS(o,e,t){let n="",r=0,i=!1,a=0;for(let c=0;c<o.length;c++){let f=Math.floor(c%e),u=Math.floor(c/e);!f&&!i&&(i=!0),o[c]?(a++,c>0&&f>0&&o[c-1]||(n+=i?gd("M",f+t,.5+u+t):gd("m",r,0),r=0,i=!1),f+1<e&&o[c+1]||(n+=gd("h",a),a=0)):r++}return n}s(OS,"qrToPath");vh.render=s(function(e,t,n){let r=xS.getOptions(t),i=e.modules.size,a=e.modules.data,c=i+r.margin*2,f=r.color.light.a?"<path "+gh(r.color.light,"fill")+' d="M0 0h'+c+"v"+c+'H0z"/>':"",u="<path "+gh(r.color.dark,"stroke")+' d="'+OS(a,i,r.margin)+'"/>',h='viewBox="0 0 '+c+" "+c+'"',v='<svg xmlns="http://www.w3.org/2000/svg" '+(r.width?'width="'+r.width+'" height="'+r.width+'" ':"")+h+' shape-rendering="crispEdges">'+f+u+`</svg>
15
+ `;return typeof n=="function"&&n(null,v),v},"render")});var yh=C(Wc=>{"use strict";var DS=vd();Wc.render=DS.render;Wc.renderToFile=s(function(e,t,n,r){typeof r>"u"&&(r=n,n=void 0);let i=Ae("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">'+Wc.render(t,n);i.writeFile(e,c,r)},"renderToFile")});var Sh=C(Kc=>{"use strict";var yd=bs();function wS(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(wS,"clearCanvas");function PS(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}s(PS,"getCanvasElement");Kc.render=s(function(e,t,n){let r=n,i=t;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),t||(i=PS()),r=yd.getOptions(r);let a=yd.getImageWidth(e.modules.size,r),c=i.getContext("2d"),f=c.createImageData(a,a);return yd.qrToImageData(f.data,e,r),wS(c,i,a),c.putImageData(f,0,0),i},"render");Kc.renderToDataURL=s(function(e,t,n){let r=n;typeof r>"u"&&(!t||!t.getContext)&&(r=t,t=void 0),r||(r={});let i=Kc.render(e,t,r),a=r.type||"image/png",c=r.rendererOpts||{};return i.toDataURL(a,c.quality)},"renderToDataURL")});var bh=C(Ns=>{"use strict";var AS=zp(),Sd=Kp(),Ch=Sh(),zS=vd();function Cd(o,e,t,n,r){let i=[].slice.call(arguments,1),a=i.length,c=typeof i[a-1]=="function";if(!c&&!AS())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=n=void 0):a===3&&(e.getContext&&typeof r>"u"?(r=n,n=void 0):(r=n,n=t,t=e,e=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(t=e,e=n=void 0):a===2&&!e.getContext&&(n=t,t=e,e=void 0),new Promise(function(f,u){try{let h=Sd.create(t,n);f(o(h,e,n))}catch(h){u(h)}})}try{let f=Sd.create(t,n);r(null,o(f,e,n))}catch(f){r(f)}}s(Cd,"renderCanvas");Ns.create=Sd.create;Ns.toCanvas=Cd.bind(null,Ch.render);Ns.toDataURL=Cd.bind(null,Ch.renderToDataURL);Ns.toString=Cd.bind(null,function(o,e,t){return zS.render(o,t)})});var Fh=C(En=>{"use strict";var Nh=zp(),bd=Kp(),ES=ah(),Ih=sh(),jS=hh(),Rh=yh();function Is(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(Nh())e=t||{},t=null;else throw new Error("Callback required as last argument");return{opts:e,cb:t}}s(Is,"checkParams");function TS(o){return o.slice((o.lastIndexOf(".")-1>>>0)+2).toLowerCase()}s(TS,"getTypeFromFilename");function kc(o){switch(o){case"svg":return Rh;case"txt":case"utf8":return Ih;case"png":case"image/png":default:return ES}}s(kc,"getRendererFromType");function MS(o){switch(o){case"svg":return Rh;case"terminal":return jS;case"utf8":default:return Ih}}s(MS,"getStringRendererFromType");function Rs(o,e,t){if(!t.cb)return new Promise(function(n,r){try{let i=bd.create(e,t.opts);return o(i,t.opts,function(a,c){return a?r(a):n(c)})}catch(i){r(i)}});try{let n=bd.create(e,t.opts);return o(n,t.opts,t.cb)}catch(n){t.cb(n)}}s(Rs,"render");En.create=bd.create;En.toCanvas=bh().toCanvas;En.toString=s(function(e,t,n){let r=Is(e,t,n),i=r.opts?r.opts.type:void 0,a=MS(i);return Rs(a.render,e,r)},"toString");En.toDataURL=s(function(e,t,n){let r=Is(e,t,n),i=kc(r.opts.type);return Rs(i.renderToDataURL,e,r)},"toDataURL");En.toBuffer=s(function(e,t,n){let r=Is(e,t,n),i=kc(r.opts.type);return Rs(i.renderToBuffer,e,r)},"toBuffer");En.toFile=s(function(e,t,n,r){if(typeof e!="string"||!(typeof t=="string"||typeof t=="object"))throw new Error("Invalid argument");if(arguments.length<3&&!Nh())throw new Error("Too few arguments provided");let i=Is(t,n,r),a=i.opts.type||TS(e),f=kc(a).renderToFile.bind(null,e);return Rs(f,t,i)},"toFile");En.toFileStream=s(function(e,t,n){if(arguments.length<2)throw new Error("Too few arguments provided");let r=Is(t,n,e.emit.bind(e,"error")),a=kc("png").renderToFileStream.bind(null,e);Rs(a,t,r)},"toFileStream")});var Oh=C((aE,xh)=>{"use strict";xh.exports=Fh()});import{NFeTsError as Eh}from"nfets/core";var Fs=class extends Eh{static{s(this,"XmlValidationError")}xml;name="XmlValidationError";constructor(e,t,n){super(e,n),this.xml=t}};var Xe=(function(o){return o.Normal="1",o.EPEC="4",o.SVCAN="6",o.SVCRS="7",o.OFFLINE="9",o})({});var Tt=(function(o){return o.Cancelamento="110111",o.CancelamentoSubstituicao="110112",o})({});var Fd=(function(o){return o.RegistradoEVinculado="135",o})({}),xd=(function(o){return o.RegistradoEVinculado="135",o.RegistradoNaoVinculado="136",o.CancelamentoHomologadoForaPrazo="155",o})({});var Od=(function(o){return o.InutilizacaoHomologada="102",o})({});import{search as Dd}from"nfets/core";var jh={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21",PL_010_V1_30:"PL_010_V1.30"},xs=s(()=>{if(process.env.NFETS_NFE_SCHEMAS_DIR)return process.env.NFETS_NFE_SCHEMAS_DIR;try{return Dd("packages/nfe/schemas",{onFound:s(o=>o,"onFound"),onNotFound:s(()=>{throw new Error("Schemas not found on packages/nfe/schemas")},"onNotFound")})}catch{return Dd("nfe/schemas",{onFound:s(o=>o,"onFound"),onNotFound:s(()=>{throw new Error("Schemas not found on nfe/schemas")},"onNotFound")})}},"schemas"),Yt=jh;var Os=class{static{s(this,"AccessKeyBuilder")}compile(e){let t=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),r=e.month.toString().padStart(2,"0"),i=(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"),u=e.tpEmis.toString().padStart(1,"0"),h=(e.cNF??this.code()).toString().padStart(8,"0"),g=`${t}${n}${r}${i}${a}${c}${f}${u}${h}`;return`${g}${this.verifyingDigit(g)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([A-Z0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[r,i,a,c,f,u,h,g,v,y,R]=n;return{cUF:i,year:a,month:c,identification:f,mod:u,serie:h,nNF:g,tpEmis:v,cNF:y,vd:R}}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=[4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2,9,8,7,6,5,4,3,2],n=48,r=43,i=0;for(let c=0;c<r;c++){let f=e.charCodeAt(c)-n;i+=f*t[c]}return i%11<2?0:11-i%11}};import{Xml2JsToolkit as Th}from"nfets/core";import{left as cf,NFeTsError as ff,right as wd}from"nfets/core";var Mh=new Set([Tt.Cancelamento,Tt.CancelamentoSubstituicao]),Pd=class{static{s(this,"NfeComplements")}toolkit;constructor(e=new Th){this.toolkit=e}cancelRegister(e,t){if(!e.trim())return cf(new ff("Please provide a valid authorized NFe xml"));let n=this.toolkit.getNode(e,"protNFe");if(!n)return cf(new ff("NFe not protocoladed"));let r=this.toolkit.getNodeValue(n,"chNFe");if(!r)return cf(new ff("Access key not found in protNFe"));let i=this.findMatchingRetEvento(t,r);return i?wd(this.toolkit.appendNode(e,i)):wd(e)}findMatchingRetEvento(e,t){for(let n of this.toolkit.getNodes(e,"retEvento")){let r=this.toolkit.getNodeValue(n,"cStat"),i=this.toolkit.getNodeValue(n,"tpEvento"),a=this.toolkit.getNodeValue(n,"chNFe");if(r&&Object.values(xd).includes(r)&&i&&Mh.has(i)&&a===t)return n}return null}};import{Decimal as Ad}from"nfets/core";var Ds=class{static{s(this,"DefaultDetBuilderAggregator")}builder;zero=Ad.from(0);constructor(e){this.builder=e}prod(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vProd:this.sum(t?.vProd,e.vProd),vFrete:this.sum(t?.vFrete,e.vFrete),vSeg:this.sum(t?.vSeg,e.vSeg),vDesc:this.sum(t?.vDesc,e.vDesc),vOutro:this.sum(t?.vOutro,e.vOutro)}}))}issqn(e){this.builder.increment(({ISSQNtot:t})=>({ISSQNtot:{vISS:this.sum(t?.vISS,e.vISSQN)}}))}cofins(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vCOFINS:this.sum(t?.vCOFINS,e.COFINSAliq?.vCOFINS??e.COFINSOutr?.vCOFINS??e.COFINSQtde?.vCOFINS)}}))}pis(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vPIS:this.sum(t?.vPIS,e.PISAliq?.vPIS??e.PISOutr?.vPIS??e.PISQtde?.vPIS)}}))}icms(e){let[t]=Object.keys(e),n=e[t];this.builder.increment(({ICMSTot:r})=>({ICMSTot:{vBC:this.sum(r?.vBC,n.vBC),vICMS:this.sum(r?.vICMS,n.vICMS),vICMSDeson:this.sum(r?.vICMSDeson,n.vICMSDeson),vBCST:this.sum(r?.vBCST,n.vBCST),vST:this.sum(r?.vST,n.vICMSST),vFCP:this.sum(r?.vFCP,n.vFCP),vFCPST:this.sum(r?.vFCPST,n.vFCPST),vFCPSTRet:this.sum(r?.vFCPSTRet,n.vFCPSTRet),qBCMono:this.sum(r?.qBCMono,n.qBCMono),vICMSMono:this.sum(r?.vICMSMono,n.vICMSMono),qBCMonoReten:this.sum(r?.qBCMonoReten,n.qBCMonoReten),vICMSMonoReten:this.sum(r?.vICMSMonoReten,n.vICMSMonoReten),qBCMonoRet:this.sum(r?.qBCMonoRet,n.qBCMonoRet),vICMSMonoRet:this.sum(r?.vICMSMonoRet,n.vICMSMonoRet)}}))}imposto(e){e.vTotTrib!=null&&this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vTotTrib:this.sum(t?.vTotTrib,e.vTotTrib)}}))}ii(e){this.builder.increment(({ICMSTot:t})=>({ICMSTot:{vII:this.sum(t?.vII,e.vII)}}))}ipi(e){let t=e.IPITrib?.vIPI;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPI:this.sum(n?.vIPI,t)}}))}impostoDevol(e){let t=e.IPI?.vIPIDevol;t&&this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vIPIDevol:this.sum(n?.vIPIDevol,t)}}))}sum(e,t,n=2){return Ad.newOrZero(e).add(t??this.zero).toFixed(n)}};import{Decimal as pf}from"nfets/core";var ws=class{static{s(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=pf.from(0),t=this.builder.schema===Yt.PL_010_V1_30;this.builder.increment(({ICMSTot:n,ISSQNtot:r},i)=>{let a=this.resolveDeductibleVICMSDeson(i);return{vNFTot:t?i.reduce((c,f)=>c.add(f?.vItem??"0.00"),e).toFixed(2):void 0,ICMSTot:{vNF:pf.newOrZero(n?.vProd).sub(n?.vDesc??e).sub(a).add(n?.vST??e).add(n?.vFCPST??e).add(n?.vICMSMonoReten??e).add(n?.vFrete??e).add(n?.vSeg??e).add(n?.vOutro??e).add(n?.vII??e).add(n?.vIPI??e).add(n?.vIPIDevol??e).add(r?.vServ??e).toFixed(2)}}})}resolveDeductibleVICMSDeson(e){let t=pf.from(0);return e.length?e.reduce((n,r)=>{let i=r?.imposto?.ICMS;if(!i)return n;let[a]=Object.keys(i),c=i[a];return c?.indDeduzDeson!=="1"||c.vICMSDeson==null?n:n.add(c.vICMSDeson)},t).toFixed(2):t.toFixed(2)}};import{NFeTsError as zg,right as Eg,Validates as jg,left as Tg}from"nfets/core";var Ps={[Tt.Cancelamento]:{method:"envEventoCancNFe",version:"1.00",descEvento:"Cancelamento"},[Tt.CancelamentoSubstituicao]:{method:"envEventoCancSubstNFe",version:"1.00",descEvento:"Cancelamento por substituicao"}};import{Xml2JsToolkit as Bh,NativeCertificateRepository as Vh,SoapRemoteTransmissionRepository as Lh,MemoryCacheAdapter as Hh}from"nfets/core";import{EntitySigner as Qh,ValidateErrorsMetadata as qh,XmlSigner as Uh}from"nfets/core";var ur=class{static{s(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=Rd.create();toolkit=new Bh;caching=new Hh;certificates=new Vh(this.http,this.caching);soap=new Lh(this.toolkit,this.certificates);signer=new Qh(this.toolkit,this.certificates);xmlSigner=new Uh(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(qh,this)}};import xg from"path";import{NFeTsError as Og,StateCodes as Dg}from"nfets/core";import{ValidateErrorsMetadata as qd,Validates as Mn}from"nfets/core";import{left as wg,right as Pg}from"nfets/core";import{StateCodes as Gh,Environment as Zh}from"nfets/core";import{Type as Yh}from"class-transformer";import{IsEnum as zd,IsNotEmptyObject as Xh,IsObject as Jh,ValidateNested as _h,IsOptional as Wh}from"class-validator";function As(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(As,"_ts_decorate");function lf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(lf,"_ts_metadata");var Ki=class{static{s(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};As([zd(Zh),lf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ki.prototype,"tpAmb",void 0);As([zd(Gh),lf("design:type",typeof StateCode>"u"?Object:StateCode)],Ki.prototype,"cUF",void 0);As([Wh()],Ki.prototype,"xServ",void 0);var df=class{static{s(this,"ConsultStatusRequest")}consStatServ};As([Xh(),Jh(),_h(),Yh(()=>Ki),lf("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],df.prototype,"consStatServ",void 0);import{Choice as Kh}from"nfets/core";import{StateCodes as kh,Environment as $h}from"nfets/core";import{Type as uf}from"class-transformer";import{IsEnum as Ed,IsOptional as Es,IsString as so,Length as jd,MinLength as eg,MaxLength as tg,Matches as Ra,ValidateNested as mf,Allow as og,IsObject as Td}from"class-validator";function ze(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ze,"_ts_decorate");function _e(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_e,"_ts_metadata");var zs=class{static{s(this,"InfInutAttributes")}Id};ze([so(),_e("design:type",String)],zs.prototype,"Id",void 0);var Ia=class{static{s(this,"InutNFeAttributes")}xmlns;versao};ze([so(),_e("design:type",String)],Ia.prototype,"xmlns",void 0);ze([so(),Es(),_e("design:type",String)],Ia.prototype,"versao",void 0);var Je=class{static{s(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ze([mf(),uf(()=>zs),_e("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Je.prototype,"$",void 0);ze([Ed($h),_e("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Je.prototype,"tpAmb",void 0);ze([Es()],Je.prototype,"xServ",void 0);ze([Ed(kh),_e("design:type",typeof StateCode>"u"?Object:StateCode)],Je.prototype,"cUF",void 0);ze([so(),jd(2,2),Ra(/^[0-9]{2}$/),_e("design:type",String)],Je.prototype,"ano",void 0);ze([so(),Es(),_e("design:type",String)],Je.prototype,"CNPJ",void 0);ze([so(),Es(),_e("design:type",String)],Je.prototype,"CPF",void 0);ze([so(),jd(2,2),Ra(/^(55|65)$/),_e("design:type",String)],Je.prototype,"mod",void 0);ze([so(),Ra(/^[0-9]{1,3}$/),_e("design:type",String)],Je.prototype,"serie",void 0);ze([so(),Ra(/^[0-9]{1,9}$/),_e("design:type",String)],Je.prototype,"nNFIni",void 0);ze([so(),Ra(/^[0-9]{1,9}$/),_e("design:type",String)],Je.prototype,"nNFFin",void 0);ze([so(),eg(15),tg(255),_e("design:type",String)],Je.prototype,"xJust",void 0);Je=ze([Kh({properties:["CNPJ","CPF"],required:!0})],Je);var di=class{static{s(this,"InutilizacaoPayload")}$;infInut;Signature};ze([Td(),mf(),uf(()=>Ia),_e("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],di.prototype,"$",void 0);ze([Td(),mf(),uf(()=>Je),_e("design:type",typeof IInfInut>"u"?Object:IInfInut)],di.prototype,"infInut",void 0);ze([og(),_e("design:type",typeof Signature>"u"?Object:Signature)],di.prototype,"Signature",void 0);import{Environment as ig}from"nfets/core";import{IsEnum as ng,IsOptional as rg,IsString as ag,Length as sg,Matches as cg}from"class-validator";function hf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(hf,"_ts_decorate");function Md(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Md,"_ts_metadata");var jn=class{static{s(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};hf([ng(ig),Md("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],jn.prototype,"tpAmb",void 0);hf([rg()],jn.prototype,"xServ",void 0);hf([ag(),sg(44,44),cg(/^[A-Z0-9]{44}$/),Md("design:type",String)],jn.prototype,"chNFe",void 0);import{StateCodes as fg,Environment as pg}from"nfets/core";import{IsEnum as gf,IsOptional as Ts,IsString as dg,IsNotEmpty as lg}from"class-validator";function Fa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Fa,"_ts_decorate");function js(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(js,"_ts_metadata");var co=class{static{s(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Fa([gf(pg),Ts(),js("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],co.prototype,"tpAmb",void 0);Fa([gf(fg),Ts(),js("design:type",typeof StateCode>"u"?Object:StateCode)],co.prototype,"cUF",void 0);Fa([dg(),Ts(),js("design:type",String)],co.prototype,"idLote",void 0);Fa([Ts(),gf(["0","1"])],co.prototype,"indSinc",void 0);Fa([lg(),js("design:type",typeof T>"u"?Object:T)],co.prototype,"NFe",void 0);import{Environment as ug}from"nfets/core";import{IsEnum as mg,IsString as hg}from"class-validator";function Bd(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Bd,"_ts_decorate");function Vd(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Vd,"_ts_metadata");var mr=class{static{s(this,"RetAutorizacaoPayload")}tpAmb;nRec};Bd([mg(ug),Vd("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],mr.prototype,"tpAmb",void 0);Bd([hg(),Vd("design:type",String)],mr.prototype,"nRec",void 0);import{IsString as li,IsNotEmpty as gg,ValidateNested as Vs,IsObject as Ls,IsOptional as Ld,IsEnum as vg,IsNumber as yg,Allow as Sg}from"class-validator";import{Type as Hs}from"class-transformer";import{Choice as Cg,TransformDateString as bg}from"nfets/core";function Ee(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ee,"_ts_decorate");function Le(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Le,"_ts_metadata");var Ms=class{static{s(this,"InfEventoAttributes")}Id};Ee([li(),Le("design:type",String)],Ms.prototype,"Id",void 0);var Ve=class{static{s(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};Ee([Ls(),Vs(),Hs(()=>Ms),Le("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Ve.prototype,"$",void 0);Ee([li(),Le("design:type",typeof StateCode>"u"?Object:StateCode)],Ve.prototype,"cOrgao",void 0);Ee([li(),Le("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ve.prototype,"tpAmb",void 0);Ee([li(),Ld(),Le("design:type",String)],Ve.prototype,"CNPJ",void 0);Ee([li(),Ld(),Le("design:type",String)],Ve.prototype,"CPF",void 0);Ee([li(),Le("design:type",String)],Ve.prototype,"chNFe",void 0);Ee([bg({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Le("design:type",String)],Ve.prototype,"dhEvento",void 0);Ee([vg(Tt),Le("design:type",typeof Tt>"u"?Object:Tt)],Ve.prototype,"tpEvento",void 0);Ee([yg(),Le("design:type",Number)],Ve.prototype,"nSeqEvento",void 0);Ee([li(),Le("design:type",String)],Ve.prototype,"verEvento",void 0);Ee([Ls(),Le("design:type",typeof T>"u"?Object:T)],Ve.prototype,"detEvento",void 0);Ve=Ee([Cg({properties:["CNPJ","CPF"],required:!0})],Ve);var Bs=class{static{s(this,"EventoItemAttributes")}xmlns};Ee([li(),Le("design:type",String)],Bs.prototype,"xmlns",void 0);var Vo=class{static{s(this,"EventoItem")}$;infEvento;Signature};Ee([Ls(),Vs(),Hs(()=>Bs),Le("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Vo.prototype,"$",void 0);Ee([Ls(),Vs(),Hs(()=>Ve),Le("design:type",typeof Ve>"u"?Object:Ve)],Vo.prototype,"infEvento",void 0);Ee([Sg(),Le("design:type",typeof Signature>"u"?Object:Signature)],Vo.prototype,"Signature",void 0);var hr=class{static{s(this,"EventoPayload")}idLote;evento};Ee([li(),Le("design:type",String)],hr.prototype,"idLote",void 0);Ee([gg(),Vs(),Hs(()=>Vo),Le("design:type",typeof Vo>"u"?Object:Vo)],hr.prototype,"evento",void 0);import{StateAcronyms as Ng}from"nfets/core";import{Choice as Ig}from"nfets/core";import{IsIn as Rg,IsOptional as qs,IsString as Us}from"class-validator";function gr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(gr,"_ts_decorate");function Qs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Qs,"_ts_metadata");var fo=class{static{s(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};gr([qs()],fo.prototype,"xServ",void 0);gr([Us(),Rg(Object.values(Ng)),Qs("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],fo.prototype,"UF",void 0);gr([qs(),Us(),Qs("design:type",String)],fo.prototype,"IE",void 0);gr([qs(),Us(),Qs("design:type",String)],fo.prototype,"CNPJ",void 0);gr([qs(),Us(),Qs("design:type",String)],fo.prototype,"CPF",void 0);fo=gr([Ig({properties:["IE","CNPJ","CPF"],required:!0})],fo);import{Environment as B}from"nfets/core";var Hd={AM:{[B.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"}},[B.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:{[B.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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"}},[B.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEventoNF",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:{[B.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:"NFeInutilizacao",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"}},[B.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:"NFeInutilizacao",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:{[B.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"}},[B.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:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[B.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"}},[B.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:{[B.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"}},[B.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:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[B.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[B.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:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[B.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"}},[B.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:{[B.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"}},[B.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:{[B.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"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[B.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"}},[B.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:{[B.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"}},[B.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:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};import{StateCodes as Z}from"nfets/core";var Fg={[Z.AC]:"SVRS",[Z.AL]:"SVRS",[Z.AM]:"AM",[Z.AP]:"SVRS",[Z.BA]:"BA",[Z.CE]:"SVRS",[Z.DF]:"SVRS",[Z.ES]:"SVRS",[Z.GO]:"GO",[Z.MA]:"SVAN",[Z.MG]:"MG",[Z.MS]:"MS",[Z.MT]:"MT",[Z.PA]:"SVRS",[Z.PB]:"SVRS",[Z.PE]:"PE",[Z.PI]:"SVRS",[Z.PR]:"PR",[Z.RJ]:"SVRS",[Z.RN]:"SVRS",[Z.RO]:"SVRS",[Z.RR]:"SVRS",[Z.RS]:"RS",[Z.SC]:"SVRS",[Z.SE]:"SVRS",[Z.SP]:"SP",[Z.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},Qd=Fg;import{StateCodes as Y}from"nfets/core";var Gs={[Y.AC]:"SVCAN",[Y.AL]:"SVCAN",[Y.AM]:"SVCRS",[Y.AP]:"SVCAN",[Y.BA]:"SVCRS",[Y.CE]:"SVCAN",[Y.DF]:"SVCAN",[Y.ES]:"SVCAN",[Y.GO]:"SVCRS",[Y.MA]:"SVCRS",[Y.MG]:"SVCAN",[Y.MS]:"SVCRS",[Y.MT]:"SVCRS",[Y.PA]:"SVCAN",[Y.PB]:"SVCAN",[Y.PE]:"SVCRS",[Y.PI]:"SVCAN",[Y.PR]:"SVCRS",[Y.RJ]:"SVCAN",[Y.RN]:"SVCAN",[Y.RO]:"SVCAN",[Y.RR]:"SVCAN",[Y.RS]:"SVCAN",[Y.SC]:"SVCAN",[Y.SE]:"SVCAN",[Y.SP]:"SVCAN",[Y.TO]:"SVCAN"};function Tn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Tn,"_ts_decorate");function me(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(me,"_ts_metadata");var Mt=class{static{s(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}xmlns="http://www.portalfiscal.inf.br/nfe";options={timeout:6e4};configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=Yt.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,r=this.options.contingency?Gs[t]:Qd[t];return Hd[r][n][e.service]}errors(){return Reflect.getMetadata(qd,this)}validate(e){try{let t=this.errors();return t?wg(new Og(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Pg(e))}finally{Reflect.deleteMetadata(qd,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return xg.resolve(xs(),this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,r.version)},method:r.method})}async inutilizacao(e){let t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:r}=t.value.infInut,i=t.value,a=this.service({cUF:n,tpAmb:r,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(i,a.version)},method:a.method})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,r.version)},method:r.method})}async autorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,timeout:this.options.timeout,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,r.version)},method:r.method})}async retAutorizacao(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,r.version)},method:r.method})}async recepcaoEvento(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,r.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,r.version)},method:r.method})}async consultaCadastro(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.value,r=this.service({cUF:Dg[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:r.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,r.version)},method:r.method})}};Tn([Mn(Ki),me("design:type",Function),me("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),me("design:returntype",Promise)],Mt.prototype,"consultStatus",null);Tn([Mn(di),me("design:type",Function),me("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),me("design:returntype",Promise)],Mt.prototype,"inutilizacao",null);Tn([Mn(jn),me("design:type",Function),me("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),me("design:returntype",Promise)],Mt.prototype,"consultaProtocolo",null);Tn([Mn(co),me("design:type",Function),me("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),me("design:returntype",Promise)],Mt.prototype,"autorizacao",null);Tn([Mn(mr),me("design:type",Function),me("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),me("design:returntype",Promise)],Mt.prototype,"retAutorizacao",null);Tn([Mn(hr),me("design:type",Function),me("design:paramtypes",[Object]),me("design:returntype",Promise)],Mt.prototype,"recepcaoEvento",null);Tn([Mn(fo),me("design:type",Function),me("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),me("design:returntype",Promise)],Mt.prototype,"consultaCadastro",null);var Ot=class extends ur{static{s(this,"TransmissionPipeline")}certificate;transmitter=new Mt(this.soap);constructor(e){super(e),this.certificate=e}};function Ag(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ag,"_ts_decorate");function vf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(vf,"_ts_metadata");var xa=class extends Ot{static{s(this,"EventPipeline")}async event(e,t,n){let r=await this.certificates.read(this.certificate);if(r.isLeft())return r;let i=t.chNFe.slice(0,2);this.transmitter.configure({cUF:i,...n,certificate:r.value});let a=Ps[e],c=this.certificates.getCertificateInfo(r.value.certificate),{nSeqEvento:f,dhEvento:u,chNFe:h}=t,g=["ID",e,h,f.toString().padStart(2,"0")].join(""),v={$:{xmlns:this.xmlns},infEvento:{$:{Id:g},cOrgao:i,tpAmb:n.tpAmb,CNPJ:c.CNPJ,CPF:c.CPF,chNFe:h,dhEvento:u,tpEvento:e,nSeqEvento:f,verEvento:a.version,detEvento:{$:{versao:a.version},descEvento:a.descEvento,...t.detEvento}}},y=this.validated(v);return y.isLeft()?y:await this.signer.sign(y.value,{tag:"infEvento",mark:"Id"},r.value)}versionedEvent(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infEvento;if(!Object.values(Fd).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"evento"});let i={evento:e,retEvento:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procEventoNFe"})}validated(e){let t=this.errors();return t?Tg(new zg(t.join(", "))):Eg(e)}};Ag([jg(Vo),vf("design:type",Function),vf("design:paramtypes",[typeof IEventoItem>"u"?Object:IEventoItem]),vf("design:returntype",void 0)],xa.prototype,"validated",null);import{left as Mg,NFeTsError as Bg,right as Vg}from"nfets/core";var Zs=class extends xa{static{s(this,"NfeCancelPipeline")}async execute(e,t){let n={chNFe:e.chNFe,dhEvento:e.dhEvento??new Date().toISOString(),detEvento:{nProt:e.nProt,xJust:e.xJust},nSeqEvento:1},r=await this.event(Tt.Cancelamento,n,t);if(r.isLeft())return r;let i=r.value,a=Ps[Tt.Cancelamento].version,c=await this.transmitter.recepcaoEvento({idLote:e.idLote??new Date().getTime().toString().slice(0,15),evento:i});if(c.isLeft())return c;let f=c.value,u=f.retEnvEvento.retEvento;if(!u)return Mg(new Bg("Evento de cancelamento n\xE3o retornado"));let h=await this.protocol(this.versionedEvent(i,a),u,a);return Vg({xml:h,response:f})}};var Bn=(function(o){return o.Asynchronous="0",o.Synchronous="1",o})({});var yf=(function(o){return o.LotReceived="103",o.ProcessedBatch="104",o})({});import{NFeTsError as Lg}from"nfets/core";var Oa=class extends Lg{static{s(this,"CouldNotReceiveResponseError")}constructor(e="Falha ao consultar protocolo de autoriza\xE7\xE3o ap\xF3s 3 tentativas, tente novamente mais tarde."){super(e)}};import{left as Ys,right as Da,NFeTsError as Hg}from"nfets/core";var Ud=(function(o){return o.Autorizada="100",o.AutorizadaForaDoPrazo="150",o.UsoDenegado="110",o.NfeDenegada="205",o.DenegadaIrregularidadeEmissor="301",o.DenegadaIrregularidadeDestinatario="302",o.DenegadaNaoHabilitadaNaUf="303",o})({});var Xs=class extends Ot{static{s(this,"NfeAuthorizerPipeline")}async execute(e,t){e.indSinc??=Bn.Synchronous;let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=await this.handleNfeBatch(n.value,e.xml);if(r.isLeft())return r;let[i]=r.value;this.transmitter.configure({cUF:i.infNFe.ide.cUF,tpAmb:i.infNFe.ide.tpAmb,...t,contingency:this.contingency(i),certificate:n.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.isLotNotProcessed(c,e)?Da(await this.handleLotNotProcessed(r.value,c)):e.indSinc===Bn.Synchronous&&this.isSyncResponse(c)?Da(await this.response(r.value,c)):e.indSinc===Bn.Asynchronous&&this.hasReceipt(c)?await this.handleAsyncResponse(r.value,c):Ys(new Oa)}async protocol(e,t){let{cStat:n}=t.infProt;if(!Object.values(Ud).includes(n))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"NFe"});let r={NFe:e,protNFe:t,$:{xmlns:this.xmlns,versao:t.$.versao}};return await this.toolkit.build(r,{renderOpts:{pretty:!1},rootName:"nfeProc"})}async response(e,t){let n=Array.isArray(t.retEnviNFe.protNFe)?t.retEnviNFe.protNFe:[t.retEnviNFe.protNFe],r=await Promise.all(e.map((i,a)=>this.protocol(i,n[a])));return r.length>1?{xml:r,response:t}:{xml:r[0],response:t}}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.toolkit.parse(t),i=await this.signNfe(e,r);return i.isLeft()?Ys(i.value):Da([i.value])}let n=await Promise.all(t.map(async r=>this.signNfe(e,await this.toolkit.parse(r))));return n.some(r=>r.isLeft())?Ys(new Hg("Failed to sign a NFe in batch")):Da(n.filter(r=>r.isRight()).map(r=>r.value))}isLotNotProcessed(e,t){let{cStat:n}=e.retEnviNFe,r=t.indSinc??Bn.Synchronous;return r===Bn.Asynchronous&&n!==yf.LotReceived.toString()||r===Bn.Synchronous&&n!==yf.ProcessedBatch.toString()}async handleLotNotProcessed(e,t){return this.response(e,this.toRejectionSyncResponse(e,t))}toRejectionSyncResponse(e,t){let{retEnviNFe:n}=t,r=e.map(i=>this.buildRejectionProtNFe(i,n));return{retEnviNFe:{...n,protNFe:r.length===1?r[0]:r}}}buildRejectionProtNFe(e,t){return{$:{versao:t.$.versao},infProt:{tpAmb:t.tpAmb,verAplic:t.verAplic,chNFe:e.infNFe.$.Id?.substring(3)??"",dhRecbto:t.dhRecbto,nProt:"",digVal:"",cStat:t.cStat,xMotivo:t.xMotivo}}}isSyncResponse(e){return"protNFe"in e.retEnviNFe&&!!e.retEnviNFe.protNFe}hasReceipt(e){return"infRec"in e.retEnviNFe&&!!e.retEnviNFe.infRec.nRec}async handleAsyncResponse(e,t){let{tpAmb:n,infRec:r}=t.retEnviNFe,{nRec:i}=r,a=1;for(;a<=3;)try{await new Promise(u=>setTimeout(u,1e3));let c=await this.transmitter.retAutorizacao({nRec:i,tpAmb:n});if(c.isLeft())continue;let f=c.value.retConsReciNFe.protNFe;if(!f||Array.isArray(f)&&f.length===0)continue;return Da(await this.response(e,{retEnviNFe:{...c.value.retConsReciNFe,protNFe:f}}))}finally{a++}return Ys(new Oa)}contingency(e){let{dhCont:t,xJust:n,tpEmis:r}=e.infNFe.ide;if(!(!t||!n||r===Xe.Normal))return{dhCont:t,xJust:n}}};import{left as Gd,NFeTsError as Zd,right as Yd,Validates as qg}from"nfets/core";function Qg(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Qg,"_ts_decorate");function Sf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Sf,"_ts_metadata");var wa=class extends Ot{static{s(this,"NfeVoidRangePipeline")}async execute(e,t){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let r=this.certificates.getCertificateInfo(n.value.certificate);this.transmitter.configure({...t,certificate:n.value});let i=e.ano??new Date().getFullYear().toString().slice(2),a=["ID",t.cUF,i,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:i,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 u=await this.signer.sign(f.value,{tag:"infInut",mark:"Id"},n.value);if(u.isLeft())return u;let h=await this.transmitter.inutilizacao(u.value);if(h.isLeft())return h;let g=h.value,v=g.retInutNFe;if(!v)return Gd(new Zd("Retorno de inutiliza\xE7\xE3o n\xE3o retornado"));let y=v.$.versao,R=await this.protocol(this.versionedInutNFe(u.value,y),v,y);return Yd({xml:R,response:g})}versionedInutNFe(e,t){let n=e.$;return{...e,$:{...n,xmlns:this.xmlns,versao:t}}}async protocol(e,t,n){let{cStat:r}=t.infInut;if(!Object.values(Od).includes(r))return await this.toolkit.build(e,{renderOpts:{pretty:!1},rootName:"inutNFe"});let i={inutNFe:e,retInutNFe:t,$:{xmlns:this.xmlns,versao:n}};return await this.toolkit.build(i,{renderOpts:{pretty:!1},rootName:"procInutNFe"})}validated(e){let t=this.errors();return t?Gd(new Zd(t.join(", "))):Yd(e)}};Qg([qg(di),Sf("design:type",Function),Sf("design:paramtypes",[typeof IIInutilizacaoPayload>"u"?Object:IIInutilizacaoPayload]),Sf("design:returntype",void 0)],wa.prototype,"validated",null);var Js=class extends Ot{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 _s=class extends Ot{static{s(this,"NfeConsultProtocoloPipeline")}async execute(e){let t=await this.certificates.read(this.certificate);return t.isLeft()?t:(this.transmitter.configure({tpAmb:e.tpAmb,cUF:e.chNFe.substring(0,2),certificate:t.value}),await this.transmitter.consultaProtocolo(e))}};var Xd=class extends Ot{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))}};import Ug from"crypto";import{right as Ws,SignatureAlgorithm as Gg,unreachable as Zg}from"nfets/core";var nt=class{static{s(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Ws(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):Zg(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:n,CSCId:r}=t,i=e.infNFe.ide.tpAmb,a=Number.parseInt(r),c=e.infNFe.$.Id?.substring(3),f=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Xe.OFFLINE)return`${c}|${f}|${i}|${a}`;let h=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),g=new Date(e.infNFe.ide.dhEmi).getDate(),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${c}|${f}|${i}|${g}|${v}|${h}|${a}`}async execute200(e,t){let{urlService:n,CSC:r}=t,i=this.getSequence(e,t),a=Ug.createHash("sha1").update(`${i}${r}`).digest("hex").toUpperCase(),c=`${n}?p=`;return Promise.resolve(Ws(`${c}${i}|${a}`))}getQrcodeV300OfflineIdentification(e){if(!e)return{tipo:"",documento:""};let{CPF:t,CNPJ:n,idEstrangeiro:r}=e,i=t?t.replace(/\D/g,""):n?n.replace(/[^A-Z0-9]/g,""):r?.replace(/\D/g,"");return i?i.length===11?{tipo:"2",documento:i}:i.length===14?{tipo:"1",documento:i}:r&&i.length>=3&&i.length<=14?{tipo:"3",documento:i}:{tipo:"",documento:""}:{tipo:"",documento:""}}emissionDayOfMonthFormatted(e){return String(new Date(e).getDate()).padStart(2,"0")}async execute300(e,t){let{urlService:n}=t,r=`${n}?p=`,i=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),c=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Xe.OFFLINE)return Ws(`${r}${a}|${c}|${i}`);let f=this.emissionDayOfMonthFormatted(e.infNFe.ide.dhEmi),u=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),{tipo:h,documento:g}=this.getQrcodeV300OfflineIdentification(e.infNFe.dest),v=`${a}|${c}|${i}|${f}|${u}|${h}|${g}`,y=await this.certificateRepository.sign(v,t.certificate,Gg.SHA1);return y.isLeft()?y:Ws(`${r}${v}|${y.value}`)}};import{StateCodes as Kd}from"nfets/core";import{Environment as b}from"nfets/core";var Cf={AC:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[b.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"}},[b.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:{[b.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"}},[b.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:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[b.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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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"}},[b.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",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:"nfeRecepcaoEventoNF",operation:"NFeRecepcaoEvento4",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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[b.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"}},[b.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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[b.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:"nfeRecepcaoEventoNF",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"}},[b.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:"nfeRecepcaoEventoNF",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:{[b.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[b.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[b.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"}},[b.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:{[b.Homolog]:{},[b.Production]:{}}};import{Environment as Jd,StateCodes as I}from"nfets/core";var _d={[Jd.Homolog]:{[I.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[I.AL]:"www.sefaz.al.gov.br/nfce/consulta",[I.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[I.AM]:"www.sefaz.am.gov.br/nfce/consulta",[I.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[I.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[I.DF]:"www.fazenda.df.gov.br/nfce/consulta",[I.ES]:"www.sefaz.es.gov.br/nfce/consulta",[I.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[I.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[I.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[I.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[I.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[I.PA]:"www.sefa.pa.gov.br/nfce/consulta",[I.PB]:"www.sefaz.pb.gov.br/nfcehom",[I.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[I.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[I.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[I.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[I.RN]:"www.set.rn.gov.br/nfce/consulta",[I.RO]:"www.sefin.ro.gov.br/nfce/consulta",[I.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[I.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[I.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[I.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[I.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[I.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Jd.Production]:{[I.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[I.AL]:"www.sefaz.al.gov.br/nfce/consulta",[I.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[I.AM]:"www.sefaz.am.gov.br/nfce/consulta",[I.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[I.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[I.DF]:"www.fazenda.df.gov.br/nfce/consulta",[I.ES]:"www.sefaz.es.gov.br/nfce/consulta",[I.GO]:"www.sefaz.go.gov.br/nfce/consulta",[I.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[I.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[I.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[I.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[I.PA]:"www.sefa.pa.gov.br/nfce/consulta",[I.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[I.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[I.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[I.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[I.RN]:"www.set.rn.gov.br/nfce/consulta",[I.RO]:"www.sefin.ro.gov.br/nfce/consulta",[I.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[I.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[I.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[I.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[I.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[I.TO]:"www.sefaz.to.gov.br/nfce/consulta",[I.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};import{StateCodes as X}from"nfets/core";var Yg={[X.AC]:"SVRS",[X.AL]:"SVRS",[X.AM]:"AM",[X.AP]:"SVRS",[X.BA]:"SVRS",[X.CE]:"SVRS",[X.DF]:"SVRS",[X.ES]:"SVRS",[X.GO]:"GO",[X.MA]:"SVRS",[X.MG]:"MG",[X.MS]:"MS",[X.MT]:"MT",[X.PA]:"SVRS",[X.PB]:"SVRS",[X.PE]:"SVRS",[X.PI]:"SVRS",[X.PR]:"PR",[X.RJ]:"SVRS",[X.RN]:"SVRS",[X.RO]:"SVRS",[X.RR]:"SVRS",[X.RS]:"RS",[X.SC]:"SVRS",[X.SE]:"SVRS",[X.SP]:"SP",[X.TO]:"SVRS",SVRS:"SVRS"},Wd=Yg;var Ks=class extends co{static{s(this,"NfceAutorizacaoPayload")}};import{Validates as Jg}from"nfets/core";function Xg(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Xg,"_ts_decorate");function bf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(bf,"_ts_metadata");var We=class extends Mt{static{s(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={timeout:6e4};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,n=e.tpAmb??this.options.tpAmb,r=Wd[t],c=Cf[r][n][e.service];if(c)return c;let f=Object.keys(Kd).find(u=>Kd[u]===t);return Cf[f][n][e.service]}getUrlConsult(e){let t=e.infNFe.ide.cUF,n=e.infNFe.ide.tpAmb;return _d[n][t]}async autorizacao(e){return super.autorizacao(e)}};Xg([Jg(Ks),bf("design:type",Function),bf("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),bf("design:returntype",Promise)],We.prototype,"autorizacao",null);var kd=class extends Zs{static{s(this,"NfceCancelPipeline")}qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode)};var ks=class extends Xs{static{s(this,"NfceAuthorizerPipeline")}certificate;qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}};import{DigestAlgorithm as _g,SignatureAlgorithm as $d,left as Nf,right as $s,NFeTsError as If}from"nfets/core";var el=class extends ks{static{s(this,"NfceContingencyXmlAuthorizerPipeline")}certificate;qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode);constructor(e){super(e),this.certificate=e}async handleNfeBatch(e,t){if(!Array.isArray(t))return this.parseContingencyXml(t).then(r=>r.isLeft()?r:$s([r.value]));let n=await Promise.all(t.map(r=>this.parseContingencyXml(r)));if(n.some(r=>r.isLeft())){let r=n.find(i=>i.isLeft());return Nf(r?.value??new If("NFC-e XML must be signed"))}return $s(n.filter(r=>r.isRight()).map(r=>r.value))}async parseContingencyXml(e){let t=await this.toolkit.parse(e);return this.assertSignatureIntegrity(t)}async assertSignatureIntegrity(e){let t=e.Signature?.SignedInfo?.Reference?.DigestValue;if(!t)return Nf(new If("NFC-e XML must be signed"));let n=await this.rebuildInfNFeNode(e);if(n.isLeft())return n;let r=this.signatureAlgorithm(e);return this.toolkit.digest(n.value,r)!==t?Nf(new If("NFC-e XML signature digest mismatch")):$s(e)}async rebuildInfNFeNode(e){let t=e.$?.xmlns,{$:n,...r}=e.infNFe??{};delete n.xmlns;let i=await this.toolkit.build({$:{xmlns:t,...n},...r},{headless:!0,rootName:"infNFe",renderOpts:{pretty:!1}});return $s(i)}signatureAlgorithm(e){return e.Signature?.SignedInfo?.Reference?.DigestMethod?.$?.Algorithm===_g.SHA256?$d.SHA256:$d.SHA1}};var tl=class extends wa{static{s(this,"NfceVoidRangePipeline")}qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode)};var ol=class extends Js{static{s(this,"NfceConsultStatusPipeline")}qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode)};var il=class extends _s{static{s(this,"NfceConsultProtocoloPipeline")}qrCode=new nt(this.certificates);transmitter=new We(this.soap,this.qrCode)};import uy from"path";import{left as my,right as Op}from"nfets/core";import{Allow as ay,IsNotEmpty as sy,IsNotEmptyObject as fu,IsObject as pu,IsString as cy,ValidateNested as du}from"class-validator";import{ArrayMaxSize as su,ArrayMinSize as ry,IsNotEmptyObject as Rp,IsObject as Fp,IsOptional as Ft,IsString as cu,ValidateNested as Oe}from"class-validator";import{Type as De}from"class-transformer";import{ArrayMaxSize as Wg,IsArray as Kg,IsEnum as kg,IsOptional as Dt,IsString as P,ValidateNested as ec}from"class-validator";import{Type as tc}from"class-transformer";import{Choice as $g,TransformDateString as Rf}from"nfets/core";import{StateCodes as ev}from"nfets/core";function F(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(F,"_ts_decorate");function x(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(x,"_ts_metadata");var ui=class{static{s(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};F([P(),x("design:type",String)],ui.prototype,"cUF",void 0);F([P(),x("design:type",String)],ui.prototype,"AAMM",void 0);F([P(),x("design:type",String)],ui.prototype,"CNPJ",void 0);F([P(),x("design:type",String)],ui.prototype,"mod",void 0);F([P(),x("design:type",String)],ui.prototype,"serie",void 0);F([P(),x("design:type",String)],ui.prototype,"nNF",void 0);var Bt=class{static{s(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};F([P(),x("design:type",String)],Bt.prototype,"cUF",void 0);F([P(),x("design:type",String)],Bt.prototype,"AAMM",void 0);F([Dt(),P(),x("design:type",String)],Bt.prototype,"CNPJ",void 0);F([Dt(),P(),x("design:type",String)],Bt.prototype,"CPF",void 0);F([P(),x("design:type",String)],Bt.prototype,"IE",void 0);F([P(),x("design:type",String)],Bt.prototype,"mod",void 0);F([P(),x("design:type",String)],Bt.prototype,"serie",void 0);F([P(),x("design:type",String)],Bt.prototype,"nNF",void 0);Bt=F([$g({properties:["CNPJ","CPF"],required:!0})],Bt);var vr=class{static{s(this,"RefECF")}mod;nECF;nCOO};F([P(),x("design:type",String)],vr.prototype,"mod",void 0);F([P(),x("design:type",String)],vr.prototype,"nECF",void 0);F([P(),x("design:type",String)],vr.prototype,"nCOO",void 0);var mi=class{static{s(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};F([Dt(),P(),x("design:type",String)],mi.prototype,"refNFe",void 0);F([Dt(),P(),x("design:type",String)],mi.prototype,"refNFeSig",void 0);F([Dt(),ec(),tc(()=>ui),x("design:type",typeof IRefNF>"u"?Object:IRefNF)],mi.prototype,"refNF",void 0);F([Dt(),ec(),tc(()=>Bt),x("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],mi.prototype,"refNFP",void 0);F([Dt(),P(),x("design:type",String)],mi.prototype,"refCTe",void 0);F([Dt(),ec(),tc(()=>vr),x("design:type",typeof IRefECF>"u"?Object:IRefECF)],mi.prototype,"refECF",void 0);var V=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};F([kg(ev),x("design:type",typeof StateCode>"u"?Object:StateCode)],V.prototype,"cUF",void 0);F([P(),x("design:type",String)],V.prototype,"cNF",void 0);F([P(),x("design:type",String)],V.prototype,"natOp",void 0);F([P(),x("design:type",String)],V.prototype,"mod",void 0);F([P(),x("design:type",String)],V.prototype,"serie",void 0);F([P(),x("design:type",String)],V.prototype,"nNF",void 0);F([Rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhEmi",void 0);F([Dt(),Rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhSaiEnt",void 0);F([P(),x("design:type",String)],V.prototype,"tpNF",void 0);F([P(),x("design:type",String)],V.prototype,"idDest",void 0);F([P(),x("design:type",String)],V.prototype,"cMunFG",void 0);F([P(),x("design:type",String)],V.prototype,"tpImp",void 0);F([P(),x("design:type",typeof TpEmis>"u"?Object:TpEmis)],V.prototype,"tpEmis",void 0);F([P(),Dt(),x("design:type",String)],V.prototype,"cDV",void 0);F([P(),x("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],V.prototype,"tpAmb",void 0);F([P(),x("design:type",String)],V.prototype,"finNFe",void 0);F([P(),x("design:type",String)],V.prototype,"indFinal",void 0);F([P(),x("design:type",String)],V.prototype,"indPres",void 0);F([Dt(),P(),x("design:type",String)],V.prototype,"indIntermed",void 0);F([P(),x("design:type",String)],V.prototype,"procEmi",void 0);F([P(),x("design:type",String)],V.prototype,"verProc",void 0);F([Dt(),P(),Rf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),x("design:type",String)],V.prototype,"dhCont",void 0);F([Dt(),P(),x("design:type",String)],V.prototype,"xJust",void 0);F([Dt(),Kg(),Wg(999),ec({each:!0}),tc(()=>mi),x("design:type",Array)],V.prototype,"NFref",void 0);import{IsOptional as yr,IsString as hi,ValidateNested as tv}from"class-validator";import{Choice as ov}from"nfets/core";import{Type as iv}from"class-transformer";import{IsOptional as oc,IsString as uo}from"class-validator";function po(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(po,"_ts_decorate");function lo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(lo,"_ts_metadata");var Ke=class{static{s(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};po([uo(),lo("design:type",String)],Ke.prototype,"xLgr",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"nro",void 0);po([oc(),uo(),lo("design:type",String)],Ke.prototype,"xCpl",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"xBairro",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"cMun",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"xMun",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"UF",void 0);po([uo(),lo("design:type",String)],Ke.prototype,"CEP",void 0);po([oc(),uo(),lo("design:type",String)],Ke.prototype,"cPais",void 0);po([oc(),uo(),lo("design:type",String)],Ke.prototype,"xPais",void 0);po([oc(),uo(),lo("design:type",String)],Ke.prototype,"fone",void 0);function mo(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(mo,"_ts_decorate");function Lo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Lo,"_ts_metadata");var He=class{static{s(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};mo([yr(),hi(),Lo("design:type",String)],He.prototype,"CNPJ",void 0);mo([yr(),hi(),Lo("design:type",String)],He.prototype,"CPF",void 0);mo([hi(),Lo("design:type",String)],He.prototype,"xNome",void 0);mo([yr(),hi(),Lo("design:type",String)],He.prototype,"xFant",void 0);mo([tv(),iv(()=>Ke),Lo("design:type",typeof Ke>"u"?Object:Ke)],He.prototype,"enderEmit",void 0);mo([hi(),Lo("design:type",String)],He.prototype,"IE",void 0);mo([yr(),hi(),Lo("design:type",String)],He.prototype,"IEST",void 0);mo([yr(),hi(),Lo("design:type",String)],He.prototype,"IM",void 0);mo([yr(),hi(),Lo("design:type",String)],He.prototype,"CNAE",void 0);mo([hi(),Lo("design:type",String)],He.prototype,"CRT",void 0);He=mo([ov({properties:["CNPJ","CPF"],required:!0})],He);import{IsOptional as gi,IsString as vi,ValidateNested as nv}from"class-validator";import{Type as rv}from"class-transformer";import{IsOptional as vo,IsString as yo}from"class-validator";function ho(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ho,"_ts_decorate");function go(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(go,"_ts_metadata");var St=class{static{s(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};ho([vo(),yo(),go("design:type",String)],St.prototype,"xLgr",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"nro",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"xCpl",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"xBairro",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"cMun",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"xMun",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"UF",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"CEP",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"cPais",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"xPais",void 0);ho([vo(),yo(),go("design:type",String)],St.prototype,"fone",void 0);import{Choice as av}from"nfets/core";function So(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(So,"_ts_decorate");function Ho(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ho,"_ts_metadata");var Qe=class{static{s(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"CNPJ",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"CPF",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"idEstrangeiro",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"xNome",void 0);So([gi(),nv(),rv(()=>St),Ho("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],Qe.prototype,"enderDest",void 0);So([vi(),Ho("design:type",String)],Qe.prototype,"indIEDest",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"IE",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"ISUF",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"IM",void 0);So([gi(),vi(),Ho("design:type",String)],Qe.prototype,"email",void 0);Qe=So([av({properties:["CNPJ","CPF"],required:!0})],Qe);import{IsOptional as Qo,IsString as at}from"class-validator";import{Choice as sv}from"nfets/core";function ke(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ke,"_ts_decorate");function rt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(rt,"_ts_metadata");var _=class{static{s(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};ke([Qo(),at(),rt("design:type",String)],_.prototype,"CNPJ",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"CPF",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"xNome",void 0);ke([at(),rt("design:type",String)],_.prototype,"xLgr",void 0);ke([at(),rt("design:type",String)],_.prototype,"nro",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"xCpl",void 0);ke([at(),rt("design:type",String)],_.prototype,"xBairro",void 0);ke([at(),rt("design:type",String)],_.prototype,"cMun",void 0);ke([at(),rt("design:type",String)],_.prototype,"xMun",void 0);ke([at(),rt("design:type",String)],_.prototype,"UF",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"CEP",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"cPais",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"xPais",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"fone",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"email",void 0);ke([Qo(),at(),rt("design:type",String)],_.prototype,"IE",void 0);_=ke([sv({properties:["CNPJ","CPF"]})],_);import{IsOptional as rl,IsString as al}from"class-validator";import{Choice as cv}from"nfets/core";function Ff(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ff,"_ts_decorate");function nl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(nl,"_ts_metadata");var qo=class{static{s(this,"AutXML")}CNPJ;CPF};Ff([rl(),al(),nl("design:type",String)],qo.prototype,"CNPJ",void 0);Ff([rl(),al(),nl("design:type",String)],qo.prototype,"CPF",void 0);qo=Ff([cv({properties:["CNPJ","CPF"]})],qo);import{IsOptional as fv,IsString as fl}from"class-validator";function sl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(sl,"_ts_decorate");function cl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(cl,"_ts_metadata");var ki=class{static{s(this,"InfIntermed")}CNPJ;idCadIntTran};sl([fl(),cl("design:type",String)],ki.prototype,"CNPJ",void 0);sl([fv(),fl(),cl("design:type",String)],ki.prototype,"idCadIntTran",void 0);import{IsOptional as pl,IsString as Df}from"class-validator";function xf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(xf,"_ts_decorate");function Of(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Of,"_ts_metadata");var yi=class{static{s(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};xf([Df(),Of("design:type",String)],yi.prototype,"UFSaidaPais",void 0);xf([pl(),Df(),Of("design:type",String)],yi.prototype,"xLocExporta",void 0);xf([pl(),Df(),Of("design:type",String)],yi.prototype,"xLocDespacho",void 0);import{IsOptional as Af,IsString as zf}from"class-validator";function wf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(wf,"_ts_decorate");function Pf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Pf,"_ts_metadata");var Si=class{static{s(this,"Compra")}xNEmp;xPed;xCont};wf([Af(),zf(),Pf("design:type",String)],Si.prototype,"xNEmp",void 0);wf([Af(),zf(),Pf("design:type",String)],Si.prototype,"xPed",void 0);wf([Af(),zf(),Pf("design:type",String)],Si.prototype,"xCont",void 0);import{IsOptional as dl,IsString as br}from"class-validator";function Sr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Sr,"_ts_decorate");function Cr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Cr,"_ts_metadata");var Xt=class{static{s(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};Sr([br(),Cr("design:type",String)],Xt.prototype,"CNPJ",void 0);Sr([br(),Cr("design:type",String)],Xt.prototype,"xContato",void 0);Sr([br(),Cr("design:type",String)],Xt.prototype,"email",void 0);Sr([br(),Cr("design:type",String)],Xt.prototype,"fone",void 0);Sr([dl(),br(),Cr("design:type",String)],Xt.prototype,"idCSRT",void 0);Sr([dl(),br(),Cr("design:type",String)],Xt.prototype,"hashCSRT",void 0);import{IsOptional as Va,ValidateNested as La}from"class-validator";import{Type as Ha}from"class-transformer";import{IsOptional as Uo}from"class-validator";import{TransformDecimal as q}from"nfets/core";function H(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(H,"_ts_decorate");function Q(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Q,"_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};H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBC",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSDeson",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPUFDest",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFDest",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSUFRemet",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCP",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vBCST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPST",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFCPSTRet",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMono",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMono",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoReten",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoReten",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"qBCMonoRet",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vICMSMonoRet",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vProd",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vFrete",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vSeg",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vDesc",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vII",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPI",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vIPIDevol",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vPIS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vCOFINS",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vOutro",void 0);H([q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vNF",void 0);H([Uo(),q({fixed:2}),Q("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],M.prototype,"vTotTrib",void 0);import{IsOptional as Co,IsString as ll}from"class-validator";import{TransformDecimal as Go}from"nfets/core";function Jt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Jt,"_ts_decorate");function _t(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_t,"_ts_metadata");var st=class{static{s(this,"ISSQNtot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vServ",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vBC",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vISS",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vPIS",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vCOFINS",void 0);Jt([ll(),_t("design:type",String)],st.prototype,"dCompet",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vDeducao",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vOutro",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vDescIncond",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vDescCond",void 0);Jt([Co(),Go({fixed:2}),_t("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],st.prototype,"vISSRet",void 0);Jt([Co(),ll(),_t("design:type",String)],st.prototype,"cRegTrib",void 0);import{IsOptional as Hn}from"class-validator";import{TransformDecimal as Qn}from"nfets/core";function Vn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Vn,"_ts_decorate");function Ln(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ln,"_ts_metadata");var bo=class{static{s(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vRetPIS",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vRetCOFINS",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vRetCSLL",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vBCIRRF",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vIRRF",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vBCRetPrev",void 0);Vn([Hn(),Qn({fixed:2}),Ln("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bo.prototype,"vRetPrev",void 0);import{IsOptional as rc,ValidateNested as Hf}from"class-validator";import{IsOptional as za,ValidateNested as ul}from"class-validator";import{TransformDecimal as Tf}from"nfets/core";function Ef(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ef,"_ts_decorate");function jf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(jf,"_ts_metadata");var qn=class{static{s(this,"IBSMunTot")}vDif="0.00";vDevTrib="0.00";vIBSMun="0.00"};Ef([Tf({fixed:2}),jf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qn.prototype,"vDif",void 0);Ef([Tf({fixed:2}),jf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qn.prototype,"vDevTrib",void 0);Ef([Tf({fixed:2}),jf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qn.prototype,"vIBSMun",void 0);import{Type as ml}from"class-transformer";import{TransformDecimal as Vf}from"nfets/core";function Mf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Mf,"_ts_decorate");function Bf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Bf,"_ts_metadata");var Un=class{static{s(this,"IBSUFTot")}vDif="0.00";vDevTrib="0.00";vIBSUF="0.00"};Mf([Vf({fixed:2}),Bf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Un.prototype,"vDif",void 0);Mf([Vf({fixed:2}),Bf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Un.prototype,"vDevTrib",void 0);Mf([Vf({fixed:2}),Bf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Un.prototype,"vIBSUF",void 0);import{TransformDecimal as Lf}from"nfets/core";function Pa(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Pa,"_ts_decorate");function Aa(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Aa,"_ts_metadata");var Ci=class{static{s(this,"IBSTot")}gIBSUF;gIBSMun;vIBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};Pa([za(),ul(),ml(()=>Un),Aa("design:type",typeof IIBSUFTot>"u"?Object:IIBSUFTot)],Ci.prototype,"gIBSUF",void 0);Pa([za(),ul(),ml(()=>qn),Aa("design:type",typeof IIBSMunTot>"u"?Object:IIBSMunTot)],Ci.prototype,"gIBSMun",void 0);Pa([za(),Lf({fixed:2}),Aa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vIBS",void 0);Pa([za(),Lf({fixed:2}),Aa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vCredPres",void 0);Pa([za(),Lf({fixed:2}),Aa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ci.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as pv}from"nfets/core";import{Type as Qf}from"class-transformer";import{TransformDecimal as Ta}from"nfets/core";import{IsOptional as Ma}from"class-validator";function Ea(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ea,"_ts_decorate");function ja(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ja,"_ts_metadata");var bi=class{static{s(this,"CBSTot")}vDif="0.00";vDevTrib="0.00";vCBS="0.00";vCredPres="0.00";vCredPresCondSus="0.00"};Ea([Ma(),Ta({fixed:2}),ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vDif",void 0);Ea([Ma(),Ta({fixed:2}),ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vDevTrib",void 0);Ea([Ma(),Ta({fixed:2}),ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCBS",void 0);Ea([Ma(),Ta({fixed:2}),ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCredPres",void 0);Ea([Ma(),Ta({fixed:2}),ja("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bi.prototype,"vCredPresCondSus",void 0);import{TransformDecimal as Rr}from"nfets/core";import{IsOptional as Fr}from"class-validator";function Nr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Nr,"_ts_decorate");function Ir(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ir,"_ts_metadata");var Zo=class{static{s(this,"IBSMonoTot")}vIBSMono="0.00";vCBSMono="0.00";vIBSMonoReten="0.00";vCBSMonoReten="0.00";vIBSMonoRet="0.00";vCBSMonoRet="0.00"};Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vIBSMono",void 0);Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vCBSMono",void 0);Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vIBSMonoReten",void 0);Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vCBSMonoReten",void 0);Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vIBSMonoRet",void 0);Nr([Fr(),Rr({fixed:2}),Ir("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zo.prototype,"vCBSMonoRet",void 0);function ic(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ic,"_ts_decorate");function nc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(nc,"_ts_metadata");var $i=class{static{s(this,"IBSCBSTot")}vBCIBSCBS="0.00";gIBS;gCBS;gMono};ic([rc(),pv({fixed:2}),nc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$i.prototype,"vBCIBSCBS",void 0);ic([rc(),Hf(),Qf(()=>Ci),nc("design:type",typeof IIBSTot>"u"?Object:IIBSTot)],$i.prototype,"gIBS",void 0);ic([rc(),Hf(),Qf(()=>bi),nc("design:type",typeof ICBSTot>"u"?Object:ICBSTot)],$i.prototype,"gCBS",void 0);ic([rc(),Hf(),Qf(()=>Zo),nc("design:type",typeof IIBSMonoTot>"u"?Object:IIBSMonoTot)],$i.prototype,"gMono",void 0);import{TransformDecimal as uv}from"nfets/core";import{IsOptional as mv}from"class-validator";function dv(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(dv,"_ts_decorate");function lv(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(lv,"_ts_metadata");var Ba=class{static{s(this,"ISTot")}vIS="0.00"};dv([mv(),uv({fixed:2}),lv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ba.prototype,"vIS",void 0);import{TransformDecimal as hv}from"nfets/core";function xr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(xr,"_ts_decorate");function Or(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Or,"_ts_metadata");var Wt=class{static{s(this,"Total")}ICMSTot;ISSQNtot;retTrib;ISTot;IBSCBSTot;vNFTot};xr([La(),Ha(()=>M),Or("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Wt.prototype,"ICMSTot",void 0);xr([Va(),La(),Ha(()=>st),Or("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Wt.prototype,"ISSQNtot",void 0);xr([Va(),La(),Ha(()=>bo),Or("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Wt.prototype,"retTrib",void 0);xr([Va(),La(),Ha(()=>Ba),Or("design:type",typeof IISTot>"u"?Object:IISTot)],Wt.prototype,"ISTot",void 0);xr([Va(),La(),Ha(()=>$i),Or("design:type",typeof IIBSCBSTot>"u"?Object:IIBSCBSTot)],Wt.prototype,"IBSCBSTot",void 0);xr([Va(),hv({fixed:2}),Or("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wt.prototype,"vNFTot",void 0);import{ArrayMaxSize as yl,IsOptional as Jn,IsString as qf,ValidateNested as Qa}from"class-validator";import{Type as qa}from"class-transformer";import{IsOptional as Zn,IsString as Yn}from"class-validator";import{Choice as gv}from"nfets/core";function en(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(en,"_ts_decorate");function Gn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gn,"_ts_metadata");var ct=class{static{s(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"CNPJ",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"CPF",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"xNome",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"IE",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"xEnder",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"xMun",void 0);en([Zn(),Yn(),Gn("design:type",String)],ct.prototype,"UF",void 0);ct=en([gv({properties:["CNPJ","CPF"]})],ct);import{IsOptional as Pr,IsString as hl}from"class-validator";import{TransformDecimal as ac}from"nfets/core";function Dr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Dr,"_ts_decorate");function wr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(wr,"_ts_metadata");var Vt=class{static{s(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Dr([Pr(),ac({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vServ",void 0);Dr([Pr(),ac({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vBCRet",void 0);Dr([Pr(),ac({fixed:4}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"pICMSRet",void 0);Dr([Pr(),ac({fixed:2}),wr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vt.prototype,"vICMSRet",void 0);Dr([Pr(),hl(),wr("design:type",String)],Vt.prototype,"CFOP",void 0);Dr([Pr(),hl(),wr("design:type",String)],Vt.prototype,"cMunFG",void 0);import{IsOptional as Er,IsString as jr}from"class-validator";function Ar(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ar,"_ts_decorate");function zr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zr,"_ts_metadata");var Yo=class{static{s(this,"VeicTransp")}placa;UF;RNTC};Ar([Er(),jr(),zr("design:type",String)],Yo.prototype,"placa",void 0);Ar([Er(),jr(),zr("design:type",String)],Yo.prototype,"UF",void 0);Ar([Er(),jr(),zr("design:type",String)],Yo.prototype,"RNTC",void 0);var Xn=class{static{s(this,"Reboque")}placa;UF;RNTC};Ar([Er(),jr(),zr("design:type",String)],Xn.prototype,"placa",void 0);Ar([Er(),jr(),zr("design:type",String)],Xn.prototype,"UF",void 0);Ar([Er(),jr(),zr("design:type",String)],Xn.prototype,"RNTC",void 0);import{IsOptional as Br,IsString as sc}from"class-validator";import{TransformDecimal as gl}from"nfets/core";function Tr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Tr,"_ts_decorate");function Mr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Mr,"_ts_metadata");var Xo=class{static{s(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};Tr([Br(),sc(),Mr("design:type",String)],Xo.prototype,"qVol",void 0);Tr([Br(),sc(),Mr("design:type",String)],Xo.prototype,"esp",void 0);Tr([Br(),sc(),Mr("design:type",String)],Xo.prototype,"marca",void 0);Tr([Br(),sc(),Mr("design:type",String)],Xo.prototype,"nVol",void 0);Tr([Br(),gl({fixed:3}),Mr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"pesoL",void 0);Tr([Br(),gl({fixed:3}),Mr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xo.prototype,"pesoB",void 0);import{Choice as vl}from"nfets/core";function Ni(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ni,"_ts_decorate");function tn(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(tn,"_ts_metadata");var ft=class{static{s(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Ni([qf(),tn("design:type",String)],ft.prototype,"modFrete",void 0);Ni([Jn(),Qa(),qa(()=>ct),tn("design:type",typeof ct>"u"?Object:ct)],ft.prototype,"transporta",void 0);Ni([Jn(),Qa(),qa(()=>Vt),tn("design:type",typeof Vt>"u"?Object:Vt)],ft.prototype,"retTransp",void 0);Ni([Jn(),Qa(),qa(()=>Yo),tn("design:type",typeof Yo>"u"?Object:Yo)],ft.prototype,"veicTransp",void 0);Ni([Jn(),Qa({each:!0}),qa(()=>Xn),yl(5),tn("design:type",Array)],ft.prototype,"reboque",void 0);Ni([Jn(),qf(),tn("design:type",String)],ft.prototype,"vagao",void 0);Ni([Jn(),qf(),tn("design:type",String)],ft.prototype,"balsa",void 0);Ni([Jn(),Qa({each:!0}),qa(()=>Xo),yl(5e3),tn("design:type",Array)],ft.prototype,"vol",void 0);ft=Ni([vl({properties:["veicTransp","reboque"]}),vl({properties:["vagao","balsa"]})],ft);import{ArrayMaxSize as vv,IsOptional as xi,IsString as Uf,ValidateNested as Sl}from"class-validator";import{Type as Cl}from"class-transformer";import{TransformDecimal as cc}from"nfets/core";function Ri(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ri,"_ts_decorate");function Fi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Fi,"_ts_metadata");var Ii=class{static{s(this,"Fat")}nFat;vOrig;vDesc;vLiq};Ri([xi(),Uf(),Fi("design:type",String)],Ii.prototype,"nFat",void 0);Ri([xi(),cc({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vOrig",void 0);Ri([xi(),cc({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vDesc",void 0);Ri([xi(),cc({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ii.prototype,"vLiq",void 0);var Vr=class{static{s(this,"Dup")}nDup;dVenc;vDup};Ri([xi(),Uf(),Fi("design:type",String)],Vr.prototype,"nDup",void 0);Ri([xi(),Uf(),Fi("design:type",String)],Vr.prototype,"dVenc",void 0);Ri([xi(),cc({fixed:2}),Fi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vr.prototype,"vDup",void 0);var on=class{static{s(this,"Cobr")}fat;dup};Ri([xi(),Sl(),Cl(()=>Ii),Fi("design:type",typeof Ii>"u"?Object:Ii)],on.prototype,"fat",void 0);Ri([xi(),Sl({each:!0}),vv(120),Cl(()=>Vr),Fi("design:type",Array)],on.prototype,"dup",void 0);import{ArrayMaxSize as bv,ArrayMinSize as Nv,IsOptional as Iv,ValidateNested as Rv}from"class-validator";import{Type as Fv}from"class-transformer";import{IsOptional as Gf,IsString as Zf,ValidateNested as yv}from"class-validator";import{Type as Sv}from"class-transformer";import{IsOptional as Qr,IsString as qr}from"class-validator";function Lr(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Lr,"_ts_decorate");function Hr(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Hr,"_ts_metadata");var Lt=class{static{s(this,"Card")}tpIntegra;CNPJ;tBand;cAut;CNPJReceb;idTermPag};Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"tpIntegra",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"CNPJ",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"tBand",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"cAut",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"CNPJReceb",void 0);Lr([Qr(),qr(),Hr("design:type",String)],Lt.prototype,"idTermPag",void 0);import{TransformDecimal as Cv}from"nfets/core";function Ua(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ua,"_ts_decorate");function Ga(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ga,"_ts_metadata");var Oi=class{static{s(this,"DetPag")}indPag;tPag;vPag;card;xPag};Ua([Gf(),Zf(),Ga("design:type",String)],Oi.prototype,"indPag",void 0);Ua([Zf(),Ga("design:type",typeof TPag>"u"?Object:TPag)],Oi.prototype,"tPag",void 0);Ua([Cv({fixed:2}),Ga("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Oi.prototype,"vPag",void 0);Ua([Gf(),yv(),Sv(()=>Lt),Ga("design:type",typeof Lt>"u"?Object:Lt)],Oi.prototype,"card",void 0);Ua([Gf(),Zf(),Ga("design:type",String)],Oi.prototype,"xPag",void 0);import{TransformDecimal as xv}from"nfets/core";function bl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(bl,"_ts_decorate");function Nl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Nl,"_ts_metadata");var nn=class{static{s(this,"Pag")}detPag;vTroco};bl([Rv({each:!0}),Nv(1),bv(100),Fv(()=>Oi),Nl("design:type",Array)],nn.prototype,"detPag",void 0);bl([Iv(),xv({fixed:2}),Nl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nn.prototype,"vTroco",void 0);import{ArrayMaxSize as Yf,IsOptional as _n,IsString as Gr,ValidateNested as Xf}from"class-validator";import{Type as Jf}from"class-transformer";function Di(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Di,"_ts_decorate");function wi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(wi,"_ts_metadata");var Ur=class{static{s(this,"InfAdicObs")}xCampo;xTexto};Di([Gr(),wi("design:type",String)],Ur.prototype,"xCampo",void 0);Di([Gr(),wi("design:type",String)],Ur.prototype,"xTexto",void 0);var Za=class{static{s(this,"ProcRef")}nProc;indProc};Di([_n(),Gr(),wi("design:type",String)],Za.prototype,"nProc",void 0);Di([_n(),Gr(),wi("design:type",String)],Za.prototype,"indProc",void 0);var No=class{static{s(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Di([_n(),Gr(),wi("design:type",String)],No.prototype,"infAdFisco",void 0);Di([_n(),Gr(),wi("design:type",String)],No.prototype,"infCpl",void 0);Di([_n(),Xf({each:!0}),Jf(()=>Ur),Yf(10),wi("design:type",Array)],No.prototype,"obsCont",void 0);Di([_n(),Xf({each:!0}),Jf(()=>Ur),Yf(10),wi("design:type",Array)],No.prototype,"obsFisco",void 0);Di([_n(),Xf({each:!0}),Jf(()=>Za),Yf(100),wi("design:type",Array)],No.prototype,"procRef",void 0);import{ArrayMaxSize as Il,IsNotEmptyObject as Ov,IsObject as Dv,IsOptional as Wn,IsString as rn,ValidateNested as Rl}from"class-validator";import{Type as _f}from"class-transformer";import{TransformDecimal as pc}from"nfets/core";function Ct(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ct,"_ts_decorate");function bt(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(bt,"_ts_metadata");var fc=class{static{s(this,"ForDiaAttributes")}dia};Ct([rn(),bt("design:type",String)],fc.prototype,"dia",void 0);var Ya=class{static{s(this,"ForDia")}$;qtde};Ct([Dv(),Ov(),_f(()=>fc),bt("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],Ya.prototype,"$",void 0);Ct([rn(),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ya.prototype,"qtde",void 0);var Xa=class{static{s(this,"Deduc")}xDed;vDed};Ct([rn(),bt("design:type",String)],Xa.prototype,"xDed",void 0);Ct([pc({fixed:2}),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Xa.prototype,"vDed",void 0);var pt=class{static{s(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};Ct([rn(),bt("design:type",String)],pt.prototype,"safra",void 0);Ct([rn(),bt("design:type",String)],pt.prototype,"ref",void 0);Ct([Rl({each:!0}),Il(31),_f(()=>Ya),bt("design:type",Array)],pt.prototype,"forDia",void 0);Ct([Wn(),rn(),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotMes",void 0);Ct([Wn(),rn(),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotAnt",void 0);Ct([Wn(),rn(),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"qTotGer",void 0);Ct([Wn(),Rl({each:!0}),Il(10),_f(()=>Xa),bt("design:type",Array)],pt.prototype,"deduc",void 0);Ct([Wn(),pc({fixed:2}),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vFor",void 0);Ct([Wn(),pc({fixed:2}),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vTotDed",void 0);Ct([Wn(),pc({fixed:2}),bt("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pt.prototype,"vLiqFor",void 0);import{IsObject as Kv,IsOptional as fs,IsString as au,ValidateNested as ps}from"class-validator";import{Type as ds}from"class-transformer";import{ArrayMaxSize as es,IsArray as hc,IsObject as $n,IsOptional as k,IsString as be,ValidateNested as zi}from"class-validator";import{TransformDecimal as Ei}from"nfets/core";import{Type as ji}from"class-transformer";import{IsOptional as dc,IsString as Wa}from"class-validator";function Ja(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ja,"_ts_decorate");function _a(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_a,"_ts_metadata");var Pi=class{static{s(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};Ja([Wa(),_a("design:type",String)],Pi.prototype,"nLote",void 0);Ja([dc(),Wa(),_a("design:type",String)],Pi.prototype,"qLote",void 0);Ja([dc(),Wa(),_a("design:type",String)],Pi.prototype,"dFab",void 0);Ja([dc(),Wa(),_a("design:type",String)],Pi.prototype,"dVal",void 0);Ja([dc(),Wa(),_a("design:type",String)],Pi.prototype,"cAgreg",void 0);import{Choice as Qv}from"nfets/core";import{IsString as wt,IsOptional as Ka,IsArray as wv,ValidateNested as Pv,ArrayMaxSize as Av,ArrayMinSize as zv}from"class-validator";import{Type as Ev}from"class-transformer";import{TransformDecimal as Fl,Choice as jv}from"nfets/core";function Ue(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ue,"_ts_decorate");function $e(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s($e,"_ts_metadata");var an=class{static{s(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Ue([wt(),$e("design:type",String)],an.prototype,"nAdicao",void 0);Ue([wt(),$e("design:type",String)],an.prototype,"nSeqAdic",void 0);Ue([wt(),$e("design:type",String)],an.prototype,"cFabricante",void 0);Ue([Fl({fixed:2}),$e("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],an.prototype,"vDescDI",void 0);Ue([Ka(),wt(),$e("design:type",String)],an.prototype,"nDraw",void 0);var qe=class{static{s(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Ue([wt(),$e("design:type",String)],qe.prototype,"nDI",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"dDI",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"xLocDesemb",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"UFDesemb",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"dDesemb",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"tpViaTransp",void 0);Ue([Ka(),Fl({fixed:2}),$e("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qe.prototype,"vAFRMM",void 0);Ue([wt(),$e("design:type",String)],qe.prototype,"tpIntermedio",void 0);Ue([wt(),Ka(),$e("design:type",String)],qe.prototype,"CNPJ",void 0);Ue([wt(),Ka(),$e("design:type",String)],qe.prototype,"CPF",void 0);Ue([wt(),Ka(),$e("design:type",String)],qe.prototype,"UFTerceiro",void 0);Ue([wv(),Pv({each:!0}),Ev(()=>an),Av(999),zv(1),$e("design:type",Array)],qe.prototype,"adi",void 0);qe=Ue([jv({properties:["CNPJ","CPF"],required:!0})],qe);import{Type as Tv}from"class-transformer";import{IsOptional as xl,IsString as Wf,ValidateNested as Mv}from"class-validator";import{TransformDecimal as Bv}from"nfets/core";function ka(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ka,"_ts_decorate");function $a(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s($a,"_ts_metadata");var Zr=class{static{s(this,"ExportInd")}nRE;chNFe;qExport};ka([Wf(),$a("design:type",String)],Zr.prototype,"nRE",void 0);ka([Wf(),$a("design:type",String)],Zr.prototype,"chNFe",void 0);ka([Bv({fixed:4}),$a("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zr.prototype,"qExport",void 0);var Yr=class{static{s(this,"DetExport")}nDraw;exportInd};ka([xl(),Wf(),$a("design:type",String)],Yr.prototype,"nDraw",void 0);ka([xl(),Mv(),Tv(()=>Zr),$a("design:type",typeof IExportInd>"u"?Object:IExportInd)],Yr.prototype,"exportInd",void 0);import{IsString as wl}from"class-validator";function Ol(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ol,"_ts_decorate");function Dl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Dl,"_ts_metadata");var Xr=class{static{s(this,"InfProdNFF")}cProdFisco;cOperNFF};Ol([wl(),Dl("design:type",String)],Xr.prototype,"cProdFisco",void 0);Ol([wl(),Dl("design:type",String)],Xr.prototype,"cOperNFF",void 0);import{IsString as Pl}from"class-validator";import{TransformDecimal as Vv}from"nfets/core";function Kf(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Kf,"_ts_decorate");function kf(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(kf,"_ts_metadata");var Kn=class{static{s(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};Kf([Pl(),kf("design:type",String)],Kn.prototype,"xEmb",void 0);Kf([Vv({fixed:3}),kf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kn.prototype,"qVolEmb",void 0);Kf([Pl(),kf("design:type",String)],Kn.prototype,"uEmb",void 0);import{IsString as oe}from"class-validator";function ee(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 G=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};ee([oe(),te("design:type",String)],G.prototype,"tpOp",void 0);ee([oe(),te("design:type",String)],G.prototype,"chassi",void 0);ee([oe(),te("design:type",String)],G.prototype,"cCor",void 0);ee([oe(),te("design:type",String)],G.prototype,"xCor",void 0);ee([oe(),te("design:type",String)],G.prototype,"pot",void 0);ee([oe(),te("design:type",String)],G.prototype,"cilin",void 0);ee([oe(),te("design:type",String)],G.prototype,"pesoL",void 0);ee([oe(),te("design:type",String)],G.prototype,"pesoB",void 0);ee([oe(),te("design:type",String)],G.prototype,"nSerie",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpComb",void 0);ee([oe(),te("design:type",String)],G.prototype,"nMotor",void 0);ee([oe(),te("design:type",String)],G.prototype,"CMT",void 0);ee([oe(),te("design:type",String)],G.prototype,"dist",void 0);ee([oe(),te("design:type",String)],G.prototype,"anoMod",void 0);ee([oe(),te("design:type",String)],G.prototype,"anoFab",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpPint",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"espVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"VIN",void 0);ee([oe(),te("design:type",String)],G.prototype,"condVeic",void 0);ee([oe(),te("design:type",String)],G.prototype,"cMod",void 0);ee([oe(),te("design:type",String)],G.prototype,"cCorDENATRAN",void 0);ee([oe(),te("design:type",String)],G.prototype,"lota",void 0);ee([oe(),te("design:type",String)],G.prototype,"tpRest",void 0);import{IsString as Al}from"class-validator";import{TransformDecimal as Lv}from"nfets/core";function $f(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s($f,"_ts_decorate");function ep(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ep,"_ts_metadata");var kn=class{static{s(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};$f([Al(),ep("design:type",String)],kn.prototype,"cProdANVISA",void 0);$f([Al(),ep("design:type",String)],kn.prototype,"xMotivoIsencao",void 0);$f([Lv({fixed:2}),ep("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kn.prototype,"vPMC",void 0);import{IsString as mc}from"class-validator";function lc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(lc,"_ts_decorate");function uc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(uc,"_ts_metadata");var sn=class{static{s(this,"Arma")}tpArma;nSerie;nCano;descr};lc([mc(),uc("design:type",String)],sn.prototype,"tpArma",void 0);lc([mc(),uc("design:type",String)],sn.prototype,"nSerie",void 0);lc([mc(),uc("design:type",String)],sn.prototype,"nCano",void 0);lc([mc(),uc("design:type",String)],sn.prototype,"descr",void 0);import{IsString as Ai,IsOptional as Jo,IsObject as tp,ValidateNested as op,ArrayMaxSize as Hv}from"class-validator";import{Type as ip}from"class-transformer";import{TransformDecimal as Kt}from"nfets/core";function ie(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ie,"_ts_decorate");function ne(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ne,"_ts_metadata");var Jr=class{static{s(this,"OrigComb")}indImport;cUFOrig;pOrig};ie([Ai(),ne("design:type",String)],Jr.prototype,"indImport",void 0);ie([Ai(),ne("design:type",String)],Jr.prototype,"cUFOrig",void 0);ie([Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jr.prototype,"pOrig",void 0);var _r=class{static{s(this,"CIDE")}qBCProd;vAliqProd;vCIDE};ie([Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"qBCProd",void 0);ie([Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"vAliqProd",void 0);ie([Kt({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_r.prototype,"vCIDE",void 0);var cn=class{static{s(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};ie([Ai(),ne("design:type",String)],cn.prototype,"nBico",void 0);ie([Ai(),ne("design:type",String)],cn.prototype,"nBomba",void 0);ie([Ai(),ne("design:type",String)],cn.prototype,"nTanque",void 0);ie([Kt({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cn.prototype,"vEncIni",void 0);ie([Kt({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cn.prototype,"vEncFin",void 0);var et=class{static{s(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};ie([Ai(),ne("design:type",String)],et.prototype,"cProdANP",void 0);ie([Ai(),ne("design:type",String)],et.prototype,"descANP",void 0);ie([Jo(),Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pGLP",void 0);ie([Jo(),Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pGNn",void 0);ie([Jo(),Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pGNi",void 0);ie([Jo(),Kt({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vPart",void 0);ie([Ai(),Jo(),ne("design:type",String)],et.prototype,"CODIF",void 0);ie([Jo(),Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"qTemp",void 0);ie([Ai(),ne("design:type",String)],et.prototype,"UFCons",void 0);ie([Jo(),tp(),op(),ip(()=>_r),ne("design:type",typeof ICIDE>"u"?Object:ICIDE)],et.prototype,"CIDE",void 0);ie([Jo(),tp(),op(),ip(()=>cn),ne("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],et.prototype,"encerrante",void 0);ie([Jo(),Kt({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pBio",void 0);ie([tp(),op({each:!0}),ip(()=>Jr),Hv(30),Jo(),ne("design:type",Array)],et.prototype,"origComb",void 0);function A(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(A,"_ts_decorate");function z(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(z,"_ts_metadata");var O=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};A([be(),z("design:type",String)],O.prototype,"cProd",void 0);A([be(),z("design:type",String)],O.prototype,"cEAN",void 0);A([k(),be(),z("design:type",String)],O.prototype,"cBarra",void 0);A([be(),z("design:type",String)],O.prototype,"xProd",void 0);A([be(),z("design:type",String)],O.prototype,"NCM",void 0);A([k(),hc(),es(8),be({each:!0}),z("design:type",Array)],O.prototype,"NVE",void 0);A([k(),be(),z("design:type",String)],O.prototype,"CEST",void 0);A([k(),be(),z("design:type",String)],O.prototype,"indEscala",void 0);A([k(),be(),z("design:type",String)],O.prototype,"CNPJFab",void 0);A([k(),be(),z("design:type",String)],O.prototype,"cBenef",void 0);A([k(),$n(),z("design:type",Object)],O.prototype,"gCred",void 0);A([k(),be(),z("design:type",String)],O.prototype,"EXTIPI",void 0);A([be(),z("design:type",String)],O.prototype,"CFOP",void 0);A([be(),z("design:type",String)],O.prototype,"uCom",void 0);A([Ei({fixed:4}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"qCom",void 0);A([Ei({fixed:10}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vUnCom",void 0);A([Ei({fixed:2}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vProd",void 0);A([be(),z("design:type",String)],O.prototype,"cEANTrib",void 0);A([be(),z("design:type",String)],O.prototype,"uTrib",void 0);A([Ei({fixed:4}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"qTrib",void 0);A([Ei({fixed:10}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vUnTrib",void 0);A([k(),Ei({fixed:2}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vFrete",void 0);A([k(),Ei({fixed:2}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vSeg",void 0);A([k(),Ei({fixed:2}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vDesc",void 0);A([k(),Ei({fixed:2}),z("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],O.prototype,"vOutro",void 0);A([be(),z("design:type",String)],O.prototype,"indTot",void 0);A([k(),hc(),zi({each:!0}),es(100),ji(()=>qe),z("design:type",Array)],O.prototype,"DI",void 0);A([k(),hc(),zi({each:!0}),es(500),ji(()=>Yr),z("design:type",Array)],O.prototype,"detExport",void 0);A([k(),be(),z("design:type",String)],O.prototype,"xPed",void 0);A([k(),be(),z("design:type",String)],O.prototype,"nItemPed",void 0);A([k(),be(),z("design:type",String)],O.prototype,"nFCI",void 0);A([k(),hc(),zi({each:!0}),es(500),ji(()=>Pi),z("design:type",Array)],O.prototype,"rastro",void 0);A([k(),$n(),zi(),ji(()=>Xr),z("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],O.prototype,"infProdNFF",void 0);A([k(),$n(),zi(),ji(()=>Kn),z("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],O.prototype,"infProdEmb",void 0);A([k(),$n(),zi(),ji(()=>G),z("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],O.prototype,"veicProd",void 0);A([k(),$n(),zi(),ji(()=>kn),z("design:type",typeof IMed>"u"?Object:IMed)],O.prototype,"med",void 0);A([k(),$n(),zi({each:!0}),ji(()=>sn),es(500),z("design:type",Array)],O.prototype,"arma",void 0);A([k(),$n(),zi(),ji(()=>et),z("design:type",typeof IComb>"u"?Object:IComb)],O.prototype,"comb",void 0);A([k(),be(),z("design:type",String)],O.prototype,"nRECOPI",void 0);O=A([Qv({properties:["veicProd","med","arma","comb"]})],O);import{Type as zo}from"class-transformer";import{IsOptional as io,ValidateNested as Eo}from"class-validator";import{IsOptional as l,IsString as S,Max as np,ValidateNested as ge}from"class-validator";import{Type as ve}from"class-transformer";import{Choice as qv,TransformDecimal as m}from"nfets/core";function p(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(p,"_ts_decorate");function d(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(d,"_ts_metadata");var kt=class{static{s(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP};p([S(),d("design:type",String)],kt.prototype,"orig",void 0);p([S(),d("design:type",String)],kt.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],kt.prototype,"modBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vBCFCP",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"pFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],kt.prototype,"vFCP",void 0);var fn=class{static{s(this,"ICMS02")}orig;CST;qBCMono;adRemICMS;vICMSMono};p([S(),d("design:type",String)],fn.prototype,"orig",void 0);p([S(),d("design:type",String)],fn.prototype,"CST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"qBCMono",void 0);p([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"adRemICMS",void 0);p([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fn.prototype,"vICMSMono",void 0);var he=class{static{s(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([S(),d("design:type",String)],he.prototype,"orig",void 0);p([S(),d("design:type",String)],he.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],he.prototype,"modBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCFCP",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vFCP",void 0);p([l(),S(),d("design:type",String)],he.prototype,"modBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pMVAST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pRedBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vBCFCPST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"pFCPST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],he.prototype,"vFCPST",void 0);var Ht=class{static{s(this,"ICMS15")}orig;CST;qBCMono;adRemICMS;vICMSMono;qBCMonoReten;adRemICMSReten;vICMSMonoReten;pRedAdRem;motRedAdRem};p([S(),d("design:type",String)],Ht.prototype,"orig",void 0);p([S(),d("design:type",String)],Ht.prototype,"CST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"qBCMono",void 0);p([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"adRemICMS",void 0);p([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vICMSMono",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"qBCMonoReten",void 0);p([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"adRemICMSReten",void 0);p([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"vICMSMonoReten",void 0);p([l(),m({fixed:4}),np(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ht.prototype,"pRedAdRem",void 0);p([l(),S(),d("design:type",String)],Ht.prototype,"motRedAdRem",void 0);var Nt=class{static{s(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS};p([S(),d("design:type",String)],Nt.prototype,"orig",void 0);p([S(),d("design:type",String)],Nt.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],Nt.prototype,"modBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"pRedBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"vICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"vBCFCP",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"pFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"vFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nt.prototype,"vICMSDeson",void 0);p([l(),S(),d("design:type",String)],Nt.prototype,"motDesICMS",void 0);var dt=class{static{s(this,"ICMS30")}orig;CST;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST;vICMSDeson;motDesICMS};p([S(),d("design:type",String)],dt.prototype,"orig",void 0);p([S(),d("design:type",String)],dt.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],dt.prototype,"modBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pMVAST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pRedBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vBCFCPST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"pFCPST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vFCPST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dt.prototype,"vICMSDeson",void 0);p([l(),S(),d("design:type",String)],dt.prototype,"motDesICMS",void 0);var er=class{static{s(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};p([S(),d("design:type",String)],er.prototype,"orig",void 0);p([S(),d("design:type",String)],er.prototype,"CST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],er.prototype,"vICMSDeson",void 0);p([l(),S(),d("design:type",String)],er.prototype,"motDesICMS",void 0);var $t=class{static{s(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};p([S(),d("design:type",String)],$t.prototype,"orig",void 0);p([S(),d("design:type",String)],$t.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],$t.prototype,"modBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"pRedBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"vICMS",void 0);p([l(),m({fixed:4}),np(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"pDif",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$t.prototype,"vICMSDif",void 0);var Qt=class{static{s(this,"ICMS53")}orig;CST;qBCMono;adRemICMS;vICMSMonoOp;pDif;vICMSMonoDif;vICMSMono;qBCMonoDif;adRemICMSDif};p([S(),d("design:type",String)],Qt.prototype,"orig",void 0);p([S(),d("design:type",String)],Qt.prototype,"CST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"qBCMono",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"adRemICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"vICMSMonoOp",void 0);p([l(),m({fixed:4}),np(100),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"pDif",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"vICMSMonoDif",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"vICMSMono",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"qBCMonoDif",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qt.prototype,"adRemICMSDif",void 0);var lt=class{static{s(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet;vBCFCPSTRet;pFCPSTRet;vFCPSTRet;pRedBCEfet;vBCEfet;pICMSEfet;vICMSEfet};p([S(),d("design:type",String)],lt.prototype,"orig",void 0);p([S(),d("design:type",String)],lt.prototype,"CST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vBCSTRet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vICMSSubstituto",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vICMSSTRet",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vBCFCPSTRet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pFCPSTRet",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vFCPSTRet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pRedBCEfet",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vBCEfet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"pICMSEfet",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],lt.prototype,"vICMSEfet",void 0);var pn=class{static{s(this,"ICMS61")}orig;CST;qBCMonoRet;adRemICMSRet;vICMSMonoRet};p([S(),d("design:type",String)],pn.prototype,"orig",void 0);p([S(),d("design:type",String)],pn.prototype,"CST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"qBCMonoRet",void 0);p([m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"adRemICMSRet",void 0);p([m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"vICMSMonoRet",void 0);var re=class{static{s(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([S(),d("design:type",String)],re.prototype,"orig",void 0);p([S(),d("design:type",String)],re.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],re.prototype,"modBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pRedBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCFCP",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMSDeson",void 0);p([l(),S(),d("design:type",String)],re.prototype,"motDesICMS",void 0);p([l(),S(),d("design:type",String)],re.prototype,"modBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pMVAST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pRedBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vBCFCPST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"pFCPST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],re.prototype,"vFCPST",void 0);var ae=class{static{s(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;vBCFCP;pFCP;vFCP;vICMSDeson;motDesICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;vBCFCPST;pFCPST;vFCPST};p([S(),d("design:type",String)],ae.prototype,"orig",void 0);p([S(),d("design:type",String)],ae.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],ae.prototype,"modBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pRedBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCFCP",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vFCP",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMSDeson",void 0);p([l(),S(),d("design:type",String)],ae.prototype,"motDesICMS",void 0);p([l(),S(),d("design:type",String)],ae.prototype,"modBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pMVAST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pRedBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vBCFCPST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"pFCPST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ae.prototype,"vFCPST",void 0);var Ge=class{static{s(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};p([S(),d("design:type",String)],Ge.prototype,"orig",void 0);p([S(),d("design:type",String)],Ge.prototype,"CST",void 0);p([l(),S(),d("design:type",String)],Ge.prototype,"modBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pRedBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vICMS",void 0);p([l(),S(),d("design:type",String)],Ge.prototype,"modBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pMVAST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pRedBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vICMSST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"pBCOp",void 0);p([l(),S(),d("design:type",String)],Ge.prototype,"UFST",void 0);var Ti=class{static{s(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};p([S(),d("design:type",String)],Ti.prototype,"orig",void 0);p([S(),d("design:type",String)],Ti.prototype,"CST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vBCSTRet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"pST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vICMSSubstituto",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ti.prototype,"vICMSSTRet",void 0);var tr=class{static{s(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};p([S(),d("design:type",String)],tr.prototype,"orig",void 0);p([S(),d("design:type",String)],tr.prototype,"CSOSN",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tr.prototype,"pCredSN",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tr.prototype,"vCredICMSSN",void 0);var ts=class{static{s(this,"ICMSSN102")}orig;CSOSN};p([S(),d("design:type",String)],ts.prototype,"orig",void 0);p([S(),d("design:type",String)],ts.prototype,"CSOSN",void 0);var Io=class{static{s(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};p([S(),d("design:type",String)],Io.prototype,"orig",void 0);p([S(),d("design:type",String)],Io.prototype,"CSOSN",void 0);p([l(),S(),d("design:type",String)],Io.prototype,"modBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"vICMSST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"pCredSN",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Io.prototype,"vCredICMSSN",void 0);var Mi=class{static{s(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};p([S(),d("design:type",String)],Mi.prototype,"orig",void 0);p([S(),d("design:type",String)],Mi.prototype,"CSOSN",void 0);p([l(),S(),d("design:type",String)],Mi.prototype,"modBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Mi.prototype,"vICMSST",void 0);var Bi=class{static{s(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};p([S(),d("design:type",String)],Bi.prototype,"orig",void 0);p([S(),d("design:type",String)],Bi.prototype,"CSOSN",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vBCSTRet",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"pST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vICMSSubstituto",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bi.prototype,"vICMSSTRet",void 0);var ut=class{static{s(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};p([S(),d("design:type",String)],ut.prototype,"orig",void 0);p([S(),d("design:type",String)],ut.prototype,"CSOSN",void 0);p([l(),S(),d("design:type",String)],ut.prototype,"modBC",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"pRedBC",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"pICMS",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vICMS",void 0);p([l(),S(),d("design:type",String)],ut.prototype,"modBCST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vBCST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"pICMSST",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vICMSST",void 0);p([l(),m({fixed:4}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"pCredSN",void 0);p([l(),m({fixed:2}),d("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ut.prototype,"vCredICMSSN",void 0);var U=class{static{s(this,"ICMS")}ICMS00;ICMS02;ICMS10;ICMS15;ICMS20;ICMS30;ICMS40;ICMS51;ICMS53;ICMS60;ICMS61;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};p([l(),ge(),ve(()=>kt),d("design:type",typeof IICMS00>"u"?Object:IICMS00)],U.prototype,"ICMS00",void 0);p([l(),ge(),ve(()=>fn),d("design:type",typeof IICMS02>"u"?Object:IICMS02)],U.prototype,"ICMS02",void 0);p([l(),ge(),ve(()=>he),d("design:type",typeof IICMS10>"u"?Object:IICMS10)],U.prototype,"ICMS10",void 0);p([l(),ge(),ve(()=>Ht),d("design:type",typeof IICMS15>"u"?Object:IICMS15)],U.prototype,"ICMS15",void 0);p([l(),ge(),ve(()=>Nt),d("design:type",typeof IICMS20>"u"?Object:IICMS20)],U.prototype,"ICMS20",void 0);p([l(),ge(),ve(()=>dt),d("design:type",typeof IICMS30>"u"?Object:IICMS30)],U.prototype,"ICMS30",void 0);p([l(),ge(),ve(()=>er),d("design:type",typeof IICMS40>"u"?Object:IICMS40)],U.prototype,"ICMS40",void 0);p([l(),ge(),ve(()=>$t),d("design:type",typeof IICMS51>"u"?Object:IICMS51)],U.prototype,"ICMS51",void 0);p([l(),ge(),ve(()=>Qt),d("design:type",typeof IICMS53>"u"?Object:IICMS53)],U.prototype,"ICMS53",void 0);p([l(),ge(),ve(()=>lt),d("design:type",typeof IICMS60>"u"?Object:IICMS60)],U.prototype,"ICMS60",void 0);p([l(),ge(),ve(()=>pn),d("design:type",typeof IICMS61>"u"?Object:IICMS61)],U.prototype,"ICMS61",void 0);p([l(),ge(),ve(()=>re),d("design:type",typeof IICMS70>"u"?Object:IICMS70)],U.prototype,"ICMS70",void 0);p([l(),ge(),ve(()=>ae),d("design:type",typeof IICMS90>"u"?Object:IICMS90)],U.prototype,"ICMS90",void 0);p([l(),ge(),ve(()=>Ge),d("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],U.prototype,"ICMSPart",void 0);p([l(),ge(),ve(()=>Ti),d("design:type",typeof IICMSST>"u"?Object:IICMSST)],U.prototype,"ICMSST",void 0);p([l(),ge(),ve(()=>tr),d("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],U.prototype,"ICMSSN101",void 0);p([l(),ge(),ve(()=>ts),d("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],U.prototype,"ICMSSN102",void 0);p([l(),ge(),ve(()=>Io),d("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],U.prototype,"ICMSSN201",void 0);p([l(),ge(),ve(()=>Mi),d("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],U.prototype,"ICMSSN202",void 0);p([l(),ge(),ve(()=>Bi),d("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],U.prototype,"ICMSSN500",void 0);p([l(),ge(),ve(()=>ut),d("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],U.prototype,"ICMSSN900",void 0);U=p([qv({properties:["ICMS00","ICMS02","ICMS10","ICMS15","ICMS20","ICMS30","ICMS40","ICMS51","ICMS53","ICMS60","ICMS61","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],U);import{IsOptional as _o,IsString as Ro,ValidateNested as zl}from"class-validator";import{Type as El}from"class-transformer";function qt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(qt,"_ts_decorate");function Ut(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ut,"_ts_metadata");var Vi=class{static{s(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};qt([Ro(),Ut("design:type",String)],Vi.prototype,"CST",void 0);qt([_o(),Ro(),Ut("design:type",String)],Vi.prototype,"vBC",void 0);qt([_o(),Ro(),Ut("design:type",String)],Vi.prototype,"pIPI",void 0);qt([_o(),Ro(),Ut("design:type",String)],Vi.prototype,"qUnid",void 0);qt([_o(),Ro(),Ut("design:type",String)],Vi.prototype,"vUnid",void 0);qt([_o(),Ro(),Ut("design:type",String)],Vi.prototype,"vIPI",void 0);var gc=class{static{s(this,"IPINT")}CST};qt([Ro(),Ut("design:type",String)],gc.prototype,"CST",void 0);var eo=class{static{s(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};qt([_o(),Ro(),Ut("design:type",String)],eo.prototype,"CNPJProd",void 0);qt([_o(),Ro(),Ut("design:type",String)],eo.prototype,"cSelo",void 0);qt([_o(),Ro(),Ut("design:type",String)],eo.prototype,"qSelo",void 0);qt([Ro(),Ut("design:type",String)],eo.prototype,"cEnq",void 0);qt([_o(),zl(),El(()=>Vi),Ut("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],eo.prototype,"IPITrib",void 0);qt([_o(),zl(),El(()=>gc),Ut("design:type",typeof IIPINT>"u"?Object:IIPINT)],eo.prototype,"IPINT",void 0);import{IsOptional as Sc,IsString as Cc}from"class-validator";function vc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(vc,"_ts_decorate");function yc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(yc,"_ts_metadata");var Wo=class{static{s(this,"II")}vBC;vDespAdu;vII;vIOF};vc([Sc(),Cc(),yc("design:type",String)],Wo.prototype,"vBC",void 0);vc([Sc(),Cc(),yc("design:type",String)],Wo.prototype,"vDespAdu",void 0);vc([Sc(),Cc(),yc("design:type",String)],Wo.prototype,"vII",void 0);vc([Sc(),Cc(),yc("design:type",String)],Wo.prototype,"vIOF",void 0);import{IsOptional as Ne,IsString as Ie,ValidateNested as bc}from"class-validator";import{Type as Nc}from"class-transformer";import{TransformDecimal as ko}from"nfets/core";function se(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(se,"_ts_decorate");function ce(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ce,"_ts_metadata");var Li=class{static{s(this,"PISAliq")}CST;vBC;pPIS;vPIS};se([Ie(),ce("design:type",String)],Li.prototype,"CST",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],Li.prototype,"vBC",void 0);se([Ne(),Ie(),ko({fixed:4}),ce("design:type",String)],Li.prototype,"pPIS",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],Li.prototype,"vPIS",void 0);var Hi=class{static{s(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};se([Ie(),ce("design:type",String)],Hi.prototype,"CST",void 0);se([Ne(),Ie(),ce("design:type",String)],Hi.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],Hi.prototype,"vAliqProd",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],Hi.prototype,"vPIS",void 0);var Wr=class{static{s(this,"PISNT")}CST};se([Ie(),ce("design:type",String)],Wr.prototype,"CST",void 0);var Fo=class{static{s(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ie(),ce("design:type",String)],Fo.prototype,"CST",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],Fo.prototype,"vBC",void 0);se([Ne(),Ie(),ko({fixed:4}),ce("design:type",String)],Fo.prototype,"pPIS",void 0);se([Ne(),Ie(),ce("design:type",String)],Fo.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],Fo.prototype,"vAliqProd",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],Fo.prototype,"vPIS",void 0);var Ko=class{static{s(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};se([Ne(),bc(),Nc(()=>Li),ce("design:type",typeof Li>"u"?Object:Li)],Ko.prototype,"PISAliq",void 0);se([Ne(),bc(),Nc(()=>Hi),ce("design:type",typeof Hi>"u"?Object:Hi)],Ko.prototype,"PISQtde",void 0);se([Ne(),bc(),Nc(()=>Wr),ce("design:type",typeof Wr>"u"?Object:Wr)],Ko.prototype,"PISNT",void 0);se([Ne(),bc(),Nc(()=>Fo),ce("design:type",typeof Fo>"u"?Object:Fo)],Ko.prototype,"PISOutr",void 0);var xo=class{static{s(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],xo.prototype,"vBC",void 0);se([Ne(),Ie(),ko({fixed:4}),ce("design:type",String)],xo.prototype,"pPIS",void 0);se([Ne(),Ie(),ce("design:type",String)],xo.prototype,"qBCProd",void 0);se([Ne(),Ie(),ce("design:type",String)],xo.prototype,"vAliqProd",void 0);se([Ne(),Ie(),ko({fixed:2}),ce("design:type",String)],xo.prototype,"vPIS",void 0);import{IsOptional as Re,IsString as Fe,ValidateNested as Ic}from"class-validator";import{Type as Rc}from"class-transformer";import{TransformDecimal as ei}from"nfets/core";function fe(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(fe,"_ts_decorate");function pe(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(pe,"_ts_metadata");var Qi=class{static{s(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};fe([Fe(),pe("design:type",String)],Qi.prototype,"CST",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Qi.prototype,"vBC",void 0);fe([Re(),Fe(),ei({fixed:4}),pe("design:type",String)],Qi.prototype,"pCOFINS",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Qi.prototype,"vCOFINS",void 0);var qi=class{static{s(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};fe([Fe(),pe("design:type",String)],qi.prototype,"CST",void 0);fe([Re(),Fe(),pe("design:type",String)],qi.prototype,"qBCProd",void 0);fe([Re(),Fe(),pe("design:type",String)],qi.prototype,"vAliqProd",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],qi.prototype,"vCOFINS",void 0);var Kr=class{static{s(this,"COFINSNT")}CST};fe([Fe(),pe("design:type",String)],Kr.prototype,"CST",void 0);var Oo=class{static{s(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};fe([Fe(),pe("design:type",String)],Oo.prototype,"CST",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Oo.prototype,"vBC",void 0);fe([Re(),Fe(),ei({fixed:4}),pe("design:type",String)],Oo.prototype,"pCOFINS",void 0);fe([Re(),Fe(),pe("design:type",String)],Oo.prototype,"qBCProd",void 0);fe([Re(),Fe(),pe("design:type",String)],Oo.prototype,"vAliqProd",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Oo.prototype,"vCOFINS",void 0);var $o=class{static{s(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};fe([Re(),Ic(),Rc(()=>Qi),pe("design:type",typeof Qi>"u"?Object:Qi)],$o.prototype,"COFINSAliq",void 0);fe([Re(),Ic(),Rc(()=>qi),pe("design:type",typeof qi>"u"?Object:qi)],$o.prototype,"COFINSQtde",void 0);fe([Re(),Ic(),Rc(()=>Kr),pe("design:type",typeof Kr>"u"?Object:Kr)],$o.prototype,"COFINSNT",void 0);fe([Re(),Ic(),Rc(()=>Oo),pe("design:type",typeof Oo>"u"?Object:Oo)],$o.prototype,"COFINSOutr",void 0);var Do=class{static{s(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Do.prototype,"vBC",void 0);fe([Re(),Fe(),ei({fixed:4}),pe("design:type",String)],Do.prototype,"pCOFINS",void 0);fe([Re(),Fe(),pe("design:type",String)],Do.prototype,"qBCProd",void 0);fe([Re(),Fe(),pe("design:type",String)],Do.prototype,"vAliqProd",void 0);fe([Re(),Fe(),ei({fixed:2}),pe("design:type",String)],Do.prototype,"vCOFINS",void 0);import{IsOptional as Pt,IsString as dn}from"class-validator";import{TransformDecimal as ln}from"nfets/core";function mt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(mt,"_ts_decorate");function ht(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ht,"_ts_metadata");var de=class{static{s(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;indISS;indIncentivo;cServico;cMun;cPais;nProcesso};mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vBC",void 0);mt([Pt(),ln({fixed:4}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vAliq",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vISSQN",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"cMunFG",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"cListServ",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDeducao",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vOutro",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDescIncond",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vDescCond",void 0);mt([Pt(),ln({fixed:2}),ht("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],de.prototype,"vISSRet",void 0);mt([dn(),ht("design:type",String)],de.prototype,"indISS",void 0);mt([dn(),ht("design:type",String)],de.prototype,"indIncentivo",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"cServico",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"cMun",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"cPais",void 0);mt([Pt(),dn(),ht("design:type",String)],de.prototype,"nProcesso",void 0);import{IsOptional as Zi,IsString as Yi}from"class-validator";function Ui(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ui,"_ts_decorate");function Gi(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gi,"_ts_metadata");var It=class{static{s(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"vBCUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"vBCFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"pFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"pICMSUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"pICMSInter",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"pICMSInterPart",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"vFCPUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"vICMSUFDest",void 0);Ui([Zi(),Yi(),Gi("design:type",String)],It.prototype,"vICMSUFRemet",void 0);import{IsOptional as ai,IsString as Cp,ValidateNested as or}from"class-validator";import{IsOptional as Ml,IsString as Bl}from"class-validator";function jl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(jl,"_ts_decorate");function Tl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Tl,"_ts_metadata");var un=class{static{s(this,"TransferenciaCredito")}vIBS;vCBS};jl([Ml(),Bl(),Tl("design:type",String)],un.prototype,"vIBS",void 0);jl([Ml(),Bl(),Tl("design:type",String)],un.prototype,"vCBS",void 0);import{IsString as sp}from"class-validator";function rp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(rp,"_ts_decorate");function ap(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ap,"_ts_metadata");var Xi=class{static{s(this,"CredPresIBSZFM")}tpCredPresIBSZFM;vCredPresIBSZFM;competApur};rp([sp(),ap("design:type",String)],Xi.prototype,"tpCredPresIBSZFM",void 0);rp([sp(),ap("design:type",String)],Xi.prototype,"vCredPresIBSZFM",void 0);rp([sp(),ap("design:type",String)],Xi.prototype,"competApur",void 0);import{IsOptional as Vl,IsString as gn,ValidateNested as Ll}from"class-validator";import{Type as Hl}from"class-transformer";function oi(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(oi,"_ts_decorate");function ii(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ii,"_ts_metadata");var mn=class{static{s(this,"IBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};oi([gn(),ii("design:type",String)],mn.prototype,"vCredPresCondSus",void 0);oi([gn(),ii("design:type",String)],mn.prototype,"pCredPres",void 0);oi([gn(),ii("design:type",String)],mn.prototype,"vCredPres",void 0);var hn=class{static{s(this,"CBSCredPres")}vCredPresCondSus;pCredPres;vCredPres};oi([gn(),ii("design:type",String)],hn.prototype,"vCredPresCondSus",void 0);oi([gn(),ii("design:type",String)],hn.prototype,"pCredPres",void 0);oi([gn(),ii("design:type",String)],hn.prototype,"vCredPres",void 0);var ti=class{static{s(this,"CredPresOper")}gIBSCredPres;gCBSCredPres;vBCCredPres;cCredPres};oi([Vl(),Ll(),Hl(()=>mn),ii("design:type",typeof mn>"u"?Object:mn)],ti.prototype,"gIBSCredPres",void 0);oi([Vl(),Ll(),Hl(()=>hn),ii("design:type",typeof hn>"u"?Object:hn)],ti.prototype,"gCBSCredPres",void 0);oi([gn(),ii("design:type",String)],ti.prototype,"vBCCredPres",void 0);oi([gn(),ii("design:type",String)],ti.prototype,"cCredPres",void 0);import{IsString as Ul}from"class-validator";function Ql(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ql,"_ts_decorate");function ql(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ql,"_ts_metadata");var vn=class{static{s(this,"EstornoCred")}vIBSEstCred;vCBSEstCred};Ql([Ul(),ql("design:type",String)],vn.prototype,"vIBSEstCred",void 0);Ql([Ul(),ql("design:type",String)],vn.prototype,"vCBSEstCred",void 0);import{IsString as pp}from"class-validator";function cp(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(cp,"_ts_decorate");function fp(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(fp,"_ts_metadata");var Ji=class{static{s(this,"AjusteCompet")}competApur;vCBS;vIBS};cp([pp(),fp("design:type",String)],Ji.prototype,"competApur",void 0);cp([pp(),fp("design:type",String)],Ji.prototype,"vCBS",void 0);cp([pp(),fp("design:type",String)],Ji.prototype,"vIBS",void 0);import{IsOptional as At,IsString as Ce}from"class-validator";function ye(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ye,"_ts_decorate");function Se(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Se,"_ts_metadata");var J=class{static{s(this,"IBSCBSMono")}vTotIBSMonoItem;vTotCBSMonoItem;adRemIBS;adRemCBS;vIBSMono;vCBSMono;qBCMono;adRemIBSReten;vIBSMonoReten;adRemCBSReten;vCBSMonoReten;qBCMonoReten;adRemIBSRet;vIBSMonoRet;adRemCBSRet;vCBSMonoRet;qBCMonoRet;vIBSMonoDif;vCBSMonoDif;pDifIBS;pDifCBS};ye([Ce(),Se("design:type",String)],J.prototype,"vTotIBSMonoItem",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vTotCBSMonoItem",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"adRemIBS",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"adRemCBS",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vIBSMono",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"vCBSMono",void 0);ye([Ce(),Se("design:type",String)],J.prototype,"qBCMono",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"adRemIBSReten",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoReten",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"adRemCBSReten",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoReten",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"qBCMonoReten",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"adRemIBSRet",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoRet",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"adRemCBSRet",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoRet",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"qBCMonoRet",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vIBSMonoDif",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"vCBSMonoDif",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"pDifIBS",void 0);ye([At(),Ce(),Se("design:type",String)],J.prototype,"pDifCBS",void 0);import{IsOptional as Fc,ValidateNested as xc}from"class-validator";import{TransformDecimal as eu}from"nfets/core";import{TransformDecimal as kr}from"nfets/core";import{IsString as Gl}from"class-validator";function yn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 zt=class{static{s(this,"TribRegular")}CSTReg;cClassTribReg;pAliqEfetRegIBSUF;vTribRegIBSUF;pAliqEfetRegIBSMun;vTribRegIBSMun;pAliqEfetRegCBS;vTribRegCBS};yn([Gl(),Sn("design:type",String)],zt.prototype,"CSTReg",void 0);yn([Gl(),Sn("design:type",String)],zt.prototype,"cClassTribReg",void 0);yn([kr({fixed:4}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"pAliqEfetRegIBSUF",void 0);yn([kr({fixed:2}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vTribRegIBSUF",void 0);yn([kr({fixed:4}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"pAliqEfetRegIBSMun",void 0);yn([kr({fixed:2}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vTribRegIBSMun",void 0);yn([kr({fixed:4}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"pAliqEfetRegCBS",void 0);yn([kr({fixed:2}),Sn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vTribRegCBS",void 0);import{Type as Oc}from"class-transformer";import{IsOptional as dp,ValidateNested as lp}from"class-validator";import{TransformDecimal as Kl}from"nfets/core";import{Type as up}from"class-transformer";import{TransformDecimal as Zv}from"nfets/core";function Uv(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Uv,"_ts_decorate");function Gv(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Gv,"_ts_metadata");var Rt=class{static{s(this,"DevTrib")}vDevTrib};Uv([Zv({fixed:2}),Gv("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vDevTrib",void 0);import{TransformDecimal as Xl}from"nfets/core";function Zl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Zl,"_ts_decorate");function Yl(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Yl,"_ts_metadata");var gt=class{static{s(this,"Dif")}pDif;vDif};Zl([Xl({fixed:4}),Yl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"pDif",void 0);Zl([Xl({fixed:2}),Yl("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],gt.prototype,"vDif",void 0);import{TransformDecimal as Wl}from"nfets/core";function Jl(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Jl,"_ts_decorate");function _l(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(_l,"_ts_metadata");var vt=class{static{s(this,"Red")}pRedAliq;pAliqEfet};Jl([Wl({fixed:4}),_l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pRedAliq",void 0);Jl([Wl({fixed:4}),_l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pAliqEfet",void 0);function os(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(os,"_ts_decorate");function is(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(is,"_ts_metadata");var wo=class{static{s(this,"IBSMun")}pIBSMun;gDif;gDevTrib;gRed;vIBSMun};os([Kl({fixed:4}),is("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"pIBSMun",void 0);os([dp(),lp(),up(()=>gt),is("design:type",typeof gt>"u"?Object:gt)],wo.prototype,"gDif",void 0);os([dp(),lp(),up(()=>Rt),is("design:type",typeof Rt>"u"?Object:Rt)],wo.prototype,"gDevTrib",void 0);os([dp(),lp(),up(()=>vt),is("design:type",typeof vt>"u"?Object:vt)],wo.prototype,"gRed",void 0);os([Kl({fixed:2}),is("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wo.prototype,"vIBSMun",void 0);import{IsOptional as mp,ValidateNested as hp}from"class-validator";import{TransformDecimal as kl}from"nfets/core";import{Type as gp}from"class-transformer";function ns(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(ns,"_ts_decorate");function rs(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(rs,"_ts_metadata");var Po=class{static{s(this,"IBSUF")}pIBSUF;gDif;gDevTrib;gRed;vIBSUF};ns([kl({fixed:4}),rs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"pIBSUF",void 0);ns([mp(),hp(),gp(()=>gt),rs("design:type",typeof gt>"u"?Object:gt)],Po.prototype,"gDif",void 0);ns([mp(),hp(),gp(()=>Rt),rs("design:type",typeof Rt>"u"?Object:Rt)],Po.prototype,"gDevTrib",void 0);ns([mp(),hp(),gp(()=>vt),rs("design:type",typeof vt>"u"?Object:vt)],Po.prototype,"gRed",void 0);ns([kl({fixed:2}),rs("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Po.prototype,"vIBSUF",void 0);import{IsOptional as vp,ValidateNested as yp}from"class-validator";import{TransformDecimal as $l}from"nfets/core";import{Type as Sp}from"class-transformer";function as(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(as,"_ts_decorate");function ss(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ss,"_ts_metadata");var Ao=class{static{s(this,"CBS")}pCBS;gDif;gDevTrib;gRed;vCBS};as([$l({fixed:4}),ss("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ao.prototype,"pCBS",void 0);as([vp(),yp(),Sp(()=>gt),ss("design:type",typeof gt>"u"?Object:gt)],Ao.prototype,"gDif",void 0);as([vp(),yp(),Sp(()=>Rt),ss("design:type",typeof Rt>"u"?Object:Rt)],Ao.prototype,"gDevTrib",void 0);as([vp(),yp(),Sp(()=>vt),ss("design:type",typeof vt>"u"?Object:vt)],Ao.prototype,"gRed",void 0);as([$l({fixed:2}),ss("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ao.prototype,"vCBS",void 0);function $r(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s($r,"_ts_decorate");function ea(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ea,"_ts_metadata");var to=class{static{s(this,"GIBSCBS")}vBC;gIBSUF;gIBSMun;vIBS;gCBS;gTribRegular};$r([eu({fixed:2}),ea("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vBC",void 0);$r([Fc(),xc(),Oc(()=>Po),ea("design:type",typeof Po>"u"?Object:Po)],to.prototype,"gIBSUF",void 0);$r([Fc(),xc(),Oc(()=>wo),ea("design:type",typeof wo>"u"?Object:wo)],to.prototype,"gIBSMun",void 0);$r([eu({fixed:2}),ea("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],to.prototype,"vIBS",void 0);$r([Fc(),xc(),Oc(()=>Ao),ea("design:type",typeof Ao>"u"?Object:Ao)],to.prototype,"gCBS",void 0);$r([Fc(),xc(),Oc(()=>zt),ea("design:type",typeof zt>"u"?Object:zt)],to.prototype,"gTribRegular",void 0);import{Type as ir}from"class-transformer";function ni(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 je=class{static{s(this,"IBSCBS")}CST;cClassTrib;indDoacao;gTransfCred;gCredPresIBSZFM;gCredPresOper;gAjusteCompet;gEstornoCred;gIBSCBSMono;gIBSCBS};ni([ai(),Cp(),ri("design:type",String)],je.prototype,"CST",void 0);ni([ai(),Cp(),ri("design:type",String)],je.prototype,"cClassTrib",void 0);ni([ai(),Cp(),ri("design:type",String)],je.prototype,"indDoacao",void 0);ni([ai(),or(),ir(()=>un),ri("design:type",typeof un>"u"?Object:un)],je.prototype,"gTransfCred",void 0);ni([ai(),or(),ir(()=>Xi),ri("design:type",typeof Xi>"u"?Object:Xi)],je.prototype,"gCredPresIBSZFM",void 0);ni([ai(),or(),ir(()=>ti),ri("design:type",typeof ti>"u"?Object:ti)],je.prototype,"gCredPresOper",void 0);ni([ai(),or(),ir(()=>Ji),ri("design:type",typeof Ji>"u"?Object:Ji)],je.prototype,"gAjusteCompet",void 0);ni([ai(),or(),ir(()=>vn),ri("design:type",typeof vn>"u"?Object:vn)],je.prototype,"gEstornoCred",void 0);ni([ai(),or(),ir(()=>J),ri("design:type",typeof J>"u"?Object:J)],je.prototype,"gIBSCBSMono",void 0);ni([ai(),or(),ir(()=>to),ri("design:type",typeof to>"u"?Object:to)],je.prototype,"gIBSCBS",void 0);import{TransformDecimal as cs}from"nfets/core";import{IsOptional as ta,IsString as bp}from"class-validator";function Cn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}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 tt=class{static{s(this,"IS")}CSTIS;cClassTribIS;vBCIS;pIS;pISEspec;uTrib;qTrib;vIS};Cn([bp(),bn("design:type",String)],tt.prototype,"CSTIS",void 0);Cn([bp(),bn("design:type",String)],tt.prototype,"cClassTribIS",void 0);Cn([ta(),cs({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vBCIS",void 0);Cn([ta(),cs({fixed:4}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pIS",void 0);Cn([ta(),cs({fixed:4}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"pISEspec",void 0);Cn([ta(),bp(),bn("design:type",String)],tt.prototype,"uTrib",void 0);Cn([ta(),cs({fixed:4}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"qTrib",void 0);Cn([ta(),cs({fixed:2}),bn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tt.prototype,"vIS",void 0);import{Choice as Yv,TransformDecimal as Xv}from"nfets/core";function Gt(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Gt,"_ts_decorate");function oo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(oo,"_ts_metadata");var xe=class{static{s(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest;IS;IBSCBS};Gt([io(),Xv({fixed:2}),oo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],xe.prototype,"vTotTrib",void 0);Gt([io(),Eo(),zo(()=>U),oo("design:type",typeof IICMS>"u"?Object:IICMS)],xe.prototype,"ICMS",void 0);Gt([io(),Eo(),zo(()=>eo),oo("design:type",typeof IIPI>"u"?Object:IIPI)],xe.prototype,"IPI",void 0);Gt([io(),Eo(),zo(()=>de),oo("design:type",typeof IISSQN>"u"?Object:IISSQN)],xe.prototype,"ISSQN",void 0);Gt([io(),Eo(),zo(()=>Wo),oo("design:type",typeof III>"u"?Object:III)],xe.prototype,"II",void 0);Gt([io(),Eo(),zo(()=>Ko),oo("design:type",typeof IPIS>"u"?Object:IPIS)],xe.prototype,"PIS",void 0);Gt([io(),Eo(),zo(()=>xo),oo("design:type",typeof IPISST>"u"?Object:IPISST)],xe.prototype,"PISST",void 0);Gt([io(),Eo(),zo(()=>$o),oo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],xe.prototype,"COFINS",void 0);Gt([io(),Eo(),zo(()=>Do),oo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],xe.prototype,"COFINSST",void 0);Gt([io(),Eo(),zo(()=>It),oo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],xe.prototype,"ICMSUFDest",void 0);Gt([io(),Eo(),zo(()=>tt),oo("design:type",typeof IIS>"u"?Object:IIS)],xe.prototype,"IS",void 0);Gt([io(),Eo(),zo(()=>je),oo("design:type",typeof IIBSCBS>"u"?Object:IIBSCBS)],xe.prototype,"IBSCBS",void 0);xe=Gt([Yv({properties:["ICMS","ISSQN"]})],xe);import{IsOptional as Jv,IsString as tu,ValidateNested as _v}from"class-validator";import{Type as Wv}from"class-transformer";function Np(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Np,"_ts_decorate");function Ip(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Ip,"_ts_metadata");var Dc=class{static{s(this,"IpiDevol")}vIPIDevol};Np([tu(),Ip("design:type",String)],Dc.prototype,"vIPIDevol",void 0);var oa=class{static{s(this,"Devol")}pDevol;IPI};Np([tu(),Ip("design:type",String)],oa.prototype,"pDevol",void 0);Np([Jv(),_v(),Wv(()=>Dc),Ip("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],oa.prototype,"IPI",void 0);import{IsOptional as ou,IsString as iu,ValidateNested as nu}from"class-validator";import{Type as ru}from"class-transformer";function wc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(wc,"_ts_decorate");function Pc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Pc,"_ts_metadata");var ia=class{static{s(this,"Observation")}xCampo;xTexto};wc([iu(),Pc("design:type",String)],ia.prototype,"xCampo",void 0);wc([iu(),Pc("design:type",String)],ia.prototype,"xTexto",void 0);var na=class{static{s(this,"ObsItem")}obsCont;obsFisco};wc([ou(),nu(),ru(()=>ia),Pc("design:type",typeof IObservation>"u"?Object:IObservation)],na.prototype,"obsCont",void 0);wc([ou(),nu(),ru(()=>ia),Pc("design:type",typeof IObservation>"u"?Object:IObservation)],na.prototype,"obsFisco",void 0);import{TransformDecimal as kv}from"nfets/core";function Nn(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Nn,"_ts_decorate");function In(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(In,"_ts_metadata");var ra=class{static{s(this,"DetAttributes")}nItem};Nn([au(),In("design:type",String)],ra.prototype,"nItem",void 0);var jo=class{static{s(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem;vItem};Nn([Kv(),ps(),ds(()=>ra),In("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],jo.prototype,"$",void 0);Nn([ps(),ds(()=>O),In("design:type",typeof IProd>"u"?Object:IProd)],jo.prototype,"prod",void 0);Nn([fs(),ps(),ds(()=>xe),In("design:type",typeof IImposto>"u"?Object:IImposto)],jo.prototype,"imposto",void 0);Nn([fs(),ps(),ds(()=>oa),In("design:type",typeof IDevol>"u"?Object:IDevol)],jo.prototype,"impostoDevol",void 0);Nn([fs(),au(),In("design:type",String)],jo.prototype,"infAdProd",void 0);Nn([fs(),ps(),ds(()=>na),In("design:type",typeof IObsItem>"u"?Object:IObsItem)],jo.prototype,"obsItem",void 0);Nn([fs(),kv({fixed:2}),In("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],jo.prototype,"vItem",void 0);import{IsDate as $v,IsOptional as ls,IsString as Rn}from"class-validator";import{TransformDecimal as ey,TransformDateString as ty}from"nfets/core";function To(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(To,"_ts_decorate");function Mo(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Mo,"_ts_metadata");var ot=class{static{s(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};To([Rn(),Mo("design:type",String)],ot.prototype,"CNPJ",void 0);To([Rn(),Mo("design:type",String)],ot.prototype,"xOrgao",void 0);To([Rn(),Mo("design:type",String)],ot.prototype,"matr",void 0);To([Rn(),Mo("design:type",String)],ot.prototype,"xAgente",void 0);To([ls(),Rn(),Mo("design:type",String)],ot.prototype,"fone",void 0);To([Rn(),Mo("design:type",String)],ot.prototype,"UF",void 0);To([ls(),Rn(),Mo("design:type",String)],ot.prototype,"nDAR",void 0);To([ls(),ty({format:"YYYY-MM-DD"}),Mo("design:type",typeof Date>"u"?Object:Date)],ot.prototype,"dEmi",void 0);To([ls(),ey({fixed:2}),Mo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ot.prototype,"vDAR",void 0);To([Rn(),Mo("design:type",String)],ot.prototype,"repEmi",void 0);To([ls(),$v(),Mo("design:type",typeof Date>"u"?Object:Date)],ot.prototype,"dPag",void 0);import{IsString as ny}from"class-validator";function oy(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(oy,"_ts_decorate");function iy(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(iy,"_ts_metadata");var nr=class{static{s(this,"InfSolicNFF")}xSolic};oy([ny(),iy("design:type",String)],nr.prototype,"xSolic",void 0);function le(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(le,"_ts_decorate");function ue(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(ue,"_ts_metadata");var rr=class{static{s(this,"InfNFeAttributes")}Id;versao};le([Ft(),cu(),ue("design:type",String)],rr.prototype,"Id",void 0);le([Ft(),cu(),ue("design:type",String)],rr.prototype,"versao",void 0);var W=class{static{s(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};le([Fp(),Rp(),De(()=>rr),Oe(),ue("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],W.prototype,"$",void 0);le([Fp(),Rp(),Oe(),De(()=>V),ue("design:type",typeof IIde>"u"?Object:IIde)],W.prototype,"ide",void 0);le([Fp(),Rp(),Oe(),De(()=>He),ue("design:type",typeof IEmit>"u"?Object:IEmit)],W.prototype,"emit",void 0);le([Ft(),Oe(),De(()=>ot),ue("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],W.prototype,"avulsa",void 0);le([Ft(),Oe(),De(()=>Qe),ue("design:type",typeof IDest>"u"?Object:IDest)],W.prototype,"dest",void 0);le([Ft(),Oe(),De(()=>_),ue("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"retirada",void 0);le([Ft(),Oe(),De(()=>_),ue("design:type",typeof ILocal>"u"?Object:ILocal)],W.prototype,"entrega",void 0);le([Ft(),Oe({each:!0}),su(10),De(()=>qo),ue("design:type",Array)],W.prototype,"autXML",void 0);le([Oe({each:!0}),su(990),ry(1),De(()=>jo),ue("design:type",Array)],W.prototype,"det",void 0);le([Oe(),De(()=>Wt),ue("design:type",typeof ITotal>"u"?Object:ITotal)],W.prototype,"total",void 0);le([Oe(),De(()=>ft),ue("design:type",typeof ITransp>"u"?Object:ITransp)],W.prototype,"transp",void 0);le([Ft(),Oe(),De(()=>on),ue("design:type",typeof ICobr>"u"?Object:ICobr)],W.prototype,"cobr",void 0);le([Oe(),De(()=>nn),ue("design:type",typeof IPag>"u"?Object:IPag)],W.prototype,"pag",void 0);le([Ft(),Oe(),De(()=>ki),ue("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],W.prototype,"infIntermed",void 0);le([Ft(),Oe(),De(()=>No),ue("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],W.prototype,"infAdic",void 0);le([Ft(),Oe(),De(()=>yi),ue("design:type",typeof IExporta>"u"?Object:IExporta)],W.prototype,"exporta",void 0);le([Ft(),Oe(),De(()=>Si),ue("design:type",typeof ICompra>"u"?Object:ICompra)],W.prototype,"compra",void 0);le([Ft(),Oe(),De(()=>pt),ue("design:type",typeof ICana>"u"?Object:ICana)],W.prototype,"cana",void 0);le([Ft(),Oe(),De(()=>Xt),ue("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],W.prototype,"infRespTec",void 0);le([Ft(),Oe(),De(()=>nr),ue("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],W.prototype,"infSolicNFF",void 0);import{Type as lu}from"class-transformer";function Ac(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Ac,"_ts_decorate");function zc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(zc,"_ts_metadata");var aa=class{static{s(this,"NFeAttributes")}xmlns};Ac([cy(),sy(),zc("design:type",String)],aa.prototype,"xmlns",void 0);var Fn=class{static{s(this,"NFe")}$;infNFe;Signature};Ac([pu(),fu(),lu(()=>aa),du(),zc("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Fn.prototype,"$",void 0);Ac([pu(),fu(),lu(()=>W),du(),zc("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Fn.prototype,"infNFe",void 0);Ac([ay(),zc("design:type",typeof Signature>"u"?Object:Signature)],Fn.prototype,"Signature",void 0);import{plainToInstance as fy}from"nfets/core";import{Validates as jt}from"nfets/core";function Et(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Et,"_ts_decorate");function w(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(w,"_ts_metadata");var Ze=class{static{s(this,"NfeDetXmlBuilder")}listener;schema;data={};static create(e,t="PL_009_V4"){return new this(e,t)}constructor(e,t="PL_009_V4"){this.listener=e,this.schema=t}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}setImposto(e){return this.data.imposto=e,e}imposto(e){return this.listener?.imposto(this.setImposto(e)),this}icms(e){return e?(this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this):this}issqn(e){return e?(this.data.imposto??={},this.data.imposto.ISSQN=e,this.listener?.issqn(e),this):this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this.listener?.ii(e),this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this.listener?.ipi(e),this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this.listener?.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.listener?.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}is(e){return e==null?this:this.schema===Yt.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IS=e,this)}ibscbs(e){return e==null?this:this.schema===Yt.PL_009_V4?this:(this.data.imposto??={},this.data.imposto.IBSCBS=e,this)}vItem(e){return this.schema===Yt.PL_009_V4?this:(this.data.vItem=e.vItem,this)}assemble(){this.data.imposto&&this.setImposto(this.data.imposto);let e={...this.data};return this.data={},e}};Et([jt(ra),w("design:type",Function),w("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),w("design:returntype",void 0)],Ze.prototype,"det",null);Et([jt(O),w("design:type",Function),w("design:paramtypes",[typeof IProd>"u"?Object:IProd]),w("design:returntype",void 0)],Ze.prototype,"prod",null);Et([jt(xe),w("design:type",Function),w("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),w("design:returntype",typeof IImposto>"u"?Object:IImposto)],Ze.prototype,"setImposto",null);Et([jt(U),w("design:type",Function),w("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),w("design:returntype",void 0)],Ze.prototype,"icms",null);Et([jt(de),w("design:type",Function),w("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),w("design:returntype",void 0)],Ze.prototype,"issqn",null);Et([jt(Wo),w("design:type",Function),w("design:paramtypes",[typeof III>"u"?Object:III]),w("design:returntype",void 0)],Ze.prototype,"ii",null);Et([jt(eo),w("design:type",Function),w("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),w("design:returntype",void 0)],Ze.prototype,"ipi",null);Et([jt(Ko),w("design:type",Function),w("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),w("design:returntype",void 0)],Ze.prototype,"pis",null);Et([jt(xo),w("design:type",Function),w("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),w("design:returntype",void 0)],Ze.prototype,"pisst",null);Et([jt($o),w("design:type",Function),w("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),w("design:returntype",void 0)],Ze.prototype,"cofins",null);Et([jt(Do),w("design:type",Function),w("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),w("design:returntype",void 0)],Ze.prototype,"cofinsst",null);Et([jt(It),w("design:type",Function),w("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),w("design:returntype",void 0)],Ze.prototype,"icmsufdest",null);Et([jt(tt),w("design:type",Function),w("design:paramtypes",[typeof tt>"u"?Object:tt]),w("design:returntype",void 0)],Ze.prototype,"is",null);Et([jt(je),w("design:type",Function),w("design:paramtypes",[typeof je>"u"?Object:je]),w("design:returntype",void 0)],Ze.prototype,"ibscbs",null);import{left as py,right as xp}from"nfets/core";import{ValidateErrorsMetadata as Ec,Validates as Me}from"nfets/core";import{Environment as dy,NFeTsError as ly}from"nfets/core";function Te(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Te,"_ts_decorate");function N(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(N,"_ts_metadata");var $=class{static{s(this,"NfeXmlBuilder")}builder;contingency;schema;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};$data=void 0;get entity(){return Fn}root="NFe";$det=new Ds(this);$total=new ws(this);nfeDetXmlBuilder;static create(e,t,n="PL_009_V4"){return new this(e,t,n)}constructor(e,t,n="PL_009_V4"){this.builder=e,this.contingency=t,this.schema=n,this.nfeDetXmlBuilder=Ze.create(this.$det,this.schema)}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 e==null?this:(this.data.infNFe.avulsa=e,this)}dest(e){return e==null?this:(this.data.infNFe.dest=e,this)}retirada(e){return e==null?this:(this.data.infNFe.retirada=e,this)}entrega(e){return e==null?this:(this.data.infNFe.entrega=e,this)}autXML(e){return e==null?this:(this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this)}det(e,t){return this.data.infNFe.det=e.map((n,r)=>{let i=t(this.nfeDetXmlBuilder.det({nItem:(r+1).toString()}),n);return this.collect(i),i.assemble()}),this}total(e){return e==null?this:(this.data.infNFe.total=e,this)}ISSQNtot(e){return e==null?this:(this.data.infNFe.total.ISSQNtot??={},this.data.infNFe.total.ISSQNtot={...this.data.infNFe.total.ISSQNtot,...e},this)}ICMSTot(e){return e==null?this:(this.data.infNFe.total.ICMSTot={...this.data.infNFe.total.ICMSTot,...e},this)}IBSCBSTot(e){if(e==null)return this;if(this.schema===Yt.PL_009_V4)return this;let t=this.data.infNFe.total.IBSCBSTot;return this.data.infNFe.total.IBSCBSTot={...t,...e,gIBS:{...t?.gIBS,...e.gIBS,gIBSUF:{...t?.gIBS?.gIBSUF,...e.gIBS?.gIBSUF},gIBSMun:{...t?.gIBS?.gIBSMun,...e.gIBS?.gIBSMun}},gCBS:{...t?.gCBS,...e.gCBS},...e.gMono!=null||t?.gMono!=null?{gMono:{...t?.gMono,...e.gMono}}:{}},this}ISTot(e){return e==null?this:this.schema===Yt.PL_009_V4?this:(this.data.infNFe.total.ISTot={...this.data.infNFe.total.ISTot,...e},this)}increment(e){let t=e(this.data.infNFe.total,this.data.infNFe.det);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}:this.data.infNFe.total.ISSQNtot},this.schema!==Yt.PL_009_V4&&this.buildTotalForPL_010(t),this}buildTotalForPL_010(e){let t=this.data.infNFe.total.IBSCBSTot,n=e.IBSCBSTot,r=this.data.infNFe.total.ISTot,i=e.ISTot;this.data.infNFe.total={...this.data.infNFe.total,IBSCBSTot:{...t,...n,gCBS:{...t?.gCBS,...n?.gCBS},gIBS:{...t?.gIBS,...n?.gIBS,gIBSMun:{...t?.gIBS?.gIBSMun,...n?.gIBS?.gIBSMun},gIBSUF:{...t?.gIBS?.gIBSUF,...n?.gIBS?.gIBSUF}},...n?.gMono!=null||t?.gMono!=null?{gMono:{...t?.gMono,...n?.gMono}}:{}},ISTot:r||i?{...r,...i}:r,vNFTot:e.vNFTot??this.data.infNFe.total.vNFTot}}transp(e){return e==null?this:(this.data.infNFe.transp=e,this)}cobr(e){return e==null?this:(this.data.infNFe.cobr=e,this)}pag(e){return e==null?this:(this.data.infNFe.pag=e,this)}infIntermed(e){return e==null?this:(this.data.infNFe.infIntermed=e,this)}infAdic(e){return e==null?this:(this.data.infNFe.infAdic=e,this)}exporta(e){return e==null?this:(this.data.infNFe.exporta=e,this)}compra(e){return e==null?this:(this.data.infNFe.compra=e,this)}cana(e){return e==null?this:(this.data.infNFe.cana=e,this)}infRespTec(e){return e==null?this:(this.data.infNFe.infRespTec=e,this)}infSolicNFF(e){return e==null?this:(this.data.infNFe.infSolicNFF=e,this)}quiet(){return Reflect.deleteMetadata(Ec,this),this}toObject(){if(this.$data!==void 0)return xp(this.$data);let e=this.errors();return e?py(new ly(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),this.$data=fy(this.data,this.entity,{clearEmptyValues:!0}),xp(this.$data))}async assemble(){let e=this.toObject();return e.isLeft()?e:xp(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==dy.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!==Xe.Normal)return;switch(Gs[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Xe.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Xe.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Xe.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(Ec,this)}collect(e){let t=Reflect.getMetadata(Ec,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(Ec,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new Os().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}}};Te([Me(rr),N("design:type",Function),N("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),N("design:returntype",void 0)],$.prototype,"infNFe",null);Te([Me(V),N("design:type",Function),N("design:paramtypes",[typeof IIde>"u"?Object:IIde]),N("design:returntype",void 0)],$.prototype,"ide",null);Te([Me(He),N("design:type",Function),N("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),N("design:returntype",void 0)],$.prototype,"emit",null);Te([Me(ot),N("design:type",Function),N("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),N("design:returntype",void 0)],$.prototype,"avulsa",null);Te([Me(Qe),N("design:type",Function),N("design:paramtypes",[typeof IDest>"u"?Object:IDest]),N("design:returntype",void 0)],$.prototype,"dest",null);Te([Me(_),N("design:type",Function),N("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),N("design:returntype",void 0)],$.prototype,"retirada",null);Te([Me(_),N("design:type",Function),N("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),N("design:returntype",void 0)],$.prototype,"entrega",null);Te([Me(qo),N("design:type",Function),N("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),N("design:returntype",void 0)],$.prototype,"autXML",null);Te([Me(Wt),N("design:type",Function),N("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),N("design:returntype",void 0)],$.prototype,"total",null);Te([Me(ft),N("design:type",Function),N("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),N("design:returntype",void 0)],$.prototype,"transp",null);Te([Me(on),N("design:type",Function),N("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),N("design:returntype",void 0)],$.prototype,"cobr",null);Te([Me(nn),N("design:type",Function),N("design:paramtypes",[typeof IPag>"u"?Object:IPag]),N("design:returntype",void 0)],$.prototype,"pag",null);Te([Me(ki),N("design:type",Function),N("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),N("design:returntype",void 0)],$.prototype,"infIntermed",null);Te([Me(No),N("design:type",Function),N("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),N("design:returntype",void 0)],$.prototype,"infAdic",null);Te([Me(yi),N("design:type",Function),N("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),N("design:returntype",void 0)],$.prototype,"exporta",null);Te([Me(Si),N("design:type",Function),N("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),N("design:returntype",void 0)],$.prototype,"compra",null);Te([Me(pt),N("design:type",Function),N("design:paramtypes",[typeof ICana>"u"?Object:ICana]),N("design:returntype",void 0)],$.prototype,"cana",null);Te([Me(Xt),N("design:type",Function),N("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),N("design:returntype",void 0)],$.prototype,"infRespTec",null);Te([Me(nr),N("design:type",Function),N("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),N("design:returntype",void 0)],$.prototype,"infSolicNFF",null);var jc=class extends ur{static{s(this,"NfeXmlBuilderPipeline")}certificate;schema;builder=$.create(this.toolkit);constructor(e,t="PL_009_V4"){super(e),this.certificate=e,this.schema=t}build(e){return e(this.builder),this}async assemble(){let e=await this.builder.assemble();return e.isLeft()?e:this.assertXmlSignedAndValidated(e.value)}get nfeXsdSchema(){return uy.resolve(xs(),this.schema,"nfe_v4.00.xsd")}async assertXmlSignedAndValidated(e){if(!this.certificate)return Op(e);let t=await this.signXmlString(e);return t.isLeft()?t:this.validateXmlString(t.value)}async signXmlString(e){if(!this.certificate)return Op(e);let t=await this.certificates.read(this.certificate);return t.isLeft()?t:this.xmlSigner.sign(e,{tag:"infNFe",mark:"Id"},t.value)}async validateXmlString(e){let t=await this.toolkit.validate(e,this.nfeXsdSchema);return t.isLeft()?my(new Fs(t.value.message,e,{cause:t.value.cause})):Op(e)}};import{NFeTsError as gy}from"nfets/core";import{left as vy,right as yy}from"nfets/core";import{unreachable as Sy}from"nfets/core";import{Type as Dp}from"class-transformer";import{Allow as hy,IsNotEmptyObject as wp,IsObject as Pp,ValidateNested as Ap}from"class-validator";import{IsString as hu}from"class-validator";function uu(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(uu,"_ts_decorate");function mu(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(mu,"_ts_metadata");var sa=class{static{s(this,"InfNFeSupl")}qrCode;urlChave};uu([hu(),mu("design:type",String)],sa.prototype,"qrCode",void 0);uu([hu(),mu("design:type",String)],sa.prototype,"urlChave",void 0);function Tc(o,e,t,n){var r=arguments.length,i=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,n);else for(var c=o.length-1;c>=0;c--)(a=o[c])&&(i=(r<3?a(i):r>3?a(e,t,i):a(e,t))||i);return r>3&&i&&Object.defineProperty(e,t,i),i}s(Tc,"_ts_decorate");function Mc(o,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(o,e)}s(Mc,"_ts_metadata");var _i=class{static{s(this,"NFCe")}$;infNFe;infNFeSupl;Signature};Tc([Pp(),wp(),Dp(()=>aa),Ap(),Mc("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],_i.prototype,"$",void 0);Tc([Pp(),wp(),Dp(()=>W),Ap(),Mc("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],_i.prototype,"infNFe",void 0);Tc([Pp(),wp(),Dp(()=>sa),Ap(),Mc("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],_i.prototype,"infNFeSupl",void 0);Tc([hy(),Mc("design:type",typeof Signature>"u"?Object:Signature)],_i.prototype,"Signature",void 0);var Bc=class extends ${static{s(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return _i}static create(e,t,n="PL_009_V4"){return new this(e,t,n)}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===Xe.Normal)return this.data.infNFe.ide.tpEmis=Xe.OFFLINE,void 0}};var gu=class extends jc{static{s(this,"NfceXmlBuilderPipeline")}options;nfceQrcode=new nt(this.certificates);transmitter=new We(this.soap,this.nfceQrcode);constructor(e,t="PL_009_V4",n){super(e,t),this.options=n}builder=Bc.create(this.toolkit,void 0,this.schema);async assertXmlSignedAndValidated(e){let t=await super.assertXmlSignedAndValidated(e);if(t.isLeft()||!this.options?.qrCode)return t;if(!this.certificate)return vy(new gy("Certificate is required to assemble NFCe XML with QR Code"));let n=t.value,r=await this.toolkit.parse(n),i=await this.generateQrCode(r,this.options,this.certificate);if(i.isLeft())return i;let a=await this.toolkit.build(i.value,{rootName:"infNFeSupl"}),c=this.toolkit.insertBefore(n,"Signature",a);return yy(c)}async generateQrCode(e,t,n){let r=this.transmitter.service({cUF:e.infNFe.ide.cUF,tpAmb:e.infNFe.ide.tpAmb,service:"NfeConsultaQR"}),i={...t.qrCode};switch(i.version??=r.version,i.version){case"200":return await this.nfceQrcode.execute(e,{version:i.version,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url,CSC:i.CSC,CSCId:i.CSCId});case"300":{let a=await this.certificates.read(n);return a.isLeft()?a:await this.nfceQrcode.execute(e,{version:i.version,certificate:a.value,urlConsult:this.transmitter.getUrlConsult(e),urlService:r.url})}default:return Sy(i.version)}}};var vu="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAg0AAAFXCAYAAAAh5X2YAAAgAElEQVR4nOy9e5xdZX3v//7sDENMY0zTNCcnJ+XQlEORw0TkRzkUYSCZaKkSBrwEa8XLD5tgBtA2M6HUenxZj1Umk1pJhpLUS71Uy2gp4WK9ZAJM1HootZpYDz9+/CylkQaIiCHEECbz/f2xnmettffc9mWtfZl53jDZa6/P2mt/n2evtZ7v831uIhCokN7d+9qRFgAL3d98jIWGLUJaLOOXEEsMu31r18qvNtjcQCAQCGSEGm1AoP5sGt7fJmw+aIGZzZc032C+YDGwEGMhspeBFgGLgIWGLRBaDCwyrF2oALQBBaBgUPAXk2EACB017O1bu1Z+uQHJDAQCgUDGBKehhekd3t8OzPMFPzCfqJBfDCzG7JeAhSYtBluEsRixEDQfrA2jHdEOtGG0ASCBK/Rj/NvqtMOS1g50dYxkkeZAIBAINI7gNDQZm3bvL4DNkzTfzOYDy4SWIZYB/wlYitlipKVEUYG5iLkY89zrxL+qOaEx2hNmtmrrmpWPTJf+QCAQCDQvwWlo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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:n}=this.builder.pageMargins(),r=e?.x??t,i=this.context.data.infNFe.emit,{enderEmit:a}=i,{xNome:c}=i,f=this.context.defaults.font,u=`${f}-Bold`,h="center";this.builder.row({left:r,right:n},g=>this.builder.text(this.identification(i),{...g,align:h})).row({left:r,right:n},g=>this.builder.font(u).text(c,{...g,align:h}).font(f)).row({left:r,right:n},g=>this.builder.text(`${this.addressLine1(a)}${this.addressLine2(a)}${this.addressLine3(a)}`,{...g,align:h})).row({left:r,right:n},g=>this.builder.text(this.addressLine4(a),{...g,align:h}))}identification(e){let t=this.cpfOrCnpj(e),n=e.IE.length?` IE: ${e.IE}`:"";return`${t}${n}`}cpfOrCnpj(e){let{CNPJ:t,CPF:n}=e;return t?.length===14?`CNPJ ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF ${n.replace(/(\d{3})(\d{3})(\d{3})(\d{2})/,"$1.$2.$3-$4")}`:""}addressLine1(e){let{xLgr:t,nro:n}=e;return`${t}, ${n}`}addressLine2(e){let{xBairro:t}=e;return`, ${t}`}addressLine3(e){let{xMun:t,UF:n}=e;return`, ${t} - ${n}`}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},n=>this.builder.text("Documento Auxiliar da Nota Fiscal de Consumidor Eletr\xF4nica",{...n,align:"center"})).row({left:e,right:t},n=>this.builder.text("N\xE3o permite aproveitamento de cr\xE9dito de ICMS",{...n,align:"center"}))}get logo(){let{logo:e,ignoreDefaultLogo:t}=this.context.options;if(e)return e;if(!t)return vu}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 xn=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.context.protNFe?.infProt?this.constants.issuedInContingency:`${this.constants.issuedInContingency}
16
+ ${this.constants.pendingOfAuthorization}`}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Xe.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},n=>this.builder.text(this.contingencyBannerText,{...n,align:"center"}))}notProtocoledInNormalEmission(e){if(!this.hasNotProtocoledInNormalEmission)return;let t=e?.x??0;this.builder.row({left:t},n=>this.builder.text(this.constants.notProtocoledInNormalEmission,{...n,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:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n;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((i,a)=>i+a,0)}};import{Environment as Cy}from"nfets/core";var fa=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!==Cy.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 Vc=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:n}}=e,{cProd:r,xProd:i,qCom:a,uCom:c,vUnCom:f,vDesc:u,vProd:h}=t,g={size:this.context.options.textFontSize},v={font:g,text:n.padStart(3,"0")},y={font:g,text:r},R=[{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(u??0)},{font:g,align:{x:"right"},text:this.context.currency(h)}],E=this.builder.widthOfString(r),D=this.columnStyles[1];if(E>=D)return[[v,{colSpan:6,font:g,text:`${r} ${i}`}],[{colSpan:3},...R]];let j=this.builder.widthOfString(i),fi=this.columnStyles[2];if(j>=fi)return[[v,y,{colSpan:5,font:g,text:i}],[{colSpan:3},...R]];let ao=this.getFirstLineWidth();return this.builder.widthOfString(`${r} ${i}`)<=ao?[[v,y,{font:g,text:i},...R]]:[[v,y,{colSpan:5,font:g,text:i}],[{colSpan:3},...R]]}items(){let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],{left:n}=this.builder.pageMargins();this.builder.table({position:{x:n},defaultStyle:this.defaultStyle,columnStyles:this.columnStyles,rowStyles:this.rowStyles,data:[this.headers,...t.reduce((r,i)=>r.concat(this.item(i)),[])]})}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,n)=>t+n,0)}getProportionalWidth(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.columnStyles.reduce((a,c)=>typeof c=="number"?a+c:a,0),i=this.columnStyles.filter(a=>a==="*").length;return(n-r)/i}getAvailableWidth(e,t){if(e.colSpan){let i=t.indexOf(e),a=this.columnStyles.slice(0,i).reduce((f,u)=>typeof u=="number"?f+u:f,0),c=this.getProportionalWidth()*e.colSpan;return a+c}let n=t.indexOf(e),r=this.columnStyles[n];return typeof r=="number"?r:this.getProportionalWidth()}calculateRowHeight(e,t){let n=t;for(let r of e){if(!r.text)continue;let i=r.text,a=this.builder.widthOfString(i),c=this.getAvailableWidth(r,e),f=a<=c?t:this.builder.heightOfString(i,{width:c});n=Math.max(n,f)}return n}height(){this.setup();let{det:e}=this.context.data.infNFe,t=Array.isArray(e)?e:[e],n=this.builder.currentLineHeight(),r=n*1.2,i=n*.5,a=n*.5,c=t.reduce((u,h)=>{let g=this.item(h),[v]=g,y=this.calculateRowHeight(v,n),R=0;if(g.length>1){let ao=this.calculateRowHeight(g[1],n);R=Math.max(n,ao)}let{top:E,bottom:D}=this.defaultStyle.padding,j=E+D,fi=g.length>1?n*.2:0;return u+y+R+g.length*j+fi},0),f=n*2;return i+r+a+c+f}};import{Decimal as by}from"nfets/core";var pa=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:n,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Qtde. Total de Itens",{...i}),i=>this.builder.text(`${t.length}`,{...i,align:"right"}))}totalizers(){let{vProd:e,vDesc:t,vFrete:n,vSeg:r,vOutro:i}=this.context.data.infNFe.total.ICMSTot,{vServ:a}=this.context.data.infNFe.total.ISSQNtot??{};this.conditionalRowValue("Valor Total R$",new by(e).add(a??0).toNumber()),this.conditionalRowValue("Desconto total R$",t,"-"),this.conditionalRowValue("Frete total R$",n),this.conditionalRowValue("Seguro total R$",r),this.conditionalRowValue("Outras despesas total R$",i)}total(){let{vNF:e}=this.context.data.infNFe.total.ICMSTot,t=this.context.defaults.font,n=`${t}-Bold`,{left:r,right:i}=this.builder.pageMargins();this.builder.font(n).fontSize(this.context.options.titleFontSize).row({columns:2,left:r,right:i},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,n=""){if(!t||!Number.parseFloat(t.toString()))return;t=this.context.currency(t);let{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},a=>this.builder.text(e,{...a,align:"left"}),a=>this.builder.text(`${n}${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 we={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"},yu={[we.Dinheiro]:"Dinheiro",[we.Cheque]:"Cheque",[we.CartaoDeCredito]:"Cart\xE3o de Cr\xE9dito",[we.CartaoDeDebito]:"Cart\xE3o de D\xE9bito",[we.CartaoDaLoja]:"Cart\xE3o da Loja/Outros Credi\xE1rios",[we.ValeAlimentacao]:"Vale Alimenta\xE7\xE3o",[we.ValeRefeicao]:"Vale Refei\xE7\xE3o",[we.ValePresente]:"Vale Presente",[we.ValeCombustivel]:"Vale Combust\xEDvel",[we.BoletoBancario]:"Boleto Banc\xE1rio",[we.DepositoBancario]:"Dep\xF3sito Banc\xE1rio",[we.PIXDinamico]:"Pagamento Instant\xE2neo (PIX) - Din\xE2mico",[we.TransferenciaBancaria]:"Transfer\xEAncia banc\xE1ria, Carteira Digital",[we.ProgramaFidelidade]:"Programa fidelidade, Cashback, Cr\xE9d Virt",[we.PIXEstatico]:"Pagamento Instant\xE2neo (PIX) - Est\xE1tico",[we.CreditoEmLoja]:"Cr\xE9dito em Loja",[we.PagamentoNaoInformado]:"Pagamento Eletr\xF4nico n\xE3o Informado - falha de hardware do sistema emissor",[we.SemPagamento]:"Sem pagamento",[we.PagamentoPosterior]:"Pagamento Posterior",[we.Outros]:"Outros"};var da=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:n}=e,{left:r,right:i}=this.builder.pageMargins();this.builder.row({columns:2,left:r,right:i},a=>this.builder.text(yu[t],{...a,align:"left"}),a=>this.builder.text(this.context.currency(n),{...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:n,right:r}=this.builder.pageMargins();this.builder.row({columns:2,left:n,right:r},i=>this.builder.text("Forma de Pagamento",{...i,align:"left"}),i=>this.builder.text("Valor pago R$",{...i,align:"right"})),t.forEach(i=>this.payment(i))}change(){let{vTroco:e}=this.context.data.infNFe.pag;if(!this.context.isValueNotEmpty(e))return;let{left:t,right:n}=this.builder.pageMargins();this.builder.moveDown(.5).row({columns:2,left:t,right:n},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,n=Array.isArray(t)?t:[t],r=this.context.isValueNotEmpty(e)?this.builder.currentLineHeight()+.5:0;return this.builder.currentLineHeight()*n.length-1+r}};var la=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(),n=this.context.defaults.font,r=`${n}-Bold`;this.builder.font(r).row({left:e,right:t},i=>this.builder.text("Consulte pela Chave de Acesso em",{...i,align:"center"})).font(n)}url(){let{urlChave:e}=this.context.data.infNFeSupl??{},{left:t,right:n}=this.builder.pageMargins();this.builder.row({left:t,right:n},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:n,right:r}=this.builder.pageMargins();this.builder.row({left:n,right:r},i=>this.builder.text(t,{...i,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 Dh=zh(Oh(),1);var $c=class o{static{s(this,"QRCode")}context;static _instance;qrCodeSvg;static instance(e){return this._instance??=new o(e)}constructor(e){this.context=e}get builder(){return this.context.builder}get hasContingency(){let{tpEmis:e}=this.context.data.infNFe.ide;return e!==Xe.Normal}get qrSize(){let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=this.hasContingency?.6:.4;return Math.floor(n*r)}async getQrSvgString(e){try{return await Dh.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,n]=e.split(" ").map(Number),r=this.qrSize,i=r/t,a=r/n,c=Array.isArray(this.qrCodeSvg.path)?this.qrCodeSvg.path:[this.qrCodeSvg.path],{left:f,right:u}=this.builder.pageMargins(),h=this.builder.pageWidth()-f-u,g=f+(h-r)/2,v=this.builder.y();this.builder.save().translate(g,v).scale(i,a),c.forEach(y=>{this.builder.path(y.$.d),y.$.fill&&this.builder.fill(y.$.fill),y.$.stroke&&this.builder.stroke(y.$.stroke)}),this.builder.restore(),this.builder.text("",{y:v+r})}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.qrCodeSvg?(this.setup(),this.builder.moveDown(.5),this.drawQrCode(),this.builder):this.builder}end(){o._instance=void 0}height(){let{qrCode:e}=this.context.data.infNFeSupl??{};return e?(this.setup(),this.qrSize+.5):0}};var ef=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:n}=this.builder.pageMargins(),r=this.context.defaults.font,i=`${r}-Bold`;this.builder.row({left:e?.x??t,right:n},a=>this.builder.font(i).text("CONSUMIDOR N\xC3O IDENTIFICADO",{...a,align:"center"}).font(r))}identification(e){let{CNPJ:t,CPF:n,idEstrangeiro:r}=e;return t?.length===14?`CNPJ: ${t.replace(/([A-Z0-9]{2})([A-Z0-9]{3})([A-Z0-9]{3})([A-Z0-9]{4})([A-Z0-9]{2})/,"$1.$2.$3/$4-$5")}`:n?.length===11?`CPF: ${n.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:n,right:r}=this.builder.pageMargins(),i=this.identification(t),{xNome:a,enderDest:c}=t,f=this.addressLine(c),u=this.context.defaults.font,h=`${u}-Bold`;this.builder.row({left:e?.x??n,right:r},g=>this.builder.font(h).text(`CONSUMIDOR - ${i}`,{...g,align:"center"}).font(u)).row({left:e?.x??n,right:r},g=>this.builder.text(`${a}${f}`,{...g,align:"center"}))}addressLine(e){if(!e)return"";let{xLgr:t,nro:n,xBairro:r,xCpl:i,xMun:a,UF:c,CEP:f}=e;if(!t||!f)return"";let u=i?`, ${i}`:"";return` - Rua ${t}, ${n}, ${r}${u}, ${a} - ${c}`}addressLine2(e){let{xBairro:t,xCpl:n}=e,r=n?` - ${n}`:"";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(){this.setup();let{left:e,right:t}=this.builder.pageMargins(),n=this.builder.pageWidth()-e-t,r=[this.builder.currentLineHeight()*.5],{dest:i}=this.context.data.infNFe;if(!i)return r.push(this.builder.heightOfString("CONSUMIDOR N\xC3O IDENTIFICADO",{width:n,align:"center"})),r.reduce((h,g)=>h+g,0);let a=this.identification(i),{xNome:c,enderDest:f}=i,u=this.addressLine(f);return r.push(this.builder.heightOfString(`CONSUMIDOR - ${a}`,{width:n,align:"center"}),this.builder.heightOfString(`${c}${u}`,{width:n,align:"center"})),r.reduce((h,g)=>h+g,0)}};import{dateToolkit as tf,timezones as Nd}from"nfets/core";var of=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:n,dhEmi:r}=this.context.data.infNFe.ide,i=t.padStart(9,"0"),a=n.padStart(3,"0"),{left:c,right:f}=this.builder.pageMargins(),{cUF:u}=this.context.data.infNFe.ide,h=Nd[u],g=tf(r).tz(h).format("DD/MM/YYYY HH:mm:ss"),v=this.context.defaults.font,y=`${v}-Bold`;this.builder.row({left:e?.x??c,right:f},R=>this.builder.font(y).text(`NFC-e n\xBA ${i} - s\xE9rie ${a} emitida em: ${g}`,{...R,align:"center"}).font(v))}protocoled(e,t){let{dhRecbto:n,nProt:r}=e,{left:i,right:a}=this.builder.pageMargins(),{cUF:c}=this.context.data.infNFe.ide,f=Nd[c],u=r.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),h=tf(n).tz(f).format("DD/MM/YYYY HH:mm:ss");this.builder.row({left:t?.x??i,right:a},g=>this.builder.text(`Protocolo de autoriza\xE7\xE3o: ${u}
17
+ Data de autoriza\xE7\xE3o: ${h}`,{...g,align:"center"}))}assemble(e){let{cMsg:t,xMsg:n}=this.context.protNFe?.infProt??{},{left:r,right:i}=this.builder.pageMargins();return n&&this.builder.row({left:e?.x??r,right:i},a=>this.builder.text(`$(${t}) ${n}`,{...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}height(){this.setup();let e=[.5],{left:t,right:n}=this.builder.pageMargins(),r=this.builder.pageWidth()-t-n,{nNF:i,serie:a,dhEmi:c}=this.context.data.infNFe.ide,f=i.padStart(9,"0"),u=a.padStart(3,"0"),{cUF:h}=this.context.data.infNFe.ide,g=Nd[h],v=tf(c).tz(g).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`NFC-e n\xBA ${f} - s\xE9rie ${u} emitida em: ${v}`,{width:r,align:"center"}));let{cMsg:y,xMsg:R}=this.context.protNFe?.infProt??{};R&&e.push(this.builder.heightOfString(`$(${y}) ${R}`,{width:r,align:"left"}));let E=this.context.protNFe;if(E){let{dhRecbto:D,nProt:j}=E.infProt,fi=j.replace(/([0-9]{3})([0-9]{10})(.*)/g,"$1 $2 $3"),ao=tf(D).tz(g).format("DD/MM/YYYY HH:mm:ss");e.push(this.builder.heightOfString(`Protocolo de autoriza\xE7\xE3o: ${fi}
18
+ Data de autoriza\xE7\xE3o: ${ao}`,{width:r,align:"center"}))}return e.reduce((D,j)=>D+j,0)}};var nf=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[ef.instance(this.context),of.instance(this.context),xn.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)=>e+(t.height?.()??0),0)}};var BS=.35277777777777775,Id=.75,wh={"80mm":80/BS},rf="gerado por github.com/nfets/nfets";var af=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:n}=this.builder.pageMargins(),r=!e||!Number.parseFloat(e.toString())?"-----":this.context.currency(e);this.builder.row({left:t,right:n},i=>this.builder.text(`${this.constants.vTotTrib} ${r}`,{...i,align:"center"}))}get infCplText(){return(this.context.data.infNFe.infAdic?.infCpl?.replace(/;/g,`
19
19
  `)??"").split(`
20
20
  `).map(t=>t.trim().replace(/[\x00-\x08\x0B-\x0C\x0E-\x1F\x7F-\x9F]/g,"")).filter(t=>t.length>0).join(`
21
- `)}infCpl(){if(!this.infCplText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},n=>this.builder.text(this.infCplText,{...n,align:"center"}))}credits(){let e=this.context.options.credits;if(!e)return;this.builder.moveDown(.5);let{left:t,right:n}=this.builder.pageMargins();if(e===op)return this.builder.row({left:t,right:n},r=>this.builder.text(e,{...r,link:"https://github.com/nfets/nfets",align:"center"}));this.builder.row({left:t,right:n},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(){this.setup();let e=[this.builder.currentLineHeight()*.5],t=this.context.options.credits,{left:n,right:r}=this.builder.pageMargins(),i=this.builder.pageWidth()-n-r,{vTotTrib:a}=this.context.data.infNFe.total.ICMSTot,c=!a||!Number.parseFloat(a.toString())?"-----":this.context.currency(a);return e.push(this.builder.heightOfString(`${this.constants.vTotTrib} ${c}`,{width:i,align:"center"})),this.infCplText&&e.push(this.builder.heightOfString(this.infCplText,{width:i,align:"center"})),t&&e.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(t,{width:i,align:"center"})),e.reduce((p,u)=>p+u,0)}};var Sa=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[tp.instance(this.context),Kc.instance(this.context),ip.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,t,n]=this.builders;return e.build(),await t.build(),n.build(),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),0)}};import{PassThrough as PS}from"stream";import{PdfkitPdfBuilder as AS}from"nfets/core";import{Decimal as zS,Xml2JsToolkit as ES}from"nfets/core";var Ca=class{static{s(this,"DanfcePdfDocument")}stream;builder;toolkit=new ES;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*Cd,titleFontSize:10*Cd,credits:op};constructor(e){this.stream=e,this.builder=AS.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let n=t(new PS);try{n.options.height=1e4,n.apply(),n.builder.page(),await n.parse(e);for(let i of n.builders)await i.build();let{bottom:r}=n.pageMargins;return n.builder.y()+r+8}finally{n.end()}}pageMargins={top:12,right:8,bottom:28,left:8};height(){this.builder.page();let{top:e,bottom:t}=this.pageMargins;return this.builders.reduce((r,i)=>r+(i.height?.()??0),0)+e+t}apply(){this.builder.configure({size:[Fh[this.options.width],this.options.height],margins:this.pageMargins,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 zS(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}};var xh=class o extends Ca{static{s(this,"DanfceDefaultPdfDocument")}clone(e){return new o(e)}get builders(){return[aa.instance(this),Dn.instance(this),sa.instance(this),Mc.instance(this),ca.instance(this),pa.instance(this),fa.instance(this),Sa.instance(this)]}};var Oh=class o extends Ca{static{s(this,"DanfceReducedPdfDocument")}clone(e){return new o(e)}get builders(){return[aa.instance(this),Dn.instance(this),sa.instance(this),ca.instance(this),pa.instance(this),fa.instance(this),Sa.instance(this)]}};export{Ns as AccessKeyBuilder,xh as DanfceDefaultPdfDocument,Oh as DanfceReducedPdfDocument,Is as DefaultDetBuilderAggregator,Rs as DefaultTotalBuilderAggregator,Id as EventoCstatToCancelRegister,Nd as EventoCstatToProtocol,Rd as InutCstatToProtocol,_i as NFCeDto,On as NFeDto,Xs as NfceAuthorizerPipeline,_d as NfceCancelPipeline,el as NfceConsultProtocoloPipeline,$d as NfceConsultStatusPipeline,Kd as NfceContingencyXmlAuthorizerPipeline,it as NfceQrcode,_e as NfceRemoteTransmitter,kd as NfceVoidRangePipeline,Tc as NfceXmlBuilder,lu as NfceXmlBuilderPipeline,Gd as NfeAuthorizationResponsePipeline,qs as NfeAuthorizerPipeline,Hs as NfeCancelPipeline,Od as NfeComplements,Gs as NfeConsultProtocoloPipeline,Us as NfeConsultStatusPipeline,tt as NfeDetXmlBuilder,Et as NfeRemoteTransmitter,Oa as NfeVoidRangePipeline,$ as NfeXmlBuilder,zc as NfeXmlBuilderPipeline,Ye as TpEmis,zt as TpEvent,Cs as XmlValidationError,bs as schemas};
21
+ `)}infCpl(){if(!this.infCplText)return;let{left:e,right:t}=this.builder.pageMargins();this.builder.row({left:e,right:t},n=>this.builder.text(this.infCplText,{...n,align:"center"}))}credits(){let e=this.context.options.credits;if(!e)return;this.builder.moveDown(.5);let{left:t,right:n}=this.builder.pageMargins();if(e===rf)return this.builder.row({left:t,right:n},r=>this.builder.text(e,{...r,link:"https://github.com/nfets/nfets",align:"center"}));this.builder.row({left:t,right:n},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(){this.setup();let e=[this.builder.currentLineHeight()*.5],t=this.context.options.credits,{left:n,right:r}=this.builder.pageMargins(),i=this.builder.pageWidth()-n-r,{vTotTrib:a}=this.context.data.infNFe.total.ICMSTot,c=!a||!Number.parseFloat(a.toString())?"-----":this.context.currency(a);return e.push(this.builder.heightOfString(`${this.constants.vTotTrib} ${c}`,{width:i,align:"center"})),this.infCplText&&e.push(this.builder.heightOfString(this.infCplText,{width:i,align:"center"})),t&&e.push(this.builder.currentLineHeight()*.5,this.builder.heightOfString(t,{width:i,align:"center"})),e.reduce((f,u)=>f+u,0)}};var ba=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[nf.instance(this.context),$c.instance(this.context),af.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,t,n]=this.builders;return e.build(),await t.build(),n.build(),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),0)}};import{PassThrough as VS}from"stream";import{PdfkitPdfBuilder as LS}from"nfets/core";import{Decimal as HS,Xml2JsToolkit as QS}from"nfets/core";var Na=class{static{s(this,"DanfcePdfDocument")}stream;builder;toolkit=new QS;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:9*Id,titleFontSize:11*Id,credits:rf};constructor(e){this.stream=e,this.builder=LS.new(this.defaults).pipe(this.stream),this.apply()}async getDynamicHeight(e,t){let n=t(new VS);try{n.options.height=1e4,n.apply(),n.builder.page(),await n.parse(e);for(let i of n.builders)await i.build();let{bottom:r}=n.pageMargins;return n.builder.y()+r+8}finally{n.end()}}pageMargins={top:12,right:8,bottom:28,left:8};height(){this.builder.page();let{top:e,bottom:t}=this.pageMargins;return this.builders.reduce((r,i)=>r+(i.height?.()??0),0)+e+t}apply(){this.builder.configure({size:[wh[this.options.width],this.options.height],margins:this.pageMargins,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 HS(e).toNumber().toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:t})}isValueNotEmpty(e){return!!e&&Number.parseFloat(e.toString())>0}};var Ph=class o extends Na{static{s(this,"DanfceDefaultPdfDocument")}clone(e){return new o(e)}get builders(){return[ca.instance(this),xn.instance(this),fa.instance(this),Vc.instance(this),pa.instance(this),da.instance(this),la.instance(this),ba.instance(this)]}};var Ah=class o extends Na{static{s(this,"DanfceReducedPdfDocument")}clone(e){return new o(e)}get builders(){return[ca.instance(this),xn.instance(this),fa.instance(this),pa.instance(this),da.instance(this),la.instance(this),ba.instance(this)]}};export{Os as AccessKeyBuilder,Ph as DanfceDefaultPdfDocument,Ah as DanfceReducedPdfDocument,Ds as DefaultDetBuilderAggregator,ws as DefaultTotalBuilderAggregator,xd as EventoCstatToCancelRegister,Fd as EventoCstatToProtocol,Od as InutCstatToProtocol,_i as NFCeDto,Fn as NFeDto,ks as NfceAuthorizerPipeline,kd as NfceCancelPipeline,il as NfceConsultProtocoloPipeline,ol as NfceConsultStatusPipeline,el as NfceContingencyXmlAuthorizerPipeline,nt as NfceQrcode,We as NfceRemoteTransmitter,tl as NfceVoidRangePipeline,Bc as NfceXmlBuilder,gu as NfceXmlBuilderPipeline,Xd as NfeAuthorizationResponsePipeline,Xs as NfeAuthorizerPipeline,Zs as NfeCancelPipeline,Pd as NfeComplements,_s as NfeConsultProtocoloPipeline,Js as NfeConsultStatusPipeline,Ze as NfeDetXmlBuilder,Mt as NfeRemoteTransmitter,wa as NfeVoidRangePipeline,$ as NfeXmlBuilder,jc as NfeXmlBuilderPipeline,Xe as TpEmis,Tt as TpEvent,Fs as XmlValidationError,xs as schemas};