nfets 0.0.37 → 0.0.39

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,8 +0,0 @@
1
- import { createRequire } from 'module'; const require = createRequire(import.meta.url);
2
- import{A as uo,B as Wp,E as Yp,F as md,G as vd,H as yd,I as Xp,J as Kp,L as H,M as f,N as Fr,d as Hp,f as d,g as $p,h as S,i as Cn,k as Zi,o as bn,p as co,q as Jp,w as Gp,x as fo,z as D}from"./chunk-IURMCRIH.mjs";import{a,b as li,d as Qp,e as ld,f as cs}from"./chunk-W6MRGYXP.mjs";var Ic=Qp((Ay,Fc)=>{"use strict";var Ci;Fc.exports=function(){if(!Ci){try{Ci=md()("follow-redirects")}catch{}typeof Ci!="function"&&(Ci=a(function(){},"debug"))}Ci.apply(null,arguments)}});var wc=Qp((Ey,js)=>{"use strict";var Ri=li("url"),bi=Ri.URL,Ru=li("http"),Fu=li("https"),Os=li("stream").Writable,xs=li("assert"),zc=Ic();a((function(){var e=typeof process<"u",o=typeof window<"u"&&typeof document<"u",n=Jr(Error.captureStackTrace);!e&&(o||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var As=!1;try{xs(new bi(""))}catch(t){As=t.code==="ERR_INVALID_URL"}var Iu=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],ws=["abort","aborted","connect","error","socket","timeout"],Es=Object.create(null);ws.forEach(function(t){Es[t]=function(e,o,n){this._redirectable.emit(t,e,o,n)}});var Fs=Fi("ERR_INVALID_URL","Invalid URL",TypeError),Is=Fi("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),zu=Fi("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",Is),Ou=Fi("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),xu=Fi("ERR_STREAM_WRITE_AFTER_END","write after end"),Au=Os.prototype.destroy||xc;function ut(t,e){Os.call(this),this._sanitizeOptions(t),this._options=t,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var o=this;this._onNativeResponse=function(n){try{o._processResponse(n)}catch(i){o.emit("error",i instanceof Is?i:new Is({cause:i}))}},this._performRequest()}a(ut,"RedirectableRequest");ut.prototype=Object.create(Os.prototype);ut.prototype.abort=function(){Ds(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};ut.prototype.destroy=function(t){return Ds(this._currentRequest,t),Au.call(this,t),this};ut.prototype.write=function(t,e,o){if(this._ending)throw new xu;if(!$r(t)&&!Pu(t))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Jr(e)&&(o=e,e=null),t.length===0){o&&o();return}this._requestBodyLength+t.length<=this._options.maxBodyLength?(this._requestBodyLength+=t.length,this._requestBodyBuffers.push({data:t,encoding:e}),this._currentRequest.write(t,e,o)):(this.emit("error",new Ou),this.abort())};ut.prototype.end=function(t,e,o){if(Jr(t)?(o=t,t=e=null):Jr(e)&&(o=e,e=null),!t)this._ended=this._ending=!0,this._currentRequest.end(null,null,o);else{var n=this,i=this._currentRequest;this.write(t,e,function(){n._ended=!0,i.end(null,null,o)}),this._ending=!0}};ut.prototype.setHeader=function(t,e){this._options.headers[t]=e,this._currentRequest.setHeader(t,e)};ut.prototype.removeHeader=function(t){delete this._options.headers[t],this._currentRequest.removeHeader(t)};ut.prototype.setTimeout=function(t,e){var o=this;function n(s){s.setTimeout(t),s.removeListener("timeout",s.destroy),s.addListener("timeout",s.destroy)}a(n,"destroyOnTimeout");function i(s){o._timeout&&clearTimeout(o._timeout),o._timeout=setTimeout(function(){o.emit("timeout"),r()},t),n(s)}a(i,"startTimer");function r(){o._timeout&&(clearTimeout(o._timeout),o._timeout=null),o.removeListener("abort",r),o.removeListener("error",r),o.removeListener("response",r),o.removeListener("close",r),e&&o.removeListener("timeout",e),o.socket||o._currentRequest.removeListener("socket",i)}return a(r,"clearTimer"),e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",r),this.on("error",r),this.on("response",r),this.on("close",r),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(t){ut.prototype[t]=function(e,o){return this._currentRequest[t](e,o)}});["aborted","connection","socket"].forEach(function(t){Object.defineProperty(ut.prototype,t,{get:a(function(){return this._currentRequest[t]},"get")})});ut.prototype._sanitizeOptions=function(t){if(t.headers||(t.headers={}),t.host&&(t.hostname||(t.hostname=t.host),delete t.host),!t.pathname&&t.path){var e=t.path.indexOf("?");e<0?t.pathname=t.path:(t.pathname=t.path.substring(0,e),t.search=t.path.substring(e))}};ut.prototype._performRequest=function(){var t=this._options.protocol,e=this._options.nativeProtocols[t];if(!e)throw new TypeError("Unsupported protocol "+t);if(this._options.agents){var o=t.slice(0,-1);this._options.agent=this._options.agents[o]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of ws)n.on(i,Es[i]);if(this._currentUrl=/^\//.test(this._options.path)?Ri.format(this._options):this._options.path,this._isRedirect){var r=0,s=this,p=this._requestBodyBuffers;a((function y(v){if(n===s._currentRequest)if(v)s.emit("error",v);else if(r<p.length){var m=p[r++];n.finished||n.write(m.data,m.encoding,y)}else s._ended&&n.end()}),"writeNext")()}};ut.prototype._processResponse=function(t){var e=t.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:t.headers,statusCode:e});var o=t.headers.location;if(!o||this._options.followRedirects===!1||e<300||e>=400){t.responseUrl=this._currentUrl,t.redirects=this._redirects,this.emit("response",t),this._requestBodyBuffers=[];return}if(Ds(this._currentRequest),t.destroy(),++this._redirectCount>this._options.maxRedirects)throw new zu;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:t.req.getHeader("host")},this._options.headers));var r=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],Rs(/^content-/i,this._options.headers));var s=Rs(/^host$/i,this._options.headers),p=Ps(this._currentUrl),y=s||p.host,v=/^\w+:/.test(o)?this._currentUrl:Ri.format(Object.assign(p,{host:y})),m=wu(o,v);if(zc("redirecting to",m.href),this._isRedirect=!0,zs(m,this._options),(m.protocol!==p.protocol&&m.protocol!=="https:"||m.host!==y&&!Eu(m.host,y))&&Rs(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Jr(i)){var N={headers:t.headers,statusCode:e},b={url:v,method:r,headers:n};i(this._options,N,b),this._sanitizeOptions(this._options)}this._performRequest()};function Oc(t){var e={maxRedirects:21,maxBodyLength:10485760},o={};return Object.keys(t).forEach(function(n){var i=n+":",r=o[i]=t[n],s=e[n]=Object.create(r);function p(v,m,N){return Du(v)?v=zs(v):$r(v)?v=zs(Ps(v)):(N=m,m=Ac(v),v={protocol:i}),Jr(m)&&(N=m,m=null),m=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},v,m),m.nativeProtocols=o,!$r(m.host)&&!$r(m.hostname)&&(m.hostname="::1"),xs.equal(m.protocol,i,"protocol mismatch"),zc("options",m),new ut(m,N)}a(p,"request");function y(v,m,N){var b=s.request(v,m,N);return b.end(),b}a(y,"get"),Object.defineProperties(s,{request:{value:p,configurable:!0,enumerable:!0,writable:!0},get:{value:y,configurable:!0,enumerable:!0,writable:!0}})}),e}a(Oc,"wrap");function xc(){}a(xc,"noop");function Ps(t){var e;if(As)e=new bi(t);else if(e=Ac(Ri.parse(t)),!$r(e.protocol))throw new Fs({input:t});return e}a(Ps,"parseUrl");function wu(t,e){return As?new bi(t,e):Ps(Ri.resolve(e,t))}a(wu,"resolveUrl");function Ac(t){if(/^\[/.test(t.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(t.hostname))throw new Fs({input:t.href||t});if(/^\[/.test(t.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(t.host))throw new Fs({input:t.href||t});return t}a(Ac,"validateUrl");function zs(t,e){var o=e||{};for(var n of Iu)o[n]=t[n];return o.hostname.startsWith("[")&&(o.hostname=o.hostname.slice(1,-1)),o.port!==""&&(o.port=Number(o.port)),o.path=o.search?o.pathname+o.search:o.pathname,o}a(zs,"spreadUrlObject");function Rs(t,e){var o;for(var n in e)t.test(n)&&(o=e[n],delete e[n]);return o===null||typeof o>"u"?void 0:String(o).trim()}a(Rs,"removeMatchingHeaders");function Fi(t,e,o){function n(i){Jr(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=t,this.message=this.cause?e+": "+this.cause.message:e}return a(n,"CustomError"),n.prototype=new(o||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+t+"]",enumerable:!1}}),n}a(Fi,"createErrorType");function Ds(t,e){for(var o of ws)t.removeListener(o,Es[o]);t.on("error",xc),t.destroy(e)}a(Ds,"destroyRequest");function Eu(t,e){xs($r(t)&&$r(e));var o=t.length-e.length-1;return o>0&&t[o]==="."&&t.endsWith(e)}a(Eu,"isSubdomain");function $r(t){return typeof t=="string"||t instanceof String}a($r,"isString");function Jr(t){return typeof t=="function"}a(Jr,"isFunction");function Pu(t){return typeof t=="object"&&"length"in t}a(Pu,"isBuffer");function Du(t){return bi&&t instanceof bi}a(Du,"isURL");js.exports=Oc({http:Ru,https:Fu});js.exports.wrap=Oc});var St=(function(t){return t.Normal="1",t.EPEC="4",t.SVCAN="6",t.SVCRS="7",t.OFFLINE="9",t})({});var gd={PL_009_V4:"PL_009_V4",PL_010_V1:"PL_010_V1",PL_010_V1_21:"PL_010_V1.21"},Zp=process.env.NFETS_NFE_SCHEMAS_DIR??"",kp=gd;var ki=class{static{a(this,"AccessKeyBuilder")}compile(e){let o=e.cUF.toString().padStart(2,"0"),n=e.year.toString().padStart(2,"0"),i=e.month.toString().padStart(2,"0"),r=(e.identification??"").padStart(14,"0"),s=e.mod.toString().padStart(2,"0"),p=e.serie.toString().padStart(3,"0"),y=e.nNF.toString().padStart(9,"0"),v=e.tpEmis.toString().padStart(1,"0"),m=(e.cNF??this.code()).toString().padStart(8,"0"),N=`${o}${n}${i}${r}${s}${p}${y}${v}${m}`;return`${N}${this.verifyingDigit(N)}`}decompile(e){if(e.length!==44)return;let n=/^([0-9]{2})([0-9]{2})([0-9]{2})([0-9]{14})([0-9]{2})([0-9]{3})([0-9]{9})([0-9]{1})([0-9]{8})([0-9]{1})$/.exec(e);if(!n)return;let[i,r,s,p,y,v,m,N,b,I,h]=n;return{cUF:r,year:s,month:p,identification:y,mod:v,serie:m,nNF:N,tpEmis:b,cNF:I,vd:h}}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 o=[2,3,4,5,6,7,8,9],n=42,i=0;for(;n>=0;)for(let s=0;s<8&&n>=0;s++){let p=parseInt(e[n]);i+=p*o[s],n--}let r=11-i%11;return r>9?0:r}};var ea=class{static{a(this,"DefaultDetBuilderAggregator")}builder;constructor(e){this.builder=e}prod(e){let o=uo.from(0);this.builder.increment(({ICMSTot:n})=>({ICMSTot:{vProd:uo.newOrZero(n?.vProd).add(e.vProd).toFixed(2),vFrete:uo.newOrZero(n?.vFrete).add(e.vFrete??o).toFixed(2),vSeg:uo.newOrZero(n?.vSeg).add(e.vSeg??o).toFixed(2),vDesc:uo.newOrZero(n?.vDesc).add(e.vDesc??o).toFixed(2),vOutro:uo.newOrZero(n?.vOutro).add(e.vOutro??o).toFixed(2)}}))}icms(e){}};var ta=class{static{a(this,"DefaultTotalBuilderAggregator")}builder;constructor(e){this.builder=e}aggregate(){let e=uo.from(0);this.builder.increment(({ICMSTot:o,ISSQNtot:n})=>({ICMSTot:{vNF:uo.newOrZero(o?.vProd).sub(o?.vDesc??e).sub(o?.vICMSDeson??e).add(o?.vST??e).add(o?.vFCPST??e).add(o?.vFrete??e).add(o?.vSeg??e).add(o?.vOutro??e).add(o?.vII??e).add(o?.vIPI??e).add(o?.vIPIDevol??e).add(n?.vServ??e).toFixed(2)}}))}};function mi(t,e){return a(function(){return t.apply(e,arguments)},"wrap")}a(mi,"bind");var{toString:hd}=Object.prototype,{getPrototypeOf:ds}=Object,{iterator:ra,toStringTag:tc}=Symbol,na=(t=>e=>{let o=hd.call(e);return t[o]||(t[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),_t=a(t=>(t=t.toLowerCase(),e=>na(e)===t),"kindOfTest"),ia=a(t=>e=>typeof e===t,"typeOfTest"),{isArray:Fn}=Array,Rn=ia("undefined");function vi(t){return t!==null&&!Rn(t)&&t.constructor!==null&&!Rn(t.constructor)&&dt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}a(vi,"isBuffer");var oc=_t("ArrayBuffer");function Sd(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&oc(t.buffer),e}a(Sd,"isArrayBufferView");var Nd=ia("string"),dt=ia("function"),rc=ia("number"),yi=a(t=>t!==null&&typeof t=="object","isObject"),Cd=a(t=>t===!0||t===!1,"isBoolean"),oa=a(t=>{if(na(t)!=="object")return!1;let e=ds(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(tc in t)&&!(ra in t)},"isPlainObject"),bd=a(t=>{if(!yi(t)||vi(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},"isEmptyObject"),Rd=_t("Date"),Fd=_t("File"),Id=_t("Blob"),zd=_t("FileList"),Od=a(t=>yi(t)&&dt(t.pipe),"isStream"),xd=a(t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||dt(t.append)&&((e=na(t))==="formdata"||e==="object"&&dt(t.toString)&&t.toString()==="[object FormData]"))},"isFormData"),Ad=_t("URLSearchParams"),[wd,Ed,Pd,Dd]=["ReadableStream","Request","Response","Headers"].map(_t),jd=a(t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function gi(t,e,{allOwnKeys:o=!1}={}){if(t===null||typeof t>"u")return;let n,i;if(typeof t!="object"&&(t=[t]),Fn(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(vi(t))return;let r=o?Object.getOwnPropertyNames(t):Object.keys(t),s=r.length,p;for(n=0;n<s;n++)p=r[n],e.call(null,t[p],p,t)}}a(gi,"forEach");function nc(t,e){if(vi(t))return null;e=e.toLowerCase();let o=Object.keys(t),n=o.length,i;for(;n-- >0;)if(i=o[n],e===i.toLowerCase())return i;return null}a(nc,"findKey");var qr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ic=a(t=>!Rn(t)&&t!==qr,"isContextDefined");function fs(){let{caseless:t,skipUndefined:e}=ic(this)&&this||{},o={},n=a((i,r)=>{let s=t&&nc(o,r)||r;oa(o[s])&&oa(i)?o[s]=fs(o[s],i):oa(i)?o[s]=fs({},i):Fn(i)?o[s]=i.slice():(!e||!Rn(i))&&(o[s]=i)},"assignValue");for(let i=0,r=arguments.length;i<r;i++)arguments[i]&&gi(arguments[i],n);return o}a(fs,"merge");var Td=a((t,e,o,{allOwnKeys:n}={})=>(gi(e,(i,r)=>{o&&dt(i)?t[r]=mi(i,o):t[r]=i},{allOwnKeys:n}),t),"extend"),_d=a(t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),"stripBOM"),Vd=a((t,e,o,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),o&&Object.assign(t.prototype,o)},"inherits"),Md=a((t,e,o,n)=>{let i,r,s,p={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),r=i.length;r-- >0;)s=i[r],(!n||n(s,t,e))&&!p[s]&&(e[s]=t[s],p[s]=!0);t=o!==!1&&ds(t)}while(t&&(!o||o(t,e))&&t!==Object.prototype);return e},"toFlatObject"),Ld=a((t,e,o)=>{t=String(t),(o===void 0||o>t.length)&&(o=t.length),o-=e.length;let n=t.indexOf(e,o);return n!==-1&&n===o},"endsWith"),Bd=a(t=>{if(!t)return null;if(Fn(t))return t;let e=t.length;if(!rc(e))return null;let o=new Array(e);for(;e-- >0;)o[e]=t[e];return o},"toArray"),Ud=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&ds(Uint8Array)),qd=a((t,e)=>{let n=(t&&t[ra]).call(t),i;for(;(i=n.next())&&!i.done;){let r=i.value;e.call(t,r[0],r[1])}},"forEachEntry"),Qd=a((t,e)=>{let o,n=[];for(;(o=t.exec(e))!==null;)n.push(o);return n},"matchAll"),Hd=_t("HTMLFormElement"),$d=a(t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,a(function(o,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),ec=(({hasOwnProperty:t})=>(e,o)=>t.call(e,o))(Object.prototype),Jd=_t("RegExp"),ac=a((t,e)=>{let o=Object.getOwnPropertyDescriptors(t),n={};gi(o,(i,r)=>{let s;(s=e(i,r,t))!==!1&&(n[r]=s||i)}),Object.defineProperties(t,n)},"reduceDescriptors"),Gd=a(t=>{ac(t,(e,o)=>{if(dt(t)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;let n=t[o];if(dt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},"freezeMethods"),Wd=a((t,e)=>{let o={},n=a(i=>{i.forEach(r=>{o[r]=!0})},"define");return Fn(t)?n(t):n(String(t).split(e)),o},"toObjectSet"),Yd=a(()=>{},"noop"),Xd=a((t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,"toFiniteNumber");function Kd(t){return!!(t&&dt(t.append)&&t[tc]==="FormData"&&t[ra])}a(Kd,"isSpecCompliantForm");var Zd=a(t=>{let e=new Array(10),o=a((n,i)=>{if(yi(n)){if(e.indexOf(n)>=0)return;if(vi(n))return n;if(!("toJSON"in n)){e[i]=n;let r=Fn(n)?[]:{};return gi(n,(s,p)=>{let y=o(s,i+1);!Rn(y)&&(r[p]=y)}),e[i]=void 0,r}}return n},"visit");return o(t,0)},"toJSONObject"),kd=_t("AsyncFunction"),eu=a(t=>t&&(yi(t)||dt(t))&&dt(t.then)&&dt(t.catch),"isThenable"),sc=((t,e)=>t?setImmediate:e?((o,n)=>(qr.addEventListener("message",({source:i,data:r})=>{i===qr&&r===o&&n.length&&n.shift()()},!1),i=>{n.push(i),qr.postMessage(o,"*")}))(`axios@${Math.random()}`,[]):o=>setTimeout(o))(typeof setImmediate=="function",dt(qr.postMessage)),tu=typeof queueMicrotask<"u"?queueMicrotask.bind(qr):typeof process<"u"&&process.nextTick||sc,ou=a(t=>t!=null&&dt(t[ra]),"isIterable"),c={isArray:Fn,isArrayBuffer:oc,isBuffer:vi,isFormData:xd,isArrayBufferView:Sd,isString:Nd,isNumber:rc,isBoolean:Cd,isObject:yi,isPlainObject:oa,isEmptyObject:bd,isReadableStream:wd,isRequest:Ed,isResponse:Pd,isHeaders:Dd,isUndefined:Rn,isDate:Rd,isFile:Fd,isBlob:Id,isRegExp:Jd,isFunction:dt,isStream:Od,isURLSearchParams:Ad,isTypedArray:Ud,isFileList:zd,forEach:gi,merge:fs,extend:Td,trim:jd,stripBOM:_d,inherits:Vd,toFlatObject:Md,kindOf:na,kindOfTest:_t,endsWith:Ld,toArray:Bd,forEachEntry:qd,matchAll:Qd,isHTMLForm:Hd,hasOwnProperty:ec,hasOwnProp:ec,reduceDescriptors:ac,freezeMethods:Gd,toObjectSet:Wd,toCamelCase:$d,noop:Yd,toFiniteNumber:Xd,findKey:nc,global:qr,isContextDefined:ic,isSpecCompliantForm:Kd,toJSONObject:Zd,isAsyncFn:kd,isThenable:eu,setImmediate:sc,asap:tu,isIterable:ou};function In(t,e,o,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),o&&(this.config=o),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}a(In,"AxiosError");c.inherits(In,Error,{toJSON:a(function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:c.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var pc=In.prototype,cc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{cc[t]={value:t}});Object.defineProperties(In,cc);Object.defineProperty(pc,"isAxiosError",{value:!0});In.from=(t,e,o,n,i,r)=>{let s=Object.create(pc);c.toFlatObject(t,s,a(function(m){return m!==Error.prototype},"filter"),v=>v!=="isAxiosError");let p=t&&t.message?t.message:"Error",y=e==null&&t?t.code:e;return In.call(s,p,y,o,n,i),t&&s.cause==null&&Object.defineProperty(s,"cause",{value:t,configurable:!0}),s.name=t&&t.name||"Error",r&&Object.assign(s,r),s};var R=In;var fc=cs(vd(),1),aa=fc.default;function us(t){return c.isPlainObject(t)||c.isArray(t)}a(us,"isVisitable");function uc(t){return c.endsWith(t,"[]")?t.slice(0,-2):t}a(uc,"removeBrackets");function dc(t,e,o){return t?t.concat(e).map(a(function(i,r){return i=uc(i),!o&&r?"["+i+"]":i},"each")).join(o?".":""):e}a(dc,"renderKey");function ru(t){return c.isArray(t)&&!t.some(us)}a(ru,"isFlatArray");var nu=c.toFlatObject(c,{},null,a(function(e){return/^is[A-Z]/.test(e)},"filter"));function iu(t,e,o){if(!c.isObject(t))throw new TypeError("target must be an object");e=e||new(aa||FormData),o=c.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,a(function(F,C){return!c.isUndefined(C[F])},"defined"));let n=o.metaTokens,i=o.visitor||m,r=o.dots,s=o.indexes,y=(o.Blob||typeof Blob<"u"&&Blob)&&c.isSpecCompliantForm(e);if(!c.isFunction(i))throw new TypeError("visitor must be a function");function v(h){if(h===null)return"";if(c.isDate(h))return h.toISOString();if(c.isBoolean(h))return h.toString();if(!y&&c.isBlob(h))throw new R("Blob is not supported. Use a Buffer instead.");return c.isArrayBuffer(h)||c.isTypedArray(h)?y&&typeof Blob=="function"?new Blob([h]):Buffer.from(h):h}a(v,"convertValue");function m(h,F,C){let Q=h;if(h&&!C&&typeof h=="object"){if(c.endsWith(F,"{}"))F=n?F:F.slice(0,-2),h=JSON.stringify(h);else if(c.isArray(h)&&ru(h)||(c.isFileList(h)||c.endsWith(F,"[]"))&&(Q=c.toArray(h)))return F=uc(F),Q.forEach(a(function(B,le){!(c.isUndefined(B)||B===null)&&e.append(s===!0?dc([F],le,r):s===null?F:F+"[]",v(B))},"each")),!1}return us(h)?!0:(e.append(dc(C,F,r),v(h)),!1)}a(m,"defaultVisitor");let N=[],b=Object.assign(nu,{defaultVisitor:m,convertValue:v,isVisitable:us});function I(h,F){if(!c.isUndefined(h)){if(N.indexOf(h)!==-1)throw Error("Circular reference detected in "+F.join("."));N.push(h),c.forEach(h,a(function(Q,Y){(!(c.isUndefined(Q)||Q===null)&&i.call(e,Q,c.isString(Y)?Y.trim():Y,F,b))===!0&&I(Q,F?F.concat(Y):[Y])},"each")),N.pop()}}if(a(I,"build"),!c.isObject(t))throw new TypeError("data must be an object");return I(t),e}a(iu,"toFormData");var Ir=iu;function lc(t){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,a(function(n){return e[n]},"replacer"))}a(lc,"encode");function mc(t,e){this._pairs=[],t&&Ir(t,this,e)}a(mc,"AxiosURLSearchParams");var vc=mc.prototype;vc.append=a(function(e,o){this._pairs.push([e,o])},"append");vc.toString=a(function(e){let o=e?function(n){return e.call(this,n,lc)}:lc;return this._pairs.map(a(function(i){return o(i[0])+"="+o(i[1])},"each"),"").join("&")},"toString");var yc=mc;function au(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}a(au,"encode");function Qr(t,e,o){if(!e)return t;let n=o&&o.encode||au;c.isFunction(o)&&(o={serialize:o});let i=o&&o.serialize,r;if(i?r=i(e,o):r=c.isURLSearchParams(e)?e.toString():new yc(e,o).toString(n),r){let s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}a(Qr,"buildURL");var su=class{static{a(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,o,n){return this.handlers.push({fulfilled:e,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){c.forEach(this.handlers,a(function(n){n!==null&&e(n)},"forEachHandler"))}},ls=su;var zn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1};import cu from"crypto";import pu from"url";var gc=pu.URLSearchParams;var ms="abcdefghijklmnopqrstuvwxyz",hc="0123456789",Sc={DIGIT:hc,ALPHA:ms,ALPHA_DIGIT:ms+ms.toUpperCase()+hc},fu=a((t=16,e=Sc.ALPHA_DIGIT)=>{let o="",{length:n}=e,i=new Uint32Array(t);cu.randomFillSync(i);for(let r=0;r<t;r++)o+=e[i[r]%n];return o},"generateString"),Nc={isNode:!0,classes:{URLSearchParams:gc,FormData:aa,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:Sc,generateString:fu,protocols:["http","https","file","data"]};var gs={};ld(gs,{hasBrowserEnv:()=>ys,hasStandardBrowserEnv:()=>du,hasStandardBrowserWebWorkerEnv:()=>uu,navigator:()=>vs,origin:()=>lu});var ys=typeof window<"u"&&typeof document<"u",vs=typeof navigator=="object"&&navigator||void 0,du=ys&&(!vs||["ReactNative","NativeScript","NS"].indexOf(vs.product)<0),uu=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",lu=ys&&window.location.href||"http://localhost";var U={...gs,...Nc};function hs(t,e){return Ir(t,new U.classes.URLSearchParams,{visitor:a(function(o,n,i,r){return U.isNode&&c.isBuffer(o)?(this.append(n,o.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},"visitor"),...e})}a(hs,"toURLEncodedForm");function mu(t){return c.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}a(mu,"parsePropPath");function vu(t){let e={},o=Object.keys(t),n,i=o.length,r;for(n=0;n<i;n++)r=o[n],e[r]=t[r];return e}a(vu,"arrayToObject");function yu(t){function e(o,n,i,r){let s=o[r++];if(s==="__proto__")return!0;let p=Number.isFinite(+s),y=r>=o.length;return s=!s&&c.isArray(i)?i.length:s,y?(c.hasOwnProp(i,s)?i[s]=[i[s],n]:i[s]=n,!p):((!i[s]||!c.isObject(i[s]))&&(i[s]=[]),e(o,n,i[s],r)&&c.isArray(i[s])&&(i[s]=vu(i[s])),!p)}if(a(e,"buildPath"),c.isFormData(t)&&c.isFunction(t.entries)){let o={};return c.forEachEntry(t,(n,i)=>{e(mu(n),i,o,0)}),o}return null}a(yu,"formDataToJSON");var sa=yu;function gu(t,e,o){if(c.isString(t))try{return(e||JSON.parse)(t),c.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(t)}a(gu,"stringifySafely");var Ss={transitional:zn,adapter:["xhr","http","fetch"],transformRequest:[a(function(e,o){let n=o.getContentType()||"",i=n.indexOf("application/json")>-1,r=c.isObject(e);if(r&&c.isHTMLForm(e)&&(e=new FormData(e)),c.isFormData(e))return i?JSON.stringify(sa(e)):e;if(c.isArrayBuffer(e)||c.isBuffer(e)||c.isStream(e)||c.isFile(e)||c.isBlob(e)||c.isReadableStream(e))return e;if(c.isArrayBufferView(e))return e.buffer;if(c.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let p;if(r){if(n.indexOf("application/x-www-form-urlencoded")>-1)return hs(e,this.formSerializer).toString();if((p=c.isFileList(e))||n.indexOf("multipart/form-data")>-1){let y=this.env&&this.env.FormData;return Ir(p?{"files[]":e}:e,y&&new y,this.formSerializer)}}return r||i?(o.setContentType("application/json",!1),gu(e)):e},"transformRequest")],transformResponse:[a(function(e){let o=this.transitional||Ss.transitional,n=o&&o.forcedJSONParsing,i=this.responseType==="json";if(c.isResponse(e)||c.isReadableStream(e))return e;if(e&&c.isString(e)&&(n&&!this.responseType||i)){let s=!(o&&o.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(p){if(s)throw p.name==="SyntaxError"?R.from(p,R.ERR_BAD_RESPONSE,this,null,this.response):p}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:U.classes.FormData,Blob:U.classes.Blob},validateStatus:a(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};c.forEach(["delete","get","head","post","put","patch"],t=>{Ss.headers[t]={}});var On=Ss;var hu=c.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Cc=a((t=>{let e={},o,n,i;return t&&t.split(`
3
- `).forEach(a(function(s){i=s.indexOf(":"),o=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!o||e[o]&&hu[o])&&(o==="set-cookie"?e[o]?e[o].push(n):e[o]=[n]:e[o]=e[o]?e[o]+", "+n:n)},"parser")),e}),"default");var bc=Symbol("internals");function hi(t){return t&&String(t).trim().toLowerCase()}a(hi,"normalizeHeader");function pa(t){return t===!1||t==null?t:c.isArray(t)?t.map(pa):String(t)}a(pa,"normalizeValue");function Su(t){let e=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=o.exec(t);)e[n[1]]=n[2];return e}a(Su,"parseTokens");var Nu=a(t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim()),"isValidHeaderName");function Ns(t,e,o,n,i){if(c.isFunction(n))return n.call(this,e,o);if(i&&(e=o),!!c.isString(e)){if(c.isString(n))return e.indexOf(n)!==-1;if(c.isRegExp(n))return n.test(e)}}a(Ns,"matchHeaderValue");function Cu(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,o,n)=>o.toUpperCase()+n)}a(Cu,"formatHeader");function bu(t,e){let o=c.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+o,{value:a(function(i,r,s){return this[n].call(this,e,i,r,s)},"value"),configurable:!0})})}a(bu,"buildAccessors");var ca=class{static{a(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,o,n){let i=this;function r(p,y,v){let m=hi(y);if(!m)throw new Error("header name must be a non-empty string");let N=c.findKey(i,m);(!N||i[N]===void 0||v===!0||v===void 0&&i[N]!==!1)&&(i[N||y]=pa(p))}a(r,"setHeader");let s=a((p,y)=>c.forEach(p,(v,m)=>r(v,m,y)),"setHeaders");if(c.isPlainObject(e)||e instanceof this.constructor)s(e,o);else if(c.isString(e)&&(e=e.trim())&&!Nu(e))s(Cc(e),o);else if(c.isObject(e)&&c.isIterable(e)){let p={},y,v;for(let m of e){if(!c.isArray(m))throw TypeError("Object iterator must return a key-value pair");p[v=m[0]]=(y=p[v])?c.isArray(y)?[...y,m[1]]:[y,m[1]]:m[1]}s(p,o)}else e!=null&&r(o,e,n);return this}get(e,o){if(e=hi(e),e){let n=c.findKey(this,e);if(n){let i=this[n];if(!o)return i;if(o===!0)return Su(i);if(c.isFunction(o))return o.call(this,i,n);if(c.isRegExp(o))return o.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,o){if(e=hi(e),e){let n=c.findKey(this,e);return!!(n&&this[n]!==void 0&&(!o||Ns(this,this[n],n,o)))}return!1}delete(e,o){let n=this,i=!1;function r(s){if(s=hi(s),s){let p=c.findKey(n,s);p&&(!o||Ns(n,n[p],p,o))&&(delete n[p],i=!0)}}return a(r,"deleteHeader"),c.isArray(e)?e.forEach(r):r(e),i}clear(e){let o=Object.keys(this),n=o.length,i=!1;for(;n--;){let r=o[n];(!e||Ns(this,this[r],r,e,!0))&&(delete this[r],i=!0)}return i}normalize(e){let o=this,n={};return c.forEach(this,(i,r)=>{let s=c.findKey(n,r);if(s){o[s]=pa(i),delete o[r];return}let p=e?Cu(r):String(r).trim();p!==r&&delete o[r],o[p]=pa(i),n[p]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let o=Object.create(null);return c.forEach(this,(n,i)=>{n!=null&&n!==!1&&(o[i]=e&&c.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,o])=>e+": "+o).join(`
4
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...o){let n=new this(e);return o.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[bc]=this[bc]={accessors:{}}).accessors,i=this.prototype;function r(s){let p=hi(s);n[p]||(bu(i,s),n[p]=!0)}return a(r,"defineAccessor"),c.isArray(e)?e.forEach(r):r(e),this}};ca.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);c.reduceDescriptors(ca.prototype,({value:t},e)=>{let o=e[0].toUpperCase()+e.slice(1);return{get:a(()=>t,"get"),set(n){this[o]=n}}});c.freezeMethods(ca);var ce=ca;function Si(t,e){let o=this||On,n=e||o,i=ce.from(n.headers),r=n.data;return c.forEach(t,a(function(p){r=p.call(o,r,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),r}a(Si,"transformData");function Ni(t){return!!(t&&t.__CANCEL__)}a(Ni,"isCancel");function Rc(t,e,o){R.call(this,t??"canceled",R.ERR_CANCELED,e,o),this.name="CanceledError"}a(Rc,"CanceledError");c.inherits(Rc,R,{__CANCEL__:!0});var Nt=Rc;function lo(t,e,o){let n=o.config.validateStatus;!o.status||!n||n(o.status)?t(o):e(new R("Request failed with status code "+o.status,[R.ERR_BAD_REQUEST,R.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}a(lo,"settle");function Cs(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}a(Cs,"isAbsoluteURL");function bs(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}a(bs,"combineURLs");function Hr(t,e,o){let n=!Cs(e);return t&&(n||o==!1)?bs(t,e):e}a(Hr,"buildFullPath");var qc=cs(yd(),1),$c=cs(wc(),1);import Xu from"http";import Ku from"https";import Qc from"http2";import Hc from"util";import Or from"zlib";var Gr="1.13.2";function Ii(t){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}a(Ii,"parseProtocol");var ju=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function Ts(t,e,o){let n=o&&o.Blob||U.classes.Blob,i=Ii(t);if(e===void 0&&n&&(e=!0),i==="data"){t=i.length?t.slice(i.length+1):t;let r=ju.exec(t);if(!r)throw new R("Invalid URL",R.ERR_INVALID_URL);let s=r[1],p=r[2],y=r[3],v=Buffer.from(decodeURIComponent(y),p?"base64":"utf8");if(e){if(!n)throw new R("Blob is not supported",R.ERR_NOT_SUPPORT);return new n([v],{type:s})}return v}throw new R("Unsupported protocol "+i,R.ERR_NOT_SUPPORT)}a(Ts,"fromDataURI");import zr from"stream";import Tu from"stream";var _s=Symbol("internals"),_u=class extends Tu.Transform{static{a(this,"AxiosTransformStream")}constructor(e){e=c.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!c.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let o=this[_s]={timeWindow:e.timeWindow,chunkSize:e.chunkSize,maxRate:e.maxRate,minChunkSize:e.minChunkSize,bytesSeen:0,isCaptured:!1,notifiedBytesLoaded:0,ts:Date.now(),bytes:0,onReadCallback:null};this.on("newListener",n=>{n==="progress"&&(o.isCaptured||(o.isCaptured=!0))})}_read(e){let o=this[_s];return o.onReadCallback&&o.onReadCallback(),super._read(e)}_transform(e,o,n){let i=this[_s],r=i.maxRate,s=this.readableHighWaterMark,p=i.timeWindow,y=1e3/p,v=r/y,m=i.minChunkSize!==!1?Math.max(i.minChunkSize,v*.01):0,N=a((I,h)=>{let F=Buffer.byteLength(I);i.bytesSeen+=F,i.bytes+=F,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(I)?process.nextTick(h):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(h)}},"pushChunk"),b=a((I,h)=>{let F=Buffer.byteLength(I),C=null,Q=s,Y,B=0;if(r){let le=Date.now();(!i.ts||(B=le-i.ts)>=p)&&(i.ts=le,Y=v-i.bytes,i.bytes=Y<0?-Y:0,B=0),Y=v-i.bytes}if(r){if(Y<=0)return setTimeout(()=>{h(null,I)},p-B);Y<Q&&(Q=Y)}Q&&F>Q&&F-Q>m&&(C=I.subarray(Q),I=I.subarray(0,Q)),N(I,C?()=>{process.nextTick(h,null,C)}:h)},"transformChunk");b(e,a(function I(h,F){if(h)return n(h);F?b(F,I):n(null)},"transformNextChunk"))}},Vs=_u;import{EventEmitter as Zu}from"events";import Mu from"util";import{Readable as Lu}from"stream";var{asyncIterator:Ec}=Symbol,Vu=a(async function*(t){t.stream?yield*t.stream():t.arrayBuffer?yield await t.arrayBuffer():t[Ec]?yield*t[Ec]():yield t},"readBlob"),fa=Vu;var Bu=U.ALPHABET.ALPHA_DIGIT+"-_",zi=typeof TextEncoder=="function"?new TextEncoder:new Mu.TextEncoder,Wr=`\r
5
- `,Uu=zi.encode(Wr),qu=2,Qu=class{static{a(this,"FormDataPart")}constructor(e,o){let{escapeName:n}=this.constructor,i=c.isString(o),r=`Content-Disposition: form-data; name="${n(e)}"${!i&&o.name?`; filename="${n(o.name)}"`:""}${Wr}`;i?o=zi.encode(String(o).replace(/\r?\n|\r\n?/g,Wr)):r+=`Content-Type: ${o.type||"application/octet-stream"}${Wr}`,this.headers=zi.encode(r+Wr),this.contentLength=i?o.byteLength:o.size,this.size=this.headers.byteLength+this.contentLength+qu,this.name=e,this.value=o}async*encode(){yield this.headers;let{value:e}=this;c.isTypedArray(e)?yield e:yield*fa(e),yield Uu}static escapeName(e){return String(e).replace(/[\r\n"]/g,o=>({"\r":"%0D","\n":"%0A",'"':"%22"})[o])}},Hu=a((t,e,o)=>{let{tag:n="form-data-boundary",size:i=25,boundary:r=n+"-"+U.generateString(i,Bu)}=o||{};if(!c.isFormData(t))throw TypeError("FormData instance required");if(r.length<1||r.length>70)throw Error("boundary must be 10-70 characters long");let s=zi.encode("--"+r+Wr),p=zi.encode("--"+r+"--"+Wr),y=p.byteLength,v=Array.from(t.entries()).map(([N,b])=>{let I=new Qu(N,b);return y+=I.size,I});y+=s.byteLength*v.length,y=c.toFiniteNumber(y);let m={"Content-Type":`multipart/form-data; boundary=${r}`};return Number.isFinite(y)&&(m["Content-Length"]=y),e&&e(m),Lu.from((async function*(){for(let N of v)yield s,yield*N.encode();yield p})())},"formDataToStream"),Pc=Hu;import $u from"stream";var Ju=class extends $u.Transform{static{a(this,"ZlibHeaderTransformStream")}__transform(e,o,n){this.push(e),n()}_transform(e,o,n){if(e.length!==0&&(this._transform=this.__transform,e[0]!==120)){let i=Buffer.alloc(2);i[0]=120,i[1]=156,this.push(i,o)}this.__transform(e,o,n)}},Dc=Ju;var Gu=a((t,e)=>c.isAsyncFn(t)?function(...o){let n=o.pop();t.apply(this,o).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(r){n(r)}},n)}:t,"callbackify"),jc=Gu;function Wu(t,e){t=t||10;let o=new Array(t),n=new Array(t),i=0,r=0,s;return e=e!==void 0?e:1e3,a(function(y){let v=Date.now(),m=n[r];s||(s=v),o[i]=y,n[i]=v;let N=r,b=0;for(;N!==i;)b+=o[N++],N=N%t;if(i=(i+1)%t,i===r&&(r=(r+1)%t),v-s<e)return;let I=m&&v-m;return I?Math.round(b*1e3/I):void 0},"push")}a(Wu,"speedometer");var Tc=Wu;function Yu(t,e){let o=0,n=1e3/e,i,r,s=a((v,m=Date.now())=>{o=m,i=null,r&&(clearTimeout(r),r=null),t(...v)},"invoke");return[a((...v)=>{let m=Date.now(),N=m-o;N>=n?s(v,m):(i=v,r||(r=setTimeout(()=>{r=null,s(i)},n-N)))},"throttled"),a(()=>i&&s(i),"flush")]}a(Yu,"throttle");var _c=Yu;var jo=a((t,e,o=3)=>{let n=0,i=Tc(50,250);return _c(r=>{let s=r.loaded,p=r.lengthComputable?r.total:void 0,y=s-n,v=i(y),m=s<=p;n=s;let N={loaded:s,total:p,progress:p?s/p:void 0,bytes:y,rate:v||void 0,estimated:v&&p&&m?(p-s)/v:void 0,event:r,lengthComputable:p!=null,[e?"download":"upload"]:!0};t(N)},o)},"progressEventReducer"),xn=a((t,e)=>{let o=t!=null;return[n=>e[0]({lengthComputable:o,total:t,loaded:n}),e[1]]},"progressEventDecorator"),An=a(t=>(...e)=>c.asap(()=>t(...e)),"asyncDecorator");function Ms(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;let e=t.indexOf(",");if(e<0)return 0;let o=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(o)){let r=n.length,s=n.length;for(let b=0;b<s;b++)if(n.charCodeAt(b)===37&&b+2<s){let I=n.charCodeAt(b+1),h=n.charCodeAt(b+2);(I>=48&&I<=57||I>=65&&I<=70||I>=97&&I<=102)&&(h>=48&&h<=57||h>=65&&h<=70||h>=97&&h<=102)&&(r-=2,b+=2)}let p=0,y=s-1,v=a(b=>b>=2&&n.charCodeAt(b-2)===37&&n.charCodeAt(b-1)===51&&(n.charCodeAt(b)===68||n.charCodeAt(b)===100),"tailIsPct3D");y>=0&&(n.charCodeAt(y)===61?(p++,y--):v(y)&&(p++,y-=3)),p===1&&y>=0&&(n.charCodeAt(y)===61||v(y))&&p++;let N=Math.floor(r/4)*3-(p||0);return N>0?N:0}return Buffer.byteLength(n,"utf8")}a(Ms,"estimateDataURLDecodedBytes");var Vc={flush:Or.constants.Z_SYNC_FLUSH,finishFlush:Or.constants.Z_SYNC_FLUSH},ku={flush:Or.constants.BROTLI_OPERATION_FLUSH,finishFlush:Or.constants.BROTLI_OPERATION_FLUSH},Mc=c.isFunction(Or.createBrotliDecompress),{http:el,https:tl}=$c.default,ol=/https:?/,Lc=U.protocols.map(t=>t+":"),Bc=a((t,[e,o])=>(t.on("end",o).on("error",o),e),"flushOnFinish"),rl=class{static{a(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,o){o=Object.assign({sessionTimeout:1e3},o);let n=this.sessions[e];if(n){let m=n.length;for(let N=0;N<m;N++){let[b,I]=n[N];if(!b.destroyed&&!b.closed&&Hc.isDeepStrictEqual(I,o))return b}}let i=Qc.connect(e,o),r,s=a(()=>{if(r)return;r=!0;let m=n,N=m.length,b=N;for(;b--;)if(m[b][0]===i){N===1?delete this.sessions[e]:m.splice(b,1);return}},"removeSession"),p=i.request,{sessionTimeout:y}=o;if(y!=null){let m,N=0;i.request=function(){let b=p.apply(this,arguments);return N++,m&&(clearTimeout(m),m=null),b.once("close",()=>{--N||(m=setTimeout(()=>{m=null,s()},y))}),b}}i.once("close",s);let v=[i,o];return n?n.push(v):n=this.sessions[e]=[v],i}},nl=new rl;function il(t,e){t.beforeRedirects.proxy&&t.beforeRedirects.proxy(t),t.beforeRedirects.config&&t.beforeRedirects.config(t,e)}a(il,"dispatchBeforeRedirect");function Jc(t,e,o){let n=e;if(!n&&n!==!1){let i=qc.default.getProxyForUrl(o);i&&(n=new URL(i))}if(n){if(n.username&&(n.auth=(n.username||"")+":"+(n.password||"")),n.auth){(n.auth.username||n.auth.password)&&(n.auth=(n.auth.username||"")+":"+(n.auth.password||""));let r=Buffer.from(n.auth,"utf8").toString("base64");t.headers["Proxy-Authorization"]="Basic "+r}t.headers.host=t.hostname+(t.port?":"+t.port:"");let i=n.hostname||n.host;t.hostname=i,t.host=i,t.port=n.port,t.path=o,n.protocol&&(t.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}t.beforeRedirects.proxy=a(function(r){Jc(r,e,r.href)},"beforeRedirect")}a(Jc,"setProxy");var al=typeof process<"u"&&c.kindOf(process)==="process",sl=a(t=>new Promise((e,o)=>{let n,i,r=a((y,v)=>{i||(i=!0,n&&n(y,v))},"done"),s=a(y=>{r(y),e(y)},"_resolve"),p=a(y=>{r(y,!0),o(y)},"_reject");t(s,p,y=>n=y).catch(p)}),"wrapAsync"),pl=a(({address:t,family:e})=>{if(!c.isString(t))throw TypeError("address must be a string");return{address:t,family:e||(t.indexOf(".")<0?6:4)}},"resolveFamily"),Uc=a((t,e)=>pl(c.isObject(t)?t:{address:t,family:e}),"buildAddressEntry"),cl={request(t,e){let o=t.protocol+"//"+t.hostname+":"+(t.port||80),{http2Options:n,headers:i}=t,r=nl.getSession(o,n),{HTTP2_HEADER_SCHEME:s,HTTP2_HEADER_METHOD:p,HTTP2_HEADER_PATH:y,HTTP2_HEADER_STATUS:v}=Qc.constants,m={[s]:t.protocol.replace(":",""),[p]:t.method,[y]:t.path};c.forEach(i,(b,I)=>{I.charAt(0)!==":"&&(m[I]=b)});let N=r.request(m);return N.once("response",b=>{let I=N;b=Object.assign({},b);let h=b[v];delete b[v],I.headers=b,I.statusCode=+h,e(I)}),N}},Gc=al&&a(function(e){return sl(a(async function(n,i,r){let{data:s,lookup:p,family:y,httpVersion:v=1,http2Options:m}=e,{responseType:N,responseEncoding:b}=e,I=e.method.toUpperCase(),h,F=!1,C;if(v=+v,Number.isNaN(v))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(v!==1&&v!==2)throw TypeError(`Unsupported protocol version '${v}'`);let Q=v===2;if(p){let P=jc(p,O=>c.isArray(O)?O:[O]);p=a((O,G,ht)=>{P(O,G,(ve,Tt,Rr)=>{if(ve)return ht(ve);let ft=c.isArray(Tt)?Tt.map(Ki=>Uc(Ki)):[Uc(Tt,Rr)];G.all?ht(ve,ft):ht(ve,ft[0].address,ft[0].family)})},"lookup")}let Y=new Zu;function B(P){try{Y.emit("abort",!P||P.type?new Nt(null,e,C):P)}catch(O){console.warn("emit error",O)}}a(B,"abort"),Y.once("abort",i);let le=a(()=>{e.cancelToken&&e.cancelToken.unsubscribe(B),e.signal&&e.signal.removeEventListener("abort",B),Y.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(B),e.signal&&(e.signal.aborted?B():e.signal.addEventListener("abort",B))),r((P,O)=>{if(h=!0,O){F=!0,le();return}let{data:G}=P;if(G instanceof zr.Readable||G instanceof zr.Duplex){let ht=zr.finished(G,()=>{ht(),le()})}else le()});let pt=Hr(e.baseURL,e.url,e.allowAbsoluteUrls),me=new URL(pt,U.hasBrowserEnv?U.origin:void 0),xe=me.protocol||Lc[0];if(xe==="data:"){if(e.maxContentLength>-1){let O=String(e.url||pt||"");if(Ms(O)>e.maxContentLength)return i(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e))}let P;if(I!=="GET")return lo(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{P=Ts(e.url,N==="blob",{Blob:e.env&&e.env.Blob})}catch(O){throw R.from(O,R.ERR_BAD_REQUEST,e)}return N==="text"?(P=P.toString(b),(!b||b==="utf8")&&(P=c.stripBOM(P))):N==="stream"&&(P=zr.Readable.from(P)),lo(n,i,{data:P,status:200,statusText:"OK",headers:new ce,config:e})}if(Lc.indexOf(xe)===-1)return i(new R("Unsupported protocol "+xe,R.ERR_BAD_REQUEST,e));let Ve=ce.from(e.headers).normalize();Ve.set("User-Agent","axios/"+Gr,!1);let{onUploadProgress:Cr,onDownloadProgress:Sn}=e,Ur=e.maxRate,Po,po;if(c.isSpecCompliantForm(s)){let P=Ve.getContentType(/boundary=([-_\w\d]{10,70})/i);s=Pc(s,O=>{Ve.set(O)},{tag:`axios-${Gr}-boundary`,boundary:P&&P[1]||void 0})}else if(c.isFormData(s)&&c.isFunction(s.getHeaders)){if(Ve.set(s.getHeaders()),!Ve.hasContentLength())try{let P=await Hc.promisify(s.getLength).call(s);Number.isFinite(P)&&P>=0&&Ve.setContentLength(P)}catch{}}else if(c.isBlob(s)||c.isFile(s))s.size&&Ve.setContentType(s.type||"application/octet-stream"),Ve.setContentLength(s.size||0),s=zr.Readable.from(fa(s));else if(s&&!c.isStream(s)){if(!Buffer.isBuffer(s))if(c.isArrayBuffer(s))s=Buffer.from(new Uint8Array(s));else if(c.isString(s))s=Buffer.from(s,"utf-8");else return i(new R("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",R.ERR_BAD_REQUEST,e));if(Ve.setContentLength(s.length,!1),e.maxBodyLength>-1&&s.length>e.maxBodyLength)return i(new R("Request body larger than maxBodyLength limit",R.ERR_BAD_REQUEST,e))}let Do=c.toFiniteNumber(Ve.getContentLength());c.isArray(Ur)?(Po=Ur[0],po=Ur[1]):Po=po=Ur,s&&(Cr||Po)&&(c.isStream(s)||(s=zr.Readable.from(s,{objectMode:!1})),s=zr.pipeline([s,new Vs({maxRate:c.toFiniteNumber(Po)})],c.noop),Cr&&s.on("progress",Bc(s,xn(Do,jo(An(Cr),!1,3)))));let br;if(e.auth){let P=e.auth.username||"",O=e.auth.password||"";br=P+":"+O}if(!br&&me.username){let P=me.username,O=me.password;br=P+":"+O}br&&Ve.delete("authorization");let gt;try{gt=Qr(me.pathname+me.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(P){let O=new Error(P.message);return O.config=e,O.url=e.url,O.exists=!0,i(O)}Ve.set("Accept-Encoding","gzip, compress, deflate"+(Mc?", br":""),!1);let Me={path:gt,method:I,headers:Ve.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:br,protocol:xe,family:y,beforeRedirect:il,beforeRedirects:{},http2Options:m};!c.isUndefined(p)&&(Me.lookup=p),e.socketPath?Me.socketPath=e.socketPath:(Me.hostname=me.hostname.startsWith("[")?me.hostname.slice(1,-1):me.hostname,Me.port=me.port,Jc(Me,e.proxy,xe+"//"+me.hostname+(me.port?":"+me.port:"")+Me.path));let ct,Nn=ol.test(Me.protocol);if(Me.agent=Nn?e.httpsAgent:e.httpAgent,Q?ct=cl:e.transport?ct=e.transport:e.maxRedirects===0?ct=Nn?Ku:Xu:(e.maxRedirects&&(Me.maxRedirects=e.maxRedirects),e.beforeRedirect&&(Me.beforeRedirects.config=e.beforeRedirect),ct=Nn?tl:el),e.maxBodyLength>-1?Me.maxBodyLength=e.maxBodyLength:Me.maxBodyLength=1/0,e.insecureHTTPParser&&(Me.insecureHTTPParser=e.insecureHTTPParser),C=ct.request(Me,a(function(O){if(C.destroyed)return;let G=[O],ht=c.toFiniteNumber(O.headers["content-length"]);if(Sn||po){let ft=new Vs({maxRate:c.toFiniteNumber(po)});Sn&&ft.on("progress",Bc(ft,xn(ht,jo(An(Sn),!0,3)))),G.push(ft)}let ve=O,Tt=O.req||C;if(e.decompress!==!1&&O.headers["content-encoding"])switch((I==="HEAD"||O.statusCode===204)&&delete O.headers["content-encoding"],(O.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":G.push(Or.createUnzip(Vc)),delete O.headers["content-encoding"];break;case"deflate":G.push(new Dc),G.push(Or.createUnzip(Vc)),delete O.headers["content-encoding"];break;case"br":Mc&&(G.push(Or.createBrotliDecompress(ku)),delete O.headers["content-encoding"])}ve=G.length>1?zr.pipeline(G,c.noop):G[0];let Rr={status:O.statusCode,statusText:O.statusMessage,headers:new ce(O.headers),config:e,request:Tt};if(N==="stream")Rr.data=ve,lo(n,i,Rr);else{let ft=[],Ki=0;ve.on("data",a(function(ot){ft.push(ot),Ki+=ot.length,e.maxContentLength>-1&&Ki>e.maxContentLength&&(F=!0,ve.destroy(),B(new R("maxContentLength size of "+e.maxContentLength+" exceeded",R.ERR_BAD_RESPONSE,e,Tt)))},"handleStreamData")),ve.on("aborted",a(function(){if(F)return;let ot=new R("stream has been aborted",R.ERR_BAD_RESPONSE,e,Tt);ve.destroy(ot),i(ot)},"handlerStreamAborted")),ve.on("error",a(function(ot){C.destroyed||i(R.from(ot,null,e,Tt))},"handleStreamError")),ve.on("end",a(function(){try{let ot=ft.length===1?ft[0]:Buffer.concat(ft);N!=="arraybuffer"&&(ot=ot.toString(b),(!b||b==="utf8")&&(ot=c.stripBOM(ot))),Rr.data=ot}catch(ot){return i(R.from(ot,null,e,Rr.request,Rr))}lo(n,i,Rr)},"handleStreamEnd"))}Y.once("abort",ft=>{ve.destroyed||(ve.emit("error",ft),ve.destroy())})},"handleResponse")),Y.once("abort",P=>{C.close?C.close():C.destroy(P)}),C.on("error",a(function(O){i(R.from(O,null,e,C))},"handleRequestError")),C.on("socket",a(function(O){O.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let P=parseInt(e.timeout,10);if(Number.isNaN(P)){B(new R("error trying to parse `config.timeout` to int",R.ERR_BAD_OPTION_VALUE,e,C));return}C.setTimeout(P,a(function(){if(h)return;let G=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",ht=e.transitional||zn;e.timeoutErrorMessage&&(G=e.timeoutErrorMessage),B(new R(G,ht.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,e,C))},"handleRequestTimeout"))}else C.setTimeout(0);if(c.isStream(s)){let P=!1,O=!1;s.on("end",()=>{P=!0}),s.once("error",G=>{O=!0,C.destroy(G)}),s.on("close",()=>{!P&&!O&&B(new Nt("Request stream has been aborted",e,C))}),s.pipe(C)}else s&&C.write(s),C.end()},"dispatchHttpRequest"))},"httpAdapter");var Wc=U.hasStandardBrowserEnv?((t,e)=>o=>(o=new URL(o,U.origin),t.protocol===o.protocol&&t.host===o.host&&(e||t.port===o.port)))(new URL(U.origin),U.navigator&&/(msie|trident)/i.test(U.navigator.userAgent)):()=>!0;var Yc=U.hasStandardBrowserEnv?{write(t,e,o,n,i,r,s){if(typeof document>"u")return;let p=[`${t}=${encodeURIComponent(e)}`];c.isNumber(o)&&p.push(`expires=${new Date(o).toUTCString()}`),c.isString(n)&&p.push(`path=${n}`),c.isString(i)&&p.push(`domain=${i}`),r===!0&&p.push("secure"),c.isString(s)&&p.push(`SameSite=${s}`),document.cookie=p.join("; ")},read(t){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var Xc=a(t=>t instanceof ce?{...t}:t,"headersToObject");function Vt(t,e){e=e||{};let o={};function n(v,m,N,b){return c.isPlainObject(v)&&c.isPlainObject(m)?c.merge.call({caseless:b},v,m):c.isPlainObject(m)?c.merge({},m):c.isArray(m)?m.slice():m}a(n,"getMergedValue");function i(v,m,N,b){if(c.isUndefined(m)){if(!c.isUndefined(v))return n(void 0,v,N,b)}else return n(v,m,N,b)}a(i,"mergeDeepProperties");function r(v,m){if(!c.isUndefined(m))return n(void 0,m)}a(r,"valueFromConfig2");function s(v,m){if(c.isUndefined(m)){if(!c.isUndefined(v))return n(void 0,v)}else return n(void 0,m)}a(s,"defaultToConfig2");function p(v,m,N){if(N in e)return n(v,m);if(N in t)return n(void 0,v)}a(p,"mergeDirectKeys");let y={url:r,method:r,data:r,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:p,headers:a((v,m,N)=>i(Xc(v),Xc(m),N,!0),"headers")};return c.forEach(Object.keys({...t,...e}),a(function(m){let N=y[m]||i,b=N(t[m],e[m],m);c.isUndefined(b)&&N!==p||(o[m]=b)},"computeConfigValue")),o}a(Vt,"mergeConfig");var da=a((t=>{let e=Vt({},t),{data:o,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:r,headers:s,auth:p}=e;if(e.headers=s=ce.from(s),e.url=Qr(Hr(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),p&&s.set("Authorization","Basic "+btoa((p.username||"")+":"+(p.password?unescape(encodeURIComponent(p.password)):""))),c.isFormData(o)){if(U.hasStandardBrowserEnv||U.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(c.isFunction(o.getHeaders)){let y=o.getHeaders(),v=["content-type","content-length"];Object.entries(y).forEach(([m,N])=>{v.includes(m.toLowerCase())&&s.set(m,N)})}}if(U.hasStandardBrowserEnv&&(n&&c.isFunction(n)&&(n=n(e)),n||n!==!1&&Wc(e.url))){let y=i&&r&&Yc.read(r);y&&s.set(i,y)}return e}),"default");var fl=typeof XMLHttpRequest<"u",Kc=fl&&function(t){return new Promise(a(function(o,n){let i=da(t),r=i.data,s=ce.from(i.headers).normalize(),{responseType:p,onUploadProgress:y,onDownloadProgress:v}=i,m,N,b,I,h;function F(){I&&I(),h&&h(),i.cancelToken&&i.cancelToken.unsubscribe(m),i.signal&&i.signal.removeEventListener("abort",m)}a(F,"done");let C=new XMLHttpRequest;C.open(i.method.toUpperCase(),i.url,!0),C.timeout=i.timeout;function Q(){if(!C)return;let B=ce.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),pt={data:!p||p==="text"||p==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:B,config:t,request:C};lo(a(function(xe){o(xe),F()},"_resolve"),a(function(xe){n(xe),F()},"_reject"),pt),C=null}a(Q,"onloadend"),"onloadend"in C?C.onloadend=Q:C.onreadystatechange=a(function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(Q)},"handleLoad"),C.onabort=a(function(){C&&(n(new R("Request aborted",R.ECONNABORTED,t,C)),C=null)},"handleAbort"),C.onerror=a(function(le){let pt=le&&le.message?le.message:"Network Error",me=new R(pt,R.ERR_NETWORK,t,C);me.event=le||null,n(me),C=null},"handleError"),C.ontimeout=a(function(){let le=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",pt=i.transitional||zn;i.timeoutErrorMessage&&(le=i.timeoutErrorMessage),n(new R(le,pt.clarifyTimeoutError?R.ETIMEDOUT:R.ECONNABORTED,t,C)),C=null},"handleTimeout"),r===void 0&&s.setContentType(null),"setRequestHeader"in C&&c.forEach(s.toJSON(),a(function(le,pt){C.setRequestHeader(pt,le)},"setRequestHeader")),c.isUndefined(i.withCredentials)||(C.withCredentials=!!i.withCredentials),p&&p!=="json"&&(C.responseType=i.responseType),v&&([b,h]=jo(v,!0),C.addEventListener("progress",b)),y&&C.upload&&([N,I]=jo(y),C.upload.addEventListener("progress",N),C.upload.addEventListener("loadend",I)),(i.cancelToken||i.signal)&&(m=a(B=>{C&&(n(!B||B.type?new Nt(null,t,C):B),C.abort(),C=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(m),i.signal&&(i.signal.aborted?m():i.signal.addEventListener("abort",m)));let Y=Ii(i.url);if(Y&&U.protocols.indexOf(Y)===-1){n(new R("Unsupported protocol "+Y+":",R.ERR_BAD_REQUEST,t));return}C.send(r||null)},"dispatchXhrRequest"))};var dl=a((t,e)=>{let{length:o}=t=t?t.filter(Boolean):[];if(e||o){let n=new AbortController,i,r=a(function(v){if(!i){i=!0,p();let m=v instanceof Error?v:this.reason;n.abort(m instanceof R?m:new Nt(m instanceof Error?m.message:m))}},"onabort"),s=e&&setTimeout(()=>{s=null,r(new R(`timeout ${e} of ms exceeded`,R.ETIMEDOUT))},e),p=a(()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(v=>{v.unsubscribe?v.unsubscribe(r):v.removeEventListener("abort",r)}),t=null)},"unsubscribe");t.forEach(v=>v.addEventListener("abort",r));let{signal:y}=n;return y.unsubscribe=()=>c.asap(p),y}},"composeSignals"),Zc=dl;var ul=a(function*(t,e){let o=t.byteLength;if(!e||o<e){yield t;return}let n=0,i;for(;n<o;)i=n+e,yield t.slice(n,i),n=i},"streamChunk"),ll=a(async function*(t,e){for await(let o of ml(t))yield*ul(o,e)},"readBytes"),ml=a(async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}let e=t.getReader();try{for(;;){let{done:o,value:n}=await e.read();if(o)break;yield n}}finally{await e.cancel()}},"readStream"),Ls=a((t,e,o,n)=>{let i=ll(t,e),r=0,s,p=a(y=>{s||(s=!0,n&&n(y))},"_onFinish");return new ReadableStream({async pull(y){try{let{done:v,value:m}=await i.next();if(v){p(),y.close();return}let N=m.byteLength;if(o){let b=r+=N;o(b)}y.enqueue(new Uint8Array(m))}catch(v){throw p(v),v}},cancel(y){return p(y),i.return()}},{highWaterMark:2})},"trackStream");var kc=64*1024,{isFunction:ua}=c,vl=(({Request:t,Response:e})=>({Request:t,Response:e}))(c.global),{ReadableStream:ef,TextEncoder:tf}=c.global,of=a((t,...e)=>{try{return!!t(...e)}catch{return!1}},"test"),yl=a(t=>{t=c.merge.call({skipUndefined:!0},vl,t);let{fetch:e,Request:o,Response:n}=t,i=e?ua(e):typeof fetch=="function",r=ua(o),s=ua(n);if(!i)return!1;let p=i&&ua(ef),y=i&&(typeof tf=="function"?(h=>F=>h.encode(F))(new tf):async h=>new Uint8Array(await new o(h).arrayBuffer())),v=r&&p&&of(()=>{let h=!1,F=new o(U.origin,{body:new ef,method:"POST",get duplex(){return h=!0,"half"}}).headers.has("Content-Type");return h&&!F}),m=s&&p&&of(()=>c.isReadableStream(new n("").body)),N={stream:m&&(h=>h.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(h=>{!N[h]&&(N[h]=(F,C)=>{let Q=F&&F[h];if(Q)return Q.call(F);throw new R(`Response type '${h}' is not supported`,R.ERR_NOT_SUPPORT,C)})});let b=a(async h=>{if(h==null)return 0;if(c.isBlob(h))return h.size;if(c.isSpecCompliantForm(h))return(await new o(U.origin,{method:"POST",body:h}).arrayBuffer()).byteLength;if(c.isArrayBufferView(h)||c.isArrayBuffer(h))return h.byteLength;if(c.isURLSearchParams(h)&&(h=h+""),c.isString(h))return(await y(h)).byteLength},"getBodyLength"),I=a(async(h,F)=>{let C=c.toFiniteNumber(h.getContentLength());return C??b(F)},"resolveBodyLength");return async h=>{let{url:F,method:C,data:Q,signal:Y,cancelToken:B,timeout:le,onDownloadProgress:pt,onUploadProgress:me,responseType:xe,headers:Ve,withCredentials:Cr="same-origin",fetchOptions:Sn}=da(h),Ur=e||fetch;xe=xe?(xe+"").toLowerCase():"text";let Po=Zc([Y,B&&B.toAbortSignal()],le),po=null,Do=Po&&Po.unsubscribe&&(()=>{Po.unsubscribe()}),br;try{if(me&&v&&C!=="get"&&C!=="head"&&(br=await I(Ve,Q))!==0){let O=new o(F,{method:"POST",body:Q,duplex:"half"}),G;if(c.isFormData(Q)&&(G=O.headers.get("content-type"))&&Ve.setContentType(G),O.body){let[ht,ve]=xn(br,jo(An(me)));Q=Ls(O.body,kc,ht,ve)}}c.isString(Cr)||(Cr=Cr?"include":"omit");let gt=r&&"credentials"in o.prototype,Me={...Sn,signal:Po,method:C.toUpperCase(),headers:Ve.normalize().toJSON(),body:Q,duplex:"half",credentials:gt?Cr:void 0};po=r&&new o(F,Me);let ct=await(r?Ur(po,Sn):Ur(F,Me)),Nn=m&&(xe==="stream"||xe==="response");if(m&&(pt||Nn&&Do)){let O={};["status","statusText","headers"].forEach(Tt=>{O[Tt]=ct[Tt]});let G=c.toFiniteNumber(ct.headers.get("content-length")),[ht,ve]=pt&&xn(G,jo(An(pt),!0))||[];ct=new n(Ls(ct.body,kc,ht,()=>{ve&&ve(),Do&&Do()}),O)}xe=xe||"text";let P=await N[c.findKey(N,xe)||"text"](ct,h);return!Nn&&Do&&Do(),await new Promise((O,G)=>{lo(O,G,{data:P,headers:ce.from(ct.headers),status:ct.status,statusText:ct.statusText,config:h,request:po})})}catch(gt){throw Do&&Do(),gt&&gt.name==="TypeError"&&/Load failed|fetch/i.test(gt.message)?Object.assign(new R("Network Error",R.ERR_NETWORK,h,po),{cause:gt.cause||gt}):R.from(gt,gt&&gt.code,h,po)}}},"factory"),gl=new Map,Bs=a(t=>{let e=t&&t.env||{},{fetch:o,Request:n,Response:i}=e,r=[n,i,o],s=r.length,p=s,y,v,m=gl;for(;p--;)y=r[p],v=m.get(y),v===void 0&&m.set(y,v=p?new Map:yl(e)),m=v;return v},"getFetch"),Uh=Bs();var Us={http:Gc,xhr:Kc,fetch:{get:Bs}};c.forEach(Us,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});var rf=a(t=>`- ${t}`,"renderReason"),Sl=a(t=>c.isFunction(t)||t===null||t===!1,"isResolvedHandle");function Nl(t,e){t=c.isArray(t)?t:[t];let{length:o}=t,n,i,r={};for(let s=0;s<o;s++){n=t[s];let p;if(i=n,!Sl(n)&&(i=Us[(p=String(n)).toLowerCase()],i===void 0))throw new R(`Unknown adapter '${p}'`);if(i&&(c.isFunction(i)||(i=i.get(e))))break;r[p||"#"+s]=i}if(!i){let s=Object.entries(r).map(([y,v])=>`adapter ${y} `+(v===!1?"is not supported by the environment":"is not available in the build")),p=o?s.length>1?`since :
6
- `+s.map(rf).join(`
7
- `):" "+rf(s[0]):"as no adapter specified";throw new R("There is no suitable adapter to dispatch the request "+p,"ERR_NOT_SUPPORT")}return i}a(Nl,"getAdapter");var la={getAdapter:Nl,adapters:Us};function qs(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Nt(null,t)}a(qs,"throwIfCancellationRequested");function ma(t){return qs(t),t.headers=ce.from(t.headers),t.data=Si.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),la.getAdapter(t.adapter||On.adapter,t)(t).then(a(function(n){return qs(t),n.data=Si.call(t,t.transformResponse,n),n.headers=ce.from(n.headers),n},"onAdapterResolution"),a(function(n){return Ni(n)||(qs(t),n&&n.response&&(n.response.data=Si.call(t,t.transformResponse,n.response),n.response.headers=ce.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}a(ma,"dispatchRequest");var va={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{va[t]=a(function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t},"validator")});var nf={};va.transitional=a(function(e,o,n){function i(r,s){return"[Axios v"+Gr+"] Transitional option '"+r+"'"+s+(n?". "+n:"")}return a(i,"formatMessage"),(r,s,p)=>{if(e===!1)throw new R(i(s," has been removed"+(o?" in "+o:"")),R.ERR_DEPRECATED);return o&&!nf[s]&&(nf[s]=!0,console.warn(i(s," has been deprecated since v"+o+" and will be removed in the near future"))),e?e(r,s,p):!0}},"transitional");va.spelling=a(function(e){return(o,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},"spelling");function Cl(t,e,o){if(typeof t!="object")throw new R("options must be an object",R.ERR_BAD_OPTION_VALUE);let n=Object.keys(t),i=n.length;for(;i-- >0;){let r=n[i],s=e[r];if(s){let p=t[r],y=p===void 0||s(p,r,t);if(y!==!0)throw new R("option "+r+" must be "+y,R.ERR_BAD_OPTION_VALUE);continue}if(o!==!0)throw new R("Unknown option "+r,R.ERR_BAD_OPTION)}}a(Cl,"assertOptions");var Oi={assertOptions:Cl,validators:va};var mo=Oi.validators,ya=class{static{a(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new ls,response:new ls}}async request(e,o){try{return await this._request(e,o)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let r=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?r&&!String(n.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(n.stack+=`
8
- `+r):n.stack=r}catch{}}throw n}}_request(e,o){typeof e=="string"?(o=o||{},o.url=e):o=e||{},o=Vt(this.defaults,o);let{transitional:n,paramsSerializer:i,headers:r}=o;n!==void 0&&Oi.assertOptions(n,{silentJSONParsing:mo.transitional(mo.boolean),forcedJSONParsing:mo.transitional(mo.boolean),clarifyTimeoutError:mo.transitional(mo.boolean)},!1),i!=null&&(c.isFunction(i)?o.paramsSerializer={serialize:i}:Oi.assertOptions(i,{encode:mo.function,serialize:mo.function},!0)),o.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?o.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:o.allowAbsoluteUrls=!0),Oi.assertOptions(o,{baseUrl:mo.spelling("baseURL"),withXsrfToken:mo.spelling("withXSRFToken")},!0),o.method=(o.method||this.defaults.method||"get").toLowerCase();let s=r&&c.merge(r.common,r[o.method]);r&&c.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),o.headers=ce.concat(s,r);let p=[],y=!0;this.interceptors.request.forEach(a(function(F){typeof F.runWhen=="function"&&F.runWhen(o)===!1||(y=y&&F.synchronous,p.unshift(F.fulfilled,F.rejected))},"unshiftRequestInterceptors"));let v=[];this.interceptors.response.forEach(a(function(F){v.push(F.fulfilled,F.rejected)},"pushResponseInterceptors"));let m,N=0,b;if(!y){let h=[ma.bind(this),void 0];for(h.unshift(...p),h.push(...v),b=h.length,m=Promise.resolve(o);N<b;)m=m.then(h[N++],h[N++]);return m}b=p.length;let I=o;for(;N<b;){let h=p[N++],F=p[N++];try{I=h(I)}catch(C){F.call(this,C);break}}try{m=ma.call(this,I)}catch(h){return Promise.reject(h)}for(N=0,b=v.length;N<b;)m=m.then(v[N++],v[N++]);return m}getUri(e){e=Vt(this.defaults,e);let o=Hr(e.baseURL,e.url,e.allowAbsoluteUrls);return Qr(o,e.params,e.paramsSerializer)}};c.forEach(["delete","get","head","options"],a(function(e){ya.prototype[e]=function(o,n){return this.request(Vt(n||{},{method:e,url:o,data:(n||{}).data}))}},"forEachMethodNoData"));c.forEach(["post","put","patch"],a(function(e){function o(n){return a(function(r,s,p){return this.request(Vt(p||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))},"httpMethod")}a(o,"generateHTTPMethod"),ya.prototype[e]=o(),ya.prototype[e+"Form"]=o(!0)},"forEachMethodWithData"));var xi=ya;var bl=class af{static{a(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let o;this.promise=new Promise(a(function(r){o=r},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let r=n._listeners.length;for(;r-- >0;)n._listeners[r](i);n._listeners=null}),this.promise.then=i=>{let r,s=new Promise(p=>{n.subscribe(p),r=p}).then(i);return s.cancel=a(function(){n.unsubscribe(r)},"reject"),s},e(a(function(r,s,p){n.reason||(n.reason=new Nt(r,s,p),o(n.reason))},"cancel"))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let o=this._listeners.indexOf(e);o!==-1&&this._listeners.splice(o,1)}toAbortSignal(){let e=new AbortController,o=a(n=>{e.abort(n)},"abort");return this.subscribe(o),e.signal.unsubscribe=()=>this.unsubscribe(o),e.signal}static source(){let e;return{token:new af(a(function(i){e=i},"executor")),cancel:e}}},sf=bl;function Qs(t){return a(function(o){return t.apply(null,o)},"wrap")}a(Qs,"spread");function Hs(t){return c.isObject(t)&&t.isAxiosError===!0}a(Hs,"isAxiosError");var $s={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries($s).forEach(([t,e])=>{$s[e]=t});var pf=$s;function cf(t){let e=new xi(t),o=mi(xi.prototype.request,e);return c.extend(o,xi.prototype,e,{allOwnKeys:!0}),c.extend(o,e,null,{allOwnKeys:!0}),o.create=a(function(i){return cf(Vt(t,i))},"create"),o}a(cf,"createInstance");var ge=cf(On);ge.Axios=xi;ge.CanceledError=Nt;ge.CancelToken=sf;ge.isCancel=Ni;ge.VERSION=Gr;ge.toFormData=Ir;ge.AxiosError=R;ge.Cancel=ge.CanceledError;ge.all=a(function(e){return Promise.all(e)},"all");ge.spread=Qs;ge.isAxiosError=Hs;ge.mergeConfig=Vt;ge.AxiosHeaders=ce;ge.formToJSON=t=>sa(c.isHTMLForm(t)?new FormData(t):t);ge.getAdapter=la.getAdapter;ge.HttpStatusCode=pf;ge.default=ge;var ga=ge;var{Axios:GS,AxiosError:WS,CanceledError:YS,isCancel:XS,CancelToken:KS,VERSION:ZS,all:kS,Cancel:e0,isAxiosError:t0,spread:o0,toFormData:r0,AxiosHeaders:n0,HttpStatusCode:i0,formToJSON:a0,getAdapter:s0,mergeConfig:p0}=ga;import Pm from"path";import{Type as Rl}from"class-transformer";import{IsEnum as ff,IsNotEmptyObject as Fl,IsObject as Il,ValidateNested as zl,IsOptional as Ol}from"class-validator";function ha(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ha,"_ts_decorate");function Gs(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Gs,"_ts_metadata");var xr=class{static{a(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};ha([ff(S),Gs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],xr.prototype,"tpAmb",void 0);ha([ff(d),Gs("design:type",typeof StateCode>"u"?Object:StateCode)],xr.prototype,"cUF",void 0);ha([Ol()],xr.prototype,"xServ",void 0);var Js=class{static{a(this,"ConsultStatusRequest")}consStatServ};ha([Fl(),Il(),zl(),Rl(()=>xr),Gs("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],Js.prototype,"consStatServ",void 0);import{Type as Ws}from"class-transformer";import{IsEnum as df,IsOptional as Na,IsString as Mt,Length as uf,MinLength as xl,MaxLength as Al,Matches as wi,ValidateNested as Ys,Allow as wl,IsObject as lf}from"class-validator";function Ie(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ie,"_ts_decorate");function Be(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Be,"_ts_metadata");var Sa=class{static{a(this,"InfInutAttributes")}Id};Ie([Mt(),Be("design:type",String)],Sa.prototype,"Id",void 0);var Ai=class{static{a(this,"InutNFeAttributes")}xmlns;versao};Ie([Mt(),Be("design:type",String)],Ai.prototype,"xmlns",void 0);Ie([Mt(),Na(),Be("design:type",String)],Ai.prototype,"versao",void 0);var Le=class{static{a(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};Ie([Ys(),Ws(()=>Sa),Be("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Le.prototype,"$",void 0);Ie([df(S),Be("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Le.prototype,"tpAmb",void 0);Ie([Na()],Le.prototype,"xServ",void 0);Ie([df(d),Be("design:type",typeof StateCode>"u"?Object:StateCode)],Le.prototype,"cUF",void 0);Ie([Mt(),uf(2,2),wi(/^[0-9]{2}$/),Be("design:type",String)],Le.prototype,"ano",void 0);Ie([Mt(),Na(),Be("design:type",String)],Le.prototype,"CNPJ",void 0);Ie([Mt(),Na(),Be("design:type",String)],Le.prototype,"CPF",void 0);Ie([Mt(),uf(2,2),wi(/^(55|65)$/),Be("design:type",String)],Le.prototype,"mod",void 0);Ie([Mt(),wi(/^[0-9]{1,3}$/),Be("design:type",String)],Le.prototype,"serie",void 0);Ie([Mt(),wi(/^[0-9]{1,9}$/),Be("design:type",String)],Le.prototype,"nNFIni",void 0);Ie([Mt(),wi(/^[0-9]{1,9}$/),Be("design:type",String)],Le.prototype,"nNFFin",void 0);Ie([Mt(),xl(15),Al(255),Be("design:type",String)],Le.prototype,"xJust",void 0);Le=Ie([H({properties:["CNPJ","CPF"],required:!0})],Le);var Yr=class{static{a(this,"InutilizacaoPayload")}$;infInut;Signature};Ie([lf(),Ys(),Ws(()=>Ai),Be("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],Yr.prototype,"$",void 0);Ie([lf(),Ys(),Ws(()=>Le),Be("design:type",typeof IInfInut>"u"?Object:IInfInut)],Yr.prototype,"infInut",void 0);Ie([wl(),Be("design:type",typeof Signature>"u"?Object:Signature)],Yr.prototype,"Signature",void 0);import{IsEnum as El,IsOptional as Pl,IsString as Dl,Length as jl,Matches as Tl}from"class-validator";function Xs(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Xs,"_ts_decorate");function mf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(mf,"_ts_metadata");var Xr=class{static{a(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};Xs([El(S),mf("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Xr.prototype,"tpAmb",void 0);Xs([Pl()],Xr.prototype,"xServ",void 0);Xs([Dl(),jl(44,44),Tl(/^[0-9]{44}$/),mf("design:type",String)],Xr.prototype,"chNFe",void 0);import{Type as bm}from"class-transformer";import{IsEnum as Dp,IsOptional as jp,IsString as Rm,IsNotEmpty as Fm}from"class-validator";import{Allow as Sm,IsNotEmpty as Nm,IsNotEmptyObject as Wf,IsObject as Yf,IsString as Cm,ValidateNested as Xf}from"class-validator";import{ArrayMaxSize as Jf,ArrayMinSize as hm,IsNotEmptyObject as Ep,IsObject as Pp,IsOptional as st,IsString as Gf,ValidateNested as Re}from"class-validator";import{Type as Fe}from"class-transformer";import{ArrayMaxSize as _l,IsArray as Vl,IsEnum as Ml,IsOptional as lt,IsString as j,ValidateNested as Ca}from"class-validator";import{Type as ba}from"class-transformer";function A(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(A,"_ts_decorate");function w(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(w,"_ts_metadata");var To=class{static{a(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};A([j(),w("design:type",String)],To.prototype,"cUF",void 0);A([j(),w("design:type",String)],To.prototype,"AAMM",void 0);A([j(),w("design:type",String)],To.prototype,"CNPJ",void 0);A([j(),w("design:type",String)],To.prototype,"mod",void 0);A([j(),w("design:type",String)],To.prototype,"serie",void 0);A([j(),w("design:type",String)],To.prototype,"nNF",void 0);var Ct=class{static{a(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};A([j(),w("design:type",String)],Ct.prototype,"cUF",void 0);A([j(),w("design:type",String)],Ct.prototype,"AAMM",void 0);A([lt(),j(),w("design:type",String)],Ct.prototype,"CNPJ",void 0);A([lt(),j(),w("design:type",String)],Ct.prototype,"CPF",void 0);A([j(),w("design:type",String)],Ct.prototype,"IE",void 0);A([j(),w("design:type",String)],Ct.prototype,"mod",void 0);A([j(),w("design:type",String)],Ct.prototype,"serie",void 0);A([j(),w("design:type",String)],Ct.prototype,"nNF",void 0);Ct=A([H({properties:["CNPJ","CPF"],required:!0})],Ct);var wn=class{static{a(this,"RefECF")}mod;nECF;nCOO};A([j(),w("design:type",String)],wn.prototype,"mod",void 0);A([j(),w("design:type",String)],wn.prototype,"nECF",void 0);A([j(),w("design:type",String)],wn.prototype,"nCOO",void 0);var _o=class{static{a(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};A([lt(),j(),w("design:type",String)],_o.prototype,"refNFe",void 0);A([lt(),j(),w("design:type",String)],_o.prototype,"refNFeSig",void 0);A([lt(),Ca(),ba(()=>To),w("design:type",typeof IRefNF>"u"?Object:IRefNF)],_o.prototype,"refNF",void 0);A([lt(),Ca(),ba(()=>Ct),w("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],_o.prototype,"refNFP",void 0);A([lt(),j(),w("design:type",String)],_o.prototype,"refCTe",void 0);A([lt(),Ca(),ba(()=>wn),w("design:type",typeof IRefECF>"u"?Object:IRefECF)],_o.prototype,"refECF",void 0);var q=class{static{a(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};A([Ml(d),w("design:type",typeof StateCode>"u"?Object:StateCode)],q.prototype,"cUF",void 0);A([j(),w("design:type",String)],q.prototype,"cNF",void 0);A([j(),w("design:type",String)],q.prototype,"natOp",void 0);A([j(),w("design:type",String)],q.prototype,"mod",void 0);A([j(),w("design:type",String)],q.prototype,"serie",void 0);A([j(),w("design:type",String)],q.prototype,"nNF",void 0);A([Fr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),w("design:type",String)],q.prototype,"dhEmi",void 0);A([lt(),Fr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),w("design:type",String)],q.prototype,"dhSaiEnt",void 0);A([j(),w("design:type",String)],q.prototype,"tpNF",void 0);A([j(),w("design:type",String)],q.prototype,"idDest",void 0);A([j(),w("design:type",String)],q.prototype,"cMunFG",void 0);A([j(),w("design:type",String)],q.prototype,"tpImp",void 0);A([j(),w("design:type",typeof TpEmis>"u"?Object:TpEmis)],q.prototype,"tpEmis",void 0);A([j(),lt(),w("design:type",String)],q.prototype,"cDV",void 0);A([j(),w("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],q.prototype,"tpAmb",void 0);A([j(),w("design:type",String)],q.prototype,"finNFe",void 0);A([j(),w("design:type",String)],q.prototype,"indFinal",void 0);A([j(),w("design:type",String)],q.prototype,"indPres",void 0);A([lt(),j(),w("design:type",String)],q.prototype,"indIntermed",void 0);A([j(),w("design:type",String)],q.prototype,"procEmi",void 0);A([j(),w("design:type",String)],q.prototype,"verProc",void 0);A([lt(),j(),Fr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),w("design:type",String)],q.prototype,"dhCont",void 0);A([lt(),j(),w("design:type",String)],q.prototype,"xJust",void 0);A([lt(),Vl(),_l(999),Ca({each:!0}),ba(()=>_o),w("design:type",Array)],q.prototype,"NFref",void 0);import{IsOptional as En,IsString as Vo,ValidateNested as Ll}from"class-validator";import{Type as Bl}from"class-transformer";import{IsOptional as Ra,IsString as Ut}from"class-validator";function Lt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Lt,"_ts_decorate");function Bt(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Bt,"_ts_metadata");var Ue=class{static{a(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Lt([Ut(),Bt("design:type",String)],Ue.prototype,"xLgr",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"nro",void 0);Lt([Ra(),Ut(),Bt("design:type",String)],Ue.prototype,"xCpl",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"xBairro",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"cMun",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"xMun",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"UF",void 0);Lt([Ut(),Bt("design:type",String)],Ue.prototype,"CEP",void 0);Lt([Ra(),Ut(),Bt("design:type",String)],Ue.prototype,"cPais",void 0);Lt([Ra(),Ut(),Bt("design:type",String)],Ue.prototype,"xPais",void 0);Lt([Ra(),Ut(),Bt("design:type",String)],Ue.prototype,"fone",void 0);function qt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(qt,"_ts_decorate");function vo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(vo,"_ts_metadata");var Ae=class{static{a(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"CNPJ",void 0);qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"CPF",void 0);qt([Vo(),vo("design:type",String)],Ae.prototype,"xNome",void 0);qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"xFant",void 0);qt([Ll(),Bl(()=>Ue),vo("design:type",typeof Ue>"u"?Object:Ue)],Ae.prototype,"enderEmit",void 0);qt([Vo(),vo("design:type",String)],Ae.prototype,"IE",void 0);qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"IEST",void 0);qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"IM",void 0);qt([En(),Vo(),vo("design:type",String)],Ae.prototype,"CNAE",void 0);qt([Vo(),vo("design:type",String)],Ae.prototype,"CRT",void 0);Ae=qt([H({properties:["CNPJ","CPF"],required:!0})],Ae);import{IsOptional as Mo,IsString as Lo,ValidateNested as Ul}from"class-validator";import{Type as ql}from"class-transformer";import{IsOptional as $t,IsString as Jt}from"class-validator";function Qt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Qt,"_ts_decorate");function Ht(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ht,"_ts_metadata");var rt=class{static{a(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"xLgr",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"nro",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"xCpl",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"xBairro",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"cMun",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"xMun",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"UF",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"CEP",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"cPais",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"xPais",void 0);Qt([$t(),Jt(),Ht("design:type",String)],rt.prototype,"fone",void 0);function Gt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Gt,"_ts_decorate");function yo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(yo,"_ts_metadata");var we=class{static{a(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"CNPJ",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"CPF",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"idEstrangeiro",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"xNome",void 0);Gt([Mo(),Ul(),ql(()=>rt),yo("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],we.prototype,"enderDest",void 0);Gt([Lo(),yo("design:type",String)],we.prototype,"indIEDest",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"IE",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"ISUF",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"IM",void 0);Gt([Mo(),Lo(),yo("design:type",String)],we.prototype,"email",void 0);we=Gt([H({properties:["CNPJ","CPF"],required:!0})],we);import{IsOptional as go,IsString as Ye}from"class-validator";function qe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(qe,"_ts_decorate");function We(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(We,"_ts_metadata");var X=class{static{a(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};qe([go(),Ye(),We("design:type",String)],X.prototype,"CNPJ",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"CPF",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"xNome",void 0);qe([Ye(),We("design:type",String)],X.prototype,"xLgr",void 0);qe([Ye(),We("design:type",String)],X.prototype,"nro",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"xCpl",void 0);qe([Ye(),We("design:type",String)],X.prototype,"xBairro",void 0);qe([Ye(),We("design:type",String)],X.prototype,"cMun",void 0);qe([Ye(),We("design:type",String)],X.prototype,"xMun",void 0);qe([Ye(),We("design:type",String)],X.prototype,"UF",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"CEP",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"cPais",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"xPais",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"fone",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"email",void 0);qe([go(),Ye(),We("design:type",String)],X.prototype,"IE",void 0);X=qe([H({properties:["CNPJ","CPF"]})],X);import{IsOptional as yf,IsString as gf}from"class-validator";function Ks(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ks,"_ts_decorate");function vf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(vf,"_ts_metadata");var ho=class{static{a(this,"AutXML")}CNPJ;CPF};Ks([yf(),gf(),vf("design:type",String)],ho.prototype,"CNPJ",void 0);Ks([yf(),gf(),vf("design:type",String)],ho.prototype,"CPF",void 0);ho=Ks([H({properties:["CNPJ","CPF"]})],ho);import{IsOptional as Ql,IsString as Nf}from"class-validator";function hf(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(hf,"_ts_decorate");function Sf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Sf,"_ts_metadata");var Ar=class{static{a(this,"InfIntermed")}CNPJ;idCadIntTran};hf([Nf(),Sf("design:type",String)],Ar.prototype,"CNPJ",void 0);hf([Ql(),Nf(),Sf("design:type",String)],Ar.prototype,"idCadIntTran",void 0);import{IsOptional as Cf,IsString as ep}from"class-validator";function Zs(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Zs,"_ts_decorate");function ks(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ks,"_ts_metadata");var Bo=class{static{a(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};Zs([ep(),ks("design:type",String)],Bo.prototype,"UFSaidaPais",void 0);Zs([Cf(),ep(),ks("design:type",String)],Bo.prototype,"xLocExporta",void 0);Zs([Cf(),ep(),ks("design:type",String)],Bo.prototype,"xLocDespacho",void 0);import{IsOptional as rp,IsString as np}from"class-validator";function tp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(tp,"_ts_decorate");function op(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(op,"_ts_metadata");var Uo=class{static{a(this,"Compra")}xNEmp;xPed;xCont};tp([rp(),np(),op("design:type",String)],Uo.prototype,"xNEmp",void 0);tp([rp(),np(),op("design:type",String)],Uo.prototype,"xPed",void 0);tp([rp(),np(),op("design:type",String)],Uo.prototype,"xCont",void 0);import{IsOptional as bf,IsString as jn}from"class-validator";function Pn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Pn,"_ts_decorate");function Dn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Dn,"_ts_metadata");var Ot=class{static{a(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};Pn([jn(),Dn("design:type",String)],Ot.prototype,"CNPJ",void 0);Pn([jn(),Dn("design:type",String)],Ot.prototype,"xContato",void 0);Pn([jn(),Dn("design:type",String)],Ot.prototype,"email",void 0);Pn([jn(),Dn("design:type",String)],Ot.prototype,"fone",void 0);Pn([bf(),jn(),Dn("design:type",String)],Ot.prototype,"idCSRT",void 0);Pn([bf(),jn(),Dn("design:type",String)],Ot.prototype,"hashCSRT",void 0);import{IsOptional as Rf,ValidateNested as sp}from"class-validator";import{Type as pp}from"class-transformer";import{IsOptional as So}from"class-validator";function $(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($,"_ts_decorate");function J(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(J,"_ts_metadata");var L=class{static{a(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};$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vBC",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSDeson",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPUFDest",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSUFDest",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSUFRemet",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCP",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vBCST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPST",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFCPSTRet",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMono",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMono",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMonoReten",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMonoReten",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"qBCMonoRet",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vICMSMonoRet",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vProd",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vFrete",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vSeg",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vDesc",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vII",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vIPI",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vIPIDevol",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vPIS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vCOFINS",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vOutro",void 0);$([f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vNF",void 0);$([So(),f({fixed:2}),J("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],L.prototype,"vTotTrib",void 0);import{IsOptional as Wt,IsString as wt}from"class-validator";function xt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(xt,"_ts_decorate");function At(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(At,"_ts_metadata");var Xe=class{static{a(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vServ",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vBC",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vISS",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vPIS",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vCOFINS",void 0);xt([wt(),At("design:type",String)],Xe.prototype,"dCompet",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vDeducao",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vOutro",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vDescIncond",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vDescCond",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"vISSRet",void 0);xt([Wt(),wt(),At("design:type",String)],Xe.prototype,"cRegTrib",void 0);import{IsOptional as kr}from"class-validator";function Kr(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Kr,"_ts_decorate");function Zr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Zr,"_ts_metadata");var Yt=class{static{a(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetPIS",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetCOFINS",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetCSLL",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vBCIRRF",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vIRRF",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vBCRetPrev",void 0);Kr([kr(),f({fixed:2}),Zr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Yt.prototype,"vRetPrev",void 0);function ip(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ip,"_ts_decorate");function ap(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ap,"_ts_metadata");var qo=class{static{a(this,"Total")}ICMSTot;ISSQNtot;retTrib};ip([sp(),pp(()=>L),ap("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],qo.prototype,"ICMSTot",void 0);ip([Rf(),sp(),pp(()=>Xe),ap("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],qo.prototype,"ISSQNtot",void 0);ip([Rf(),sp(),pp(()=>Yt),ap("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],qo.prototype,"retTrib",void 0);import{ArrayMaxSize as If,IsOptional as nn,IsString as cp,ValidateNested as Ei}from"class-validator";import{Type as Pi}from"class-transformer";import{IsOptional as tn,IsString as on}from"class-validator";function wr(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(wr,"_ts_decorate");function en(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(en,"_ts_metadata");var Ke=class{static{a(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};wr([tn(),on(),en("design:type",String)],Ke.prototype,"CNPJ",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"CPF",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"xNome",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"IE",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"xEnder",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"xMun",void 0);wr([tn(),on(),en("design:type",String)],Ke.prototype,"UF",void 0);Ke=wr([H({properties:["CNPJ","CPF"]})],Ke);import{IsOptional as Vn,IsString as Ff}from"class-validator";function Tn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Tn,"_ts_decorate");function _n(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_n,"_ts_metadata");var bt=class{static{a(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};Tn([Vn(),f({fixed:2}),_n("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vServ",void 0);Tn([Vn(),f({fixed:2}),_n("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vBCRet",void 0);Tn([Vn(),f({fixed:4}),_n("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"pICMSRet",void 0);Tn([Vn(),f({fixed:2}),_n("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bt.prototype,"vICMSRet",void 0);Tn([Vn(),Ff(),_n("design:type",String)],bt.prototype,"CFOP",void 0);Tn([Vn(),Ff(),_n("design:type",String)],bt.prototype,"cMunFG",void 0);import{IsOptional as Bn,IsString as Un}from"class-validator";function Mn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Mn,"_ts_decorate");function Ln(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ln,"_ts_metadata");var No=class{static{a(this,"VeicTransp")}placa;UF;RNTC};Mn([Bn(),Un(),Ln("design:type",String)],No.prototype,"placa",void 0);Mn([Bn(),Un(),Ln("design:type",String)],No.prototype,"UF",void 0);Mn([Bn(),Un(),Ln("design:type",String)],No.prototype,"RNTC",void 0);var rn=class{static{a(this,"Reboque")}placa;UF;RNTC};Mn([Bn(),Un(),Ln("design:type",String)],rn.prototype,"placa",void 0);Mn([Bn(),Un(),Ln("design:type",String)],rn.prototype,"UF",void 0);Mn([Bn(),Un(),Ln("design:type",String)],rn.prototype,"RNTC",void 0);import{IsOptional as Hn,IsString as Fa}from"class-validator";function qn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(qn,"_ts_decorate");function Qn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Qn,"_ts_metadata");var Co=class{static{a(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};qn([Hn(),Fa(),Qn("design:type",String)],Co.prototype,"qVol",void 0);qn([Hn(),Fa(),Qn("design:type",String)],Co.prototype,"esp",void 0);qn([Hn(),Fa(),Qn("design:type",String)],Co.prototype,"marca",void 0);qn([Hn(),Fa(),Qn("design:type",String)],Co.prototype,"nVol",void 0);qn([Hn(),f({fixed:3}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pesoL",void 0);qn([Hn(),f({fixed:3}),Qn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pesoB",void 0);function Qo(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Qo,"_ts_decorate");function Er(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Er,"_ts_metadata");var Ze=class{static{a(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};Qo([cp(),Er("design:type",String)],Ze.prototype,"modFrete",void 0);Qo([nn(),Ei(),Pi(()=>Ke),Er("design:type",typeof Ke>"u"?Object:Ke)],Ze.prototype,"transporta",void 0);Qo([nn(),Ei(),Pi(()=>bt),Er("design:type",typeof bt>"u"?Object:bt)],Ze.prototype,"retTransp",void 0);Qo([nn(),Ei(),Pi(()=>No),Er("design:type",typeof No>"u"?Object:No)],Ze.prototype,"veicTransp",void 0);Qo([nn(),Ei({each:!0}),Pi(()=>rn),If(5),Er("design:type",Array)],Ze.prototype,"reboque",void 0);Qo([nn(),cp(),Er("design:type",String)],Ze.prototype,"vagao",void 0);Qo([nn(),cp(),Er("design:type",String)],Ze.prototype,"balsa",void 0);Qo([nn(),Ei({each:!0}),Pi(()=>Co),If(5e3),Er("design:type",Array)],Ze.prototype,"vol",void 0);Ze=Qo([H({properties:["veicTransp","reboque"]}),H({properties:["vagao","balsa"]})],Ze);import{ArrayMaxSize as Hl,IsOptional as Go,IsString as fp,ValidateNested as zf}from"class-validator";import{Type as Of}from"class-transformer";function $o(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($o,"_ts_decorate");function Jo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Jo,"_ts_metadata");var Ho=class{static{a(this,"Fat")}nFat;vOrig;vDesc;vLiq};$o([Go(),fp(),Jo("design:type",String)],Ho.prototype,"nFat",void 0);$o([Go(),f({fixed:2}),Jo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vOrig",void 0);$o([Go(),f({fixed:2}),Jo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vDesc",void 0);$o([Go(),f({fixed:2}),Jo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ho.prototype,"vLiq",void 0);var $n=class{static{a(this,"Dup")}nDup;dVenc;vDup};$o([Go(),fp(),Jo("design:type",String)],$n.prototype,"nDup",void 0);$o([Go(),fp(),Jo("design:type",String)],$n.prototype,"dVenc",void 0);$o([Go(),f({fixed:2}),Jo("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$n.prototype,"vDup",void 0);var Pr=class{static{a(this,"Cobr")}fat;dup};$o([Go(),zf(),Of(()=>Ho),Jo("design:type",typeof Ho>"u"?Object:Ho)],Pr.prototype,"fat",void 0);$o([Go(),zf({each:!0}),Hl(120),Of(()=>$n),Jo("design:type",Array)],Pr.prototype,"dup",void 0);import{ArrayMaxSize as Gl,ArrayMinSize as Wl,IsOptional as Yl,ValidateNested as Xl}from"class-validator";import{Type as Kl}from"class-transformer";import{IsOptional as vp,IsString as yp,ValidateNested as $l}from"class-validator";import{Type as Jl}from"class-transformer";import{IsOptional as lp,IsString as mp}from"class-validator";function dp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(dp,"_ts_decorate");function up(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(up,"_ts_metadata");var bo=class{static{a(this,"Card")}cNPJ;tBand;cAut};dp([lp(),mp(),up("design:type",String)],bo.prototype,"cNPJ",void 0);dp([lp(),mp(),up("design:type",String)],bo.prototype,"tBand",void 0);dp([lp(),mp(),up("design:type",String)],bo.prototype,"cAut",void 0);function Di(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Di,"_ts_decorate");function ji(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ji,"_ts_metadata");var Wo=class{static{a(this,"DetPag")}indPag;tPag;vPag;card;xPag};Di([vp(),yp(),ji("design:type",String)],Wo.prototype,"indPag",void 0);Di([yp(),ji("design:type",typeof TPag>"u"?Object:TPag)],Wo.prototype,"tPag",void 0);Di([f({fixed:2}),ji("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wo.prototype,"vPag",void 0);Di([vp(),$l(),Jl(()=>bo),ji("design:type",typeof bo>"u"?Object:bo)],Wo.prototype,"card",void 0);Di([vp(),yp(),ji("design:type",String)],Wo.prototype,"xPag",void 0);function xf(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(xf,"_ts_decorate");function Af(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Af,"_ts_metadata");var Dr=class{static{a(this,"Pag")}detPag;vTroco};xf([Xl({each:!0}),Wl(1),Gl(100),Kl(()=>Wo),Af("design:type",Array)],Dr.prototype,"detPag",void 0);xf([Yl(),f({fixed:2}),Af("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Dr.prototype,"vTroco",void 0);import{ArrayMaxSize as gp,IsOptional as an,IsString as Gn,ValidateNested as hp}from"class-validator";import{Type as Sp}from"class-transformer";function Yo(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Yo,"_ts_decorate");function Xo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Xo,"_ts_metadata");var Jn=class{static{a(this,"InfAdicObs")}xCampo;xTexto};Yo([Gn(),Xo("design:type",String)],Jn.prototype,"xCampo",void 0);Yo([Gn(),Xo("design:type",String)],Jn.prototype,"xTexto",void 0);var Ti=class{static{a(this,"ProcRef")}nProc;indProc};Yo([an(),Gn(),Xo("design:type",String)],Ti.prototype,"nProc",void 0);Yo([an(),Gn(),Xo("design:type",String)],Ti.prototype,"indProc",void 0);var Xt=class{static{a(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Yo([an(),Gn(),Xo("design:type",String)],Xt.prototype,"infAdFisco",void 0);Yo([an(),Gn(),Xo("design:type",String)],Xt.prototype,"infCpl",void 0);Yo([an(),hp({each:!0}),Sp(()=>Jn),gp(10),Xo("design:type",Array)],Xt.prototype,"obsCont",void 0);Yo([an(),hp({each:!0}),Sp(()=>Jn),gp(10),Xo("design:type",Array)],Xt.prototype,"obsFisco",void 0);Yo([an(),hp({each:!0}),Sp(()=>Ti),gp(100),Xo("design:type",Array)],Xt.prototype,"procRef",void 0);import{ArrayMaxSize as wf,IsNotEmptyObject as Zl,IsObject as kl,IsOptional as sn,IsString as jr,ValidateNested as Ef}from"class-validator";import{Type as Np}from"class-transformer";function nt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(nt,"_ts_decorate");function it(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(it,"_ts_metadata");var Ia=class{static{a(this,"ForDiaAttributes")}dia};nt([jr(),it("design:type",String)],Ia.prototype,"dia",void 0);var _i=class{static{a(this,"ForDia")}$;qtde};nt([kl(),Zl(),Np(()=>Ia),it("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],_i.prototype,"$",void 0);nt([jr(),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],_i.prototype,"qtde",void 0);var Vi=class{static{a(this,"Deduc")}xDed;vDed};nt([jr(),it("design:type",String)],Vi.prototype,"xDed",void 0);nt([f({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vi.prototype,"vDed",void 0);var ke=class{static{a(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};nt([jr(),it("design:type",String)],ke.prototype,"safra",void 0);nt([jr(),it("design:type",String)],ke.prototype,"ref",void 0);nt([Ef({each:!0}),wf(31),Np(()=>_i),it("design:type",Array)],ke.prototype,"forDia",void 0);nt([sn(),jr(),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"qTotMes",void 0);nt([sn(),jr(),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"qTotAnt",void 0);nt([sn(),jr(),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"qTotGer",void 0);nt([sn(),Ef({each:!0}),wf(10),Np(()=>Vi),it("design:type",Array)],ke.prototype,"deduc",void 0);nt([sn(),f({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vFor",void 0);nt([sn(),f({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vTotDed",void 0);nt([sn(),f({fixed:2}),it("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ke.prototype,"vLiqFor",void 0);import{IsObject as lm,IsOptional as Ha,IsString as $f,ValidateNested as Ji}from"class-validator";import{Type as Gi}from"class-transformer";import{ArrayMaxSize as Hi,IsArray as Ea,IsObject as fn,IsOptional as Z,IsString as he,ValidateNested as ko}from"class-validator";import{Type as er}from"class-transformer";import{IsOptional as za,IsString as Bi}from"class-validator";function Mi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Mi,"_ts_decorate");function Li(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Li,"_ts_metadata");var Ko=class{static{a(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};Mi([Bi(),Li("design:type",String)],Ko.prototype,"nLote",void 0);Mi([za(),Bi(),Li("design:type",String)],Ko.prototype,"qLote",void 0);Mi([za(),Bi(),Li("design:type",String)],Ko.prototype,"dFab",void 0);Mi([za(),Bi(),Li("design:type",String)],Ko.prototype,"dVal",void 0);Mi([za(),Bi(),Li("design:type",String)],Ko.prototype,"cAgreg",void 0);import{IsString as mt,IsOptional as Ui,IsArray as em,ValidateNested as tm,ArrayMaxSize as om,ArrayMinSize as rm}from"class-validator";import{Type as nm}from"class-transformer";function Pe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Pe,"_ts_decorate");function Qe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Qe,"_ts_metadata");var Tr=class{static{a(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};Pe([mt(),Qe("design:type",String)],Tr.prototype,"nAdicao",void 0);Pe([mt(),Qe("design:type",String)],Tr.prototype,"nSeqAdic",void 0);Pe([mt(),Qe("design:type",String)],Tr.prototype,"cFabricante",void 0);Pe([f({fixed:2}),Qe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Tr.prototype,"vDescDI",void 0);Pe([Ui(),mt(),Qe("design:type",String)],Tr.prototype,"nDraw",void 0);var Ee=class{static{a(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};Pe([mt(),Qe("design:type",String)],Ee.prototype,"nDI",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"dDI",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"xLocDesemb",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"UFDesemb",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"dDesemb",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"tpViaTransp",void 0);Pe([Ui(),f({fixed:2}),Qe("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ee.prototype,"vAFRMM",void 0);Pe([mt(),Qe("design:type",String)],Ee.prototype,"tpIntermedio",void 0);Pe([mt(),Ui(),Qe("design:type",String)],Ee.prototype,"CNPJ",void 0);Pe([mt(),Ui(),Qe("design:type",String)],Ee.prototype,"CPF",void 0);Pe([mt(),Ui(),Qe("design:type",String)],Ee.prototype,"UFTerceiro",void 0);Pe([em(),tm({each:!0}),nm(()=>Tr),om(999),rm(1),Qe("design:type",Array)],Ee.prototype,"adi",void 0);Ee=Pe([H({properties:["CNPJ","CPF"],required:!0})],Ee);import{Type as im}from"class-transformer";import{IsOptional as Pf,IsString as Cp,ValidateNested as am}from"class-validator";function qi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(qi,"_ts_decorate");function Qi(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Qi,"_ts_metadata");var Wn=class{static{a(this,"ExportInd")}nRE;chNFe;qExport};qi([Cp(),Qi("design:type",String)],Wn.prototype,"nRE",void 0);qi([Cp(),Qi("design:type",String)],Wn.prototype,"chNFe",void 0);qi([f({fixed:4}),Qi("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Wn.prototype,"qExport",void 0);var Yn=class{static{a(this,"DetExport")}nDraw;exportInd};qi([Pf(),Cp(),Qi("design:type",String)],Yn.prototype,"nDraw",void 0);qi([Pf(),am(),im(()=>Wn),Qi("design:type",typeof IExportInd>"u"?Object:IExportInd)],Yn.prototype,"exportInd",void 0);import{IsString as Tf}from"class-validator";function Df(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Df,"_ts_decorate");function jf(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(jf,"_ts_metadata");var Xn=class{static{a(this,"InfProdNFF")}cProdFisco;cOperNFF};Df([Tf(),jf("design:type",String)],Xn.prototype,"cProdFisco",void 0);Df([Tf(),jf("design:type",String)],Xn.prototype,"cOperNFF",void 0);import{IsString as _f}from"class-validator";function bp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(bp,"_ts_decorate");function Rp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Rp,"_ts_metadata");var pn=class{static{a(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};bp([_f(),Rp("design:type",String)],pn.prototype,"xEmb",void 0);bp([f({fixed:3}),Rp("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],pn.prototype,"qVolEmb",void 0);bp([_f(),Rp("design:type",String)],pn.prototype,"uEmb",void 0);import{IsString as oe}from"class-validator";function ee(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ee,"_ts_decorate");function te(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(te,"_ts_metadata");var W=class{static{a(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)],W.prototype,"tpOp",void 0);ee([oe(),te("design:type",String)],W.prototype,"chassi",void 0);ee([oe(),te("design:type",String)],W.prototype,"cCor",void 0);ee([oe(),te("design:type",String)],W.prototype,"xCor",void 0);ee([oe(),te("design:type",String)],W.prototype,"pot",void 0);ee([oe(),te("design:type",String)],W.prototype,"cilin",void 0);ee([oe(),te("design:type",String)],W.prototype,"pesoL",void 0);ee([oe(),te("design:type",String)],W.prototype,"pesoB",void 0);ee([oe(),te("design:type",String)],W.prototype,"nSerie",void 0);ee([oe(),te("design:type",String)],W.prototype,"tpComb",void 0);ee([oe(),te("design:type",String)],W.prototype,"nMotor",void 0);ee([oe(),te("design:type",String)],W.prototype,"CMT",void 0);ee([oe(),te("design:type",String)],W.prototype,"dist",void 0);ee([oe(),te("design:type",String)],W.prototype,"anoMod",void 0);ee([oe(),te("design:type",String)],W.prototype,"anoFab",void 0);ee([oe(),te("design:type",String)],W.prototype,"tpPint",void 0);ee([oe(),te("design:type",String)],W.prototype,"tpVeic",void 0);ee([oe(),te("design:type",String)],W.prototype,"espVeic",void 0);ee([oe(),te("design:type",String)],W.prototype,"VIN",void 0);ee([oe(),te("design:type",String)],W.prototype,"condVeic",void 0);ee([oe(),te("design:type",String)],W.prototype,"cMod",void 0);ee([oe(),te("design:type",String)],W.prototype,"cCorDENATRAN",void 0);ee([oe(),te("design:type",String)],W.prototype,"lota",void 0);ee([oe(),te("design:type",String)],W.prototype,"tpRest",void 0);import{IsString as Vf}from"class-validator";function Fp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Fp,"_ts_decorate");function Ip(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ip,"_ts_metadata");var cn=class{static{a(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};Fp([Vf(),Ip("design:type",String)],cn.prototype,"cProdANVISA",void 0);Fp([Vf(),Ip("design:type",String)],cn.prototype,"xMotivoIsencao",void 0);Fp([f({fixed:2}),Ip("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],cn.prototype,"vPMC",void 0);import{IsString as Aa}from"class-validator";function Oa(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Oa,"_ts_decorate");function xa(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(xa,"_ts_metadata");var _r=class{static{a(this,"Arma")}tpArma;nSerie;nCano;descr};Oa([Aa(),xa("design:type",String)],_r.prototype,"tpArma",void 0);Oa([Aa(),xa("design:type",String)],_r.prototype,"nSerie",void 0);Oa([Aa(),xa("design:type",String)],_r.prototype,"nCano",void 0);Oa([Aa(),xa("design:type",String)],_r.prototype,"descr",void 0);import{IsString as Zo,IsOptional as Mr,IsObject as zp,ValidateNested as Op,ArrayMaxSize as sm,Max as wa}from"class-validator";import{Type as xp}from"class-transformer";function re(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(re,"_ts_decorate");function ne(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ne,"_ts_metadata");var Kn=class{static{a(this,"OrigComb")}indImport;cUFOrig;pOrig};re([Zo(),ne("design:type",String)],Kn.prototype,"indImport",void 0);re([Zo(),ne("design:type",String)],Kn.prototype,"cUFOrig",void 0);re([f({fixed:4}),wa(100),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kn.prototype,"pOrig",void 0);var Zn=class{static{a(this,"CIDE")}qBCProd;vAliqProd;vCIDE};re([f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"qBCProd",void 0);re([f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"vAliqProd",void 0);re([f({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Zn.prototype,"vCIDE",void 0);var Vr=class{static{a(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};re([Zo(),ne("design:type",String)],Vr.prototype,"nBico",void 0);re([Zo(),ne("design:type",String)],Vr.prototype,"nBomba",void 0);re([Zo(),ne("design:type",String)],Vr.prototype,"nTanque",void 0);re([f({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vr.prototype,"vEncIni",void 0);re([f({fixed:3}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vr.prototype,"vEncFin",void 0);var He=class{static{a(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};re([Zo(),ne("design:type",String)],He.prototype,"cProdANP",void 0);re([Zo(),ne("design:type",String)],He.prototype,"descANP",void 0);re([Mr(),wa(100),f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"pGLP",void 0);re([Mr(),wa(100),f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"pGNn",void 0);re([Mr(),wa(100),f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"pGNi",void 0);re([Mr(),f({fixed:2}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"vPart",void 0);re([Zo(),Mr(),ne("design:type",String)],He.prototype,"CODIF",void 0);re([Mr(),f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"qTemp",void 0);re([Zo(),ne("design:type",String)],He.prototype,"UFCons",void 0);re([zp(),Op(),xp(()=>Zn),ne("design:type",typeof ICIDE>"u"?Object:ICIDE)],He.prototype,"CIDE",void 0);re([zp(),Op(),xp(()=>Vr),ne("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],He.prototype,"encerrante",void 0);re([Mr(),f({fixed:4}),ne("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],He.prototype,"pBio",void 0);re([zp(),Op({each:!0}),xp(()=>Kn),sm(30),Mr(),ne("design:type",Array)],He.prototype,"origComb",void 0);function _(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(_,"_ts_decorate");function V(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(V,"_ts_metadata");var E=class{static{a(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};_([he(),V("design:type",String)],E.prototype,"cProd",void 0);_([he(),V("design:type",String)],E.prototype,"cEAN",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"cBarra",void 0);_([he(),V("design:type",String)],E.prototype,"xProd",void 0);_([he(),V("design:type",String)],E.prototype,"NCM",void 0);_([Z(),Ea(),Hi(8),he({each:!0}),V("design:type",Array)],E.prototype,"NVE",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"CEST",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"indEscala",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"CNPJFab",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"cBenef",void 0);_([Z(),fn(),V("design:type",Object)],E.prototype,"gCred",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"EXTIPI",void 0);_([he(),V("design:type",String)],E.prototype,"CFOP",void 0);_([he(),V("design:type",String)],E.prototype,"uCom",void 0);_([f({fixed:4}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"qCom",void 0);_([f({fixed:10}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vUnCom",void 0);_([f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vProd",void 0);_([he(),V("design:type",String)],E.prototype,"cEANTrib",void 0);_([he(),V("design:type",String)],E.prototype,"uTrib",void 0);_([f({fixed:4}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"qTrib",void 0);_([f({fixed:10}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vUnTrib",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vFrete",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vSeg",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vDesc",void 0);_([Z(),f({fixed:2}),V("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],E.prototype,"vOutro",void 0);_([he(),V("design:type",String)],E.prototype,"indTot",void 0);_([Z(),Ea(),ko({each:!0}),Hi(100),er(()=>Ee),V("design:type",Array)],E.prototype,"DI",void 0);_([Z(),Ea(),ko({each:!0}),Hi(500),er(()=>Yn),V("design:type",Array)],E.prototype,"detExport",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"xPed",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"nItemPed",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"nFCI",void 0);_([Z(),Ea(),ko({each:!0}),Hi(500),er(()=>Ko),V("design:type",Array)],E.prototype,"rastro",void 0);_([Z(),fn(),ko(),er(()=>Xn),V("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],E.prototype,"infProdNFF",void 0);_([Z(),fn(),ko(),er(()=>pn),V("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],E.prototype,"infProdEmb",void 0);_([Z(),fn(),ko(),er(()=>W),V("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],E.prototype,"veicProd",void 0);_([Z(),fn(),ko(),er(()=>cn),V("design:type",typeof IMed>"u"?Object:IMed)],E.prototype,"med",void 0);_([Z(),fn(),ko({each:!0}),er(()=>_r),Hi(500),V("design:type",Array)],E.prototype,"arma",void 0);_([Z(),fn(),ko(),er(()=>He),V("design:type",typeof IComb>"u"?Object:IComb)],E.prototype,"comb",void 0);_([Z(),he(),V("design:type",String)],E.prototype,"nRECOPI",void 0);E=_([H({properties:["veicProd","med","arma","comb"]})],E);import{Type as yr}from"class-transformer";import{IsNumber as cm,IsOptional as Ao,ValidateNested as gr}from"class-validator";import{IsOptional as g,IsString as x,Max as pm,ValidateNested as $e}from"class-validator";import{Type as Je}from"class-transformer";function u(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(u,"_ts_decorate");function l(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(l,"_ts_metadata");var tr=class{static{a(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};u([x(),l("design:type",String)],tr.prototype,"orig",void 0);u([x(),l("design:type",String)],tr.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],tr.prototype,"modBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tr.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tr.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tr.prototype,"vICMS",void 0);var Rt=class{static{a(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([x(),l("design:type",String)],Rt.prototype,"orig",void 0);u([x(),l("design:type",String)],Rt.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],Rt.prototype,"modBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vICMS",void 0);u([g(),x(),l("design:type",String)],Rt.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Rt.prototype,"vICMSST",void 0);var Ro=class{static{a(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};u([x(),l("design:type",String)],Ro.prototype,"orig",void 0);u([x(),l("design:type",String)],Ro.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],Ro.prototype,"modBC",void 0);u([g(),x(),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pRedBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ro.prototype,"vICMS",void 0);var or=class{static{a(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};u([x(),l("design:type",String)],or.prototype,"orig",void 0);u([x(),l("design:type",String)],or.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],or.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],or.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],or.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],or.prototype,"vICMSST",void 0);var dn=class{static{a(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};u([x(),l("design:type",String)],dn.prototype,"orig",void 0);u([x(),l("design:type",String)],dn.prototype,"CST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],dn.prototype,"vICMSDeson",void 0);u([g(),x(),l("design:type",String)],dn.prototype,"motDesICMS",void 0);var Et=class{static{a(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};u([x(),l("design:type",String)],Et.prototype,"orig",void 0);u([x(),l("design:type",String)],Et.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],Et.prototype,"modBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pRedBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMS",void 0);u([g(),f({fixed:4}),pm(100),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"pDif",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Et.prototype,"vICMSDif",void 0);var rr=class{static{a(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([x(),l("design:type",String)],rr.prototype,"orig",void 0);u([x(),l("design:type",String)],rr.prototype,"CST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rr.prototype,"vBCSTRet",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rr.prototype,"pST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rr.prototype,"vICMSSubstituto",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rr.prototype,"vICMSSTRet",void 0);var vt=class{static{a(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([x(),l("design:type",String)],vt.prototype,"orig",void 0);u([x(),l("design:type",String)],vt.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],vt.prototype,"modBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pRedBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMS",void 0);u([g(),x(),l("design:type",String)],vt.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],vt.prototype,"vICMSST",void 0);var yt=class{static{a(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};u([x(),l("design:type",String)],yt.prototype,"orig",void 0);u([x(),l("design:type",String)],yt.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],yt.prototype,"modBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pRedBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMS",void 0);u([g(),x(),l("design:type",String)],yt.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],yt.prototype,"vICMSST",void 0);var De=class{static{a(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};u([x(),l("design:type",String)],De.prototype,"orig",void 0);u([x(),l("design:type",String)],De.prototype,"CST",void 0);u([g(),x(),l("design:type",String)],De.prototype,"modBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pRedBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vICMS",void 0);u([g(),x(),l("design:type",String)],De.prototype,"modBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pMVAST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pRedBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"vICMSST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],De.prototype,"pBCOp",void 0);u([g(),x(),l("design:type",String)],De.prototype,"UFST",void 0);var nr=class{static{a(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([x(),l("design:type",String)],nr.prototype,"orig",void 0);u([x(),l("design:type",String)],nr.prototype,"CST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nr.prototype,"vBCSTRet",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nr.prototype,"pST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nr.prototype,"vICMSSubstituto",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nr.prototype,"vICMSSTRet",void 0);var un=class{static{a(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};u([x(),l("design:type",String)],un.prototype,"orig",void 0);u([x(),l("design:type",String)],un.prototype,"CSOSN",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],un.prototype,"pCredSN",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],un.prototype,"vCredICMSSN",void 0);var $i=class{static{a(this,"ICMSSN102")}orig;CSOSN};u([x(),l("design:type",String)],$i.prototype,"orig",void 0);u([x(),l("design:type",String)],$i.prototype,"CSOSN",void 0);var Kt=class{static{a(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};u([x(),l("design:type",String)],Kt.prototype,"orig",void 0);u([x(),l("design:type",String)],Kt.prototype,"CSOSN",void 0);u([g(),x(),l("design:type",String)],Kt.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vICMSST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"pCredSN",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Kt.prototype,"vCredICMSSN",void 0);var ir=class{static{a(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};u([x(),l("design:type",String)],ir.prototype,"orig",void 0);u([x(),l("design:type",String)],ir.prototype,"CSOSN",void 0);u([g(),x(),l("design:type",String)],ir.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ir.prototype,"vICMSST",void 0);var ar=class{static{a(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};u([x(),l("design:type",String)],ar.prototype,"orig",void 0);u([x(),l("design:type",String)],ar.prototype,"CSOSN",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vBCSTRet",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"pST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vICMSSubstituto",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ar.prototype,"vICMSSTRet",void 0);var et=class{static{a(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};u([x(),l("design:type",String)],et.prototype,"orig",void 0);u([x(),l("design:type",String)],et.prototype,"CSOSN",void 0);u([g(),x(),l("design:type",String)],et.prototype,"modBC",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pRedBC",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pICMS",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vICMS",void 0);u([g(),x(),l("design:type",String)],et.prototype,"modBCST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vBCST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pICMSST",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vICMSST",void 0);u([g(),f({fixed:4}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"pCredSN",void 0);u([g(),f({fixed:2}),l("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],et.prototype,"vCredICMSSN",void 0);var k=class{static{a(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};u([g(),$e(),Je(()=>tr),l("design:type",typeof IICMS00>"u"?Object:IICMS00)],k.prototype,"ICMS00",void 0);u([g(),$e(),Je(()=>Rt),l("design:type",typeof IICMS10>"u"?Object:IICMS10)],k.prototype,"ICMS10",void 0);u([g(),$e(),Je(()=>Ro),l("design:type",typeof IICMS20>"u"?Object:IICMS20)],k.prototype,"ICMS20",void 0);u([g(),$e(),Je(()=>or),l("design:type",typeof IICMS30>"u"?Object:IICMS30)],k.prototype,"ICMS30",void 0);u([g(),$e(),Je(()=>dn),l("design:type",typeof IICMS40>"u"?Object:IICMS40)],k.prototype,"ICMS40",void 0);u([g(),$e(),Je(()=>Et),l("design:type",typeof IICMS51>"u"?Object:IICMS51)],k.prototype,"ICMS51",void 0);u([g(),$e(),Je(()=>rr),l("design:type",typeof IICMS60>"u"?Object:IICMS60)],k.prototype,"ICMS60",void 0);u([g(),$e(),Je(()=>vt),l("design:type",typeof IICMS70>"u"?Object:IICMS70)],k.prototype,"ICMS70",void 0);u([g(),$e(),Je(()=>yt),l("design:type",typeof IICMS90>"u"?Object:IICMS90)],k.prototype,"ICMS90",void 0);u([g(),$e(),Je(()=>De),l("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],k.prototype,"ICMSPart",void 0);u([g(),$e(),Je(()=>nr),l("design:type",typeof IICMSST>"u"?Object:IICMSST)],k.prototype,"ICMSST",void 0);u([g(),$e(),Je(()=>un),l("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],k.prototype,"ICMSSN101",void 0);u([g(),$e(),Je(()=>$i),l("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],k.prototype,"ICMSSN102",void 0);u([g(),$e(),Je(()=>Kt),l("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],k.prototype,"ICMSSN201",void 0);u([g(),$e(),Je(()=>ir),l("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],k.prototype,"ICMSSN202",void 0);u([g(),$e(),Je(()=>ar),l("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],k.prototype,"ICMSSN500",void 0);u([g(),$e(),Je(()=>et),l("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],k.prototype,"ICMSSN900",void 0);k=u([H({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],k);import{IsOptional as Fo,IsString as Zt,ValidateNested as Mf}from"class-validator";import{Type as Lf}from"class-transformer";function Ft(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ft,"_ts_decorate");function It(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(It,"_ts_metadata");var sr=class{static{a(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Ft([Zt(),It("design:type",String)],sr.prototype,"CST",void 0);Ft([Fo(),Zt(),It("design:type",String)],sr.prototype,"vBC",void 0);Ft([Fo(),Zt(),It("design:type",String)],sr.prototype,"pIPI",void 0);Ft([Fo(),Zt(),It("design:type",String)],sr.prototype,"qUnid",void 0);Ft([Fo(),Zt(),It("design:type",String)],sr.prototype,"vUnid",void 0);Ft([Fo(),Zt(),It("design:type",String)],sr.prototype,"vIPI",void 0);var Pa=class{static{a(this,"IPINT")}CST};Ft([Zt(),It("design:type",String)],Pa.prototype,"CST",void 0);var Pt=class{static{a(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Ft([Fo(),Zt(),It("design:type",String)],Pt.prototype,"CNPJProd",void 0);Ft([Fo(),Zt(),It("design:type",String)],Pt.prototype,"cSelo",void 0);Ft([Fo(),Zt(),It("design:type",String)],Pt.prototype,"qSelo",void 0);Ft([Zt(),It("design:type",String)],Pt.prototype,"cEnq",void 0);Ft([Fo(),Mf(),Lf(()=>sr),It("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],Pt.prototype,"IPITrib",void 0);Ft([Fo(),Mf(),Lf(()=>Pa),It("design:type",typeof IIPINT>"u"?Object:IIPINT)],Pt.prototype,"IPINT",void 0);import{IsOptional as Ta,IsString as _a}from"class-validator";function Da(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Da,"_ts_decorate");function ja(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ja,"_ts_metadata");var Io=class{static{a(this,"II")}vBC;vDespAdu;vII;vIOF};Da([Ta(),_a(),ja("design:type",String)],Io.prototype,"vBC",void 0);Da([Ta(),_a(),ja("design:type",String)],Io.prototype,"vDespAdu",void 0);Da([Ta(),_a(),ja("design:type",String)],Io.prototype,"vII",void 0);Da([Ta(),_a(),ja("design:type",String)],Io.prototype,"vIOF",void 0);import{IsOptional as Se,IsString as Ne,ValidateNested as Va}from"class-validator";import{Type as Ma}from"class-transformer";function ie(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ie,"_ts_decorate");function ae(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ae,"_ts_metadata");var pr=class{static{a(this,"PISAliq")}CST;vBC;pPIS;vPIS};ie([Ne(),ae("design:type",String)],pr.prototype,"CST",void 0);ie([Se(),Ne(),ae("design:type",String)],pr.prototype,"vBC",void 0);ie([Se(),Ne(),ae("design:type",String)],pr.prototype,"pPIS",void 0);ie([Se(),Ne(),ae("design:type",String)],pr.prototype,"vPIS",void 0);var cr=class{static{a(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};ie([Ne(),ae("design:type",String)],cr.prototype,"CST",void 0);ie([Se(),Ne(),ae("design:type",String)],cr.prototype,"qBCProd",void 0);ie([Se(),Ne(),ae("design:type",String)],cr.prototype,"vAliqProd",void 0);ie([Se(),Ne(),ae("design:type",String)],cr.prototype,"vPIS",void 0);var kn=class{static{a(this,"PISNT")}CST};ie([Ne(),ae("design:type",String)],kn.prototype,"CST",void 0);var kt=class{static{a(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};ie([Ne(),ae("design:type",String)],kt.prototype,"CST",void 0);ie([Se(),Ne(),ae("design:type",String)],kt.prototype,"vBC",void 0);ie([Se(),Ne(),ae("design:type",String)],kt.prototype,"pPIS",void 0);ie([Se(),Ne(),ae("design:type",String)],kt.prototype,"qBCProd",void 0);ie([Se(),Ne(),ae("design:type",String)],kt.prototype,"vAliqProd",void 0);ie([Se(),Ne(),ae("design:type",String)],kt.prototype,"vPIS",void 0);var zo=class{static{a(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};ie([Se(),Va(),Ma(()=>pr),ae("design:type",typeof pr>"u"?Object:pr)],zo.prototype,"PISAliq",void 0);ie([Se(),Va(),Ma(()=>cr),ae("design:type",typeof cr>"u"?Object:cr)],zo.prototype,"PISQtde",void 0);ie([Se(),Va(),Ma(()=>kn),ae("design:type",typeof kn>"u"?Object:kn)],zo.prototype,"PISNT",void 0);ie([Se(),Va(),Ma(()=>kt),ae("design:type",typeof kt>"u"?Object:kt)],zo.prototype,"PISOutr",void 0);var eo=class{static{a(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};ie([Se(),Ne(),ae("design:type",String)],eo.prototype,"vBC",void 0);ie([Se(),Ne(),ae("design:type",String)],eo.prototype,"pPIS",void 0);ie([Se(),Ne(),ae("design:type",String)],eo.prototype,"qBCProd",void 0);ie([Se(),Ne(),ae("design:type",String)],eo.prototype,"vAliqProd",void 0);ie([Se(),Ne(),ae("design:type",String)],eo.prototype,"vPIS",void 0);import{IsOptional as Ce,IsString as be,ValidateNested as La}from"class-validator";import{Type as Ba}from"class-transformer";function se(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(se,"_ts_decorate");function pe(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(pe,"_ts_metadata");var fr=class{static{a(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};se([be(),pe("design:type",String)],fr.prototype,"CST",void 0);se([Ce(),be(),pe("design:type",String)],fr.prototype,"vBC",void 0);se([Ce(),be(),pe("design:type",String)],fr.prototype,"pCOFINS",void 0);se([Ce(),be(),pe("design:type",String)],fr.prototype,"vCOFINS",void 0);var dr=class{static{a(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};se([be(),pe("design:type",String)],dr.prototype,"CST",void 0);se([Ce(),be(),pe("design:type",String)],dr.prototype,"qBCProd",void 0);se([Ce(),be(),pe("design:type",String)],dr.prototype,"vAliqProd",void 0);se([Ce(),be(),pe("design:type",String)],dr.prototype,"vCOFINS",void 0);var ei=class{static{a(this,"COFINSNT")}CST};se([be(),pe("design:type",String)],ei.prototype,"CST",void 0);var to=class{static{a(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};se([be(),pe("design:type",String)],to.prototype,"CST",void 0);se([Ce(),be(),pe("design:type",String)],to.prototype,"vBC",void 0);se([Ce(),be(),pe("design:type",String)],to.prototype,"pCOFINS",void 0);se([Ce(),be(),pe("design:type",String)],to.prototype,"qBCProd",void 0);se([Ce(),be(),pe("design:type",String)],to.prototype,"vAliqProd",void 0);se([Ce(),be(),pe("design:type",String)],to.prototype,"vCOFINS",void 0);var Oo=class{static{a(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};se([Ce(),La(),Ba(()=>fr),pe("design:type",typeof fr>"u"?Object:fr)],Oo.prototype,"COFINSAliq",void 0);se([Ce(),La(),Ba(()=>dr),pe("design:type",typeof dr>"u"?Object:dr)],Oo.prototype,"COFINSQtde",void 0);se([Ce(),La(),Ba(()=>ei),pe("design:type",typeof ei>"u"?Object:ei)],Oo.prototype,"COFINSNT",void 0);se([Ce(),La(),Ba(()=>to),pe("design:type",typeof to>"u"?Object:to)],Oo.prototype,"COFINSOutr",void 0);var oo=class{static{a(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};se([Ce(),be(),pe("design:type",String)],oo.prototype,"vBC",void 0);se([Ce(),be(),pe("design:type",String)],oo.prototype,"pCOFINS",void 0);se([Ce(),be(),pe("design:type",String)],oo.prototype,"qBCProd",void 0);se([Ce(),be(),pe("design:type",String)],oo.prototype,"vAliqProd",void 0);se([Ce(),be(),pe("design:type",String)],oo.prototype,"vCOFINS",void 0);import{IsOptional as ri,IsString as ni}from"class-validator";function ti(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ti,"_ts_decorate");function oi(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(oi,"_ts_metadata");var Dt=class{static{a(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"vBC",void 0);ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"vAliq",void 0);ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"vISSQN",void 0);ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"cMunFG",void 0);ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"cListServ",void 0);ti([ri(),ni(),oi("design:type",String)],Dt.prototype,"cSitTrib",void 0);import{IsOptional as mr,IsString as vr}from"class-validator";function ur(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ur,"_ts_decorate");function lr(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(lr,"_ts_metadata");var at=class{static{a(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};ur([mr(),vr(),lr("design:type",String)],at.prototype,"vBCUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"vBCFCPUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"pFCPUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"pICMSUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"pICMSInter",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"pICMSInterPart",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"vFCPUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"vICMSUFDest",void 0);ur([mr(),vr(),lr("design:type",String)],at.prototype,"vICMSUFRemet",void 0);function ro(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ro,"_ts_decorate");function xo(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(xo,"_ts_metadata");var je=class{static{a(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};ro([Ao(),cm(),xo("design:type",Number)],je.prototype,"vTotTrib",void 0);ro([Ao(),gr(),yr(()=>k),xo("design:type",typeof IICMS>"u"?Object:IICMS)],je.prototype,"ICMS",void 0);ro([Ao(),gr(),yr(()=>Pt),xo("design:type",typeof IIPI>"u"?Object:IIPI)],je.prototype,"IPI",void 0);ro([Ao(),gr(),yr(()=>Dt),xo("design:type",typeof IISSQN>"u"?Object:IISSQN)],je.prototype,"ISSQN",void 0);ro([Ao(),gr(),yr(()=>Io),xo("design:type",typeof III>"u"?Object:III)],je.prototype,"II",void 0);ro([Ao(),gr(),yr(()=>zo),xo("design:type",typeof IPIS>"u"?Object:IPIS)],je.prototype,"PIS",void 0);ro([Ao(),gr(),yr(()=>eo),xo("design:type",typeof IPISST>"u"?Object:IPISST)],je.prototype,"PISST",void 0);ro([Ao(),gr(),yr(()=>Oo),xo("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],je.prototype,"COFINS",void 0);ro([Ao(),gr(),yr(()=>oo),xo("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],je.prototype,"COFINSST",void 0);ro([Ao(),gr(),yr(()=>at),xo("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],je.prototype,"ICMSUFDest",void 0);je=ro([H({properties:["ICMS","ISSQN"]})],je);import{IsOptional as fm,IsString as Bf,ValidateNested as dm}from"class-validator";import{Type as um}from"class-transformer";function Ap(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Ap,"_ts_decorate");function wp(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(wp,"_ts_metadata");var Ua=class{static{a(this,"IpiDevol")}vIPIDevol};Ap([Bf(),wp("design:type",String)],Ua.prototype,"vIPIDevol",void 0);var ii=class{static{a(this,"Devol")}pDevol;IPI};Ap([Bf(),wp("design:type",String)],ii.prototype,"pDevol",void 0);Ap([fm(),dm(),um(()=>Ua),wp("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],ii.prototype,"IPI",void 0);import{IsOptional as Uf,IsString as qf,ValidateNested as Qf}from"class-validator";import{Type as Hf}from"class-transformer";function qa(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(qa,"_ts_decorate");function Qa(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Qa,"_ts_metadata");var ai=class{static{a(this,"Observation")}xCampo;xTexto};qa([qf(),Qa("design:type",String)],ai.prototype,"xCampo",void 0);qa([qf(),Qa("design:type",String)],ai.prototype,"xTexto",void 0);var si=class{static{a(this,"ObsItem")}obsCont;obsFisco};qa([Uf(),Qf(),Hf(()=>ai),Qa("design:type",typeof IObservation>"u"?Object:IObservation)],si.prototype,"obsCont",void 0);qa([Uf(),Qf(),Hf(()=>ai),Qa("design:type",typeof IObservation>"u"?Object:IObservation)],si.prototype,"obsFisco",void 0);function ln(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ln,"_ts_decorate");function mn(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(mn,"_ts_metadata");var pi=class{static{a(this,"DetAttributes")}nItem};ln([$f(),mn("design:type",String)],pi.prototype,"nItem",void 0);var wo=class{static{a(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};ln([lm(),Ji(),Gi(()=>pi),mn("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],wo.prototype,"$",void 0);ln([Ji(),Gi(()=>E),mn("design:type",typeof IProd>"u"?Object:IProd)],wo.prototype,"prod",void 0);ln([Ha(),Ji(),Gi(()=>je),mn("design:type",typeof IImposto>"u"?Object:IImposto)],wo.prototype,"imposto",void 0);ln([Ha(),Ji(),Gi(()=>ii),mn("design:type",typeof IDevol>"u"?Object:IDevol)],wo.prototype,"impostoDevol",void 0);ln([Ha(),$f(),mn("design:type",String)],wo.prototype,"infAdProd",void 0);ln([Ha(),Ji(),Gi(()=>si),mn("design:type",typeof IObsItem>"u"?Object:IObsItem)],wo.prototype,"obsItem",void 0);import{IsDate as mm,IsOptional as Wi,IsString as Lr}from"class-validator";function no(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(no,"_ts_decorate");function io(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(io,"_ts_metadata");var Ge=class{static{a(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};no([Lr(),io("design:type",String)],Ge.prototype,"CNPJ",void 0);no([Lr(),io("design:type",String)],Ge.prototype,"xOrgao",void 0);no([Lr(),io("design:type",String)],Ge.prototype,"matr",void 0);no([Lr(),io("design:type",String)],Ge.prototype,"xAgente",void 0);no([Wi(),Lr(),io("design:type",String)],Ge.prototype,"fone",void 0);no([Lr(),io("design:type",String)],Ge.prototype,"UF",void 0);no([Wi(),Lr(),io("design:type",String)],Ge.prototype,"nDAR",void 0);no([Wi(),Fr({format:"YYYY-MM-DD"}),io("design:type",typeof Date>"u"?Object:Date)],Ge.prototype,"dEmi",void 0);no([Wi(),f({fixed:2}),io("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ge.prototype,"vDAR",void 0);no([Lr(),io("design:type",String)],Ge.prototype,"repEmi",void 0);no([Wi(),mm(),io("design:type",typeof Date>"u"?Object:Date)],Ge.prototype,"dPag",void 0);import{IsString as gm}from"class-validator";function vm(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(vm,"_ts_decorate");function ym(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ym,"_ts_metadata");var vn=class{static{a(this,"InfSolicNFF")}xSolic};vm([gm(),ym("design:type",String)],vn.prototype,"xSolic",void 0);function de(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(de,"_ts_decorate");function ue(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ue,"_ts_metadata");var yn=class{static{a(this,"InfNFeAttributes")}Id;versao};de([st(),Gf(),ue("design:type",String)],yn.prototype,"Id",void 0);de([st(),Gf(),ue("design:type",String)],yn.prototype,"versao",void 0);var K=class{static{a(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};de([Pp(),Ep(),Fe(()=>yn),Re(),ue("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],K.prototype,"$",void 0);de([Pp(),Ep(),Re(),Fe(()=>q),ue("design:type",typeof IIde>"u"?Object:IIde)],K.prototype,"ide",void 0);de([Pp(),Ep(),Re(),Fe(()=>Ae),ue("design:type",typeof IEmit>"u"?Object:IEmit)],K.prototype,"emit",void 0);de([st(),Re(),Fe(()=>Ge),ue("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],K.prototype,"avulsa",void 0);de([st(),Re(),Fe(()=>we),ue("design:type",typeof IDest>"u"?Object:IDest)],K.prototype,"dest",void 0);de([st(),Re(),Fe(()=>X),ue("design:type",typeof ILocal>"u"?Object:ILocal)],K.prototype,"retirada",void 0);de([st(),Re(),Fe(()=>X),ue("design:type",typeof ILocal>"u"?Object:ILocal)],K.prototype,"entrega",void 0);de([st(),Re({each:!0}),Jf(10),Fe(()=>ho),ue("design:type",Array)],K.prototype,"autXML",void 0);de([Re({each:!0}),Jf(990),hm(1),Fe(()=>wo),ue("design:type",Array)],K.prototype,"det",void 0);de([Re(),Fe(()=>qo),ue("design:type",typeof ITotal>"u"?Object:ITotal)],K.prototype,"total",void 0);de([Re(),Fe(()=>Ze),ue("design:type",typeof ITransp>"u"?Object:ITransp)],K.prototype,"transp",void 0);de([st(),Re(),Fe(()=>Pr),ue("design:type",typeof ICobr>"u"?Object:ICobr)],K.prototype,"cobr",void 0);de([Re(),Fe(()=>Dr),ue("design:type",typeof IPag>"u"?Object:IPag)],K.prototype,"pag",void 0);de([st(),Re(),Fe(()=>Ar),ue("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],K.prototype,"infIntermed",void 0);de([st(),Re(),Fe(()=>Xt),ue("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],K.prototype,"infAdic",void 0);de([st(),Re(),Fe(()=>Bo),ue("design:type",typeof IExporta>"u"?Object:IExporta)],K.prototype,"exporta",void 0);de([st(),Re(),Fe(()=>Uo),ue("design:type",typeof ICompra>"u"?Object:ICompra)],K.prototype,"compra",void 0);de([st(),Re(),Fe(()=>ke),ue("design:type",typeof ICana>"u"?Object:ICana)],K.prototype,"cana",void 0);de([st(),Re(),Fe(()=>Ot),ue("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],K.prototype,"infRespTec",void 0);de([st(),Re(),Fe(()=>vn),ue("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],K.prototype,"infSolicNFF",void 0);import{Type as Kf}from"class-transformer";function $a(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a($a,"_ts_decorate");function Ja(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ja,"_ts_metadata");var ci=class{static{a(this,"NFeAttributes")}xmlns};$a([Cm(),Nm(),Ja("design:type",String)],ci.prototype,"xmlns",void 0);var Eo=class{static{a(this,"NFe")}$;infNFe;Signature};$a([Yf(),Wf(),Kf(()=>ci),Xf(),Ja("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],Eo.prototype,"$",void 0);$a([Yf(),Wf(),Kf(()=>K),Xf(),Ja("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],Eo.prototype,"infNFe",void 0);$a([Sm(),Ja("design:type",typeof Signature>"u"?Object:Signature)],Eo.prototype,"Signature",void 0);function Yi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Yi,"_ts_decorate");function Ga(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Ga,"_ts_metadata");var hr=class{static{a(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Yi([Dp(S),jp(),Ga("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],hr.prototype,"tpAmb",void 0);Yi([Dp(d),jp(),Ga("design:type",typeof StateCode>"u"?Object:StateCode)],hr.prototype,"cUF",void 0);Yi([Rm(),Ga("design:type",String)],hr.prototype,"idLote",void 0);Yi([jp(),Dp(["0","1"])],hr.prototype,"indSinc",void 0);Yi([Fm(),bm(()=>Eo),Ga("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],hr.prototype,"NFe",void 0);import{IsEnum as Zf,IsString as Im}from"class-validator";function Tp(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Tp,"_ts_decorate");function _p(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_p,"_ts_metadata");var gn=class{static{a(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};Tp([Zf(S),_p("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gn.prototype,"tpAmb",void 0);Tp([Zf(d),_p("design:type",typeof StateCode>"u"?Object:StateCode)],gn.prototype,"cUF",void 0);Tp([Im(),_p("design:type",String)],gn.prototype,"nRec",void 0);import{IsString as Sr,IsNotEmpty as zm,ValidateNested as Ka,IsObject as Za,IsOptional as kf,IsEnum as Om,IsNumber as xm,Allow as Am}from"class-validator";import{Type as ka}from"class-transformer";var Wa=(function(t){return t.Cancelamento="110111",t})({});function ze(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(ze,"_ts_decorate");function _e(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(_e,"_ts_metadata");var Ya=class{static{a(this,"InfEventoAttributes")}Id};ze([Sr(),_e("design:type",String)],Ya.prototype,"Id",void 0);var Te=class{static{a(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};ze([Za(),Ka(),ka(()=>Ya),_e("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],Te.prototype,"$",void 0);ze([Sr(),_e("design:type",typeof StateCode>"u"?Object:StateCode)],Te.prototype,"cOrgao",void 0);ze([Sr(),_e("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Te.prototype,"tpAmb",void 0);ze([Sr(),kf(),_e("design:type",String)],Te.prototype,"CNPJ",void 0);ze([Sr(),kf(),_e("design:type",String)],Te.prototype,"CPF",void 0);ze([Sr(),_e("design:type",String)],Te.prototype,"chNFe",void 0);ze([Fr({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),_e("design:type",String)],Te.prototype,"dhEvento",void 0);ze([Om(Wa),_e("design:type",typeof Wa>"u"?Object:Wa)],Te.prototype,"tpEvento",void 0);ze([xm(),_e("design:type",Number)],Te.prototype,"nSeqEvento",void 0);ze([Sr(),_e("design:type",String)],Te.prototype,"verEvento",void 0);ze([Za(),_e("design:type",typeof T>"u"?Object:T)],Te.prototype,"detEvento",void 0);Te=ze([H({properties:["CNPJ","CPF"],required:!0})],Te);var Xa=class{static{a(this,"EventoItemAttributes")}xmlns};ze([Sr(),_e("design:type",String)],Xa.prototype,"xmlns",void 0);var Br=class{static{a(this,"EventoItem")}$;infEvento;Signature};ze([Za(),Ka(),ka(()=>Xa),_e("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],Br.prototype,"$",void 0);ze([Za(),Ka(),ka(()=>Te),_e("design:type",typeof Te>"u"?Object:Te)],Br.prototype,"infEvento",void 0);ze([Am(),_e("design:type",typeof Signature>"u"?Object:Signature)],Br.prototype,"Signature",void 0);var fi=class{static{a(this,"EventoPayload")}idLote;evento};ze([Sr(),_e("design:type",String)],fi.prototype,"idLote",void 0);ze([zm(),Ka(),ka(()=>Br),_e("design:type",typeof Br>"u"?Object:Br)],fi.prototype,"evento",void 0);import{IsIn as wm,IsOptional as ts,IsString as os}from"class-validator";function di(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(di,"_ts_decorate");function es(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(es,"_ts_metadata");var ao=class{static{a(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};di([ts()],ao.prototype,"xServ",void 0);di([os(),wm(Object.values($p)),es("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],ao.prototype,"UF",void 0);di([ts(),os(),es("design:type",String)],ao.prototype,"IE",void 0);di([ts(),os(),es("design:type",String)],ao.prototype,"CNPJ",void 0);di([ts(),os(),es("design:type",String)],ao.prototype,"CPF",void 0);ao=di([H({properties:["IE","CNPJ","CPF"],required:!0})],ao);var ed={AM:{[S.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"}},[S.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:{[S.Homolog]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hom1.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://hom1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://hom.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://hom.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}},[S.Production]:{RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://www.nfe.fazenda.gov.br/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeDistribuicaoDFe:{method:"nfeDistDFeInteresse",operation:"NFeDistribuicaoDFe",version:"1.01",url:"https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx"},NfeConsultaDest:{method:"nfeConsultaNFDest",operation:"NfeConsultaDest",version:"1.01",url:"https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx"},NfeDownloadNF:{method:"nfeDownloadNF",operation:"NfeDownloadNF",version:"4.00",url:"https://www.nfe.fazenda.gov.br/NfeDownloadNF/NfeDownloadNF.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://www.nfe.fazenda.gov.br/RecepcaoEvento/RecepcaoEvento.asmx"}}},BA:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeStatusServico4/NFeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeAutorizacao4/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeConsultaProtocolo4/NFeConsultaProtocolo4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeInutilizacao4/NFeInutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRetAutorizacao4/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.ba.gov.br/webservices/NFeRecepcaoEvento4/NFeRecepcaoEvento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.ba.gov.br/webservices/CadConsultaCadastro4/CadConsultaCadastro4.asmx"}}},GO:{[S.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"}},[S.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:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://hnfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.fazenda.mg.gov.br/nfe2/services/CadConsultaCadastro4"}}},MS:{[S.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"}},[S.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:{[S.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"}},[S.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:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfehomolog.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefaz.pe.gov.br/nfe-service/services/CadConsultaCadastro4"}}},PR:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://homologacao.nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeStatusServico4"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeAutorizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeConsultaProtocolo4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeInutilizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRetAutorizacao4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefa.pr.gov.br/nfe/NFeRecepcaoEvento4"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://nfe.sefa.pr.gov.br/nfe/CadConsultaCadastro4"}}},RS:{[S.Homolog]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe-homologacao.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.sefazrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.sefazrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SP:{[S.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"}},[S.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:{[S.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"}},[S.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:{[S.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"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}},SVCAN:{[S.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"}},[S.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:{[S.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"}},[S.Production]:{NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeStatusServico/NfeStatusServico4.asmx"},NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeAutorizacao/NFeAutorizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeConsulta/NfeConsulta4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/nfeinutilizacao/nfeinutilizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfe.svrs.rs.gov.br/ws/NfeRetAutorizacao/NFeRetAutorizacao4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfe.svrs.rs.gov.br/ws/recepcaoevento/recepcaoevento4.asmx"},NfeConsultaCadastro:{method:"consultaCadastro4",operation:"CadConsultaCadastro4",version:"2.00",url:"https://cad.svrs.rs.gov.br/ws/cadconsultacadastro/cadconsultacadastro4.asmx"}}}};var Em={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"BA",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVAN",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"PE",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},td=Em;var rs={[d.AC]:"SVCAN",[d.AL]:"SVCAN",[d.AM]:"SVCRS",[d.AP]:"SVCAN",[d.BA]:"SVCRS",[d.CE]:"SVCAN",[d.DF]:"SVCAN",[d.ES]:"SVCAN",[d.GO]:"SVCRS",[d.MA]:"SVCRS",[d.MG]:"SVCAN",[d.MS]:"SVCRS",[d.MT]:"SVCRS",[d.PA]:"SVCAN",[d.PB]:"SVCAN",[d.PE]:"SVCRS",[d.PI]:"SVCAN",[d.PR]:"SVCRS",[d.RJ]:"SVCAN",[d.RN]:"SVCAN",[d.RO]:"SVCAN",[d.RR]:"SVCAN",[d.RS]:"SVCAN",[d.SC]:"SVCAN",[d.SE]:"SVCAN",[d.SP]:"SVCAN",[d.TO]:"SVCAN"};function hn(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(hn,"_ts_decorate");function ye(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ye,"_ts_metadata");var zt=class{static{a(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:o}=this.options;return o&&this.remoteTransmissionRepository.setCertificate(o),this.options.schema??=kp.PL_009_V4,this}service(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?rs[o]:td[o];return ed[i][n][e.service]}errors(){return Reflect.getMetadata(fo,this)}validate(e){try{let o=this.errors();return o?bn(new Cn(o.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),co(e))}finally{Reflect.deleteMetadata(fo,this)}}ns(e,o){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=o,{...e,$:n}}xsd(e){return Pm.resolve(Zp,this.options.schema,e)}async consultStatus(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeStatusServico"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consStatServ_v4.00.xsd"),payload:{consStatServ:this.ns(n,i.version)},method:"nfeStatusServicoNF"})}async inutilizacao(e){let o=this.validate(e);if(o.isLeft())return o;let{cUF:n,tpAmb:i}=o.value.infInut,r=o.value,s=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:s.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(r,s.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({cUF:n.chNFe.substring(0,2),tpAmb:n.tpAmb,service:"NfeConsultaProtocolo"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consSitNFe_v4.00.xsd"),payload:{consSitNFe:this.ns(n,i.version)},method:"nfeConsultaNF"})}async autorizacao(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("enviNFe_v4.00.xsd"),payload:{enviNFe:this.ns(n,i.version)},method:"nfeAutorizacaoLote"})}async retAutorizacao(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({...n,service:"NfeRetAutorizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("consReciNFe_v4.00.xsd"),payload:{consReciNFe:this.ns(n,i.version)},method:"nfeRetAutorizacaoLote"})}async recepcaoEvento(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({service:"RecepcaoEvento"});return n.evento=this.ns(n.evento,i.version),this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("envEvento_v1.00.xsd"),payload:{envEvento:this.ns(n,i.version)},method:"nfeRecepcaoEvento"})}async consultaCadastro(e){let o=this.validate(e);if(o.isLeft())return o;let n=o.value,i=this.service({cUF:d[n.UF],service:"NfeConsultaCadastro"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:i.url,xsd:this.xsd("ConsCad_v4.00.xsd"),payload:{ConsCad:this.ns(n,i.version)},method:"consultaCadastro"})}};hn([D(xr),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),ye("design:returntype",Promise)],zt.prototype,"consultStatus",null);hn([D(Yr),ye("design:type",Function),ye("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),ye("design:returntype",Promise)],zt.prototype,"inutilizacao",null);hn([D(Xr),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),ye("design:returntype",Promise)],zt.prototype,"consultaProtocolo",null);hn([D(hr),ye("design:type",Function),ye("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),ye("design:returntype",Promise)],zt.prototype,"autorizacao",null);hn([D(gn),ye("design:type",Function),ye("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),ye("design:returntype",Promise)],zt.prototype,"retAutorizacao",null);hn([D(fi),ye("design:type",Function),ye("design:paramtypes",[Object]),ye("design:returntype",Promise)],zt.prototype,"recepcaoEvento",null);hn([D(ao),ye("design:type",Function),ye("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),ye("design:returntype",Promise)],zt.prototype,"consultaCadastro",null);var ns=class{static{a(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=ga.create();toolkit=new Kp;caching=new Wp;certificates=new Yp(this.http,this.caching);soap=new Xp(this.toolkit,this.certificates);transmitter=new zt(this.soap);signer=new Jp(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(fo,this)}};var od=class extends ns{static{a(this,"NfeAuthorizerPipeline")}async execute(e,o){let n=await this.certificates.read(this.certificate);if(n.isLeft())return n;let i=await this.signer.sign(e.NFe,{tag:"infNFe",mark:"Id"},n.value);return i.isLeft()?i:(this.transmitter.configure({cUF:e.NFe.infNFe.ide.cUF,tpAmb:e.NFe.infNFe.ide.tpAmb,...o,contingency:this.contingency(e),certificate:n.value}),e.idLote??=new Date().getTime().toString().slice(0,15),await this.transmitter.autorizacao({...e,NFe:i.value}))}contingency(e){let{dhCont:o,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!o||!n||i===St.Normal))return{dhCont:o,xJust:n}}};var Vp={AC:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[S.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"}},[S.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:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[S.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"}},[S.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:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[S.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"}},[S.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:{[S.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"}},[S.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:{[S.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"}},[S.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:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://homologacao.nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeAutorizacao4"},NfeRetAutorizacao:{method:"nfeRetAutorizacao",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRetAutorizacao4"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeInutilizacao4"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeConsultaProtocolo4"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeStatusServico4"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento",version:"1.00",url:"https://nfce.sefa.pr.gov.br/nfce/NFeRecepcaoEvento4"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.pr.gov.br/nfce/qrcode"}}},RJ:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[S.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"}},[S.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:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[S.Homolog]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://homologacao.nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://homologacao.nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.homologacao.nfce.fazenda.sp.gov.br/qrcode"}},[S.Production]:{NfeAutorizacao:{method:"nfeAutorizacaoLote",operation:"NFeAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeAutorizacao4.asmx"},NfeRetAutorizacao:{method:"nfeRetAutorizacaoLote",operation:"NFeRetAutorizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRetAutorizacao4.asmx"},NfeInutilizacao:{method:"nfeInutilizacaoNF",operation:"NFeInutilizacao4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeInutilizacao4.asmx"},NfeConsultaProtocolo:{method:"nfeConsultaNF",operation:"NFeConsultaProtocolo4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeConsultaProtocolo4.asmx"},NfeStatusServico:{method:"nfeStatusServicoNF",operation:"NFeStatusServico4",version:"4.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeStatusServico4.asmx"},RecepcaoEvento:{method:"nfeRecepcaoEvento",operation:"NFeRecepcaoEvento4",version:"1.00",url:"https://nfce.fazenda.sp.gov.br/ws/NFeRecepcaoEvento4.asmx"},RecepcaoEPEC:{method:"nfeRecepcaoEvento",operation:"RecepcaoEvento",version:"1.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/RecepcaoEPEC.asmx"},EPECStatusServico:{method:"nfeStatusServicoNF2",operation:"NfeStatusServico2",version:"4.00",url:"https://nfce.epec.fazenda.sp.gov.br/EPECws/EPECStatusServico.asmx"},NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.nfce.fazenda.sp.gov.br/qrcode"}}},TO:{[S.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[S.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[S.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"}},[S.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:{[S.Homolog]:{},[S.Production]:{}}};var rd={[S.Homolog]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfcehom",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[d.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[d.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[S.Production]:{[d.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[d.AL]:"www.sefaz.al.gov.br/nfce/consulta",[d.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[d.AM]:"www.sefaz.am.gov.br/nfce/consulta",[d.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[d.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[d.DF]:"www.fazenda.df.gov.br/nfce/consulta",[d.ES]:"www.sefaz.es.gov.br/nfce/consulta",[d.GO]:"www.sefaz.go.gov.br/nfce/consulta",[d.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[d.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[d.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[d.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[d.PA]:"www.sefa.pa.gov.br/nfce/consulta",[d.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[d.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[d.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[d.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[d.RN]:"www.set.rn.gov.br/nfce/consulta",[d.RO]:"www.sefin.ro.gov.br/nfce/consulta",[d.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[d.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[d.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[d.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[d.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[d.TO]:"www.sefaz.to.gov.br/nfce/consulta",[d.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var Dm={[d.AC]:"SVRS",[d.AL]:"SVRS",[d.AM]:"AM",[d.AP]:"SVRS",[d.BA]:"SVRS",[d.CE]:"SVRS",[d.DF]:"SVRS",[d.ES]:"SVRS",[d.GO]:"GO",[d.MA]:"SVRS",[d.MG]:"MG",[d.MS]:"MS",[d.MT]:"MT",[d.PA]:"SVRS",[d.PB]:"SVRS",[d.PE]:"SVRS",[d.PI]:"SVRS",[d.PR]:"PR",[d.RJ]:"SVRS",[d.RN]:"SVRS",[d.RO]:"SVRS",[d.RR]:"SVRS",[d.RS]:"RS",[d.SC]:"SVRS",[d.SE]:"SVRS",[d.SP]:"SP",[d.TO]:"SVRS",SVRS:"SVRS"},nd=Dm;import{Type as Tm}from"class-transformer";import{IsEnum as Lp,IsOptional as Bp,IsString as _m,IsNotEmpty as Vm}from"class-validator";import{Type as Mp}from"class-transformer";import{Allow as jm,IsNotEmptyObject as pd,IsObject as cd,ValidateNested as fd}from"class-validator";import{IsString as sd}from"class-validator";function id(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(id,"_ts_decorate");function ad(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ad,"_ts_metadata");var ui=class{static{a(this,"InfNFeSupl")}qrCode;urlChave};id([sd(),ad("design:type",String)],ui.prototype,"qrCode",void 0);id([sd(),ad("design:type",String)],ui.prototype,"urlChave",void 0);function is(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(is,"_ts_decorate");function as(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(as,"_ts_metadata");var so=class{static{a(this,"NFCe")}$;infNFe;infNFeSupl;Signature};is([cd(),pd(),Mp(()=>ci),fd(),as("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],so.prototype,"$",void 0);is([cd(),pd(),Mp(()=>K),fd(),as("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],so.prototype,"infNFe",void 0);is([Mp(()=>ui),as("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],so.prototype,"infNFeSupl",void 0);is([jm(),as("design:type",typeof Signature>"u"?Object:Signature)],so.prototype,"Signature",void 0);function Xi(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Xi,"_ts_decorate");function ss(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(ss,"_ts_metadata");var Nr=class{static{a(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};Xi([Lp(S),Bp(),ss("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Nr.prototype,"tpAmb",void 0);Xi([Lp(d),Bp(),ss("design:type",typeof StateCode>"u"?Object:StateCode)],Nr.prototype,"cUF",void 0);Xi([_m(),ss("design:type",String)],Nr.prototype,"idLote",void 0);Xi([Bp(),Lp(["0","1"])],Nr.prototype,"indSinc",void 0);Xi([Vm(),Tm(()=>so),ss("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],Nr.prototype,"NFe",void 0);function Mm(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Mm,"_ts_decorate");function Up(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(Up,"_ts_metadata");var qp=class extends zt{static{a(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,o){super(e),this.remoteTransmissionRepository=e,this.qrCode=o}configure(e){return super.configure(e)}service(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=nd[o],p=Vp[i][n][e.service];if(p)return p;let y=Object.keys(d).find(v=>d[v]===o);return Vp[y][n][e.service]}async autorizacao(e){let o=await this.infNfeSupl(e);return o.isLeft()?o:(e.NFe.infNFeSupl=o.value,super.autorizacao(e))}getUrlConsult(e){let o=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return rd[n][o]}async infNfeSupl(e){let o=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(o.version??=n.version,o.version){case"200":return await this.qrCode.execute(e.NFe,{version:o.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:o.CSC,CSCId:o.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:o.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):bn(new Cn("Certificate is required in QRCode version 3.00"));default:return Zi(o.version)}}};Mm([D(Nr),Up("design:type",Function),Up("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Up("design:returntype",Promise)],qp.prototype,"autorizacao",null);import Lm from"crypto";var dd=class{static{a(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,o){let n=await this.content(e,o);return n.isLeft()?n:co(this.assemble(n.value,o))}async content(e,o){return this.isVersion200(o)?await this.execute200(e,o):this.isVersion300(o)?await this.execute300(e,o):Zi(o)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,o){return{qrCode:e,urlChave:o.urlConsult}}getSequence(e,o){let{version:n,CSCId:i}=o,r=e.infNFe.ide.tpAmb,s=Number.parseInt(i),p=e.infNFe.$.Id?.substring(3),y=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==St.OFFLINE)return`${p}|${y}|${r}|${s}`;let m=e.Signature.SignedInfo.Reference.DigestValue.split("").map(I=>I.charCodeAt(0).toString(16).padStart(2,"0")).join(""),N=new Date(e.infNFe.ide.dhEmi).getDate(),b=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${p}|${y}|${r}|${N}|${b}|${m}|${s}`}async execute200(e,o){let{urlService:n,CSC:i}=o,r=this.getSequence(e,o),s=Lm.createHash("sha1").update(`${r}${i}`).digest("hex").toUpperCase(),p=`${n}?p=`;return Promise.resolve(co(`${p}${r}|${s}`))}async execute300(e,o){let{urlService:n}=o,i=`${n}?p=`,r=e.infNFe.ide.tpAmb,s=e.infNFe.$.Id?.substring(3),p=Number.parseInt(o.version)/100;if(e.infNFe.ide.tpEmis!==St.OFFLINE)return co(`${i}${s}|${p}|${r}`);let y=new Date(e.infNFe.ide.dhEmi).getDate(),v=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),m=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",N=m.length?e.infNFe.ide.idDest:"",b=`${s}|${p}|${r}|${y}|${v}|${N}$`,I=await this.certificateRepository.sign(b,o.certificate.privateKey,Hp.SHA1);return I.isLeft()?I:co(`${i}${b}|${I.value}`)}};function jt(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(jt,"_ts_decorate");function M(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(M,"_ts_metadata");var tt=class{static{a(this,"NfeDetXmlBuilder")}listener;data={};static create(e){return new this(e)}constructor(e){this.listener=e}det(e){return this.data.$=e,this}prod(e){return this.data.prod=e,this.listener?.prod(e),this}imposto(e){return this.data.imposto=e,this}icms(e){return this.data.imposto??={},this.data.imposto.ICMS=e,this.listener?.icms(e),this}issqn(e){return this.data.imposto??={},this.data.imposto.ISSQN=e,this}ii(e){return this.data.imposto??={},this.data.imposto.II=e,this}ipi(e){return this.data.imposto??={},this.data.imposto.IPI=e,this}pis(e){return this.data.imposto??={},this.data.imposto.PIS=e,this}pisst(e){return this.data.imposto??={},this.data.imposto.PISST=e,this}cofins(e){return this.data.imposto??={},this.data.imposto.COFINS=e,this}cofinsst(e){return this.data.imposto??={},this.data.imposto.COFINSST=e,this}icmsufdest(e){return this.data.imposto??={},this.data.imposto.ICMSUFDest=e,this}assemble(){return this.data.imposto&&this.imposto(this.data.imposto),this.data}};jt([D(pi),M("design:type",Function),M("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),M("design:returntype",void 0)],tt.prototype,"det",null);jt([D(E),M("design:type",Function),M("design:paramtypes",[typeof IProd>"u"?Object:IProd]),M("design:returntype",void 0)],tt.prototype,"prod",null);jt([D(je),M("design:type",Function),M("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),M("design:returntype",void 0)],tt.prototype,"imposto",null);jt([D(k),M("design:type",Function),M("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),M("design:returntype",void 0)],tt.prototype,"icms",null);jt([D(Dt),M("design:type",Function),M("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),M("design:returntype",void 0)],tt.prototype,"issqn",null);jt([D(Io),M("design:type",Function),M("design:paramtypes",[typeof III>"u"?Object:III]),M("design:returntype",void 0)],tt.prototype,"ii",null);jt([D(Pt),M("design:type",Function),M("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),M("design:returntype",void 0)],tt.prototype,"ipi",null);jt([D(zo),M("design:type",Function),M("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),M("design:returntype",void 0)],tt.prototype,"pis",null);jt([D(eo),M("design:type",Function),M("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),M("design:returntype",void 0)],tt.prototype,"pisst",null);jt([D(Oo),M("design:type",Function),M("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),M("design:returntype",void 0)],tt.prototype,"cofins",null);jt([D(oo),M("design:type",Function),M("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),M("design:returntype",void 0)],tt.prototype,"cofinsst",null);jt([D(at),M("design:type",Function),M("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),M("design:returntype",void 0)],tt.prototype,"icmsufdest",null);function Oe(t,e,o,n){var i=arguments.length,r=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,o,n);else for(var p=t.length-1;p>=0;p--)(s=t[p])&&(r=(i<3?s(r):i>3?s(e,o,r):s(e,o))||r);return i>3&&r&&Object.defineProperty(e,o,r),r}a(Oe,"_ts_decorate");function z(t,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(t,e)}a(z,"_ts_metadata");var fe=class{static{a(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return Eo}root="NFe";$det=new ea(this);$total=new ta(this);nfeDetXmlBuilder=tt.create(this.$det);static create(e,o){return new this(e,o)}constructor(e,o){this.builder=e,this.contingency=o}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,o){return this.data.infNFe.det=e.map((n,i)=>{let r=o(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(r),r.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let o=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...o.ICMSTot},ISSQNtot:o.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...o.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(fo,this),this}toObject(){let e=this.errors();return e?bn(new Cn(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),co(Gp(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:co(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==S.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:o}=this.data.infNFe.ide;if(o!==St.Normal)return;switch(rs[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=St.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=St.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:o,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!o&&n===St.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:o??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(fo,this)}collect(e){let o=Reflect.getMetadata(fo,e);if(!o)return;let n=this.errors();Reflect.defineMetadata(fo,(n??[]).concat(o),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new ki().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}}};Oe([D(yn),z("design:type",Function),z("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),z("design:returntype",void 0)],fe.prototype,"infNFe",null);Oe([D(q),z("design:type",Function),z("design:paramtypes",[typeof IIde>"u"?Object:IIde]),z("design:returntype",void 0)],fe.prototype,"ide",null);Oe([D(Ae),z("design:type",Function),z("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),z("design:returntype",void 0)],fe.prototype,"emit",null);Oe([D(Ge),z("design:type",Function),z("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),z("design:returntype",void 0)],fe.prototype,"avulsa",null);Oe([D(we),z("design:type",Function),z("design:paramtypes",[typeof IDest>"u"?Object:IDest]),z("design:returntype",void 0)],fe.prototype,"dest",null);Oe([D(X),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],fe.prototype,"retirada",null);Oe([D(X),z("design:type",Function),z("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),z("design:returntype",void 0)],fe.prototype,"entrega",null);Oe([D(ho),z("design:type",Function),z("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),z("design:returntype",void 0)],fe.prototype,"autXML",null);Oe([D(qo),z("design:type",Function),z("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),z("design:returntype",void 0)],fe.prototype,"total",null);Oe([D(Ze),z("design:type",Function),z("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),z("design:returntype",void 0)],fe.prototype,"transp",null);Oe([D(Pr),z("design:type",Function),z("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),z("design:returntype",void 0)],fe.prototype,"cobr",null);Oe([D(Dr),z("design:type",Function),z("design:paramtypes",[typeof IPag>"u"?Object:IPag]),z("design:returntype",void 0)],fe.prototype,"pag",null);Oe([D(Ar),z("design:type",Function),z("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),z("design:returntype",void 0)],fe.prototype,"infIntermed",null);Oe([D(Xt),z("design:type",Function),z("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),z("design:returntype",void 0)],fe.prototype,"infAdic",null);Oe([D(Bo),z("design:type",Function),z("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),z("design:returntype",void 0)],fe.prototype,"exporta",null);Oe([D(Uo),z("design:type",Function),z("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),z("design:returntype",void 0)],fe.prototype,"compra",null);Oe([D(ke),z("design:type",Function),z("design:paramtypes",[typeof ICana>"u"?Object:ICana]),z("design:returntype",void 0)],fe.prototype,"cana",null);Oe([D(Ot),z("design:type",Function),z("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),z("design:returntype",void 0)],fe.prototype,"infRespTec",null);Oe([D(vn),z("design:type",Function),z("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),z("design:returntype",void 0)],fe.prototype,"infSolicNFF",null);var ud=class extends fe{static{a(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return so}static create(e,o){return new this(e,o)}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===St.Normal)return this.data.infNFe.ide.tpEmis=St.OFFLINE,void 0}};export{St as a,Zp as b,ki as c,ea as d,ta as e,Eo as f,zt as g,od as h,so as i,qp as j,dd as k,tt as l,fe as m,ud as n};