nfets 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,17 +1,17 @@
1
1
  "use strict";var Ooe=Object.create;var Ex=Object.defineProperty;var Poe=Object.getOwnPropertyDescriptor;var Boe=Object.getOwnPropertyNames;var Foe=Object.getPrototypeOf,Loe=Object.prototype.hasOwnProperty;var o=(r,e)=>Ex(r,"name",{value:e,configurable:!0});var qs=(r,e)=>()=>(r&&(e=r(r=0)),e);var Z=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ON=(r,e)=>{for(var t in e)Ex(r,t,{get:e[t],enumerable:!0})},IU=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Boe(e))!Loe.call(r,i)&&i!==t&&Ex(r,i,{get:()=>e[i],enumerable:!(n=Poe(e,i))||n.enumerable});return r};var Dr=(r,e,t)=>(t=r!=null?Ooe(Foe(r)):{},IU(e||!r||!r.__esModule?Ex(t,"default",{value:r,enumerable:!0}):t,r)),koe=r=>IU(Ex({},"__esModule",{value:!0}),r);var pr=Z((q2e,zU)=>{"use strict";zU.exports={options:{usePureJavaScript:!1}}});var GU=Z((H2e,$U)=>{"use strict";var EP={};$U.exports=EP;var KU={};EP.encode=function(r,e,t){if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');if(t!==void 0&&typeof t!="number")throw new TypeError('"maxline" must be a number.');var n="";if(!(r instanceof Uint8Array))n=Pue(r,e);else{var i=0,s=e.length,a=e.charAt(0),u=[0];for(i=0;i<r.length;++i){for(var c=0,l=r[i];c<u.length;++c)l+=u[c]<<8,u[c]=l%s,l=l/s|0;for(;l>0;)u.push(l%s),l=l/s|0}for(i=0;r[i]===0&&i<r.length-1;++i)n+=a;for(i=u.length-1;i>=0;--i)n+=e[u[i]]}if(t){var p=new RegExp(".{1,"+t+"}","g");n=n.match(p).join(`\r
2
2
  `)}return n};EP.decode=function(r,e){if(typeof r!="string")throw new TypeError('"input" must be a string.');if(typeof e!="string")throw new TypeError('"alphabet" must be a string.');var t=KU[e];if(!t){t=KU[e]=[];for(var n=0;n<e.length;++n)t[e.charCodeAt(n)]=n}r=r.replace(/\s/g,"");for(var i=e.length,s=e.charAt(0),a=[0],n=0;n<r.length;n++){var u=t[r.charCodeAt(n)];if(u===void 0)return;for(var c=0,l=u;c<a.length;++c)l+=a[c]*i,a[c]=l&255,l>>=8;for(;l>0;)a.push(l&255),l>>=8}for(var p=0;r[p]===s&&p<r.length-1;++p)a.push(0);return typeof Buffer<"u"?Buffer.from(a.reverse()):new Uint8Array(a.reverse())};function Pue(r,e){var t=0,n=e.length,i=e.charAt(0),s=[0];for(t=0;t<r.length();++t){for(var a=0,u=r.at(t);a<s.length;++a)u+=s[a]<<8,s[a]=u%n,u=u/n|0;for(;u>0;)s.push(u%n),u=u/n|0}var c="";for(t=0;r.at(t)===0&&t<r.length()-1;++t)c+=i;for(t=s.length-1;t>=0;--t)c+=e[s[t]];return c}o(Pue,"_encodeWithByteBuffer")});var kr=Z((K2e,QU)=>{"use strict";var XU=pr(),WU=GU(),ae=QU.exports=XU.util=XU.util||{};(function(){if(typeof process<"u"&&process.nextTick&&!process.browser){ae.nextTick=process.nextTick,typeof setImmediate=="function"?ae.setImmediate=setImmediate:ae.setImmediate=ae.nextTick;return}if(typeof setImmediate=="function"){ae.setImmediate=function(){return setImmediate.apply(void 0,arguments)},ae.nextTick=function(u){return setImmediate(u)};return}if(ae.setImmediate=function(u){setTimeout(u,0)},typeof window<"u"&&typeof window.postMessage=="function"){let u=function(c){if(c.source===window&&c.data===r){c.stopPropagation();var l=e.slice();e.length=0,l.forEach(function(p){p()})}};var a=u;o(u,"handler");var r="forge.setImmediate",e=[];ae.setImmediate=function(c){e.push(c),e.length===1&&window.postMessage(r,"*")},window.addEventListener("message",u,!0)}if(typeof MutationObserver<"u"){var t=Date.now(),n=!0,i=document.createElement("div"),e=[];new MutationObserver(function(){var c=e.slice();e.length=0,c.forEach(function(l){l()})}).observe(i,{attributes:!0});var s=ae.setImmediate;ae.setImmediate=function(c){Date.now()-t>15?(t=Date.now(),s(c)):(e.push(c),e.length===1&&i.setAttribute("a",n=!n))}}ae.nextTick=ae.setImmediate})();ae.isNodejs=typeof process<"u"&&process.versions&&process.versions.node;ae.globalScope=(function(){return ae.isNodejs?global:typeof self>"u"?window:self})();ae.isArray=Array.isArray||function(r){return Object.prototype.toString.call(r)==="[object Array]"};ae.isArrayBuffer=function(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer};ae.isArrayBufferView=function(r){return r&&ae.isArrayBuffer(r.buffer)&&r.byteLength!==void 0};function Ox(r){if(!(r===8||r===16||r===24||r===32))throw new Error("Only 8, 16, 24, or 32 bits supported: "+r)}o(Ox,"_checkBitsParam");ae.ByteBuffer=AP;function AP(r){if(this.data="",this.read=0,typeof r=="string")this.data=r;else if(ae.isArrayBuffer(r)||ae.isArrayBufferView(r))if(typeof Buffer<"u"&&r instanceof Buffer)this.data=r.toString("binary");else{var e=new Uint8Array(r);try{this.data=String.fromCharCode.apply(null,e)}catch{for(var t=0;t<e.length;++t)this.putByte(e[t])}}else(r instanceof AP||typeof r=="object"&&typeof r.data=="string"&&typeof r.read=="number")&&(this.data=r.data,this.read=r.read);this._constructedStringLength=0}o(AP,"ByteStringBuffer");ae.ByteStringBuffer=AP;var Bue=4096;ae.ByteStringBuffer.prototype._optimizeConstructedString=function(r){this._constructedStringLength+=r,this._constructedStringLength>Bue&&(this.data.substr(0,1),this._constructedStringLength=0)};ae.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};ae.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};ae.ByteStringBuffer.prototype.putByte=function(r){return this.putBytes(String.fromCharCode(r))};ae.ByteStringBuffer.prototype.fillWithByte=function(r,e){r=String.fromCharCode(r);for(var t=this.data;e>0;)e&1&&(t+=r),e>>>=1,e>0&&(r+=r);return this.data=t,this._optimizeConstructedString(e),this};ae.ByteStringBuffer.prototype.putBytes=function(r){return this.data+=r,this._optimizeConstructedString(r.length),this};ae.ByteStringBuffer.prototype.putString=function(r){return this.putBytes(ae.encodeUtf8(r))};ae.ByteStringBuffer.prototype.putInt16=function(r){return this.putBytes(String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt24=function(r){return this.putBytes(String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt32=function(r){return this.putBytes(String.fromCharCode(r>>24&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255))};ae.ByteStringBuffer.prototype.putInt16Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255))};ae.ByteStringBuffer.prototype.putInt24Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r>>16&255))};ae.ByteStringBuffer.prototype.putInt32Le=function(r){return this.putBytes(String.fromCharCode(r&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>24&255))};ae.ByteStringBuffer.prototype.putInt=function(r,e){Ox(e);var t="";do e-=8,t+=String.fromCharCode(r>>e&255);while(e>0);return this.putBytes(t)};ae.ByteStringBuffer.prototype.putSignedInt=function(r,e){return r<0&&(r+=2<<e-1),this.putInt(r,e)};ae.ByteStringBuffer.prototype.putBuffer=function(r){return this.putBytes(r.getBytes())};ae.ByteStringBuffer.prototype.getByte=function(){return this.data.charCodeAt(this.read++)};ae.ByteStringBuffer.prototype.getInt16=function(){var r=this.data.charCodeAt(this.read)<<8^this.data.charCodeAt(this.read+1);return this.read+=2,r};ae.ByteStringBuffer.prototype.getInt24=function(){var r=this.data.charCodeAt(this.read)<<16^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2);return this.read+=3,r};ae.ByteStringBuffer.prototype.getInt32=function(){var r=this.data.charCodeAt(this.read)<<24^this.data.charCodeAt(this.read+1)<<16^this.data.charCodeAt(this.read+2)<<8^this.data.charCodeAt(this.read+3);return this.read+=4,r};ae.ByteStringBuffer.prototype.getInt16Le=function(){var r=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8;return this.read+=2,r};ae.ByteStringBuffer.prototype.getInt24Le=function(){var r=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16;return this.read+=3,r};ae.ByteStringBuffer.prototype.getInt32Le=function(){var r=this.data.charCodeAt(this.read)^this.data.charCodeAt(this.read+1)<<8^this.data.charCodeAt(this.read+2)<<16^this.data.charCodeAt(this.read+3)<<24;return this.read+=4,r};ae.ByteStringBuffer.prototype.getInt=function(r){Ox(r);var e=0;do e=(e<<8)+this.data.charCodeAt(this.read++),r-=8;while(r>0);return e};ae.ByteStringBuffer.prototype.getSignedInt=function(r){var e=this.getInt(r),t=2<<r-2;return e>=t&&(e-=t<<1),e};ae.ByteStringBuffer.prototype.getBytes=function(r){var e;return r?(r=Math.min(this.length(),r),e=this.data.slice(this.read,this.read+r),this.read+=r):r===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};ae.ByteStringBuffer.prototype.bytes=function(r){return typeof r>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+r)};ae.ByteStringBuffer.prototype.at=function(r){return this.data.charCodeAt(this.read+r)};ae.ByteStringBuffer.prototype.setAt=function(r,e){return this.data=this.data.substr(0,this.read+r)+String.fromCharCode(e)+this.data.substr(this.read+r+1),this};ae.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};ae.ByteStringBuffer.prototype.copy=function(){var r=ae.createBuffer(this.data);return r.read=this.read,r};ae.ByteStringBuffer.prototype.compact=function(){return this.read>0&&(this.data=this.data.slice(this.read),this.read=0),this};ae.ByteStringBuffer.prototype.clear=function(){return this.data="",this.read=0,this};ae.ByteStringBuffer.prototype.truncate=function(r){var e=Math.max(0,this.length()-r);return this.data=this.data.substr(this.read,e),this.read=0,this};ae.ByteStringBuffer.prototype.toHex=function(){for(var r="",e=this.read;e<this.data.length;++e){var t=this.data.charCodeAt(e);t<16&&(r+="0"),r+=t.toString(16)}return r};ae.ByteStringBuffer.prototype.toString=function(){return ae.decodeUtf8(this.bytes())};function Fue(r,e){e=e||{},this.read=e.readOffset||0,this.growSize=e.growSize||1024;var t=ae.isArrayBuffer(r),n=ae.isArrayBufferView(r);if(t||n){t?this.data=new DataView(r):this.data=new DataView(r.buffer,r.byteOffset,r.byteLength),this.write="writeOffset"in e?e.writeOffset:this.data.byteLength;return}this.data=new DataView(new ArrayBuffer(0)),this.write=0,r!=null&&this.putBytes(r),"writeOffset"in e&&(this.write=e.writeOffset)}o(Fue,"DataBuffer");ae.DataBuffer=Fue;ae.DataBuffer.prototype.length=function(){return this.write-this.read};ae.DataBuffer.prototype.isEmpty=function(){return this.length()<=0};ae.DataBuffer.prototype.accommodate=function(r,e){if(this.length()>=r)return this;e=Math.max(e||this.growSize,r);var t=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength),n=new Uint8Array(this.length()+e);return n.set(t),this.data=new DataView(n.buffer),this};ae.DataBuffer.prototype.putByte=function(r){return this.accommodate(1),this.data.setUint8(this.write++,r),this};ae.DataBuffer.prototype.fillWithByte=function(r,e){this.accommodate(e);for(var t=0;t<e;++t)this.data.setUint8(r);return this};ae.DataBuffer.prototype.putBytes=function(r,e){if(ae.isArrayBufferView(r)){var t=new Uint8Array(r.buffer,r.byteOffset,r.byteLength),n=t.byteLength-t.byteOffset;this.accommodate(n);var i=new Uint8Array(this.data.buffer,this.write);return i.set(t),this.write+=n,this}if(ae.isArrayBuffer(r)){var t=new Uint8Array(r);this.accommodate(t.byteLength);var i=new Uint8Array(this.data.buffer);return i.set(t,this.write),this.write+=t.byteLength,this}if(r instanceof ae.DataBuffer||typeof r=="object"&&typeof r.read=="number"&&typeof r.write=="number"&&ae.isArrayBufferView(r.data)){var t=new Uint8Array(r.data.byteLength,r.read,r.length());this.accommodate(t.byteLength);var i=new Uint8Array(r.data.byteLength,this.write);return i.set(t),this.write+=t.byteLength,this}if(r instanceof ae.ByteStringBuffer&&(r=r.data,e="binary"),e=e||"binary",typeof r=="string"){var s;if(e==="hex")return this.accommodate(Math.ceil(r.length/2)),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.hex.decode(r,s,this.write),this;if(e==="base64")return this.accommodate(Math.ceil(r.length/4)*3),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.base64.decode(r,s,this.write),this;if(e==="utf8"&&(r=ae.encodeUtf8(r),e="binary"),e==="binary"||e==="raw")return this.accommodate(r.length),s=new Uint8Array(this.data.buffer,this.write),this.write+=ae.binary.raw.decode(s),this;if(e==="utf16")return this.accommodate(r.length*2),s=new Uint16Array(this.data.buffer,this.write),this.write+=ae.text.utf16.encode(s),this;throw new Error("Invalid encoding: "+e)}throw Error("Invalid parameter: "+r)};ae.DataBuffer.prototype.putBuffer=function(r){return this.putBytes(r),r.clear(),this};ae.DataBuffer.prototype.putString=function(r){return this.putBytes(r,"utf16")};ae.DataBuffer.prototype.putInt16=function(r){return this.accommodate(2),this.data.setInt16(this.write,r),this.write+=2,this};ae.DataBuffer.prototype.putInt24=function(r){return this.accommodate(3),this.data.setInt16(this.write,r>>8&65535),this.data.setInt8(this.write,r>>16&255),this.write+=3,this};ae.DataBuffer.prototype.putInt32=function(r){return this.accommodate(4),this.data.setInt32(this.write,r),this.write+=4,this};ae.DataBuffer.prototype.putInt16Le=function(r){return this.accommodate(2),this.data.setInt16(this.write,r,!0),this.write+=2,this};ae.DataBuffer.prototype.putInt24Le=function(r){return this.accommodate(3),this.data.setInt8(this.write,r>>16&255),this.data.setInt16(this.write,r>>8&65535,!0),this.write+=3,this};ae.DataBuffer.prototype.putInt32Le=function(r){return this.accommodate(4),this.data.setInt32(this.write,r,!0),this.write+=4,this};ae.DataBuffer.prototype.putInt=function(r,e){Ox(e),this.accommodate(e/8);do e-=8,this.data.setInt8(this.write++,r>>e&255);while(e>0);return this};ae.DataBuffer.prototype.putSignedInt=function(r,e){return Ox(e),this.accommodate(e/8),r<0&&(r+=2<<e-1),this.putInt(r,e)};ae.DataBuffer.prototype.getByte=function(){return this.data.getInt8(this.read++)};ae.DataBuffer.prototype.getInt16=function(){var r=this.data.getInt16(this.read);return this.read+=2,r};ae.DataBuffer.prototype.getInt24=function(){var r=this.data.getInt16(this.read)<<8^this.data.getInt8(this.read+2);return this.read+=3,r};ae.DataBuffer.prototype.getInt32=function(){var r=this.data.getInt32(this.read);return this.read+=4,r};ae.DataBuffer.prototype.getInt16Le=function(){var r=this.data.getInt16(this.read,!0);return this.read+=2,r};ae.DataBuffer.prototype.getInt24Le=function(){var r=this.data.getInt8(this.read)^this.data.getInt16(this.read+1,!0)<<8;return this.read+=3,r};ae.DataBuffer.prototype.getInt32Le=function(){var r=this.data.getInt32(this.read,!0);return this.read+=4,r};ae.DataBuffer.prototype.getInt=function(r){Ox(r);var e=0;do e=(e<<8)+this.data.getInt8(this.read++),r-=8;while(r>0);return e};ae.DataBuffer.prototype.getSignedInt=function(r){var e=this.getInt(r),t=2<<r-2;return e>=t&&(e-=t<<1),e};ae.DataBuffer.prototype.getBytes=function(r){var e;return r?(r=Math.min(this.length(),r),e=this.data.slice(this.read,this.read+r),this.read+=r):r===0?e="":(e=this.read===0?this.data:this.data.slice(this.read),this.clear()),e};ae.DataBuffer.prototype.bytes=function(r){return typeof r>"u"?this.data.slice(this.read):this.data.slice(this.read,this.read+r)};ae.DataBuffer.prototype.at=function(r){return this.data.getUint8(this.read+r)};ae.DataBuffer.prototype.setAt=function(r,e){return this.data.setUint8(r,e),this};ae.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};ae.DataBuffer.prototype.copy=function(){return new ae.DataBuffer(this)};ae.DataBuffer.prototype.compact=function(){if(this.read>0){var r=new Uint8Array(this.data.buffer,this.read),e=new Uint8Array(r.byteLength);e.set(r),this.data=new DataView(e),this.write-=this.read,this.read=0}return this};ae.DataBuffer.prototype.clear=function(){return this.data=new DataView(new ArrayBuffer(0)),this.read=this.write=0,this};ae.DataBuffer.prototype.truncate=function(r){return this.write=Math.max(0,this.length()-r),this.read=Math.min(this.read,this.write),this};ae.DataBuffer.prototype.toHex=function(){for(var r="",e=this.read;e<this.data.byteLength;++e){var t=this.data.getUint8(e);t<16&&(r+="0"),r+=t.toString(16)}return r};ae.DataBuffer.prototype.toString=function(r){var e=new Uint8Array(this.data,this.read,this.length());if(r=r||"utf8",r==="binary"||r==="raw")return ae.binary.raw.encode(e);if(r==="hex")return ae.binary.hex.encode(e);if(r==="base64")return ae.binary.base64.encode(e);if(r==="utf8")return ae.text.utf8.decode(e);if(r==="utf16")return ae.text.utf16.decode(e);throw new Error("Invalid encoding: "+r)};ae.createBuffer=function(r,e){return e=e||"raw",r!==void 0&&e==="utf8"&&(r=ae.encodeUtf8(r)),new ae.ByteBuffer(r)};ae.fillString=function(r,e){for(var t="";e>0;)e&1&&(t+=r),e>>>=1,e>0&&(r+=r);return t};ae.xorBytes=function(r,e,t){for(var n="",i="",s="",a=0,u=0;t>0;--t,++a)i=r.charCodeAt(a)^e.charCodeAt(a),u>=10&&(n+=s,s="",u=0),s+=String.fromCharCode(i),++u;return n+=s,n};ae.hexToBytes=function(r){var e="",t=0;for(r.length&!0&&(t=1,e+=String.fromCharCode(parseInt(r[0],16)));t<r.length;t+=2)e+=String.fromCharCode(parseInt(r.substr(t,2),16));return e};ae.bytesToHex=function(r){return ae.createBuffer(r).toHex()};ae.int32ToBytes=function(r){return String.fromCharCode(r>>24&255)+String.fromCharCode(r>>16&255)+String.fromCharCode(r>>8&255)+String.fromCharCode(r&255)};var Op="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Pp=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],JU="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";ae.encode64=function(r,e){for(var t="",n="",i,s,a,u=0;u<r.length;)i=r.charCodeAt(u++),s=r.charCodeAt(u++),a=r.charCodeAt(u++),t+=Op.charAt(i>>2),t+=Op.charAt((i&3)<<4|s>>4),isNaN(s)?t+="==":(t+=Op.charAt((s&15)<<2|a>>6),t+=isNaN(a)?"=":Op.charAt(a&63)),e&&t.length>e&&(n+=t.substr(0,e)+`\r
3
3
  `,t=t.substr(e));return n+=t,n};ae.decode64=function(r){r=r.replace(/[^A-Za-z0-9\+\/\=]/g,"");for(var e="",t,n,i,s,a=0;a<r.length;)t=Pp[r.charCodeAt(a++)-43],n=Pp[r.charCodeAt(a++)-43],i=Pp[r.charCodeAt(a++)-43],s=Pp[r.charCodeAt(a++)-43],e+=String.fromCharCode(t<<2|n>>4),i!==64&&(e+=String.fromCharCode((n&15)<<4|i>>2),s!==64&&(e+=String.fromCharCode((i&3)<<6|s)));return e};ae.encodeUtf8=function(r){return unescape(encodeURIComponent(r))};ae.decodeUtf8=function(r){return decodeURIComponent(escape(r))};ae.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:WU.encode,decode:WU.decode}};ae.binary.raw.encode=function(r){return String.fromCharCode.apply(null,r)};ae.binary.raw.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.binary.hex.encode=ae.bytesToHex;ae.binary.hex.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/2))),t=t||0;var i=0,s=t;for(r.length&1&&(i=1,n[s++]=parseInt(r[0],16));i<r.length;i+=2)n[s++]=parseInt(r.substr(i,2),16);return e?s-t:n};ae.binary.base64.encode=function(r,e){for(var t="",n="",i,s,a,u=0;u<r.byteLength;)i=r[u++],s=r[u++],a=r[u++],t+=Op.charAt(i>>2),t+=Op.charAt((i&3)<<4|s>>4),isNaN(s)?t+="==":(t+=Op.charAt((s&15)<<2|a>>6),t+=isNaN(a)?"=":Op.charAt(a&63)),e&&t.length>e&&(n+=t.substr(0,e)+`\r
4
- `,t=t.substr(e));return n+=t,n};ae.binary.base64.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/4)*3)),r=r.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=t||0;for(var i,s,a,u,c=0,l=t;c<r.length;)i=Pp[r.charCodeAt(c++)-43],s=Pp[r.charCodeAt(c++)-43],a=Pp[r.charCodeAt(c++)-43],u=Pp[r.charCodeAt(c++)-43],n[l++]=i<<2|s>>4,a!==64&&(n[l++]=(s&15)<<4|a>>2,u!==64&&(n[l++]=(a&3)<<6|u));return e?l-t:n.subarray(0,l)};ae.binary.base58.encode=function(r,e){return ae.binary.baseN.encode(r,JU,e)};ae.binary.base58.decode=function(r,e){return ae.binary.baseN.decode(r,JU,e)};ae.text={utf8:{},utf16:{}};ae.text.utf8.encode=function(r,e,t){r=ae.encodeUtf8(r);var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.text.utf8.decode=function(r){return ae.decodeUtf8(String.fromCharCode.apply(null,r))};ae.text.utf16.encode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length*2));var i=new Uint16Array(n.buffer);t=t||0;for(var s=t,a=t,u=0;u<r.length;++u)i[a++]=r.charCodeAt(u),s+=2;return e?s-t:n};ae.text.utf16.decode=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))};ae.deflate=function(r,e,t){if(e=ae.decode64(r.deflate(ae.encode64(e)).rval),t){var n=2,i=e.charCodeAt(1);i&32&&(n=6),e=e.substring(n,e.length-4)}return e};ae.inflate=function(r,e,t){var n=r.inflate(ae.encode64(e)).rval;return n===null?null:ae.decode64(n)};var NP=o(function(r,e,t){if(!r)throw new Error("WebStorage not available.");var n;if(t===null?n=r.removeItem(e):(t=ae.encode64(JSON.stringify(t)),n=r.setItem(e,t)),typeof n<"u"&&n.rval!==!0){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},"_setStorageObject"),IP=o(function(r,e){if(!r)throw new Error("WebStorage not available.");var t=r.getItem(e);if(r.init)if(t.rval===null){if(t.error){var n=new Error(t.error.message);throw n.id=t.error.id,n.name=t.error.name,n}t=null}else t=t.rval;return t!==null&&(t=JSON.parse(ae.decode64(t))),t},"_getStorageObject"),Lue=o(function(r,e,t,n){var i=IP(r,e);i===null&&(i={}),i[t]=n,NP(r,e,i)},"_setItem"),kue=o(function(r,e,t){var n=IP(r,e);return n!==null&&(n=t in n?n[t]:null),n},"_getItem"),Vue=o(function(r,e,t){var n=IP(r,e);if(n!==null&&t in n){delete n[t];var i=!0;for(var s in n){i=!1;break}i&&(n=null),NP(r,e,n)}},"_removeItem"),jue=o(function(r,e){NP(r,e,null)},"_clearItems"),KN=o(function(r,e,t){var n=null;typeof t>"u"&&(t=["web","flash"]);var i,s=!1,a=null;for(var u in t){i=t[u];try{if(i==="flash"||i==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");n=r.apply(this,e),s=i==="flash"}(i==="web"||i==="both")&&(e[0]=localStorage,n=r.apply(this,e),s=!0)}catch(c){a=c}if(s)break}if(!s)throw a;return n},"_callStorageFunction");ae.setItem=function(r,e,t,n,i){KN(Lue,arguments,i)};ae.getItem=function(r,e,t,n){return KN(kue,arguments,n)};ae.removeItem=function(r,e,t,n){KN(Vue,arguments,n)};ae.clearItems=function(r,e,t){KN(jue,arguments,t)};ae.isEmpty=function(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0};ae.format=function(r){for(var e=/%./g,t,n,i=0,s=[],a=0;t=e.exec(r);){n=r.substring(a,e.lastIndex-2),n.length>0&&s.push(n),a=e.lastIndex;var u=t[0][1];switch(u){case"s":case"o":i<arguments.length?s.push(arguments[i+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+u+"?>")}}return s.push(r.substring(a)),s.join("")};ae.formatNumber=function(r,e,t,n){var i=r,s=isNaN(e=Math.abs(e))?2:e,a=t===void 0?",":t,u=n===void 0?".":n,c=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(s),10)+"",p=l.length>3?l.length%3:0;return c+(p?l.substr(0,p)+u:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+u)+(s?a+Math.abs(i-l).toFixed(s).slice(2):"")};ae.formatSize=function(r){return r>=1073741824?r=ae.formatNumber(r/1073741824,2,".","")+" GiB":r>=1048576?r=ae.formatNumber(r/1048576,2,".","")+" MiB":r>=1024?r=ae.formatNumber(r/1024,0)+" KiB":r=ae.formatNumber(r,0)+" bytes",r};ae.bytesFromIP=function(r){return r.indexOf(".")!==-1?ae.bytesFromIPv4(r):r.indexOf(":")!==-1?ae.bytesFromIPv6(r):null};ae.bytesFromIPv4=function(r){if(r=r.split("."),r.length!==4)return null;for(var e=ae.createBuffer(),t=0;t<r.length;++t){var n=parseInt(r[t],10);if(isNaN(n))return null;e.putByte(n)}return e.getBytes()};ae.bytesFromIPv6=function(r){var e=0;r=r.split(":").filter(function(a){return a.length===0&&++e,!0});for(var t=(8-r.length+e)*2,n=ae.createBuffer(),i=0;i<8;++i){if(!r[i]||r[i].length===0){n.fillWithByte(0,t),t=0;continue}var s=ae.hexToBytes(r[i]);s.length<2&&n.putByte(0),n.putBytes(s)}return n.getBytes()};ae.bytesToIP=function(r){return r.length===4?ae.bytesToIPv4(r):r.length===16?ae.bytesToIPv6(r):null};ae.bytesToIPv4=function(r){if(r.length!==4)return null;for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e.join(".")};ae.bytesToIPv6=function(r){if(r.length!==16)return null;for(var e=[],t=[],n=0,i=0;i<r.length;i+=2){for(var s=ae.bytesToHex(r[i]+r[i+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var a=t[t.length-1],u=e.length;!a||u!==a.end+1?t.push({start:u,end:u}):(a.end=u,a.end-a.start>t[n].end-t[n].start&&(n=t.length-1))}e.push(s)}if(t.length>0){var c=t[n];c.end-c.start>0&&(e.splice(c.start,c.end-c.start+1,""),c.start===0&&e.unshift(""),c.end===7&&e.push(""))}return e.join(":")};ae.estimateCores=function(r,e){if(typeof r=="function"&&(e=r,r={}),r=r||{},"cores"in ae&&!r.update)return e(null,ae.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return ae.cores=navigator.hardwareConcurrency,e(null,ae.cores);if(typeof Worker>"u")return ae.cores=1,e(null,ae.cores);if(typeof Blob>"u")return ae.cores=2,e(null,ae.cores);var t=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(a){for(var u=Date.now(),c=u+4;Date.now()<c;);self.postMessage({st:u,et:c})})}).toString(),")()"],{type:"application/javascript"}));n([],5,16);function n(a,u,c){if(u===0){var l=Math.floor(a.reduce(function(p,m){return p+m},0)/a.length);return ae.cores=Math.max(1,l),URL.revokeObjectURL(t),e(null,ae.cores)}i(c,function(p,m){a.push(s(c,m)),n(a,u-1,c)})}o(n,"sample");function i(a,u){for(var c=[],l=[],p=0;p<a;++p){var m=new Worker(t);m.addEventListener("message",function(g){if(l.push(g.data),l.length===a){for(var y=0;y<a;++y)c[y].terminate();u(null,l)}}),c.push(m)}for(var p=0;p<a;++p)c[p].postMessage(p)}o(i,"map");function s(a,u){for(var c=[],l=0;l<a;++l)for(var p=u[l],m=c[l]=[],g=0;g<a;++g)if(l!==g){var y=u[g];(p.st>y.st&&p.st<y.et||y.st>p.st&&y.st<p.et)&&m.push(g)}return c.reduce(function(v,b){return Math.max(v,b.length)},0)}o(s,"reduce")}});var $N=Z((G2e,YU)=>{"use strict";var $i=pr();kr();YU.exports=$i.cipher=$i.cipher||{};$i.cipher.algorithms=$i.cipher.algorithms||{};$i.cipher.createCipher=function(r,e){var t=r;if(typeof t=="string"&&(t=$i.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new $i.cipher.BlockCipher({algorithm:t,key:e,decrypt:!1})};$i.cipher.createDecipher=function(r,e){var t=r;if(typeof t=="string"&&(t=$i.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new $i.cipher.BlockCipher({algorithm:t,key:e,decrypt:!0})};$i.cipher.registerAlgorithm=function(r,e){r=r.toUpperCase(),$i.cipher.algorithms[r]=e};$i.cipher.getAlgorithm=function(r){return r=r.toUpperCase(),r in $i.cipher.algorithms?$i.cipher.algorithms[r]:null};var TP=$i.cipher.BlockCipher=function(r){this.algorithm=r.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=r.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=r.decrypt,this.algorithm.initialize(r)};TP.prototype.start=function(r){r=r||{};var e={};for(var t in r)e[t]=r[t];e.decrypt=this._decrypt,this._finish=!1,this._input=$i.util.createBuffer(),this.output=r.output||$i.util.createBuffer(),this.mode.start(e)};TP.prototype.update=function(r){for(r&&this._input.putBuffer(r);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};TP.prototype.finish=function(r){r&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(t){return r(this.blockSize,t,!1)},this.mode.unpad=function(t){return r(this.blockSize,t,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var DP=Z((X2e,ZU)=>{"use strict";var Gi=pr();kr();Gi.cipher=Gi.cipher||{};var Sr=ZU.exports=Gi.cipher.modes=Gi.cipher.modes||{};Sr.ecb=function(r){r=r||{},this.name="ECB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.ecb.prototype.start=function(r){};Sr.ecb.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.ecb.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cbc=function(r){r=r||{},this.name="CBC",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.cbc.prototype.start=function(r){if(r.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in r)this._iv=GN(r.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};Sr.cbc.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]);this._prev=this._outBlock};Sr.cbc.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)};Sr.cbc.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.cbc.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cfb=function(r){r=r||{},this.name="CFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.cfb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.cfb.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32()^this._outBlock[i],e.putInt32(this._inBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.cfb.prototype.decrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32(),e.putInt32(this._inBlock[i]^this._outBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb=function(r){r=r||{},this.name="OFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.ofb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ofb.prototype.encrypt=function(r,e,t){var n=r.length();if(r.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb.prototype.decrypt=Sr.ofb.prototype.encrypt;Sr.ctr=function(r){r=r||{},this.name="CTR",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.ctr.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ctr.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize)for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]);else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0&&(r.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}XN(this._inBlock)};Sr.ctr.prototype.decrypt=Sr.ctr.prototype.encrypt;Sr.gcm=function(r){r=r||{},this.name="GCM",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0,this._R=3774873600};Sr.gcm.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");var e=Gi.util.createBuffer(r.iv);this._cipherLength=0;var t;if("additionalData"in r?t=Gi.util.createBuffer(r.additionalData):t=Gi.util.createBuffer(),"tagLength"in r?this._tagLength=r.tagLength:this._tagLength=128,this._tag=null,r.decrypt&&(this._tag=Gi.util.createBuffer(r.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var n=e.length();if(n===12)this._j0=[e.getInt32(),e.getInt32(),e.getInt32(),1];else{for(this._j0=[0,0,0,0];e.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(RP(n*8)))}this._inBlock=this._j0.slice(0),XN(this._inBlock),this._partialBytes=0,t=Gi.util.createBuffer(t),this._aDataLength=RP(t.length()*8);var i=t.length()%this.blockSize;for(i&&t.fillWithByte(0,this.blockSize-i),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])};Sr.gcm.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^=r.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s<=0||t){if(t){var a=n%this.blockSize;this._cipherLength+=a,this._partialOutput.truncate(this.blockSize-a)}else this._cipherLength+=this.blockSize;for(var i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return r.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),XN(this._inBlock)};Sr.gcm.prototype.decrypt=function(r,e,t){var n=r.length();if(n<this.blockSize&&!(t&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),XN(this._inBlock),this._hashBlock[0]=r.getInt32(),this._hashBlock[1]=r.getInt32(),this._hashBlock[2]=r.getInt32(),this._hashBlock[3]=r.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize};Sr.gcm.prototype.afterFinish=function(r,e){var t=!0;e.decrypt&&e.overflow&&r.truncate(this.blockSize-e.overflow),this.tag=Gi.util.createBuffer();var n=this._aDataLength.concat(RP(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,n);var i=[];this.cipher.encrypt(this._j0,i);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^i[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(t=!1),t};Sr.gcm.prototype.multiply=function(r,e){for(var t=[0,0,0,0],n=e.slice(0),i=0;i<128;++i){var s=r[i/32|0]&1<<31-i%32;s&&(t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3]),this.pow(n,n)}return t};Sr.gcm.prototype.pow=function(r,e){for(var t=r[3]&1,n=3;n>0;--n)e[n]=r[n]>>>1|(r[n-1]&1)<<31;e[0]=r[0]>>>1,t&&(e[0]^=this._R)};Sr.gcm.prototype.tableMultiply=function(r){for(var e=[0,0,0,0],t=0;t<32;++t){var n=t/8|0,i=r[n]>>>(7-t%8)*4&15,s=this._m[t][i];e[0]^=s[0],e[1]^=s[1],e[2]^=s[2],e[3]^=s[3]}return e};Sr.gcm.prototype.ghash=function(r,e,t){return e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3],this.tableMultiply(e)};Sr.gcm.prototype.generateHashTable=function(r,e){for(var t=8/e,n=4*t,i=16*t,s=new Array(i),a=0;a<i;++a){var u=[0,0,0,0],c=a/n|0,l=(n-1-a%n)*e;u[c]=1<<e-1<<l,s[a]=this.generateSubHashTable(this.multiply(u,r),e)}return s};Sr.gcm.prototype.generateSubHashTable=function(r,e){var t=1<<e,n=t>>>1,i=new Array(t);i[n]=r.slice(0);for(var s=n>>>1;s>0;)this.pow(i[2*s],i[s]=[]),s>>=1;for(s=2;s<n;){for(var a=1;a<s;++a){var u=i[s],c=i[a];i[s+a]=[u[0]^c[0],u[1]^c[1],u[2]^c[2],u[3]^c[3]]}s*=2}for(i[0]=[0,0,0,0],s=n+1;s<t;++s){var l=i[s^n];i[s]=[r[0]^l[0],r[1]^l[1],r[2]^l[2],r[3]^l[3]]}return i};function GN(r,e){if(typeof r=="string"&&(r=Gi.util.createBuffer(r)),Gi.util.isArray(r)&&r.length>4){var t=r;r=Gi.util.createBuffer();for(var n=0;n<t.length;++n)r.putByte(t[n])}if(r.length()<e)throw new Error("Invalid IV length; got "+r.length()+" bytes and expected "+e+" bytes.");if(!Gi.util.isArray(r)){for(var i=[],s=e/4,n=0;n<s;++n)i.push(r.getInt32());r=i}return r}o(GN,"transformIV");function XN(r){r[r.length-1]=r[r.length-1]+1&4294967295}o(XN,"inc32");function RP(r){return[r/4294967296|0,r&4294967295]}o(RP,"from64To32")});var Bp=Z((J2e,nM)=>{"use strict";var vn=pr();$N();DP();kr();nM.exports=vn.aes=vn.aes||{};vn.aes.startEncrypting=function(r,e,t,n){var i=WN({key:r,output:t,decrypt:!1,mode:n});return i.start(e),i};vn.aes.createEncryptionCipher=function(r,e){return WN({key:r,output:null,decrypt:!1,mode:e})};vn.aes.startDecrypting=function(r,e,t,n){var i=WN({key:r,output:t,decrypt:!0,mode:n});return i.start(e),i};vn.aes.createDecryptionCipher=function(r,e){return WN({key:r,output:null,decrypt:!0,mode:e})};vn.aes.Algorithm=function(r,e){PP||tM();var t=this;t.name=r,t.mode=new e({blockSize:16,cipher:{encrypt:o(function(n,i){return OP(t._w,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return OP(t._w,n,i,!0)},"decrypt")}}),t._init=!1};vn.aes.Algorithm.prototype.initialize=function(r){if(!this._init){var e=r.key,t;if(typeof e=="string"&&(e.length===16||e.length===24||e.length===32))e=vn.util.createBuffer(e);else if(vn.util.isArray(e)&&(e.length===16||e.length===24||e.length===32)){t=e,e=vn.util.createBuffer();for(var n=0;n<t.length;++n)e.putByte(t[n])}if(!vn.util.isArray(e)){t=e,e=[];var i=t.length();if(i===16||i===24||i===32){i=i>>>2;for(var n=0;n<i;++n)e.push(t.getInt32())}}if(!vn.util.isArray(e)||!(e.length===4||e.length===6||e.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,a=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=rM(e,r.decrypt&&!a),this._init=!0}};vn.aes._expandKey=function(r,e){return PP||tM(),rM(r,e)};vn.aes._updateBlock=OP;Yg("AES-ECB",vn.cipher.modes.ecb);Yg("AES-CBC",vn.cipher.modes.cbc);Yg("AES-CFB",vn.cipher.modes.cfb);Yg("AES-OFB",vn.cipher.modes.ofb);Yg("AES-CTR",vn.cipher.modes.ctr);Yg("AES-GCM",vn.cipher.modes.gcm);function Yg(r,e){var t=o(function(){return new vn.aes.Algorithm(r,e)},"factory");vn.cipher.registerAlgorithm(r,t)}o(Yg,"registerAlgorithm");var PP=!1,Qg=4,fa,_P,eM,Qd,Nu;function tM(){PP=!0,eM=[0,1,2,4,8,16,32,64,128,27,54];for(var r=new Array(256),e=0;e<128;++e)r[e]=e<<1,r[e+128]=e+128<<1^283;fa=new Array(256),_P=new Array(256),Qd=new Array(4),Nu=new Array(4);for(var e=0;e<4;++e)Qd[e]=new Array(256),Nu[e]=new Array(256);for(var t=0,n=0,i,s,a,u,c,l,p,e=0;e<256;++e){u=n^n<<1^n<<2^n<<3^n<<4,u=u>>8^u&255^99,fa[t]=u,_P[u]=t,c=r[u],i=r[t],s=r[i],a=r[s],l=c<<24^u<<16^u<<8^(u^c),p=(i^s^a)<<24^(t^a)<<16^(t^s^a)<<8^(t^i^a);for(var m=0;m<4;++m)Qd[m][t]=l,Nu[m][u]=p,l=l<<24|l>>>8,p=p<<24|p>>>8;t===0?t=n=1:(t=i^r[r[r[i^a]]],n^=r[r[n]])}}o(tM,"initialize");function rM(r,e){for(var t=r.slice(0),n,i=1,s=t.length,a=s+6+1,u=Qg*a,c=s;c<u;++c)n=t[c-1],c%s===0?(n=fa[n>>>16&255]<<24^fa[n>>>8&255]<<16^fa[n&255]<<8^fa[n>>>24]^eM[i]<<24,i++):s>6&&c%s===4&&(n=fa[n>>>24]<<24^fa[n>>>16&255]<<16^fa[n>>>8&255]<<8^fa[n&255]),t[c]=t[c-s]^n;if(e){var l,p=Nu[0],m=Nu[1],g=Nu[2],y=Nu[3],v=t.slice(0);u=t.length;for(var c=0,b=u-Qg;c<u;c+=Qg,b-=Qg)if(c===0||c===u-Qg)v[c]=t[b],v[c+1]=t[b+3],v[c+2]=t[b+2],v[c+3]=t[b+1];else for(var x=0;x<Qg;++x)l=t[b+x],v[c+(3&-x)]=p[fa[l>>>24]]^m[fa[l>>>16&255]]^g[fa[l>>>8&255]]^y[fa[l&255]];t=v}return t}o(rM,"_expandKey");function OP(r,e,t,n){var i=r.length/4-1,s,a,u,c,l;n?(s=Nu[0],a=Nu[1],u=Nu[2],c=Nu[3],l=_P):(s=Qd[0],a=Qd[1],u=Qd[2],c=Qd[3],l=fa);var p,m,g,y,v,b,x;p=e[0]^r[0],m=e[n?3:1]^r[1],g=e[2]^r[2],y=e[n?1:3]^r[3];for(var E=3,N=1;N<i;++N)v=s[p>>>24]^a[m>>>16&255]^u[g>>>8&255]^c[y&255]^r[++E],b=s[m>>>24]^a[g>>>16&255]^u[y>>>8&255]^c[p&255]^r[++E],x=s[g>>>24]^a[y>>>16&255]^u[p>>>8&255]^c[m&255]^r[++E],y=s[y>>>24]^a[p>>>16&255]^u[m>>>8&255]^c[g&255]^r[++E],p=v,m=b,g=x;t[0]=l[p>>>24]<<24^l[m>>>16&255]<<16^l[g>>>8&255]<<8^l[y&255]^r[++E],t[n?3:1]=l[m>>>24]<<24^l[g>>>16&255]<<16^l[y>>>8&255]<<8^l[p&255]^r[++E],t[2]=l[g>>>24]<<24^l[y>>>16&255]<<16^l[p>>>8&255]<<8^l[m&255]^r[++E],t[n?1:3]=l[y>>>24]<<24^l[p>>>16&255]<<16^l[m>>>8&255]<<8^l[g&255]^r[++E]}o(OP,"_updateBlock");function WN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="AES-"+e,n;r.decrypt?n=vn.cipher.createDecipher(t,r.key):n=vn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof vn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(WN,"_createCipher")});var Fp=Z((Y2e,iM)=>{"use strict";var Px=pr();Px.pki=Px.pki||{};var BP=iM.exports=Px.pki.oids=Px.oids=Px.oids||{};function Xe(r,e){BP[r]=e,BP[e]=r}o(Xe,"_IN");function Wr(r,e){BP[r]=e}o(Wr,"_I_");Xe("1.2.840.113549.1.1.1","rsaEncryption");Xe("1.2.840.113549.1.1.4","md5WithRSAEncryption");Xe("1.2.840.113549.1.1.5","sha1WithRSAEncryption");Xe("1.2.840.113549.1.1.7","RSAES-OAEP");Xe("1.2.840.113549.1.1.8","mgf1");Xe("1.2.840.113549.1.1.9","pSpecified");Xe("1.2.840.113549.1.1.10","RSASSA-PSS");Xe("1.2.840.113549.1.1.11","sha256WithRSAEncryption");Xe("1.2.840.113549.1.1.12","sha384WithRSAEncryption");Xe("1.2.840.113549.1.1.13","sha512WithRSAEncryption");Xe("1.3.101.112","EdDSA25519");Xe("1.2.840.10040.4.3","dsa-with-sha1");Xe("1.3.14.3.2.7","desCBC");Xe("1.3.14.3.2.26","sha1");Xe("1.3.14.3.2.29","sha1WithRSASignature");Xe("2.16.840.1.101.3.4.2.1","sha256");Xe("2.16.840.1.101.3.4.2.2","sha384");Xe("2.16.840.1.101.3.4.2.3","sha512");Xe("2.16.840.1.101.3.4.2.4","sha224");Xe("2.16.840.1.101.3.4.2.5","sha512-224");Xe("2.16.840.1.101.3.4.2.6","sha512-256");Xe("1.2.840.113549.2.2","md2");Xe("1.2.840.113549.2.5","md5");Xe("1.2.840.113549.1.7.1","data");Xe("1.2.840.113549.1.7.2","signedData");Xe("1.2.840.113549.1.7.3","envelopedData");Xe("1.2.840.113549.1.7.4","signedAndEnvelopedData");Xe("1.2.840.113549.1.7.5","digestedData");Xe("1.2.840.113549.1.7.6","encryptedData");Xe("1.2.840.113549.1.9.1","emailAddress");Xe("1.2.840.113549.1.9.2","unstructuredName");Xe("1.2.840.113549.1.9.3","contentType");Xe("1.2.840.113549.1.9.4","messageDigest");Xe("1.2.840.113549.1.9.5","signingTime");Xe("1.2.840.113549.1.9.6","counterSignature");Xe("1.2.840.113549.1.9.7","challengePassword");Xe("1.2.840.113549.1.9.8","unstructuredAddress");Xe("1.2.840.113549.1.9.14","extensionRequest");Xe("1.2.840.113549.1.9.20","friendlyName");Xe("1.2.840.113549.1.9.21","localKeyId");Xe("1.2.840.113549.1.9.22.1","x509Certificate");Xe("1.2.840.113549.1.12.10.1.1","keyBag");Xe("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");Xe("1.2.840.113549.1.12.10.1.3","certBag");Xe("1.2.840.113549.1.12.10.1.4","crlBag");Xe("1.2.840.113549.1.12.10.1.5","secretBag");Xe("1.2.840.113549.1.12.10.1.6","safeContentsBag");Xe("1.2.840.113549.1.5.13","pkcs5PBES2");Xe("1.2.840.113549.1.5.12","pkcs5PBKDF2");Xe("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");Xe("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");Xe("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");Xe("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");Xe("1.2.840.113549.2.7","hmacWithSHA1");Xe("1.2.840.113549.2.8","hmacWithSHA224");Xe("1.2.840.113549.2.9","hmacWithSHA256");Xe("1.2.840.113549.2.10","hmacWithSHA384");Xe("1.2.840.113549.2.11","hmacWithSHA512");Xe("1.2.840.113549.3.7","des-EDE3-CBC");Xe("2.16.840.1.101.3.4.1.2","aes128-CBC");Xe("2.16.840.1.101.3.4.1.22","aes192-CBC");Xe("2.16.840.1.101.3.4.1.42","aes256-CBC");Xe("2.5.4.3","commonName");Xe("2.5.4.4","surname");Xe("2.5.4.5","serialNumber");Xe("2.5.4.6","countryName");Xe("2.5.4.7","localityName");Xe("2.5.4.8","stateOrProvinceName");Xe("2.5.4.9","streetAddress");Xe("2.5.4.10","organizationName");Xe("2.5.4.11","organizationalUnitName");Xe("2.5.4.12","title");Xe("2.5.4.13","description");Xe("2.5.4.15","businessCategory");Xe("2.5.4.17","postalCode");Xe("2.5.4.42","givenName");Xe("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");Xe("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");Xe("2.16.840.1.113730.1.1","nsCertType");Xe("2.16.840.1.113730.1.13","nsComment");Wr("2.5.29.1","authorityKeyIdentifier");Wr("2.5.29.2","keyAttributes");Wr("2.5.29.3","certificatePolicies");Wr("2.5.29.4","keyUsageRestriction");Wr("2.5.29.5","policyMapping");Wr("2.5.29.6","subtreesConstraint");Wr("2.5.29.7","subjectAltName");Wr("2.5.29.8","issuerAltName");Wr("2.5.29.9","subjectDirectoryAttributes");Wr("2.5.29.10","basicConstraints");Wr("2.5.29.11","nameConstraints");Wr("2.5.29.12","policyConstraints");Wr("2.5.29.13","basicConstraints");Xe("2.5.29.14","subjectKeyIdentifier");Xe("2.5.29.15","keyUsage");Wr("2.5.29.16","privateKeyUsagePeriod");Xe("2.5.29.17","subjectAltName");Xe("2.5.29.18","issuerAltName");Xe("2.5.29.19","basicConstraints");Wr("2.5.29.20","cRLNumber");Wr("2.5.29.21","cRLReason");Wr("2.5.29.22","expirationDate");Wr("2.5.29.23","instructionCode");Wr("2.5.29.24","invalidityDate");Wr("2.5.29.25","cRLDistributionPoints");Wr("2.5.29.26","issuingDistributionPoint");Wr("2.5.29.27","deltaCRLIndicator");Wr("2.5.29.28","issuingDistributionPoint");Wr("2.5.29.29","certificateIssuer");Wr("2.5.29.30","nameConstraints");Xe("2.5.29.31","cRLDistributionPoints");Xe("2.5.29.32","certificatePolicies");Wr("2.5.29.33","policyMappings");Wr("2.5.29.34","policyConstraints");Xe("2.5.29.35","authorityKeyIdentifier");Wr("2.5.29.36","policyConstraints");Xe("2.5.29.37","extKeyUsage");Wr("2.5.29.46","freshestCRL");Wr("2.5.29.54","inhibitAnyPolicy");Xe("1.3.6.1.4.1.11129.2.4.2","timestampList");Xe("1.3.6.1.5.5.7.1.1","authorityInfoAccess");Xe("1.3.6.1.5.5.7.3.1","serverAuth");Xe("1.3.6.1.5.5.7.3.2","clientAuth");Xe("1.3.6.1.5.5.7.3.3","codeSigning");Xe("1.3.6.1.5.5.7.3.4","emailProtection");Xe("1.3.6.1.5.5.7.3.8","timeStamping")});var Iu=Z((eIe,aM)=>{"use strict";var Tn=pr();kr();Fp();var ot=aM.exports=Tn.asn1=Tn.asn1||{};ot.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};ot.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};ot.maxDepth=256;ot.create=function(r,e,t,n,i){if(Tn.util.isArray(n)){for(var s=[],a=0;a<n.length;++a)n[a]!==void 0&&s.push(n[a]);n=s}var u={tagClass:r,type:e,constructed:t,composed:t||Tn.util.isArray(n),value:n};return i&&"bitStringContents"in i&&(u.bitStringContents=i.bitStringContents,u.original=ot.copy(u)),u};ot.copy=function(r,e){var t;if(Tn.util.isArray(r)){t=[];for(var n=0;n<r.length;++n)t.push(ot.copy(r[n],e));return t}return typeof r=="string"?r:(t={tagClass:r.tagClass,type:r.type,constructed:r.constructed,composed:r.composed,value:ot.copy(r.value,e)},e&&!e.excludeBitStringContents&&(t.bitStringContents=r.bitStringContents),t)};ot.equals=function(r,e,t){if(Tn.util.isArray(r)){if(!Tn.util.isArray(e)||r.length!==e.length)return!1;for(var n=0;n<r.length;++n)if(!ot.equals(r[n],e[n]))return!1;return!0}if(typeof r!=typeof e)return!1;if(typeof r=="string")return r===e;var i=r.tagClass===e.tagClass&&r.type===e.type&&r.constructed===e.constructed&&r.composed===e.composed&&ot.equals(r.value,e.value);return t&&t.includeBitStringContents&&(i=i&&r.bitStringContents===e.bitStringContents),i};ot.getBerValueLength=function(r){var e=r.getByte();if(e!==128){var t,n=e&128;return n?t=r.getInt((e&127)<<3):t=e,t}};function Bx(r,e,t){if(t>e){var n=new Error("Too few bytes to parse DER.");throw n.available=r.length(),n.remaining=e,n.requested=t,n}}o(Bx,"_checkBufferLength");var Uue=o(function(r,e){var t=r.getByte();if(e--,t!==128){var n,i=t&128;if(!i)n=t;else{var s=t&127;Bx(r,e,s),n=r.getInt(s<<3)}if(n<0)throw new Error("Negative length: "+n);return n}},"_getValueLength");ot.fromDer=function(r,e){e===void 0&&(e={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof e=="boolean"&&(e={strict:e,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in e||(e.strict=!0),"parseAllBytes"in e||(e.parseAllBytes=!0),"decodeBitStrings"in e||(e.decodeBitStrings=!0),"maxDepth"in e||(e.maxDepth=ot.maxDepth),typeof r=="string"&&(r=Tn.util.createBuffer(r));var t=r.length(),n=JN(r,r.length(),0,e);if(e.parseAllBytes&&r.length()!==0){var i=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw i.byteCount=t,i.remaining=r.length(),i}return n};function JN(r,e,t,n){if(t>=n.maxDepth)throw new Error("ASN.1 parsing error: Max depth exceeded.");var i;Bx(r,e,2);var s=r.getByte();e--;var a=s&192,u=s&31;i=r.length();var c=Uue(r,e);if(e-=i-r.length(),c!==void 0&&c>e){if(n.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=r.length(),l.remaining=e,l.requested=c,l}c=e}var p,m,g=(s&32)===32;if(g)if(p=[],c===void 0)for(;;){if(Bx(r,e,2),r.bytes(2)==="\0\0"){r.getBytes(2),e-=2;break}i=r.length(),p.push(JN(r,e,t+1,n)),e-=i-r.length()}else for(;c>0;)i=r.length(),p.push(JN(r,c,t+1,n)),e-=i-r.length(),c-=i-r.length();if(p===void 0&&a===ot.Class.UNIVERSAL&&u===ot.Type.BITSTRING&&(m=r.bytes(c)),p===void 0&&n.decodeBitStrings&&a===ot.Class.UNIVERSAL&&u===ot.Type.BITSTRING&&c>1){var y=r.read,v=e,b=0;if(u===ot.Type.BITSTRING&&(Bx(r,e,1),b=r.getByte(),e--),b===0)try{i=r.length();var x={strict:!0,decodeBitStrings:!0},E=JN(r,e,t+1,x),N=i-r.length();e-=N,u==ot.Type.BITSTRING&&N++;var w=E.tagClass;N===c&&(w===ot.Class.UNIVERSAL||w===ot.Class.CONTEXT_SPECIFIC)&&(p=[E])}catch{}p===void 0&&(r.read=y,e=v)}if(p===void 0){if(c===void 0){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=e}if(u===ot.Type.BMPSTRING)for(p="";c>0;c-=2)Bx(r,e,2),p+=String.fromCharCode(r.getInt16()),e-=2;else p=r.getBytes(c),e-=c}var C=m===void 0?null:{bitStringContents:m};return ot.create(a,u,g,p,C)}o(JN,"_fromDer");ot.toDer=function(r){var e=Tn.util.createBuffer(),t=r.tagClass|r.type,n=Tn.util.createBuffer(),i=!1;if("bitStringContents"in r&&(i=!0,r.original&&(i=ot.equals(r,r.original))),i)n.putBytes(r.bitStringContents);else if(r.composed){r.constructed?t|=32:n.putByte(0);for(var s=0;s<r.value.length;++s)r.value[s]!==void 0&&n.putBuffer(ot.toDer(r.value[s]))}else if(r.type===ot.Type.BMPSTRING)for(var s=0;s<r.value.length;++s)n.putInt16(r.value.charCodeAt(s));else r.type===ot.Type.INTEGER&&r.value.length>1&&(r.value.charCodeAt(0)===0&&(r.value.charCodeAt(1)&128)===0||r.value.charCodeAt(0)===255&&(r.value.charCodeAt(1)&128)===128)?n.putBytes(r.value.substr(1)):n.putBytes(r.value);if(e.putByte(t),n.length()<=127)e.putByte(n.length()&127);else{var a=n.length(),u="";do u+=String.fromCharCode(a&255),a=a>>>8;while(a>0);e.putByte(u.length|128);for(var s=u.length-1;s>=0;--s)e.putByte(u.charCodeAt(s))}return e.putBuffer(n),e};ot.oidToDer=function(r){var e=r.split("."),t=Tn.util.createBuffer();t.putByte(40*parseInt(e[0],10)+parseInt(e[1],10));for(var n,i,s,a,u=2;u<e.length;++u){if(n=!0,i=[],s=parseInt(e[u],10),s>4294967295)throw new Error("OID value too large; max is 32-bits.");do a=s&127,s=s>>>7,n||(a|=128),i.push(a),n=!1;while(s>0);for(var c=i.length-1;c>=0;--c)t.putByte(i[c])}return t};ot.derToOid=function(r){var e;typeof r=="string"&&(r=Tn.util.createBuffer(r));var t=r.getByte();e=Math.floor(t/40)+"."+t%40;for(var n=0;r.length()>0;){if(n>70368744177663)throw new Error("OID value too large; max is 53-bits.");t=r.getByte(),n=n*128,t&128?n+=t&127:(e+="."+(n+t),n=0)}return e};ot.utcTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,2),10);t=t>=50?1900+t:2e3+t;var n=parseInt(r.substr(2,2),10)-1,i=parseInt(r.substr(4,2),10),s=parseInt(r.substr(6,2),10),a=parseInt(r.substr(8,2),10),u=0;if(r.length>11){var c=r.charAt(10),l=10;c!=="+"&&c!=="-"&&(u=parseInt(r.substr(10,2),10),l+=2)}if(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,0),l&&(c=r.charAt(l),c==="+"||c==="-")){var p=parseInt(r.substr(l+1,2),10),m=parseInt(r.substr(l+4,2),10),g=p*60+m;g*=6e4,c==="+"?e.setTime(+e-g):e.setTime(+e+g)}return e};ot.generalizedTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,4),10),n=parseInt(r.substr(4,2),10)-1,i=parseInt(r.substr(6,2),10),s=parseInt(r.substr(8,2),10),a=parseInt(r.substr(10,2),10),u=parseInt(r.substr(12,2),10),c=0,l=0,p=!1;r.charAt(r.length-1)==="Z"&&(p=!0);var m=r.length-5,g=r.charAt(m);if(g==="+"||g==="-"){var y=parseInt(r.substr(m+1,2),10),v=parseInt(r.substr(m+4,2),10);l=y*60+v,l*=6e4,g==="+"&&(l*=-1),p=!0}return r.charAt(14)==="."&&(c=parseFloat(r.substr(14),10)*1e3),p?(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,c),e.setTime(+e+l)):(e.setFullYear(t,n,i),e.setHours(s,a,u,c)),e};ot.dateToUtcTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push((""+r.getUTCFullYear()).substr(2)),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ot.dateToGeneralizedTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push(""+r.getUTCFullYear()),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ot.integerToDer=function(r){var e=Tn.util.createBuffer();if(r>=-128&&r<128)return e.putSignedInt(r,8);if(r>=-32768&&r<32768)return e.putSignedInt(r,16);if(r>=-8388608&&r<8388608)return e.putSignedInt(r,24);if(r>=-2147483648&&r<2147483648)return e.putSignedInt(r,32);var t=new Error("Integer too large; max is 32-bits.");throw t.integer=r,t};ot.derToInteger=function(r){typeof r=="string"&&(r=Tn.util.createBuffer(r));var e=r.length()*8;if(e>32)throw new Error("Integer too large; max is 32-bits.");return r.getSignedInt(e)};ot.validate=function(r,e,t,n){var i=!1;if((r.tagClass===e.tagClass||typeof e.tagClass>"u")&&(r.type===e.type||typeof e.type>"u"))if(r.constructed===e.constructed||typeof e.constructed>"u"){if(i=!0,e.value&&Tn.util.isArray(e.value))for(var s=0,a=0;i&&a<e.value.length;++a){var u=e.value[a];i=!!u.optional;var c=r.value[s];if(!c){u.optional||(i=!1,n&&n.push("["+e.name+'] Missing required element. Expected tag class "'+u.tagClass+'", type "'+u.type+'"'));continue}var l=typeof u.tagClass<"u"&&typeof u.type<"u";if(l&&(c.tagClass!==u.tagClass||c.type!==u.type))if(u.optional){i=!0;continue}else{i=!1,n&&n.push("["+e.name+"] Tag mismatch. Expected ("+u.tagClass+","+u.type+"), got ("+c.tagClass+","+c.type+")");break}var p=ot.validate(c,u,t,n);if(p)++s,i=!0;else if(u.optional)i=!0;else{i=!1;break}}if(i&&t&&(e.capture&&(t[e.capture]=r.value),e.captureAsn1&&(t[e.captureAsn1]=r),e.captureBitStringContents&&"bitStringContents"in r&&(t[e.captureBitStringContents]=r.bitStringContents),e.captureBitStringValue&&"bitStringContents"in r)){var m;if(r.bitStringContents.length<2)t[e.captureBitStringValue]="";else{var g=r.bitStringContents.charCodeAt(0);if(g!==0)throw new Error("captureBitStringValue only supported for zero unused bits");t[e.captureBitStringValue]=r.bitStringContents.slice(1)}}}else n&&n.push("["+e.name+'] Expected constructed "'+e.constructed+'", got "'+r.constructed+'"');else n&&(r.tagClass!==e.tagClass&&n.push("["+e.name+'] Expected tag class "'+e.tagClass+'", got "'+r.tagClass+'"'),r.type!==e.type&&n.push("["+e.name+'] Expected type "'+e.type+'", got "'+r.type+'"'));return i};var sM=/[^\\u0000-\\u00ff]/;ot.prettyPrint=function(r,e,t){var n="";e=e||0,t=t||2,e>0&&(n+=`
5
- `);for(var i="",s=0;s<e*t;++s)i+=" ";switch(n+=i+"Tag: ",r.tagClass){case ot.Class.UNIVERSAL:n+="Universal:";break;case ot.Class.APPLICATION:n+="Application:";break;case ot.Class.CONTEXT_SPECIFIC:n+="Context-Specific:";break;case ot.Class.PRIVATE:n+="Private:";break}if(r.tagClass===ot.Class.UNIVERSAL)switch(n+=r.type,r.type){case ot.Type.NONE:n+=" (None)";break;case ot.Type.BOOLEAN:n+=" (Boolean)";break;case ot.Type.INTEGER:n+=" (Integer)";break;case ot.Type.BITSTRING:n+=" (Bit string)";break;case ot.Type.OCTETSTRING:n+=" (Octet string)";break;case ot.Type.NULL:n+=" (Null)";break;case ot.Type.OID:n+=" (Object Identifier)";break;case ot.Type.ODESC:n+=" (Object Descriptor)";break;case ot.Type.EXTERNAL:n+=" (External or Instance of)";break;case ot.Type.REAL:n+=" (Real)";break;case ot.Type.ENUMERATED:n+=" (Enumerated)";break;case ot.Type.EMBEDDED:n+=" (Embedded PDV)";break;case ot.Type.UTF8:n+=" (UTF8)";break;case ot.Type.ROID:n+=" (Relative Object Identifier)";break;case ot.Type.SEQUENCE:n+=" (Sequence)";break;case ot.Type.SET:n+=" (Set)";break;case ot.Type.PRINTABLESTRING:n+=" (Printable String)";break;case ot.Type.IA5String:n+=" (IA5String (ASCII))";break;case ot.Type.UTCTIME:n+=" (UTC time)";break;case ot.Type.GENERALIZEDTIME:n+=" (Generalized time)";break;case ot.Type.BMPSTRING:n+=" (BMP String)";break}else n+=r.type;if(n+=`
4
+ `,t=t.substr(e));return n+=t,n};ae.binary.base64.decode=function(r,e,t){var n=e;n||(n=new Uint8Array(Math.ceil(r.length/4)*3)),r=r.replace(/[^A-Za-z0-9\+\/\=]/g,""),t=t||0;for(var i,s,a,u,c=0,l=t;c<r.length;)i=Pp[r.charCodeAt(c++)-43],s=Pp[r.charCodeAt(c++)-43],a=Pp[r.charCodeAt(c++)-43],u=Pp[r.charCodeAt(c++)-43],n[l++]=i<<2|s>>4,a!==64&&(n[l++]=(s&15)<<4|a>>2,u!==64&&(n[l++]=(a&3)<<6|u));return e?l-t:n.subarray(0,l)};ae.binary.base58.encode=function(r,e){return ae.binary.baseN.encode(r,JU,e)};ae.binary.base58.decode=function(r,e){return ae.binary.baseN.decode(r,JU,e)};ae.text={utf8:{},utf16:{}};ae.text.utf8.encode=function(r,e,t){r=ae.encodeUtf8(r);var n=e;n||(n=new Uint8Array(r.length)),t=t||0;for(var i=t,s=0;s<r.length;++s)n[i++]=r.charCodeAt(s);return e?i-t:n};ae.text.utf8.decode=function(r){return ae.decodeUtf8(String.fromCharCode.apply(null,r))};ae.text.utf16.encode=function(r,e,t){var n=e;n||(n=new Uint8Array(r.length*2));var i=new Uint16Array(n.buffer);t=t||0;for(var s=t,a=t,u=0;u<r.length;++u)i[a++]=r.charCodeAt(u),s+=2;return e?s-t:n};ae.text.utf16.decode=function(r){return String.fromCharCode.apply(null,new Uint16Array(r.buffer))};ae.deflate=function(r,e,t){if(e=ae.decode64(r.deflate(ae.encode64(e)).rval),t){var n=2,i=e.charCodeAt(1);i&32&&(n=6),e=e.substring(n,e.length-4)}return e};ae.inflate=function(r,e,t){var n=r.inflate(ae.encode64(e)).rval;return n===null?null:ae.decode64(n)};var NP=o(function(r,e,t){if(!r)throw new Error("WebStorage not available.");var n;if(t===null?n=r.removeItem(e):(t=ae.encode64(JSON.stringify(t)),n=r.setItem(e,t)),typeof n<"u"&&n.rval!==!0){var i=new Error(n.error.message);throw i.id=n.error.id,i.name=n.error.name,i}},"_setStorageObject"),IP=o(function(r,e){if(!r)throw new Error("WebStorage not available.");var t=r.getItem(e);if(r.init)if(t.rval===null){if(t.error){var n=new Error(t.error.message);throw n.id=t.error.id,n.name=t.error.name,n}t=null}else t=t.rval;return t!==null&&(t=JSON.parse(ae.decode64(t))),t},"_getStorageObject"),Lue=o(function(r,e,t,n){var i=IP(r,e);i===null&&(i={}),i[t]=n,NP(r,e,i)},"_setItem"),kue=o(function(r,e,t){var n=IP(r,e);return n!==null&&(n=t in n?n[t]:null),n},"_getItem"),Vue=o(function(r,e,t){var n=IP(r,e);if(n!==null&&t in n){delete n[t];var i=!0;for(var s in n){i=!1;break}i&&(n=null),NP(r,e,n)}},"_removeItem"),jue=o(function(r,e){NP(r,e,null)},"_clearItems"),KN=o(function(r,e,t){var n=null;typeof t>"u"&&(t=["web","flash"]);var i,s=!1,a=null;for(var u in t){i=t[u];try{if(i==="flash"||i==="both"){if(e[0]===null)throw new Error("Flash local storage not available.");n=r.apply(this,e),s=i==="flash"}(i==="web"||i==="both")&&(e[0]=localStorage,n=r.apply(this,e),s=!0)}catch(c){a=c}if(s)break}if(!s)throw a;return n},"_callStorageFunction");ae.setItem=function(r,e,t,n,i){KN(Lue,arguments,i)};ae.getItem=function(r,e,t,n){return KN(kue,arguments,n)};ae.removeItem=function(r,e,t,n){KN(Vue,arguments,n)};ae.clearItems=function(r,e,t){KN(jue,arguments,t)};ae.isEmpty=function(r){for(var e in r)if(r.hasOwnProperty(e))return!1;return!0};ae.format=function(r){for(var e=/%./g,t,n,i=0,s=[],a=0;t=e.exec(r);){n=r.substring(a,e.lastIndex-2),n.length>0&&s.push(n),a=e.lastIndex;var u=t[0][1];switch(u){case"s":case"o":i<arguments.length?s.push(arguments[i+++1]):s.push("<?>");break;case"%":s.push("%");break;default:s.push("<%"+u+"?>")}}return s.push(r.substring(a)),s.join("")};ae.formatNumber=function(r,e,t,n){var i=r,s=isNaN(e=Math.abs(e))?2:e,a=t===void 0?",":t,u=n===void 0?".":n,c=i<0?"-":"",l=parseInt(i=Math.abs(+i||0).toFixed(s),10)+"",p=l.length>3?l.length%3:0;return c+(p?l.substr(0,p)+u:"")+l.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+u)+(s?a+Math.abs(i-l).toFixed(s).slice(2):"")};ae.formatSize=function(r){return r>=1073741824?r=ae.formatNumber(r/1073741824,2,".","")+" GiB":r>=1048576?r=ae.formatNumber(r/1048576,2,".","")+" MiB":r>=1024?r=ae.formatNumber(r/1024,0)+" KiB":r=ae.formatNumber(r,0)+" bytes",r};ae.bytesFromIP=function(r){return r.indexOf(".")!==-1?ae.bytesFromIPv4(r):r.indexOf(":")!==-1?ae.bytesFromIPv6(r):null};ae.bytesFromIPv4=function(r){if(r=r.split("."),r.length!==4)return null;for(var e=ae.createBuffer(),t=0;t<r.length;++t){var n=parseInt(r[t],10);if(isNaN(n))return null;e.putByte(n)}return e.getBytes()};ae.bytesFromIPv6=function(r){var e=0;r=r.split(":").filter(function(a){return a.length===0&&++e,!0});for(var t=(8-r.length+e)*2,n=ae.createBuffer(),i=0;i<8;++i){if(!r[i]||r[i].length===0){n.fillWithByte(0,t),t=0;continue}var s=ae.hexToBytes(r[i]);s.length<2&&n.putByte(0),n.putBytes(s)}return n.getBytes()};ae.bytesToIP=function(r){return r.length===4?ae.bytesToIPv4(r):r.length===16?ae.bytesToIPv6(r):null};ae.bytesToIPv4=function(r){if(r.length!==4)return null;for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e.join(".")};ae.bytesToIPv6=function(r){if(r.length!==16)return null;for(var e=[],t=[],n=0,i=0;i<r.length;i+=2){for(var s=ae.bytesToHex(r[i]+r[i+1]);s[0]==="0"&&s!=="0";)s=s.substr(1);if(s==="0"){var a=t[t.length-1],u=e.length;!a||u!==a.end+1?t.push({start:u,end:u}):(a.end=u,a.end-a.start>t[n].end-t[n].start&&(n=t.length-1))}e.push(s)}if(t.length>0){var c=t[n];c.end-c.start>0&&(e.splice(c.start,c.end-c.start+1,""),c.start===0&&e.unshift(""),c.end===7&&e.push(""))}return e.join(":")};ae.estimateCores=function(r,e){if(typeof r=="function"&&(e=r,r={}),r=r||{},"cores"in ae&&!r.update)return e(null,ae.cores);if(typeof navigator<"u"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0)return ae.cores=navigator.hardwareConcurrency,e(null,ae.cores);if(typeof Worker>"u")return ae.cores=1,e(null,ae.cores);if(typeof Blob>"u")return ae.cores=2,e(null,ae.cores);var t=URL.createObjectURL(new Blob(["(",(function(){self.addEventListener("message",function(a){for(var u=Date.now(),c=u+4;Date.now()<c;);self.postMessage({st:u,et:c})})}).toString(),")()"],{type:"application/javascript"}));n([],5,16);function n(a,u,c){if(u===0){var l=Math.floor(a.reduce(function(p,m){return p+m},0)/a.length);return ae.cores=Math.max(1,l),URL.revokeObjectURL(t),e(null,ae.cores)}i(c,function(p,m){a.push(s(c,m)),n(a,u-1,c)})}o(n,"sample");function i(a,u){for(var c=[],l=[],p=0;p<a;++p){var m=new Worker(t);m.addEventListener("message",function(g){if(l.push(g.data),l.length===a){for(var y=0;y<a;++y)c[y].terminate();u(null,l)}}),c.push(m)}for(var p=0;p<a;++p)c[p].postMessage(p)}o(i,"map");function s(a,u){for(var c=[],l=0;l<a;++l)for(var p=u[l],m=c[l]=[],g=0;g<a;++g)if(l!==g){var y=u[g];(p.st>y.st&&p.st<y.et||y.st>p.st&&y.st<p.et)&&m.push(g)}return c.reduce(function(v,b){return Math.max(v,b.length)},0)}o(s,"reduce")}});var $N=Z((G2e,YU)=>{"use strict";var $i=pr();kr();YU.exports=$i.cipher=$i.cipher||{};$i.cipher.algorithms=$i.cipher.algorithms||{};$i.cipher.createCipher=function(r,e){var t=r;if(typeof t=="string"&&(t=$i.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new $i.cipher.BlockCipher({algorithm:t,key:e,decrypt:!1})};$i.cipher.createDecipher=function(r,e){var t=r;if(typeof t=="string"&&(t=$i.cipher.getAlgorithm(t),t&&(t=t())),!t)throw new Error("Unsupported algorithm: "+r);return new $i.cipher.BlockCipher({algorithm:t,key:e,decrypt:!0})};$i.cipher.registerAlgorithm=function(r,e){r=r.toUpperCase(),$i.cipher.algorithms[r]=e};$i.cipher.getAlgorithm=function(r){return r=r.toUpperCase(),r in $i.cipher.algorithms?$i.cipher.algorithms[r]:null};var TP=$i.cipher.BlockCipher=function(r){this.algorithm=r.algorithm,this.mode=this.algorithm.mode,this.blockSize=this.mode.blockSize,this._finish=!1,this._input=null,this.output=null,this._op=r.decrypt?this.mode.decrypt:this.mode.encrypt,this._decrypt=r.decrypt,this.algorithm.initialize(r)};TP.prototype.start=function(r){r=r||{};var e={};for(var t in r)e[t]=r[t];e.decrypt=this._decrypt,this._finish=!1,this._input=$i.util.createBuffer(),this.output=r.output||$i.util.createBuffer(),this.mode.start(e)};TP.prototype.update=function(r){for(r&&this._input.putBuffer(r);!this._op.call(this.mode,this._input,this.output,this._finish)&&!this._finish;);this._input.compact()};TP.prototype.finish=function(r){r&&(this.mode.name==="ECB"||this.mode.name==="CBC")&&(this.mode.pad=function(t){return r(this.blockSize,t,!1)},this.mode.unpad=function(t){return r(this.blockSize,t,!0)});var e={};return e.decrypt=this._decrypt,e.overflow=this._input.length()%this.blockSize,!(!this._decrypt&&this.mode.pad&&!this.mode.pad(this._input,e)||(this._finish=!0,this.update(),this._decrypt&&this.mode.unpad&&!this.mode.unpad(this.output,e))||this.mode.afterFinish&&!this.mode.afterFinish(this.output,e))}});var DP=Z((X2e,ZU)=>{"use strict";var Gi=pr();kr();Gi.cipher=Gi.cipher||{};var Sr=ZU.exports=Gi.cipher.modes=Gi.cipher.modes||{};Sr.ecb=function(r){r=r||{},this.name="ECB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.ecb.prototype.start=function(r){};Sr.ecb.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n])};Sr.ecb.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.ecb.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cbc=function(r){r=r||{},this.name="CBC",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints)};Sr.cbc.prototype.start=function(r){if(r.iv===null){if(!this._prev)throw new Error("Invalid IV parameter.");this._iv=this._prev.slice(0)}else if("iv"in r)this._iv=GN(r.iv,this.blockSize),this._prev=this._iv.slice(0);else throw new Error("Invalid IV parameter.")};Sr.cbc.prototype.encrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=this._prev[n]^r.getInt32();this.cipher.encrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._outBlock[n]);this._prev=this._outBlock};Sr.cbc.prototype.decrypt=function(r,e,t){if(r.length()<this.blockSize&&!(t&&r.length()>0))return!0;for(var n=0;n<this._ints;++n)this._inBlock[n]=r.getInt32();this.cipher.decrypt(this._inBlock,this._outBlock);for(var n=0;n<this._ints;++n)e.putInt32(this._prev[n]^this._outBlock[n]);this._prev=this._inBlock.slice(0)};Sr.cbc.prototype.pad=function(r,e){var t=r.length()===this.blockSize?this.blockSize:this.blockSize-r.length();return r.fillWithByte(t,t),!0};Sr.cbc.prototype.unpad=function(r,e){if(e.overflow>0)return!1;var t=r.length(),n=r.at(t-1);return n>this.blockSize<<2?!1:(r.truncate(n),!0)};Sr.cfb=function(r){r=r||{},this.name="CFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.cfb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.cfb.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32()^this._outBlock[i],e.putInt32(this._inBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32()^this._outBlock[i],this._partialOutput.putInt32(this._partialBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.cfb.prototype.decrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)this._inBlock[i]=r.getInt32(),e.putInt32(this._inBlock[i]^this._outBlock[i]);return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialBlock[i]=r.getInt32(),this._partialOutput.putInt32(this._partialBlock[i]^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._partialBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb=function(r){r=r||{},this.name="OFB",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.ofb.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ofb.prototype.encrypt=function(r,e,t){var n=r.length();if(r.length()===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]),this._inBlock[i]=this._outBlock[i];return}var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0)r.read-=this.blockSize;else for(var i=0;i<this._ints;++i)this._inBlock[i]=this._outBlock[i];if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0};Sr.ofb.prototype.decrypt=Sr.ofb.prototype.encrypt;Sr.ctr=function(r){r=r||{},this.name="CTR",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=null,this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0};Sr.ctr.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");this._iv=GN(r.iv,this.blockSize),this._inBlock=this._iv.slice(0),this._partialBytes=0};Sr.ctr.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize)for(var i=0;i<this._ints;++i)e.putInt32(r.getInt32()^this._outBlock[i]);else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s>0&&(r.read-=this.blockSize),this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}XN(this._inBlock)};Sr.ctr.prototype.decrypt=Sr.ctr.prototype.encrypt;Sr.gcm=function(r){r=r||{},this.name="GCM",this.cipher=r.cipher,this.blockSize=r.blockSize||16,this._ints=this.blockSize/4,this._inBlock=new Array(this._ints),this._outBlock=new Array(this._ints),this._partialOutput=Gi.util.createBuffer(),this._partialBytes=0,this._R=3774873600};Sr.gcm.prototype.start=function(r){if(!("iv"in r))throw new Error("Invalid IV parameter.");var e=Gi.util.createBuffer(r.iv);this._cipherLength=0;var t;if("additionalData"in r?t=Gi.util.createBuffer(r.additionalData):t=Gi.util.createBuffer(),"tagLength"in r?this._tagLength=r.tagLength:this._tagLength=128,this._tag=null,r.decrypt&&(this._tag=Gi.util.createBuffer(r.tag).getBytes(),this._tag.length!==this._tagLength/8))throw new Error("Authentication tag does not match tag length.");this._hashBlock=new Array(this._ints),this.tag=null,this._hashSubkey=new Array(this._ints),this.cipher.encrypt([0,0,0,0],this._hashSubkey),this.componentBits=4,this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var n=e.length();if(n===12)this._j0=[e.getInt32(),e.getInt32(),e.getInt32(),1];else{for(this._j0=[0,0,0,0];e.length()>0;)this._j0=this.ghash(this._hashSubkey,this._j0,[e.getInt32(),e.getInt32(),e.getInt32(),e.getInt32()]);this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(RP(n*8)))}this._inBlock=this._j0.slice(0),XN(this._inBlock),this._partialBytes=0,t=Gi.util.createBuffer(t),this._aDataLength=RP(t.length()*8);var i=t.length()%this.blockSize;for(i&&t.fillWithByte(0,this.blockSize-i),this._s=[0,0,0,0];t.length()>0;)this._s=this.ghash(this._hashSubkey,this._s,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])};Sr.gcm.prototype.encrypt=function(r,e,t){var n=r.length();if(n===0)return!0;if(this.cipher.encrypt(this._inBlock,this._outBlock),this._partialBytes===0&&n>=this.blockSize){for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^=r.getInt32());this._cipherLength+=this.blockSize}else{var s=(this.blockSize-n)%this.blockSize;s>0&&(s=this.blockSize-s),this._partialOutput.clear();for(var i=0;i<this._ints;++i)this._partialOutput.putInt32(r.getInt32()^this._outBlock[i]);if(s<=0||t){if(t){var a=n%this.blockSize;this._cipherLength+=a,this._partialOutput.truncate(this.blockSize-a)}else this._cipherLength+=this.blockSize;for(var i=0;i<this._ints;++i)this._outBlock[i]=this._partialOutput.getInt32();this._partialOutput.read-=this.blockSize}if(this._partialBytes>0&&this._partialOutput.getBytes(this._partialBytes),s>0&&!t)return r.read-=this.blockSize,e.putBytes(this._partialOutput.getBytes(s-this._partialBytes)),this._partialBytes=s,!0;e.putBytes(this._partialOutput.getBytes(n-this._partialBytes)),this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock),XN(this._inBlock)};Sr.gcm.prototype.decrypt=function(r,e,t){var n=r.length();if(n<this.blockSize&&!(t&&n>0))return!0;this.cipher.encrypt(this._inBlock,this._outBlock),XN(this._inBlock),this._hashBlock[0]=r.getInt32(),this._hashBlock[1]=r.getInt32(),this._hashBlock[2]=r.getInt32(),this._hashBlock[3]=r.getInt32(),this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var i=0;i<this._ints;++i)e.putInt32(this._outBlock[i]^this._hashBlock[i]);n<this.blockSize?this._cipherLength+=n%this.blockSize:this._cipherLength+=this.blockSize};Sr.gcm.prototype.afterFinish=function(r,e){var t=!0;e.decrypt&&e.overflow&&r.truncate(this.blockSize-e.overflow),this.tag=Gi.util.createBuffer();var n=this._aDataLength.concat(RP(this._cipherLength*8));this._s=this.ghash(this._hashSubkey,this._s,n);var i=[];this.cipher.encrypt(this._j0,i);for(var s=0;s<this._ints;++s)this.tag.putInt32(this._s[s]^i[s]);return this.tag.truncate(this.tag.length()%(this._tagLength/8)),e.decrypt&&this.tag.bytes()!==this._tag&&(t=!1),t};Sr.gcm.prototype.multiply=function(r,e){for(var t=[0,0,0,0],n=e.slice(0),i=0;i<128;++i){var s=r[i/32|0]&1<<31-i%32;s&&(t[0]^=n[0],t[1]^=n[1],t[2]^=n[2],t[3]^=n[3]),this.pow(n,n)}return t};Sr.gcm.prototype.pow=function(r,e){for(var t=r[3]&1,n=3;n>0;--n)e[n]=r[n]>>>1|(r[n-1]&1)<<31;e[0]=r[0]>>>1,t&&(e[0]^=this._R)};Sr.gcm.prototype.tableMultiply=function(r){for(var e=[0,0,0,0],t=0;t<32;++t){var n=t/8|0,i=r[n]>>>(7-t%8)*4&15,s=this._m[t][i];e[0]^=s[0],e[1]^=s[1],e[2]^=s[2],e[3]^=s[3]}return e};Sr.gcm.prototype.ghash=function(r,e,t){return e[0]^=t[0],e[1]^=t[1],e[2]^=t[2],e[3]^=t[3],this.tableMultiply(e)};Sr.gcm.prototype.generateHashTable=function(r,e){for(var t=8/e,n=4*t,i=16*t,s=new Array(i),a=0;a<i;++a){var u=[0,0,0,0],c=a/n|0,l=(n-1-a%n)*e;u[c]=1<<e-1<<l,s[a]=this.generateSubHashTable(this.multiply(u,r),e)}return s};Sr.gcm.prototype.generateSubHashTable=function(r,e){var t=1<<e,n=t>>>1,i=new Array(t);i[n]=r.slice(0);for(var s=n>>>1;s>0;)this.pow(i[2*s],i[s]=[]),s>>=1;for(s=2;s<n;){for(var a=1;a<s;++a){var u=i[s],c=i[a];i[s+a]=[u[0]^c[0],u[1]^c[1],u[2]^c[2],u[3]^c[3]]}s*=2}for(i[0]=[0,0,0,0],s=n+1;s<t;++s){var l=i[s^n];i[s]=[r[0]^l[0],r[1]^l[1],r[2]^l[2],r[3]^l[3]]}return i};function GN(r,e){if(typeof r=="string"&&(r=Gi.util.createBuffer(r)),Gi.util.isArray(r)&&r.length>4){var t=r;r=Gi.util.createBuffer();for(var n=0;n<t.length;++n)r.putByte(t[n])}if(r.length()<e)throw new Error("Invalid IV length; got "+r.length()+" bytes and expected "+e+" bytes.");if(!Gi.util.isArray(r)){for(var i=[],s=e/4,n=0;n<s;++n)i.push(r.getInt32());r=i}return r}o(GN,"transformIV");function XN(r){r[r.length-1]=r[r.length-1]+1&4294967295}o(XN,"inc32");function RP(r){return[r/4294967296|0,r&4294967295]}o(RP,"from64To32")});var Bp=Z((J2e,nM)=>{"use strict";var vn=pr();$N();DP();kr();nM.exports=vn.aes=vn.aes||{};vn.aes.startEncrypting=function(r,e,t,n){var i=WN({key:r,output:t,decrypt:!1,mode:n});return i.start(e),i};vn.aes.createEncryptionCipher=function(r,e){return WN({key:r,output:null,decrypt:!1,mode:e})};vn.aes.startDecrypting=function(r,e,t,n){var i=WN({key:r,output:t,decrypt:!0,mode:n});return i.start(e),i};vn.aes.createDecryptionCipher=function(r,e){return WN({key:r,output:null,decrypt:!0,mode:e})};vn.aes.Algorithm=function(r,e){PP||tM();var t=this;t.name=r,t.mode=new e({blockSize:16,cipher:{encrypt:o(function(n,i){return OP(t._w,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return OP(t._w,n,i,!0)},"decrypt")}}),t._init=!1};vn.aes.Algorithm.prototype.initialize=function(r){if(!this._init){var e=r.key,t;if(typeof e=="string"&&(e.length===16||e.length===24||e.length===32))e=vn.util.createBuffer(e);else if(vn.util.isArray(e)&&(e.length===16||e.length===24||e.length===32)){t=e,e=vn.util.createBuffer();for(var n=0;n<t.length;++n)e.putByte(t[n])}if(!vn.util.isArray(e)){t=e,e=[];var i=t.length();if(i===16||i===24||i===32){i=i>>>2;for(var n=0;n<i;++n)e.push(t.getInt32())}}if(!vn.util.isArray(e)||!(e.length===4||e.length===6||e.length===8))throw new Error("Invalid key parameter.");var s=this.mode.name,a=["CFB","OFB","CTR","GCM"].indexOf(s)!==-1;this._w=rM(e,r.decrypt&&!a),this._init=!0}};vn.aes._expandKey=function(r,e){return PP||tM(),rM(r,e)};vn.aes._updateBlock=OP;Yg("AES-ECB",vn.cipher.modes.ecb);Yg("AES-CBC",vn.cipher.modes.cbc);Yg("AES-CFB",vn.cipher.modes.cfb);Yg("AES-OFB",vn.cipher.modes.ofb);Yg("AES-CTR",vn.cipher.modes.ctr);Yg("AES-GCM",vn.cipher.modes.gcm);function Yg(r,e){var t=o(function(){return new vn.aes.Algorithm(r,e)},"factory");vn.cipher.registerAlgorithm(r,t)}o(Yg,"registerAlgorithm");var PP=!1,Qg=4,fa,_P,eM,Qd,Nu;function tM(){PP=!0,eM=[0,1,2,4,8,16,32,64,128,27,54];for(var r=new Array(256),e=0;e<128;++e)r[e]=e<<1,r[e+128]=e+128<<1^283;fa=new Array(256),_P=new Array(256),Qd=new Array(4),Nu=new Array(4);for(var e=0;e<4;++e)Qd[e]=new Array(256),Nu[e]=new Array(256);for(var t=0,n=0,i,s,a,u,c,l,p,e=0;e<256;++e){u=n^n<<1^n<<2^n<<3^n<<4,u=u>>8^u&255^99,fa[t]=u,_P[u]=t,c=r[u],i=r[t],s=r[i],a=r[s],l=c<<24^u<<16^u<<8^(u^c),p=(i^s^a)<<24^(t^a)<<16^(t^s^a)<<8^(t^i^a);for(var m=0;m<4;++m)Qd[m][t]=l,Nu[m][u]=p,l=l<<24|l>>>8,p=p<<24|p>>>8;t===0?t=n=1:(t=i^r[r[r[i^a]]],n^=r[r[n]])}}o(tM,"initialize");function rM(r,e){for(var t=r.slice(0),n,i=1,s=t.length,a=s+6+1,u=Qg*a,c=s;c<u;++c)n=t[c-1],c%s===0?(n=fa[n>>>16&255]<<24^fa[n>>>8&255]<<16^fa[n&255]<<8^fa[n>>>24]^eM[i]<<24,i++):s>6&&c%s===4&&(n=fa[n>>>24]<<24^fa[n>>>16&255]<<16^fa[n>>>8&255]<<8^fa[n&255]),t[c]=t[c-s]^n;if(e){var l,p=Nu[0],m=Nu[1],g=Nu[2],y=Nu[3],v=t.slice(0);u=t.length;for(var c=0,b=u-Qg;c<u;c+=Qg,b-=Qg)if(c===0||c===u-Qg)v[c]=t[b],v[c+1]=t[b+3],v[c+2]=t[b+2],v[c+3]=t[b+1];else for(var x=0;x<Qg;++x)l=t[b+x],v[c+(3&-x)]=p[fa[l>>>24]]^m[fa[l>>>16&255]]^g[fa[l>>>8&255]]^y[fa[l&255]];t=v}return t}o(rM,"_expandKey");function OP(r,e,t,n){var i=r.length/4-1,s,a,u,c,l;n?(s=Nu[0],a=Nu[1],u=Nu[2],c=Nu[3],l=_P):(s=Qd[0],a=Qd[1],u=Qd[2],c=Qd[3],l=fa);var p,m,g,y,v,b,x;p=e[0]^r[0],m=e[n?3:1]^r[1],g=e[2]^r[2],y=e[n?1:3]^r[3];for(var E=3,N=1;N<i;++N)v=s[p>>>24]^a[m>>>16&255]^u[g>>>8&255]^c[y&255]^r[++E],b=s[m>>>24]^a[g>>>16&255]^u[y>>>8&255]^c[p&255]^r[++E],x=s[g>>>24]^a[y>>>16&255]^u[p>>>8&255]^c[m&255]^r[++E],y=s[y>>>24]^a[p>>>16&255]^u[m>>>8&255]^c[g&255]^r[++E],p=v,m=b,g=x;t[0]=l[p>>>24]<<24^l[m>>>16&255]<<16^l[g>>>8&255]<<8^l[y&255]^r[++E],t[n?3:1]=l[m>>>24]<<24^l[g>>>16&255]<<16^l[y>>>8&255]<<8^l[p&255]^r[++E],t[2]=l[g>>>24]<<24^l[y>>>16&255]<<16^l[p>>>8&255]<<8^l[m&255]^r[++E],t[n?1:3]=l[y>>>24]<<24^l[p>>>16&255]<<16^l[m>>>8&255]<<8^l[g&255]^r[++E]}o(OP,"_updateBlock");function WN(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="AES-"+e,n;r.decrypt?n=vn.cipher.createDecipher(t,r.key):n=vn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof vn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(WN,"_createCipher")});var Fp=Z((Y2e,iM)=>{"use strict";var Px=pr();Px.pki=Px.pki||{};var BP=iM.exports=Px.pki.oids=Px.oids=Px.oids||{};function Xe(r,e){BP[r]=e,BP[e]=r}o(Xe,"_IN");function Wr(r,e){BP[r]=e}o(Wr,"_I_");Xe("1.2.840.113549.1.1.1","rsaEncryption");Xe("1.2.840.113549.1.1.4","md5WithRSAEncryption");Xe("1.2.840.113549.1.1.5","sha1WithRSAEncryption");Xe("1.2.840.113549.1.1.7","RSAES-OAEP");Xe("1.2.840.113549.1.1.8","mgf1");Xe("1.2.840.113549.1.1.9","pSpecified");Xe("1.2.840.113549.1.1.10","RSASSA-PSS");Xe("1.2.840.113549.1.1.11","sha256WithRSAEncryption");Xe("1.2.840.113549.1.1.12","sha384WithRSAEncryption");Xe("1.2.840.113549.1.1.13","sha512WithRSAEncryption");Xe("1.3.101.112","EdDSA25519");Xe("1.2.840.10040.4.3","dsa-with-sha1");Xe("1.3.14.3.2.7","desCBC");Xe("1.3.14.3.2.26","sha1");Xe("1.3.14.3.2.29","sha1WithRSASignature");Xe("2.16.840.1.101.3.4.2.1","sha256");Xe("2.16.840.1.101.3.4.2.2","sha384");Xe("2.16.840.1.101.3.4.2.3","sha512");Xe("2.16.840.1.101.3.4.2.4","sha224");Xe("2.16.840.1.101.3.4.2.5","sha512-224");Xe("2.16.840.1.101.3.4.2.6","sha512-256");Xe("1.2.840.113549.2.2","md2");Xe("1.2.840.113549.2.5","md5");Xe("1.2.840.113549.1.7.1","data");Xe("1.2.840.113549.1.7.2","signedData");Xe("1.2.840.113549.1.7.3","envelopedData");Xe("1.2.840.113549.1.7.4","signedAndEnvelopedData");Xe("1.2.840.113549.1.7.5","digestedData");Xe("1.2.840.113549.1.7.6","encryptedData");Xe("1.2.840.113549.1.9.1","emailAddress");Xe("1.2.840.113549.1.9.2","unstructuredName");Xe("1.2.840.113549.1.9.3","contentType");Xe("1.2.840.113549.1.9.4","messageDigest");Xe("1.2.840.113549.1.9.5","signingTime");Xe("1.2.840.113549.1.9.6","counterSignature");Xe("1.2.840.113549.1.9.7","challengePassword");Xe("1.2.840.113549.1.9.8","unstructuredAddress");Xe("1.2.840.113549.1.9.14","extensionRequest");Xe("1.2.840.113549.1.9.20","friendlyName");Xe("1.2.840.113549.1.9.21","localKeyId");Xe("1.2.840.113549.1.9.22.1","x509Certificate");Xe("1.2.840.113549.1.12.10.1.1","keyBag");Xe("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");Xe("1.2.840.113549.1.12.10.1.3","certBag");Xe("1.2.840.113549.1.12.10.1.4","crlBag");Xe("1.2.840.113549.1.12.10.1.5","secretBag");Xe("1.2.840.113549.1.12.10.1.6","safeContentsBag");Xe("1.2.840.113549.1.5.13","pkcs5PBES2");Xe("1.2.840.113549.1.5.12","pkcs5PBKDF2");Xe("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");Xe("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");Xe("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");Xe("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");Xe("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");Xe("1.2.840.113549.2.7","hmacWithSHA1");Xe("1.2.840.113549.2.8","hmacWithSHA224");Xe("1.2.840.113549.2.9","hmacWithSHA256");Xe("1.2.840.113549.2.10","hmacWithSHA384");Xe("1.2.840.113549.2.11","hmacWithSHA512");Xe("1.2.840.113549.3.7","des-EDE3-CBC");Xe("2.16.840.1.101.3.4.1.2","aes128-CBC");Xe("2.16.840.1.101.3.4.1.22","aes192-CBC");Xe("2.16.840.1.101.3.4.1.42","aes256-CBC");Xe("2.5.4.3","commonName");Xe("2.5.4.4","surname");Xe("2.5.4.5","serialNumber");Xe("2.5.4.6","countryName");Xe("2.5.4.7","localityName");Xe("2.5.4.8","stateOrProvinceName");Xe("2.5.4.9","streetAddress");Xe("2.5.4.10","organizationName");Xe("2.5.4.11","organizationalUnitName");Xe("2.5.4.12","title");Xe("2.5.4.13","description");Xe("2.5.4.15","businessCategory");Xe("2.5.4.17","postalCode");Xe("2.5.4.42","givenName");Xe("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");Xe("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");Xe("2.16.840.1.113730.1.1","nsCertType");Xe("2.16.840.1.113730.1.13","nsComment");Wr("2.5.29.1","authorityKeyIdentifier");Wr("2.5.29.2","keyAttributes");Wr("2.5.29.3","certificatePolicies");Wr("2.5.29.4","keyUsageRestriction");Wr("2.5.29.5","policyMapping");Wr("2.5.29.6","subtreesConstraint");Wr("2.5.29.7","subjectAltName");Wr("2.5.29.8","issuerAltName");Wr("2.5.29.9","subjectDirectoryAttributes");Wr("2.5.29.10","basicConstraints");Wr("2.5.29.11","nameConstraints");Wr("2.5.29.12","policyConstraints");Wr("2.5.29.13","basicConstraints");Xe("2.5.29.14","subjectKeyIdentifier");Xe("2.5.29.15","keyUsage");Wr("2.5.29.16","privateKeyUsagePeriod");Xe("2.5.29.17","subjectAltName");Xe("2.5.29.18","issuerAltName");Xe("2.5.29.19","basicConstraints");Wr("2.5.29.20","cRLNumber");Wr("2.5.29.21","cRLReason");Wr("2.5.29.22","expirationDate");Wr("2.5.29.23","instructionCode");Wr("2.5.29.24","invalidityDate");Wr("2.5.29.25","cRLDistributionPoints");Wr("2.5.29.26","issuingDistributionPoint");Wr("2.5.29.27","deltaCRLIndicator");Wr("2.5.29.28","issuingDistributionPoint");Wr("2.5.29.29","certificateIssuer");Wr("2.5.29.30","nameConstraints");Xe("2.5.29.31","cRLDistributionPoints");Xe("2.5.29.32","certificatePolicies");Wr("2.5.29.33","policyMappings");Wr("2.5.29.34","policyConstraints");Xe("2.5.29.35","authorityKeyIdentifier");Wr("2.5.29.36","policyConstraints");Xe("2.5.29.37","extKeyUsage");Wr("2.5.29.46","freshestCRL");Wr("2.5.29.54","inhibitAnyPolicy");Xe("1.3.6.1.4.1.11129.2.4.2","timestampList");Xe("1.3.6.1.5.5.7.1.1","authorityInfoAccess");Xe("1.3.6.1.5.5.7.3.1","serverAuth");Xe("1.3.6.1.5.5.7.3.2","clientAuth");Xe("1.3.6.1.5.5.7.3.3","codeSigning");Xe("1.3.6.1.5.5.7.3.4","emailProtection");Xe("1.3.6.1.5.5.7.3.8","timeStamping")});var Iu=Z((eIe,aM)=>{"use strict";var Tn=pr();kr();Fp();var ct=aM.exports=Tn.asn1=Tn.asn1||{};ct.Class={UNIVERSAL:0,APPLICATION:64,CONTEXT_SPECIFIC:128,PRIVATE:192};ct.Type={NONE:0,BOOLEAN:1,INTEGER:2,BITSTRING:3,OCTETSTRING:4,NULL:5,OID:6,ODESC:7,EXTERNAL:8,REAL:9,ENUMERATED:10,EMBEDDED:11,UTF8:12,ROID:13,SEQUENCE:16,SET:17,PRINTABLESTRING:19,IA5STRING:22,UTCTIME:23,GENERALIZEDTIME:24,BMPSTRING:30};ct.create=function(r,e,t,n,i){if(Tn.util.isArray(n)){for(var s=[],a=0;a<n.length;++a)n[a]!==void 0&&s.push(n[a]);n=s}var u={tagClass:r,type:e,constructed:t,composed:t||Tn.util.isArray(n),value:n};return i&&"bitStringContents"in i&&(u.bitStringContents=i.bitStringContents,u.original=ct.copy(u)),u};ct.copy=function(r,e){var t;if(Tn.util.isArray(r)){t=[];for(var n=0;n<r.length;++n)t.push(ct.copy(r[n],e));return t}return typeof r=="string"?r:(t={tagClass:r.tagClass,type:r.type,constructed:r.constructed,composed:r.composed,value:ct.copy(r.value,e)},e&&!e.excludeBitStringContents&&(t.bitStringContents=r.bitStringContents),t)};ct.equals=function(r,e,t){if(Tn.util.isArray(r)){if(!Tn.util.isArray(e)||r.length!==e.length)return!1;for(var n=0;n<r.length;++n)if(!ct.equals(r[n],e[n]))return!1;return!0}if(typeof r!=typeof e)return!1;if(typeof r=="string")return r===e;var i=r.tagClass===e.tagClass&&r.type===e.type&&r.constructed===e.constructed&&r.composed===e.composed&&ct.equals(r.value,e.value);return t&&t.includeBitStringContents&&(i=i&&r.bitStringContents===e.bitStringContents),i};ct.getBerValueLength=function(r){var e=r.getByte();if(e!==128){var t,n=e&128;return n?t=r.getInt((e&127)<<3):t=e,t}};function Bx(r,e,t){if(t>e){var n=new Error("Too few bytes to parse DER.");throw n.available=r.length(),n.remaining=e,n.requested=t,n}}o(Bx,"_checkBufferLength");var Uue=o(function(r,e){var t=r.getByte();if(e--,t!==128){var n,i=t&128;if(!i)n=t;else{var s=t&127;Bx(r,e,s),n=r.getInt(s<<3)}if(n<0)throw new Error("Negative length: "+n);return n}},"_getValueLength");ct.fromDer=function(r,e){e===void 0&&(e={strict:!0,parseAllBytes:!0,decodeBitStrings:!0}),typeof e=="boolean"&&(e={strict:e,parseAllBytes:!0,decodeBitStrings:!0}),"strict"in e||(e.strict=!0),"parseAllBytes"in e||(e.parseAllBytes=!0),"decodeBitStrings"in e||(e.decodeBitStrings=!0),typeof r=="string"&&(r=Tn.util.createBuffer(r));var t=r.length(),n=JN(r,r.length(),0,e);if(e.parseAllBytes&&r.length()!==0){var i=new Error("Unparsed DER bytes remain after ASN.1 parsing.");throw i.byteCount=t,i.remaining=r.length(),i}return n};function JN(r,e,t,n){var i;Bx(r,e,2);var s=r.getByte();e--;var a=s&192,u=s&31;i=r.length();var c=Uue(r,e);if(e-=i-r.length(),c!==void 0&&c>e){if(n.strict){var l=new Error("Too few bytes to read ASN.1 value.");throw l.available=r.length(),l.remaining=e,l.requested=c,l}c=e}var p,m,g=(s&32)===32;if(g)if(p=[],c===void 0)for(;;){if(Bx(r,e,2),r.bytes(2)==="\0\0"){r.getBytes(2),e-=2;break}i=r.length(),p.push(JN(r,e,t+1,n)),e-=i-r.length()}else for(;c>0;)i=r.length(),p.push(JN(r,c,t+1,n)),e-=i-r.length(),c-=i-r.length();if(p===void 0&&a===ct.Class.UNIVERSAL&&u===ct.Type.BITSTRING&&(m=r.bytes(c)),p===void 0&&n.decodeBitStrings&&a===ct.Class.UNIVERSAL&&u===ct.Type.BITSTRING&&c>1){var y=r.read,v=e,b=0;if(u===ct.Type.BITSTRING&&(Bx(r,e,1),b=r.getByte(),e--),b===0)try{i=r.length();var x={strict:!0,decodeBitStrings:!0},E=JN(r,e,t+1,x),N=i-r.length();e-=N,u==ct.Type.BITSTRING&&N++;var w=E.tagClass;N===c&&(w===ct.Class.UNIVERSAL||w===ct.Class.CONTEXT_SPECIFIC)&&(p=[E])}catch{}p===void 0&&(r.read=y,e=v)}if(p===void 0){if(c===void 0){if(n.strict)throw new Error("Non-constructed ASN.1 object of indefinite length.");c=e}if(u===ct.Type.BMPSTRING)for(p="";c>0;c-=2)Bx(r,e,2),p+=String.fromCharCode(r.getInt16()),e-=2;else p=r.getBytes(c),e-=c}var C=m===void 0?null:{bitStringContents:m};return ct.create(a,u,g,p,C)}o(JN,"_fromDer");ct.toDer=function(r){var e=Tn.util.createBuffer(),t=r.tagClass|r.type,n=Tn.util.createBuffer(),i=!1;if("bitStringContents"in r&&(i=!0,r.original&&(i=ct.equals(r,r.original))),i)n.putBytes(r.bitStringContents);else if(r.composed){r.constructed?t|=32:n.putByte(0);for(var s=0;s<r.value.length;++s)r.value[s]!==void 0&&n.putBuffer(ct.toDer(r.value[s]))}else if(r.type===ct.Type.BMPSTRING)for(var s=0;s<r.value.length;++s)n.putInt16(r.value.charCodeAt(s));else r.type===ct.Type.INTEGER&&r.value.length>1&&(r.value.charCodeAt(0)===0&&(r.value.charCodeAt(1)&128)===0||r.value.charCodeAt(0)===255&&(r.value.charCodeAt(1)&128)===128)?n.putBytes(r.value.substr(1)):n.putBytes(r.value);if(e.putByte(t),n.length()<=127)e.putByte(n.length()&127);else{var a=n.length(),u="";do u+=String.fromCharCode(a&255),a=a>>>8;while(a>0);e.putByte(u.length|128);for(var s=u.length-1;s>=0;--s)e.putByte(u.charCodeAt(s))}return e.putBuffer(n),e};ct.oidToDer=function(r){var e=r.split("."),t=Tn.util.createBuffer();t.putByte(40*parseInt(e[0],10)+parseInt(e[1],10));for(var n,i,s,a,u=2;u<e.length;++u){n=!0,i=[],s=parseInt(e[u],10);do a=s&127,s=s>>>7,n||(a|=128),i.push(a),n=!1;while(s>0);for(var c=i.length-1;c>=0;--c)t.putByte(i[c])}return t};ct.derToOid=function(r){var e;typeof r=="string"&&(r=Tn.util.createBuffer(r));var t=r.getByte();e=Math.floor(t/40)+"."+t%40;for(var n=0;r.length()>0;)t=r.getByte(),n=n<<7,t&128?n+=t&127:(e+="."+(n+t),n=0);return e};ct.utcTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,2),10);t=t>=50?1900+t:2e3+t;var n=parseInt(r.substr(2,2),10)-1,i=parseInt(r.substr(4,2),10),s=parseInt(r.substr(6,2),10),a=parseInt(r.substr(8,2),10),u=0;if(r.length>11){var c=r.charAt(10),l=10;c!=="+"&&c!=="-"&&(u=parseInt(r.substr(10,2),10),l+=2)}if(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,0),l&&(c=r.charAt(l),c==="+"||c==="-")){var p=parseInt(r.substr(l+1,2),10),m=parseInt(r.substr(l+4,2),10),g=p*60+m;g*=6e4,c==="+"?e.setTime(+e-g):e.setTime(+e+g)}return e};ct.generalizedTimeToDate=function(r){var e=new Date,t=parseInt(r.substr(0,4),10),n=parseInt(r.substr(4,2),10)-1,i=parseInt(r.substr(6,2),10),s=parseInt(r.substr(8,2),10),a=parseInt(r.substr(10,2),10),u=parseInt(r.substr(12,2),10),c=0,l=0,p=!1;r.charAt(r.length-1)==="Z"&&(p=!0);var m=r.length-5,g=r.charAt(m);if(g==="+"||g==="-"){var y=parseInt(r.substr(m+1,2),10),v=parseInt(r.substr(m+4,2),10);l=y*60+v,l*=6e4,g==="+"&&(l*=-1),p=!0}return r.charAt(14)==="."&&(c=parseFloat(r.substr(14),10)*1e3),p?(e.setUTCFullYear(t,n,i),e.setUTCHours(s,a,u,c),e.setTime(+e+l)):(e.setFullYear(t,n,i),e.setHours(s,a,u,c)),e};ct.dateToUtcTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push((""+r.getUTCFullYear()).substr(2)),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ct.dateToGeneralizedTime=function(r){if(typeof r=="string")return r;var e="",t=[];t.push(""+r.getUTCFullYear()),t.push(""+(r.getUTCMonth()+1)),t.push(""+r.getUTCDate()),t.push(""+r.getUTCHours()),t.push(""+r.getUTCMinutes()),t.push(""+r.getUTCSeconds());for(var n=0;n<t.length;++n)t[n].length<2&&(e+="0"),e+=t[n];return e+="Z",e};ct.integerToDer=function(r){var e=Tn.util.createBuffer();if(r>=-128&&r<128)return e.putSignedInt(r,8);if(r>=-32768&&r<32768)return e.putSignedInt(r,16);if(r>=-8388608&&r<8388608)return e.putSignedInt(r,24);if(r>=-2147483648&&r<2147483648)return e.putSignedInt(r,32);var t=new Error("Integer too large; max is 32-bits.");throw t.integer=r,t};ct.derToInteger=function(r){typeof r=="string"&&(r=Tn.util.createBuffer(r));var e=r.length()*8;if(e>32)throw new Error("Integer too large; max is 32-bits.");return r.getSignedInt(e)};ct.validate=function(r,e,t,n){var i=!1;if((r.tagClass===e.tagClass||typeof e.tagClass>"u")&&(r.type===e.type||typeof e.type>"u"))if(r.constructed===e.constructed||typeof e.constructed>"u"){if(i=!0,e.value&&Tn.util.isArray(e.value))for(var s=0,a=0;i&&a<e.value.length;++a)i=e.value[a].optional||!1,r.value[s]&&(i=ct.validate(r.value[s],e.value[a],t,n),i?++s:e.value[a].optional&&(i=!0)),!i&&n&&n.push("["+e.name+'] Tag class "'+e.tagClass+'", type "'+e.type+'" expected value length "'+e.value.length+'", got "'+r.value.length+'"');if(i&&t&&(e.capture&&(t[e.capture]=r.value),e.captureAsn1&&(t[e.captureAsn1]=r),e.captureBitStringContents&&"bitStringContents"in r&&(t[e.captureBitStringContents]=r.bitStringContents),e.captureBitStringValue&&"bitStringContents"in r)){var u;if(r.bitStringContents.length<2)t[e.captureBitStringValue]="";else{var c=r.bitStringContents.charCodeAt(0);if(c!==0)throw new Error("captureBitStringValue only supported for zero unused bits");t[e.captureBitStringValue]=r.bitStringContents.slice(1)}}}else n&&n.push("["+e.name+'] Expected constructed "'+e.constructed+'", got "'+r.constructed+'"');else n&&(r.tagClass!==e.tagClass&&n.push("["+e.name+'] Expected tag class "'+e.tagClass+'", got "'+r.tagClass+'"'),r.type!==e.type&&n.push("["+e.name+'] Expected type "'+e.type+'", got "'+r.type+'"'));return i};var sM=/[^\\u0000-\\u00ff]/;ct.prettyPrint=function(r,e,t){var n="";e=e||0,t=t||2,e>0&&(n+=`
5
+ `);for(var i="",s=0;s<e*t;++s)i+=" ";switch(n+=i+"Tag: ",r.tagClass){case ct.Class.UNIVERSAL:n+="Universal:";break;case ct.Class.APPLICATION:n+="Application:";break;case ct.Class.CONTEXT_SPECIFIC:n+="Context-Specific:";break;case ct.Class.PRIVATE:n+="Private:";break}if(r.tagClass===ct.Class.UNIVERSAL)switch(n+=r.type,r.type){case ct.Type.NONE:n+=" (None)";break;case ct.Type.BOOLEAN:n+=" (Boolean)";break;case ct.Type.INTEGER:n+=" (Integer)";break;case ct.Type.BITSTRING:n+=" (Bit string)";break;case ct.Type.OCTETSTRING:n+=" (Octet string)";break;case ct.Type.NULL:n+=" (Null)";break;case ct.Type.OID:n+=" (Object Identifier)";break;case ct.Type.ODESC:n+=" (Object Descriptor)";break;case ct.Type.EXTERNAL:n+=" (External or Instance of)";break;case ct.Type.REAL:n+=" (Real)";break;case ct.Type.ENUMERATED:n+=" (Enumerated)";break;case ct.Type.EMBEDDED:n+=" (Embedded PDV)";break;case ct.Type.UTF8:n+=" (UTF8)";break;case ct.Type.ROID:n+=" (Relative Object Identifier)";break;case ct.Type.SEQUENCE:n+=" (Sequence)";break;case ct.Type.SET:n+=" (Set)";break;case ct.Type.PRINTABLESTRING:n+=" (Printable String)";break;case ct.Type.IA5String:n+=" (IA5String (ASCII))";break;case ct.Type.UTCTIME:n+=" (UTC time)";break;case ct.Type.GENERALIZEDTIME:n+=" (Generalized time)";break;case ct.Type.BMPSTRING:n+=" (BMP String)";break}else n+=r.type;if(n+=`
6
6
  `,n+=i+"Constructed: "+r.constructed+`
7
- `,r.composed){for(var a=0,u="",s=0;s<r.value.length;++s)r.value[s]!==void 0&&(a+=1,u+=ot.prettyPrint(r.value[s],e+1,t),s+1<r.value.length&&(u+=","));n+=i+"Sub values: "+a+u}else{if(n+=i+"Value: ",r.type===ot.Type.OID){var c=ot.derToOid(r.value);n+=c,Tn.pki&&Tn.pki.oids&&c in Tn.pki.oids&&(n+=" ("+Tn.pki.oids[c]+") ")}if(r.type===ot.Type.INTEGER)try{n+=ot.derToInteger(r.value)}catch{n+="0x"+Tn.util.bytesToHex(r.value)}else if(r.type===ot.Type.BITSTRING){if(r.value.length>1?n+="0x"+Tn.util.bytesToHex(r.value.slice(1)):n+="(none)",r.value.length>0){var l=r.value.charCodeAt(0);l==1?n+=" (1 unused bit shown)":l>1&&(n+=" ("+l+" unused bits shown)")}}else if(r.type===ot.Type.OCTETSTRING)sM.test(r.value)||(n+="("+r.value+") "),n+="0x"+Tn.util.bytesToHex(r.value);else if(r.type===ot.Type.UTF8)try{n+=Tn.util.decodeUtf8(r.value)}catch(p){if(p.message==="URI malformed")n+="0x"+Tn.util.bytesToHex(r.value)+" (malformed UTF8)";else throw p}else r.type===ot.Type.PRINTABLESTRING||r.type===ot.Type.IA5String?n+=r.value:sM.test(r.value)?n+="0x"+Tn.util.bytesToHex(r.value):r.value.length===0?n+="[null]":n+=r.value}return n}});var Ac=Z((rIe,oM)=>{"use strict";var QN=pr();oM.exports=QN.md=QN.md||{};QN.md.algorithms=QN.md.algorithms||{}});var Zg=Z((nIe,uM)=>{"use strict";var zl=pr();Ac();kr();var Mue=uM.exports=zl.hmac=zl.hmac||{};Mue.create=function(){var r=null,e=null,t=null,n=null,i={};return i.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in zl.md.algorithms)e=zl.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else e=s;if(a===null)a=r;else{if(typeof a=="string")a=zl.util.createBuffer(a);else if(zl.util.isArray(a)){var u=a;a=zl.util.createBuffer();for(var c=0;c<u.length;++c)a.putByte(u[c])}var l=a.length();l>e.blockLength&&(e.start(),e.update(a.bytes()),a=e.digest()),t=zl.util.createBuffer(),n=zl.util.createBuffer(),l=a.length();for(var c=0;c<l;++c){var u=a.at(c);t.putByte(54^u),n.putByte(92^u)}if(l<e.blockLength)for(var u=e.blockLength-l,c=0;c<u;++c)t.putByte(54),n.putByte(92);r=a,t=t.bytes(),n=n.bytes()}e.start(),e.update(t)},i.update=function(s){e.update(s)},i.getMac=function(){var s=e.digest().bytes();return e.start(),e.update(n),e.update(s),e.digest()},i.digest=i.getMac,i}});var ZN=Z((iIe,pM)=>{"use strict";var Nc=pr();Ac();kr();var lM=pM.exports=Nc.md5=Nc.md5||{};Nc.md.md5=Nc.md.algorithms.md5=lM;lM.create=function(){fM||que();var r=null,e=Nc.util.createBuffer(),t=new Array(16),n={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Nc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Nc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),cM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Nc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(FP.substr(0,n.blockLength-a));for(var u,c=0,l=n.fullMessageLength.length-1;l>=0;--l)u=n.fullMessageLength[l]*8+c,c=u/4294967296>>>0,i.putInt32Le(u>>>0);var p={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3};cM(p,t,i);var m=Nc.util.createBuffer();return m.putInt32Le(p.h0),m.putInt32Le(p.h1),m.putInt32Le(p.h2),m.putInt32Le(p.h3),m},n};var FP=null,YN=null,Fx=null,ev=null,fM=!1;function que(){FP="\x80",FP+=Nc.util.fillString("\0",64),YN=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],Fx=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],ev=new Array(64);for(var r=0;r<64;++r)ev[r]=Math.floor(Math.abs(Math.sin(r+1))*4294967296);fM=!0}o(que,"_init");function cM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,p=0;p<16;++p)e[p]=t.getInt32Le(),c=u^s&(a^u),n=i+c+ev[p]+e[p],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<32;++p)c=a^u&(s^a),n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<48;++p)c=s^a^u,n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<64;++p)c=a^(s|~u),n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,m-=64}}o(cM,"_update")});var Yd=Z((aIe,dM)=>{"use strict";var t2=pr();kr();var hM=dM.exports=t2.pem=t2.pem||{};hM.encode=function(r,e){e=e||{};var t="-----BEGIN "+r.type+`-----\r
7
+ `,r.composed){for(var a=0,u="",s=0;s<r.value.length;++s)r.value[s]!==void 0&&(a+=1,u+=ct.prettyPrint(r.value[s],e+1,t),s+1<r.value.length&&(u+=","));n+=i+"Sub values: "+a+u}else{if(n+=i+"Value: ",r.type===ct.Type.OID){var c=ct.derToOid(r.value);n+=c,Tn.pki&&Tn.pki.oids&&c in Tn.pki.oids&&(n+=" ("+Tn.pki.oids[c]+") ")}if(r.type===ct.Type.INTEGER)try{n+=ct.derToInteger(r.value)}catch{n+="0x"+Tn.util.bytesToHex(r.value)}else if(r.type===ct.Type.BITSTRING){if(r.value.length>1?n+="0x"+Tn.util.bytesToHex(r.value.slice(1)):n+="(none)",r.value.length>0){var l=r.value.charCodeAt(0);l==1?n+=" (1 unused bit shown)":l>1&&(n+=" ("+l+" unused bits shown)")}}else if(r.type===ct.Type.OCTETSTRING)sM.test(r.value)||(n+="("+r.value+") "),n+="0x"+Tn.util.bytesToHex(r.value);else if(r.type===ct.Type.UTF8)try{n+=Tn.util.decodeUtf8(r.value)}catch(p){if(p.message==="URI malformed")n+="0x"+Tn.util.bytesToHex(r.value)+" (malformed UTF8)";else throw p}else r.type===ct.Type.PRINTABLESTRING||r.type===ct.Type.IA5String?n+=r.value:sM.test(r.value)?n+="0x"+Tn.util.bytesToHex(r.value):r.value.length===0?n+="[null]":n+=r.value}return n}});var Ac=Z((rIe,oM)=>{"use strict";var QN=pr();oM.exports=QN.md=QN.md||{};QN.md.algorithms=QN.md.algorithms||{}});var Zg=Z((nIe,uM)=>{"use strict";var zl=pr();Ac();kr();var Mue=uM.exports=zl.hmac=zl.hmac||{};Mue.create=function(){var r=null,e=null,t=null,n=null,i={};return i.start=function(s,a){if(s!==null)if(typeof s=="string")if(s=s.toLowerCase(),s in zl.md.algorithms)e=zl.md.algorithms[s].create();else throw new Error('Unknown hash algorithm "'+s+'"');else e=s;if(a===null)a=r;else{if(typeof a=="string")a=zl.util.createBuffer(a);else if(zl.util.isArray(a)){var u=a;a=zl.util.createBuffer();for(var c=0;c<u.length;++c)a.putByte(u[c])}var l=a.length();l>e.blockLength&&(e.start(),e.update(a.bytes()),a=e.digest()),t=zl.util.createBuffer(),n=zl.util.createBuffer(),l=a.length();for(var c=0;c<l;++c){var u=a.at(c);t.putByte(54^u),n.putByte(92^u)}if(l<e.blockLength)for(var u=e.blockLength-l,c=0;c<u;++c)t.putByte(54),n.putByte(92);r=a,t=t.bytes(),n=n.bytes()}e.start(),e.update(t)},i.update=function(s){e.update(s)},i.getMac=function(){var s=e.digest().bytes();return e.start(),e.update(n),e.update(s),e.digest()},i.digest=i.getMac,i}});var ZN=Z((iIe,pM)=>{"use strict";var Nc=pr();Ac();kr();var lM=pM.exports=Nc.md5=Nc.md5||{};Nc.md.md5=Nc.md.algorithms.md5=lM;lM.create=function(){fM||que();var r=null,e=Nc.util.createBuffer(),t=new Array(16),n={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Nc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Nc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),cM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Nc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(FP.substr(0,n.blockLength-a));for(var u,c=0,l=n.fullMessageLength.length-1;l>=0;--l)u=n.fullMessageLength[l]*8+c,c=u/4294967296>>>0,i.putInt32Le(u>>>0);var p={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3};cM(p,t,i);var m=Nc.util.createBuffer();return m.putInt32Le(p.h0),m.putInt32Le(p.h1),m.putInt32Le(p.h2),m.putInt32Le(p.h3),m},n};var FP=null,YN=null,Fx=null,ev=null,fM=!1;function que(){FP="\x80",FP+=Nc.util.fillString("\0",64),YN=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9],Fx=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21],ev=new Array(64);for(var r=0;r<64;++r)ev[r]=Math.floor(Math.abs(Math.sin(r+1))*4294967296);fM=!0}o(que,"_init");function cM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,p=0;p<16;++p)e[p]=t.getInt32Le(),c=u^s&(a^u),n=i+c+ev[p]+e[p],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<32;++p)c=a^u&(s^a),n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<48;++p)c=s^a^u,n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;for(;p<64;++p)c=a^(s|~u),n=i+c+ev[p]+e[YN[p]],l=Fx[p],i=u,u=a,a=s,s+=n<<l|n>>>32-l;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,m-=64}}o(cM,"_update")});var Yd=Z((aIe,dM)=>{"use strict";var t2=pr();kr();var hM=dM.exports=t2.pem=t2.pem||{};hM.encode=function(r,e){e=e||{};var t="-----BEGIN "+r.type+`-----\r
8
8
  `,n;if(r.procType&&(n={name:"Proc-Type",values:[String(r.procType.version),r.procType.type]},t+=e2(n)),r.contentDomain&&(n={name:"Content-Domain",values:[r.contentDomain]},t+=e2(n)),r.dekInfo&&(n={name:"DEK-Info",values:[r.dekInfo.algorithm]},r.dekInfo.parameters&&n.values.push(r.dekInfo.parameters),t+=e2(n)),r.headers)for(var i=0;i<r.headers.length;++i)t+=e2(r.headers[i]);return r.procType&&(t+=`\r
9
9
  `),t+=t2.util.encode64(r.body,e.maxline||64)+`\r
10
10
  `,t+="-----END "+r.type+`-----\r
11
11
  `,t};hM.decode=function(r){for(var e=[],t=/\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g,n=/([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/,i=/\r?\n/,s;s=t.exec(r),!!s;){var a=s[1];a==="NEW CERTIFICATE REQUEST"&&(a="CERTIFICATE REQUEST");var u={type:a,procType:null,contentDomain:null,dekInfo:null,headers:[],body:t2.util.decode64(s[3])};if(e.push(u),!!s[2]){for(var c=s[2].split(i),l=0;s&&l<c.length;){for(var p=c[l].replace(/\s+$/,""),m=l+1;m<c.length;++m){var g=c[m];if(!/\s/.test(g[0]))break;p+=g,l=m}if(s=p.match(n),s){for(var y={name:s[1],values:[]},v=s[2].split(","),b=0;b<v.length;++b)y.values.push(Hue(v[b]));if(u.procType)if(!u.contentDomain&&y.name==="Content-Domain")u.contentDomain=v[0]||"";else if(!u.dekInfo&&y.name==="DEK-Info"){if(y.values.length===0)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must have at least one subfield.');u.dekInfo={algorithm:v[0],parameters:v[1]||null}}else u.headers.push(y);else{if(y.name!=="Proc-Type")throw new Error('Invalid PEM formatted message. The first encapsulated header must be "Proc-Type".');if(y.values.length!==2)throw new Error('Invalid PEM formatted message. The "Proc-Type" header must have two subfields.');u.procType={version:v[0],type:v[1]}}}++l}if(u.procType==="ENCRYPTED"&&!u.dekInfo)throw new Error('Invalid PEM formatted message. The "DEK-Info" header must be present if "Proc-Type" is "ENCRYPTED".')}}if(e.length===0)throw new Error("Invalid PEM formatted message.");return e};function e2(r){for(var e=r.name+": ",t=[],n=o(function(c,l){return" "+l},"insertSpace"),i=0;i<r.values.length;++i)t.push(r.values[i].replace(/^(\S+\r\n)/,n));e+=t.join(",")+`\r
12
12
  `;for(var s=0,a=-1,i=0;i<e.length;++i,++s)if(s>65&&a!==-1){var u=e[a];u===","?(++a,e=e.substr(0,a)+`\r
13
13
  `+e.substr(a)):e=e.substr(0,a)+`\r
14
- `+u+e.substr(a+1),s=i-a-1,a=-1,++i}else(e[i]===" "||e[i]===" "||e[i]===",")&&(a=i);return e}o(e2,"foldHeader");function Hue(r){return r.replace(/^\s+/,"")}o(Hue,"ltrim")});var Lx=Z((uIe,gM)=>{"use strict";var kn=pr();$N();DP();kr();gM.exports=kn.des=kn.des||{};kn.des.startEncrypting=function(r,e,t,n){var i=r2({key:r,output:t,decrypt:!1,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};kn.des.createEncryptionCipher=function(r,e){return r2({key:r,output:null,decrypt:!1,mode:e})};kn.des.startDecrypting=function(r,e,t,n){var i=r2({key:r,output:t,decrypt:!0,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};kn.des.createDecryptionCipher=function(r,e){return r2({key:r,output:null,decrypt:!0,mode:e})};kn.des.Algorithm=function(r,e){var t=this;t.name=r,t.mode=new e({blockSize:8,cipher:{encrypt:o(function(n,i){return mM(t._keys,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return mM(t._keys,n,i,!0)},"decrypt")}}),t._init=!1};kn.des.Algorithm.prototype.initialize=function(r){if(!this._init){var e=kn.util.createBuffer(r.key);if(this.name.indexOf("3DES")===0&&e.length()!==24)throw new Error("Invalid Triple-DES key size: "+e.length()*8);this._keys=Yue(e),this._init=!0}};Ic("DES-ECB",kn.cipher.modes.ecb);Ic("DES-CBC",kn.cipher.modes.cbc);Ic("DES-CFB",kn.cipher.modes.cfb);Ic("DES-OFB",kn.cipher.modes.ofb);Ic("DES-CTR",kn.cipher.modes.ctr);Ic("3DES-ECB",kn.cipher.modes.ecb);Ic("3DES-CBC",kn.cipher.modes.cbc);Ic("3DES-CFB",kn.cipher.modes.cfb);Ic("3DES-OFB",kn.cipher.modes.ofb);Ic("3DES-CTR",kn.cipher.modes.ctr);function Ic(r,e){var t=o(function(){return new kn.des.Algorithm(r,e)},"factory");kn.cipher.registerAlgorithm(r,t)}o(Ic,"registerAlgorithm");var zue=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],Kue=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],$ue=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],Gue=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],Xue=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],Wue=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],Jue=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],Que=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function Yue(r){for(var e=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],t=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],u=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],m=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],y=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],v=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],b=r.length()>8?3:1,x=[],E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],N=0,w,C=0;C<b;C++){var A=r.getInt32(),R=r.getInt32();w=(A>>>4^R)&252645135,R^=w,A^=w<<4,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>2^R)&858993459,R^=w,A^=w<<2,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=(R>>>8^A)&16711935,A^=w,R^=w<<8,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=A<<8|R>>>20&240,A=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=w;for(var M=0;M<E.length;++M){E[M]?(A=A<<2|A>>>26,R=R<<2|R>>>26):(A=A<<1|A>>>27,R=R<<1|R>>>27),A&=-15,R&=-15;var _=e[A>>>28]|t[A>>>24&15]|n[A>>>20&15]|i[A>>>16&15]|s[A>>>12&15]|a[A>>>8&15]|u[A>>>4&15],H=c[R>>>28]|l[R>>>24&15]|p[R>>>20&15]|m[R>>>16&15]|g[R>>>12&15]|y[R>>>8&15]|v[R>>>4&15];w=(H>>>16^_)&65535,x[N++]=_^w,x[N++]=H^w<<16}}return x}o(Yue,"_createKeys");function mM(r,e,t,n){var i=r.length===32?3:9,s;i===3?s=n?[30,-2,-2]:[0,32,2]:s=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,u=e[0],c=e[1];a=(u>>>4^c)&252645135,c^=a,u^=a<<4,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,u=u<<1|u>>>31,c=c<<1|c>>>31;for(var l=0;l<i;l+=3){for(var p=s[l+1],m=s[l+2],g=s[l];g!=p;g+=m){var y=c^r[g],v=(c>>>4|c<<28)^r[g+1];a=u,u=c,c=a^(Kue[y>>>24&63]|Gue[y>>>16&63]|Wue[y>>>8&63]|Que[y&63]|zue[v>>>24&63]|$ue[v>>>16&63]|Xue[v>>>8&63]|Jue[v&63])}a=u,u=c,c=a}u=u>>>1|u<<31,c=c>>>1|c<<31,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(u>>>4^c)&252645135,c^=a,u^=a<<4,t[0]=u,t[1]=c}o(mM,"_updateBlock");function r2(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="DES-"+e,n;r.decrypt?n=kn.cipher.createDecipher(t,r.key):n=kn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof kn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(r2,"_createCipher")});var n2=Z((lIe,vM)=>{"use strict";var pa=pr();Zg();Ac();kr();var Zue=pa.pkcs5=pa.pkcs5||{},Kl;pa.util.isNodejs&&!pa.options.usePureJavaScript&&(Kl=require("crypto"));vM.exports=pa.pbkdf2=Zue.pbkdf2=function(r,e,t,n,i,s){if(typeof i=="function"&&(s=i,i=null),pa.util.isNodejs&&!pa.options.usePureJavaScript&&Kl.pbkdf2&&(i===null||typeof i!="object")&&(Kl.pbkdf2Sync.length>4||!i||i==="sha1"))return typeof i!="string"&&(i="sha1"),r=Buffer.from(r,"binary"),e=Buffer.from(e,"binary"),s?Kl.pbkdf2Sync.length===4?Kl.pbkdf2(r,e,t,n,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2(r,e,t,n,i,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2Sync.length===4?Kl.pbkdf2Sync(r,e,t,n).toString("binary"):Kl.pbkdf2Sync(r,e,t,n,i).toString("binary");if((typeof i>"u"||i===null)&&(i="sha1"),typeof i=="string"){if(!(i in pa.md.algorithms))throw new Error("Unknown hash algorithm: "+i);i=pa.md[i].create()}var a=i.digestLength;if(n>4294967295*a){var u=new Error("Derived key is too long.");if(s)return s(u);throw u}var c=Math.ceil(n/a),l=n-(c-1)*a,p=pa.hmac.create();p.start(i,r);var m="",g,y,v;if(!s){for(var b=1;b<=c;++b){p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes();for(var x=2;x<=t;++x)p.start(null,null),p.update(v),y=p.digest().getBytes(),g=pa.util.xorBytes(g,y,a),v=y;m+=b<c?g:g.substr(0,l)}return m}var b=1,x;function E(){if(b>c)return s(null,m);p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes(),x=2,N()}o(E,"outer");function N(){if(x<=t)return p.start(null,null),p.update(v),y=p.digest().getBytes(),g=pa.util.xorBytes(g,y,a),v=y,++x,pa.util.setImmediate(N);m+=b<c?g:g.substr(0,l),++b,E()}o(N,"inner"),E()}});var kP=Z((pIe,wM)=>{"use strict";var Tc=pr();Ac();kr();var SM=wM.exports=Tc.sha256=Tc.sha256||{};Tc.md.sha256=Tc.md.algorithms.sha256=SM;SM.create=function(){xM||ece();var r=null,e=Tc.util.createBuffer(),t=new Array(64),n={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Tc.util.createBuffer(),r={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Tc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),yM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Tc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(LP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4,h5:r.h5,h6:r.h6,h7:r.h7};yM(m,t,i);var g=Tc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g.putInt32(m.h5),g.putInt32(m.h6),g.putInt32(m.h7),g},n};var LP=null,xM=!1,bM=null;function ece(){LP="\x80",LP+=Tc.util.fillString("\0",64),bM=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],xM=!0}o(ece,"_init");function yM(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,y,v,b,x,E,N=t.length();N>=64;){for(l=0;l<16;++l)e[l]=t.getInt32();for(;l<64;++l)n=e[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=e[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,e[l]=n+e[l-7]+i+e[l-16]|0;for(p=r.h0,m=r.h1,g=r.h2,y=r.h3,v=r.h4,b=r.h5,x=r.h6,E=r.h7,l=0;l<64;++l)a=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=x^v&(b^x),s=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),c=p&m|g&(p^m),n=E+a+u+bM[l]+e[l],i=s+c,E=x,x=b,b=v,v=y+n>>>0,y=g,g=m,m=p,p=n+i>>>0;r.h0=r.h0+p|0,r.h1=r.h1+m|0,r.h2=r.h2+g|0,r.h3=r.h3+y|0,r.h4=r.h4+v|0,r.h5=r.h5+b|0,r.h6=r.h6+x|0,r.h7=r.h7+E|0,N-=64}}o(yM,"_update")});var VP=Z((dIe,CM)=>{"use strict";var Rc=pr();kr();var i2=null;Rc.util.isNodejs&&!Rc.options.usePureJavaScript&&!process.versions["node-webkit"]&&(i2=require("crypto"));var tce=CM.exports=Rc.prng=Rc.prng||{};tce.create=function(r){for(var e={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},t=r.md,n=new Array(32),i=0;i<32;++i)n[i]=t.create();e.pools=n,e.pool=0,e.generate=function(l,p){if(!p)return e.generateSync(l);var m=e.plugin.cipher,g=e.plugin.increment,y=e.plugin.formatKey,v=e.plugin.formatSeed,b=Rc.util.createBuffer();e.key=null,x();function x(E){if(E)return p(E);if(b.length()>=l)return p(null,b.getBytes(l));if(e.generated>1048575&&(e.key=null),e.key===null)return Rc.util.nextTick(function(){s(x)});var N=m(e.key,e.seed);e.generated+=N.length,b.putBytes(N),e.key=y(m(e.key,g(e.seed))),e.seed=v(m(e.key,e.seed)),Rc.util.setImmediate(x)}o(x,"generate")},e.generateSync=function(l){var p=e.plugin.cipher,m=e.plugin.increment,g=e.plugin.formatKey,y=e.plugin.formatSeed;e.key=null;for(var v=Rc.util.createBuffer();v.length()<l;){e.generated>1048575&&(e.key=null),e.key===null&&a();var b=p(e.key,e.seed);e.generated+=b.length,v.putBytes(b),e.key=g(p(e.key,m(e.seed))),e.seed=y(p(e.key,e.seed))}return v.getBytes(l)};function s(l){if(e.pools[0].messageLength>=32)return u(),l();var p=32-e.pools[0].messageLength<<5;e.seedFile(p,function(m,g){if(m)return l(m);e.collect(g),u(),l()})}o(s,"_reseed");function a(){if(e.pools[0].messageLength>=32)return u();var l=32-e.pools[0].messageLength<<5;e.collect(e.seedFileSync(l)),u()}o(a,"_reseedSync");function u(){e.reseeds=e.reseeds===4294967295?0:e.reseeds+1;var l=e.plugin.md.create();l.update(e.keyBytes);for(var p=1,m=0;m<32;++m)e.reseeds%p===0&&(l.update(e.pools[m].digest().getBytes()),e.pools[m].start()),p=p<<1;e.keyBytes=l.digest().getBytes(),l.start(),l.update(e.keyBytes);var g=l.digest().getBytes();e.key=e.plugin.formatKey(e.keyBytes),e.seed=e.plugin.formatSeed(g),e.generated=0}o(u,"_seed");function c(l){var p=null,m=Rc.util.globalScope,g=m.crypto||m.msCrypto;g&&g.getRandomValues&&(p=o(function(A){return g.getRandomValues(A)},"getRandomValues"));var y=Rc.util.createBuffer();if(p)for(;y.length()<l;){var v=Math.max(1,Math.min(l-y.length(),65536)/4),b=new Uint32Array(Math.floor(v));try{p(b);for(var x=0;x<b.length;++x)y.putInt32(b[x])}catch(A){if(!(typeof QuotaExceededError<"u"&&A instanceof QuotaExceededError))throw A}}if(y.length()<l)for(var E,N,w,C=Math.floor(Math.random()*65536);y.length()<l;){N=16807*(C&65535),E=16807*(C>>16),N+=(E&32767)<<16,N+=E>>15,N=(N&2147483647)+(N>>31),C=N&4294967295;for(var x=0;x<3;++x)w=C>>>(x<<3),w^=Math.floor(Math.random()*256),y.putByte(w&255)}return y.getBytes(l)}return o(c,"defaultSeedFile"),i2?(e.seedFile=function(l,p){i2.randomBytes(l,function(m,g){if(m)return p(m);p(null,g.toString())})},e.seedFileSync=function(l){return i2.randomBytes(l).toString()}):(e.seedFile=function(l,p){try{p(null,c(l))}catch(m){p(m)}},e.seedFileSync=c),e.collect=function(l){for(var p=l.length,m=0;m<p;++m)e.pools[e.pool].update(l.substr(m,1)),e.pool=e.pool===31?0:e.pool+1},e.collectInt=function(l,p){for(var m="",g=0;g<p;g+=8)m+=String.fromCharCode(l>>g&255);e.collect(m)},e.registerWorker=function(l){if(l===self)e.seedFile=function(m,g){function y(v){var b=v.data;b.forge&&b.forge.prng&&(self.removeEventListener("message",y),g(b.forge.prng.err,b.forge.prng.bytes))}o(y,"listener"),self.addEventListener("message",y),self.postMessage({forge:{prng:{needed:m}}})};else{var p=o(function(m){var g=m.data;g.forge&&g.forge.prng&&e.seedFile(g.forge.prng.needed,function(y,v){l.postMessage({forge:{prng:{err:y,bytes:v}}})})},"listener");l.addEventListener("message",p)}},e}});var Lo=Z((gIe,jP)=>{"use strict";var Xi=pr();Bp();kP();VP();kr();(function(){if(Xi.random&&Xi.random.getBytes){jP.exports=Xi.random;return}(function(r){var e={},t=new Array(4),n=Xi.util.createBuffer();e.formatKey=function(m){var g=Xi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),Xi.aes._expandKey(m,!1)},e.formatSeed=function(m){var g=Xi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),m},e.cipher=function(m,g){return Xi.aes._updateBlock(m,g,t,!1),n.putInt32(t[0]),n.putInt32(t[1]),n.putInt32(t[2]),n.putInt32(t[3]),n.getBytes()},e.increment=function(m){return++m[3],m},e.md=Xi.md.sha256;function i(){var m=Xi.prng.create(e);return m.getBytes=function(g,y){return m.generate(g,y)},m.getBytesSync=function(g){return m.generate(g)},m}o(i,"spawnPrng");var s=i(),a=null,u=Xi.util.globalScope,c=u.crypto||u.msCrypto;if(c&&c.getRandomValues&&(a=o(function(m){return c.getRandomValues(m)},"getRandomValues")),Xi.options.usePureJavaScript||!Xi.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var p in navigator)try{typeof navigator[p]=="string"&&(l+=navigator[p])}catch{}s.collect(l),l=null}r&&(r().mousemove(function(m){s.collectInt(m.clientX,16),s.collectInt(m.clientY,16)}),r().keypress(function(m){s.collectInt(m.charCode,8)}))}if(!Xi.random)Xi.random=s;else for(var p in s)Xi.random[p]=s[p];Xi.random.createInstance=i,jP.exports=Xi.random})(typeof jQuery<"u"?jQuery:null)})()});var MP=Z((yIe,NM)=>{"use strict";var Ra=pr();kr();var UP=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],EM=[1,2,3,5],rce=o(function(r,e){return r<<e&65535|(r&65535)>>16-e},"rol"),nce=o(function(r,e){return(r&65535)>>e|r<<16-e&65535},"ror");NM.exports=Ra.rc2=Ra.rc2||{};Ra.rc2.expandKey=function(r,e){typeof r=="string"&&(r=Ra.util.createBuffer(r)),e=e||128;var t=r,n=r.length(),i=e,s=Math.ceil(i/8),a=255>>(i&7),u;for(u=n;u<128;u++)t.putByte(UP[t.at(u-1)+t.at(u-n)&255]);for(t.setAt(128-s,UP[t.at(128-s)&a]),u=127-s;u>=0;u--)t.setAt(u,UP[t.at(u+1)^t.at(u+s)]);return t};var AM=o(function(r,e,t){var n=!1,i=null,s=null,a=null,u,c,l,p,m=[];for(r=Ra.rc2.expandKey(r,e),l=0;l<64;l++)m.push(r.getInt16Le());t?(u=o(function(v){for(l=0;l<4;l++)v[l]+=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),v[l]=rce(v[l],EM[l]),p++},"mixRound"),c=o(function(v){for(l=0;l<4;l++)v[l]+=m[v[(l+3)%4]&63]},"mashRound")):(u=o(function(v){for(l=3;l>=0;l--)v[l]=nce(v[l],EM[l]),v[l]-=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),p--},"mixRound"),c=o(function(v){for(l=3;l>=0;l--)v[l]-=m[v[(l+3)%4]&63]},"mashRound"));var g=o(function(v){var b=[];for(l=0;l<4;l++){var x=i.getInt16Le();a!==null&&(t?x^=a.getInt16Le():a.putInt16Le(x)),b.push(x&65535)}p=t?0:63;for(var E=0;E<v.length;E++)for(var N=0;N<v[E][0];N++)v[E][1](b);for(l=0;l<4;l++)a!==null&&(t?a.putInt16Le(b[l]):b[l]^=a.getInt16Le()),s.putInt16Le(b[l])},"runPlan"),y=null;return y={start:o(function(v,b){v&&typeof v=="string"&&(v=Ra.util.createBuffer(v)),n=!1,i=Ra.util.createBuffer(),s=b||new Ra.util.createBuffer,a=v,y.output=s},"start"),update:o(function(v){for(n||i.putBuffer(v);i.length()>=8;)g([[5,u],[1,c],[6,u],[1,c],[5,u]])},"update"),finish:o(function(v){var b=!0;if(t)if(v)b=v(8,i,!t);else{var x=i.length()===8?8:8-i.length();i.fillWithByte(x,x)}if(b&&(n=!0,y.update()),!t&&(b=i.length()===0,b))if(v)b=v(8,s,!t);else{var E=s.length(),N=s.at(E-1);N>E?b=!1:s.truncate(N)}return b},"finish")},y},"createCipher");Ra.rc2.startEncrypting=function(r,e,t){var n=Ra.rc2.createEncryptionCipher(r,128);return n.start(e,t),n};Ra.rc2.createEncryptionCipher=function(r,e){return AM(r,e,!0)};Ra.rc2.startDecrypting=function(r,e,t){var n=Ra.rc2.createDecryptionCipher(r,128);return n.start(e,t),n};Ra.rc2.createDecryptionCipher=function(r,e){return AM(r,e,!1)}});var Vx=Z((xIe,BM)=>{"use strict";var qP=pr();BM.exports=qP.jsbn=qP.jsbn||{};var $l,ice=0xdeadbeefcafe,IM=(ice&16777215)==15715070;function He(r,e,t){this.data=[],r!=null&&(typeof r=="number"?this.fromNumber(r,e,t):e==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,e))}o(He,"BigInteger");qP.jsbn.BigInteger=He;function Vr(){return new He(null)}o(Vr,"nbi");function sce(r,e,t,n,i,s){for(;--s>=0;){var a=e*this.data[r++]+t.data[n]+i;i=Math.floor(a/67108864),t.data[n++]=a&67108863}return i}o(sce,"am1");function ace(r,e,t,n,i,s){for(var a=e&32767,u=e>>15;--s>=0;){var c=this.data[r]&32767,l=this.data[r++]>>15,p=u*c+l*a;c=a*c+((p&32767)<<15)+t.data[n]+(i&1073741823),i=(c>>>30)+(p>>>15)+u*l+(i>>>30),t.data[n++]=c&1073741823}return i}o(ace,"am2");function TM(r,e,t,n,i,s){for(var a=e&16383,u=e>>14;--s>=0;){var c=this.data[r]&16383,l=this.data[r++]>>14,p=u*c+l*a;c=a*c+((p&16383)<<14)+t.data[n]+i,i=(c>>28)+(p>>14)+u*l,t.data[n++]=c&268435455}return i}o(TM,"am3");typeof navigator>"u"?(He.prototype.am=TM,$l=28):IM&&navigator.appName=="Microsoft Internet Explorer"?(He.prototype.am=ace,$l=30):IM&&navigator.appName!="Netscape"?(He.prototype.am=sce,$l=26):(He.prototype.am=TM,$l=28);He.prototype.DB=$l;He.prototype.DM=(1<<$l)-1;He.prototype.DV=1<<$l;var HP=52;He.prototype.FV=Math.pow(2,HP);He.prototype.F1=HP-$l;He.prototype.F2=2*$l-HP;var oce="0123456789abcdefghijklmnopqrstuvwxyz",s2=new Array,tv,ko;tv=48;for(ko=0;ko<=9;++ko)s2[tv++]=ko;tv=97;for(ko=10;ko<36;++ko)s2[tv++]=ko;tv=65;for(ko=10;ko<36;++ko)s2[tv++]=ko;function RM(r){return oce.charAt(r)}o(RM,"int2char");function DM(r,e){var t=s2[r.charCodeAt(e)];return t??-1}o(DM,"intAt");function uce(r){for(var e=this.t-1;e>=0;--e)r.data[e]=this.data[e];r.t=this.t,r.s=this.s}o(uce,"bnpCopyTo");function cce(r){this.t=1,this.s=r<0?-1:0,r>0?this.data[0]=r:r<-1?this.data[0]=r+this.DV:this.t=0}o(cce,"bnpFromInt");function Lp(r){var e=Vr();return e.fromInt(r),e}o(Lp,"nbv");function lce(r,e){var t;if(e==16)t=4;else if(e==8)t=3;else if(e==256)t=8;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else{this.fromRadix(r,e);return}this.t=0,this.s=0;for(var n=r.length,i=!1,s=0;--n>=0;){var a=t==8?r[n]&255:DM(r,n);if(a<0){r.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this.data[this.t++]=a:s+t>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this.data[this.t++]=a>>this.DB-s):this.data[this.t-1]|=a<<s,s+=t,s>=this.DB&&(s-=this.DB)}t==8&&(r[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&He.ZERO.subTo(this,this)}o(lce,"bnpFromString");function fce(){for(var r=this.s&this.DM;this.t>0&&this.data[this.t-1]==r;)--this.t}o(fce,"bnpClamp");function pce(r){if(this.s<0)return"-"+this.negate().toString(r);var e;if(r==16)e=4;else if(r==8)e=3;else if(r==2)e=1;else if(r==32)e=5;else if(r==4)e=2;else return this.toRadix(r);var t=(1<<e)-1,n,i=!1,s="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(n=this.data[a]>>u)>0&&(i=!0,s=RM(n));a>=0;)u<e?(n=(this.data[a]&(1<<u)-1)<<e-u,n|=this.data[--a]>>(u+=this.DB-e)):(n=this.data[a]>>(u-=e)&t,u<=0&&(u+=this.DB,--a)),n>0&&(i=!0),i&&(s+=RM(n));return i?s:"0"}o(pce,"bnToString");function hce(){var r=Vr();return He.ZERO.subTo(this,r),r}o(hce,"bnNegate");function dce(){return this.s<0?this.negate():this}o(dce,"bnAbs");function mce(r){var e=this.s-r.s;if(e!=0)return e;var t=this.t;if(e=t-r.t,e!=0)return this.s<0?-e:e;for(;--t>=0;)if((e=this.data[t]-r.data[t])!=0)return e;return 0}o(mce,"bnCompareTo");function a2(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}o(a2,"nbits");function gce(){return this.t<=0?0:this.DB*(this.t-1)+a2(this.data[this.t-1]^this.s&this.DM)}o(gce,"bnBitLength");function vce(r,e){var t;for(t=this.t-1;t>=0;--t)e.data[t+r]=this.data[t];for(t=r-1;t>=0;--t)e.data[t]=0;e.t=this.t+r,e.s=this.s}o(vce,"bnpDLShiftTo");function yce(r,e){for(var t=r;t<this.t;++t)e.data[t-r]=this.data[t];e.t=Math.max(this.t-r,0),e.s=this.s}o(yce,"bnpDRShiftTo");function Sce(r,e){var t=r%this.DB,n=this.DB-t,i=(1<<n)-1,s=Math.floor(r/this.DB),a=this.s<<t&this.DM,u;for(u=this.t-1;u>=0;--u)e.data[u+s+1]=this.data[u]>>n|a,a=(this.data[u]&i)<<t;for(u=s-1;u>=0;--u)e.data[u]=0;e.data[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}o(Sce,"bnpLShiftTo");function xce(r,e){e.s=this.s;var t=Math.floor(r/this.DB);if(t>=this.t){e.t=0;return}var n=r%this.DB,i=this.DB-n,s=(1<<n)-1;e.data[0]=this.data[t]>>n;for(var a=t+1;a<this.t;++a)e.data[a-t-1]|=(this.data[a]&s)<<i,e.data[a-t]=this.data[a]>>n;n>0&&(e.data[this.t-t-1]|=(this.s&s)<<i),e.t=this.t-t,e.clamp()}o(xce,"bnpRShiftTo");function bce(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]-r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n-=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n-=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n-=r.s}e.s=n<0?-1:0,n<-1?e.data[t++]=this.DV+n:n>0&&(e.data[t++]=n),e.t=t,e.clamp()}o(bce,"bnpSubTo");function wce(r,e){var t=this.abs(),n=r.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e.data[i]=0;for(i=0;i<n.t;++i)e.data[i+t.t]=t.am(0,n.data[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=r.s&&He.ZERO.subTo(e,e)}o(wce,"bnpMultiplyTo");function Cce(r){for(var e=this.abs(),t=r.t=2*e.t;--t>=0;)r.data[t]=0;for(t=0;t<e.t-1;++t){var n=e.am(t,e.data[t],r,2*t,0,1);(r.data[t+e.t]+=e.am(t+1,2*e.data[t],r,2*t+1,n,e.t-t-1))>=e.DV&&(r.data[t+e.t]-=e.DV,r.data[t+e.t+1]=1)}r.t>0&&(r.data[r.t-1]+=e.am(t,e.data[t],r,2*t,0,1)),r.s=0,r.clamp()}o(Cce,"bnpSquareTo");function Ece(r,e,t){var n=r.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){e?.fromInt(0),t!=null&&this.copyTo(t);return}t==null&&(t=Vr());var s=Vr(),a=this.s,u=r.s,c=this.DB-a2(n.data[n.t-1]);c>0?(n.lShiftTo(c,s),i.lShiftTo(c,t)):(n.copyTo(s),i.copyTo(t));var l=s.t,p=s.data[l-1];if(p!=0){var m=p*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,v=1<<this.F2,b=t.t,x=b-l,E=e??Vr();for(s.dlShiftTo(x,E),t.compareTo(E)>=0&&(t.data[t.t++]=1,t.subTo(E,t)),He.ONE.dlShiftTo(l,E),E.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--x>=0;){var N=t.data[--b]==p?this.DM:Math.floor(t.data[b]*g+(t.data[b-1]+v)*y);if((t.data[b]+=s.am(0,N,t,x,0,l))<N)for(s.dlShiftTo(x,E),t.subTo(E,t);t.data[b]<--N;)t.subTo(E,t)}e!=null&&(t.drShiftTo(l,e),a!=u&&He.ZERO.subTo(e,e)),t.t=l,t.clamp(),c>0&&t.rShiftTo(c,t),a<0&&He.ZERO.subTo(t,t)}}}o(Ece,"bnpDivRemTo");function Ace(r){var e=Vr();return this.abs().divRemTo(r,null,e),this.s<0&&e.compareTo(He.ZERO)>0&&r.subTo(e,e),e}o(Ace,"bnMod");function Zd(r){this.m=r}o(Zd,"Classic");function Nce(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r}o(Nce,"cConvert");function Ice(r){return r}o(Ice,"cRevert");function Tce(r){r.divRemTo(this.m,null,r)}o(Tce,"cReduce");function Rce(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Rce,"cMulTo");function Dce(r,e){r.squareTo(e),this.reduce(e)}o(Dce,"cSqrTo");Zd.prototype.convert=Nce;Zd.prototype.revert=Ice;Zd.prototype.reduce=Tce;Zd.prototype.mulTo=Rce;Zd.prototype.sqrTo=Dce;function _ce(){if(this.t<1)return 0;var r=this.data[0];if((r&1)==0)return 0;var e=r&3;return e=e*(2-(r&15)*e)&15,e=e*(2-(r&255)*e)&255,e=e*(2-((r&65535)*e&65535))&65535,e=e*(2-r*e%this.DV)%this.DV,e>0?this.DV-e:-e}o(_ce,"bnpInvDigit");function em(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}o(em,"Montgomery");function Oce(r){var e=Vr();return r.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),r.s<0&&e.compareTo(He.ZERO)>0&&this.m.subTo(e,e),e}o(Oce,"montConvert");function Pce(r){var e=Vr();return r.copyTo(e),this.reduce(e),e}o(Pce,"montRevert");function Bce(r){for(;r.t<=this.mt2;)r.data[r.t++]=0;for(var e=0;e<this.m.t;++e){var t=r.data[e]&32767,n=t*this.mpl+((t*this.mph+(r.data[e]>>15)*this.mpl&this.um)<<15)&r.DM;for(t=e+this.m.t,r.data[t]+=this.m.am(0,n,r,e,0,this.m.t);r.data[t]>=r.DV;)r.data[t]-=r.DV,r.data[++t]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)}o(Bce,"montReduce");function Fce(r,e){r.squareTo(e),this.reduce(e)}o(Fce,"montSqrTo");function Lce(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Lce,"montMulTo");em.prototype.convert=Oce;em.prototype.revert=Pce;em.prototype.reduce=Bce;em.prototype.mulTo=Lce;em.prototype.sqrTo=Fce;function kce(){return(this.t>0?this.data[0]&1:this.s)==0}o(kce,"bnpIsEven");function Vce(r,e){if(r>4294967295||r<1)return He.ONE;var t=Vr(),n=Vr(),i=e.convert(this),s=a2(r)-1;for(i.copyTo(t);--s>=0;)if(e.sqrTo(t,n),(r&1<<s)>0)e.mulTo(n,i,t);else{var a=t;t=n,n=a}return e.revert(t)}o(Vce,"bnpExp");function jce(r,e){var t;return r<256||e.isEven()?t=new Zd(e):t=new em(e),this.exp(r,t)}o(jce,"bnModPowInt");He.prototype.copyTo=uce;He.prototype.fromInt=cce;He.prototype.fromString=lce;He.prototype.clamp=fce;He.prototype.dlShiftTo=vce;He.prototype.drShiftTo=yce;He.prototype.lShiftTo=Sce;He.prototype.rShiftTo=xce;He.prototype.subTo=bce;He.prototype.multiplyTo=wce;He.prototype.squareTo=Cce;He.prototype.divRemTo=Ece;He.prototype.invDigit=_ce;He.prototype.isEven=kce;He.prototype.exp=Vce;He.prototype.toString=pce;He.prototype.negate=hce;He.prototype.abs=dce;He.prototype.compareTo=mce;He.prototype.bitLength=gce;He.prototype.mod=Ace;He.prototype.modPowInt=jce;He.ZERO=Lp(0);He.ONE=Lp(1);function Uce(){var r=Vr();return this.copyTo(r),r}o(Uce,"bnClone");function Mce(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}o(Mce,"bnIntValue");function qce(){return this.t==0?this.s:this.data[0]<<24>>24}o(qce,"bnByteValue");function Hce(){return this.t==0?this.s:this.data[0]<<16>>16}o(Hce,"bnShortValue");function zce(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}o(zce,"bnpChunkSize");function Kce(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}o(Kce,"bnSigNum");function $ce(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var e=this.chunkSize(r),t=Math.pow(r,e),n=Lp(t),i=Vr(),s=Vr(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(t+s.intValue()).toString(r).substr(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(r)+a}o($ce,"bnpToRadix");function Gce(r,e){this.fromInt(0),e==null&&(e=10);for(var t=this.chunkSize(e),n=Math.pow(e,t),i=!1,s=0,a=0,u=0;u<r.length;++u){var c=DM(r,u);if(c<0){r.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+c,++s>=t&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),i&&He.ZERO.subTo(this,this)}o(Gce,"bnpFromRadix");function Xce(r,e,t){if(typeof e=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,t),this.testBit(r-1)||this.bitwiseTo(He.ONE.shiftLeft(r-1),zP,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(He.ONE.shiftLeft(r-1),this);else{var n=new Array,i=r&7;n.length=(r>>3)+1,e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}}o(Xce,"bnpFromNumber");function Wce(){var r=this.t,e=new Array;e[0]=this.s;var t=this.DB-r*this.DB%8,n,i=0;if(r-- >0)for(t<this.DB&&(n=this.data[r]>>t)!=(this.s&this.DM)>>t&&(e[i++]=n|this.s<<this.DB-t);r>=0;)t<8?(n=(this.data[r]&(1<<t)-1)<<8-t,n|=this.data[--r]>>(t+=this.DB-8)):(n=this.data[r]>>(t-=8)&255,t<=0&&(t+=this.DB,--r)),(n&128)!=0&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e}o(Wce,"bnToByteArray");function Jce(r){return this.compareTo(r)==0}o(Jce,"bnEquals");function Qce(r){return this.compareTo(r)<0?this:r}o(Qce,"bnMin");function Yce(r){return this.compareTo(r)>0?this:r}o(Yce,"bnMax");function Zce(r,e,t){var n,i,s=Math.min(r.t,this.t);for(n=0;n<s;++n)t.data[n]=e(this.data[n],r.data[n]);if(r.t<this.t){for(i=r.s&this.DM,n=s;n<this.t;++n)t.data[n]=e(this.data[n],i);t.t=this.t}else{for(i=this.s&this.DM,n=s;n<r.t;++n)t.data[n]=e(i,r.data[n]);t.t=r.t}t.s=e(this.s,r.s),t.clamp()}o(Zce,"bnpBitwiseTo");function ele(r,e){return r&e}o(ele,"op_and");function tle(r){var e=Vr();return this.bitwiseTo(r,ele,e),e}o(tle,"bnAnd");function zP(r,e){return r|e}o(zP,"op_or");function rle(r){var e=Vr();return this.bitwiseTo(r,zP,e),e}o(rle,"bnOr");function _M(r,e){return r^e}o(_M,"op_xor");function nle(r){var e=Vr();return this.bitwiseTo(r,_M,e),e}o(nle,"bnXor");function OM(r,e){return r&~e}o(OM,"op_andnot");function ile(r){var e=Vr();return this.bitwiseTo(r,OM,e),e}o(ile,"bnAndNot");function sle(){for(var r=Vr(),e=0;e<this.t;++e)r.data[e]=this.DM&~this.data[e];return r.t=this.t,r.s=~this.s,r}o(sle,"bnNot");function ale(r){var e=Vr();return r<0?this.rShiftTo(-r,e):this.lShiftTo(r,e),e}o(ale,"bnShiftLeft");function ole(r){var e=Vr();return r<0?this.lShiftTo(-r,e):this.rShiftTo(r,e),e}o(ole,"bnShiftRight");function ule(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}o(ule,"lbit");function cle(){for(var r=0;r<this.t;++r)if(this.data[r]!=0)return r*this.DB+ule(this.data[r]);return this.s<0?this.t*this.DB:-1}o(cle,"bnGetLowestSetBit");function lle(r){for(var e=0;r!=0;)r&=r-1,++e;return e}o(lle,"cbit");function fle(){for(var r=0,e=this.s&this.DM,t=0;t<this.t;++t)r+=lle(this.data[t]^e);return r}o(fle,"bnBitCount");function ple(r){var e=Math.floor(r/this.DB);return e>=this.t?this.s!=0:(this.data[e]&1<<r%this.DB)!=0}o(ple,"bnTestBit");function hle(r,e){var t=He.ONE.shiftLeft(r);return this.bitwiseTo(t,e,t),t}o(hle,"bnpChangeBit");function dle(r){return this.changeBit(r,zP)}o(dle,"bnSetBit");function mle(r){return this.changeBit(r,OM)}o(mle,"bnClearBit");function gle(r){return this.changeBit(r,_M)}o(gle,"bnFlipBit");function vle(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]+r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n+=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n+=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=r.s}e.s=n<0?-1:0,n>0?e.data[t++]=n:n<-1&&(e.data[t++]=this.DV+n),e.t=t,e.clamp()}o(vle,"bnpAddTo");function yle(r){var e=Vr();return this.addTo(r,e),e}o(yle,"bnAdd");function Sle(r){var e=Vr();return this.subTo(r,e),e}o(Sle,"bnSubtract");function xle(r){var e=Vr();return this.multiplyTo(r,e),e}o(xle,"bnMultiply");function ble(r){var e=Vr();return this.divRemTo(r,e,null),e}o(ble,"bnDivide");function wle(r){var e=Vr();return this.divRemTo(r,null,e),e}o(wle,"bnRemainder");function Cle(r){var e=Vr(),t=Vr();return this.divRemTo(r,e,t),new Array(e,t)}o(Cle,"bnDivideAndRemainder");function Ele(r){this.data[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()}o(Ele,"bnpDMultiply");function Ale(r,e){if(r!=0){for(;this.t<=e;)this.data[this.t++]=0;for(this.data[e]+=r;this.data[e]>=this.DV;)this.data[e]-=this.DV,++e>=this.t&&(this.data[this.t++]=0),++this.data[e]}}o(Ale,"bnpDAddOffset");function kx(){}o(kx,"NullExp");function PM(r){return r}o(PM,"nNop");function Nle(r,e,t){r.multiplyTo(e,t)}o(Nle,"nMulTo");function Ile(r,e){r.squareTo(e)}o(Ile,"nSqrTo");kx.prototype.convert=PM;kx.prototype.revert=PM;kx.prototype.mulTo=Nle;kx.prototype.sqrTo=Ile;function Tle(r){return this.exp(r,new kx)}o(Tle,"bnPow");function Rle(r,e,t){var n=Math.min(this.t+r.t,e);for(t.s=0,t.t=n;n>0;)t.data[--n]=0;var i;for(i=t.t-this.t;n<i;++n)t.data[n+this.t]=this.am(0,r.data[n],t,n,0,this.t);for(i=Math.min(r.t,e);n<i;++n)this.am(0,r.data[n],t,n,0,e-n);t.clamp()}o(Rle,"bnpMultiplyLowerTo");function Dle(r,e,t){--e;var n=t.t=this.t+r.t-e;for(t.s=0;--n>=0;)t.data[n]=0;for(n=Math.max(e-this.t,0);n<r.t;++n)t.data[this.t+n-e]=this.am(e-n,r.data[n],t,0,0,this.t+n-e);t.clamp(),t.drShiftTo(1,t)}o(Dle,"bnpMultiplyUpperTo");function rv(r){this.r2=Vr(),this.q3=Vr(),He.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r),this.m=r}o(rv,"Barrett");function _le(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var e=Vr();return r.copyTo(e),this.reduce(e),e}o(_le,"barrettConvert");function Ole(r){return r}o(Ole,"barrettRevert");function Ple(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)}o(Ple,"barrettReduce");function Ble(r,e){r.squareTo(e),this.reduce(e)}o(Ble,"barrettSqrTo");function Fle(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Fle,"barrettMulTo");rv.prototype.convert=_le;rv.prototype.revert=Ole;rv.prototype.reduce=Ple;rv.prototype.mulTo=Fle;rv.prototype.sqrTo=Ble;function Lle(r,e){var t=r.bitLength(),n,i=Lp(1),s;if(t<=0)return i;t<18?n=1:t<48?n=3:t<144?n=4:t<768?n=5:n=6,t<8?s=new Zd(e):e.isEven()?s=new rv(e):s=new em(e);var a=new Array,u=3,c=n-1,l=(1<<n)-1;if(a[1]=s.convert(this),n>1){var p=Vr();for(s.sqrTo(a[1],p);u<=l;)a[u]=Vr(),s.mulTo(p,a[u-2],a[u]),u+=2}var m=r.t-1,g,y=!0,v=Vr(),b;for(t=a2(r.data[m])-1;m>=0;){for(t>=c?g=r.data[m]>>t-c&l:(g=(r.data[m]&(1<<t+1)-1)<<c-t,m>0&&(g|=r.data[m-1]>>this.DB+t-c)),u=n;(g&1)==0;)g>>=1,--u;if((t-=u)<0&&(t+=this.DB,--m),y)a[g].copyTo(i),y=!1;else{for(;u>1;)s.sqrTo(i,v),s.sqrTo(v,i),u-=2;u>0?s.sqrTo(i,v):(b=i,i=v,v=b),s.mulTo(v,a[g],i)}for(;m>=0&&(r.data[m]&1<<t)==0;)s.sqrTo(i,v),b=i,i=v,v=b,--t<0&&(t=this.DB-1,--m)}return s.revert(i)}o(Lle,"bnModPow");function kle(r){var e=this.s<0?this.negate():this.clone(),t=r.s<0?r.negate():r.clone();if(e.compareTo(t)<0){var n=e;e=t,t=n}var i=e.getLowestSetBit(),s=t.getLowestSetBit();if(s<0)return e;for(i<s&&(s=i),s>0&&(e.rShiftTo(s,e),t.rShiftTo(s,t));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),e.compareTo(t)>=0?(e.subTo(t,e),e.rShiftTo(1,e)):(t.subTo(e,t),t.rShiftTo(1,t));return s>0&&t.lShiftTo(s,t),t}o(kle,"bnGCD");function Vle(r){if(r<=0)return 0;var e=this.DV%r,t=this.s<0?r-1:0;if(this.t>0)if(e==0)t=this.data[0]%r;else for(var n=this.t-1;n>=0;--n)t=(e*t+this.data[n])%r;return t}o(Vle,"bnpModInt");function jle(r){var e=r.isEven();if(this.isEven()&&e||r.signum()==0)return He.ZERO;for(var t=r.clone(),n=this.clone(),i=Lp(1),s=Lp(0),a=Lp(0),u=Lp(1);t.signum()!=0;){for(;t.isEven();)t.rShiftTo(1,t),e?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(r,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(r,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(r,u),u.rShiftTo(1,u);t.compareTo(n)>=0?(t.subTo(n,t),e&&i.subTo(a,i),s.subTo(u,s)):(n.subTo(t,n),e&&a.subTo(i,a),u.subTo(s,u))}if(n.compareTo(He.ONE)!=0)return He.ZERO;if(u.compareTo(r)>=0)return u.subtract(r);if(u.signum()<0)u.addTo(r,u);else return u;return u.signum()<0?u.add(r):u}o(jle,"bnModInverse");var Tu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],Ule=(1<<26)/Tu[Tu.length-1];function Mle(r){var e,t=this.abs();if(t.t==1&&t.data[0]<=Tu[Tu.length-1]){for(e=0;e<Tu.length;++e)if(t.data[0]==Tu[e])return!0;return!1}if(t.isEven())return!1;for(e=1;e<Tu.length;){for(var n=Tu[e],i=e+1;i<Tu.length&&n<Ule;)n*=Tu[i++];for(n=t.modInt(n);e<i;)if(n%Tu[e++]==0)return!1}return t.millerRabin(r)}o(Mle,"bnIsProbablePrime");function qle(r){var e=this.subtract(He.ONE),t=e.getLowestSetBit();if(t<=0)return!1;for(var n=e.shiftRight(t),i=Hle(),s,a=0;a<r;++a){do s=new He(this.bitLength(),i);while(s.compareTo(He.ONE)<=0||s.compareTo(e)>=0);var u=s.modPow(n,this);if(u.compareTo(He.ONE)!=0&&u.compareTo(e)!=0){for(var c=1;c++<t&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(He.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0}o(qle,"bnpMillerRabin");function Hle(){return{nextBytes:o(function(r){for(var e=0;e<r.length;++e)r[e]=Math.floor(Math.random()*256)},"nextBytes")}}o(Hle,"bnGetPrng");He.prototype.chunkSize=zce;He.prototype.toRadix=$ce;He.prototype.fromRadix=Gce;He.prototype.fromNumber=Xce;He.prototype.bitwiseTo=Zce;He.prototype.changeBit=hle;He.prototype.addTo=vle;He.prototype.dMultiply=Ele;He.prototype.dAddOffset=Ale;He.prototype.multiplyLowerTo=Rle;He.prototype.multiplyUpperTo=Dle;He.prototype.modInt=Vle;He.prototype.millerRabin=qle;He.prototype.clone=Uce;He.prototype.intValue=Mce;He.prototype.byteValue=qce;He.prototype.shortValue=Hce;He.prototype.signum=Kce;He.prototype.toByteArray=Wce;He.prototype.equals=Jce;He.prototype.min=Qce;He.prototype.max=Yce;He.prototype.and=tle;He.prototype.or=rle;He.prototype.xor=nle;He.prototype.andNot=ile;He.prototype.not=sle;He.prototype.shiftLeft=ale;He.prototype.shiftRight=ole;He.prototype.getLowestSetBit=cle;He.prototype.bitCount=fle;He.prototype.testBit=ple;He.prototype.setBit=dle;He.prototype.clearBit=mle;He.prototype.flipBit=gle;He.prototype.add=yle;He.prototype.subtract=Sle;He.prototype.multiply=xle;He.prototype.divide=ble;He.prototype.remainder=wle;He.prototype.divideAndRemainder=Cle;He.prototype.modPow=Lle;He.prototype.modInverse=jle;He.prototype.pow=Tle;He.prototype.gcd=kle;He.prototype.isProbablePrime=Mle});var nv=Z((wIe,VM)=>{"use strict";var Dc=pr();Ac();kr();var LM=VM.exports=Dc.sha1=Dc.sha1||{};Dc.md.sha1=Dc.md.algorithms.sha1=LM;LM.create=function(){kM||zle();var r=null,e=Dc.util.createBuffer(),t=new Array(80),n={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Dc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Dc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),FM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Dc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(KP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4};FM(m,t,i);var g=Dc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g},n};var KP=null,kM=!1;function zle(){KP="\x80",KP+=Dc.util.fillString("\0",64),kM=!0}o(zle,"_init");function FM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,c=r.h4,p=0;p<16;++p)n=t.getInt32(),e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<20;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<32;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<40;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<60;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s&a|u&(s^a),n=(i<<5|i>>>27)+l+c+2400959708+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<80;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+3395469782+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,r.h4=r.h4+c|0,m-=64}}o(FM,"_update")});var $P=Z((EIe,UM)=>{"use strict";var _c=pr();kr();Lo();nv();var jM=UM.exports=_c.pkcs1=_c.pkcs1||{};jM.encode_rsa_oaep=function(r,e,t){var n,i,s,a;typeof t=="string"?(n=t,i=arguments[3]||void 0,s=arguments[4]||void 0):t&&(n=t.label||void 0,i=t.seed||void 0,s=t.md||void 0,t.mgf1&&t.mgf1.md&&(a=t.mgf1.md)),s?s.start():s=_c.md.sha1.create(),a||(a=s);var u=Math.ceil(r.n.bitLength()/8),c=u-2*s.digestLength-2;if(e.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=e.length,l.maxLength=c,l}n||(n=""),s.update(n,"raw");for(var p=s.digest(),m="",g=c-e.length,y=0;y<g;y++)m+="\0";var v=p.getBytes()+m+""+e;if(!i)i=_c.random.getBytes(s.digestLength);else if(i.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=i.length,l.digestLength=s.digestLength,l}var b=o2(i,u-s.digestLength-1,a),x=_c.util.xorBytes(v,b,v.length),E=o2(x,s.digestLength,a),N=_c.util.xorBytes(i,E,i.length);return"\0"+N+x};jM.decode_rsa_oaep=function(r,e,t){var n,i,s;typeof t=="string"?(n=t,i=arguments[3]||void 0):t&&(n=t.label||void 0,i=t.md||void 0,t.mgf1&&t.mgf1.md&&(s=t.mgf1.md));var a=Math.ceil(r.n.bitLength()/8);if(e.length!==a){var x=new Error("RSAES-OAEP encoded message length is invalid.");throw x.length=e.length,x.expectedLength=a,x}if(i===void 0?i=_c.md.sha1.create():i.start(),s||(s=i),a<2*i.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");n||(n=""),i.update(n,"raw");for(var u=i.digest().getBytes(),c=e.charAt(0),l=e.substring(1,i.digestLength+1),p=e.substring(1+i.digestLength),m=o2(p,i.digestLength,s),g=_c.util.xorBytes(l,m,l.length),y=o2(g,a-i.digestLength-1,s),v=_c.util.xorBytes(p,y,p.length),b=v.substring(0,i.digestLength),x=c!=="\0",E=0;E<i.digestLength;++E)x|=u.charAt(E)!==b.charAt(E);for(var N=1,w=i.digestLength,C=i.digestLength;C<v.length;C++){var A=v.charCodeAt(C),R=A&1^1,M=N?65534:0;x|=A&M,N=N&R,w+=N}if(x||v.charCodeAt(w)!==1)throw new Error("Invalid RSAES-OAEP padding.");return v.substring(w+1)};function o2(r,e,t){t||(t=_c.md.sha1.create());for(var n="",i=Math.ceil(e/t.digestLength),s=0;s<i;++s){var a=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);t.start(),t.update(r+a),n+=t.digest().getBytes()}return n.substring(0,e)}o(o2,"rsa_mgf1")});var XP=Z((NIe,GP)=>{"use strict";var kp=pr();kr();Vx();Lo();(function(){if(kp.prime){GP.exports=kp.prime;return}var r=GP.exports=kp.prime=kp.prime||{},e=kp.jsbn.BigInteger,t=[6,4,2,4,2,4,6,2],n=new e(null);n.fromInt(30);var i=o(function(m,g){return m|g},"op_or");r.generateProbablePrime=function(m,g,y){typeof g=="function"&&(y=g,g={}),g=g||{};var v=g.algorithm||"PRIMEINC";typeof v=="string"&&(v={name:v}),v.options=v.options||{};var b=g.prng||kp.random,x={nextBytes:o(function(E){for(var N=b.getBytesSync(E.length),w=0;w<E.length;++w)E[w]=N.charCodeAt(w)},"nextBytes")};if(v.name==="PRIMEINC")return s(m,x,v.options,y);throw new Error("Invalid prime generation algorithm: "+v.name)};function s(m,g,y,v){return"workers"in y?c(m,g,y,v):a(m,g,y,v)}o(s,"primeincFindPrime");function a(m,g,y,v){var b=l(m,g),x=0,E=p(b.bitLength());"millerRabinTests"in y&&(E=y.millerRabinTests);var N=10;"maxBlockTime"in y&&(N=y.maxBlockTime),u(b,m,g,x,E,N,v)}o(a,"primeincFindPrimeWithoutWorkers");function u(m,g,y,v,b,x,E){var N=+new Date;do{if(m.bitLength()>g&&(m=l(g,y)),m.isProbablePrime(b))return E(null,m);m.dAddOffset(t[v++%8],0)}while(x<0||+new Date-N<x);kp.util.setImmediate(function(){u(m,g,y,v,b,x,E)})}o(u,"_primeinc");function c(m,g,y,v){if(typeof Worker>"u")return a(m,g,y,v);var b=l(m,g),x=y.workers,E=y.workLoad||100,N=E*30/8,w=y.workerScript||"forge/prime.worker.js";if(x===-1)return kp.util.estimateCores(function(A,R){A&&(R=2),x=R-1,C()});C();function C(){x=Math.max(1,x);for(var A=[],R=0;R<x;++R)A[R]=new Worker(w);for(var M=x,R=0;R<x;++R)A[R].addEventListener("message",H);var _=!1;function H(z){if(!_){--M;var K=z.data;if(K.found){for(var X=0;X<A.length;++X)A[X].terminate();return _=!0,v(null,new e(K.prime,16))}b.bitLength()>m&&(b=l(m,g));var ye=b.toString(16);z.target.postMessage({hex:ye,workLoad:E}),b.dAddOffset(N,0)}}o(H,"workerMessage")}o(C,"generate")}o(c,"primeincFindPrimeWithWorkers");function l(m,g){var y=new e(m,g),v=m-1;return y.testBit(v)||y.bitwiseTo(e.ONE.shiftLeft(v),i,y),y.dAddOffset(31-y.mod(n).byteValue(),0),y}o(l,"generateRandom");function p(m){return m<=100?27:m<=150?18:m<=200?15:m<=250?12:m<=300?9:m<=350?8:m<=400?7:m<=500?6:m<=600?5:m<=800?4:m<=1250?3:2}o(p,"getMillerRabinTests")})()});var jx=Z((TIe,GM)=>{"use strict";var Rt=pr();Iu();Vx();Fp();$P();XP();Lo();kr();typeof _r>"u"&&(_r=Rt.jsbn.BigInteger);var _r,WP=Rt.util.isNodejs?require("crypto"):null,be=Rt.asn1,Vo=Rt.util;Rt.pki=Rt.pki||{};GM.exports=Rt.pki.rsa=Rt.rsa=Rt.rsa||{};var nr=Rt.pki,Kle=[6,4,2,4,2,4,6,2],$le={name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Gle={name:"RSAPrivateKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},Xle={name:"RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},Wle=Rt.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},Jle={name:"DigestInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:be.Class.UNIVERSAL,type:be.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},Qle=o(function(r){var e;if(r.algorithm in nr.oids)e=nr.oids[r.algorithm];else{var t=new Error("Unknown message digest algorithm.");throw t.algorithm=r.algorithm,t}var n=be.oidToDer(e).getBytes(),i=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]),s=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]);s.value.push(be.create(be.Class.UNIVERSAL,be.Type.OID,!1,n)),s.value.push(be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,""));var a=be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,r.digest().getBytes());return i.value.push(s),i.value.push(a),be.toDer(i).getBytes()},"emsaPkcs1v15encode"),KM=o(function(r,e,t){if(t)return r.modPow(e.e,e.n);if(!e.p||!e.q)return r.modPow(e.d,e.n);e.dP||(e.dP=e.d.mod(e.p.subtract(_r.ONE))),e.dQ||(e.dQ=e.d.mod(e.q.subtract(_r.ONE))),e.qInv||(e.qInv=e.q.modInverse(e.p));var n;do n=new _r(Rt.util.bytesToHex(Rt.random.getBytes(e.n.bitLength()/8)),16);while(n.compareTo(e.n)>=0||!n.gcd(e.n).equals(_r.ONE));r=r.multiply(n.modPow(e.e,e.n)).mod(e.n);for(var i=r.mod(e.p).modPow(e.dP,e.p),s=r.mod(e.q).modPow(e.dQ,e.q);i.compareTo(s)<0;)i=i.add(e.p);var a=i.subtract(s).multiply(e.qInv).mod(e.p).multiply(e.q).add(s);return a=a.multiply(n.modInverse(e.n)).mod(e.n),a},"_modPow");nr.rsa.encrypt=function(r,e,t){var n=t,i,s=Math.ceil(e.n.bitLength()/8);t!==!1&&t!==!0?(n=t===2,i=$M(r,e,t)):(i=Rt.util.createBuffer(),i.putBytes(r));for(var a=new _r(i.toHex(),16),u=KM(a,e,n),c=u.toString(16),l=Rt.util.createBuffer(),p=s-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),l.getBytes()};nr.rsa.decrypt=function(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8);if(r.length!==i){var s=new Error("Encrypted message length is invalid.");throw s.length=r.length,s.expected=i,s}var a=new _r(Rt.util.createBuffer(r).toHex(),16);if(a.compareTo(e.n)>=0)throw new Error("Encrypted message is invalid.");for(var u=KM(a,e,t),c=u.toString(16),l=Rt.util.createBuffer(),p=i-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),n!==!1?u2(l.getBytes(),e,t):l.getBytes()};nr.rsa.createKeyPairGenerationState=function(r,e,t){typeof r=="string"&&(r=parseInt(r,10)),r=r||2048,t=t||{};var n=t.prng||Rt.random,i={nextBytes:o(function(u){for(var c=n.getBytesSync(u.length),l=0;l<u.length;++l)u[l]=c.charCodeAt(l)},"nextBytes")},s=t.algorithm||"PRIMEINC",a;if(s==="PRIMEINC")a={algorithm:s,state:0,bits:r,rng:i,eInt:e||65537,e:new _r(null),p:null,q:null,qBits:r>>1,pBits:r-(r>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};nr.rsa.stepKeyPairGenerationState=function(r,e){"algorithm"in r||(r.algorithm="PRIMEINC");var t=new _r(null);t.fromInt(30);for(var n=0,i=o(function(m,g){return m|g},"op_or"),s=+new Date,a,u=0;r.keys===null&&(e<=0||u<e);){if(r.state===0){var c=r.p===null?r.pBits:r.qBits,l=c-1;r.pqState===0?(r.num=new _r(c,r.rng),r.num.testBit(l)||r.num.bitwiseTo(_r.ONE.shiftLeft(l),i,r.num),r.num.dAddOffset(31-r.num.mod(t).byteValue(),0),n=0,++r.pqState):r.pqState===1?r.num.bitLength()>c?r.pqState=0:r.num.isProbablePrime(Zle(r.num.bitLength()))?++r.pqState:r.num.dAddOffset(Kle[n++%8],0):r.pqState===2?r.pqState=r.num.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)===0?3:0:r.pqState===3&&(r.pqState=0,r.p===null?r.p=r.num:r.q=r.num,r.p!==null&&r.q!==null&&++r.state,r.num=null)}else if(r.state===1)r.p.compareTo(r.q)<0&&(r.num=r.p,r.p=r.q,r.q=r.num),++r.state;else if(r.state===2)r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),++r.state;else if(r.state===3)r.phi.gcd(r.e).compareTo(_r.ONE)===0?++r.state:(r.p=null,r.q=null,r.state=0);else if(r.state===4)r.n=r.p.multiply(r.q),r.n.bitLength()===r.bits?++r.state:(r.q=null,r.state=0);else if(r.state===5){var p=r.e.modInverse(r.phi);r.keys={privateKey:nr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:nr.rsa.setPublicKey(r.n,r.e)}}a=+new Date,u+=a-s,s=a}return r.keys!==null};nr.rsa.generateKeyPair=function(r,e,t,n){if(arguments.length===1?typeof r=="object"?(t=r,r=void 0):typeof r=="function"&&(n=r,r=void 0):arguments.length===2?typeof r=="number"?typeof e=="function"?(n=e,e=void 0):typeof e!="number"&&(t=e,e=void 0):(t=r,n=e,r=void 0,e=void 0):arguments.length===3&&(typeof e=="number"?typeof t=="function"&&(n=t,t=void 0):(n=t,t=e,e=void 0)),t=t||{},r===void 0&&(r=t.bits||2048),e===void 0&&(e=t.e||65537),!Rt.options.usePureJavaScript&&!t.prng&&r>=256&&r<=16384&&(e===65537||e===3)){if(n){if(MM("generateKeyPair"))return WP.generateKeyPair("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(u,c,l){if(u)return n(u);n(null,{privateKey:nr.privateKeyFromPem(l),publicKey:nr.publicKeyFromPem(c)})});if(qM("generateKey")&&qM("exportKey"))return Vo.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:zM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(u){return Vo.globalScope.crypto.subtle.exportKey("pkcs8",u.privateKey)}).then(void 0,function(u){n(u)}).then(function(u){if(u){var c=nr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(u)));n(null,{privateKey:c,publicKey:nr.setRsaPublicKey(c.n,c.e)})}});if(HM("generateKey")&&HM("exportKey")){var i=Vo.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:zM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]);i.oncomplete=function(u){var c=u.target.result,l=Vo.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(p){var m=p.target.result,g=nr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(m)));n(null,{privateKey:g,publicKey:nr.setRsaPublicKey(g.n,g.e)})},l.onerror=function(p){n(p)}},i.onerror=function(u){n(u)};return}}else if(MM("generateKeyPairSync")){var s=WP.generateKeyPairSync("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:nr.privateKeyFromPem(s.privateKey),publicKey:nr.publicKeyFromPem(s.publicKey)}}}var a=nr.rsa.createKeyPairGenerationState(r,e,t);if(!n)return nr.rsa.stepKeyPairGenerationState(a,0),a.keys;Yle(a,t,n)};nr.setRsaPublicKey=nr.rsa.setPublicKey=function(r,e){var t={n:r,e};return t.encrypt=function(n,i,s){if(typeof i=="string"?i=i.toUpperCase():i===void 0&&(i="RSAES-PKCS1-V1_5"),i==="RSAES-PKCS1-V1_5")i={encode:o(function(u,c,l){return $M(u,c,2).getBytes()},"encode")};else if(i==="RSA-OAEP"||i==="RSAES-OAEP")i={encode:o(function(u,c){return Rt.pkcs1.encode_rsa_oaep(c,u,s)},"encode")};else if(["RAW","NONE","NULL",null].indexOf(i)!==-1)i={encode:o(function(u){return u},"encode")};else if(typeof i=="string")throw new Error('Unsupported encryption scheme: "'+i+'".');var a=i.encode(n,t,!0);return nr.rsa.encrypt(a,t,!0)},t.verify=function(n,i,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:o(function(c,l){l=u2(l,t,!0);var p=be.fromDer(l,{parseAllBytes:a._parseAllDigestBytes}),m={},g=[];if(!be.validate(p,Jle,m,g)){var y=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw y.errors=g,y}var v=be.derToOid(m.algorithmIdentifier);if(!(v===Rt.oids.md2||v===Rt.oids.md5||v===Rt.oids.sha1||v===Rt.oids.sha224||v===Rt.oids.sha256||v===Rt.oids.sha384||v===Rt.oids.sha512||v===Rt.oids["sha512-224"]||v===Rt.oids["sha512-256"])){var y=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw y.oid=v,y}if((v===Rt.oids.md2||v===Rt.oids.md5)&&!("parameters"in m))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifier NULL parameters.");return c===m.digest},"verify")}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:o(function(c,l){return l=u2(l,t,!0),c===l},"verify")});var u=nr.rsa.decrypt(i,t,!0,!1);return s.verify(n,u,t.n.bitLength())},t};nr.setRsaPrivateKey=nr.rsa.setPrivateKey=function(r,e,t,n,i,s,a,u){var c={n:r,e,d:t,p:n,q:i,dP:s,dQ:a,qInv:u};return c.decrypt=function(l,p,m){typeof p=="string"?p=p.toUpperCase():p===void 0&&(p="RSAES-PKCS1-V1_5");var g=nr.rsa.decrypt(l,c,!1,!1);if(p==="RSAES-PKCS1-V1_5")p={decode:u2};else if(p==="RSA-OAEP"||p==="RSAES-OAEP")p={decode:o(function(y,v){return Rt.pkcs1.decode_rsa_oaep(v,y,m)},"decode")};else if(["RAW","NONE","NULL",null].indexOf(p)!==-1)p={decode:o(function(y){return y},"decode")};else throw new Error('Unsupported encryption scheme: "'+p+'".');return p.decode(g,c,!1)},c.sign=function(l,p){var m=!1;typeof p=="string"&&(p=p.toUpperCase()),p===void 0||p==="RSASSA-PKCS1-V1_5"?(p={encode:Qle},m=1):(p==="NONE"||p==="NULL"||p===null)&&(p={encode:o(function(){return l},"encode")},m=1);var g=p.encode(l,c.n.bitLength());return nr.rsa.encrypt(g,c,m)},c};nr.wrapRsaPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(nr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,be.toDer(r).getBytes())])};nr.privateKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,$le,e,t)&&(r=be.fromDer(Rt.util.createBuffer(e.privateKey))),e={},t=[],!be.validate(r,Gle,e,t)){var n=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw n.errors=t,n}var i,s,a,u,c,l,p,m;return i=Rt.util.createBuffer(e.privateKeyModulus).toHex(),s=Rt.util.createBuffer(e.privateKeyPublicExponent).toHex(),a=Rt.util.createBuffer(e.privateKeyPrivateExponent).toHex(),u=Rt.util.createBuffer(e.privateKeyPrime1).toHex(),c=Rt.util.createBuffer(e.privateKeyPrime2).toHex(),l=Rt.util.createBuffer(e.privateKeyExponent1).toHex(),p=Rt.util.createBuffer(e.privateKeyExponent2).toHex(),m=Rt.util.createBuffer(e.privateKeyCoefficient).toHex(),nr.setRsaPrivateKey(new _r(i,16),new _r(s,16),new _r(a,16),new _r(u,16),new _r(c,16),new _r(l,16),new _r(p,16),new _r(m,16))};nr.privateKeyToAsn1=nr.privateKeyToRSAPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.e)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.d)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.p)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.q)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.dP)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.dQ)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.qInv))])};nr.publicKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,Wle,e,t)){var n=be.derToOid(e.publicKeyOid);if(n!==nr.oids.rsaEncryption){var i=new Error("Cannot read public key. Unknown OID.");throw i.oid=n,i}r=e.rsaPublicKey}if(t=[],!be.validate(r,Xle,e,t)){var i=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw i.errors=t,i}var s=Rt.util.createBuffer(e.publicKeyModulus).toHex(),a=Rt.util.createBuffer(e.publicKeyExponent).toHex();return nr.setRsaPublicKey(new _r(s,16),new _r(a,16))};nr.publicKeyToAsn1=nr.publicKeyToSubjectPublicKeyInfo=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(nr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.BITSTRING,!1,[nr.publicKeyToRSAPublicKey(r)])])};nr.publicKeyToRSAPublicKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.e))])};function $M(r,e,t){var n=Rt.util.createBuffer(),i=Math.ceil(e.n.bitLength()/8);if(r.length>i-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=r.length,s.max=i-11,s}n.putByte(0),n.putByte(t);var a=i-3-r.length,u;if(t===0||t===1){u=t===0?0:255;for(var c=0;c<a;++c)n.putByte(u)}else for(;a>0;){for(var l=0,p=Rt.random.getBytes(a),c=0;c<a;++c)u=p.charCodeAt(c),u===0?++l:n.putByte(u);a=l}return n.putByte(0),n.putBytes(r),n}o($M,"_encodePkcs1_v1_5");function u2(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8),s=Rt.util.createBuffer(r),a=s.getByte(),u=s.getByte();if(a!==0||t&&u!==0&&u!==1||!t&&u!=2||t&&u===0&&typeof n>"u")throw new Error("Encryption block is invalid.");var c=0;if(u===0){c=i-3-n;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(u===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(u===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var p=s.getByte();if(p!==0||c!==i-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}o(u2,"_decodePkcs1_v1_5");function Yle(r,e,t){typeof e=="function"&&(t=e,e={}),e=e||{};var n={algorithm:{name:e.algorithm||"PRIMEINC",options:{workers:e.workers||2,workLoad:e.workLoad||100,workerScript:e.workerScript}}};"prng"in e&&(n.prng=e.prng),i();function i(){s(r.pBits,function(u,c){if(u)return t(u);if(r.p=c,r.q!==null)return a(u,r.q);s(r.qBits,a)})}o(i,"generate");function s(u,c){Rt.prime.generateProbablePrime(u,n,c)}o(s,"getPrime");function a(u,c){if(u)return t(u);if(r.q=c,r.p.compareTo(r.q)<0){var l=r.p;r.p=r.q,r.q=l}if(r.p.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.p=null,i();return}if(r.q.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.q=null,s(r.qBits,a);return}if(r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),r.phi.gcd(r.e).compareTo(_r.ONE)!==0){r.p=r.q=null,i();return}if(r.n=r.p.multiply(r.q),r.n.bitLength()!==r.bits){r.q=null,s(r.qBits,a);return}var p=r.e.modInverse(r.phi);r.keys={privateKey:nr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:nr.rsa.setPublicKey(r.n,r.e)},t(null,r.keys)}o(a,"finish")}o(Yle,"_generateKeyPair");function Oc(r){var e=r.toString(16);e[0]>="8"&&(e="00"+e);var t=Rt.util.hexToBytes(e);return t.length>1&&(t.charCodeAt(0)===0&&(t.charCodeAt(1)&128)===0||t.charCodeAt(0)===255&&(t.charCodeAt(1)&128)===128)?t.substr(1):t}o(Oc,"_bnToBytes");function Zle(r){return r<=100?27:r<=150?18:r<=200?15:r<=250?12:r<=300?9:r<=350?8:r<=400?7:r<=500?6:r<=600?5:r<=800?4:r<=1250?3:2}o(Zle,"_getMillerRabinTests");function MM(r){return Rt.util.isNodejs&&typeof WP[r]=="function"}o(MM,"_detectNodeCrypto");function qM(r){return typeof Vo.globalScope<"u"&&typeof Vo.globalScope.crypto=="object"&&typeof Vo.globalScope.crypto.subtle=="object"&&typeof Vo.globalScope.crypto.subtle[r]=="function"}o(qM,"_detectSubtleCrypto");function HM(r){return typeof Vo.globalScope<"u"&&typeof Vo.globalScope.msCrypto=="object"&&typeof Vo.globalScope.msCrypto.subtle=="object"&&typeof Vo.globalScope.msCrypto.subtle[r]=="function"}o(HM,"_detectSubtleMsCrypto");function zM(r){for(var e=Rt.util.hexToBytes(r.toString(16)),t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}o(zM,"_intToUint8Array")});var JP=Z((DIe,YM)=>{"use strict";var mt=pr();Bp();Iu();Lx();Ac();Fp();n2();Yd();Lo();MP();jx();kr();typeof XM>"u"&&(XM=mt.jsbn.BigInteger);var XM,Re=mt.asn1,ur=mt.pki=mt.pki||{};YM.exports=ur.pbe=mt.pbe=mt.pbe||{};var tm=ur.oids,efe={name:"EncryptedPrivateKeyInfo",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},tfe={name:"PBES2Algorithms",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},rfe={name:"pkcs-12PbeParams",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"iterations"}]};ur.encryptPrivateKeyInfo=function(r,e,t){t=t||{},t.saltSize=t.saltSize||8,t.count=t.count||2048,t.algorithm=t.algorithm||"aes128",t.prfAlgorithm=t.prfAlgorithm||"sha1";var n=mt.random.getBytesSync(t.saltSize),i=t.count,s=Re.integerToDer(i),a,u,c;if(t.algorithm.indexOf("aes")===0||t.algorithm==="des"){var l,p,m;switch(t.algorithm){case"aes128":a=16,l=16,p=tm["aes128-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes192":a=24,l=16,p=tm["aes192-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes256":a=32,l=16,p=tm["aes256-CBC"],m=mt.aes.createEncryptionCipher;break;case"des":a=8,l=8,p=tm.desCBC,m=mt.des.createEncryptionCipher;break;default:var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var y="hmacWith"+t.prfAlgorithm.toUpperCase(),v=QM(y),b=mt.pkcs5.pbkdf2(e,n,i,a,v),x=mt.random.getBytesSync(l),E=m(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes();var N=nfe(n,s,a,y);u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm.pkcs5PBES2).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm.pkcs5PBKDF2).getBytes()),N]),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(p).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,x)])])])}else if(t.algorithm==="3des"){a=24;var w=new mt.util.ByteBuffer(n),b=ur.pbe.generatePkcs12Key(e,w,1,i,a),x=ur.pbe.generatePkcs12Key(e,w,2,i,a),E=mt.des.createEncryptionCipher(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes(),u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,n),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,s.getBytes())])])}else{var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var C=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[u,Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,c)]);return C};ur.decryptPrivateKeyInfo=function(r,e){var t=null,n={},i=[];if(!Re.validate(r,efe,n,i)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=Re.derToOid(n.encryptionOid),u=ur.pbe.getCipher(a,n.encryptionParams,e),c=mt.util.createBuffer(n.encryptedData);return u.update(c),u.finish()&&(t=Re.fromDer(u.output)),t};ur.encryptedPrivateKeyToPem=function(r,e){var t={type:"ENCRYPTED PRIVATE KEY",body:Re.toDer(r).getBytes()};return mt.pem.encode(t,{maxline:e})};ur.encryptedPrivateKeyFromPem=function(r){var e=mt.pem.decode(r)[0];if(e.type!=="ENCRYPTED PRIVATE KEY"){var t=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return Re.fromDer(e.body)};ur.encryptRsaPrivateKey=function(r,e,t){if(t=t||{},!t.legacy){var n=ur.wrapRsaPrivateKey(ur.privateKeyToAsn1(r));return n=ur.encryptPrivateKeyInfo(n,e,t),ur.encryptedPrivateKeyToPem(n)}var i,s,a,u;switch(t.algorithm){case"aes128":i="AES-128-CBC",a=16,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes192":i="AES-192-CBC",a=24,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes256":i="AES-256-CBC",a=32,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"3des":i="DES-EDE3-CBC",a=24,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;case"des":i="DES-CBC",a=8,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+t.algorithm+'".');throw c.algorithm=t.algorithm,c}var l=mt.pbe.opensslDeriveBytes(e,s.substr(0,8),a),p=u(l);p.start(s),p.update(Re.toDer(ur.privateKeyToAsn1(r))),p.finish();var m={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:i,parameters:mt.util.bytesToHex(s).toUpperCase()},body:p.output.getBytes()};return mt.pem.encode(m)};ur.decryptRsaPrivateKey=function(r,e){var t=null,n=mt.pem.decode(r)[0];if(n.type!=="ENCRYPTED PRIVATE KEY"&&n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw i.headerType=i,i}if(n.procType&&n.procType.type==="ENCRYPTED"){var s,a;switch(n.dekInfo.algorithm){case"DES-CBC":s=8,a=mt.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=mt.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=mt.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=mt.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=mt.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=o(function(m){return mt.rc2.createDecryptionCipher(m,40)},"cipherFn");break;case"RC2-64-CBC":s=8,a=o(function(m){return mt.rc2.createDecryptionCipher(m,64)},"cipherFn");break;case"RC2-128-CBC":s=16,a=o(function(m){return mt.rc2.createDecryptionCipher(m,128)},"cipherFn");break;default:var i=new Error('Could not decrypt private key; unsupported encryption algorithm "'+n.dekInfo.algorithm+'".');throw i.algorithm=n.dekInfo.algorithm,i}var u=mt.util.hexToBytes(n.dekInfo.parameters),c=mt.pbe.opensslDeriveBytes(e,u.substr(0,8),s),l=a(c);if(l.start(u),l.update(mt.util.createBuffer(n.body)),l.finish())t=l.output.getBytes();else return t}else t=n.body;return n.type==="ENCRYPTED PRIVATE KEY"?t=ur.decryptPrivateKeyInfo(Re.fromDer(t),e):t=Re.fromDer(t),t!==null&&(t=ur.privateKeyFromAsn1(t)),t};ur.pbe.generatePkcs12Key=function(r,e,t,n,i,s){var a,u;if(typeof s>"u"||s===null){if(!("sha1"in mt.md))throw new Error('"sha1" hash algorithm unavailable.');s=mt.md.sha1.create()}var c=s.digestLength,l=s.blockLength,p=new mt.util.ByteBuffer,m=new mt.util.ByteBuffer;if(r!=null){for(u=0;u<r.length;u++)m.putInt16(r.charCodeAt(u));m.putInt16(0)}var g=m.length(),y=e.length(),v=new mt.util.ByteBuffer;v.fillWithByte(t,l);var b=l*Math.ceil(y/l),x=new mt.util.ByteBuffer;for(u=0;u<b;u++)x.putByte(e.at(u%y));var E=l*Math.ceil(g/l),N=new mt.util.ByteBuffer;for(u=0;u<E;u++)N.putByte(m.at(u%g));var w=x;w.putBuffer(N);for(var C=Math.ceil(i/c),A=1;A<=C;A++){var R=new mt.util.ByteBuffer;R.putBytes(v.bytes()),R.putBytes(w.bytes());for(var M=0;M<n;M++)s.start(),s.update(R.getBytes()),R=s.digest();var _=new mt.util.ByteBuffer;for(u=0;u<l;u++)_.putByte(R.at(u%c));var H=Math.ceil(y/l)+Math.ceil(g/l),z=new mt.util.ByteBuffer;for(a=0;a<H;a++){var K=new mt.util.ByteBuffer(w.getBytes(l)),X=511;for(u=_.length()-1;u>=0;u--)X=X>>8,X+=_.at(u)+K.at(u),K.setAt(u,X&255);z.putBuffer(K)}w=z,p.putBuffer(R)}return p.truncate(p.length()-i),p};ur.pbe.getCipher=function(r,e,t){switch(r){case ur.oids.pkcs5PBES2:return ur.pbe.getCipherForPBES2(r,e,t);case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:return ur.pbe.getCipherForPKCS12PBE(r,e,t);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=r,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}};ur.pbe.getCipherForPBES2=function(r,e,t){var n={},i=[];if(!Re.validate(e,tfe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}if(r=Re.derToOid(n.kdfOid),r!==ur.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=r,s.supportedOids=["pkcs5PBKDF2"],s}if(r=Re.derToOid(n.encOid),r!==ur.oids["aes128-CBC"]&&r!==ur.oids["aes192-CBC"]&&r!==ur.oids["aes256-CBC"]&&r!==ur.oids["des-EDE3-CBC"]&&r!==ur.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=r,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=n.kdfSalt,u=mt.util.createBuffer(n.kdfIterationCount);u=u.getInt(u.length()<<3);var c,l;switch(ur.oids[r]){case"aes128-CBC":c=16,l=mt.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=mt.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=mt.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=mt.des.createDecryptionCipher;break;case"desCBC":c=8,l=mt.des.createDecryptionCipher;break}var p=JM(n.prfOid),m=mt.pkcs5.pbkdf2(t,a,u,c,p),g=n.encIv,y=l(m);return y.start(g),y};ur.pbe.getCipherForPKCS12PBE=function(r,e,t){var n={},i=[];if(!Re.validate(e,rfe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=mt.util.createBuffer(n.salt),u=mt.util.createBuffer(n.iterations);u=u.getInt(u.length()<<3);var c,l,p;switch(r){case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,p=mt.des.startDecrypting;break;case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,p=o(function(b,x){var E=mt.rc2.createDecryptionCipher(b,40);return E.start(x,null),E},"cipherFn");break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=r,s}var m=JM(n.prfOid),g=ur.pbe.generatePkcs12Key(t,a,1,u,c,m);m.start();var y=ur.pbe.generatePkcs12Key(t,a,2,u,l,m);return p(g,y)};ur.pbe.opensslDeriveBytes=function(r,e,t,n){if(typeof n>"u"||n===null){if(!("md5"in mt.md))throw new Error('"md5" hash algorithm unavailable.');n=mt.md.md5.create()}e===null&&(e="");for(var i=[WM(n,r+e)],s=16,a=1;s<t;++a,s+=16)i.push(WM(n,i[a-1]+r+e));return i.join("").substr(0,t)};function WM(r,e){return r.start().update(e).digest().getBytes()}o(WM,"hash");function JM(r){var e;if(!r)e="hmacWithSHA1";else if(e=ur.oids[Re.derToOid(r)],!e){var t=new Error("Unsupported PRF OID.");throw t.oid=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}return QM(e)}o(JM,"prfOidToMessageDigest");function QM(r){var e=mt.md;switch(r){case"hmacWithSHA224":e=mt.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":r=r.substr(8).toLowerCase();break;default:var t=new Error("Unsupported PRF algorithm.");throw t.algorithm=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}if(!e||!(r in e))throw new Error("Unknown hash algorithm: "+r);return e[r].create()}o(QM,"prfAlgorithmToMessageDigest");function nfe(r,e,t,n){var i=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,r),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,e.getBytes())]);return n!=="hmacWithSHA1"&&i.value.push(Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,mt.util.hexToBytes(t.toString(16))),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(ur.oids[n]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.NULL,!1,"")])),i}o(nfe,"createPbkdf2Params")});var QP=Z((OIe,t6)=>{"use strict";var iv=pr();Iu();kr();var pt=iv.asn1,sv=t6.exports=iv.pkcs7asn1=iv.pkcs7asn1||{};iv.pkcs7=iv.pkcs7||{};iv.pkcs7.asn1=sv;var ZM={name:"ContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};sv.contentInfoValidator=ZM;var e6={name:"EncryptedContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};sv.envelopedDataValidator={name:"EnvelopedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(e6)};sv.encryptedDataValidator={name:"EncryptedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"}].concat(e6)};var ife={name:"SignerInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};sv.signedDataValidator={name:"SignedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},ZM,{name:"SignedData.Certificates",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,capture:"signerInfos",optional:!0,value:[ife]}]};sv.recipientInfoValidator={name:"RecipientInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var YP=Z((PIe,r6)=>{"use strict";var rm=pr();kr();rm.mgf=rm.mgf||{};var sfe=r6.exports=rm.mgf.mgf1=rm.mgf1=rm.mgf1||{};sfe.create=function(r){var e={generate:o(function(t,n){for(var i=new rm.util.ByteBuffer,s=Math.ceil(n/r.digestLength),a=0;a<s;a++){var u=new rm.util.ByteBuffer;u.putInt32(a),r.start(),r.update(t+u.getBytes()),i.putBuffer(r.digest())}return i.truncate(i.length()-n),i.getBytes()},"generate")};return e}});var i6=Z((FIe,n6)=>{"use strict";var c2=pr();YP();n6.exports=c2.mgf=c2.mgf||{};c2.mgf.mgf1=c2.mgf1});var l2=Z((LIe,s6)=>{"use strict";var nm=pr();Lo();kr();var afe=s6.exports=nm.pss=nm.pss||{};afe.create=function(r){arguments.length===3&&(r={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var e=r.md,t=r.mgf,n=e.digestLength,i=r.salt||null;typeof i=="string"&&(i=nm.util.createBuffer(i));var s;if("saltLength"in r)s=r.saltLength;else if(i!==null)s=i.length();else throw new Error("Salt length not specified or specific salt not given.");if(i!==null&&i.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=r.prng||nm.random,u={};return u.encode=function(c,l){var p,m=l-1,g=Math.ceil(m/8),y=c.digest().getBytes();if(g<n+s+2)throw new Error("Message is too long to encrypt.");var v;i===null?v=a.getBytesSync(s):v=i.bytes();var b=new nm.util.ByteBuffer;b.fillWithByte(0,8),b.putBytes(y),b.putBytes(v),e.start(),e.update(b.getBytes());var x=e.digest().getBytes(),E=new nm.util.ByteBuffer;E.fillWithByte(0,g-s-n-2),E.putByte(1),E.putBytes(v);var N=E.getBytes(),w=g-n-1,C=t.generate(x,w),A="";for(p=0;p<w;p++)A+=String.fromCharCode(N.charCodeAt(p)^C.charCodeAt(p));var R=65280>>8*g-m&255;return A=String.fromCharCode(A.charCodeAt(0)&~R)+A.substr(1),A+x+"\xBC"},u.verify=function(c,l,p){var m,g=p-1,y=Math.ceil(g/8);if(l=l.substr(-y),y<n+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(y-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var v=y-n-1,b=l.substr(0,v),x=l.substr(v,n),E=65280>>8*y-g&255;if((b.charCodeAt(0)&E)!==0)throw new Error("Bits beyond keysize not zero as expected.");var N=t.generate(x,v),w="";for(m=0;m<v;m++)w+=String.fromCharCode(b.charCodeAt(m)^N.charCodeAt(m));w=String.fromCharCode(w.charCodeAt(0)&~E)+w.substr(1);var C=y-n-s-2;for(m=0;m<C;m++)if(w.charCodeAt(m)!==0)throw new Error("Leftmost octets not zero as expected");if(w.charCodeAt(C)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var A=w.substr(-s),R=new nm.util.ByteBuffer;R.fillWithByte(0,8),R.putBytes(c),R.putBytes(A),e.start(),e.update(R.getBytes());var M=e.digest().getBytes();return x===M},u}});var h2=Z((kIe,l6)=>{"use strict";var Dt=pr();Bp();Iu();Lx();Ac();i6();Fp();Yd();l2();jx();kr();var L=Dt.asn1,rt=l6.exports=Dt.pki=Dt.pki||{},Or=rt.oids,ai={};ai.CN=Or.commonName;ai.commonName="CN";ai.C=Or.countryName;ai.countryName="C";ai.L=Or.localityName;ai.localityName="L";ai.ST=Or.stateOrProvinceName;ai.stateOrProvinceName="ST";ai.O=Or.organizationName;ai.organizationName="O";ai.OU=Or.organizationalUnitName;ai.organizationalUnitName="OU";ai.E=Or.emailAddress;ai.emailAddress="E";var o6=Dt.pki.rsa.publicKeyValidator,ofe={name:"Certificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},o6,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},ufe={name:"rsapss",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},cfe={name:"CertificationRequestInfo",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},o6,{name:"CertificationRequestInfo.attributes",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:L.Class.UNIVERSAL,type:L.Type.SET,constructed:!0}]}]}]},lfe={name:"CertificationRequest",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[cfe,{name:"CertificationRequest.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};rt.RDNAttributesAsArray=function(r,e){for(var t=[],n,i,s,a=0;a<r.value.length;++a){n=r.value[a];for(var u=0;u<n.value.length;++u)s={},i=n.value[u],s.type=L.derToOid(i.value[0].value),s.value=i.value[1].value,s.valueTagClass=i.value[1].type,s.type in Or&&(s.name=Or[s.type],s.name in ai&&(s.shortName=ai[s.name])),e&&(e.update(s.type),e.update(s.value)),t.push(s)}return t};rt.CRIAttributesAsArray=function(r){for(var e=[],t=0;t<r.length;++t)for(var n=r[t],i=L.derToOid(n.value[0].value),s=n.value[1].value,a=0;a<s.length;++a){var u={};if(u.type=i,u.value=s[a].value,u.valueTagClass=s[a].type,u.type in Or&&(u.name=Or[u.type],u.name in ai&&(u.shortName=ai[u.name])),u.type===Or.extensionRequest){u.extensions=[];for(var c=0;c<u.value.length;++c)u.extensions.push(rt.certificateExtensionFromAsn1(u.value[c]))}e.push(u)}return e};function Vp(r,e){typeof e=="string"&&(e={shortName:e});for(var t=null,n,i=0;t===null&&i<r.attributes.length;++i)n=r.attributes[i],(e.type&&e.type===n.type||e.name&&e.name===n.name||e.shortName&&e.shortName===n.shortName)&&(t=n);return t}o(Vp,"_getAttribute");var f2=o(function(r,e,t){var n={};if(r!==Or["RSASSA-PSS"])return n;t&&(n={hash:{algorithmOid:Or.sha1},mgf:{algorithmOid:Or.mgf1,hash:{algorithmOid:Or.sha1}},saltLength:20});var i={},s=[];if(!L.validate(e,ufe,i,s)){var a=new Error("Cannot read RSASSA-PSS parameter block.");throw a.errors=s,a}return i.hashOid!==void 0&&(n.hash=n.hash||{},n.hash.algorithmOid=L.derToOid(i.hashOid)),i.maskGenOid!==void 0&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=L.derToOid(i.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=L.derToOid(i.maskGenHashOid)),i.saltLength!==void 0&&(n.saltLength=i.saltLength.charCodeAt(0)),n},"_readSignatureParameters"),p2=o(function(r){switch(Or[r.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return Dt.md.sha1.create();case"md5WithRSAEncryption":return Dt.md.md5.create();case"sha256WithRSAEncryption":return Dt.md.sha256.create();case"sha384WithRSAEncryption":return Dt.md.sha384.create();case"sha512WithRSAEncryption":return Dt.md.sha512.create();case"RSASSA-PSS":return Dt.md.sha256.create();default:var e=new Error("Could not compute "+r.type+" digest. Unknown signature OID.");throw e.signatureOid=r.signatureOid,e}},"_createSignatureDigest"),u6=o(function(r){var e=r.certificate,t;switch(e.signatureOid){case Or.sha1WithRSAEncryption:case Or.sha1WithRSASignature:break;case Or["RSASSA-PSS"]:var n,i;if(n=Or[e.signatureParameters.mgf.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=e.signatureParameters.mgf.hash.algorithmOid,s.name=n,s}if(i=Or[e.signatureParameters.mgf.algorithmOid],i===void 0||Dt.mgf[i]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=e.signatureParameters.mgf.algorithmOid,s.name=i,s}if(i=Dt.mgf[i].create(Dt.md[n].create()),n=Or[e.signatureParameters.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=e.signatureParameters.hash.algorithmOid,s.name=n,s}t=Dt.pss.create(Dt.md[n].create(),i,e.signatureParameters.saltLength);break}return e.publicKey.verify(r.md.digest().getBytes(),r.signature,t)},"_verifySignature");rt.certificateFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE"&&n.type!=="X509 CERTIFICATE"&&n.type!=="TRUSTED CERTIFICATE"){var i=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificateFromAsn1(s,e)};rt.certificateToPem=function(r,e){var t={type:"CERTIFICATE",body:L.toDer(rt.certificateToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyFromPem=function(r){var e=Dt.pem.decode(r)[0];if(e.type!=="PUBLIC KEY"&&e.type!=="RSA PUBLIC KEY"){var t=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var n=L.fromDer(e.body);return rt.publicKeyFromAsn1(n)};rt.publicKeyToPem=function(r,e){var t={type:"PUBLIC KEY",body:L.toDer(rt.publicKeyToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyToRSAPublicKeyPem=function(r,e){var t={type:"RSA PUBLIC KEY",body:L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.getPublicKeyFingerprint=function(r,e){e=e||{};var t=e.md||Dt.md.sha1.create(),n=e.type||"RSAPublicKey",i;switch(n){case"RSAPublicKey":i=L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes();break;case"SubjectPublicKeyInfo":i=L.toDer(rt.publicKeyToAsn1(r)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+e.type+'".')}t.start(),t.update(i);var s=t.digest();if(e.encoding==="hex"){var a=s.toHex();return e.delimiter?a.match(/.{2}/g).join(e.delimiter):a}else{if(e.encoding==="binary")return s.getBytes();if(e.encoding)throw new Error('Unknown encoding "'+e.encoding+'".')}return s};rt.certificationRequestFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE REQUEST"){var i=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificationRequestFromAsn1(s,e)};rt.certificationRequestToPem=function(r,e){var t={type:"CERTIFICATE REQUEST",body:L.toDer(rt.certificationRequestToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.createCertificate=function(){var r={};return r.version=2,r.serialNumber="00",r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.validity={},r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.issuer={},r.issuer.getField=function(e){return Vp(r.issuer,e)},r.issuer.addField=function(e){jo([e]),r.issuer.attributes.push(e)},r.issuer.attributes=[],r.issuer.hash=null,r.subject={},r.subject.getField=function(e){return Vp(r.subject,e)},r.subject.addField=function(e){jo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.extensions=[],r.publicKey=null,r.md=null,r.setSubject=function(e,t){jo(e),r.subject.attributes=e,delete r.subject.uniqueId,t&&(r.subject.uniqueId=t),r.subject.hash=null},r.setIssuer=function(e,t){jo(e),r.issuer.attributes=e,delete r.issuer.uniqueId,t&&(r.issuer.uniqueId=t),r.issuer.hash=null},r.setExtensions=function(e){for(var t=0;t<e.length;++t)c6(e[t],{cert:r});r.extensions=e},r.getExtension=function(e){typeof e=="string"&&(e={name:e});for(var t=null,n,i=0;t===null&&i<r.extensions.length;++i)n=r.extensions[i],(e.id&&n.id===e.id||e.name&&n.name===e.name)&&(t=n);return t},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.tbsCertificate=rt.getTBSCertificate(r);var s=L.toDer(r.tbsCertificate);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(e){var t=!1;if(!r.issued(e)){var n=e.issuer,i=r.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=i.attributes,s.actualIssuer=n.attributes,s}var a=e.md;if(a===null){a=p2({signatureOid:e.signatureOid,type:"certificate"});var u=e.tbsCertificate||rt.getTBSCertificate(e),c=L.toDer(u);a.update(c.getBytes())}return a!==null&&(t=u6({certificate:r,md:a,signature:e.signature})),t},r.isIssuer=function(e){var t=!1,n=r.issuer,i=e.subject;if(n.hash&&i.hash)t=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){t=!0;for(var s,a,u=0;t&&u<n.attributes.length;++u)s=n.attributes[u],a=i.attributes[u],(s.type!==a.type||s.value!==a.value)&&(t=!1)}return t},r.issued=function(e){return e.isIssuer(r)},r.generateSubjectKeyIdentifier=function(){return rt.getPublicKeyFingerprint(r.publicKey,{type:"RSAPublicKey"})},r.verifySubjectKeyIdentifier=function(){for(var e=Or.subjectKeyIdentifier,t=0;t<r.extensions.length;++t){var n=r.extensions[t];if(n.id===e){var i=r.generateSubjectKeyIdentifier().getBytes();return Dt.util.hexToBytes(n.subjectKeyIdentifier)===i}}return!1},r};rt.certificateFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,ofe,t,n)){var i=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificate();a.version=t.certVersion?t.certVersion.charCodeAt(0):0;var u=Dt.util.createBuffer(t.certSerialNumber);a.serialNumber=u.toHex(),a.signatureOid=Dt.asn1.derToOid(t.certSignatureOid),a.signatureParameters=f2(a.signatureOid,t.certSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.certinfoSignatureOid),a.siginfo.parameters=f2(a.siginfo.algorithmOid,t.certinfoSignatureParams,!1),a.signature=t.certSignature;var c=[];if(t.certValidity1UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity1UTCTime)),t.certValidity2GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity2GeneralizedTime)),t.certValidity3UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity3UTCTime)),t.certValidity4GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(a.validity.notBefore=c[0],a.validity.notAfter=c[1],a.tbsCertificate=t.tbsCertificate,e){a.md=p2({signatureOid:a.signatureOid,type:"certificate"});var l=L.toDer(a.tbsCertificate);a.md.update(l.getBytes())}var p=Dt.md.sha1.create(),m=L.toDer(t.certIssuer);p.update(m.getBytes()),a.issuer.getField=function(v){return Vp(a.issuer,v)},a.issuer.addField=function(v){jo([v]),a.issuer.attributes.push(v)},a.issuer.attributes=rt.RDNAttributesAsArray(t.certIssuer),t.certIssuerUniqueId&&(a.issuer.uniqueId=t.certIssuerUniqueId),a.issuer.hash=p.digest().toHex();var g=Dt.md.sha1.create(),y=L.toDer(t.certSubject);return g.update(y.getBytes()),a.subject.getField=function(v){return Vp(a.subject,v)},a.subject.addField=function(v){jo([v]),a.subject.attributes.push(v)},a.subject.attributes=rt.RDNAttributesAsArray(t.certSubject),t.certSubjectUniqueId&&(a.subject.uniqueId=t.certSubjectUniqueId),a.subject.hash=g.digest().toHex(),t.certExtensions?a.extensions=rt.certificateExtensionsFromAsn1(t.certExtensions):a.extensions=[],a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a};rt.certificateExtensionsFromAsn1=function(r){for(var e=[],t=0;t<r.value.length;++t)for(var n=r.value[t],i=0;i<n.value.length;++i)e.push(rt.certificateExtensionFromAsn1(n.value[i]));return e};rt.certificateExtensionFromAsn1=function(r){var e={};if(e.id=L.derToOid(r.value[0].value),e.critical=!1,r.value[1].type===L.Type.BOOLEAN?(e.critical=r.value[1].value.charCodeAt(0)!==0,e.value=r.value[2].value):e.value=r.value[1].value,e.id in Or){if(e.name=Or[e.id],e.name==="keyUsage"){var t=L.fromDer(e.value),n=0,i=0;t.value.length>1&&(n=t.value.charCodeAt(1),i=t.value.length>2?t.value.charCodeAt(2):0),e.digitalSignature=(n&128)===128,e.nonRepudiation=(n&64)===64,e.keyEncipherment=(n&32)===32,e.dataEncipherment=(n&16)===16,e.keyAgreement=(n&8)===8,e.keyCertSign=(n&4)===4,e.cRLSign=(n&2)===2,e.encipherOnly=(n&1)===1,e.decipherOnly=(i&128)===128}else if(e.name==="basicConstraints"){var t=L.fromDer(e.value);t.value.length>0&&t.value[0].type===L.Type.BOOLEAN?e.cA=t.value[0].value.charCodeAt(0)!==0:e.cA=!1;var s=null;t.value.length>0&&t.value[0].type===L.Type.INTEGER?s=t.value[0].value:t.value.length>1&&(s=t.value[1].value),s!==null&&(e.pathLenConstraint=L.derToInteger(s))}else if(e.name==="extKeyUsage")for(var t=L.fromDer(e.value),a=0;a<t.value.length;++a){var u=L.derToOid(t.value[a].value);u in Or?e[Or[u]]=!0:e[u]=!0}else if(e.name==="nsCertType"){var t=L.fromDer(e.value),n=0;t.value.length>1&&(n=t.value.charCodeAt(1)),e.client=(n&128)===128,e.server=(n&64)===64,e.email=(n&32)===32,e.objsign=(n&16)===16,e.reserved=(n&8)===8,e.sslCA=(n&4)===4,e.emailCA=(n&2)===2,e.objCA=(n&1)===1}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.altNames=[];for(var c,t=L.fromDer(e.value),l=0;l<t.value.length;++l){c=t.value[l];var p={type:c.type,value:c.value};switch(e.altNames.push(p),c.type){case 1:case 2:case 6:break;case 7:p.ip=Dt.util.bytesToIP(c.value);break;case 8:p.oid=L.derToOid(c.value);break;default:}}}else if(e.name==="subjectKeyIdentifier"){var t=L.fromDer(e.value);e.subjectKeyIdentifier=Dt.util.bytesToHex(t.value)}}return e};rt.certificationRequestFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,lfe,t,n)){var i=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificationRequest();if(a.version=t.csrVersion?t.csrVersion.charCodeAt(0):0,a.signatureOid=Dt.asn1.derToOid(t.csrSignatureOid),a.signatureParameters=f2(a.signatureOid,t.csrSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.csrSignatureOid),a.siginfo.parameters=f2(a.siginfo.algorithmOid,t.csrSignatureParams,!1),a.signature=t.csrSignature,a.certificationRequestInfo=t.certificationRequestInfo,e){a.md=p2({signatureOid:a.signatureOid,type:"certification request"});var u=L.toDer(a.certificationRequestInfo);a.md.update(u.getBytes())}var c=Dt.md.sha1.create();return a.subject.getField=function(l){return Vp(a.subject,l)},a.subject.addField=function(l){jo([l]),a.subject.attributes.push(l)},a.subject.attributes=rt.RDNAttributesAsArray(t.certificationRequestInfoSubject,c),a.subject.hash=c.digest().toHex(),a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a.getAttribute=function(l){return Vp(a,l)},a.addAttribute=function(l){jo([l]),a.attributes.push(l)},a.attributes=rt.CRIAttributesAsArray(t.certificationRequestInfoAttributes||[]),a};rt.createCertificationRequest=function(){var r={};return r.version=0,r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.subject={},r.subject.getField=function(e){return Vp(r.subject,e)},r.subject.addField=function(e){jo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.publicKey=null,r.attributes=[],r.getAttribute=function(e){return Vp(r,e)},r.addAttribute=function(e){jo([e]),r.attributes.push(e)},r.md=null,r.setSubject=function(e){jo(e),r.subject.attributes=e,r.subject.hash=null},r.setAttributes=function(e){jo(e),r.attributes=e},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.certificationRequestInfo=rt.getCertificationRequestInfo(r);var s=L.toDer(r.certificationRequestInfo);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(){var e=!1,t=r.md;if(t===null){t=p2({signatureOid:r.signatureOid,type:"certification request"});var n=r.certificationRequestInfo||rt.getCertificationRequestInfo(r),i=L.toDer(n);t.update(i.getBytes())}return t!==null&&(e=u6({certificate:r,md:t,signature:r.signature})),e},r};function av(r){for(var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),t,n,i=r.attributes,s=0;s<i.length;++s){t=i[s];var a=t.value,u=L.Type.PRINTABLESTRING;"valueTagClass"in t&&(u=t.valueTagClass,u===L.Type.UTF8&&(a=Dt.util.encodeUtf8(a))),n=L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(t.type).getBytes()),L.create(L.Class.UNIVERSAL,u,!1,a)])]),e.value.push(n)}return e}o(av,"_dnToAsn1");function jo(r){for(var e,t=0;t<r.length;++t){if(e=r[t],typeof e.name>"u"&&(e.type&&e.type in rt.oids?e.name=rt.oids[e.type]:e.shortName&&e.shortName in ai&&(e.name=rt.oids[ai[e.shortName]])),typeof e.type>"u")if(e.name&&e.name in rt.oids)e.type=rt.oids[e.name];else{var n=new Error("Attribute type not specified.");throw n.attribute=e,n}if(typeof e.shortName>"u"&&e.name&&e.name in ai&&(e.shortName=ai[e.name]),e.type===Or.extensionRequest&&(e.valueConstructed=!0,e.valueTagClass=L.Type.SEQUENCE,!e.value&&e.extensions)){e.value=[];for(var i=0;i<e.extensions.length;++i)e.value.push(rt.certificateExtensionToAsn1(c6(e.extensions[i])))}if(typeof e.value>"u"){var n=new Error("Attribute value not specified.");throw n.attribute=e,n}}}o(jo,"_fillMissingFields");function c6(r,e){if(e=e||{},typeof r.name>"u"&&r.id&&r.id in rt.oids&&(r.name=rt.oids[r.id]),typeof r.id>"u")if(r.name&&r.name in rt.oids)r.id=rt.oids[r.name];else{var t=new Error("Extension ID not specified.");throw t.extension=r,t}if(typeof r.value<"u")return r;if(r.name==="keyUsage"){var n=0,i=0,s=0;r.digitalSignature&&(i|=128,n=7),r.nonRepudiation&&(i|=64,n=6),r.keyEncipherment&&(i|=32,n=5),r.dataEncipherment&&(i|=16,n=4),r.keyAgreement&&(i|=8,n=3),r.keyCertSign&&(i|=4,n=2),r.cRLSign&&(i|=2,n=1),r.encipherOnly&&(i|=1,n=0),r.decipherOnly&&(s|=128,n=7);var a=String.fromCharCode(n);s!==0?a+=String.fromCharCode(i)+String.fromCharCode(s):i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="basicConstraints")r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),r.cA&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in r&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.pathLenConstraint).getBytes()));else if(r.name==="extKeyUsage"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;for(var c in r)r[c]===!0&&(c in Or?u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(Or[c]).getBytes())):c.indexOf(".")!==-1&&u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(c).getBytes())))}else if(r.name==="nsCertType"){var n=0,i=0;r.client&&(i|=128,n=7),r.server&&(i|=64,n=6),r.email&&(i|=32,n=5),r.objsign&&(i|=16,n=4),r.reserved&&(i|=8,n=3),r.sslCA&&(i|=4,n=2),r.emailCA&&(i|=2,n=1),r.objCA&&(i|=1,n=0);var a=String.fromCharCode(n);i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));r.value.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}}else if(r.name==="nsComment"&&e.cert){if(!/^[\x00-\x7F]*$/.test(r.comment)||r.comment.length<1||r.comment.length>128)throw new Error('Invalid "nsComment" content.');r.value=L.create(L.Class.UNIVERSAL,L.Type.IA5STRING,!1,r.comment)}else if(r.name==="subjectKeyIdentifier"&&e.cert){var m=e.cert.generateSubjectKeyIdentifier();r.subjectKeyIdentifier=m.toHex(),r.value=L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,m.getBytes())}else if(r.name==="authorityKeyIdentifier"&&e.cert){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;if(r.keyIdentifier){var g=r.keyIdentifier===!0?e.cert.generateSubjectKeyIdentifier().getBytes():r.keyIdentifier;u.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!1,g))}if(r.authorityCertIssuer){var y=[L.create(L.Class.CONTEXT_SPECIFIC,4,!0,[av(r.authorityCertIssuer===!0?e.cert.issuer:r.authorityCertIssuer)])];u.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,y))}if(r.serialNumber){var v=Dt.util.hexToBytes(r.serialNumber===!0?e.cert.serialNumber:r.serialNumber);u.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!1,v))}}else if(r.name==="cRLDistributionPoints"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var u=r.value.value,b=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),x=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]),l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));x.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}b.value.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[x])),u.push(b)}if(typeof r.value>"u"){var t=new Error("Extension value not specified.");throw t.extension=r,t}return r}o(c6,"_fillMissingExtensionFields");function ZP(r,e){switch(r){case Or["RSASSA-PSS"]:var t=[];return e.hash.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])),e.mgf.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])])),e.saltLength!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(e.saltLength).getBytes())])),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,t);default:return L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")}}o(ZP,"_signatureParametersToAsn1");function ffe(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]);if(r.attributes.length===0)return e;for(var t=r.attributes,n=0;n<t.length;++n){var i=t[n],s=i.value,a=L.Type.UTF8;"valueTagClass"in i&&(a=i.valueTagClass),a===L.Type.UTF8&&(s=Dt.util.encodeUtf8(s));var u=!1;"valueConstructed"in i&&(u=i.valueConstructed);var c=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(i.type).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,a,u,s)])]);e.value.push(c)}return e}o(ffe,"_CRIAttributesToAsn1");var pfe=new Date("1950-01-01T00:00:00Z"),hfe=new Date("2050-01-01T00:00:00Z");function a6(r){return r>=pfe&&r<hfe?L.create(L.Class.UNIVERSAL,L.Type.UTCTIME,!1,L.dateToUtcTime(r)):L.create(L.Class.UNIVERSAL,L.Type.GENERALIZEDTIME,!1,L.dateToGeneralizedTime(r))}o(a6,"_dateToAsn1");rt.getTBSCertificate=function(r){var e=a6(r.validity.notBefore),t=a6(r.validity.notAfter),n=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes())]),L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,Dt.util.hexToBytes(r.serialNumber)),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.siginfo.algorithmOid).getBytes()),ZP(r.siginfo.algorithmOid,r.siginfo.parameters)]),av(r.issuer),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,t]),av(r.subject),rt.publicKeyToAsn1(r.publicKey)]);return r.issuer.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.issuer.uniqueId)])),r.subject.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.subject.uniqueId)])),r.extensions.length>0&&n.value.push(rt.certificateExtensionsToAsn1(r.extensions)),n};rt.getCertificationRequestInfo=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes()),av(r.subject),rt.publicKeyToAsn1(r.publicKey),ffe(r)]);return e};rt.distinguishedNameToAsn1=function(r){return av(r)};rt.certificateToAsn1=function(r){var e=r.tbsCertificate||rt.getTBSCertificate(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),ZP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.certificateExtensionsToAsn1=function(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,3,!0,[]),t=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(t);for(var n=0;n<r.length;++n)t.value.push(rt.certificateExtensionToAsn1(r[n]));return e};rt.certificateExtensionToAsn1=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.id).getBytes())),r.critical&&e.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF"));var t=r.value;return typeof r.value!="string"&&(t=L.toDer(t).getBytes()),e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,t)),e};rt.certificationRequestToAsn1=function(r){var e=r.certificationRequestInfo||rt.getCertificationRequestInfo(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),ZP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.createCaStore=function(r){var e={certs:{}};e.getIssuer=function(a){var u=t(a.issuer);return u},e.addCertificate=function(a){if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))if(a.subject.hash in e.certs){var u=e.certs[a.subject.hash];Dt.util.isArray(u)||(u=[u]),u.push(a),e.certs[a.subject.hash]=u}else e.certs[a.subject.hash]=a},e.hasCertificate=function(a){typeof a=="string"&&(a=Dt.pki.certificateFromPem(a));var u=t(a.subject);if(!u)return!1;Dt.util.isArray(u)||(u=[u]);for(var c=L.toDer(rt.certificateToAsn1(a)).getBytes(),l=0;l<u.length;++l){var p=L.toDer(rt.certificateToAsn1(u[l])).getBytes();if(c===p)return!0}return!1},e.listAllCertificates=function(){var a=[];for(var u in e.certs)if(e.certs.hasOwnProperty(u)){var c=e.certs[u];if(!Dt.util.isArray(c))a.push(c);else for(var l=0;l<c.length;++l)a.push(c[l])}return a},e.removeCertificate=function(a){var u;if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))return null;var c=t(a.subject);if(!Dt.util.isArray(c))return u=e.certs[a.subject.hash],delete e.certs[a.subject.hash],u;for(var l=L.toDer(rt.certificateToAsn1(a)).getBytes(),p=0;p<c.length;++p){var m=L.toDer(rt.certificateToAsn1(c[p])).getBytes();l===m&&(u=c[p],c.splice(p,1))}return c.length===0&&delete e.certs[a.subject.hash],u};function t(a){return n(a),e.certs[a.hash]||null}o(t,"getBySubject");function n(a){if(!a.hash){var u=Dt.md.sha1.create();a.attributes=rt.RDNAttributesAsArray(av(a),u),a.hash=u.digest().toHex()}}if(o(n,"ensureSubjectHasHash"),r)for(var i=0;i<r.length;++i){var s=r[i];e.addCertificate(s)}return e};rt.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"};rt.verifyCertificateChain=function(r,e,t){typeof t=="function"&&(t={verify:t}),t=t||{},e=e.slice(0);var n=e.slice(0),i=t.validityCheckDate;typeof i>"u"&&(i=new Date);var s=!0,a=null,u=0;do{var c=e.shift(),l=null,p=!1;if(i&&(i<c.validity.notBefore||i>c.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:rt.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:i}),a===null){if(l=e[0]||r.getIssuer(c),l===null&&c.isIssuer(c)&&(p=!0,l=c),l){var m=l;Dt.util.isArray(m)||(m=[m]);for(var g=!1;!g&&m.length>0;){l=m.shift();try{g=l.verify(c)}catch{}}g||(a={message:"Certificate signature is invalid.",error:rt.certificateError.bad_certificate})}a===null&&(!l||p)&&!r.hasCertificate(c)&&(a={message:"Certificate is not trusted.",error:rt.certificateError.unknown_ca})}if(a===null&&l&&!c.isIssuer(l)&&(a={message:"Certificate issuer is invalid.",error:rt.certificateError.bad_certificate}),a===null)for(var y={keyUsage:!0,basicConstraints:!0},v=0;a===null&&v<c.extensions.length;++v){var b=c.extensions[v];b.critical&&!(b.name in y)&&(a={message:"Certificate has an unsupported critical extension.",error:rt.certificateError.unsupported_certificate})}if(a===null&&(!s||e.length===0&&(!l||p))){var x=c.getExtension("basicConstraints"),E=c.getExtension("keyUsage");if(E!==null&&(!E.keyCertSign||x===null)&&(a={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:rt.certificateError.bad_certificate}),a===null&&x!==null&&!x.cA&&(a={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:rt.certificateError.bad_certificate}),a===null&&E!==null&&"pathLenConstraint"in x){var N=u-1;N>x.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:rt.certificateError.bad_certificate})}}var w=a===null?!0:a.error,C=t.verify?t.verify(w,u,n):w;if(C===!0)a=null;else throw w===!0&&(a={message:"The application rejected the certificate.",error:rt.certificateError.bad_certificate}),(C||C===0)&&(typeof C=="object"&&!Dt.util.isArray(C)?(C.message&&(a.message=C.message),C.error&&(a.error=C.error)):typeof C=="string"&&(a.error=C)),a;s=!1,++u}while(e.length>0);return!0}});var tB=Z((jIe,p6)=>{"use strict";var yn=pr();Iu();Zg();Fp();QP();JP();Lo();jx();nv();kr();h2();var Y=yn.asn1,xr=yn.pki,Mx=p6.exports=yn.pkcs12=yn.pkcs12||{},f6={name:"ContentInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},dfe={name:"PFX",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"version"},f6,{name:"PFX.macData",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:Y.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},mfe={name:"SafeBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},gfe={name:"Attribute",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,capture:"values"}]},vfe={name:"CertBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:Y.Class.UNIVERSAL,type:Y.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function Ux(r,e,t,n){for(var i=[],s=0;s<r.length;s++)for(var a=0;a<r[s].safeBags.length;a++){var u=r[s].safeBags[a];if(!(n!==void 0&&u.type!==n)){if(e===null){i.push(u);continue}u.attributes[e]!==void 0&&u.attributes[e].indexOf(t)>=0&&i.push(u)}}return i}o(Ux,"_getBagsByAttribute");Mx.pkcs12FromAsn1=function(r,e,t){typeof e=="string"?(t=e,e=!0):e===void 0&&(e=!0);var n={},i=[];if(!Y.validate(r,dfe,n,i)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:n.version.charCodeAt(0),safeContents:[],getBags:o(function(x){var E={},N;return"localKeyId"in x?N=x.localKeyId:"localKeyIdHex"in x&&(N=yn.util.hexToBytes(x.localKeyIdHex)),N===void 0&&!("friendlyName"in x)&&"bagType"in x&&(E[x.bagType]=Ux(a.safeContents,null,null,x.bagType)),N!==void 0&&(E.localKeyId=Ux(a.safeContents,"localKeyId",N,x.bagType)),"friendlyName"in x&&(E.friendlyName=Ux(a.safeContents,"friendlyName",x.friendlyName,x.bagType)),E},"getBags"),getBagsByFriendlyName:o(function(x,E){return Ux(a.safeContents,"friendlyName",x,E)},"getBagsByFriendlyName"),getBagsByLocalKeyId:o(function(x,E){return Ux(a.safeContents,"localKeyId",x,E)},"getBagsByLocalKeyId")};if(n.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=n.version.charCodeAt(0),s}if(Y.derToOid(n.contentType)!==xr.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=Y.derToOid(n.contentType),s}var u=n.content.value[0];if(u.tagClass!==Y.Class.UNIVERSAL||u.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(u=eB(u),n.mac){var c=null,l=0,p=Y.derToOid(n.macAlgorithm);switch(p){case xr.oids.sha1:c=yn.md.sha1.create(),l=20;break;case xr.oids.sha256:c=yn.md.sha256.create(),l=32;break;case xr.oids.sha384:c=yn.md.sha384.create(),l=48;break;case xr.oids.sha512:c=yn.md.sha512.create(),l=64;break;case xr.oids.md5:c=yn.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+p);var m=new yn.util.ByteBuffer(n.macSalt),g="macIterations"in n?parseInt(yn.util.bytesToHex(n.macIterations),16):1,y=Mx.generateKey(t,m,3,g,l,c),v=yn.hmac.create();v.start(c,y),v.update(u.value);var b=v.getMac();if(b.getBytes()!==n.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}else if(Array.isArray(r.value)&&r.value.length>2)throw new Error("Invalid PKCS#12. macData field present but MAC was not validated.");return yfe(a,u.value,e,t),a};function eB(r){if(r.composed||r.constructed){for(var e=yn.util.createBuffer(),t=0;t<r.value.length;++t)e.putBytes(r.value[t].value);r.composed=r.constructed=!1,r.value=e.getBytes()}return r}o(eB,"_decodePkcs7Data");function yfe(r,e,t,n){if(e=Y.fromDer(e,t),e.tagClass!==Y.Class.UNIVERSAL||e.type!==Y.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var i=0;i<e.value.length;i++){var s=e.value[i],a={},u=[];if(!Y.validate(s,f6,a,u)){var c=new Error("Cannot read ContentInfo.");throw c.errors=u,c}var l={encrypted:!1},p=null,m=a.content.value[0];switch(Y.derToOid(a.contentType)){case xr.oids.data:if(m.tagClass!==Y.Class.UNIVERSAL||m.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");p=eB(m).value;break;case xr.oids.encryptedData:p=Sfe(m,n),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=Y.derToOid(a.contentType),c}l.safeBags=xfe(p,t,n),r.safeContents.push(l)}}o(yfe,"_decodeAuthenticatedSafe");function Sfe(r,e){var t={},n=[];if(!Y.validate(r,yn.pkcs7.asn1.encryptedDataValidator,t,n)){var i=new Error("Cannot read EncryptedContentInfo.");throw i.errors=n,i}var s=Y.derToOid(t.contentType);if(s!==xr.oids.data){var i=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw i.oid=s,i}s=Y.derToOid(t.encAlgorithm);var a=xr.pbe.getCipher(s,t.encParameter,e),u=eB(t.encryptedContentAsn1),c=yn.util.createBuffer(u.value);if(a.update(c),!a.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return a.output.getBytes()}o(Sfe,"_decryptSafeContents");function xfe(r,e,t){if(!e&&r.length===0)return[];if(r=Y.fromDer(r,e),r.tagClass!==Y.Class.UNIVERSAL||r.type!==Y.Type.SEQUENCE||r.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],i=0;i<r.value.length;i++){var s=r.value[i],a={},u=[];if(!Y.validate(s,mfe,a,u)){var c=new Error("Cannot read SafeBag.");throw c.errors=u,c}var l={type:Y.derToOid(a.bagId),attributes:bfe(a.bagAttributes)};n.push(l);var p,m,g=a.bagValue.value[0];switch(l.type){case xr.oids.pkcs8ShroudedKeyBag:if(g=xr.decryptPrivateKeyInfo(g,t),g===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case xr.oids.keyBag:try{l.key=xr.privateKeyFromAsn1(g)}catch{l.key=null,l.asn1=g}continue;case xr.oids.certBag:p=vfe,m=o(function(){if(Y.derToOid(a.certId)!==xr.oids.x509Certificate){var v=new Error("Unsupported certificate type, only X.509 supported.");throw v.oid=Y.derToOid(a.certId),v}var b=Y.fromDer(a.cert,e);try{l.cert=xr.certificateFromAsn1(b,!0)}catch{l.cert=null,l.asn1=b}},"decoder");break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(p!==void 0&&!Y.validate(g,p,a,u)){var c=new Error("Cannot read PKCS#12 "+p.name);throw c.errors=u,c}m()}return n}o(xfe,"_decodeSafeContents");function bfe(r){var e={};if(r!==void 0)for(var t=0;t<r.length;++t){var n={},i=[];if(!Y.validate(r[t],gfe,n,i)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=i,s}var a=Y.derToOid(n.oid);if(xr.oids[a]!==void 0){e[xr.oids[a]]=[];for(var u=0;u<n.values.length;++u)e[xr.oids[a]].push(n.values[u].value)}}return e}o(bfe,"_decodeBagAttributes");Mx.toPkcs12Asn1=function(r,e,t,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||n.encAlgorithm||"aes128","useMac"in n||(n.useMac=!0),"localKeyId"in n||(n.localKeyId=null),"generateLocalKeyId"in n||(n.generateLocalKeyId=!0);var i=n.localKeyId,s;if(i!==null)i=yn.util.hexToBytes(i);else if(n.generateLocalKeyId)if(e){var a=yn.util.isArray(e)?e[0]:e;typeof a=="string"&&(a=xr.certificateFromPem(a));var u=yn.md.sha1.create();u.update(Y.toDer(xr.certificateToAsn1(a)).getBytes()),i=u.digest().getBytes()}else i=yn.random.getBytes(20);var c=[];i!==null&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.localKeyId).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,i)])])),"friendlyName"in n&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.friendlyName).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.BMPSTRING,!1,n.friendlyName)])])),c.length>0&&(s=Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,c));var l=[],p=[];e!==null&&(yn.util.isArray(e)?p=e:p=[e]);for(var m=[],g=0;g<p.length;++g){e=p[g],typeof e=="string"&&(e=xr.certificateFromPem(e));var y=g===0?s:void 0,v=xr.certificateToAsn1(e),b=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.certBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.x509Certificate).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(v).getBytes())])])]),y]);m.push(b)}if(m.length>0){var x=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,m),E=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(x).getBytes())])]);l.push(E)}var N=null;if(r!==null){var w=xr.wrapRsaPrivateKey(xr.privateKeyToAsn1(r));t===null?N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.keyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[w]),s]):N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.pkcs8ShroudedKeyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[xr.encryptPrivateKeyInfo(w,t,n)]),s]);var C=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[N]),A=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(C).getBytes())])]);l.push(A)}var R=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,l),M;if(n.useMac){var u=yn.md.sha1.create(),_=new yn.util.ByteBuffer(yn.random.getBytes(n.saltSize)),H=n.count,r=Mx.generateKey(t,_,3,H,20),z=yn.hmac.create();z.start(u,r),z.update(Y.toDer(R).getBytes());var K=z.getMac();M=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.sha1).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,K.getBytes())]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,_.getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(H).getBytes())])}return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(3).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(R).getBytes())])]),M])};Mx.generateKey=yn.pbe.generatePkcs12Key});var nB=Z((MIe,h6)=>{"use strict";var jp=pr();Iu();Fp();JP();Yd();n2();tB();l2();jx();kr();h2();var rB=jp.asn1,ov=h6.exports=jp.pki=jp.pki||{};ov.pemToDer=function(r){var e=jp.pem.decode(r)[0];if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return jp.util.createBuffer(e.body)};ov.privateKeyFromPem=function(r){var e=jp.pem.decode(r)[0];if(e.type!=="PRIVATE KEY"&&e.type!=="RSA PRIVATE KEY"){var t=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var n=rB.fromDer(e.body);return ov.privateKeyFromAsn1(n)};ov.privateKeyToPem=function(r,e){var t={type:"RSA PRIVATE KEY",body:rB.toDer(ov.privateKeyToAsn1(r)).getBytes()};return jp.pem.encode(t,{maxline:e})};ov.privateKeyInfoToPem=function(r,e){var t={type:"PRIVATE KEY",body:rB.toDer(r).getBytes()};return jp.pem.encode(t,{maxline:e})}});var cB=Z((qIe,b6)=>{"use strict";var ze=pr();Iu();Zg();ZN();Yd();nB();Lo();nv();kr();var v2=o(function(r,e,t,n){var i=ze.util.createBuffer(),s=r.length>>1,a=s+(r.length&1),u=r.substr(0,a),c=r.substr(s,a),l=ze.util.createBuffer(),p=ze.hmac.create();t=e+t;var m=Math.ceil(n/16),g=Math.ceil(n/20);p.start("MD5",u);var y=ze.util.createBuffer();l.putBytes(t);for(var v=0;v<m;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),y.putBuffer(p.digest());p.start("SHA1",c);var b=ze.util.createBuffer();l.clear(),l.putBytes(t);for(var v=0;v<g;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),b.putBuffer(p.digest());return i.putBytes(ze.util.xorBytes(y.getBytes(),b.getBytes(),n)),i},"prf_TLS1"),wfe=o(function(r,e,t){var n=ze.hmac.create();n.start("SHA1",r);var i=ze.util.createBuffer();return i.putInt32(e[0]),i.putInt32(e[1]),i.putByte(t.type),i.putByte(t.version.major),i.putByte(t.version.minor),i.putInt16(t.length),i.putBytes(t.fragment.bytes()),n.update(i.getBytes()),n.digest().getBytes()},"hmac_sha1"),Cfe=o(function(r,e,t){var n=!1;try{var i=r.deflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"deflate"),Efe=o(function(r,e,t){var n=!1;try{var i=r.inflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"inflate"),co=o(function(r,e){var t=0;switch(e){case 1:t=r.getByte();break;case 2:t=r.getInt16();break;case 3:t=r.getInt24();break;case 4:t=r.getInt32();break}return ze.util.createBuffer(r.getBytes(t))},"readVector"),Uo=o(function(r,e,t){r.putInt(t.length(),e<<3),r.putBuffer(t)},"writeVector"),j={};j.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};j.SupportedVersions=[j.Versions.TLS_1_1,j.Versions.TLS_1_0];j.Version=j.SupportedVersions[0];j.MaxFragment=15360;j.ConnectionEnd={server:0,client:1};j.PRFAlgorithm={tls_prf_sha256:0};j.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};j.CipherType={stream:0,block:1,aead:2};j.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};j.CompressionMethod={none:0,deflate:1};j.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};j.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20};j.Alert={};j.Alert.Level={warning:1,fatal:2};j.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100};j.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};j.CipherSuites={};j.getCipherSuite=function(r){var e=null;for(var t in j.CipherSuites){var n=j.CipherSuites[t];if(n.id[0]===r.charCodeAt(0)&&n.id[1]===r.charCodeAt(1)){e=n;break}}return e};j.handleUnexpected=function(r,e){var t=!r.open&&r.entity===j.ConnectionEnd.client;t||r.error(r,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})};j.handleHelloRequest=function(r,e,t){!r.handshaking&&r.handshakes>0&&(j.queue(r,j.createAlert(r,{level:j.Alert.Level.warning,description:j.Alert.Description.no_renegotiation})),j.flush(r)),r.process()};j.parseHelloMessage=function(r,e,t){var n=null,i=r.entity===j.ConnectionEnd.client;if(t<38)r.error(r,{message:i?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});else{var s=e.fragment,a=s.length();if(n={version:{major:s.getByte(),minor:s.getByte()},random:ze.util.createBuffer(s.getBytes(32)),session_id:co(s,1),extensions:[]},i?(n.cipher_suite=s.getBytes(2),n.compression_method=s.getByte()):(n.cipher_suites=co(s,2),n.compression_methods=co(s,1)),a=t-(a-s.length()),a>0){for(var u=co(s,2);u.length()>0;)n.extensions.push({type:[u.getByte(),u.getByte()],data:co(u,2)});if(!i)for(var c=0;c<n.extensions.length;++c){var l=n.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var p=co(l.data,2);p.length()>0;){var m=p.getByte();if(m!==0)break;r.session.extensions.server_name.serverNameList.push(co(p,2).getBytes())}}}if(r.session.version&&(n.version.major!==r.session.version.major||n.version.minor!==r.session.version.minor))return r.error(r,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});if(i)r.session.cipherSuite=j.getCipherSuite(n.cipher_suite);else for(var g=ze.util.createBuffer(n.cipher_suites.bytes());g.length()>0&&(r.session.cipherSuite=j.getCipherSuite(g.getBytes(2)),r.session.cipherSuite===null););if(r.session.cipherSuite===null)return r.error(r,{message:"No cipher suites in common.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure},cipherSuite:ze.util.bytesToHex(n.cipher_suite)});i?r.session.compressionMethod=n.compression_method:r.session.compressionMethod=j.CompressionMethod.none}return n};j.createSecurityParameters=function(r,e){var t=r.entity===j.ConnectionEnd.client,n=e.random.bytes(),i=t?r.session.sp.client_random:n,s=t?n:j.createRandom().getBytes();r.session.sp={entity:r.entity,prf_algorithm:j.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:r.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:s}};j.handleServerHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){if(n.version.minor<=r.version.minor)r.version.minor=n.version.minor;else return r.error(r,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});r.session.version=r.version;var i=n.session_id.bytes();i.length>0&&i===r.session.id?(r.expect=g6,r.session.resuming=!0,r.session.sp.server_random=n.random.bytes()):(r.expect=Nfe,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.session.id=i,r.process()}};j.handleClientHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){var i=n.session_id.bytes(),s=null;if(r.sessionCache&&(s=r.sessionCache.getSession(i),s===null?i="":(s.version.major!==n.version.major||s.version.minor>n.version.minor)&&(s=null,i="")),i.length===0&&(i=ze.random.getBytes(32)),r.session.id=i,r.session.clientHelloVersion=n.version,r.session.sp={},s)r.version=r.session.version=s.version,r.session.sp=s.sp;else{for(var a,u=1;u<j.SupportedVersions.length&&(a=j.SupportedVersions[u],!(a.minor<=n.version.minor));++u);r.version={major:a.major,minor:a.minor},r.session.version=r.version}s!==null?(r.expect=oB,r.session.resuming=!0,r.session.sp.client_random=n.random.bytes()):(r.expect=r.verifyClient!==!1?Pfe:aB,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.open=!0,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHello(r)})),r.session.resuming?(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.pending=j.createConnectionState(r),r.state.current.write=r.state.pending.write,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))):(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)})),r.fail||(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerKeyExchange(r)})),r.verifyClient!==!1&&j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificateRequest(r)})),j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHelloDone(r)})))),j.flush(r),r.process()}};j.handleCertificate=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_list:co(n,3)},s,a,u=[];try{for(;i.certificate_list.length()>0;)s=co(i.certificate_list,3),a=ze.asn1.fromDer(s),s=ze.pki.certificateFromAsn1(a,!0),u.push(s)}catch(l){return r.error(r,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var c=r.entity===j.ConnectionEnd.client;(c||r.verifyClient===!0)&&u.length===0?r.error(r,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}}):u.length===0?r.expect=c?d6:aB:(c?r.session.serverCertificate=u[0]:r.session.clientCertificate=u[0],j.verifyCertificateChain(r,u)&&(r.expect=c?d6:aB)),r.process()};j.handleServerKeyExchange=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});r.expect=Ife,r.process()};j.handleClientKeyExchange=function(r,e,t){if(t<48)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});var n=e.fragment,i={enc_pre_master_secret:co(n,2).getBytes()},s=null;if(r.getPrivateKey)try{s=r.getPrivateKey(r,r.session.serverCertificate),s=ze.pki.privateKeyFromPem(s)}catch(c){r.error(r,{message:"Could not get private key.",cause:c,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}if(s===null)return r.error(r,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}});try{var a=r.session.sp;a.pre_master_secret=s.decrypt(i.enc_pre_master_secret);var u=r.session.clientHelloVersion;if(u.major!==a.pre_master_secret.charCodeAt(0)||u.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=ze.random.getBytes(48)}r.expect=oB,r.session.clientCertificate!==null&&(r.expect=Bfe),r.process()};j.handleCertificateRequest=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_types:co(n,1),certificate_authorities:co(n,2)};r.session.certificateRequest=i,r.expect=Tfe,r.process()};j.handleCertificateVerify=function(r,e,t){if(t<2)return r.error(r,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s={signature:co(n,2).getBytes()},a=ze.util.createBuffer();a.putBuffer(r.session.md5.digest()),a.putBuffer(r.session.sha1.digest()),a=a.getBytes();try{var u=r.session.clientCertificate;if(!u.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");r.session.md5.update(i),r.session.sha1.update(i)}catch{return r.error(r,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure}})}r.expect=oB,r.process()};j.handleServerHelloDone=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.record_overflow}});if(r.serverCertificate===null){var n={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.insufficient_security}},i=0,s=r.verify(r,n.alert.description,i,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!ze.util.isArray(s)?(s.message&&(n.message=s.message),s.alert&&(n.alert.description=s.alert)):typeof s=="number"&&(n.alert.description=s)),r.error(r,n)}r.session.certificateRequest!==null&&(e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)}),j.queue(r,e)),e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createClientKeyExchange(r)}),j.queue(r,e),r.expect=_fe;var a=o(function(u,c){u.session.certificateRequest!==null&&u.session.clientCertificate!==null&&j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createCertificateVerify(u,c)})),j.queue(u,j.createRecord(u,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),u.state.pending=j.createConnectionState(u),u.state.current.write=u.state.pending.write,j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createFinished(u)})),u.expect=g6,j.flush(u),u.process()},"callback");if(r.session.certificateRequest===null||r.session.clientCertificate===null)return a(r,null);j.getClientSignature(r,a)};j.handleChangeCipherSpec=function(r,e){if(e.fragment.getByte()!==1)return r.error(r,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var t=r.entity===j.ConnectionEnd.client;(r.session.resuming&&t||!r.session.resuming&&!t)&&(r.state.pending=j.createConnectionState(r)),r.state.current.read=r.state.pending.read,(!r.session.resuming&&t||r.session.resuming&&!t)&&(r.state.pending=null),r.expect=t?Rfe:Ffe,r.process()};j.handleFinished=function(r,e,t){var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s=e.fragment.getBytes();n=ze.util.createBuffer(),n.putBuffer(r.session.md5.digest()),n.putBuffer(r.session.sha1.digest());var a=r.entity===j.ConnectionEnd.client,u=a?"server finished":"client finished",c=r.session.sp,l=12,p=v2;if(n=p(c.master_secret,u,n.getBytes(),l),n.getBytes()!==s)return r.error(r,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decrypt_error}});r.session.md5.update(i),r.session.sha1.update(i),(r.session.resuming&&a||!r.session.resuming&&!a)&&(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.current.write=r.state.pending.write,r.state.pending=null,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))),r.expect=a?Dfe:Lfe,r.handshaking=!1,++r.handshakes,r.peerCertificate=a?r.session.serverCertificate:r.session.clientCertificate,j.flush(r),r.isConnected=!0,r.connected(r),r.process()};j.handleAlert=function(r,e){var t=e.fragment,n={level:t.getByte(),description:t.getByte()},i;switch(n.description){case j.Alert.Description.close_notify:i="Connection closed.";break;case j.Alert.Description.unexpected_message:i="Unexpected message.";break;case j.Alert.Description.bad_record_mac:i="Bad record MAC.";break;case j.Alert.Description.decryption_failed:i="Decryption failed.";break;case j.Alert.Description.record_overflow:i="Record overflow.";break;case j.Alert.Description.decompression_failure:i="Decompression failed.";break;case j.Alert.Description.handshake_failure:i="Handshake failure.";break;case j.Alert.Description.bad_certificate:i="Bad certificate.";break;case j.Alert.Description.unsupported_certificate:i="Unsupported certificate.";break;case j.Alert.Description.certificate_revoked:i="Certificate revoked.";break;case j.Alert.Description.certificate_expired:i="Certificate expired.";break;case j.Alert.Description.certificate_unknown:i="Certificate unknown.";break;case j.Alert.Description.illegal_parameter:i="Illegal parameter.";break;case j.Alert.Description.unknown_ca:i="Unknown certificate authority.";break;case j.Alert.Description.access_denied:i="Access denied.";break;case j.Alert.Description.decode_error:i="Decode error.";break;case j.Alert.Description.decrypt_error:i="Decrypt error.";break;case j.Alert.Description.export_restriction:i="Export restriction.";break;case j.Alert.Description.protocol_version:i="Unsupported protocol version.";break;case j.Alert.Description.insufficient_security:i="Insufficient security.";break;case j.Alert.Description.internal_error:i="Internal error.";break;case j.Alert.Description.user_canceled:i="User canceled.";break;case j.Alert.Description.no_renegotiation:i="Renegotiation not supported.";break;default:i="Unknown error.";break}if(n.description===j.Alert.Description.close_notify)return r.close();r.error(r,{message:i,send:!1,origin:r.entity===j.ConnectionEnd.client?"server":"client",alert:n}),r.process()};j.handleHandshake=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt24();if(i>t.length())return r.fragmented=e,e.fragment=ze.util.createBuffer(),t.read-=4,r.process();r.fragmented=null,t.read-=4;var s=t.bytes(i+4);t.read+=4,n in g2[r.entity][r.expect]?(r.entity===j.ConnectionEnd.server&&!r.open&&!r.fail&&(r.handshaking=!0,r.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:ze.md.md5.create(),sha1:ze.md.sha1.create()}),n!==j.HandshakeType.hello_request&&n!==j.HandshakeType.certificate_verify&&n!==j.HandshakeType.finished&&(r.session.md5.update(s),r.session.sha1.update(s)),g2[r.entity][r.expect][n](r,e,i)):j.handleUnexpected(r,e)};j.handleApplicationData=function(r,e){r.data.putBuffer(e.fragment),r.dataReady(r),r.process()};j.handleHeartbeat=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt16(),s=t.getBytes(i);if(n===j.HeartbeatMessageType.heartbeat_request){if(r.handshaking||i>s.length)return r.process();j.queue(r,j.createRecord(r,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_response,s)})),j.flush(r)}else if(n===j.HeartbeatMessageType.heartbeat_response){if(s!==r.expectedHeartbeatPayload)return r.process();r.heartbeatReceived&&r.heartbeatReceived(r,ze.util.createBuffer(s))}r.process()};var Afe=0,Nfe=1,d6=2,Ife=3,Tfe=4,g6=5,Rfe=6,Dfe=7,_fe=8,Ofe=0,Pfe=1,aB=2,Bfe=3,oB=4,Ffe=5,Lfe=6,V=j.handleUnexpected,v6=j.handleChangeCipherSpec,vs=j.handleAlert,ha=j.handleHandshake,y6=j.handleApplicationData,ys=j.handleHeartbeat,uB=[];uB[j.ConnectionEnd.client]=[[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[v6,vs,V,V,ys],[V,vs,ha,V,ys],[V,vs,ha,y6,ys],[V,vs,ha,V,ys]];uB[j.ConnectionEnd.server]=[[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[v6,vs,V,V,ys],[V,vs,ha,V,ys],[V,vs,ha,y6,ys],[V,vs,ha,V,ys]];var Up=j.handleHelloRequest,kfe=j.handleServerHello,S6=j.handleCertificate,m6=j.handleServerKeyExchange,iB=j.handleCertificateRequest,d2=j.handleServerHelloDone,x6=j.handleFinished,g2=[];g2[j.ConnectionEnd.client]=[[V,V,kfe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,S6,m6,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,m6,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,x6],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];var Vfe=j.handleClientHello,jfe=j.handleClientKeyExchange,Ufe=j.handleCertificateVerify;g2[j.ConnectionEnd.server]=[[V,Vfe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,S6,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,jfe,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,Ufe,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,x6],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];j.generateKeys=function(r,e){var t=v2,n=e.client_random+e.server_random;r.session.resuming||(e.master_secret=t(e.pre_master_secret,"master secret",n,48).bytes(),e.pre_master_secret=null),n=e.server_random+e.client_random;var i=2*e.mac_key_length+2*e.enc_key_length,s=r.version.major===j.Versions.TLS_1_0.major&&r.version.minor===j.Versions.TLS_1_0.minor;s&&(i+=2*e.fixed_iv_length);var a=t(e.master_secret,"key expansion",n,i),u={client_write_MAC_key:a.getBytes(e.mac_key_length),server_write_MAC_key:a.getBytes(e.mac_key_length),client_write_key:a.getBytes(e.enc_key_length),server_write_key:a.getBytes(e.enc_key_length)};return s&&(u.client_write_IV=a.getBytes(e.fixed_iv_length),u.server_write_IV=a.getBytes(e.fixed_iv_length)),u};j.createConnectionState=function(r){var e=r.entity===j.ConnectionEnd.client,t=o(function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:o(function(a){return!0},"cipherFunction"),compressionState:null,compressFunction:o(function(a){return!0},"compressFunction"),updateSequenceNumber:o(function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]},"updateSequenceNumber")};return s},"createMode"),n={read:t(),write:t()};if(n.read.update=function(s,a){return n.read.cipherFunction(a,n.read)?n.read.compressFunction(s,a,n.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_record_mac}}),!s.fail},n.write.update=function(s,a){return n.write.compressFunction(s,a,n.write)?n.write.cipherFunction(a,n.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}),!s.fail},r.session){var i=r.session.sp;switch(r.session.cipherSuite.initSecurityParameters(i),i.keys=j.generateKeys(r,i),n.read.macKey=e?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=e?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,r.session.cipherSuite.initConnectionState(n,r,i),i.compression_algorithm){case j.CompressionMethod.none:break;case j.CompressionMethod.deflate:n.read.compressFunction=Efe,n.write.compressFunction=Cfe;break;default:throw new Error("Unsupported compression algorithm.")}}return n};j.createRandom=function(){var r=new Date,e=+r+r.getTimezoneOffset()*6e4,t=ze.util.createBuffer();return t.putInt32(e),t.putBytes(ze.random.getBytes(28)),t};j.createRecord=function(r,e){if(!e.data)return null;var t={type:e.type,version:{major:r.version.major,minor:r.version.minor},length:e.data.length(),fragment:e.data};return t};j.createAlert=function(r,e){var t=ze.util.createBuffer();return t.putByte(e.level),t.putByte(e.description),j.createRecord(r,{type:j.ContentType.alert,data:t})};j.createClientHello=function(r){r.session.clientHelloVersion={major:r.version.major,minor:r.version.minor};for(var e=ze.util.createBuffer(),t=0;t<r.cipherSuites.length;++t){var n=r.cipherSuites[t];e.putByte(n.id[0]),e.putByte(n.id[1])}var i=e.length(),s=ze.util.createBuffer();s.putByte(j.CompressionMethod.none);var a=s.length(),u=ze.util.createBuffer();if(r.virtualHost){var c=ze.util.createBuffer();c.putByte(0),c.putByte(0);var l=ze.util.createBuffer();l.putByte(0),Uo(l,2,ze.util.createBuffer(r.virtualHost));var p=ze.util.createBuffer();Uo(p,2,l),Uo(c,2,p),u.putBuffer(c)}var m=u.length();m>0&&(m+=2);var g=r.session.id,y=g.length+1+2+4+28+2+i+1+a+m,v=ze.util.createBuffer();return v.putByte(j.HandshakeType.client_hello),v.putInt24(y),v.putByte(r.version.major),v.putByte(r.version.minor),v.putBytes(r.session.sp.client_random),Uo(v,1,ze.util.createBuffer(g)),Uo(v,2,e),Uo(v,1,s),m>0&&Uo(v,2,u),v};j.createServerHello=function(r){var e=r.session.id,t=e.length+1+2+4+28+2+1,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.server_hello),n.putInt24(t),n.putByte(r.version.major),n.putByte(r.version.minor),n.putBytes(r.session.sp.server_random),Uo(n,1,ze.util.createBuffer(e)),n.putByte(r.session.cipherSuite.id[0]),n.putByte(r.session.cipherSuite.id[1]),n.putByte(r.session.compressionMethod),n};j.createCertificate=function(r){var e=r.entity===j.ConnectionEnd.client,t=null;if(r.getCertificate){var n;e?n=r.session.certificateRequest:n=r.session.extensions.server_name.serverNameList,t=r.getCertificate(r,n)}var i=ze.util.createBuffer();if(t!==null)try{ze.util.isArray(t)||(t=[t]);for(var s=null,a=0;a<t.length;++a){var u=ze.pem.decode(t[a])[0];if(u.type!=="CERTIFICATE"&&u.type!=="X509 CERTIFICATE"&&u.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=u.type,c}if(u.procType&&u.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=ze.util.createBuffer(u.body);s===null&&(s=ze.asn1.fromDer(l.bytes(),!1));var p=ze.util.createBuffer();Uo(p,3,l),i.putBuffer(p)}t=ze.pki.certificateFromAsn1(s),e?r.session.clientCertificate=t:r.session.serverCertificate=t}catch(y){return r.error(r,{message:"Could not send certificate list.",cause:y,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var m=3+i.length(),g=ze.util.createBuffer();return g.putByte(j.HandshakeType.certificate),g.putInt24(m),Uo(g,3,i),g};j.createClientKeyExchange=function(r){var e=ze.util.createBuffer();e.putByte(r.session.clientHelloVersion.major),e.putByte(r.session.clientHelloVersion.minor),e.putBytes(ze.random.getBytes(46));var t=r.session.sp;t.pre_master_secret=e.getBytes();var n=r.session.serverCertificate.publicKey;e=n.encrypt(t.pre_master_secret);var i=e.length+2,s=ze.util.createBuffer();return s.putByte(j.HandshakeType.client_key_exchange),s.putInt24(i),s.putInt16(e.length),s.putBytes(e),s};j.createServerKeyExchange=function(r){var e=0,t=ze.util.createBuffer();return e>0&&(t.putByte(j.HandshakeType.server_key_exchange),t.putInt24(e)),t};j.getClientSignature=function(r,e){var t=ze.util.createBuffer();t.putBuffer(r.session.md5.digest()),t.putBuffer(r.session.sha1.digest()),t=t.getBytes(),r.getSignature=r.getSignature||function(n,i,s){var a=null;if(n.getPrivateKey)try{a=n.getPrivateKey(n,n.session.clientCertificate),a=ze.pki.privateKeyFromPem(a)}catch(u){n.error(n,{message:"Could not get private key.",cause:u,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}a===null?n.error(n,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):i=a.sign(i,null),s(n,i)},r.getSignature(r,t,e)};j.createCertificateVerify=function(r,e){var t=e.length+2,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.certificate_verify),n.putInt24(t),n.putInt16(e.length),n.putBytes(e),n};j.createCertificateRequest=function(r){var e=ze.util.createBuffer();e.putByte(1);var t=ze.util.createBuffer();for(var n in r.caStore.certs){var i=r.caStore.certs[n],s=ze.pki.distinguishedNameToAsn1(i.subject),a=ze.asn1.toDer(s);t.putInt16(a.length()),t.putBuffer(a)}var u=1+e.length()+2+t.length(),c=ze.util.createBuffer();return c.putByte(j.HandshakeType.certificate_request),c.putInt24(u),Uo(c,1,e),Uo(c,2,t),c};j.createServerHelloDone=function(r){var e=ze.util.createBuffer();return e.putByte(j.HandshakeType.server_hello_done),e.putInt24(0),e};j.createChangeCipherSpec=function(){var r=ze.util.createBuffer();return r.putByte(1),r};j.createFinished=function(r){var e=ze.util.createBuffer();e.putBuffer(r.session.md5.digest()),e.putBuffer(r.session.sha1.digest());var t=r.entity===j.ConnectionEnd.client,n=r.session.sp,i=12,s=v2,a=t?"client finished":"server finished";e=s(n.master_secret,a,e.getBytes(),i);var u=ze.util.createBuffer();return u.putByte(j.HandshakeType.finished),u.putInt24(e.length()),u.putBuffer(e),u};j.createHeartbeat=function(r,e,t){typeof t>"u"&&(t=e.length);var n=ze.util.createBuffer();n.putByte(r),n.putInt16(t),n.putBytes(e);var i=n.length(),s=Math.max(16,i-t-3);return n.putBytes(ze.random.getBytes(s)),n};j.queue=function(r,e){if(e&&!(e.fragment.length()===0&&(e.type===j.ContentType.handshake||e.type===j.ContentType.alert||e.type===j.ContentType.change_cipher_spec))){if(e.type===j.ContentType.handshake){var t=e.fragment.bytes();r.session.md5.update(t),r.session.sha1.update(t),t=null}var n;if(e.fragment.length()<=j.MaxFragment)n=[e];else{n=[];for(var i=e.fragment.bytes();i.length>j.MaxFragment;)n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i.slice(0,j.MaxFragment))})),i=i.slice(j.MaxFragment);i.length>0&&n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i)}))}for(var s=0;s<n.length&&!r.fail;++s){var a=n[s],u=r.state.current.write;u.update(r,a)&&r.records.push(a)}}};j.flush=function(r){for(var e=0;e<r.records.length;++e){var t=r.records[e];r.tlsData.putByte(t.type),r.tlsData.putByte(t.version.major),r.tlsData.putByte(t.version.minor),r.tlsData.putInt16(t.fragment.length()),r.tlsData.putBuffer(r.records[e].fragment)}return r.records=[],r.tlsDataReady(r)};var sB=o(function(r){switch(r){case!0:return!0;case ze.pki.certificateError.bad_certificate:return j.Alert.Description.bad_certificate;case ze.pki.certificateError.unsupported_certificate:return j.Alert.Description.unsupported_certificate;case ze.pki.certificateError.certificate_revoked:return j.Alert.Description.certificate_revoked;case ze.pki.certificateError.certificate_expired:return j.Alert.Description.certificate_expired;case ze.pki.certificateError.certificate_unknown:return j.Alert.Description.certificate_unknown;case ze.pki.certificateError.unknown_ca:return j.Alert.Description.unknown_ca;default:return j.Alert.Description.bad_certificate}},"_certErrorToAlertDesc"),Mfe=o(function(r){switch(r){case!0:return!0;case j.Alert.Description.bad_certificate:return ze.pki.certificateError.bad_certificate;case j.Alert.Description.unsupported_certificate:return ze.pki.certificateError.unsupported_certificate;case j.Alert.Description.certificate_revoked:return ze.pki.certificateError.certificate_revoked;case j.Alert.Description.certificate_expired:return ze.pki.certificateError.certificate_expired;case j.Alert.Description.certificate_unknown:return ze.pki.certificateError.certificate_unknown;case j.Alert.Description.unknown_ca:return ze.pki.certificateError.unknown_ca;default:return ze.pki.certificateError.bad_certificate}},"_alertDescToCertError");j.verifyCertificateChain=function(r,e){try{var t={};for(var n in r.verifyOptions)t[n]=r.verifyOptions[n];t.verify=function(s,a,u){var c=sB(s),l=r.verify(r,s,a,u);if(l!==!0){if(typeof l=="object"&&!ze.util.isArray(l)){var p=new Error("The application rejected the certificate.");throw p.send=!0,p.alert={level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate},l.message&&(p.message=l.message),l.alert&&(p.alert.description=l.alert),p}l!==s&&(l=Mfe(l))}return l},ze.pki.verifyCertificateChain(r.caStore,e,t)}catch(s){var i=s;(typeof i!="object"||ze.util.isArray(i))&&(i={send:!0,alert:{level:j.Alert.Level.fatal,description:sB(s)}}),"send"in i||(i.send=!0),"alert"in i||(i.alert={level:j.Alert.Level.fatal,description:sB(i.error)}),r.error(r,i)}return!r.fail};j.createSessionCache=function(r,e){var t=null;if(r&&r.getSession&&r.setSession&&r.order)t=r;else{t={},t.cache=r||{},t.capacity=Math.max(e||100,1),t.order=[];for(var n in r)t.order.length<=e?t.order.push(n):delete r[n];t.getSession=function(i){var s=null,a=null;if(i?a=ze.util.bytesToHex(i):t.order.length>0&&(a=t.order[0]),a!==null&&a in t.cache){s=t.cache[a],delete t.cache[a];for(var u in t.order)if(t.order[u]===a){t.order.splice(u,1);break}}return s},t.setSession=function(i,s){if(t.order.length===t.capacity){var a=t.order.shift();delete t.cache[a]}var a=ze.util.bytesToHex(i);t.order.push(a),t.cache[a]=s}}return t};j.createConnection=function(r){var e=null;r.caStore?ze.util.isArray(r.caStore)?e=ze.pki.createCaStore(r.caStore):e=r.caStore:e=ze.pki.createCaStore();var t=r.cipherSuites||null;if(t===null){t=[];for(var n in j.CipherSuites)t.push(j.CipherSuites[n])}var i=r.server?j.ConnectionEnd.server:j.ConnectionEnd.client,s=r.sessionCache?j.createSessionCache(r.sessionCache):null,a={version:{major:j.Version.major,minor:j.Version.minor},entity:i,sessionId:r.sessionId,caStore:e,sessionCache:s,cipherSuites:t,connected:r.connected,virtualHost:r.virtualHost||null,verifyClient:r.verifyClient||!1,verify:r.verify||function(p,m,g,y){return m},verifyOptions:r.verifyOptions||{},getCertificate:r.getCertificate||null,getPrivateKey:r.getPrivateKey||null,getSignature:r.getSignature||null,input:ze.util.createBuffer(),tlsData:ze.util.createBuffer(),data:ze.util.createBuffer(),tlsDataReady:r.tlsDataReady,dataReady:r.dataReady,heartbeatReceived:r.heartbeatReceived,closed:r.closed,error:o(function(p,m){m.origin=m.origin||(p.entity===j.ConnectionEnd.client?"client":"server"),m.send&&(j.queue(p,j.createAlert(p,m.alert)),j.flush(p));var g=m.fatal!==!1;g&&(p.fail=!0),r.error(p,m),g&&p.close(!1)},"error"),deflate:r.deflate||null,inflate:r.inflate||null};a.reset=function(p){a.version={major:j.Version.major,minor:j.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===j.ConnectionEnd.client?Afe:Ofe,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(p||typeof p>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=j.createConnectionState(a)},a.reset();var u=o(function(p,m){var g=m.type-j.ContentType.change_cipher_spec,y=uB[p.entity][p.expect];g in y?y[g](p,m):j.handleUnexpected(p,m)},"_update"),c=o(function(p){var m=0,g=p.input,y=g.length();if(y<5)m=5-y;else{p.record={type:g.getByte(),version:{major:g.getByte(),minor:g.getByte()},length:g.getInt16(),fragment:ze.util.createBuffer(),ready:!1};var v=p.record.version.major===p.version.major;v&&p.session&&p.session.version&&(v=p.record.version.minor===p.version.minor),v||p.error(p,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}})}return m},"_readRecordHeader"),l=o(function(p){var m=0,g=p.input,y=g.length();if(y<p.record.length)m=p.record.length-y;else{p.record.fragment.putBytes(g.getBytes(p.record.length)),g.compact();var v=p.state.current.read;v.update(p,p.record)&&(p.fragmented!==null&&(p.fragmented.type===p.record.type?(p.fragmented.fragment.putBuffer(p.record.fragment),p.record=p.fragmented):p.error(p,{message:"Invalid fragmented record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})),p.record.ready=!0)}return m},"_readRecord");return a.handshake=function(p){if(a.entity!==j.ConnectionEnd.client)a.error(a,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(a.handshaking)a.error(a,{message:"Handshake already in progress.",fatal:!1});else{a.fail&&!a.open&&a.handshakes===0&&(a.fail=!1),a.handshaking=!0,p=p||"";var m=null;p.length>0&&(a.sessionCache&&(m=a.sessionCache.getSession(p)),m===null&&(p="")),p.length===0&&a.sessionCache&&(m=a.sessionCache.getSession(),m!==null&&(p=m.id)),a.session={id:p,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:ze.md.md5.create(),sha1:ze.md.sha1.create()},m&&(a.version=m.version,a.session.sp=m.sp),a.session.sp.client_random=j.createRandom().getBytes(),a.open=!0,j.queue(a,j.createRecord(a,{type:j.ContentType.handshake,data:j.createClientHello(a)})),j.flush(a)}},a.process=function(p){var m=0;return p&&a.input.putBytes(p),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(m=c(a)),!a.fail&&a.record!==null&&!a.record.ready&&(m=l(a)),!a.fail&&a.record!==null&&a.record.ready&&u(a,a.record)),m},a.prepare=function(p){return j.queue(a,j.createRecord(a,{type:j.ContentType.application_data,data:ze.util.createBuffer(p)})),j.flush(a)},a.prepareHeartbeatRequest=function(p,m){return p instanceof ze.util.ByteBuffer&&(p=p.bytes()),typeof m>"u"&&(m=p.length),a.expectedHeartbeatPayload=p,j.queue(a,j.createRecord(a,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_request,p,m)})),j.flush(a)},a.close=function(p){if(!a.fail&&a.sessionCache&&a.session){var m={id:a.session.id,version:a.session.version,sp:a.session.sp};m.sp.keys=null,a.sessionCache.setSession(m.id,m)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,j.queue(a,j.createAlert(a,{level:j.Alert.Level.warning,description:j.Alert.Description.close_notify})),j.flush(a)),a.closed(a)),a.reset(p)},a};b6.exports=ze.tls=ze.tls||{};for(m2 in j)typeof j[m2]!="function"&&(ze.tls[m2]=j[m2]);var m2;ze.tls.prf_tls1=v2;ze.tls.hmac_sha1=wfe;ze.tls.createSessionCache=j.createSessionCache;ze.tls.createConnection=j.createConnection});var E6=Z((zIe,C6)=>{"use strict";var Mp=pr();Bp();cB();var Mo=C6.exports=Mp.tls;Mo.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Mo.BulkCipherAlgorithm.aes,r.cipher_type=Mo.CipherType.block,r.enc_key_length=16,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Mo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:w6};Mo.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Mo.BulkCipherAlgorithm.aes,r.cipher_type=Mo.CipherType.block,r.enc_key_length=32,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Mo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:w6};function w6(r,e,t){var n=e.entity===Mp.tls.ConnectionEnd.client;r.read.cipherState={init:!1,cipher:Mp.cipher.createDecipher("AES-CBC",n?t.keys.server_write_key:t.keys.client_write_key),iv:n?t.keys.server_write_IV:t.keys.client_write_IV},r.write.cipherState={init:!1,cipher:Mp.cipher.createCipher("AES-CBC",n?t.keys.client_write_key:t.keys.server_write_key),iv:n?t.keys.client_write_IV:t.keys.server_write_IV},r.read.cipherFunction=Kfe,r.write.cipherFunction=qfe,r.read.macLength=r.write.macLength=t.mac_length,r.read.macFunction=r.write.macFunction=Mo.hmac_sha1}o(w6,"initConnectionState");function qfe(r,e){var t=!1,n=e.macFunction(e.macKey,e.sequenceNumber,r);r.fragment.putBytes(n),e.updateSequenceNumber();var i;r.version.minor===Mo.Versions.TLS_1_0.minor?i=e.cipherState.init?null:e.cipherState.iv:i=Mp.random.getBytesSync(16),e.cipherState.init=!0;var s=e.cipherState.cipher;return s.start({iv:i}),r.version.minor>=Mo.Versions.TLS_1_1.minor&&s.output.putBytes(i),s.update(r.fragment),s.finish(Hfe)&&(r.fragment=s.output,r.length=r.fragment.length(),t=!0),t}o(qfe,"encrypt_aes_cbc_sha1");function Hfe(r,e,t){if(!t){var n=r-e.length()%r;e.fillWithByte(n-1,n)}return!0}o(Hfe,"encrypt_aes_cbc_sha1_padding");function zfe(r,e,t){var n=!0;if(t){for(var i=e.length(),s=e.last(),a=i-1-s;a<i-1;++a)n=n&&e.at(a)==s;n&&e.truncate(s+1)}return n}o(zfe,"decrypt_aes_cbc_sha1_padding");function Kfe(r,e){var t=!1,n;r.version.minor===Mo.Versions.TLS_1_0.minor?n=e.cipherState.init?null:e.cipherState.iv:n=r.fragment.getBytes(16),e.cipherState.init=!0;var i=e.cipherState.cipher;i.start({iv:n}),i.update(r.fragment),t=i.finish(zfe);var s=e.macLength,a=Mp.random.getBytesSync(s),u=i.output.length();u>=s?(r.fragment=i.output.getBytes(u-s),a=i.output.getBytes(s)):r.fragment=i.output.getBytes(),r.fragment=Mp.util.createBuffer(r.fragment),r.length=r.fragment.length();var c=e.macFunction(e.macKey,e.sequenceNumber,r);return e.updateSequenceNumber(),t=$fe(e.macKey,a,c)&&t,t}o(Kfe,"decrypt_aes_cbc_sha1");function $fe(r,e,t){var n=Mp.hmac.create();return n.start("SHA1",r),n.update(e),e=n.digest().getBytes(),n.start(null,null),n.update(t),t=n.digest().getBytes(),e===t}o($fe,"compareMacs")});var pB=Z(($Ie,T6)=>{"use strict";var Rn=pr();Ac();kr();var qx=T6.exports=Rn.sha512=Rn.sha512||{};Rn.md.sha512=Rn.md.algorithms.sha512=qx;var N6=Rn.sha384=Rn.sha512.sha384=Rn.sha512.sha384||{};N6.create=function(){return qx.create("SHA-384")};Rn.md.sha384=Rn.md.algorithms.sha384=N6;Rn.sha512.sha256=Rn.sha512.sha256||{create:o(function(){return qx.create("SHA-512/256")},"create")};Rn.md["sha512/256"]=Rn.md.algorithms["sha512/256"]=Rn.sha512.sha256;Rn.sha512.sha224=Rn.sha512.sha224||{create:o(function(){return qx.create("SHA-512/224")},"create")};Rn.md["sha512/224"]=Rn.md.algorithms["sha512/224"]=Rn.sha512.sha224;qx.create=function(r){if(I6||Gfe(),typeof r>"u"&&(r="SHA-512"),!(r in im))throw new Error("Invalid SHA-512 algorithm: "+r);for(var e=im[r],t=null,n=Rn.util.createBuffer(),i=new Array(80),s=0;s<80;++s)i[s]=new Array(2);var a=64;switch(r){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var u={algorithm:r.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return u.start=function(){u.messageLength=0,u.fullMessageLength=u.messageLength128=[];for(var c=u.messageLengthSize/4,l=0;l<c;++l)u.fullMessageLength.push(0);n=Rn.util.createBuffer(),t=new Array(e.length);for(var l=0;l<e.length;++l)t[l]=e[l].slice(0);return u},u.start(),u.update=function(c,l){l==="utf8"&&(c=Rn.util.encodeUtf8(c));var p=c.length;u.messageLength+=p,p=[p/4294967296>>>0,p>>>0];for(var m=u.fullMessageLength.length-1;m>=0;--m)u.fullMessageLength[m]+=p[1],p[1]=p[0]+(u.fullMessageLength[m]/4294967296>>>0),u.fullMessageLength[m]=u.fullMessageLength[m]>>>0,p[0]=p[1]/4294967296>>>0;return n.putBytes(c),A6(t,i,n),(n.read>2048||n.length()===0)&&n.compact(),u},u.digest=function(){var c=Rn.util.createBuffer();c.putBytes(n.bytes());var l=u.fullMessageLength[u.fullMessageLength.length-1]+u.messageLengthSize,p=l&u.blockLength-1;c.putBytes(lB.substr(0,u.blockLength-p));for(var m,g,y=u.fullMessageLength[0]*8,v=0;v<u.fullMessageLength.length-1;++v)m=u.fullMessageLength[v+1]*8,g=m/4294967296>>>0,y+=g,c.putInt32(y>>>0),y=m>>>0;c.putInt32(y);for(var b=new Array(t.length),v=0;v<t.length;++v)b[v]=t[v].slice(0);A6(b,i,c);var x=Rn.util.createBuffer(),E;r==="SHA-512"?E=b.length:r==="SHA-384"?E=b.length-2:E=b.length-4;for(var v=0;v<E;++v)x.putInt32(b[v][0]),(v!==E-1||r!=="SHA-512/224")&&x.putInt32(b[v][1]);return x},u};var lB=null,I6=!1,fB=null,im=null;function Gfe(){lB="\x80",lB+=Rn.util.fillString("\0",128),fB=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],im={},im["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],im["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],im["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],im["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],I6=!0}o(Gfe,"_init");function A6(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,y,v,b,x,E,N,w,C,A,R,M,_,H,z,K,X,ye,fe,ce,ee,pe,Ce,Ye,xe,ie,De=t.length();De>=128;){for(ce=0;ce<16;++ce)e[ce][0]=t.getInt32()>>>0,e[ce][1]=t.getInt32()>>>0;for(;ce<80;++ce)Ce=e[ce-2],ee=Ce[0],pe=Ce[1],n=((ee>>>19|pe<<13)^(pe>>>29|ee<<3)^ee>>>6)>>>0,i=((ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6))>>>0,xe=e[ce-15],ee=xe[0],pe=xe[1],s=((ee>>>1|pe<<31)^(ee>>>8|pe<<24)^ee>>>7)>>>0,a=((ee<<31|pe>>>1)^(ee<<24|pe>>>8)^(ee<<25|pe>>>7))>>>0,Ye=e[ce-7],ie=e[ce-16],pe=i+Ye[1]+a+ie[1],e[ce][0]=n+Ye[0]+s+ie[0]+(pe/4294967296>>>0)>>>0,e[ce][1]=pe>>>0;for(b=r[0][0],x=r[0][1],E=r[1][0],N=r[1][1],w=r[2][0],C=r[2][1],A=r[3][0],R=r[3][1],M=r[4][0],_=r[4][1],H=r[5][0],z=r[5][1],K=r[6][0],X=r[6][1],ye=r[7][0],fe=r[7][1],ce=0;ce<80;++ce)l=((M>>>14|_<<18)^(M>>>18|_<<14)^(_>>>9|M<<23))>>>0,p=((M<<18|_>>>14)^(M<<14|_>>>18)^(_<<23|M>>>9))>>>0,m=(K^M&(H^K))>>>0,g=(X^_&(z^X))>>>0,u=((b>>>28|x<<4)^(x>>>2|b<<30)^(x>>>7|b<<25))>>>0,c=((b<<4|x>>>28)^(x<<30|b>>>2)^(x<<25|b>>>7))>>>0,y=(b&E|w&(b^E))>>>0,v=(x&N|C&(x^N))>>>0,pe=fe+p+g+fB[ce][1]+e[ce][1],n=ye+l+m+fB[ce][0]+e[ce][0]+(pe/4294967296>>>0)>>>0,i=pe>>>0,pe=c+v,s=u+y+(pe/4294967296>>>0)>>>0,a=pe>>>0,ye=K,fe=X,K=H,X=z,H=M,z=_,pe=R+i,M=A+n+(pe/4294967296>>>0)>>>0,_=pe>>>0,A=w,R=C,w=E,C=N,E=b,N=x,pe=i+a,b=n+s+(pe/4294967296>>>0)>>>0,x=pe>>>0;pe=r[0][1]+x,r[0][0]=r[0][0]+b+(pe/4294967296>>>0)>>>0,r[0][1]=pe>>>0,pe=r[1][1]+N,r[1][0]=r[1][0]+E+(pe/4294967296>>>0)>>>0,r[1][1]=pe>>>0,pe=r[2][1]+C,r[2][0]=r[2][0]+w+(pe/4294967296>>>0)>>>0,r[2][1]=pe>>>0,pe=r[3][1]+R,r[3][0]=r[3][0]+A+(pe/4294967296>>>0)>>>0,r[3][1]=pe>>>0,pe=r[4][1]+_,r[4][0]=r[4][0]+M+(pe/4294967296>>>0)>>>0,r[4][1]=pe>>>0,pe=r[5][1]+z,r[5][0]=r[5][0]+H+(pe/4294967296>>>0)>>>0,r[5][1]=pe>>>0,pe=r[6][1]+X,r[6][0]=r[6][0]+K+(pe/4294967296>>>0)>>>0,r[6][1]=pe>>>0,pe=r[7][1]+fe,r[7][0]=r[7][0]+ye+(pe/4294967296>>>0)>>>0,r[7][1]=pe>>>0,De-=128}}o(A6,"_update")});var R6=Z(hB=>{"use strict";var Xfe=pr();Iu();var Wi=Xfe.asn1;hB.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};hB.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var q6=Z((WIe,M6)=>{"use strict";var Ss=pr();Vx();Lo();pB();kr();var F6=R6(),Wfe=F6.publicKeyValidator,Jfe=F6.privateKeyValidator;typeof D6>"u"&&(D6=Ss.jsbn.BigInteger);var D6,gB=Ss.util.ByteBuffer,Da=typeof Buffer>"u"?Uint8Array:Buffer;Ss.pki=Ss.pki||{};M6.exports=Ss.pki.ed25519=Ss.ed25519=Ss.ed25519||{};var br=Ss.ed25519;br.constants={};br.constants.PUBLIC_KEY_BYTE_LENGTH=32;br.constants.PRIVATE_KEY_BYTE_LENGTH=64;br.constants.SEED_BYTE_LENGTH=32;br.constants.SIGN_BYTE_LENGTH=64;br.constants.HASH_BYTE_LENGTH=64;br.generateKeyPair=function(r){r=r||{};var e=r.seed;if(e===void 0)e=Ss.random.getBytesSync(br.constants.SEED_BYTE_LENGTH);else if(typeof e=="string"){if(e.length!==br.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+br.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(e instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');e=Gl({message:e,encoding:"binary"});for(var t=new Da(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=new Da(br.constants.PRIVATE_KEY_BYTE_LENGTH),i=0;i<32;++i)n[i]=e[i];return epe(t,n),{publicKey:t,privateKey:n}};br.privateKeyFromAsn1=function(r){var e={},t=[],n=Ss.asn1.validate(r,Jfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=Ss.asn1.derToOid(e.privateKeyOid),a=Ss.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.privateKey,c=Gl({message:Ss.asn1.fromDer(u).value,encoding:"binary"});return{privateKeyBytes:c}};br.publicKeyFromAsn1=function(r){var e={},t=[],n=Ss.asn1.validate(r,Wfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=Ss.asn1.derToOid(e.publicKeyOid),a=Ss.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.ed25519PublicKey;if(u.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Gl({message:u,encoding:"binary"})};br.publicKeyFromPrivateKey=function(r){r=r||{};var e=Gl({message:r.privateKey,encoding:"binary"});if(e.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.PRIVATE_KEY_BYTE_LENGTH);for(var t=new Da(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<t.length;++n)t[n]=e[32+n];return t};br.sign=function(r){r=r||{};var e=Gl(r),t=Gl({message:r.privateKey,encoding:"binary"});if(t.length===br.constants.SEED_BYTE_LENGTH){var n=br.generateKeyPair({seed:t});t=n.privateKey}else if(t.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.SEED_BYTE_LENGTH+" or "+br.constants.PRIVATE_KEY_BYTE_LENGTH);var i=new Da(br.constants.SIGN_BYTE_LENGTH+e.length);tpe(i,e,e.length,t);for(var s=new Da(br.constants.SIGN_BYTE_LENGTH),a=0;a<s.length;++a)s[a]=i[a];return s};br.verify=function(r){r=r||{};var e=Gl(r);if(r.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var t=Gl({message:r.signature,encoding:"binary"});if(t.length!==br.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+br.constants.SIGN_BYTE_LENGTH);var n=Gl({message:r.publicKey,encoding:"binary"});if(n.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+br.constants.PUBLIC_KEY_BYTE_LENGTH);var i=new Da(br.constants.SIGN_BYTE_LENGTH+e.length),s=new Da(br.constants.SIGN_BYTE_LENGTH+e.length),a;for(a=0;a<br.constants.SIGN_BYTE_LENGTH;++a)i[a]=t[a];for(a=0;a<e.length;++a)i[a+br.constants.SIGN_BYTE_LENGTH]=e[a];return rpe(s,i,i.length,n)>=0};function Gl(r){var e=r.message;if(e instanceof Uint8Array||e instanceof Da)return e;var t=r.encoding;if(e===void 0)if(r.md)e=r.md.digest().getBytes(),t="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof e=="string"&&!t)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.from(e,t);e=new gB(e,t)}else if(!(e instanceof gB))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var n=new Da(e.length()),i=0;i<n.length;++i)n[i]=e.at(i);return n}o(Gl,"messageToNativeBuffer");var vB=jt(),y2=jt([1]),Qfe=jt([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),Yfe=jt([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),_6=jt([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),O6=jt([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),dB=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),Zfe=jt([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Hx(r,e){var t=Ss.md.sha512.create(),n=new gB(r);t.update(n.getBytes(e),"binary");var i=t.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(i,"binary");for(var s=new Da(br.constants.HASH_BYTE_LENGTH),a=0;a<64;++a)s[a]=i.charCodeAt(a);return s}o(Hx,"sha512");function epe(r,e){var t=[jt(),jt(),jt(),jt()],n,i=Hx(e,32);for(i[0]&=248,i[31]&=127,i[31]|=64,bB(t,i),xB(r,t),n=0;n<32;++n)e[n+32]=r[n];return 0}o(epe,"crypto_sign_keypair");function tpe(r,e,t,n){var i,s,a=new Float64Array(64),u=[jt(),jt(),jt(),jt()],c=Hx(n,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=t+64;for(i=0;i<t;++i)r[64+i]=e[i];for(i=0;i<32;++i)r[32+i]=c[32+i];var p=Hx(r.subarray(32),t+32);for(yB(p),bB(u,p),xB(r,u),i=32;i<64;++i)r[i]=n[i];var m=Hx(r,t+64);for(yB(m),i=32;i<64;++i)a[i]=0;for(i=0;i<32;++i)a[i]=p[i];for(i=0;i<32;++i)for(s=0;s<32;s++)a[i+s]+=m[i]*c[s];return L6(r.subarray(32),a),l}o(tpe,"crypto_sign");function rpe(r,e,t,n){var i,s,a=new Da(32),u=[jt(),jt(),jt(),jt()],c=[jt(),jt(),jt(),jt()];if(s=-1,t<64||npe(c,n))return-1;for(i=0;i<t;++i)r[i]=e[i];for(i=0;i<32;++i)r[i+32]=n[i];var l=Hx(r,t);if(yB(l),j6(u,c,l),bB(c,e.subarray(32)),SB(u,c),xB(a,u),t-=64,k6(e,0,a,0)){for(i=0;i<t;++i)r[i]=0;return-1}for(i=0;i<t;++i)r[i]=e[i+64];return s=t,s}o(rpe,"crypto_sign_open");function L6(r,e){var t,n,i,s;for(n=63;n>=32;--n){for(t=0,i=n-32,s=n-12;i<s;++i)e[i]+=t-16*e[n]*dB[i-(n-32)],t=e[i]+128>>8,e[i]-=t*256;e[i]+=t,e[n]=0}for(t=0,i=0;i<32;++i)e[i]+=t-(e[31]>>4)*dB[i],t=e[i]>>8,e[i]&=255;for(i=0;i<32;++i)e[i]-=t*dB[i];for(n=0;n<32;++n)e[n+1]+=e[n]>>8,r[n]=e[n]&255}o(L6,"modL");function yB(r){for(var e=new Float64Array(64),t=0;t<64;++t)e[t]=r[t],r[t]=0;L6(r,e)}o(yB,"reduce");function SB(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt(),l=jt(),p=jt();cv(t,r[1],r[0]),cv(p,e[1],e[0]),hn(t,t,p),uv(n,r[0],r[1]),uv(p,e[0],e[1]),hn(n,n,p),hn(i,r[3],e[3]),hn(i,i,Yfe),hn(s,r[2],e[2]),uv(s,s,s),cv(a,n,t),cv(u,s,i),uv(c,s,i),uv(l,n,t),hn(r[0],a,u),hn(r[1],l,c),hn(r[2],c,u),hn(r[3],a,l)}o(SB,"add");function P6(r,e,t){for(var n=0;n<4;++n)U6(r[n],e[n],t)}o(P6,"cswap");function xB(r,e){var t=jt(),n=jt(),i=jt();ope(i,e[2]),hn(t,e[0],i),hn(n,e[1],i),S2(r,n),r[31]^=V6(t)<<7}o(xB,"pack");function S2(r,e){var t,n,i,s=jt(),a=jt();for(t=0;t<16;++t)a[t]=e[t];for(mB(a),mB(a),mB(a),n=0;n<2;++n){for(s[0]=a[0]-65517,t=1;t<15;++t)s[t]=a[t]-65535-(s[t-1]>>16&1),s[t-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,U6(a,s,1-i)}for(t=0;t<16;t++)r[2*t]=a[t]&255,r[2*t+1]=a[t]>>8}o(S2,"pack25519");function npe(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt();return qp(r[2],y2),ipe(r[1],e),sm(i,r[1]),hn(s,i,Qfe),cv(i,i,r[2]),uv(s,r[2],s),sm(a,s),sm(u,a),hn(c,u,a),hn(t,c,i),hn(t,t,s),spe(t,t),hn(t,t,i),hn(t,t,s),hn(t,t,s),hn(r[0],t,s),sm(n,r[0]),hn(n,n,s),B6(n,i)&&hn(r[0],r[0],Zfe),sm(n,r[0]),hn(n,n,s),B6(n,i)?-1:(V6(r[0])===e[31]>>7&&cv(r[0],vB,r[0]),hn(r[3],r[0],r[1]),0)}o(npe,"unpackneg");function ipe(r,e){var t;for(t=0;t<16;++t)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}o(ipe,"unpack25519");function spe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=250;n>=0;--n)sm(t,t),n!==1&&hn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(spe,"pow2523");function B6(r,e){var t=new Da(32),n=new Da(32);return S2(t,r),S2(n,e),k6(t,0,n,0)}o(B6,"neq25519");function k6(r,e,t,n){return ape(r,e,t,n,32)}o(k6,"crypto_verify_32");function ape(r,e,t,n,i){var s,a=0;for(s=0;s<i;++s)a|=r[e+s]^t[n+s];return(1&a-1>>>8)-1}o(ape,"vn");function V6(r){var e=new Da(32);return S2(e,r),e[0]&1}o(V6,"par25519");function j6(r,e,t){var n,i;for(qp(r[0],vB),qp(r[1],y2),qp(r[2],y2),qp(r[3],vB),i=255;i>=0;--i)n=t[i/8|0]>>(i&7)&1,P6(r,e,n),SB(e,r),SB(r,r),P6(r,e,n)}o(j6,"scalarmult");function bB(r,e){var t=[jt(),jt(),jt(),jt()];qp(t[0],_6),qp(t[1],O6),qp(t[2],y2),hn(t[3],_6,O6),j6(r,t,e)}o(bB,"scalarbase");function qp(r,e){var t;for(t=0;t<16;t++)r[t]=e[t]|0}o(qp,"set25519");function ope(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=253;n>=0;--n)sm(t,t),n!==2&&n!==4&&hn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(ope,"inv25519");function mB(r){var e,t,n=1;for(e=0;e<16;++e)t=r[e]+n+65535,n=Math.floor(t/65536),r[e]=t-n*65536;r[0]+=n-1+37*(n-1)}o(mB,"car25519");function U6(r,e,t){for(var n,i=~(t-1),s=0;s<16;++s)n=i&(r[s]^e[s]),r[s]^=n,e[s]^=n}o(U6,"sel25519");function jt(r){var e,t=new Float64Array(16);if(r)for(e=0;e<r.length;++e)t[e]=r[e];return t}o(jt,"gf");function uv(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]+t[n]}o(uv,"A");function cv(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]-t[n]}o(cv,"Z");function sm(r,e){hn(r,e,e)}o(sm,"S");function hn(r,e,t){var n,i,s=0,a=0,u=0,c=0,l=0,p=0,m=0,g=0,y=0,v=0,b=0,x=0,E=0,N=0,w=0,C=0,A=0,R=0,M=0,_=0,H=0,z=0,K=0,X=0,ye=0,fe=0,ce=0,ee=0,pe=0,Ce=0,Ye=0,xe=t[0],ie=t[1],De=t[2],Ze=t[3],We=t[4],it=t[5],F=t[6],O=t[7],oe=t[8],J=t[9],Ge=t[10],Ue=t[11],Pe=t[12],bt=t[13],Ir=t[14],Je=t[15];n=e[0],s+=n*xe,a+=n*ie,u+=n*De,c+=n*Ze,l+=n*We,p+=n*it,m+=n*F,g+=n*O,y+=n*oe,v+=n*J,b+=n*Ge,x+=n*Ue,E+=n*Pe,N+=n*bt,w+=n*Ir,C+=n*Je,n=e[1],a+=n*xe,u+=n*ie,c+=n*De,l+=n*Ze,p+=n*We,m+=n*it,g+=n*F,y+=n*O,v+=n*oe,b+=n*J,x+=n*Ge,E+=n*Ue,N+=n*Pe,w+=n*bt,C+=n*Ir,A+=n*Je,n=e[2],u+=n*xe,c+=n*ie,l+=n*De,p+=n*Ze,m+=n*We,g+=n*it,y+=n*F,v+=n*O,b+=n*oe,x+=n*J,E+=n*Ge,N+=n*Ue,w+=n*Pe,C+=n*bt,A+=n*Ir,R+=n*Je,n=e[3],c+=n*xe,l+=n*ie,p+=n*De,m+=n*Ze,g+=n*We,y+=n*it,v+=n*F,b+=n*O,x+=n*oe,E+=n*J,N+=n*Ge,w+=n*Ue,C+=n*Pe,A+=n*bt,R+=n*Ir,M+=n*Je,n=e[4],l+=n*xe,p+=n*ie,m+=n*De,g+=n*Ze,y+=n*We,v+=n*it,b+=n*F,x+=n*O,E+=n*oe,N+=n*J,w+=n*Ge,C+=n*Ue,A+=n*Pe,R+=n*bt,M+=n*Ir,_+=n*Je,n=e[5],p+=n*xe,m+=n*ie,g+=n*De,y+=n*Ze,v+=n*We,b+=n*it,x+=n*F,E+=n*O,N+=n*oe,w+=n*J,C+=n*Ge,A+=n*Ue,R+=n*Pe,M+=n*bt,_+=n*Ir,H+=n*Je,n=e[6],m+=n*xe,g+=n*ie,y+=n*De,v+=n*Ze,b+=n*We,x+=n*it,E+=n*F,N+=n*O,w+=n*oe,C+=n*J,A+=n*Ge,R+=n*Ue,M+=n*Pe,_+=n*bt,H+=n*Ir,z+=n*Je,n=e[7],g+=n*xe,y+=n*ie,v+=n*De,b+=n*Ze,x+=n*We,E+=n*it,N+=n*F,w+=n*O,C+=n*oe,A+=n*J,R+=n*Ge,M+=n*Ue,_+=n*Pe,H+=n*bt,z+=n*Ir,K+=n*Je,n=e[8],y+=n*xe,v+=n*ie,b+=n*De,x+=n*Ze,E+=n*We,N+=n*it,w+=n*F,C+=n*O,A+=n*oe,R+=n*J,M+=n*Ge,_+=n*Ue,H+=n*Pe,z+=n*bt,K+=n*Ir,X+=n*Je,n=e[9],v+=n*xe,b+=n*ie,x+=n*De,E+=n*Ze,N+=n*We,w+=n*it,C+=n*F,A+=n*O,R+=n*oe,M+=n*J,_+=n*Ge,H+=n*Ue,z+=n*Pe,K+=n*bt,X+=n*Ir,ye+=n*Je,n=e[10],b+=n*xe,x+=n*ie,E+=n*De,N+=n*Ze,w+=n*We,C+=n*it,A+=n*F,R+=n*O,M+=n*oe,_+=n*J,H+=n*Ge,z+=n*Ue,K+=n*Pe,X+=n*bt,ye+=n*Ir,fe+=n*Je,n=e[11],x+=n*xe,E+=n*ie,N+=n*De,w+=n*Ze,C+=n*We,A+=n*it,R+=n*F,M+=n*O,_+=n*oe,H+=n*J,z+=n*Ge,K+=n*Ue,X+=n*Pe,ye+=n*bt,fe+=n*Ir,ce+=n*Je,n=e[12],E+=n*xe,N+=n*ie,w+=n*De,C+=n*Ze,A+=n*We,R+=n*it,M+=n*F,_+=n*O,H+=n*oe,z+=n*J,K+=n*Ge,X+=n*Ue,ye+=n*Pe,fe+=n*bt,ce+=n*Ir,ee+=n*Je,n=e[13],N+=n*xe,w+=n*ie,C+=n*De,A+=n*Ze,R+=n*We,M+=n*it,_+=n*F,H+=n*O,z+=n*oe,K+=n*J,X+=n*Ge,ye+=n*Ue,fe+=n*Pe,ce+=n*bt,ee+=n*Ir,pe+=n*Je,n=e[14],w+=n*xe,C+=n*ie,A+=n*De,R+=n*Ze,M+=n*We,_+=n*it,H+=n*F,z+=n*O,K+=n*oe,X+=n*J,ye+=n*Ge,fe+=n*Ue,ce+=n*Pe,ee+=n*bt,pe+=n*Ir,Ce+=n*Je,n=e[15],C+=n*xe,A+=n*ie,R+=n*De,M+=n*Ze,_+=n*We,H+=n*it,z+=n*F,K+=n*O,X+=n*oe,ye+=n*J,fe+=n*Ge,ce+=n*Ue,ee+=n*Pe,pe+=n*bt,Ce+=n*Ir,Ye+=n*Je,s+=38*A,a+=38*R,u+=38*M,c+=38*_,l+=38*H,p+=38*z,m+=38*K,g+=38*X,y+=38*ye,v+=38*fe,b+=38*ce,x+=38*ee,E+=38*pe,N+=38*Ce,w+=38*Ye,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),r[0]=s,r[1]=a,r[2]=u,r[3]=c,r[4]=l,r[5]=p,r[6]=m,r[7]=g,r[8]=y,r[9]=v,r[10]=b,r[11]=x,r[12]=E,r[13]=N,r[14]=w,r[15]=C}o(hn,"M")});var $6=Z((QIe,K6)=>{"use strict";var lo=pr();kr();Lo();Vx();K6.exports=lo.kem=lo.kem||{};var H6=lo.jsbn.BigInteger;lo.kem.rsa={};lo.kem.rsa.create=function(r,e){e=e||{};var t=e.prng||lo.random,n={};return n.encrypt=function(i,s){var a=Math.ceil(i.n.bitLength()/8),u;do u=new H6(lo.util.bytesToHex(t.getBytesSync(a)),16).mod(i.n);while(u.compareTo(H6.ONE)<=0);u=lo.util.hexToBytes(u.toString(16));var c=a-u.length;c>0&&(u=lo.util.fillString("\0",c)+u);var l=i.encrypt(u,"NONE"),p=r.generate(u,s);return{encapsulation:l,key:p}},n.decrypt=function(i,s,a){var u=i.decrypt(s,"NONE");return r.generate(u,a)},n};lo.kem.kdf1=function(r,e){z6(this,r,0,e||r.digestLength)};lo.kem.kdf2=function(r,e){z6(this,r,1,e||r.digestLength)};function z6(r,e,t,n){r.generate=function(i,s){for(var a=new lo.util.ByteBuffer,u=Math.ceil(s/n)+t,c=new lo.util.ByteBuffer,l=t;l<u;++l){c.putInt32(l),e.start(),e.update(i+c.getBytes());var p=e.digest();a.putBytes(p.getBytes(n))}return a.truncate(a.length()-s),a.getBytes()}}o(z6,"_createKDF")});var J6=Z((ZIe,W6)=>{"use strict";var Ar=pr();kr();W6.exports=Ar.log=Ar.log||{};Ar.log.levels=["none","error","warning","info","debug","verbose","max"];var x2={},EB=[],Kx=null;Ar.log.LEVEL_LOCKED=2;Ar.log.NO_LEVEL_CHECK=4;Ar.log.INTERPOLATE=8;for(Pc=0;Pc<Ar.log.levels.length;++Pc)wB=Ar.log.levels[Pc],x2[wB]={index:Pc,name:wB.toUpperCase()};var wB,Pc;Ar.log.logMessage=function(r){for(var e=x2[r.level].index,t=0;t<EB.length;++t){var n=EB[t];if(n.flags&Ar.log.NO_LEVEL_CHECK)n.f(r);else{var i=x2[n.level].index;e<=i&&n.f(n,r)}}};Ar.log.prepareStandard=function(r){"standard"in r||(r.standard=x2[r.level].name+" ["+r.category+"] "+r.message)};Ar.log.prepareFull=function(r){if(!("full"in r)){var e=[r.message];e=e.concat([]),r.full=Ar.util.format.apply(this,e)}};Ar.log.prepareStandardFull=function(r){"standardFull"in r||(Ar.log.prepareStandard(r),r.standardFull=r.standard)};for(CB=["error","warning","info","debug","verbose"],Pc=0;Pc<CB.length;++Pc)(function(e){Ar.log[e]=function(t,n){var i=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:e,category:t,message:n,arguments:i};Ar.log.logMessage(s)}})(CB[Pc]);var CB,Pc;Ar.log.makeLogger=function(r){var e={flags:0,f:r};return Ar.log.setLevel(e,"none"),e};Ar.log.setLevel=function(r,e){var t=!1;if(r&&!(r.flags&Ar.log.LEVEL_LOCKED))for(var n=0;n<Ar.log.levels.length;++n){var i=Ar.log.levels[n];if(e==i){r.level=e,t=!0;break}}return t};Ar.log.lock=function(r,e){typeof e>"u"||e?r.flags|=Ar.log.LEVEL_LOCKED:r.flags&=~Ar.log.LEVEL_LOCKED};Ar.log.addLogger=function(r){EB.push(r)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(G6={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},$x=o(function(r,e){Ar.log.prepareStandard(e);var t=G6[e.level],n=[e.standard];n=n.concat(e.arguments.slice()),t.apply(console,n)},"f"),lv=Ar.log.makeLogger($x)):($x=o(function(e,t){Ar.log.prepareStandardFull(t),console.log(t.standardFull)},"f"),lv=Ar.log.makeLogger($x)),Ar.log.setLevel(lv,"debug"),Ar.log.addLogger(lv),Kx=lv):console={log:o(function(){},"log")};var lv,G6,$x;Kx!==null&&typeof window<"u"&&window.location&&(zx=new URL(window.location.href).searchParams,zx.has("console.level")&&Ar.log.setLevel(Kx,zx.get("console.level").slice(-1)[0]),zx.has("console.lock")&&(X6=zx.get("console.lock").slice(-1)[0],X6=="true"&&Ar.log.lock(Kx)));var zx,X6;Ar.log.consoleLogger=Kx});var Y6=Z((tTe,Q6)=>{"use strict";Q6.exports=Ac();ZN();nv();kP();pB()});var t9=Z((rTe,e9)=>{"use strict";var st=pr();Bp();Iu();Lx();Fp();Yd();QP();Lo();kr();h2();var re=st.asn1,da=e9.exports=st.pkcs7=st.pkcs7||{};da.messageFromPem=function(r){var e=st.pem.decode(r)[0];if(e.type!=="PKCS7"){var t=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var n=re.fromDer(e.body);return da.messageFromAsn1(n)};da.messageToPem=function(r,e){var t={type:"PKCS7",body:re.toDer(r.toAsn1()).getBytes()};return st.pem.encode(t,{maxline:e})};da.messageFromAsn1=function(r){var e={},t=[];if(!re.validate(r,da.asn1.contentInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw n.errors=t,n}var i=re.derToOid(e.contentType),s;switch(i){case st.pki.oids.envelopedData:s=da.createEnvelopedData();break;case st.pki.oids.encryptedData:s=da.createEncryptedData();break;case st.pki.oids.signedData:s=da.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+i+" is not (yet) supported.")}return s.fromAsn1(e.content.value[0]),s};da.createSignedData=function(){var r=null;return r={type:st.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:o(function(n){if(NB(r,n,da.asn1.signedDataValidator),r.certificates=[],r.crls=[],r.digestAlgorithmIdentifiers=[],r.contentInfo=null,r.signerInfos=[],r.rawCapture.certificates)for(var i=r.rawCapture.certificates.value,s=0;s<i.length;++s)r.certificates.push(st.pki.certificateFromAsn1(i[s]))},"fromAsn1"),toAsn1:o(function(){r.contentInfo||r.sign();for(var n=[],i=0;i<r.certificates.length;++i)n.push(st.pki.certificateToAsn1(r.certificates[i]));var s=[],a=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.digestAlgorithmIdentifiers),r.contentInfo])]);return n.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,n)),s.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.signerInfos)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),a])},"toAsn1"),addSigner:o(function(n){var i=n.issuer,s=n.serialNumber;if(n.certificate){var a=n.certificate;typeof a=="string"&&(a=st.pki.certificateFromPem(a)),i=a.issuer.attributes,s=a.serialNumber}var u=n.key;if(!u)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof u=="string"&&(u=st.pki.privateKeyFromPem(u));var c=n.digestAlgorithm||st.pki.oids.sha1;switch(c){case st.pki.oids.sha1:case st.pki.oids.sha256:case st.pki.oids.sha384:case st.pki.oids.sha512:case st.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=n.authenticatedAttributes||[];if(l.length>0){for(var p=!1,m=!1,g=0;g<l.length;++g){var y=l[g];if(!p&&y.type===st.pki.oids.contentType){if(p=!0,m)break;continue}if(!m&&y.type===st.pki.oids.messageDigest){if(m=!0,p)break;continue}}if(!p||!m)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}r.signers.push({key:u,version:1,issuer:i,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:st.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},"addSigner"),sign:o(function(n){if(n=n||{},(typeof r.content!="object"||r.contentInfo===null)&&(r.contentInfo=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes())]),"content"in r)){var i;r.content instanceof st.util.ByteBuffer?i=r.content.bytes():typeof r.content=="string"&&(i=st.util.encodeUtf8(r.content)),n.detached?r.detachedContent=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i):r.contentInfo.value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i)]))}if(r.signers.length!==0){var s=e();t(s)}},"sign"),verify:o(function(){throw new Error("PKCS#7 signature verification not yet implemented.")},"verify"),addCertificate:o(function(n){typeof n=="string"&&(n=st.pki.certificateFromPem(n)),r.certificates.push(n)},"addCertificate"),addCertificateRevokationList:o(function(n){throw new Error("PKCS#7 CRL support not yet implemented.")},"addCertificateRevokationList")},r;function e(){for(var n={},i=0;i<r.signers.length;++i){var s=r.signers[i],a=s.digestAlgorithm;a in n||(n[a]=st.md[st.pki.oids[a]].create()),s.authenticatedAttributes.length===0?s.md=n[a]:s.md=st.md[st.pki.oids[a]].create()}r.digestAlgorithmIdentifiers=[];for(var a in n)r.digestAlgorithmIdentifiers.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(a).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]));return n}o(e,"addDigestAlgorithmIds");function t(n){var i;if(r.detachedContent?i=r.detachedContent:(i=r.contentInfo.value[1],i=i.value[0]),!i)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=re.derToOid(r.contentInfo.value[0].value),a=re.toDer(i);a.getByte(),re.getBerValueLength(a),a=a.getBytes();for(var u in n)n[u].start().update(a);for(var c=new Date,l=0;l<r.signers.length;++l){var p=r.signers[l];if(p.authenticatedAttributes.length===0){if(s!==st.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{p.authenticatedAttributesAsn1=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var m=re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[]),g=0;g<p.authenticatedAttributes.length;++g){var y=p.authenticatedAttributes[g];y.type===st.pki.oids.messageDigest?y.value=n[p.digestAlgorithm].digest():y.type===st.pki.oids.signingTime&&(y.value||(y.value=c)),m.value.push(AB(y)),p.authenticatedAttributesAsn1.value.push(AB(y))}a=re.toDer(m).getBytes(),p.md.start().update(a)}p.signature=p.key.sign(p.md,"RSASSA-PKCS1-V1_5")}r.signerInfos=hpe(r.signers)}o(t,"addSignerInfos")};da.createEncryptedData=function(){var r=null;return r={type:st.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){NB(r,e,da.asn1.encryptedDataValidator)},"fromAsn1"),decrypt:o(function(e){e!==void 0&&(r.encryptedContent.key=e),Z6(r)},"decrypt")},r};da.createEnvelopedData=function(){var r=null;return r={type:st.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){var t=NB(r,e,da.asn1.envelopedDataValidator);r.recipients=lpe(t.recipientInfos.value)},"fromAsn1"),toAsn1:o(function(){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,fpe(r.recipients)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,dpe(r.encryptedContent))])])])},"toAsn1"),findRecipient:o(function(e){for(var t=e.issuer.attributes,n=0;n<r.recipients.length;++n){var i=r.recipients[n],s=i.issuer;if(i.serialNumber===e.serialNumber&&s.length===t.length){for(var a=!0,u=0;u<t.length;++u)if(s[u].type!==t[u].type||s[u].value!==t[u].value){a=!1;break}if(a)return i}}return null},"findRecipient"),decrypt:o(function(e,t){if(r.encryptedContent.key===void 0&&e!==void 0&&t!==void 0)switch(e.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:case st.pki.oids.desCBC:var n=t.decrypt(e.encryptedContent.content);r.encryptedContent.key=st.util.createBuffer(n);break;default:throw new Error("Unsupported asymmetric cipher, OID "+e.encryptedContent.algorithm)}Z6(r)},"decrypt"),addRecipient:o(function(e){r.recipients.push({version:0,issuer:e.issuer.attributes,serialNumber:e.serialNumber,encryptedContent:{algorithm:st.pki.oids.rsaEncryption,key:e.publicKey}})},"addRecipient"),encrypt:o(function(e,t){if(r.encryptedContent.content===void 0){t=t||r.encryptedContent.algorithm,e=e||r.encryptedContent.key;var n,i,s;switch(t){case st.pki.oids["aes128-CBC"]:n=16,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes192-CBC"]:n=24,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes256-CBC"]:n=32,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["des-EDE3-CBC"]:n=24,i=8,s=st.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+t)}if(e===void 0)e=st.util.createBuffer(st.random.getBytes(n));else if(e.length()!=n)throw new Error("Symmetric key has wrong length; got "+e.length()+" bytes, expected "+n+".");r.encryptedContent.algorithm=t,r.encryptedContent.key=e,r.encryptedContent.parameter=st.util.createBuffer(st.random.getBytes(i));var a=s(e);if(a.start(r.encryptedContent.parameter.copy()),a.update(r.content),!a.finish())throw new Error("Symmetric encryption failed.");r.encryptedContent.content=a.output}for(var u=0;u<r.recipients.length;++u){var c=r.recipients[u];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(r.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}},"encrypt")},r};function upe(r){var e={},t=[];if(!re.validate(r,da.asn1.recipientInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw n.errors=t,n}return{version:e.version.charCodeAt(0),issuer:st.pki.RDNAttributesAsArray(e.issuer),serialNumber:st.util.createBuffer(e.serial).toHex(),encryptedContent:{algorithm:re.derToOid(e.encAlgorithm),parameter:e.encParameter?e.encParameter.value:void 0,content:e.encKey}}}o(upe,"_recipientFromAsn1");function cpe(r){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.encryptedContent.algorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]),re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.encryptedContent.content)])}o(cpe,"_recipientToAsn1");function lpe(r){for(var e=[],t=0;t<r.length;++t)e.push(upe(r[t]));return e}o(lpe,"_recipientsFromAsn1");function fpe(r){for(var e=[],t=0;t<r.length;++t)e.push(cpe(r[t]));return e}o(fpe,"_recipientsToAsn1");function ppe(r){var e=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.digestAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])]);if(r.authenticatedAttributesAsn1&&e.value.push(r.authenticatedAttributesAsn1),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.signatureAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.signature)),r.unauthenticatedAttributes.length>0){for(var t=re.create(re.Class.CONTEXT_SPECIFIC,1,!0,[]),n=0;n<r.unauthenticatedAttributes.length;++n){var i=r.unauthenticatedAttributes[n];t.values.push(AB(i))}e.value.push(t)}return e}o(ppe,"_signerToAsn1");function hpe(r){for(var e=[],t=0;t<r.length;++t)e.push(ppe(r[t]));return e}o(hpe,"_signersToAsn1");function AB(r){var e;if(r.type===st.pki.oids.contentType)e=re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.value).getBytes());else if(r.type===st.pki.oids.messageDigest)e=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.value.bytes());else if(r.type===st.pki.oids.signingTime){var t=new Date("1950-01-01T00:00:00Z"),n=new Date("2050-01-01T00:00:00Z"),i=r.value;if(typeof i=="string"){var s=Date.parse(i);isNaN(s)?i.length===13?i=re.utcTimeToDate(i):i=re.generalizedTimeToDate(i):i=new Date(s)}i>=t&&i<n?e=re.create(re.Class.UNIVERSAL,re.Type.UTCTIME,!1,re.dateToUtcTime(i)):e=re.create(re.Class.UNIVERSAL,re.Type.GENERALIZEDTIME,!1,re.dateToGeneralizedTime(i))}return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[e])])}o(AB,"_attributeToAsn1");function dpe(r){return[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.algorithm).getBytes()),r.parameter?re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.parameter.getBytes()):void 0]),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.content.getBytes())])]}o(dpe,"_encryptedContentToAsn1");function NB(r,e,t){var n={},i=[];if(!re.validate(e,t,n,i)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var a=re.derToOid(n.contentType);if(a!==st.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(n.encryptedContent){var u="";if(st.util.isArray(n.encryptedContent))for(var c=0;c<n.encryptedContent.length;++c){if(n.encryptedContent[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");u+=n.encryptedContent[c].value}else u=n.encryptedContent;r.encryptedContent={algorithm:re.derToOid(n.encAlgorithm),parameter:st.util.createBuffer(n.encParameter.value),content:st.util.createBuffer(u)}}if(n.content){var u="";if(st.util.isArray(n.content))for(var c=0;c<n.content.length;++c){if(n.content[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");u+=n.content[c].value}else u=n.content;r.content=st.util.createBuffer(u)}return r.version=n.version.charCodeAt(0),r.rawCapture=n,n}o(NB,"_fromAsn1");function Z6(r){if(r.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(r.content===void 0){var e;switch(r.encryptedContent.algorithm){case st.pki.oids["aes128-CBC"]:case st.pki.oids["aes192-CBC"]:case st.pki.oids["aes256-CBC"]:e=st.aes.createDecryptionCipher(r.encryptedContent.key);break;case st.pki.oids.desCBC:case st.pki.oids["des-EDE3-CBC"]:e=st.des.createDecryptionCipher(r.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+r.encryptedContent.algorithm)}if(e.start(r.encryptedContent.parameter),e.update(r.encryptedContent.content),!e.finish())throw new Error("Symmetric decryption failed.");r.content=e.output}}o(Z6,"_decryptContent")});var n9=Z((iTe,r9)=>{"use strict";var Ni=pr();Bp();Zg();ZN();nv();kr();var w2=r9.exports=Ni.ssh=Ni.ssh||{};w2.privateKeyToPutty=function(r,e,t){t=t||"",e=e||"";var n="ssh-rsa",i=e===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+n+`\r
14
+ `+u+e.substr(a+1),s=i-a-1,a=-1,++i}else(e[i]===" "||e[i]===" "||e[i]===",")&&(a=i);return e}o(e2,"foldHeader");function Hue(r){return r.replace(/^\s+/,"")}o(Hue,"ltrim")});var Lx=Z((uIe,gM)=>{"use strict";var kn=pr();$N();DP();kr();gM.exports=kn.des=kn.des||{};kn.des.startEncrypting=function(r,e,t,n){var i=r2({key:r,output:t,decrypt:!1,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};kn.des.createEncryptionCipher=function(r,e){return r2({key:r,output:null,decrypt:!1,mode:e})};kn.des.startDecrypting=function(r,e,t,n){var i=r2({key:r,output:t,decrypt:!0,mode:n||(e===null?"ECB":"CBC")});return i.start(e),i};kn.des.createDecryptionCipher=function(r,e){return r2({key:r,output:null,decrypt:!0,mode:e})};kn.des.Algorithm=function(r,e){var t=this;t.name=r,t.mode=new e({blockSize:8,cipher:{encrypt:o(function(n,i){return mM(t._keys,n,i,!1)},"encrypt"),decrypt:o(function(n,i){return mM(t._keys,n,i,!0)},"decrypt")}}),t._init=!1};kn.des.Algorithm.prototype.initialize=function(r){if(!this._init){var e=kn.util.createBuffer(r.key);if(this.name.indexOf("3DES")===0&&e.length()!==24)throw new Error("Invalid Triple-DES key size: "+e.length()*8);this._keys=Yue(e),this._init=!0}};Ic("DES-ECB",kn.cipher.modes.ecb);Ic("DES-CBC",kn.cipher.modes.cbc);Ic("DES-CFB",kn.cipher.modes.cfb);Ic("DES-OFB",kn.cipher.modes.ofb);Ic("DES-CTR",kn.cipher.modes.ctr);Ic("3DES-ECB",kn.cipher.modes.ecb);Ic("3DES-CBC",kn.cipher.modes.cbc);Ic("3DES-CFB",kn.cipher.modes.cfb);Ic("3DES-OFB",kn.cipher.modes.ofb);Ic("3DES-CTR",kn.cipher.modes.ctr);function Ic(r,e){var t=o(function(){return new kn.des.Algorithm(r,e)},"factory");kn.cipher.registerAlgorithm(r,t)}o(Ic,"registerAlgorithm");var zue=[16843776,0,65536,16843780,16842756,66564,4,65536,1024,16843776,16843780,1024,16778244,16842756,16777216,4,1028,16778240,16778240,66560,66560,16842752,16842752,16778244,65540,16777220,16777220,65540,0,1028,66564,16777216,65536,16843780,4,16842752,16843776,16777216,16777216,1024,16842756,65536,66560,16777220,1024,4,16778244,66564,16843780,65540,16842752,16778244,16777220,1028,66564,16843776,1028,16778240,16778240,0,65540,66560,0,16842756],Kue=[-2146402272,-2147450880,32768,1081376,1048576,32,-2146435040,-2147450848,-2147483616,-2146402272,-2146402304,-2147483648,-2147450880,1048576,32,-2146435040,1081344,1048608,-2147450848,0,-2147483648,32768,1081376,-2146435072,1048608,-2147483616,0,1081344,32800,-2146402304,-2146435072,32800,0,1081376,-2146435040,1048576,-2147450848,-2146435072,-2146402304,32768,-2146435072,-2147450880,32,-2146402272,1081376,32,32768,-2147483648,32800,-2146402304,1048576,-2147483616,1048608,-2147450848,-2147483616,1048608,1081344,0,-2147450880,32800,-2147483648,-2146435040,-2146402272,1081344],$ue=[520,134349312,0,134348808,134218240,0,131592,134218240,131080,134217736,134217736,131072,134349320,131080,134348800,520,134217728,8,134349312,512,131584,134348800,134348808,131592,134218248,131584,131072,134218248,8,134349320,512,134217728,134349312,134217728,131080,520,131072,134349312,134218240,0,512,131080,134349320,134218240,134217736,512,0,134348808,134218248,131072,134217728,134349320,8,131592,131584,134217736,134348800,134218248,520,134348800,131592,8,134348808,131584],Gue=[8396801,8321,8321,128,8396928,8388737,8388609,8193,0,8396800,8396800,8396929,129,0,8388736,8388609,1,8192,8388608,8396801,128,8388608,8193,8320,8388737,1,8320,8388736,8192,8396928,8396929,129,8388736,8388609,8396800,8396929,129,0,0,8396800,8320,8388736,8388737,1,8396801,8321,8321,128,8396929,129,1,8192,8388609,8193,8396928,8388737,8193,8320,8388608,8396801,128,8388608,8192,8396928],Xue=[256,34078976,34078720,1107296512,524288,256,1073741824,34078720,1074266368,524288,33554688,1074266368,1107296512,1107820544,524544,1073741824,33554432,1074266112,1074266112,0,1073742080,1107820800,1107820800,33554688,1107820544,1073742080,0,1107296256,34078976,33554432,1107296256,524544,524288,1107296512,256,33554432,1073741824,34078720,1107296512,1074266368,33554688,1073741824,1107820544,34078976,1074266368,256,33554432,1107820544,1107820800,524544,1107296256,1107820800,34078720,0,1074266112,1107296256,524544,33554688,1073742080,524288,0,1074266112,34078976,1073742080],Wue=[536870928,541065216,16384,541081616,541065216,16,541081616,4194304,536887296,4210704,4194304,536870928,4194320,536887296,536870912,16400,0,4194320,536887312,16384,4210688,536887312,16,541065232,541065232,0,4210704,541081600,16400,4210688,541081600,536870912,536887296,16,541065232,4210688,541081616,4194304,16400,536870928,4194304,536887296,536870912,16400,536870928,541081616,4210688,541065216,4210704,541081600,0,541065232,16,16384,541065216,4210704,16384,4194320,536887312,0,541081600,536870912,4194320,536887312],Jue=[2097152,69206018,67110914,0,2048,67110914,2099202,69208064,69208066,2097152,0,67108866,2,67108864,69206018,2050,67110912,2099202,2097154,67110912,67108866,69206016,69208064,2097154,69206016,2048,2050,69208066,2099200,2,67108864,2099200,67108864,2099200,2097152,67110914,67110914,69206018,69206018,2,2097154,67108864,67110912,2097152,69208064,2050,2099202,69208064,2050,67108866,69208066,69206016,2099200,0,2,69208066,0,2099202,69206016,2048,67108866,67110912,2048,2097154],Que=[268439616,4096,262144,268701760,268435456,268439616,64,268435456,262208,268697600,268701760,266240,268701696,266304,4096,64,268697600,268435520,268439552,4160,266240,262208,268697664,268701696,4160,0,0,268697664,268435520,268439552,266304,262144,266304,262144,268701696,4096,64,268697664,4096,266304,268439552,64,268435520,268697600,268697664,268435456,262144,268439616,0,268701760,262208,268435520,268697600,268439552,268439616,0,268701760,266240,266240,4160,4160,262208,268435456,268701696];function Yue(r){for(var e=[0,4,536870912,536870916,65536,65540,536936448,536936452,512,516,536871424,536871428,66048,66052,536936960,536936964],t=[0,1,1048576,1048577,67108864,67108865,68157440,68157441,256,257,1048832,1048833,67109120,67109121,68157696,68157697],n=[0,8,2048,2056,16777216,16777224,16779264,16779272,0,8,2048,2056,16777216,16777224,16779264,16779272],i=[0,2097152,134217728,136314880,8192,2105344,134225920,136323072,131072,2228224,134348800,136445952,139264,2236416,134356992,136454144],s=[0,262144,16,262160,0,262144,16,262160,4096,266240,4112,266256,4096,266240,4112,266256],a=[0,1024,32,1056,0,1024,32,1056,33554432,33555456,33554464,33555488,33554432,33555456,33554464,33555488],u=[0,268435456,524288,268959744,2,268435458,524290,268959746,0,268435456,524288,268959744,2,268435458,524290,268959746],c=[0,65536,2048,67584,536870912,536936448,536872960,536938496,131072,196608,133120,198656,537001984,537067520,537004032,537069568],l=[0,262144,0,262144,2,262146,2,262146,33554432,33816576,33554432,33816576,33554434,33816578,33554434,33816578],p=[0,268435456,8,268435464,0,268435456,8,268435464,1024,268436480,1032,268436488,1024,268436480,1032,268436488],m=[0,32,0,32,1048576,1048608,1048576,1048608,8192,8224,8192,8224,1056768,1056800,1056768,1056800],g=[0,16777216,512,16777728,2097152,18874368,2097664,18874880,67108864,83886080,67109376,83886592,69206016,85983232,69206528,85983744],y=[0,4096,134217728,134221824,524288,528384,134742016,134746112,16,4112,134217744,134221840,524304,528400,134742032,134746128],v=[0,4,256,260,0,4,256,260,1,5,257,261,1,5,257,261],b=r.length()>8?3:1,x=[],E=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0],N=0,w,C=0;C<b;C++){var A=r.getInt32(),R=r.getInt32();w=(A>>>4^R)&252645135,R^=w,A^=w<<4,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>2^R)&858993459,R^=w,A^=w<<2,w=(R>>>-16^A)&65535,A^=w,R^=w<<-16,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=(R>>>8^A)&16711935,A^=w,R^=w<<8,w=(A>>>1^R)&1431655765,R^=w,A^=w<<1,w=A<<8|R>>>20&240,A=R<<24|R<<8&16711680|R>>>8&65280|R>>>24&240,R=w;for(var M=0;M<E.length;++M){E[M]?(A=A<<2|A>>>26,R=R<<2|R>>>26):(A=A<<1|A>>>27,R=R<<1|R>>>27),A&=-15,R&=-15;var _=e[A>>>28]|t[A>>>24&15]|n[A>>>20&15]|i[A>>>16&15]|s[A>>>12&15]|a[A>>>8&15]|u[A>>>4&15],H=c[R>>>28]|l[R>>>24&15]|p[R>>>20&15]|m[R>>>16&15]|g[R>>>12&15]|y[R>>>8&15]|v[R>>>4&15];w=(H>>>16^_)&65535,x[N++]=_^w,x[N++]=H^w<<16}}return x}o(Yue,"_createKeys");function mM(r,e,t,n){var i=r.length===32?3:9,s;i===3?s=n?[30,-2,-2]:[0,32,2]:s=n?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2];var a,u=e[0],c=e[1];a=(u>>>4^c)&252645135,c^=a,u^=a<<4,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,u=u<<1|u>>>31,c=c<<1|c>>>31;for(var l=0;l<i;l+=3){for(var p=s[l+1],m=s[l+2],g=s[l];g!=p;g+=m){var y=c^r[g],v=(c>>>4|c<<28)^r[g+1];a=u,u=c,c=a^(Kue[y>>>24&63]|Gue[y>>>16&63]|Wue[y>>>8&63]|Que[y&63]|zue[v>>>24&63]|$ue[v>>>16&63]|Xue[v>>>8&63]|Jue[v&63])}a=u,u=c,c=a}u=u>>>1|u<<31,c=c>>>1|c<<31,a=(u>>>1^c)&1431655765,c^=a,u^=a<<1,a=(c>>>8^u)&16711935,u^=a,c^=a<<8,a=(c>>>2^u)&858993459,u^=a,c^=a<<2,a=(u>>>16^c)&65535,c^=a,u^=a<<16,a=(u>>>4^c)&252645135,c^=a,u^=a<<4,t[0]=u,t[1]=c}o(mM,"_updateBlock");function r2(r){r=r||{};var e=(r.mode||"CBC").toUpperCase(),t="DES-"+e,n;r.decrypt?n=kn.cipher.createDecipher(t,r.key):n=kn.cipher.createCipher(t,r.key);var i=n.start;return n.start=function(s,a){var u=null;a instanceof kn.util.ByteBuffer&&(u=a,a={}),a=a||{},a.output=u,a.iv=s,i.call(n,a)},n}o(r2,"_createCipher")});var n2=Z((lIe,vM)=>{"use strict";var pa=pr();Zg();Ac();kr();var Zue=pa.pkcs5=pa.pkcs5||{},Kl;pa.util.isNodejs&&!pa.options.usePureJavaScript&&(Kl=require("crypto"));vM.exports=pa.pbkdf2=Zue.pbkdf2=function(r,e,t,n,i,s){if(typeof i=="function"&&(s=i,i=null),pa.util.isNodejs&&!pa.options.usePureJavaScript&&Kl.pbkdf2&&(i===null||typeof i!="object")&&(Kl.pbkdf2Sync.length>4||!i||i==="sha1"))return typeof i!="string"&&(i="sha1"),r=Buffer.from(r,"binary"),e=Buffer.from(e,"binary"),s?Kl.pbkdf2Sync.length===4?Kl.pbkdf2(r,e,t,n,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2(r,e,t,n,i,function(w,C){if(w)return s(w);s(null,C.toString("binary"))}):Kl.pbkdf2Sync.length===4?Kl.pbkdf2Sync(r,e,t,n).toString("binary"):Kl.pbkdf2Sync(r,e,t,n,i).toString("binary");if((typeof i>"u"||i===null)&&(i="sha1"),typeof i=="string"){if(!(i in pa.md.algorithms))throw new Error("Unknown hash algorithm: "+i);i=pa.md[i].create()}var a=i.digestLength;if(n>4294967295*a){var u=new Error("Derived key is too long.");if(s)return s(u);throw u}var c=Math.ceil(n/a),l=n-(c-1)*a,p=pa.hmac.create();p.start(i,r);var m="",g,y,v;if(!s){for(var b=1;b<=c;++b){p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes();for(var x=2;x<=t;++x)p.start(null,null),p.update(v),y=p.digest().getBytes(),g=pa.util.xorBytes(g,y,a),v=y;m+=b<c?g:g.substr(0,l)}return m}var b=1,x;function E(){if(b>c)return s(null,m);p.start(null,null),p.update(e),p.update(pa.util.int32ToBytes(b)),g=v=p.digest().getBytes(),x=2,N()}o(E,"outer");function N(){if(x<=t)return p.start(null,null),p.update(v),y=p.digest().getBytes(),g=pa.util.xorBytes(g,y,a),v=y,++x,pa.util.setImmediate(N);m+=b<c?g:g.substr(0,l),++b,E()}o(N,"inner"),E()}});var kP=Z((pIe,wM)=>{"use strict";var Tc=pr();Ac();kr();var SM=wM.exports=Tc.sha256=Tc.sha256||{};Tc.md.sha256=Tc.md.algorithms.sha256=SM;SM.create=function(){xM||ece();var r=null,e=Tc.util.createBuffer(),t=new Array(64),n={algorithm:"sha256",blockLength:64,digestLength:32,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Tc.util.createBuffer(),r={h0:1779033703,h1:3144134277,h2:1013904242,h3:2773480762,h4:1359893119,h5:2600822924,h6:528734635,h7:1541459225},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Tc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),yM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Tc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(LP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4,h5:r.h5,h6:r.h6,h7:r.h7};yM(m,t,i);var g=Tc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g.putInt32(m.h5),g.putInt32(m.h6),g.putInt32(m.h7),g},n};var LP=null,xM=!1,bM=null;function ece(){LP="\x80",LP+=Tc.util.fillString("\0",64),bM=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],xM=!0}o(ece,"_init");function yM(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,y,v,b,x,E,N=t.length();N>=64;){for(l=0;l<16;++l)e[l]=t.getInt32();for(;l<64;++l)n=e[l-2],n=(n>>>17|n<<15)^(n>>>19|n<<13)^n>>>10,i=e[l-15],i=(i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3,e[l]=n+e[l-7]+i+e[l-16]|0;for(p=r.h0,m=r.h1,g=r.h2,y=r.h3,v=r.h4,b=r.h5,x=r.h6,E=r.h7,l=0;l<64;++l)a=(v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7),u=x^v&(b^x),s=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10),c=p&m|g&(p^m),n=E+a+u+bM[l]+e[l],i=s+c,E=x,x=b,b=v,v=y+n>>>0,y=g,g=m,m=p,p=n+i>>>0;r.h0=r.h0+p|0,r.h1=r.h1+m|0,r.h2=r.h2+g|0,r.h3=r.h3+y|0,r.h4=r.h4+v|0,r.h5=r.h5+b|0,r.h6=r.h6+x|0,r.h7=r.h7+E|0,N-=64}}o(yM,"_update")});var VP=Z((dIe,CM)=>{"use strict";var Rc=pr();kr();var i2=null;Rc.util.isNodejs&&!Rc.options.usePureJavaScript&&!process.versions["node-webkit"]&&(i2=require("crypto"));var tce=CM.exports=Rc.prng=Rc.prng||{};tce.create=function(r){for(var e={plugin:r,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""},t=r.md,n=new Array(32),i=0;i<32;++i)n[i]=t.create();e.pools=n,e.pool=0,e.generate=function(l,p){if(!p)return e.generateSync(l);var m=e.plugin.cipher,g=e.plugin.increment,y=e.plugin.formatKey,v=e.plugin.formatSeed,b=Rc.util.createBuffer();e.key=null,x();function x(E){if(E)return p(E);if(b.length()>=l)return p(null,b.getBytes(l));if(e.generated>1048575&&(e.key=null),e.key===null)return Rc.util.nextTick(function(){s(x)});var N=m(e.key,e.seed);e.generated+=N.length,b.putBytes(N),e.key=y(m(e.key,g(e.seed))),e.seed=v(m(e.key,e.seed)),Rc.util.setImmediate(x)}o(x,"generate")},e.generateSync=function(l){var p=e.plugin.cipher,m=e.plugin.increment,g=e.plugin.formatKey,y=e.plugin.formatSeed;e.key=null;for(var v=Rc.util.createBuffer();v.length()<l;){e.generated>1048575&&(e.key=null),e.key===null&&a();var b=p(e.key,e.seed);e.generated+=b.length,v.putBytes(b),e.key=g(p(e.key,m(e.seed))),e.seed=y(p(e.key,e.seed))}return v.getBytes(l)};function s(l){if(e.pools[0].messageLength>=32)return u(),l();var p=32-e.pools[0].messageLength<<5;e.seedFile(p,function(m,g){if(m)return l(m);e.collect(g),u(),l()})}o(s,"_reseed");function a(){if(e.pools[0].messageLength>=32)return u();var l=32-e.pools[0].messageLength<<5;e.collect(e.seedFileSync(l)),u()}o(a,"_reseedSync");function u(){e.reseeds=e.reseeds===4294967295?0:e.reseeds+1;var l=e.plugin.md.create();l.update(e.keyBytes);for(var p=1,m=0;m<32;++m)e.reseeds%p===0&&(l.update(e.pools[m].digest().getBytes()),e.pools[m].start()),p=p<<1;e.keyBytes=l.digest().getBytes(),l.start(),l.update(e.keyBytes);var g=l.digest().getBytes();e.key=e.plugin.formatKey(e.keyBytes),e.seed=e.plugin.formatSeed(g),e.generated=0}o(u,"_seed");function c(l){var p=null,m=Rc.util.globalScope,g=m.crypto||m.msCrypto;g&&g.getRandomValues&&(p=o(function(A){return g.getRandomValues(A)},"getRandomValues"));var y=Rc.util.createBuffer();if(p)for(;y.length()<l;){var v=Math.max(1,Math.min(l-y.length(),65536)/4),b=new Uint32Array(Math.floor(v));try{p(b);for(var x=0;x<b.length;++x)y.putInt32(b[x])}catch(A){if(!(typeof QuotaExceededError<"u"&&A instanceof QuotaExceededError))throw A}}if(y.length()<l)for(var E,N,w,C=Math.floor(Math.random()*65536);y.length()<l;){N=16807*(C&65535),E=16807*(C>>16),N+=(E&32767)<<16,N+=E>>15,N=(N&2147483647)+(N>>31),C=N&4294967295;for(var x=0;x<3;++x)w=C>>>(x<<3),w^=Math.floor(Math.random()*256),y.putByte(w&255)}return y.getBytes(l)}return o(c,"defaultSeedFile"),i2?(e.seedFile=function(l,p){i2.randomBytes(l,function(m,g){if(m)return p(m);p(null,g.toString())})},e.seedFileSync=function(l){return i2.randomBytes(l).toString()}):(e.seedFile=function(l,p){try{p(null,c(l))}catch(m){p(m)}},e.seedFileSync=c),e.collect=function(l){for(var p=l.length,m=0;m<p;++m)e.pools[e.pool].update(l.substr(m,1)),e.pool=e.pool===31?0:e.pool+1},e.collectInt=function(l,p){for(var m="",g=0;g<p;g+=8)m+=String.fromCharCode(l>>g&255);e.collect(m)},e.registerWorker=function(l){if(l===self)e.seedFile=function(m,g){function y(v){var b=v.data;b.forge&&b.forge.prng&&(self.removeEventListener("message",y),g(b.forge.prng.err,b.forge.prng.bytes))}o(y,"listener"),self.addEventListener("message",y),self.postMessage({forge:{prng:{needed:m}}})};else{var p=o(function(m){var g=m.data;g.forge&&g.forge.prng&&e.seedFile(g.forge.prng.needed,function(y,v){l.postMessage({forge:{prng:{err:y,bytes:v}}})})},"listener");l.addEventListener("message",p)}},e}});var Lo=Z((gIe,jP)=>{"use strict";var Xi=pr();Bp();kP();VP();kr();(function(){if(Xi.random&&Xi.random.getBytes){jP.exports=Xi.random;return}(function(r){var e={},t=new Array(4),n=Xi.util.createBuffer();e.formatKey=function(m){var g=Xi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),Xi.aes._expandKey(m,!1)},e.formatSeed=function(m){var g=Xi.util.createBuffer(m);return m=new Array(4),m[0]=g.getInt32(),m[1]=g.getInt32(),m[2]=g.getInt32(),m[3]=g.getInt32(),m},e.cipher=function(m,g){return Xi.aes._updateBlock(m,g,t,!1),n.putInt32(t[0]),n.putInt32(t[1]),n.putInt32(t[2]),n.putInt32(t[3]),n.getBytes()},e.increment=function(m){return++m[3],m},e.md=Xi.md.sha256;function i(){var m=Xi.prng.create(e);return m.getBytes=function(g,y){return m.generate(g,y)},m.getBytesSync=function(g){return m.generate(g)},m}o(i,"spawnPrng");var s=i(),a=null,u=Xi.util.globalScope,c=u.crypto||u.msCrypto;if(c&&c.getRandomValues&&(a=o(function(m){return c.getRandomValues(m)},"getRandomValues")),Xi.options.usePureJavaScript||!Xi.util.isNodejs&&!a){if(typeof window>"u"||window.document,s.collectInt(+new Date,32),typeof navigator<"u"){var l="";for(var p in navigator)try{typeof navigator[p]=="string"&&(l+=navigator[p])}catch{}s.collect(l),l=null}r&&(r().mousemove(function(m){s.collectInt(m.clientX,16),s.collectInt(m.clientY,16)}),r().keypress(function(m){s.collectInt(m.charCode,8)}))}if(!Xi.random)Xi.random=s;else for(var p in s)Xi.random[p]=s[p];Xi.random.createInstance=i,jP.exports=Xi.random})(typeof jQuery<"u"?jQuery:null)})()});var MP=Z((yIe,NM)=>{"use strict";var Ra=pr();kr();var UP=[217,120,249,196,25,221,181,237,40,233,253,121,74,160,216,157,198,126,55,131,43,118,83,142,98,76,100,136,68,139,251,162,23,154,89,245,135,179,79,19,97,69,109,141,9,129,125,50,189,143,64,235,134,183,123,11,240,149,33,34,92,107,78,130,84,214,101,147,206,96,178,28,115,86,192,20,167,140,241,220,18,117,202,31,59,190,228,209,66,61,212,48,163,60,182,38,111,191,14,218,70,105,7,87,39,242,29,155,188,148,67,3,248,17,199,246,144,239,62,231,6,195,213,47,200,102,30,215,8,232,234,222,128,82,238,247,132,170,114,172,53,77,106,42,150,26,210,113,90,21,73,116,75,159,208,94,4,24,164,236,194,224,65,110,15,81,203,204,36,145,175,80,161,244,112,57,153,124,58,133,35,184,180,122,252,2,54,91,37,85,151,49,45,93,250,152,227,138,146,174,5,223,41,16,103,108,186,201,211,0,230,207,225,158,168,44,99,22,1,63,88,226,137,169,13,56,52,27,171,51,255,176,187,72,12,95,185,177,205,46,197,243,219,71,229,165,156,119,10,166,32,104,254,127,193,173],EM=[1,2,3,5],rce=o(function(r,e){return r<<e&65535|(r&65535)>>16-e},"rol"),nce=o(function(r,e){return(r&65535)>>e|r<<16-e&65535},"ror");NM.exports=Ra.rc2=Ra.rc2||{};Ra.rc2.expandKey=function(r,e){typeof r=="string"&&(r=Ra.util.createBuffer(r)),e=e||128;var t=r,n=r.length(),i=e,s=Math.ceil(i/8),a=255>>(i&7),u;for(u=n;u<128;u++)t.putByte(UP[t.at(u-1)+t.at(u-n)&255]);for(t.setAt(128-s,UP[t.at(128-s)&a]),u=127-s;u>=0;u--)t.setAt(u,UP[t.at(u+1)^t.at(u+s)]);return t};var AM=o(function(r,e,t){var n=!1,i=null,s=null,a=null,u,c,l,p,m=[];for(r=Ra.rc2.expandKey(r,e),l=0;l<64;l++)m.push(r.getInt16Le());t?(u=o(function(v){for(l=0;l<4;l++)v[l]+=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),v[l]=rce(v[l],EM[l]),p++},"mixRound"),c=o(function(v){for(l=0;l<4;l++)v[l]+=m[v[(l+3)%4]&63]},"mashRound")):(u=o(function(v){for(l=3;l>=0;l--)v[l]=nce(v[l],EM[l]),v[l]-=m[p]+(v[(l+3)%4]&v[(l+2)%4])+(~v[(l+3)%4]&v[(l+1)%4]),p--},"mixRound"),c=o(function(v){for(l=3;l>=0;l--)v[l]-=m[v[(l+3)%4]&63]},"mashRound"));var g=o(function(v){var b=[];for(l=0;l<4;l++){var x=i.getInt16Le();a!==null&&(t?x^=a.getInt16Le():a.putInt16Le(x)),b.push(x&65535)}p=t?0:63;for(var E=0;E<v.length;E++)for(var N=0;N<v[E][0];N++)v[E][1](b);for(l=0;l<4;l++)a!==null&&(t?a.putInt16Le(b[l]):b[l]^=a.getInt16Le()),s.putInt16Le(b[l])},"runPlan"),y=null;return y={start:o(function(v,b){v&&typeof v=="string"&&(v=Ra.util.createBuffer(v)),n=!1,i=Ra.util.createBuffer(),s=b||new Ra.util.createBuffer,a=v,y.output=s},"start"),update:o(function(v){for(n||i.putBuffer(v);i.length()>=8;)g([[5,u],[1,c],[6,u],[1,c],[5,u]])},"update"),finish:o(function(v){var b=!0;if(t)if(v)b=v(8,i,!t);else{var x=i.length()===8?8:8-i.length();i.fillWithByte(x,x)}if(b&&(n=!0,y.update()),!t&&(b=i.length()===0,b))if(v)b=v(8,s,!t);else{var E=s.length(),N=s.at(E-1);N>E?b=!1:s.truncate(N)}return b},"finish")},y},"createCipher");Ra.rc2.startEncrypting=function(r,e,t){var n=Ra.rc2.createEncryptionCipher(r,128);return n.start(e,t),n};Ra.rc2.createEncryptionCipher=function(r,e){return AM(r,e,!0)};Ra.rc2.startDecrypting=function(r,e,t){var n=Ra.rc2.createDecryptionCipher(r,128);return n.start(e,t),n};Ra.rc2.createDecryptionCipher=function(r,e){return AM(r,e,!1)}});var Vx=Z((xIe,BM)=>{"use strict";var qP=pr();BM.exports=qP.jsbn=qP.jsbn||{};var $l,ice=0xdeadbeefcafe,IM=(ice&16777215)==15715070;function He(r,e,t){this.data=[],r!=null&&(typeof r=="number"?this.fromNumber(r,e,t):e==null&&typeof r!="string"?this.fromString(r,256):this.fromString(r,e))}o(He,"BigInteger");qP.jsbn.BigInteger=He;function Vr(){return new He(null)}o(Vr,"nbi");function sce(r,e,t,n,i,s){for(;--s>=0;){var a=e*this.data[r++]+t.data[n]+i;i=Math.floor(a/67108864),t.data[n++]=a&67108863}return i}o(sce,"am1");function ace(r,e,t,n,i,s){for(var a=e&32767,u=e>>15;--s>=0;){var c=this.data[r]&32767,l=this.data[r++]>>15,p=u*c+l*a;c=a*c+((p&32767)<<15)+t.data[n]+(i&1073741823),i=(c>>>30)+(p>>>15)+u*l+(i>>>30),t.data[n++]=c&1073741823}return i}o(ace,"am2");function TM(r,e,t,n,i,s){for(var a=e&16383,u=e>>14;--s>=0;){var c=this.data[r]&16383,l=this.data[r++]>>14,p=u*c+l*a;c=a*c+((p&16383)<<14)+t.data[n]+i,i=(c>>28)+(p>>14)+u*l,t.data[n++]=c&268435455}return i}o(TM,"am3");typeof navigator>"u"?(He.prototype.am=TM,$l=28):IM&&navigator.appName=="Microsoft Internet Explorer"?(He.prototype.am=ace,$l=30):IM&&navigator.appName!="Netscape"?(He.prototype.am=sce,$l=26):(He.prototype.am=TM,$l=28);He.prototype.DB=$l;He.prototype.DM=(1<<$l)-1;He.prototype.DV=1<<$l;var HP=52;He.prototype.FV=Math.pow(2,HP);He.prototype.F1=HP-$l;He.prototype.F2=2*$l-HP;var oce="0123456789abcdefghijklmnopqrstuvwxyz",s2=new Array,tv,ko;tv=48;for(ko=0;ko<=9;++ko)s2[tv++]=ko;tv=97;for(ko=10;ko<36;++ko)s2[tv++]=ko;tv=65;for(ko=10;ko<36;++ko)s2[tv++]=ko;function RM(r){return oce.charAt(r)}o(RM,"int2char");function DM(r,e){var t=s2[r.charCodeAt(e)];return t??-1}o(DM,"intAt");function uce(r){for(var e=this.t-1;e>=0;--e)r.data[e]=this.data[e];r.t=this.t,r.s=this.s}o(uce,"bnpCopyTo");function cce(r){this.t=1,this.s=r<0?-1:0,r>0?this.data[0]=r:r<-1?this.data[0]=r+this.DV:this.t=0}o(cce,"bnpFromInt");function Lp(r){var e=Vr();return e.fromInt(r),e}o(Lp,"nbv");function lce(r,e){var t;if(e==16)t=4;else if(e==8)t=3;else if(e==256)t=8;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else{this.fromRadix(r,e);return}this.t=0,this.s=0;for(var n=r.length,i=!1,s=0;--n>=0;){var a=t==8?r[n]&255:DM(r,n);if(a<0){r.charAt(n)=="-"&&(i=!0);continue}i=!1,s==0?this.data[this.t++]=a:s+t>this.DB?(this.data[this.t-1]|=(a&(1<<this.DB-s)-1)<<s,this.data[this.t++]=a>>this.DB-s):this.data[this.t-1]|=a<<s,s+=t,s>=this.DB&&(s-=this.DB)}t==8&&(r[0]&128)!=0&&(this.s=-1,s>0&&(this.data[this.t-1]|=(1<<this.DB-s)-1<<s)),this.clamp(),i&&He.ZERO.subTo(this,this)}o(lce,"bnpFromString");function fce(){for(var r=this.s&this.DM;this.t>0&&this.data[this.t-1]==r;)--this.t}o(fce,"bnpClamp");function pce(r){if(this.s<0)return"-"+this.negate().toString(r);var e;if(r==16)e=4;else if(r==8)e=3;else if(r==2)e=1;else if(r==32)e=5;else if(r==4)e=2;else return this.toRadix(r);var t=(1<<e)-1,n,i=!1,s="",a=this.t,u=this.DB-a*this.DB%e;if(a-- >0)for(u<this.DB&&(n=this.data[a]>>u)>0&&(i=!0,s=RM(n));a>=0;)u<e?(n=(this.data[a]&(1<<u)-1)<<e-u,n|=this.data[--a]>>(u+=this.DB-e)):(n=this.data[a]>>(u-=e)&t,u<=0&&(u+=this.DB,--a)),n>0&&(i=!0),i&&(s+=RM(n));return i?s:"0"}o(pce,"bnToString");function hce(){var r=Vr();return He.ZERO.subTo(this,r),r}o(hce,"bnNegate");function dce(){return this.s<0?this.negate():this}o(dce,"bnAbs");function mce(r){var e=this.s-r.s;if(e!=0)return e;var t=this.t;if(e=t-r.t,e!=0)return this.s<0?-e:e;for(;--t>=0;)if((e=this.data[t]-r.data[t])!=0)return e;return 0}o(mce,"bnCompareTo");function a2(r){var e=1,t;return(t=r>>>16)!=0&&(r=t,e+=16),(t=r>>8)!=0&&(r=t,e+=8),(t=r>>4)!=0&&(r=t,e+=4),(t=r>>2)!=0&&(r=t,e+=2),(t=r>>1)!=0&&(r=t,e+=1),e}o(a2,"nbits");function gce(){return this.t<=0?0:this.DB*(this.t-1)+a2(this.data[this.t-1]^this.s&this.DM)}o(gce,"bnBitLength");function vce(r,e){var t;for(t=this.t-1;t>=0;--t)e.data[t+r]=this.data[t];for(t=r-1;t>=0;--t)e.data[t]=0;e.t=this.t+r,e.s=this.s}o(vce,"bnpDLShiftTo");function yce(r,e){for(var t=r;t<this.t;++t)e.data[t-r]=this.data[t];e.t=Math.max(this.t-r,0),e.s=this.s}o(yce,"bnpDRShiftTo");function Sce(r,e){var t=r%this.DB,n=this.DB-t,i=(1<<n)-1,s=Math.floor(r/this.DB),a=this.s<<t&this.DM,u;for(u=this.t-1;u>=0;--u)e.data[u+s+1]=this.data[u]>>n|a,a=(this.data[u]&i)<<t;for(u=s-1;u>=0;--u)e.data[u]=0;e.data[s]=a,e.t=this.t+s+1,e.s=this.s,e.clamp()}o(Sce,"bnpLShiftTo");function xce(r,e){e.s=this.s;var t=Math.floor(r/this.DB);if(t>=this.t){e.t=0;return}var n=r%this.DB,i=this.DB-n,s=(1<<n)-1;e.data[0]=this.data[t]>>n;for(var a=t+1;a<this.t;++a)e.data[a-t-1]|=(this.data[a]&s)<<i,e.data[a-t]=this.data[a]>>n;n>0&&(e.data[this.t-t-1]|=(this.s&s)<<i),e.t=this.t-t,e.clamp()}o(xce,"bnpRShiftTo");function bce(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]-r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n-=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n-=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n-=r.s}e.s=n<0?-1:0,n<-1?e.data[t++]=this.DV+n:n>0&&(e.data[t++]=n),e.t=t,e.clamp()}o(bce,"bnpSubTo");function wce(r,e){var t=this.abs(),n=r.abs(),i=t.t;for(e.t=i+n.t;--i>=0;)e.data[i]=0;for(i=0;i<n.t;++i)e.data[i+t.t]=t.am(0,n.data[i],e,i,0,t.t);e.s=0,e.clamp(),this.s!=r.s&&He.ZERO.subTo(e,e)}o(wce,"bnpMultiplyTo");function Cce(r){for(var e=this.abs(),t=r.t=2*e.t;--t>=0;)r.data[t]=0;for(t=0;t<e.t-1;++t){var n=e.am(t,e.data[t],r,2*t,0,1);(r.data[t+e.t]+=e.am(t+1,2*e.data[t],r,2*t+1,n,e.t-t-1))>=e.DV&&(r.data[t+e.t]-=e.DV,r.data[t+e.t+1]=1)}r.t>0&&(r.data[r.t-1]+=e.am(t,e.data[t],r,2*t,0,1)),r.s=0,r.clamp()}o(Cce,"bnpSquareTo");function Ece(r,e,t){var n=r.abs();if(!(n.t<=0)){var i=this.abs();if(i.t<n.t){e?.fromInt(0),t!=null&&this.copyTo(t);return}t==null&&(t=Vr());var s=Vr(),a=this.s,u=r.s,c=this.DB-a2(n.data[n.t-1]);c>0?(n.lShiftTo(c,s),i.lShiftTo(c,t)):(n.copyTo(s),i.copyTo(t));var l=s.t,p=s.data[l-1];if(p!=0){var m=p*(1<<this.F1)+(l>1?s.data[l-2]>>this.F2:0),g=this.FV/m,y=(1<<this.F1)/m,v=1<<this.F2,b=t.t,x=b-l,E=e??Vr();for(s.dlShiftTo(x,E),t.compareTo(E)>=0&&(t.data[t.t++]=1,t.subTo(E,t)),He.ONE.dlShiftTo(l,E),E.subTo(s,s);s.t<l;)s.data[s.t++]=0;for(;--x>=0;){var N=t.data[--b]==p?this.DM:Math.floor(t.data[b]*g+(t.data[b-1]+v)*y);if((t.data[b]+=s.am(0,N,t,x,0,l))<N)for(s.dlShiftTo(x,E),t.subTo(E,t);t.data[b]<--N;)t.subTo(E,t)}e!=null&&(t.drShiftTo(l,e),a!=u&&He.ZERO.subTo(e,e)),t.t=l,t.clamp(),c>0&&t.rShiftTo(c,t),a<0&&He.ZERO.subTo(t,t)}}}o(Ece,"bnpDivRemTo");function Ace(r){var e=Vr();return this.abs().divRemTo(r,null,e),this.s<0&&e.compareTo(He.ZERO)>0&&r.subTo(e,e),e}o(Ace,"bnMod");function Zd(r){this.m=r}o(Zd,"Classic");function Nce(r){return r.s<0||r.compareTo(this.m)>=0?r.mod(this.m):r}o(Nce,"cConvert");function Ice(r){return r}o(Ice,"cRevert");function Tce(r){r.divRemTo(this.m,null,r)}o(Tce,"cReduce");function Rce(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Rce,"cMulTo");function Dce(r,e){r.squareTo(e),this.reduce(e)}o(Dce,"cSqrTo");Zd.prototype.convert=Nce;Zd.prototype.revert=Ice;Zd.prototype.reduce=Tce;Zd.prototype.mulTo=Rce;Zd.prototype.sqrTo=Dce;function _ce(){if(this.t<1)return 0;var r=this.data[0];if((r&1)==0)return 0;var e=r&3;return e=e*(2-(r&15)*e)&15,e=e*(2-(r&255)*e)&255,e=e*(2-((r&65535)*e&65535))&65535,e=e*(2-r*e%this.DV)%this.DV,e>0?this.DV-e:-e}o(_ce,"bnpInvDigit");function em(r){this.m=r,this.mp=r.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<r.DB-15)-1,this.mt2=2*r.t}o(em,"Montgomery");function Oce(r){var e=Vr();return r.abs().dlShiftTo(this.m.t,e),e.divRemTo(this.m,null,e),r.s<0&&e.compareTo(He.ZERO)>0&&this.m.subTo(e,e),e}o(Oce,"montConvert");function Pce(r){var e=Vr();return r.copyTo(e),this.reduce(e),e}o(Pce,"montRevert");function Bce(r){for(;r.t<=this.mt2;)r.data[r.t++]=0;for(var e=0;e<this.m.t;++e){var t=r.data[e]&32767,n=t*this.mpl+((t*this.mph+(r.data[e]>>15)*this.mpl&this.um)<<15)&r.DM;for(t=e+this.m.t,r.data[t]+=this.m.am(0,n,r,e,0,this.m.t);r.data[t]>=r.DV;)r.data[t]-=r.DV,r.data[++t]++}r.clamp(),r.drShiftTo(this.m.t,r),r.compareTo(this.m)>=0&&r.subTo(this.m,r)}o(Bce,"montReduce");function Fce(r,e){r.squareTo(e),this.reduce(e)}o(Fce,"montSqrTo");function Lce(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Lce,"montMulTo");em.prototype.convert=Oce;em.prototype.revert=Pce;em.prototype.reduce=Bce;em.prototype.mulTo=Lce;em.prototype.sqrTo=Fce;function kce(){return(this.t>0?this.data[0]&1:this.s)==0}o(kce,"bnpIsEven");function Vce(r,e){if(r>4294967295||r<1)return He.ONE;var t=Vr(),n=Vr(),i=e.convert(this),s=a2(r)-1;for(i.copyTo(t);--s>=0;)if(e.sqrTo(t,n),(r&1<<s)>0)e.mulTo(n,i,t);else{var a=t;t=n,n=a}return e.revert(t)}o(Vce,"bnpExp");function jce(r,e){var t;return r<256||e.isEven()?t=new Zd(e):t=new em(e),this.exp(r,t)}o(jce,"bnModPowInt");He.prototype.copyTo=uce;He.prototype.fromInt=cce;He.prototype.fromString=lce;He.prototype.clamp=fce;He.prototype.dlShiftTo=vce;He.prototype.drShiftTo=yce;He.prototype.lShiftTo=Sce;He.prototype.rShiftTo=xce;He.prototype.subTo=bce;He.prototype.multiplyTo=wce;He.prototype.squareTo=Cce;He.prototype.divRemTo=Ece;He.prototype.invDigit=_ce;He.prototype.isEven=kce;He.prototype.exp=Vce;He.prototype.toString=pce;He.prototype.negate=hce;He.prototype.abs=dce;He.prototype.compareTo=mce;He.prototype.bitLength=gce;He.prototype.mod=Ace;He.prototype.modPowInt=jce;He.ZERO=Lp(0);He.ONE=Lp(1);function Uce(){var r=Vr();return this.copyTo(r),r}o(Uce,"bnClone");function Mce(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this.data[0];if(this.t==0)return 0}return(this.data[1]&(1<<32-this.DB)-1)<<this.DB|this.data[0]}o(Mce,"bnIntValue");function qce(){return this.t==0?this.s:this.data[0]<<24>>24}o(qce,"bnByteValue");function Hce(){return this.t==0?this.s:this.data[0]<<16>>16}o(Hce,"bnShortValue");function zce(r){return Math.floor(Math.LN2*this.DB/Math.log(r))}o(zce,"bnpChunkSize");function Kce(){return this.s<0?-1:this.t<=0||this.t==1&&this.data[0]<=0?0:1}o(Kce,"bnSigNum");function $ce(r){if(r==null&&(r=10),this.signum()==0||r<2||r>36)return"0";var e=this.chunkSize(r),t=Math.pow(r,e),n=Lp(t),i=Vr(),s=Vr(),a="";for(this.divRemTo(n,i,s);i.signum()>0;)a=(t+s.intValue()).toString(r).substr(1)+a,i.divRemTo(n,i,s);return s.intValue().toString(r)+a}o($ce,"bnpToRadix");function Gce(r,e){this.fromInt(0),e==null&&(e=10);for(var t=this.chunkSize(e),n=Math.pow(e,t),i=!1,s=0,a=0,u=0;u<r.length;++u){var c=DM(r,u);if(c<0){r.charAt(u)=="-"&&this.signum()==0&&(i=!0);continue}a=e*a+c,++s>=t&&(this.dMultiply(n),this.dAddOffset(a,0),s=0,a=0)}s>0&&(this.dMultiply(Math.pow(e,s)),this.dAddOffset(a,0)),i&&He.ZERO.subTo(this,this)}o(Gce,"bnpFromRadix");function Xce(r,e,t){if(typeof e=="number")if(r<2)this.fromInt(1);else for(this.fromNumber(r,t),this.testBit(r-1)||this.bitwiseTo(He.ONE.shiftLeft(r-1),zP,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(e);)this.dAddOffset(2,0),this.bitLength()>r&&this.subTo(He.ONE.shiftLeft(r-1),this);else{var n=new Array,i=r&7;n.length=(r>>3)+1,e.nextBytes(n),i>0?n[0]&=(1<<i)-1:n[0]=0,this.fromString(n,256)}}o(Xce,"bnpFromNumber");function Wce(){var r=this.t,e=new Array;e[0]=this.s;var t=this.DB-r*this.DB%8,n,i=0;if(r-- >0)for(t<this.DB&&(n=this.data[r]>>t)!=(this.s&this.DM)>>t&&(e[i++]=n|this.s<<this.DB-t);r>=0;)t<8?(n=(this.data[r]&(1<<t)-1)<<8-t,n|=this.data[--r]>>(t+=this.DB-8)):(n=this.data[r]>>(t-=8)&255,t<=0&&(t+=this.DB,--r)),(n&128)!=0&&(n|=-256),i==0&&(this.s&128)!=(n&128)&&++i,(i>0||n!=this.s)&&(e[i++]=n);return e}o(Wce,"bnToByteArray");function Jce(r){return this.compareTo(r)==0}o(Jce,"bnEquals");function Qce(r){return this.compareTo(r)<0?this:r}o(Qce,"bnMin");function Yce(r){return this.compareTo(r)>0?this:r}o(Yce,"bnMax");function Zce(r,e,t){var n,i,s=Math.min(r.t,this.t);for(n=0;n<s;++n)t.data[n]=e(this.data[n],r.data[n]);if(r.t<this.t){for(i=r.s&this.DM,n=s;n<this.t;++n)t.data[n]=e(this.data[n],i);t.t=this.t}else{for(i=this.s&this.DM,n=s;n<r.t;++n)t.data[n]=e(i,r.data[n]);t.t=r.t}t.s=e(this.s,r.s),t.clamp()}o(Zce,"bnpBitwiseTo");function ele(r,e){return r&e}o(ele,"op_and");function tle(r){var e=Vr();return this.bitwiseTo(r,ele,e),e}o(tle,"bnAnd");function zP(r,e){return r|e}o(zP,"op_or");function rle(r){var e=Vr();return this.bitwiseTo(r,zP,e),e}o(rle,"bnOr");function _M(r,e){return r^e}o(_M,"op_xor");function nle(r){var e=Vr();return this.bitwiseTo(r,_M,e),e}o(nle,"bnXor");function OM(r,e){return r&~e}o(OM,"op_andnot");function ile(r){var e=Vr();return this.bitwiseTo(r,OM,e),e}o(ile,"bnAndNot");function sle(){for(var r=Vr(),e=0;e<this.t;++e)r.data[e]=this.DM&~this.data[e];return r.t=this.t,r.s=~this.s,r}o(sle,"bnNot");function ale(r){var e=Vr();return r<0?this.rShiftTo(-r,e):this.lShiftTo(r,e),e}o(ale,"bnShiftLeft");function ole(r){var e=Vr();return r<0?this.lShiftTo(-r,e):this.rShiftTo(r,e),e}o(ole,"bnShiftRight");function ule(r){if(r==0)return-1;var e=0;return(r&65535)==0&&(r>>=16,e+=16),(r&255)==0&&(r>>=8,e+=8),(r&15)==0&&(r>>=4,e+=4),(r&3)==0&&(r>>=2,e+=2),(r&1)==0&&++e,e}o(ule,"lbit");function cle(){for(var r=0;r<this.t;++r)if(this.data[r]!=0)return r*this.DB+ule(this.data[r]);return this.s<0?this.t*this.DB:-1}o(cle,"bnGetLowestSetBit");function lle(r){for(var e=0;r!=0;)r&=r-1,++e;return e}o(lle,"cbit");function fle(){for(var r=0,e=this.s&this.DM,t=0;t<this.t;++t)r+=lle(this.data[t]^e);return r}o(fle,"bnBitCount");function ple(r){var e=Math.floor(r/this.DB);return e>=this.t?this.s!=0:(this.data[e]&1<<r%this.DB)!=0}o(ple,"bnTestBit");function hle(r,e){var t=He.ONE.shiftLeft(r);return this.bitwiseTo(t,e,t),t}o(hle,"bnpChangeBit");function dle(r){return this.changeBit(r,zP)}o(dle,"bnSetBit");function mle(r){return this.changeBit(r,OM)}o(mle,"bnClearBit");function gle(r){return this.changeBit(r,_M)}o(gle,"bnFlipBit");function vle(r,e){for(var t=0,n=0,i=Math.min(r.t,this.t);t<i;)n+=this.data[t]+r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;if(r.t<this.t){for(n+=r.s;t<this.t;)n+=this.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=this.s}else{for(n+=this.s;t<r.t;)n+=r.data[t],e.data[t++]=n&this.DM,n>>=this.DB;n+=r.s}e.s=n<0?-1:0,n>0?e.data[t++]=n:n<-1&&(e.data[t++]=this.DV+n),e.t=t,e.clamp()}o(vle,"bnpAddTo");function yle(r){var e=Vr();return this.addTo(r,e),e}o(yle,"bnAdd");function Sle(r){var e=Vr();return this.subTo(r,e),e}o(Sle,"bnSubtract");function xle(r){var e=Vr();return this.multiplyTo(r,e),e}o(xle,"bnMultiply");function ble(r){var e=Vr();return this.divRemTo(r,e,null),e}o(ble,"bnDivide");function wle(r){var e=Vr();return this.divRemTo(r,null,e),e}o(wle,"bnRemainder");function Cle(r){var e=Vr(),t=Vr();return this.divRemTo(r,e,t),new Array(e,t)}o(Cle,"bnDivideAndRemainder");function Ele(r){this.data[this.t]=this.am(0,r-1,this,0,0,this.t),++this.t,this.clamp()}o(Ele,"bnpDMultiply");function Ale(r,e){if(r!=0){for(;this.t<=e;)this.data[this.t++]=0;for(this.data[e]+=r;this.data[e]>=this.DV;)this.data[e]-=this.DV,++e>=this.t&&(this.data[this.t++]=0),++this.data[e]}}o(Ale,"bnpDAddOffset");function kx(){}o(kx,"NullExp");function PM(r){return r}o(PM,"nNop");function Nle(r,e,t){r.multiplyTo(e,t)}o(Nle,"nMulTo");function Ile(r,e){r.squareTo(e)}o(Ile,"nSqrTo");kx.prototype.convert=PM;kx.prototype.revert=PM;kx.prototype.mulTo=Nle;kx.prototype.sqrTo=Ile;function Tle(r){return this.exp(r,new kx)}o(Tle,"bnPow");function Rle(r,e,t){var n=Math.min(this.t+r.t,e);for(t.s=0,t.t=n;n>0;)t.data[--n]=0;var i;for(i=t.t-this.t;n<i;++n)t.data[n+this.t]=this.am(0,r.data[n],t,n,0,this.t);for(i=Math.min(r.t,e);n<i;++n)this.am(0,r.data[n],t,n,0,e-n);t.clamp()}o(Rle,"bnpMultiplyLowerTo");function Dle(r,e,t){--e;var n=t.t=this.t+r.t-e;for(t.s=0;--n>=0;)t.data[n]=0;for(n=Math.max(e-this.t,0);n<r.t;++n)t.data[this.t+n-e]=this.am(e-n,r.data[n],t,0,0,this.t+n-e);t.clamp(),t.drShiftTo(1,t)}o(Dle,"bnpMultiplyUpperTo");function rv(r){this.r2=Vr(),this.q3=Vr(),He.ONE.dlShiftTo(2*r.t,this.r2),this.mu=this.r2.divide(r),this.m=r}o(rv,"Barrett");function _le(r){if(r.s<0||r.t>2*this.m.t)return r.mod(this.m);if(r.compareTo(this.m)<0)return r;var e=Vr();return r.copyTo(e),this.reduce(e),e}o(_le,"barrettConvert");function Ole(r){return r}o(Ole,"barrettRevert");function Ple(r){for(r.drShiftTo(this.m.t-1,this.r2),r.t>this.m.t+1&&(r.t=this.m.t+1,r.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);r.compareTo(this.r2)<0;)r.dAddOffset(1,this.m.t+1);for(r.subTo(this.r2,r);r.compareTo(this.m)>=0;)r.subTo(this.m,r)}o(Ple,"barrettReduce");function Ble(r,e){r.squareTo(e),this.reduce(e)}o(Ble,"barrettSqrTo");function Fle(r,e,t){r.multiplyTo(e,t),this.reduce(t)}o(Fle,"barrettMulTo");rv.prototype.convert=_le;rv.prototype.revert=Ole;rv.prototype.reduce=Ple;rv.prototype.mulTo=Fle;rv.prototype.sqrTo=Ble;function Lle(r,e){var t=r.bitLength(),n,i=Lp(1),s;if(t<=0)return i;t<18?n=1:t<48?n=3:t<144?n=4:t<768?n=5:n=6,t<8?s=new Zd(e):e.isEven()?s=new rv(e):s=new em(e);var a=new Array,u=3,c=n-1,l=(1<<n)-1;if(a[1]=s.convert(this),n>1){var p=Vr();for(s.sqrTo(a[1],p);u<=l;)a[u]=Vr(),s.mulTo(p,a[u-2],a[u]),u+=2}var m=r.t-1,g,y=!0,v=Vr(),b;for(t=a2(r.data[m])-1;m>=0;){for(t>=c?g=r.data[m]>>t-c&l:(g=(r.data[m]&(1<<t+1)-1)<<c-t,m>0&&(g|=r.data[m-1]>>this.DB+t-c)),u=n;(g&1)==0;)g>>=1,--u;if((t-=u)<0&&(t+=this.DB,--m),y)a[g].copyTo(i),y=!1;else{for(;u>1;)s.sqrTo(i,v),s.sqrTo(v,i),u-=2;u>0?s.sqrTo(i,v):(b=i,i=v,v=b),s.mulTo(v,a[g],i)}for(;m>=0&&(r.data[m]&1<<t)==0;)s.sqrTo(i,v),b=i,i=v,v=b,--t<0&&(t=this.DB-1,--m)}return s.revert(i)}o(Lle,"bnModPow");function kle(r){var e=this.s<0?this.negate():this.clone(),t=r.s<0?r.negate():r.clone();if(e.compareTo(t)<0){var n=e;e=t,t=n}var i=e.getLowestSetBit(),s=t.getLowestSetBit();if(s<0)return e;for(i<s&&(s=i),s>0&&(e.rShiftTo(s,e),t.rShiftTo(s,t));e.signum()>0;)(i=e.getLowestSetBit())>0&&e.rShiftTo(i,e),(i=t.getLowestSetBit())>0&&t.rShiftTo(i,t),e.compareTo(t)>=0?(e.subTo(t,e),e.rShiftTo(1,e)):(t.subTo(e,t),t.rShiftTo(1,t));return s>0&&t.lShiftTo(s,t),t}o(kle,"bnGCD");function Vle(r){if(r<=0)return 0;var e=this.DV%r,t=this.s<0?r-1:0;if(this.t>0)if(e==0)t=this.data[0]%r;else for(var n=this.t-1;n>=0;--n)t=(e*t+this.data[n])%r;return t}o(Vle,"bnpModInt");function jle(r){var e=r.isEven();if(this.isEven()&&e||r.signum()==0)return He.ZERO;for(var t=r.clone(),n=this.clone(),i=Lp(1),s=Lp(0),a=Lp(0),u=Lp(1);t.signum()!=0;){for(;t.isEven();)t.rShiftTo(1,t),e?((!i.isEven()||!s.isEven())&&(i.addTo(this,i),s.subTo(r,s)),i.rShiftTo(1,i)):s.isEven()||s.subTo(r,s),s.rShiftTo(1,s);for(;n.isEven();)n.rShiftTo(1,n),e?((!a.isEven()||!u.isEven())&&(a.addTo(this,a),u.subTo(r,u)),a.rShiftTo(1,a)):u.isEven()||u.subTo(r,u),u.rShiftTo(1,u);t.compareTo(n)>=0?(t.subTo(n,t),e&&i.subTo(a,i),s.subTo(u,s)):(n.subTo(t,n),e&&a.subTo(i,a),u.subTo(s,u))}if(n.compareTo(He.ONE)!=0)return He.ZERO;if(u.compareTo(r)>=0)return u.subtract(r);if(u.signum()<0)u.addTo(r,u);else return u;return u.signum()<0?u.add(r):u}o(jle,"bnModInverse");var Tu=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509],Ule=(1<<26)/Tu[Tu.length-1];function Mle(r){var e,t=this.abs();if(t.t==1&&t.data[0]<=Tu[Tu.length-1]){for(e=0;e<Tu.length;++e)if(t.data[0]==Tu[e])return!0;return!1}if(t.isEven())return!1;for(e=1;e<Tu.length;){for(var n=Tu[e],i=e+1;i<Tu.length&&n<Ule;)n*=Tu[i++];for(n=t.modInt(n);e<i;)if(n%Tu[e++]==0)return!1}return t.millerRabin(r)}o(Mle,"bnIsProbablePrime");function qle(r){var e=this.subtract(He.ONE),t=e.getLowestSetBit();if(t<=0)return!1;for(var n=e.shiftRight(t),i=Hle(),s,a=0;a<r;++a){do s=new He(this.bitLength(),i);while(s.compareTo(He.ONE)<=0||s.compareTo(e)>=0);var u=s.modPow(n,this);if(u.compareTo(He.ONE)!=0&&u.compareTo(e)!=0){for(var c=1;c++<t&&u.compareTo(e)!=0;)if(u=u.modPowInt(2,this),u.compareTo(He.ONE)==0)return!1;if(u.compareTo(e)!=0)return!1}}return!0}o(qle,"bnpMillerRabin");function Hle(){return{nextBytes:o(function(r){for(var e=0;e<r.length;++e)r[e]=Math.floor(Math.random()*256)},"nextBytes")}}o(Hle,"bnGetPrng");He.prototype.chunkSize=zce;He.prototype.toRadix=$ce;He.prototype.fromRadix=Gce;He.prototype.fromNumber=Xce;He.prototype.bitwiseTo=Zce;He.prototype.changeBit=hle;He.prototype.addTo=vle;He.prototype.dMultiply=Ele;He.prototype.dAddOffset=Ale;He.prototype.multiplyLowerTo=Rle;He.prototype.multiplyUpperTo=Dle;He.prototype.modInt=Vle;He.prototype.millerRabin=qle;He.prototype.clone=Uce;He.prototype.intValue=Mce;He.prototype.byteValue=qce;He.prototype.shortValue=Hce;He.prototype.signum=Kce;He.prototype.toByteArray=Wce;He.prototype.equals=Jce;He.prototype.min=Qce;He.prototype.max=Yce;He.prototype.and=tle;He.prototype.or=rle;He.prototype.xor=nle;He.prototype.andNot=ile;He.prototype.not=sle;He.prototype.shiftLeft=ale;He.prototype.shiftRight=ole;He.prototype.getLowestSetBit=cle;He.prototype.bitCount=fle;He.prototype.testBit=ple;He.prototype.setBit=dle;He.prototype.clearBit=mle;He.prototype.flipBit=gle;He.prototype.add=yle;He.prototype.subtract=Sle;He.prototype.multiply=xle;He.prototype.divide=ble;He.prototype.remainder=wle;He.prototype.divideAndRemainder=Cle;He.prototype.modPow=Lle;He.prototype.modInverse=jle;He.prototype.pow=Tle;He.prototype.gcd=kle;He.prototype.isProbablePrime=Mle});var nv=Z((wIe,VM)=>{"use strict";var Dc=pr();Ac();kr();var LM=VM.exports=Dc.sha1=Dc.sha1||{};Dc.md.sha1=Dc.md.algorithms.sha1=LM;LM.create=function(){kM||zle();var r=null,e=Dc.util.createBuffer(),t=new Array(80),n={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};return n.start=function(){n.messageLength=0,n.fullMessageLength=n.messageLength64=[];for(var i=n.messageLengthSize/4,s=0;s<i;++s)n.fullMessageLength.push(0);return e=Dc.util.createBuffer(),r={h0:1732584193,h1:4023233417,h2:2562383102,h3:271733878,h4:3285377520},n},n.start(),n.update=function(i,s){s==="utf8"&&(i=Dc.util.encodeUtf8(i));var a=i.length;n.messageLength+=a,a=[a/4294967296>>>0,a>>>0];for(var u=n.fullMessageLength.length-1;u>=0;--u)n.fullMessageLength[u]+=a[1],a[1]=a[0]+(n.fullMessageLength[u]/4294967296>>>0),n.fullMessageLength[u]=n.fullMessageLength[u]>>>0,a[0]=a[1]/4294967296>>>0;return e.putBytes(i),FM(r,t,e),(e.read>2048||e.length()===0)&&e.compact(),n},n.digest=function(){var i=Dc.util.createBuffer();i.putBytes(e.bytes());var s=n.fullMessageLength[n.fullMessageLength.length-1]+n.messageLengthSize,a=s&n.blockLength-1;i.putBytes(KP.substr(0,n.blockLength-a));for(var u,c,l=n.fullMessageLength[0]*8,p=0;p<n.fullMessageLength.length-1;++p)u=n.fullMessageLength[p+1]*8,c=u/4294967296>>>0,l+=c,i.putInt32(l>>>0),l=u>>>0;i.putInt32(l);var m={h0:r.h0,h1:r.h1,h2:r.h2,h3:r.h3,h4:r.h4};FM(m,t,i);var g=Dc.util.createBuffer();return g.putInt32(m.h0),g.putInt32(m.h1),g.putInt32(m.h2),g.putInt32(m.h3),g.putInt32(m.h4),g},n};var KP=null,kM=!1;function zle(){KP="\x80",KP+=Dc.util.fillString("\0",64),kM=!0}o(zle,"_init");function FM(r,e,t){for(var n,i,s,a,u,c,l,p,m=t.length();m>=64;){for(i=r.h0,s=r.h1,a=r.h2,u=r.h3,c=r.h4,p=0;p<16;++p)n=t.getInt32(),e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<20;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=u^s&(a^u),n=(i<<5|i>>>27)+l+c+1518500249+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<32;++p)n=e[p-3]^e[p-8]^e[p-14]^e[p-16],n=n<<1|n>>>31,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<40;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+1859775393+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<60;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s&a|u&(s^a),n=(i<<5|i>>>27)+l+c+2400959708+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;for(;p<80;++p)n=e[p-6]^e[p-16]^e[p-28]^e[p-32],n=n<<2|n>>>30,e[p]=n,l=s^a^u,n=(i<<5|i>>>27)+l+c+3395469782+n,c=u,u=a,a=(s<<30|s>>>2)>>>0,s=i,i=n;r.h0=r.h0+i|0,r.h1=r.h1+s|0,r.h2=r.h2+a|0,r.h3=r.h3+u|0,r.h4=r.h4+c|0,m-=64}}o(FM,"_update")});var $P=Z((EIe,UM)=>{"use strict";var _c=pr();kr();Lo();nv();var jM=UM.exports=_c.pkcs1=_c.pkcs1||{};jM.encode_rsa_oaep=function(r,e,t){var n,i,s,a;typeof t=="string"?(n=t,i=arguments[3]||void 0,s=arguments[4]||void 0):t&&(n=t.label||void 0,i=t.seed||void 0,s=t.md||void 0,t.mgf1&&t.mgf1.md&&(a=t.mgf1.md)),s?s.start():s=_c.md.sha1.create(),a||(a=s);var u=Math.ceil(r.n.bitLength()/8),c=u-2*s.digestLength-2;if(e.length>c){var l=new Error("RSAES-OAEP input message length is too long.");throw l.length=e.length,l.maxLength=c,l}n||(n=""),s.update(n,"raw");for(var p=s.digest(),m="",g=c-e.length,y=0;y<g;y++)m+="\0";var v=p.getBytes()+m+""+e;if(!i)i=_c.random.getBytes(s.digestLength);else if(i.length!==s.digestLength){var l=new Error("Invalid RSAES-OAEP seed. The seed length must match the digest length.");throw l.seedLength=i.length,l.digestLength=s.digestLength,l}var b=o2(i,u-s.digestLength-1,a),x=_c.util.xorBytes(v,b,v.length),E=o2(x,s.digestLength,a),N=_c.util.xorBytes(i,E,i.length);return"\0"+N+x};jM.decode_rsa_oaep=function(r,e,t){var n,i,s;typeof t=="string"?(n=t,i=arguments[3]||void 0):t&&(n=t.label||void 0,i=t.md||void 0,t.mgf1&&t.mgf1.md&&(s=t.mgf1.md));var a=Math.ceil(r.n.bitLength()/8);if(e.length!==a){var x=new Error("RSAES-OAEP encoded message length is invalid.");throw x.length=e.length,x.expectedLength=a,x}if(i===void 0?i=_c.md.sha1.create():i.start(),s||(s=i),a<2*i.digestLength+2)throw new Error("RSAES-OAEP key is too short for the hash function.");n||(n=""),i.update(n,"raw");for(var u=i.digest().getBytes(),c=e.charAt(0),l=e.substring(1,i.digestLength+1),p=e.substring(1+i.digestLength),m=o2(p,i.digestLength,s),g=_c.util.xorBytes(l,m,l.length),y=o2(g,a-i.digestLength-1,s),v=_c.util.xorBytes(p,y,p.length),b=v.substring(0,i.digestLength),x=c!=="\0",E=0;E<i.digestLength;++E)x|=u.charAt(E)!==b.charAt(E);for(var N=1,w=i.digestLength,C=i.digestLength;C<v.length;C++){var A=v.charCodeAt(C),R=A&1^1,M=N?65534:0;x|=A&M,N=N&R,w+=N}if(x||v.charCodeAt(w)!==1)throw new Error("Invalid RSAES-OAEP padding.");return v.substring(w+1)};function o2(r,e,t){t||(t=_c.md.sha1.create());for(var n="",i=Math.ceil(e/t.digestLength),s=0;s<i;++s){var a=String.fromCharCode(s>>24&255,s>>16&255,s>>8&255,s&255);t.start(),t.update(r+a),n+=t.digest().getBytes()}return n.substring(0,e)}o(o2,"rsa_mgf1")});var XP=Z((NIe,GP)=>{"use strict";var kp=pr();kr();Vx();Lo();(function(){if(kp.prime){GP.exports=kp.prime;return}var r=GP.exports=kp.prime=kp.prime||{},e=kp.jsbn.BigInteger,t=[6,4,2,4,2,4,6,2],n=new e(null);n.fromInt(30);var i=o(function(m,g){return m|g},"op_or");r.generateProbablePrime=function(m,g,y){typeof g=="function"&&(y=g,g={}),g=g||{};var v=g.algorithm||"PRIMEINC";typeof v=="string"&&(v={name:v}),v.options=v.options||{};var b=g.prng||kp.random,x={nextBytes:o(function(E){for(var N=b.getBytesSync(E.length),w=0;w<E.length;++w)E[w]=N.charCodeAt(w)},"nextBytes")};if(v.name==="PRIMEINC")return s(m,x,v.options,y);throw new Error("Invalid prime generation algorithm: "+v.name)};function s(m,g,y,v){return"workers"in y?c(m,g,y,v):a(m,g,y,v)}o(s,"primeincFindPrime");function a(m,g,y,v){var b=l(m,g),x=0,E=p(b.bitLength());"millerRabinTests"in y&&(E=y.millerRabinTests);var N=10;"maxBlockTime"in y&&(N=y.maxBlockTime),u(b,m,g,x,E,N,v)}o(a,"primeincFindPrimeWithoutWorkers");function u(m,g,y,v,b,x,E){var N=+new Date;do{if(m.bitLength()>g&&(m=l(g,y)),m.isProbablePrime(b))return E(null,m);m.dAddOffset(t[v++%8],0)}while(x<0||+new Date-N<x);kp.util.setImmediate(function(){u(m,g,y,v,b,x,E)})}o(u,"_primeinc");function c(m,g,y,v){if(typeof Worker>"u")return a(m,g,y,v);var b=l(m,g),x=y.workers,E=y.workLoad||100,N=E*30/8,w=y.workerScript||"forge/prime.worker.js";if(x===-1)return kp.util.estimateCores(function(A,R){A&&(R=2),x=R-1,C()});C();function C(){x=Math.max(1,x);for(var A=[],R=0;R<x;++R)A[R]=new Worker(w);for(var M=x,R=0;R<x;++R)A[R].addEventListener("message",H);var _=!1;function H(z){if(!_){--M;var K=z.data;if(K.found){for(var X=0;X<A.length;++X)A[X].terminate();return _=!0,v(null,new e(K.prime,16))}b.bitLength()>m&&(b=l(m,g));var ye=b.toString(16);z.target.postMessage({hex:ye,workLoad:E}),b.dAddOffset(N,0)}}o(H,"workerMessage")}o(C,"generate")}o(c,"primeincFindPrimeWithWorkers");function l(m,g){var y=new e(m,g),v=m-1;return y.testBit(v)||y.bitwiseTo(e.ONE.shiftLeft(v),i,y),y.dAddOffset(31-y.mod(n).byteValue(),0),y}o(l,"generateRandom");function p(m){return m<=100?27:m<=150?18:m<=200?15:m<=250?12:m<=300?9:m<=350?8:m<=400?7:m<=500?6:m<=600?5:m<=800?4:m<=1250?3:2}o(p,"getMillerRabinTests")})()});var jx=Z((TIe,GM)=>{"use strict";var Rt=pr();Iu();Vx();Fp();$P();XP();Lo();kr();typeof _r>"u"&&(_r=Rt.jsbn.BigInteger);var _r,WP=Rt.util.isNodejs?require("crypto"):null,be=Rt.asn1,Vo=Rt.util;Rt.pki=Rt.pki||{};GM.exports=Rt.pki.rsa=Rt.rsa=Rt.rsa||{};var nr=Rt.pki,Kle=[6,4,2,4,2,4,6,2],$le={name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]},Gle={name:"RSAPrivateKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPrivateKey.version",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"RSAPrivateKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyModulus"},{name:"RSAPrivateKey.publicExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPublicExponent"},{name:"RSAPrivateKey.privateExponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrivateExponent"},{name:"RSAPrivateKey.prime1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime1"},{name:"RSAPrivateKey.prime2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyPrime2"},{name:"RSAPrivateKey.exponent1",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent1"},{name:"RSAPrivateKey.exponent2",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyExponent2"},{name:"RSAPrivateKey.coefficient",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"privateKeyCoefficient"}]},Xle={name:"RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"RSAPublicKey.modulus",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyModulus"},{name:"RSAPublicKey.exponent",tagClass:be.Class.UNIVERSAL,type:be.Type.INTEGER,constructed:!1,capture:"publicKeyExponent"}]},Wle=Rt.pki.rsa.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{name:"SubjectPublicKeyInfo.subjectPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.BITSTRING,constructed:!1,value:[{name:"SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"rsaPublicKey"}]}]},Jle={name:"DigestInfo",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm",tagClass:be.Class.UNIVERSAL,type:be.Type.SEQUENCE,constructed:!0,value:[{name:"DigestInfo.DigestAlgorithm.algorithmIdentifier",tagClass:be.Class.UNIVERSAL,type:be.Type.OID,constructed:!1,capture:"algorithmIdentifier"},{name:"DigestInfo.DigestAlgorithm.parameters",tagClass:be.Class.UNIVERSAL,type:be.Type.NULL,capture:"parameters",optional:!0,constructed:!1}]},{name:"DigestInfo.digest",tagClass:be.Class.UNIVERSAL,type:be.Type.OCTETSTRING,constructed:!1,capture:"digest"}]},Qle=o(function(r){var e;if(r.algorithm in nr.oids)e=nr.oids[r.algorithm];else{var t=new Error("Unknown message digest algorithm.");throw t.algorithm=r.algorithm,t}var n=be.oidToDer(e).getBytes(),i=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]),s=be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[]);s.value.push(be.create(be.Class.UNIVERSAL,be.Type.OID,!1,n)),s.value.push(be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,""));var a=be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,r.digest().getBytes());return i.value.push(s),i.value.push(a),be.toDer(i).getBytes()},"emsaPkcs1v15encode"),KM=o(function(r,e,t){if(t)return r.modPow(e.e,e.n);if(!e.p||!e.q)return r.modPow(e.d,e.n);e.dP||(e.dP=e.d.mod(e.p.subtract(_r.ONE))),e.dQ||(e.dQ=e.d.mod(e.q.subtract(_r.ONE))),e.qInv||(e.qInv=e.q.modInverse(e.p));var n;do n=new _r(Rt.util.bytesToHex(Rt.random.getBytes(e.n.bitLength()/8)),16);while(n.compareTo(e.n)>=0||!n.gcd(e.n).equals(_r.ONE));r=r.multiply(n.modPow(e.e,e.n)).mod(e.n);for(var i=r.mod(e.p).modPow(e.dP,e.p),s=r.mod(e.q).modPow(e.dQ,e.q);i.compareTo(s)<0;)i=i.add(e.p);var a=i.subtract(s).multiply(e.qInv).mod(e.p).multiply(e.q).add(s);return a=a.multiply(n.modInverse(e.n)).mod(e.n),a},"_modPow");nr.rsa.encrypt=function(r,e,t){var n=t,i,s=Math.ceil(e.n.bitLength()/8);t!==!1&&t!==!0?(n=t===2,i=$M(r,e,t)):(i=Rt.util.createBuffer(),i.putBytes(r));for(var a=new _r(i.toHex(),16),u=KM(a,e,n),c=u.toString(16),l=Rt.util.createBuffer(),p=s-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),l.getBytes()};nr.rsa.decrypt=function(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8);if(r.length!==i){var s=new Error("Encrypted message length is invalid.");throw s.length=r.length,s.expected=i,s}var a=new _r(Rt.util.createBuffer(r).toHex(),16);if(a.compareTo(e.n)>=0)throw new Error("Encrypted message is invalid.");for(var u=KM(a,e,t),c=u.toString(16),l=Rt.util.createBuffer(),p=i-Math.ceil(c.length/2);p>0;)l.putByte(0),--p;return l.putBytes(Rt.util.hexToBytes(c)),n!==!1?u2(l.getBytes(),e,t):l.getBytes()};nr.rsa.createKeyPairGenerationState=function(r,e,t){typeof r=="string"&&(r=parseInt(r,10)),r=r||2048,t=t||{};var n=t.prng||Rt.random,i={nextBytes:o(function(u){for(var c=n.getBytesSync(u.length),l=0;l<u.length;++l)u[l]=c.charCodeAt(l)},"nextBytes")},s=t.algorithm||"PRIMEINC",a;if(s==="PRIMEINC")a={algorithm:s,state:0,bits:r,rng:i,eInt:e||65537,e:new _r(null),p:null,q:null,qBits:r>>1,pBits:r-(r>>1),pqState:0,num:null,keys:null},a.e.fromInt(a.eInt);else throw new Error("Invalid key generation algorithm: "+s);return a};nr.rsa.stepKeyPairGenerationState=function(r,e){"algorithm"in r||(r.algorithm="PRIMEINC");var t=new _r(null);t.fromInt(30);for(var n=0,i=o(function(m,g){return m|g},"op_or"),s=+new Date,a,u=0;r.keys===null&&(e<=0||u<e);){if(r.state===0){var c=r.p===null?r.pBits:r.qBits,l=c-1;r.pqState===0?(r.num=new _r(c,r.rng),r.num.testBit(l)||r.num.bitwiseTo(_r.ONE.shiftLeft(l),i,r.num),r.num.dAddOffset(31-r.num.mod(t).byteValue(),0),n=0,++r.pqState):r.pqState===1?r.num.bitLength()>c?r.pqState=0:r.num.isProbablePrime(Zle(r.num.bitLength()))?++r.pqState:r.num.dAddOffset(Kle[n++%8],0):r.pqState===2?r.pqState=r.num.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)===0?3:0:r.pqState===3&&(r.pqState=0,r.p===null?r.p=r.num:r.q=r.num,r.p!==null&&r.q!==null&&++r.state,r.num=null)}else if(r.state===1)r.p.compareTo(r.q)<0&&(r.num=r.p,r.p=r.q,r.q=r.num),++r.state;else if(r.state===2)r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),++r.state;else if(r.state===3)r.phi.gcd(r.e).compareTo(_r.ONE)===0?++r.state:(r.p=null,r.q=null,r.state=0);else if(r.state===4)r.n=r.p.multiply(r.q),r.n.bitLength()===r.bits?++r.state:(r.q=null,r.state=0);else if(r.state===5){var p=r.e.modInverse(r.phi);r.keys={privateKey:nr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:nr.rsa.setPublicKey(r.n,r.e)}}a=+new Date,u+=a-s,s=a}return r.keys!==null};nr.rsa.generateKeyPair=function(r,e,t,n){if(arguments.length===1?typeof r=="object"?(t=r,r=void 0):typeof r=="function"&&(n=r,r=void 0):arguments.length===2?typeof r=="number"?typeof e=="function"?(n=e,e=void 0):typeof e!="number"&&(t=e,e=void 0):(t=r,n=e,r=void 0,e=void 0):arguments.length===3&&(typeof e=="number"?typeof t=="function"&&(n=t,t=void 0):(n=t,t=e,e=void 0)),t=t||{},r===void 0&&(r=t.bits||2048),e===void 0&&(e=t.e||65537),!Rt.options.usePureJavaScript&&!t.prng&&r>=256&&r<=16384&&(e===65537||e===3)){if(n){if(MM("generateKeyPair"))return WP.generateKeyPair("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(u,c,l){if(u)return n(u);n(null,{privateKey:nr.privateKeyFromPem(l),publicKey:nr.publicKeyFromPem(c)})});if(qM("generateKey")&&qM("exportKey"))return Vo.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:zM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]).then(function(u){return Vo.globalScope.crypto.subtle.exportKey("pkcs8",u.privateKey)}).then(void 0,function(u){n(u)}).then(function(u){if(u){var c=nr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(u)));n(null,{privateKey:c,publicKey:nr.setRsaPublicKey(c.n,c.e)})}});if(HM("generateKey")&&HM("exportKey")){var i=Vo.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:r,publicExponent:zM(e),hash:{name:"SHA-256"}},!0,["sign","verify"]);i.oncomplete=function(u){var c=u.target.result,l=Vo.globalScope.msCrypto.subtle.exportKey("pkcs8",c.privateKey);l.oncomplete=function(p){var m=p.target.result,g=nr.privateKeyFromAsn1(be.fromDer(Rt.util.createBuffer(m)));n(null,{privateKey:g,publicKey:nr.setRsaPublicKey(g.n,g.e)})},l.onerror=function(p){n(p)}},i.onerror=function(u){n(u)};return}}else if(MM("generateKeyPairSync")){var s=WP.generateKeyPairSync("rsa",{modulusLength:r,publicExponent:e,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:nr.privateKeyFromPem(s.privateKey),publicKey:nr.publicKeyFromPem(s.publicKey)}}}var a=nr.rsa.createKeyPairGenerationState(r,e,t);if(!n)return nr.rsa.stepKeyPairGenerationState(a,0),a.keys;Yle(a,t,n)};nr.setRsaPublicKey=nr.rsa.setPublicKey=function(r,e){var t={n:r,e};return t.encrypt=function(n,i,s){if(typeof i=="string"?i=i.toUpperCase():i===void 0&&(i="RSAES-PKCS1-V1_5"),i==="RSAES-PKCS1-V1_5")i={encode:o(function(u,c,l){return $M(u,c,2).getBytes()},"encode")};else if(i==="RSA-OAEP"||i==="RSAES-OAEP")i={encode:o(function(u,c){return Rt.pkcs1.encode_rsa_oaep(c,u,s)},"encode")};else if(["RAW","NONE","NULL",null].indexOf(i)!==-1)i={encode:o(function(u){return u},"encode")};else if(typeof i=="string")throw new Error('Unsupported encryption scheme: "'+i+'".');var a=i.encode(n,t,!0);return nr.rsa.encrypt(a,t,!0)},t.verify=function(n,i,s,a){typeof s=="string"?s=s.toUpperCase():s===void 0&&(s="RSASSA-PKCS1-V1_5"),a===void 0&&(a={_parseAllDigestBytes:!0}),"_parseAllDigestBytes"in a||(a._parseAllDigestBytes=!0),s==="RSASSA-PKCS1-V1_5"?s={verify:o(function(c,l){l=u2(l,t,!0);var p=be.fromDer(l,{parseAllBytes:a._parseAllDigestBytes}),m={},g=[];if(!be.validate(p,Jle,m,g)){var y=new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value.");throw y.errors=g,y}var v=be.derToOid(m.algorithmIdentifier);if(!(v===Rt.oids.md2||v===Rt.oids.md5||v===Rt.oids.sha1||v===Rt.oids.sha224||v===Rt.oids.sha256||v===Rt.oids.sha384||v===Rt.oids.sha512||v===Rt.oids["sha512-224"]||v===Rt.oids["sha512-256"])){var y=new Error("Unknown RSASSA-PKCS1-v1_5 DigestAlgorithm identifier.");throw y.oid=v,y}if((v===Rt.oids.md2||v===Rt.oids.md5)&&!("parameters"in m))throw new Error("ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 DigestInfo value. Missing algorithm identifer NULL parameters.");return c===m.digest},"verify")}:(s==="NONE"||s==="NULL"||s===null)&&(s={verify:o(function(c,l){return l=u2(l,t,!0),c===l},"verify")});var u=nr.rsa.decrypt(i,t,!0,!1);return s.verify(n,u,t.n.bitLength())},t};nr.setRsaPrivateKey=nr.rsa.setPrivateKey=function(r,e,t,n,i,s,a,u){var c={n:r,e,d:t,p:n,q:i,dP:s,dQ:a,qInv:u};return c.decrypt=function(l,p,m){typeof p=="string"?p=p.toUpperCase():p===void 0&&(p="RSAES-PKCS1-V1_5");var g=nr.rsa.decrypt(l,c,!1,!1);if(p==="RSAES-PKCS1-V1_5")p={decode:u2};else if(p==="RSA-OAEP"||p==="RSAES-OAEP")p={decode:o(function(y,v){return Rt.pkcs1.decode_rsa_oaep(v,y,m)},"decode")};else if(["RAW","NONE","NULL",null].indexOf(p)!==-1)p={decode:o(function(y){return y},"decode")};else throw new Error('Unsupported encryption scheme: "'+p+'".');return p.decode(g,c,!1)},c.sign=function(l,p){var m=!1;typeof p=="string"&&(p=p.toUpperCase()),p===void 0||p==="RSASSA-PKCS1-V1_5"?(p={encode:Qle},m=1):(p==="NONE"||p==="NULL"||p===null)&&(p={encode:o(function(){return l},"encode")},m=1);var g=p.encode(l,c.n.bitLength());return nr.rsa.encrypt(g,c,m)},c};nr.wrapRsaPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(nr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.OCTETSTRING,!1,be.toDer(r).getBytes())])};nr.privateKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,$le,e,t)&&(r=be.fromDer(Rt.util.createBuffer(e.privateKey))),e={},t=[],!be.validate(r,Gle,e,t)){var n=new Error("Cannot read private key. ASN.1 object does not contain an RSAPrivateKey.");throw n.errors=t,n}var i,s,a,u,c,l,p,m;return i=Rt.util.createBuffer(e.privateKeyModulus).toHex(),s=Rt.util.createBuffer(e.privateKeyPublicExponent).toHex(),a=Rt.util.createBuffer(e.privateKeyPrivateExponent).toHex(),u=Rt.util.createBuffer(e.privateKeyPrime1).toHex(),c=Rt.util.createBuffer(e.privateKeyPrime2).toHex(),l=Rt.util.createBuffer(e.privateKeyExponent1).toHex(),p=Rt.util.createBuffer(e.privateKeyExponent2).toHex(),m=Rt.util.createBuffer(e.privateKeyCoefficient).toHex(),nr.setRsaPrivateKey(new _r(i,16),new _r(s,16),new _r(a,16),new _r(u,16),new _r(c,16),new _r(l,16),new _r(p,16),new _r(m,16))};nr.privateKeyToAsn1=nr.privateKeyToRSAPrivateKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,be.integerToDer(0).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.e)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.d)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.p)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.q)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.dP)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.dQ)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.qInv))])};nr.publicKeyFromAsn1=function(r){var e={},t=[];if(be.validate(r,Wle,e,t)){var n=be.derToOid(e.publicKeyOid);if(n!==nr.oids.rsaEncryption){var i=new Error("Cannot read public key. Unknown OID.");throw i.oid=n,i}r=e.rsaPublicKey}if(t=[],!be.validate(r,Xle,e,t)){var i=new Error("Cannot read public key. ASN.1 object does not contain an RSAPublicKey.");throw i.errors=t,i}var s=Rt.util.createBuffer(e.publicKeyModulus).toHex(),a=Rt.util.createBuffer(e.publicKeyExponent).toHex();return nr.setRsaPublicKey(new _r(s,16),new _r(a,16))};nr.publicKeyToAsn1=nr.publicKeyToSubjectPublicKeyInfo=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.OID,!1,be.oidToDer(nr.oids.rsaEncryption).getBytes()),be.create(be.Class.UNIVERSAL,be.Type.NULL,!1,"")]),be.create(be.Class.UNIVERSAL,be.Type.BITSTRING,!1,[nr.publicKeyToRSAPublicKey(r)])])};nr.publicKeyToRSAPublicKey=function(r){return be.create(be.Class.UNIVERSAL,be.Type.SEQUENCE,!0,[be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.n)),be.create(be.Class.UNIVERSAL,be.Type.INTEGER,!1,Oc(r.e))])};function $M(r,e,t){var n=Rt.util.createBuffer(),i=Math.ceil(e.n.bitLength()/8);if(r.length>i-11){var s=new Error("Message is too long for PKCS#1 v1.5 padding.");throw s.length=r.length,s.max=i-11,s}n.putByte(0),n.putByte(t);var a=i-3-r.length,u;if(t===0||t===1){u=t===0?0:255;for(var c=0;c<a;++c)n.putByte(u)}else for(;a>0;){for(var l=0,p=Rt.random.getBytes(a),c=0;c<a;++c)u=p.charCodeAt(c),u===0?++l:n.putByte(u);a=l}return n.putByte(0),n.putBytes(r),n}o($M,"_encodePkcs1_v1_5");function u2(r,e,t,n){var i=Math.ceil(e.n.bitLength()/8),s=Rt.util.createBuffer(r),a=s.getByte(),u=s.getByte();if(a!==0||t&&u!==0&&u!==1||!t&&u!=2||t&&u===0&&typeof n>"u")throw new Error("Encryption block is invalid.");var c=0;if(u===0){c=i-3-n;for(var l=0;l<c;++l)if(s.getByte()!==0)throw new Error("Encryption block is invalid.")}else if(u===1)for(c=0;s.length()>1;){if(s.getByte()!==255){--s.read;break}++c}else if(u===2)for(c=0;s.length()>1;){if(s.getByte()===0){--s.read;break}++c}var p=s.getByte();if(p!==0||c!==i-3-s.length())throw new Error("Encryption block is invalid.");return s.getBytes()}o(u2,"_decodePkcs1_v1_5");function Yle(r,e,t){typeof e=="function"&&(t=e,e={}),e=e||{};var n={algorithm:{name:e.algorithm||"PRIMEINC",options:{workers:e.workers||2,workLoad:e.workLoad||100,workerScript:e.workerScript}}};"prng"in e&&(n.prng=e.prng),i();function i(){s(r.pBits,function(u,c){if(u)return t(u);if(r.p=c,r.q!==null)return a(u,r.q);s(r.qBits,a)})}o(i,"generate");function s(u,c){Rt.prime.generateProbablePrime(u,n,c)}o(s,"getPrime");function a(u,c){if(u)return t(u);if(r.q=c,r.p.compareTo(r.q)<0){var l=r.p;r.p=r.q,r.q=l}if(r.p.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.p=null,i();return}if(r.q.subtract(_r.ONE).gcd(r.e).compareTo(_r.ONE)!==0){r.q=null,s(r.qBits,a);return}if(r.p1=r.p.subtract(_r.ONE),r.q1=r.q.subtract(_r.ONE),r.phi=r.p1.multiply(r.q1),r.phi.gcd(r.e).compareTo(_r.ONE)!==0){r.p=r.q=null,i();return}if(r.n=r.p.multiply(r.q),r.n.bitLength()!==r.bits){r.q=null,s(r.qBits,a);return}var p=r.e.modInverse(r.phi);r.keys={privateKey:nr.rsa.setPrivateKey(r.n,r.e,p,r.p,r.q,p.mod(r.p1),p.mod(r.q1),r.q.modInverse(r.p)),publicKey:nr.rsa.setPublicKey(r.n,r.e)},t(null,r.keys)}o(a,"finish")}o(Yle,"_generateKeyPair");function Oc(r){var e=r.toString(16);e[0]>="8"&&(e="00"+e);var t=Rt.util.hexToBytes(e);return t.length>1&&(t.charCodeAt(0)===0&&(t.charCodeAt(1)&128)===0||t.charCodeAt(0)===255&&(t.charCodeAt(1)&128)===128)?t.substr(1):t}o(Oc,"_bnToBytes");function Zle(r){return r<=100?27:r<=150?18:r<=200?15:r<=250?12:r<=300?9:r<=350?8:r<=400?7:r<=500?6:r<=600?5:r<=800?4:r<=1250?3:2}o(Zle,"_getMillerRabinTests");function MM(r){return Rt.util.isNodejs&&typeof WP[r]=="function"}o(MM,"_detectNodeCrypto");function qM(r){return typeof Vo.globalScope<"u"&&typeof Vo.globalScope.crypto=="object"&&typeof Vo.globalScope.crypto.subtle=="object"&&typeof Vo.globalScope.crypto.subtle[r]=="function"}o(qM,"_detectSubtleCrypto");function HM(r){return typeof Vo.globalScope<"u"&&typeof Vo.globalScope.msCrypto=="object"&&typeof Vo.globalScope.msCrypto.subtle=="object"&&typeof Vo.globalScope.msCrypto.subtle[r]=="function"}o(HM,"_detectSubtleMsCrypto");function zM(r){for(var e=Rt.util.hexToBytes(r.toString(16)),t=new Uint8Array(e.length),n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}o(zM,"_intToUint8Array")});var JP=Z((DIe,YM)=>{"use strict";var mt=pr();Bp();Iu();Lx();Ac();Fp();n2();Yd();Lo();MP();jx();kr();typeof XM>"u"&&(XM=mt.jsbn.BigInteger);var XM,Re=mt.asn1,ur=mt.pki=mt.pki||{};YM.exports=ur.pbe=mt.pbe=mt.pbe||{};var tm=ur.oids,efe={name:"EncryptedPrivateKeyInfo",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedPrivateKeyInfo.encryptionAlgorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encryptionOid"},{name:"AlgorithmIdentifier.parameters",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,captureAsn1:"encryptionParams"}]},{name:"EncryptedPrivateKeyInfo.encryptedData",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encryptedData"}]},tfe={name:"PBES2Algorithms",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.keyDerivationFunc.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"kdfOid"},{name:"PBES2Algorithms.params",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.params.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"kdfSalt"},{name:"PBES2Algorithms.params.iterationCount",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"kdfIterationCount"},{name:"PBES2Algorithms.params.keyLength",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,optional:!0,capture:"keyLength"},{name:"PBES2Algorithms.params.prf",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,optional:!0,value:[{name:"PBES2Algorithms.params.prf.algorithm",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"prfOid"}]}]}]},{name:"PBES2Algorithms.encryptionScheme",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"PBES2Algorithms.encryptionScheme.oid",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OID,constructed:!1,capture:"encOid"},{name:"PBES2Algorithms.encryptionScheme.iv",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"encIv"}]}]},rfe={name:"pkcs-12PbeParams",tagClass:Re.Class.UNIVERSAL,type:Re.Type.SEQUENCE,constructed:!0,value:[{name:"pkcs-12PbeParams.salt",tagClass:Re.Class.UNIVERSAL,type:Re.Type.OCTETSTRING,constructed:!1,capture:"salt"},{name:"pkcs-12PbeParams.iterations",tagClass:Re.Class.UNIVERSAL,type:Re.Type.INTEGER,constructed:!1,capture:"iterations"}]};ur.encryptPrivateKeyInfo=function(r,e,t){t=t||{},t.saltSize=t.saltSize||8,t.count=t.count||2048,t.algorithm=t.algorithm||"aes128",t.prfAlgorithm=t.prfAlgorithm||"sha1";var n=mt.random.getBytesSync(t.saltSize),i=t.count,s=Re.integerToDer(i),a,u,c;if(t.algorithm.indexOf("aes")===0||t.algorithm==="des"){var l,p,m;switch(t.algorithm){case"aes128":a=16,l=16,p=tm["aes128-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes192":a=24,l=16,p=tm["aes192-CBC"],m=mt.aes.createEncryptionCipher;break;case"aes256":a=32,l=16,p=tm["aes256-CBC"],m=mt.aes.createEncryptionCipher;break;case"des":a=8,l=8,p=tm.desCBC,m=mt.des.createEncryptionCipher;break;default:var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var y="hmacWith"+t.prfAlgorithm.toUpperCase(),v=QM(y),b=mt.pkcs5.pbkdf2(e,n,i,a,v),x=mt.random.getBytesSync(l),E=m(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes();var N=nfe(n,s,a,y);u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm.pkcs5PBES2).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm.pkcs5PBKDF2).getBytes()),N]),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(p).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,x)])])])}else if(t.algorithm==="3des"){a=24;var w=new mt.util.ByteBuffer(n),b=ur.pbe.generatePkcs12Key(e,w,1,i,a),x=ur.pbe.generatePkcs12Key(e,w,2,i,a),E=mt.des.createEncryptionCipher(b);E.start(x),E.update(Re.toDer(r)),E.finish(),c=E.output.getBytes(),u=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(tm["pbeWithSHAAnd3-KeyTripleDES-CBC"]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,n),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,s.getBytes())])])}else{var g=new Error("Cannot encrypt private key. Unknown encryption algorithm.");throw g.algorithm=t.algorithm,g}var C=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[u,Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,c)]);return C};ur.decryptPrivateKeyInfo=function(r,e){var t=null,n={},i=[];if(!Re.validate(r,efe,n,i)){var s=new Error("Cannot read encrypted private key. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=Re.derToOid(n.encryptionOid),u=ur.pbe.getCipher(a,n.encryptionParams,e),c=mt.util.createBuffer(n.encryptedData);return u.update(c),u.finish()&&(t=Re.fromDer(u.output)),t};ur.encryptedPrivateKeyToPem=function(r,e){var t={type:"ENCRYPTED PRIVATE KEY",body:Re.toDer(r).getBytes()};return mt.pem.encode(t,{maxline:e})};ur.encryptedPrivateKeyFromPem=function(r){var e=mt.pem.decode(r)[0];if(e.type!=="ENCRYPTED PRIVATE KEY"){var t=new Error('Could not convert encrypted private key from PEM; PEM header type is "ENCRYPTED PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert encrypted private key from PEM; PEM is encrypted.");return Re.fromDer(e.body)};ur.encryptRsaPrivateKey=function(r,e,t){if(t=t||{},!t.legacy){var n=ur.wrapRsaPrivateKey(ur.privateKeyToAsn1(r));return n=ur.encryptPrivateKeyInfo(n,e,t),ur.encryptedPrivateKeyToPem(n)}var i,s,a,u;switch(t.algorithm){case"aes128":i="AES-128-CBC",a=16,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes192":i="AES-192-CBC",a=24,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"aes256":i="AES-256-CBC",a=32,s=mt.random.getBytesSync(16),u=mt.aes.createEncryptionCipher;break;case"3des":i="DES-EDE3-CBC",a=24,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;case"des":i="DES-CBC",a=8,s=mt.random.getBytesSync(8),u=mt.des.createEncryptionCipher;break;default:var c=new Error('Could not encrypt RSA private key; unsupported encryption algorithm "'+t.algorithm+'".');throw c.algorithm=t.algorithm,c}var l=mt.pbe.opensslDeriveBytes(e,s.substr(0,8),a),p=u(l);p.start(s),p.update(Re.toDer(ur.privateKeyToAsn1(r))),p.finish();var m={type:"RSA PRIVATE KEY",procType:{version:"4",type:"ENCRYPTED"},dekInfo:{algorithm:i,parameters:mt.util.bytesToHex(s).toUpperCase()},body:p.output.getBytes()};return mt.pem.encode(m)};ur.decryptRsaPrivateKey=function(r,e){var t=null,n=mt.pem.decode(r)[0];if(n.type!=="ENCRYPTED PRIVATE KEY"&&n.type!=="PRIVATE KEY"&&n.type!=="RSA PRIVATE KEY"){var i=new Error('Could not convert private key from PEM; PEM header type is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".');throw i.headerType=i,i}if(n.procType&&n.procType.type==="ENCRYPTED"){var s,a;switch(n.dekInfo.algorithm){case"DES-CBC":s=8,a=mt.des.createDecryptionCipher;break;case"DES-EDE3-CBC":s=24,a=mt.des.createDecryptionCipher;break;case"AES-128-CBC":s=16,a=mt.aes.createDecryptionCipher;break;case"AES-192-CBC":s=24,a=mt.aes.createDecryptionCipher;break;case"AES-256-CBC":s=32,a=mt.aes.createDecryptionCipher;break;case"RC2-40-CBC":s=5,a=o(function(m){return mt.rc2.createDecryptionCipher(m,40)},"cipherFn");break;case"RC2-64-CBC":s=8,a=o(function(m){return mt.rc2.createDecryptionCipher(m,64)},"cipherFn");break;case"RC2-128-CBC":s=16,a=o(function(m){return mt.rc2.createDecryptionCipher(m,128)},"cipherFn");break;default:var i=new Error('Could not decrypt private key; unsupported encryption algorithm "'+n.dekInfo.algorithm+'".');throw i.algorithm=n.dekInfo.algorithm,i}var u=mt.util.hexToBytes(n.dekInfo.parameters),c=mt.pbe.opensslDeriveBytes(e,u.substr(0,8),s),l=a(c);if(l.start(u),l.update(mt.util.createBuffer(n.body)),l.finish())t=l.output.getBytes();else return t}else t=n.body;return n.type==="ENCRYPTED PRIVATE KEY"?t=ur.decryptPrivateKeyInfo(Re.fromDer(t),e):t=Re.fromDer(t),t!==null&&(t=ur.privateKeyFromAsn1(t)),t};ur.pbe.generatePkcs12Key=function(r,e,t,n,i,s){var a,u;if(typeof s>"u"||s===null){if(!("sha1"in mt.md))throw new Error('"sha1" hash algorithm unavailable.');s=mt.md.sha1.create()}var c=s.digestLength,l=s.blockLength,p=new mt.util.ByteBuffer,m=new mt.util.ByteBuffer;if(r!=null){for(u=0;u<r.length;u++)m.putInt16(r.charCodeAt(u));m.putInt16(0)}var g=m.length(),y=e.length(),v=new mt.util.ByteBuffer;v.fillWithByte(t,l);var b=l*Math.ceil(y/l),x=new mt.util.ByteBuffer;for(u=0;u<b;u++)x.putByte(e.at(u%y));var E=l*Math.ceil(g/l),N=new mt.util.ByteBuffer;for(u=0;u<E;u++)N.putByte(m.at(u%g));var w=x;w.putBuffer(N);for(var C=Math.ceil(i/c),A=1;A<=C;A++){var R=new mt.util.ByteBuffer;R.putBytes(v.bytes()),R.putBytes(w.bytes());for(var M=0;M<n;M++)s.start(),s.update(R.getBytes()),R=s.digest();var _=new mt.util.ByteBuffer;for(u=0;u<l;u++)_.putByte(R.at(u%c));var H=Math.ceil(y/l)+Math.ceil(g/l),z=new mt.util.ByteBuffer;for(a=0;a<H;a++){var K=new mt.util.ByteBuffer(w.getBytes(l)),X=511;for(u=_.length()-1;u>=0;u--)X=X>>8,X+=_.at(u)+K.at(u),K.setAt(u,X&255);z.putBuffer(K)}w=z,p.putBuffer(R)}return p.truncate(p.length()-i),p};ur.pbe.getCipher=function(r,e,t){switch(r){case ur.oids.pkcs5PBES2:return ur.pbe.getCipherForPBES2(r,e,t);case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:return ur.pbe.getCipherForPKCS12PBE(r,e,t);default:var n=new Error("Cannot read encrypted PBE data block. Unsupported OID.");throw n.oid=r,n.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"],n}};ur.pbe.getCipherForPBES2=function(r,e,t){var n={},i=[];if(!Re.validate(e,tfe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}if(r=Re.derToOid(n.kdfOid),r!==ur.oids.pkcs5PBKDF2){var s=new Error("Cannot read encrypted private key. Unsupported key derivation function OID.");throw s.oid=r,s.supportedOids=["pkcs5PBKDF2"],s}if(r=Re.derToOid(n.encOid),r!==ur.oids["aes128-CBC"]&&r!==ur.oids["aes192-CBC"]&&r!==ur.oids["aes256-CBC"]&&r!==ur.oids["des-EDE3-CBC"]&&r!==ur.oids.desCBC){var s=new Error("Cannot read encrypted private key. Unsupported encryption scheme OID.");throw s.oid=r,s.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"],s}var a=n.kdfSalt,u=mt.util.createBuffer(n.kdfIterationCount);u=u.getInt(u.length()<<3);var c,l;switch(ur.oids[r]){case"aes128-CBC":c=16,l=mt.aes.createDecryptionCipher;break;case"aes192-CBC":c=24,l=mt.aes.createDecryptionCipher;break;case"aes256-CBC":c=32,l=mt.aes.createDecryptionCipher;break;case"des-EDE3-CBC":c=24,l=mt.des.createDecryptionCipher;break;case"desCBC":c=8,l=mt.des.createDecryptionCipher;break}var p=JM(n.prfOid),m=mt.pkcs5.pbkdf2(t,a,u,c,p),g=n.encIv,y=l(m);return y.start(g),y};ur.pbe.getCipherForPKCS12PBE=function(r,e,t){var n={},i=[];if(!Re.validate(e,rfe,n,i)){var s=new Error("Cannot read password-based-encryption algorithm parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");throw s.errors=i,s}var a=mt.util.createBuffer(n.salt),u=mt.util.createBuffer(n.iterations);u=u.getInt(u.length()<<3);var c,l,p;switch(r){case ur.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:c=24,l=8,p=mt.des.startDecrypting;break;case ur.oids["pbewithSHAAnd40BitRC2-CBC"]:c=5,l=8,p=o(function(b,x){var E=mt.rc2.createDecryptionCipher(b,40);return E.start(x,null),E},"cipherFn");break;default:var s=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");throw s.oid=r,s}var m=JM(n.prfOid),g=ur.pbe.generatePkcs12Key(t,a,1,u,c,m);m.start();var y=ur.pbe.generatePkcs12Key(t,a,2,u,l,m);return p(g,y)};ur.pbe.opensslDeriveBytes=function(r,e,t,n){if(typeof n>"u"||n===null){if(!("md5"in mt.md))throw new Error('"md5" hash algorithm unavailable.');n=mt.md.md5.create()}e===null&&(e="");for(var i=[WM(n,r+e)],s=16,a=1;s<t;++a,s+=16)i.push(WM(n,i[a-1]+r+e));return i.join("").substr(0,t)};function WM(r,e){return r.start().update(e).digest().getBytes()}o(WM,"hash");function JM(r){var e;if(!r)e="hmacWithSHA1";else if(e=ur.oids[Re.derToOid(r)],!e){var t=new Error("Unsupported PRF OID.");throw t.oid=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}return QM(e)}o(JM,"prfOidToMessageDigest");function QM(r){var e=mt.md;switch(r){case"hmacWithSHA224":e=mt.md.sha512;case"hmacWithSHA1":case"hmacWithSHA256":case"hmacWithSHA384":case"hmacWithSHA512":r=r.substr(8).toLowerCase();break;default:var t=new Error("Unsupported PRF algorithm.");throw t.algorithm=r,t.supported=["hmacWithSHA1","hmacWithSHA224","hmacWithSHA256","hmacWithSHA384","hmacWithSHA512"],t}if(!e||!(r in e))throw new Error("Unknown hash algorithm: "+r);return e[r].create()}o(QM,"prfAlgorithmToMessageDigest");function nfe(r,e,t,n){var i=Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OCTETSTRING,!1,r),Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,e.getBytes())]);return n!=="hmacWithSHA1"&&i.value.push(Re.create(Re.Class.UNIVERSAL,Re.Type.INTEGER,!1,mt.util.hexToBytes(t.toString(16))),Re.create(Re.Class.UNIVERSAL,Re.Type.SEQUENCE,!0,[Re.create(Re.Class.UNIVERSAL,Re.Type.OID,!1,Re.oidToDer(ur.oids[n]).getBytes()),Re.create(Re.Class.UNIVERSAL,Re.Type.NULL,!1,"")])),i}o(nfe,"createPbkdf2Params")});var QP=Z((OIe,t6)=>{"use strict";var iv=pr();Iu();kr();var pt=iv.asn1,sv=t6.exports=iv.pkcs7asn1=iv.pkcs7asn1||{};iv.pkcs7=iv.pkcs7||{};iv.pkcs7.asn1=sv;var ZM={name:"ContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.ContentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,captureAsn1:"content"}]};sv.contentInfoValidator=ZM;var e6={name:"EncryptedContentInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentType",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};sv.envelopedDataValidator={name:"EnvelopedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EnvelopedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"recipientInfos"}].concat(e6)};sv.encryptedDataValidator={name:"EncryptedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"EncryptedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"}].concat(e6)};var ife={name:"SignerInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1},{name:"SignerInfo.issuerAndSerialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"digestParameter",optional:!0}]},{name:"SignerInfo.authenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,capture:"unauthenticatedAttributes"}]};sv.signedDataValidator={name:"SignedData",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"SignedData.Version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,constructed:!0,captureAsn1:"digestAlgorithms"},ZM,{name:"SignedData.Certificates",tagClass:pt.Class.CONTEXT_SPECIFIC,type:0,optional:!0,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:pt.Class.CONTEXT_SPECIFIC,type:1,optional:!0,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SET,capture:"signerInfos",optional:!0,value:[ife]}]};sv.recipientInfoValidator={name:"RecipientInfo",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.version",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:pt.Class.UNIVERSAL,type:pt.Type.INTEGER,constructed:!1,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.SEQUENCE,constructed:!0,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OID,constructed:!1,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:pt.Class.UNIVERSAL,constructed:!1,captureAsn1:"encParameter",optional:!0}]},{name:"RecipientInfo.encryptedKey",tagClass:pt.Class.UNIVERSAL,type:pt.Type.OCTETSTRING,constructed:!1,capture:"encKey"}]}});var YP=Z((PIe,r6)=>{"use strict";var rm=pr();kr();rm.mgf=rm.mgf||{};var sfe=r6.exports=rm.mgf.mgf1=rm.mgf1=rm.mgf1||{};sfe.create=function(r){var e={generate:o(function(t,n){for(var i=new rm.util.ByteBuffer,s=Math.ceil(n/r.digestLength),a=0;a<s;a++){var u=new rm.util.ByteBuffer;u.putInt32(a),r.start(),r.update(t+u.getBytes()),i.putBuffer(r.digest())}return i.truncate(i.length()-n),i.getBytes()},"generate")};return e}});var i6=Z((FIe,n6)=>{"use strict";var c2=pr();YP();n6.exports=c2.mgf=c2.mgf||{};c2.mgf.mgf1=c2.mgf1});var l2=Z((LIe,s6)=>{"use strict";var nm=pr();Lo();kr();var afe=s6.exports=nm.pss=nm.pss||{};afe.create=function(r){arguments.length===3&&(r={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]});var e=r.md,t=r.mgf,n=e.digestLength,i=r.salt||null;typeof i=="string"&&(i=nm.util.createBuffer(i));var s;if("saltLength"in r)s=r.saltLength;else if(i!==null)s=i.length();else throw new Error("Salt length not specified or specific salt not given.");if(i!==null&&i.length()!==s)throw new Error("Given salt length does not match length of given salt.");var a=r.prng||nm.random,u={};return u.encode=function(c,l){var p,m=l-1,g=Math.ceil(m/8),y=c.digest().getBytes();if(g<n+s+2)throw new Error("Message is too long to encrypt.");var v;i===null?v=a.getBytesSync(s):v=i.bytes();var b=new nm.util.ByteBuffer;b.fillWithByte(0,8),b.putBytes(y),b.putBytes(v),e.start(),e.update(b.getBytes());var x=e.digest().getBytes(),E=new nm.util.ByteBuffer;E.fillWithByte(0,g-s-n-2),E.putByte(1),E.putBytes(v);var N=E.getBytes(),w=g-n-1,C=t.generate(x,w),A="";for(p=0;p<w;p++)A+=String.fromCharCode(N.charCodeAt(p)^C.charCodeAt(p));var R=65280>>8*g-m&255;return A=String.fromCharCode(A.charCodeAt(0)&~R)+A.substr(1),A+x+"\xBC"},u.verify=function(c,l,p){var m,g=p-1,y=Math.ceil(g/8);if(l=l.substr(-y),y<n+s+2)throw new Error("Inconsistent parameters to PSS signature verification.");if(l.charCodeAt(y-1)!==188)throw new Error("Encoded message does not end in 0xBC.");var v=y-n-1,b=l.substr(0,v),x=l.substr(v,n),E=65280>>8*y-g&255;if((b.charCodeAt(0)&E)!==0)throw new Error("Bits beyond keysize not zero as expected.");var N=t.generate(x,v),w="";for(m=0;m<v;m++)w+=String.fromCharCode(b.charCodeAt(m)^N.charCodeAt(m));w=String.fromCharCode(w.charCodeAt(0)&~E)+w.substr(1);var C=y-n-s-2;for(m=0;m<C;m++)if(w.charCodeAt(m)!==0)throw new Error("Leftmost octets not zero as expected");if(w.charCodeAt(C)!==1)throw new Error("Inconsistent PSS signature, 0x01 marker not found");var A=w.substr(-s),R=new nm.util.ByteBuffer;R.fillWithByte(0,8),R.putBytes(c),R.putBytes(A),e.start(),e.update(R.getBytes());var M=e.digest().getBytes();return x===M},u}});var h2=Z((kIe,l6)=>{"use strict";var Dt=pr();Bp();Iu();Lx();Ac();i6();Fp();Yd();l2();jx();kr();var L=Dt.asn1,rt=l6.exports=Dt.pki=Dt.pki||{},Or=rt.oids,ai={};ai.CN=Or.commonName;ai.commonName="CN";ai.C=Or.countryName;ai.countryName="C";ai.L=Or.localityName;ai.localityName="L";ai.ST=Or.stateOrProvinceName;ai.stateOrProvinceName="ST";ai.O=Or.organizationName;ai.organizationName="O";ai.OU=Or.organizationalUnitName;ai.organizationalUnitName="OU";ai.E=Or.emailAddress;ai.emailAddress="E";var o6=Dt.pki.rsa.publicKeyValidator,ofe={name:"Certificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:L.Class.UNIVERSAL,type:L.Type.UTCTIME,constructed:!1,optional:!0,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:L.Class.UNIVERSAL,type:L.Type.GENERALIZEDTIME,constructed:!1,optional:!0,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certSubject"},o6,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,constructed:!0,optional:!0,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,constructed:!0,captureAsn1:"certExtensions",optional:!0}]},{name:"Certificate.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"certSignature"}]},ufe={name:"rsapss",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.hashAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:L.Class.CONTEXT_SPECIFIC,type:1,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:L.Class.UNIVERSAL,type:L.Class.SEQUENCE,constructed:!0,optional:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:L.Class.CONTEXT_SPECIFIC,type:2,optional:!0,value:[{name:"rsapss.saltLength.saltLength",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:L.Class.CONTEXT_SPECIFIC,type:3,optional:!0,value:[{name:"rsapss.trailer.trailer",tagClass:L.Class.UNIVERSAL,type:L.Class.INTEGER,constructed:!1,capture:"trailer"}]}]},cfe={name:"CertificationRequestInfo",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:L.Class.UNIVERSAL,type:L.Type.INTEGER,constructed:!1,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"certificationRequestInfoSubject"},o6,{name:"CertificationRequestInfo.attributes",tagClass:L.Class.CONTEXT_SPECIFIC,type:0,constructed:!0,optional:!0,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1},{name:"CertificationRequestInfo.attributes.value",tagClass:L.Class.UNIVERSAL,type:L.Type.SET,constructed:!0}]}]}]},lfe={name:"CertificationRequest",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,captureAsn1:"csr",value:[cfe,{name:"CertificationRequest.signatureAlgorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.SEQUENCE,constructed:!0,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:L.Class.UNIVERSAL,type:L.Type.OID,constructed:!1,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:L.Class.UNIVERSAL,optional:!0,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:L.Class.UNIVERSAL,type:L.Type.BITSTRING,constructed:!1,captureBitStringValue:"csrSignature"}]};rt.RDNAttributesAsArray=function(r,e){for(var t=[],n,i,s,a=0;a<r.value.length;++a){n=r.value[a];for(var u=0;u<n.value.length;++u)s={},i=n.value[u],s.type=L.derToOid(i.value[0].value),s.value=i.value[1].value,s.valueTagClass=i.value[1].type,s.type in Or&&(s.name=Or[s.type],s.name in ai&&(s.shortName=ai[s.name])),e&&(e.update(s.type),e.update(s.value)),t.push(s)}return t};rt.CRIAttributesAsArray=function(r){for(var e=[],t=0;t<r.length;++t)for(var n=r[t],i=L.derToOid(n.value[0].value),s=n.value[1].value,a=0;a<s.length;++a){var u={};if(u.type=i,u.value=s[a].value,u.valueTagClass=s[a].type,u.type in Or&&(u.name=Or[u.type],u.name in ai&&(u.shortName=ai[u.name])),u.type===Or.extensionRequest){u.extensions=[];for(var c=0;c<u.value.length;++c)u.extensions.push(rt.certificateExtensionFromAsn1(u.value[c]))}e.push(u)}return e};function Vp(r,e){typeof e=="string"&&(e={shortName:e});for(var t=null,n,i=0;t===null&&i<r.attributes.length;++i)n=r.attributes[i],(e.type&&e.type===n.type||e.name&&e.name===n.name||e.shortName&&e.shortName===n.shortName)&&(t=n);return t}o(Vp,"_getAttribute");var f2=o(function(r,e,t){var n={};if(r!==Or["RSASSA-PSS"])return n;t&&(n={hash:{algorithmOid:Or.sha1},mgf:{algorithmOid:Or.mgf1,hash:{algorithmOid:Or.sha1}},saltLength:20});var i={},s=[];if(!L.validate(e,ufe,i,s)){var a=new Error("Cannot read RSASSA-PSS parameter block.");throw a.errors=s,a}return i.hashOid!==void 0&&(n.hash=n.hash||{},n.hash.algorithmOid=L.derToOid(i.hashOid)),i.maskGenOid!==void 0&&(n.mgf=n.mgf||{},n.mgf.algorithmOid=L.derToOid(i.maskGenOid),n.mgf.hash=n.mgf.hash||{},n.mgf.hash.algorithmOid=L.derToOid(i.maskGenHashOid)),i.saltLength!==void 0&&(n.saltLength=i.saltLength.charCodeAt(0)),n},"_readSignatureParameters"),p2=o(function(r){switch(Or[r.signatureOid]){case"sha1WithRSAEncryption":case"sha1WithRSASignature":return Dt.md.sha1.create();case"md5WithRSAEncryption":return Dt.md.md5.create();case"sha256WithRSAEncryption":return Dt.md.sha256.create();case"sha384WithRSAEncryption":return Dt.md.sha384.create();case"sha512WithRSAEncryption":return Dt.md.sha512.create();case"RSASSA-PSS":return Dt.md.sha256.create();default:var e=new Error("Could not compute "+r.type+" digest. Unknown signature OID.");throw e.signatureOid=r.signatureOid,e}},"_createSignatureDigest"),u6=o(function(r){var e=r.certificate,t;switch(e.signatureOid){case Or.sha1WithRSAEncryption:case Or.sha1WithRSASignature:break;case Or["RSASSA-PSS"]:var n,i;if(n=Or[e.signatureParameters.mgf.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported MGF hash function.");throw s.oid=e.signatureParameters.mgf.hash.algorithmOid,s.name=n,s}if(i=Or[e.signatureParameters.mgf.algorithmOid],i===void 0||Dt.mgf[i]===void 0){var s=new Error("Unsupported MGF function.");throw s.oid=e.signatureParameters.mgf.algorithmOid,s.name=i,s}if(i=Dt.mgf[i].create(Dt.md[n].create()),n=Or[e.signatureParameters.hash.algorithmOid],n===void 0||Dt.md[n]===void 0){var s=new Error("Unsupported RSASSA-PSS hash function.");throw s.oid=e.signatureParameters.hash.algorithmOid,s.name=n,s}t=Dt.pss.create(Dt.md[n].create(),i,e.signatureParameters.saltLength);break}return e.publicKey.verify(r.md.digest().getBytes(),r.signature,t)},"_verifySignature");rt.certificateFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE"&&n.type!=="X509 CERTIFICATE"&&n.type!=="TRUSTED CERTIFICATE"){var i=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificateFromAsn1(s,e)};rt.certificateToPem=function(r,e){var t={type:"CERTIFICATE",body:L.toDer(rt.certificateToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyFromPem=function(r){var e=Dt.pem.decode(r)[0];if(e.type!=="PUBLIC KEY"&&e.type!=="RSA PUBLIC KEY"){var t=new Error('Could not convert public key from PEM; PEM header type is not "PUBLIC KEY" or "RSA PUBLIC KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert public key from PEM; PEM is encrypted.");var n=L.fromDer(e.body);return rt.publicKeyFromAsn1(n)};rt.publicKeyToPem=function(r,e){var t={type:"PUBLIC KEY",body:L.toDer(rt.publicKeyToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.publicKeyToRSAPublicKeyPem=function(r,e){var t={type:"RSA PUBLIC KEY",body:L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.getPublicKeyFingerprint=function(r,e){e=e||{};var t=e.md||Dt.md.sha1.create(),n=e.type||"RSAPublicKey",i;switch(n){case"RSAPublicKey":i=L.toDer(rt.publicKeyToRSAPublicKey(r)).getBytes();break;case"SubjectPublicKeyInfo":i=L.toDer(rt.publicKeyToAsn1(r)).getBytes();break;default:throw new Error('Unknown fingerprint type "'+e.type+'".')}t.start(),t.update(i);var s=t.digest();if(e.encoding==="hex"){var a=s.toHex();return e.delimiter?a.match(/.{2}/g).join(e.delimiter):a}else{if(e.encoding==="binary")return s.getBytes();if(e.encoding)throw new Error('Unknown encoding "'+e.encoding+'".')}return s};rt.certificationRequestFromPem=function(r,e,t){var n=Dt.pem.decode(r)[0];if(n.type!=="CERTIFICATE REQUEST"){var i=new Error('Could not convert certification request from PEM; PEM header type is not "CERTIFICATE REQUEST".');throw i.headerType=n.type,i}if(n.procType&&n.procType.type==="ENCRYPTED")throw new Error("Could not convert certification request from PEM; PEM is encrypted.");var s=L.fromDer(n.body,t);return rt.certificationRequestFromAsn1(s,e)};rt.certificationRequestToPem=function(r,e){var t={type:"CERTIFICATE REQUEST",body:L.toDer(rt.certificationRequestToAsn1(r)).getBytes()};return Dt.pem.encode(t,{maxline:e})};rt.createCertificate=function(){var r={};return r.version=2,r.serialNumber="00",r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.validity={},r.validity.notBefore=new Date,r.validity.notAfter=new Date,r.issuer={},r.issuer.getField=function(e){return Vp(r.issuer,e)},r.issuer.addField=function(e){jo([e]),r.issuer.attributes.push(e)},r.issuer.attributes=[],r.issuer.hash=null,r.subject={},r.subject.getField=function(e){return Vp(r.subject,e)},r.subject.addField=function(e){jo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.extensions=[],r.publicKey=null,r.md=null,r.setSubject=function(e,t){jo(e),r.subject.attributes=e,delete r.subject.uniqueId,t&&(r.subject.uniqueId=t),r.subject.hash=null},r.setIssuer=function(e,t){jo(e),r.issuer.attributes=e,delete r.issuer.uniqueId,t&&(r.issuer.uniqueId=t),r.issuer.hash=null},r.setExtensions=function(e){for(var t=0;t<e.length;++t)c6(e[t],{cert:r});r.extensions=e},r.getExtension=function(e){typeof e=="string"&&(e={name:e});for(var t=null,n,i=0;t===null&&i<r.extensions.length;++i)n=r.extensions[i],(e.id&&n.id===e.id||e.name&&n.name===e.name)&&(t=n);return t},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certificate digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.tbsCertificate=rt.getTBSCertificate(r);var s=L.toDer(r.tbsCertificate);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(e){var t=!1;if(!r.issued(e)){var n=e.issuer,i=r.subject,s=new Error("The parent certificate did not issue the given child certificate; the child certificate's issuer does not match the parent's subject.");throw s.expectedIssuer=i.attributes,s.actualIssuer=n.attributes,s}var a=e.md;if(a===null){a=p2({signatureOid:e.signatureOid,type:"certificate"});var u=e.tbsCertificate||rt.getTBSCertificate(e),c=L.toDer(u);a.update(c.getBytes())}return a!==null&&(t=u6({certificate:r,md:a,signature:e.signature})),t},r.isIssuer=function(e){var t=!1,n=r.issuer,i=e.subject;if(n.hash&&i.hash)t=n.hash===i.hash;else if(n.attributes.length===i.attributes.length){t=!0;for(var s,a,u=0;t&&u<n.attributes.length;++u)s=n.attributes[u],a=i.attributes[u],(s.type!==a.type||s.value!==a.value)&&(t=!1)}return t},r.issued=function(e){return e.isIssuer(r)},r.generateSubjectKeyIdentifier=function(){return rt.getPublicKeyFingerprint(r.publicKey,{type:"RSAPublicKey"})},r.verifySubjectKeyIdentifier=function(){for(var e=Or.subjectKeyIdentifier,t=0;t<r.extensions.length;++t){var n=r.extensions[t];if(n.id===e){var i=r.generateSubjectKeyIdentifier().getBytes();return Dt.util.hexToBytes(n.subjectKeyIdentifier)===i}}return!1},r};rt.certificateFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,ofe,t,n)){var i=new Error("Cannot read X.509 certificate. ASN.1 object is not an X509v3 Certificate.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificate();a.version=t.certVersion?t.certVersion.charCodeAt(0):0;var u=Dt.util.createBuffer(t.certSerialNumber);a.serialNumber=u.toHex(),a.signatureOid=Dt.asn1.derToOid(t.certSignatureOid),a.signatureParameters=f2(a.signatureOid,t.certSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.certinfoSignatureOid),a.siginfo.parameters=f2(a.siginfo.algorithmOid,t.certinfoSignatureParams,!1),a.signature=t.certSignature;var c=[];if(t.certValidity1UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity1UTCTime)),t.certValidity2GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity2GeneralizedTime)),t.certValidity3UTCTime!==void 0&&c.push(L.utcTimeToDate(t.certValidity3UTCTime)),t.certValidity4GeneralizedTime!==void 0&&c.push(L.generalizedTimeToDate(t.certValidity4GeneralizedTime)),c.length>2)throw new Error("Cannot read notBefore/notAfter validity times; more than two times were provided in the certificate.");if(c.length<2)throw new Error("Cannot read notBefore/notAfter validity times; they were not provided as either UTCTime or GeneralizedTime.");if(a.validity.notBefore=c[0],a.validity.notAfter=c[1],a.tbsCertificate=t.tbsCertificate,e){a.md=p2({signatureOid:a.signatureOid,type:"certificate"});var l=L.toDer(a.tbsCertificate);a.md.update(l.getBytes())}var p=Dt.md.sha1.create(),m=L.toDer(t.certIssuer);p.update(m.getBytes()),a.issuer.getField=function(v){return Vp(a.issuer,v)},a.issuer.addField=function(v){jo([v]),a.issuer.attributes.push(v)},a.issuer.attributes=rt.RDNAttributesAsArray(t.certIssuer),t.certIssuerUniqueId&&(a.issuer.uniqueId=t.certIssuerUniqueId),a.issuer.hash=p.digest().toHex();var g=Dt.md.sha1.create(),y=L.toDer(t.certSubject);return g.update(y.getBytes()),a.subject.getField=function(v){return Vp(a.subject,v)},a.subject.addField=function(v){jo([v]),a.subject.attributes.push(v)},a.subject.attributes=rt.RDNAttributesAsArray(t.certSubject),t.certSubjectUniqueId&&(a.subject.uniqueId=t.certSubjectUniqueId),a.subject.hash=g.digest().toHex(),t.certExtensions?a.extensions=rt.certificateExtensionsFromAsn1(t.certExtensions):a.extensions=[],a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a};rt.certificateExtensionsFromAsn1=function(r){for(var e=[],t=0;t<r.value.length;++t)for(var n=r.value[t],i=0;i<n.value.length;++i)e.push(rt.certificateExtensionFromAsn1(n.value[i]));return e};rt.certificateExtensionFromAsn1=function(r){var e={};if(e.id=L.derToOid(r.value[0].value),e.critical=!1,r.value[1].type===L.Type.BOOLEAN?(e.critical=r.value[1].value.charCodeAt(0)!==0,e.value=r.value[2].value):e.value=r.value[1].value,e.id in Or){if(e.name=Or[e.id],e.name==="keyUsage"){var t=L.fromDer(e.value),n=0,i=0;t.value.length>1&&(n=t.value.charCodeAt(1),i=t.value.length>2?t.value.charCodeAt(2):0),e.digitalSignature=(n&128)===128,e.nonRepudiation=(n&64)===64,e.keyEncipherment=(n&32)===32,e.dataEncipherment=(n&16)===16,e.keyAgreement=(n&8)===8,e.keyCertSign=(n&4)===4,e.cRLSign=(n&2)===2,e.encipherOnly=(n&1)===1,e.decipherOnly=(i&128)===128}else if(e.name==="basicConstraints"){var t=L.fromDer(e.value);t.value.length>0&&t.value[0].type===L.Type.BOOLEAN?e.cA=t.value[0].value.charCodeAt(0)!==0:e.cA=!1;var s=null;t.value.length>0&&t.value[0].type===L.Type.INTEGER?s=t.value[0].value:t.value.length>1&&(s=t.value[1].value),s!==null&&(e.pathLenConstraint=L.derToInteger(s))}else if(e.name==="extKeyUsage")for(var t=L.fromDer(e.value),a=0;a<t.value.length;++a){var u=L.derToOid(t.value[a].value);u in Or?e[Or[u]]=!0:e[u]=!0}else if(e.name==="nsCertType"){var t=L.fromDer(e.value),n=0;t.value.length>1&&(n=t.value.charCodeAt(1)),e.client=(n&128)===128,e.server=(n&64)===64,e.email=(n&32)===32,e.objsign=(n&16)===16,e.reserved=(n&8)===8,e.sslCA=(n&4)===4,e.emailCA=(n&2)===2,e.objCA=(n&1)===1}else if(e.name==="subjectAltName"||e.name==="issuerAltName"){e.altNames=[];for(var c,t=L.fromDer(e.value),l=0;l<t.value.length;++l){c=t.value[l];var p={type:c.type,value:c.value};switch(e.altNames.push(p),c.type){case 1:case 2:case 6:break;case 7:p.ip=Dt.util.bytesToIP(c.value);break;case 8:p.oid=L.derToOid(c.value);break;default:}}}else if(e.name==="subjectKeyIdentifier"){var t=L.fromDer(e.value);e.subjectKeyIdentifier=Dt.util.bytesToHex(t.value)}}return e};rt.certificationRequestFromAsn1=function(r,e){var t={},n=[];if(!L.validate(r,lfe,t,n)){var i=new Error("Cannot read PKCS#10 certificate request. ASN.1 object is not a PKCS#10 CertificationRequest.");throw i.errors=n,i}var s=L.derToOid(t.publicKeyOid);if(s!==rt.oids.rsaEncryption)throw new Error("Cannot read public key. OID is not RSA.");var a=rt.createCertificationRequest();if(a.version=t.csrVersion?t.csrVersion.charCodeAt(0):0,a.signatureOid=Dt.asn1.derToOid(t.csrSignatureOid),a.signatureParameters=f2(a.signatureOid,t.csrSignatureParams,!0),a.siginfo.algorithmOid=Dt.asn1.derToOid(t.csrSignatureOid),a.siginfo.parameters=f2(a.siginfo.algorithmOid,t.csrSignatureParams,!1),a.signature=t.csrSignature,a.certificationRequestInfo=t.certificationRequestInfo,e){a.md=p2({signatureOid:a.signatureOid,type:"certification request"});var u=L.toDer(a.certificationRequestInfo);a.md.update(u.getBytes())}var c=Dt.md.sha1.create();return a.subject.getField=function(l){return Vp(a.subject,l)},a.subject.addField=function(l){jo([l]),a.subject.attributes.push(l)},a.subject.attributes=rt.RDNAttributesAsArray(t.certificationRequestInfoSubject,c),a.subject.hash=c.digest().toHex(),a.publicKey=rt.publicKeyFromAsn1(t.subjectPublicKeyInfo),a.getAttribute=function(l){return Vp(a,l)},a.addAttribute=function(l){jo([l]),a.attributes.push(l)},a.attributes=rt.CRIAttributesAsArray(t.certificationRequestInfoAttributes||[]),a};rt.createCertificationRequest=function(){var r={};return r.version=0,r.signatureOid=null,r.signature=null,r.siginfo={},r.siginfo.algorithmOid=null,r.subject={},r.subject.getField=function(e){return Vp(r.subject,e)},r.subject.addField=function(e){jo([e]),r.subject.attributes.push(e)},r.subject.attributes=[],r.subject.hash=null,r.publicKey=null,r.attributes=[],r.getAttribute=function(e){return Vp(r,e)},r.addAttribute=function(e){jo([e]),r.attributes.push(e)},r.md=null,r.setSubject=function(e){jo(e),r.subject.attributes=e,r.subject.hash=null},r.setAttributes=function(e){jo(e),r.attributes=e},r.sign=function(e,t){r.md=t||Dt.md.sha1.create();var n=Or[r.md.algorithm+"WithRSAEncryption"];if(!n){var i=new Error("Could not compute certification request digest. Unknown message digest algorithm OID.");throw i.algorithm=r.md.algorithm,i}r.signatureOid=r.siginfo.algorithmOid=n,r.certificationRequestInfo=rt.getCertificationRequestInfo(r);var s=L.toDer(r.certificationRequestInfo);r.md.update(s.getBytes()),r.signature=e.sign(r.md)},r.verify=function(){var e=!1,t=r.md;if(t===null){t=p2({signatureOid:r.signatureOid,type:"certification request"});var n=r.certificationRequestInfo||rt.getCertificationRequestInfo(r),i=L.toDer(n);t.update(i.getBytes())}return t!==null&&(e=u6({certificate:r,md:t,signature:r.signature})),e},r};function av(r){for(var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),t,n,i=r.attributes,s=0;s<i.length;++s){t=i[s];var a=t.value,u=L.Type.PRINTABLESTRING;"valueTagClass"in t&&(u=t.valueTagClass,u===L.Type.UTF8&&(a=Dt.util.encodeUtf8(a))),n=L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(t.type).getBytes()),L.create(L.Class.UNIVERSAL,u,!1,a)])]),e.value.push(n)}return e}o(av,"_dnToAsn1");function jo(r){for(var e,t=0;t<r.length;++t){if(e=r[t],typeof e.name>"u"&&(e.type&&e.type in rt.oids?e.name=rt.oids[e.type]:e.shortName&&e.shortName in ai&&(e.name=rt.oids[ai[e.shortName]])),typeof e.type>"u")if(e.name&&e.name in rt.oids)e.type=rt.oids[e.name];else{var n=new Error("Attribute type not specified.");throw n.attribute=e,n}if(typeof e.shortName>"u"&&e.name&&e.name in ai&&(e.shortName=ai[e.name]),e.type===Or.extensionRequest&&(e.valueConstructed=!0,e.valueTagClass=L.Type.SEQUENCE,!e.value&&e.extensions)){e.value=[];for(var i=0;i<e.extensions.length;++i)e.value.push(rt.certificateExtensionToAsn1(c6(e.extensions[i])))}if(typeof e.value>"u"){var n=new Error("Attribute value not specified.");throw n.attribute=e,n}}}o(jo,"_fillMissingFields");function c6(r,e){if(e=e||{},typeof r.name>"u"&&r.id&&r.id in rt.oids&&(r.name=rt.oids[r.id]),typeof r.id>"u")if(r.name&&r.name in rt.oids)r.id=rt.oids[r.name];else{var t=new Error("Extension ID not specified.");throw t.extension=r,t}if(typeof r.value<"u")return r;if(r.name==="keyUsage"){var n=0,i=0,s=0;r.digitalSignature&&(i|=128,n=7),r.nonRepudiation&&(i|=64,n=6),r.keyEncipherment&&(i|=32,n=5),r.dataEncipherment&&(i|=16,n=4),r.keyAgreement&&(i|=8,n=3),r.keyCertSign&&(i|=4,n=2),r.cRLSign&&(i|=2,n=1),r.encipherOnly&&(i|=1,n=0),r.decipherOnly&&(s|=128,n=7);var a=String.fromCharCode(n);s!==0?a+=String.fromCharCode(i)+String.fromCharCode(s):i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="basicConstraints")r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),r.cA&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF")),"pathLenConstraint"in r&&r.value.value.push(L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.pathLenConstraint).getBytes()));else if(r.name==="extKeyUsage"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;for(var c in r)r[c]===!0&&(c in Or?u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(Or[c]).getBytes())):c.indexOf(".")!==-1&&u.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(c).getBytes())))}else if(r.name==="nsCertType"){var n=0,i=0;r.client&&(i|=128,n=7),r.server&&(i|=64,n=6),r.email&&(i|=32,n=5),r.objsign&&(i|=16,n=4),r.reserved&&(i|=8,n=3),r.sslCA&&(i|=4,n=2),r.emailCA&&(i|=2,n=1),r.objCA&&(i|=1,n=0);var a=String.fromCharCode(n);i!==0&&(a+=String.fromCharCode(i)),r.value=L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,a)}else if(r.name==="subjectAltName"||r.name==="issuerAltName"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));r.value.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}}else if(r.name==="nsComment"&&e.cert){if(!/^[\x00-\x7F]*$/.test(r.comment)||r.comment.length<1||r.comment.length>128)throw new Error('Invalid "nsComment" content.');r.value=L.create(L.Class.UNIVERSAL,L.Type.IA5STRING,!1,r.comment)}else if(r.name==="subjectKeyIdentifier"&&e.cert){var m=e.cert.generateSubjectKeyIdentifier();r.subjectKeyIdentifier=m.toHex(),r.value=L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,m.getBytes())}else if(r.name==="authorityKeyIdentifier"&&e.cert){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);var u=r.value.value;if(r.keyIdentifier){var g=r.keyIdentifier===!0?e.cert.generateSubjectKeyIdentifier().getBytes():r.keyIdentifier;u.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!1,g))}if(r.authorityCertIssuer){var y=[L.create(L.Class.CONTEXT_SPECIFIC,4,!0,[av(r.authorityCertIssuer===!0?e.cert.issuer:r.authorityCertIssuer)])];u.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,y))}if(r.serialNumber){var v=Dt.util.hexToBytes(r.serialNumber===!0?e.cert.serialNumber:r.serialNumber);u.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!1,v))}}else if(r.name==="cRLDistributionPoints"){r.value=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);for(var u=r.value.value,b=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]),x=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]),l,p=0;p<r.altNames.length;++p){l=r.altNames[p];var a=l.value;if(l.type===7&&l.ip){if(a=Dt.util.bytesFromIP(l.ip),a===null){var t=new Error('Extension "ip" value is not a valid IPv4 or IPv6 address.');throw t.extension=r,t}}else l.type===8&&(l.oid?a=L.oidToDer(L.oidToDer(l.oid)):a=L.oidToDer(a));x.value.push(L.create(L.Class.CONTEXT_SPECIFIC,l.type,!1,a))}b.value.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[x])),u.push(b)}if(typeof r.value>"u"){var t=new Error("Extension value not specified.");throw t.extension=r,t}return r}o(c6,"_fillMissingExtensionFields");function ZP(r,e){switch(r){case Or["RSASSA-PSS"]:var t=[];return e.hash.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])),e.mgf.algorithmOid!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(e.mgf.hash.algorithmOid).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")])])])),e.saltLength!==void 0&&t.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(e.saltLength).getBytes())])),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,t);default:return L.create(L.Class.UNIVERSAL,L.Type.NULL,!1,"")}}o(ZP,"_signatureParametersToAsn1");function ffe(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[]);if(r.attributes.length===0)return e;for(var t=r.attributes,n=0;n<t.length;++n){var i=t[n],s=i.value,a=L.Type.UTF8;"valueTagClass"in i&&(a=i.valueTagClass),a===L.Type.UTF8&&(s=Dt.util.encodeUtf8(s));var u=!1;"valueConstructed"in i&&(u=i.valueConstructed);var c=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(i.type).getBytes()),L.create(L.Class.UNIVERSAL,L.Type.SET,!0,[L.create(L.Class.UNIVERSAL,a,u,s)])]);e.value.push(c)}return e}o(ffe,"_CRIAttributesToAsn1");var pfe=new Date("1950-01-01T00:00:00Z"),hfe=new Date("2050-01-01T00:00:00Z");function a6(r){return r>=pfe&&r<hfe?L.create(L.Class.UNIVERSAL,L.Type.UTCTIME,!1,L.dateToUtcTime(r)):L.create(L.Class.UNIVERSAL,L.Type.GENERALIZEDTIME,!1,L.dateToGeneralizedTime(r))}o(a6,"_dateToAsn1");rt.getTBSCertificate=function(r){var e=a6(r.validity.notBefore),t=a6(r.validity.notAfter),n=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.CONTEXT_SPECIFIC,0,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes())]),L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,Dt.util.hexToBytes(r.serialNumber)),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.siginfo.algorithmOid).getBytes()),ZP(r.siginfo.algorithmOid,r.siginfo.parameters)]),av(r.issuer),L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,t]),av(r.subject),rt.publicKeyToAsn1(r.publicKey)]);return r.issuer.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,1,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.issuer.uniqueId)])),r.subject.uniqueId&&n.value.push(L.create(L.Class.CONTEXT_SPECIFIC,2,!0,[L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.subject.uniqueId)])),r.extensions.length>0&&n.value.push(rt.certificateExtensionsToAsn1(r.extensions)),n};rt.getCertificationRequestInfo=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.INTEGER,!1,L.integerToDer(r.version).getBytes()),av(r.subject),rt.publicKeyToAsn1(r.publicKey),ffe(r)]);return e};rt.distinguishedNameToAsn1=function(r){return av(r)};rt.certificateToAsn1=function(r){var e=r.tbsCertificate||rt.getTBSCertificate(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),ZP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.certificateExtensionsToAsn1=function(r){var e=L.create(L.Class.CONTEXT_SPECIFIC,3,!0,[]),t=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(t);for(var n=0;n<r.length;++n)t.value.push(rt.certificateExtensionToAsn1(r[n]));return e};rt.certificateExtensionToAsn1=function(r){var e=L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[]);e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.id).getBytes())),r.critical&&e.value.push(L.create(L.Class.UNIVERSAL,L.Type.BOOLEAN,!1,"\xFF"));var t=r.value;return typeof r.value!="string"&&(t=L.toDer(t).getBytes()),e.value.push(L.create(L.Class.UNIVERSAL,L.Type.OCTETSTRING,!1,t)),e};rt.certificationRequestToAsn1=function(r){var e=r.certificationRequestInfo||rt.getCertificationRequestInfo(r);return L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[e,L.create(L.Class.UNIVERSAL,L.Type.SEQUENCE,!0,[L.create(L.Class.UNIVERSAL,L.Type.OID,!1,L.oidToDer(r.signatureOid).getBytes()),ZP(r.signatureOid,r.signatureParameters)]),L.create(L.Class.UNIVERSAL,L.Type.BITSTRING,!1,"\0"+r.signature)])};rt.createCaStore=function(r){var e={certs:{}};e.getIssuer=function(a){var u=t(a.issuer);return u},e.addCertificate=function(a){if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))if(a.subject.hash in e.certs){var u=e.certs[a.subject.hash];Dt.util.isArray(u)||(u=[u]),u.push(a),e.certs[a.subject.hash]=u}else e.certs[a.subject.hash]=a},e.hasCertificate=function(a){typeof a=="string"&&(a=Dt.pki.certificateFromPem(a));var u=t(a.subject);if(!u)return!1;Dt.util.isArray(u)||(u=[u]);for(var c=L.toDer(rt.certificateToAsn1(a)).getBytes(),l=0;l<u.length;++l){var p=L.toDer(rt.certificateToAsn1(u[l])).getBytes();if(c===p)return!0}return!1},e.listAllCertificates=function(){var a=[];for(var u in e.certs)if(e.certs.hasOwnProperty(u)){var c=e.certs[u];if(!Dt.util.isArray(c))a.push(c);else for(var l=0;l<c.length;++l)a.push(c[l])}return a},e.removeCertificate=function(a){var u;if(typeof a=="string"&&(a=Dt.pki.certificateFromPem(a)),n(a.subject),!e.hasCertificate(a))return null;var c=t(a.subject);if(!Dt.util.isArray(c))return u=e.certs[a.subject.hash],delete e.certs[a.subject.hash],u;for(var l=L.toDer(rt.certificateToAsn1(a)).getBytes(),p=0;p<c.length;++p){var m=L.toDer(rt.certificateToAsn1(c[p])).getBytes();l===m&&(u=c[p],c.splice(p,1))}return c.length===0&&delete e.certs[a.subject.hash],u};function t(a){return n(a),e.certs[a.hash]||null}o(t,"getBySubject");function n(a){if(!a.hash){var u=Dt.md.sha1.create();a.attributes=rt.RDNAttributesAsArray(av(a),u),a.hash=u.digest().toHex()}}if(o(n,"ensureSubjectHasHash"),r)for(var i=0;i<r.length;++i){var s=r[i];e.addCertificate(s)}return e};rt.certificateError={bad_certificate:"forge.pki.BadCertificate",unsupported_certificate:"forge.pki.UnsupportedCertificate",certificate_revoked:"forge.pki.CertificateRevoked",certificate_expired:"forge.pki.CertificateExpired",certificate_unknown:"forge.pki.CertificateUnknown",unknown_ca:"forge.pki.UnknownCertificateAuthority"};rt.verifyCertificateChain=function(r,e,t){typeof t=="function"&&(t={verify:t}),t=t||{},e=e.slice(0);var n=e.slice(0),i=t.validityCheckDate;typeof i>"u"&&(i=new Date);var s=!0,a=null,u=0;do{var c=e.shift(),l=null,p=!1;if(i&&(i<c.validity.notBefore||i>c.validity.notAfter)&&(a={message:"Certificate is not valid yet or has expired.",error:rt.certificateError.certificate_expired,notBefore:c.validity.notBefore,notAfter:c.validity.notAfter,now:i}),a===null){if(l=e[0]||r.getIssuer(c),l===null&&c.isIssuer(c)&&(p=!0,l=c),l){var m=l;Dt.util.isArray(m)||(m=[m]);for(var g=!1;!g&&m.length>0;){l=m.shift();try{g=l.verify(c)}catch{}}g||(a={message:"Certificate signature is invalid.",error:rt.certificateError.bad_certificate})}a===null&&(!l||p)&&!r.hasCertificate(c)&&(a={message:"Certificate is not trusted.",error:rt.certificateError.unknown_ca})}if(a===null&&l&&!c.isIssuer(l)&&(a={message:"Certificate issuer is invalid.",error:rt.certificateError.bad_certificate}),a===null)for(var y={keyUsage:!0,basicConstraints:!0},v=0;a===null&&v<c.extensions.length;++v){var b=c.extensions[v];b.critical&&!(b.name in y)&&(a={message:"Certificate has an unsupported critical extension.",error:rt.certificateError.unsupported_certificate})}if(a===null&&(!s||e.length===0&&(!l||p))){var x=c.getExtension("basicConstraints"),E=c.getExtension("keyUsage");if(E!==null&&(!E.keyCertSign||x===null)&&(a={message:"Certificate keyUsage or basicConstraints conflict or indicate that the certificate is not a CA. If the certificate is the only one in the chain or isn't the first then the certificate must be a valid CA.",error:rt.certificateError.bad_certificate}),a===null&&x!==null&&!x.cA&&(a={message:"Certificate basicConstraints indicates the certificate is not a CA.",error:rt.certificateError.bad_certificate}),a===null&&E!==null&&"pathLenConstraint"in x){var N=u-1;N>x.pathLenConstraint&&(a={message:"Certificate basicConstraints pathLenConstraint violated.",error:rt.certificateError.bad_certificate})}}var w=a===null?!0:a.error,C=t.verify?t.verify(w,u,n):w;if(C===!0)a=null;else throw w===!0&&(a={message:"The application rejected the certificate.",error:rt.certificateError.bad_certificate}),(C||C===0)&&(typeof C=="object"&&!Dt.util.isArray(C)?(C.message&&(a.message=C.message),C.error&&(a.error=C.error)):typeof C=="string"&&(a.error=C)),a;s=!1,++u}while(e.length>0);return!0}});var tB=Z((jIe,p6)=>{"use strict";var yn=pr();Iu();Zg();Fp();QP();JP();Lo();jx();nv();kr();h2();var Y=yn.asn1,xr=yn.pki,Mx=p6.exports=yn.pkcs12=yn.pkcs12||{},f6={name:"ContentInfo",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"ContentInfo.contentType",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"contentType"},{name:"ContentInfo.content",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"content"}]},dfe={name:"PFX",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.version",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,capture:"version"},f6,{name:"PFX.macData",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,optional:!0,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:Y.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OCTETSTRING,constructed:!1,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:Y.Class.UNIVERSAL,type:Y.Type.INTEGER,constructed:!1,optional:!0,capture:"macIterations"}]}]},mfe={name:"SafeBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"SafeBag.bagId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,optional:!0,capture:"bagAttributes"}]},gfe={name:"Attribute",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"Attribute.attrId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"oid"},{name:"Attribute.attrValues",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SET,constructed:!0,capture:"values"}]},vfe={name:"CertBag",tagClass:Y.Class.UNIVERSAL,type:Y.Type.SEQUENCE,constructed:!0,value:[{name:"CertBag.certId",tagClass:Y.Class.UNIVERSAL,type:Y.Type.OID,constructed:!1,capture:"certId"},{name:"CertBag.certValue",tagClass:Y.Class.CONTEXT_SPECIFIC,constructed:!0,value:[{name:"CertBag.certValue[0]",tagClass:Y.Class.UNIVERSAL,type:Y.Class.OCTETSTRING,constructed:!1,capture:"cert"}]}]};function Ux(r,e,t,n){for(var i=[],s=0;s<r.length;s++)for(var a=0;a<r[s].safeBags.length;a++){var u=r[s].safeBags[a];if(!(n!==void 0&&u.type!==n)){if(e===null){i.push(u);continue}u.attributes[e]!==void 0&&u.attributes[e].indexOf(t)>=0&&i.push(u)}}return i}o(Ux,"_getBagsByAttribute");Mx.pkcs12FromAsn1=function(r,e,t){typeof e=="string"?(t=e,e=!0):e===void 0&&(e=!0);var n={},i=[];if(!Y.validate(r,dfe,n,i)){var s=new Error("Cannot read PKCS#12 PFX. ASN.1 object is not an PKCS#12 PFX.");throw s.errors=s,s}var a={version:n.version.charCodeAt(0),safeContents:[],getBags:o(function(x){var E={},N;return"localKeyId"in x?N=x.localKeyId:"localKeyIdHex"in x&&(N=yn.util.hexToBytes(x.localKeyIdHex)),N===void 0&&!("friendlyName"in x)&&"bagType"in x&&(E[x.bagType]=Ux(a.safeContents,null,null,x.bagType)),N!==void 0&&(E.localKeyId=Ux(a.safeContents,"localKeyId",N,x.bagType)),"friendlyName"in x&&(E.friendlyName=Ux(a.safeContents,"friendlyName",x.friendlyName,x.bagType)),E},"getBags"),getBagsByFriendlyName:o(function(x,E){return Ux(a.safeContents,"friendlyName",x,E)},"getBagsByFriendlyName"),getBagsByLocalKeyId:o(function(x,E){return Ux(a.safeContents,"localKeyId",x,E)},"getBagsByLocalKeyId")};if(n.version.charCodeAt(0)!==3){var s=new Error("PKCS#12 PFX of version other than 3 not supported.");throw s.version=n.version.charCodeAt(0),s}if(Y.derToOid(n.contentType)!==xr.oids.data){var s=new Error("Only PKCS#12 PFX in password integrity mode supported.");throw s.oid=Y.derToOid(n.contentType),s}var u=n.content.value[0];if(u.tagClass!==Y.Class.UNIVERSAL||u.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.");if(u=eB(u),n.mac){var c=null,l=0,p=Y.derToOid(n.macAlgorithm);switch(p){case xr.oids.sha1:c=yn.md.sha1.create(),l=20;break;case xr.oids.sha256:c=yn.md.sha256.create(),l=32;break;case xr.oids.sha384:c=yn.md.sha384.create(),l=48;break;case xr.oids.sha512:c=yn.md.sha512.create(),l=64;break;case xr.oids.md5:c=yn.md.md5.create(),l=16;break}if(c===null)throw new Error("PKCS#12 uses unsupported MAC algorithm: "+p);var m=new yn.util.ByteBuffer(n.macSalt),g="macIterations"in n?parseInt(yn.util.bytesToHex(n.macIterations),16):1,y=Mx.generateKey(t,m,3,g,l,c),v=yn.hmac.create();v.start(c,y),v.update(u.value);var b=v.getMac();if(b.getBytes()!==n.macDigest)throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}return yfe(a,u.value,e,t),a};function eB(r){if(r.composed||r.constructed){for(var e=yn.util.createBuffer(),t=0;t<r.value.length;++t)e.putBytes(r.value[t].value);r.composed=r.constructed=!1,r.value=e.getBytes()}return r}o(eB,"_decodePkcs7Data");function yfe(r,e,t,n){if(e=Y.fromDer(e,t),e.tagClass!==Y.Class.UNIVERSAL||e.type!==Y.Type.SEQUENCE||e.constructed!==!0)throw new Error("PKCS#12 AuthenticatedSafe expected to be a SEQUENCE OF ContentInfo");for(var i=0;i<e.value.length;i++){var s=e.value[i],a={},u=[];if(!Y.validate(s,f6,a,u)){var c=new Error("Cannot read ContentInfo.");throw c.errors=u,c}var l={encrypted:!1},p=null,m=a.content.value[0];switch(Y.derToOid(a.contentType)){case xr.oids.data:if(m.tagClass!==Y.Class.UNIVERSAL||m.type!==Y.Type.OCTETSTRING)throw new Error("PKCS#12 SafeContents Data is not an OCTET STRING.");p=eB(m).value;break;case xr.oids.encryptedData:p=Sfe(m,n),l.encrypted=!0;break;default:var c=new Error("Unsupported PKCS#12 contentType.");throw c.contentType=Y.derToOid(a.contentType),c}l.safeBags=xfe(p,t,n),r.safeContents.push(l)}}o(yfe,"_decodeAuthenticatedSafe");function Sfe(r,e){var t={},n=[];if(!Y.validate(r,yn.pkcs7.asn1.encryptedDataValidator,t,n)){var i=new Error("Cannot read EncryptedContentInfo.");throw i.errors=n,i}var s=Y.derToOid(t.contentType);if(s!==xr.oids.data){var i=new Error("PKCS#12 EncryptedContentInfo ContentType is not Data.");throw i.oid=s,i}s=Y.derToOid(t.encAlgorithm);var a=xr.pbe.getCipher(s,t.encParameter,e),u=eB(t.encryptedContentAsn1),c=yn.util.createBuffer(u.value);if(a.update(c),!a.finish())throw new Error("Failed to decrypt PKCS#12 SafeContents.");return a.output.getBytes()}o(Sfe,"_decryptSafeContents");function xfe(r,e,t){if(!e&&r.length===0)return[];if(r=Y.fromDer(r,e),r.tagClass!==Y.Class.UNIVERSAL||r.type!==Y.Type.SEQUENCE||r.constructed!==!0)throw new Error("PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.");for(var n=[],i=0;i<r.value.length;i++){var s=r.value[i],a={},u=[];if(!Y.validate(s,mfe,a,u)){var c=new Error("Cannot read SafeBag.");throw c.errors=u,c}var l={type:Y.derToOid(a.bagId),attributes:bfe(a.bagAttributes)};n.push(l);var p,m,g=a.bagValue.value[0];switch(l.type){case xr.oids.pkcs8ShroudedKeyBag:if(g=xr.decryptPrivateKeyInfo(g,t),g===null)throw new Error("Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?");case xr.oids.keyBag:try{l.key=xr.privateKeyFromAsn1(g)}catch{l.key=null,l.asn1=g}continue;case xr.oids.certBag:p=vfe,m=o(function(){if(Y.derToOid(a.certId)!==xr.oids.x509Certificate){var v=new Error("Unsupported certificate type, only X.509 supported.");throw v.oid=Y.derToOid(a.certId),v}var b=Y.fromDer(a.cert,e);try{l.cert=xr.certificateFromAsn1(b,!0)}catch{l.cert=null,l.asn1=b}},"decoder");break;default:var c=new Error("Unsupported PKCS#12 SafeBag type.");throw c.oid=l.type,c}if(p!==void 0&&!Y.validate(g,p,a,u)){var c=new Error("Cannot read PKCS#12 "+p.name);throw c.errors=u,c}m()}return n}o(xfe,"_decodeSafeContents");function bfe(r){var e={};if(r!==void 0)for(var t=0;t<r.length;++t){var n={},i=[];if(!Y.validate(r[t],gfe,n,i)){var s=new Error("Cannot read PKCS#12 BagAttribute.");throw s.errors=i,s}var a=Y.derToOid(n.oid);if(xr.oids[a]!==void 0){e[xr.oids[a]]=[];for(var u=0;u<n.values.length;++u)e[xr.oids[a]].push(n.values[u].value)}}return e}o(bfe,"_decodeBagAttributes");Mx.toPkcs12Asn1=function(r,e,t,n){n=n||{},n.saltSize=n.saltSize||8,n.count=n.count||2048,n.algorithm=n.algorithm||n.encAlgorithm||"aes128","useMac"in n||(n.useMac=!0),"localKeyId"in n||(n.localKeyId=null),"generateLocalKeyId"in n||(n.generateLocalKeyId=!0);var i=n.localKeyId,s;if(i!==null)i=yn.util.hexToBytes(i);else if(n.generateLocalKeyId)if(e){var a=yn.util.isArray(e)?e[0]:e;typeof a=="string"&&(a=xr.certificateFromPem(a));var u=yn.md.sha1.create();u.update(Y.toDer(xr.certificateToAsn1(a)).getBytes()),i=u.digest().getBytes()}else i=yn.random.getBytes(20);var c=[];i!==null&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.localKeyId).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,i)])])),"friendlyName"in n&&c.push(Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.friendlyName).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.BMPSTRING,!1,n.friendlyName)])])),c.length>0&&(s=Y.create(Y.Class.UNIVERSAL,Y.Type.SET,!0,c));var l=[],p=[];e!==null&&(yn.util.isArray(e)?p=e:p=[e]);for(var m=[],g=0;g<p.length;++g){e=p[g],typeof e=="string"&&(e=xr.certificateFromPem(e));var y=g===0?s:void 0,v=xr.certificateToAsn1(e),b=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.certBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.x509Certificate).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(v).getBytes())])])]),y]);m.push(b)}if(m.length>0){var x=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,m),E=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(x).getBytes())])]);l.push(E)}var N=null;if(r!==null){var w=xr.wrapRsaPrivateKey(xr.privateKeyToAsn1(r));t===null?N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.keyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[w]),s]):N=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.pkcs8ShroudedKeyBag).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[xr.encryptPrivateKeyInfo(w,t,n)]),s]);var C=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[N]),A=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(C).getBytes())])]);l.push(A)}var R=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,l),M;if(n.useMac){var u=yn.md.sha1.create(),_=new yn.util.ByteBuffer(yn.random.getBytes(n.saltSize)),H=n.count,r=Mx.generateKey(t,_,3,H,20),z=yn.hmac.create();z.start(u,r),z.update(Y.toDer(R).getBytes());var K=z.getMac();M=Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.sha1).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.NULL,!1,"")]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,K.getBytes())]),Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,_.getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(H).getBytes())])}return Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.INTEGER,!1,Y.integerToDer(3).getBytes()),Y.create(Y.Class.UNIVERSAL,Y.Type.SEQUENCE,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OID,!1,Y.oidToDer(xr.oids.data).getBytes()),Y.create(Y.Class.CONTEXT_SPECIFIC,0,!0,[Y.create(Y.Class.UNIVERSAL,Y.Type.OCTETSTRING,!1,Y.toDer(R).getBytes())])]),M])};Mx.generateKey=yn.pbe.generatePkcs12Key});var nB=Z((MIe,h6)=>{"use strict";var jp=pr();Iu();Fp();JP();Yd();n2();tB();l2();jx();kr();h2();var rB=jp.asn1,ov=h6.exports=jp.pki=jp.pki||{};ov.pemToDer=function(r){var e=jp.pem.decode(r)[0];if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PEM to DER; PEM is encrypted.");return jp.util.createBuffer(e.body)};ov.privateKeyFromPem=function(r){var e=jp.pem.decode(r)[0];if(e.type!=="PRIVATE KEY"&&e.type!=="RSA PRIVATE KEY"){var t=new Error('Could not convert private key from PEM; PEM header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert private key from PEM; PEM is encrypted.");var n=rB.fromDer(e.body);return ov.privateKeyFromAsn1(n)};ov.privateKeyToPem=function(r,e){var t={type:"RSA PRIVATE KEY",body:rB.toDer(ov.privateKeyToAsn1(r)).getBytes()};return jp.pem.encode(t,{maxline:e})};ov.privateKeyInfoToPem=function(r,e){var t={type:"PRIVATE KEY",body:rB.toDer(r).getBytes()};return jp.pem.encode(t,{maxline:e})}});var cB=Z((qIe,b6)=>{"use strict";var ze=pr();Iu();Zg();ZN();Yd();nB();Lo();nv();kr();var v2=o(function(r,e,t,n){var i=ze.util.createBuffer(),s=r.length>>1,a=s+(r.length&1),u=r.substr(0,a),c=r.substr(s,a),l=ze.util.createBuffer(),p=ze.hmac.create();t=e+t;var m=Math.ceil(n/16),g=Math.ceil(n/20);p.start("MD5",u);var y=ze.util.createBuffer();l.putBytes(t);for(var v=0;v<m;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),y.putBuffer(p.digest());p.start("SHA1",c);var b=ze.util.createBuffer();l.clear(),l.putBytes(t);for(var v=0;v<g;++v)p.start(null,null),p.update(l.getBytes()),l.putBuffer(p.digest()),p.start(null,null),p.update(l.bytes()+t),b.putBuffer(p.digest());return i.putBytes(ze.util.xorBytes(y.getBytes(),b.getBytes(),n)),i},"prf_TLS1"),wfe=o(function(r,e,t){var n=ze.hmac.create();n.start("SHA1",r);var i=ze.util.createBuffer();return i.putInt32(e[0]),i.putInt32(e[1]),i.putByte(t.type),i.putByte(t.version.major),i.putByte(t.version.minor),i.putInt16(t.length),i.putBytes(t.fragment.bytes()),n.update(i.getBytes()),n.digest().getBytes()},"hmac_sha1"),Cfe=o(function(r,e,t){var n=!1;try{var i=r.deflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"deflate"),Efe=o(function(r,e,t){var n=!1;try{var i=r.inflate(e.fragment.getBytes());e.fragment=ze.util.createBuffer(i),e.length=i.length,n=!0}catch{}return n},"inflate"),co=o(function(r,e){var t=0;switch(e){case 1:t=r.getByte();break;case 2:t=r.getInt16();break;case 3:t=r.getInt24();break;case 4:t=r.getInt32();break}return ze.util.createBuffer(r.getBytes(t))},"readVector"),Uo=o(function(r,e,t){r.putInt(t.length(),e<<3),r.putBuffer(t)},"writeVector"),j={};j.Versions={TLS_1_0:{major:3,minor:1},TLS_1_1:{major:3,minor:2},TLS_1_2:{major:3,minor:3}};j.SupportedVersions=[j.Versions.TLS_1_1,j.Versions.TLS_1_0];j.Version=j.SupportedVersions[0];j.MaxFragment=15360;j.ConnectionEnd={server:0,client:1};j.PRFAlgorithm={tls_prf_sha256:0};j.BulkCipherAlgorithm={none:null,rc4:0,des3:1,aes:2};j.CipherType={stream:0,block:1,aead:2};j.MACAlgorithm={none:null,hmac_md5:0,hmac_sha1:1,hmac_sha256:2,hmac_sha384:3,hmac_sha512:4};j.CompressionMethod={none:0,deflate:1};j.ContentType={change_cipher_spec:20,alert:21,handshake:22,application_data:23,heartbeat:24};j.HandshakeType={hello_request:0,client_hello:1,server_hello:2,certificate:11,server_key_exchange:12,certificate_request:13,server_hello_done:14,certificate_verify:15,client_key_exchange:16,finished:20};j.Alert={};j.Alert.Level={warning:1,fatal:2};j.Alert.Description={close_notify:0,unexpected_message:10,bad_record_mac:20,decryption_failed:21,record_overflow:22,decompression_failure:30,handshake_failure:40,bad_certificate:42,unsupported_certificate:43,certificate_revoked:44,certificate_expired:45,certificate_unknown:46,illegal_parameter:47,unknown_ca:48,access_denied:49,decode_error:50,decrypt_error:51,export_restriction:60,protocol_version:70,insufficient_security:71,internal_error:80,user_canceled:90,no_renegotiation:100};j.HeartbeatMessageType={heartbeat_request:1,heartbeat_response:2};j.CipherSuites={};j.getCipherSuite=function(r){var e=null;for(var t in j.CipherSuites){var n=j.CipherSuites[t];if(n.id[0]===r.charCodeAt(0)&&n.id[1]===r.charCodeAt(1)){e=n;break}}return e};j.handleUnexpected=function(r,e){var t=!r.open&&r.entity===j.ConnectionEnd.client;t||r.error(r,{message:"Unexpected message. Received TLS record out of order.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})};j.handleHelloRequest=function(r,e,t){!r.handshaking&&r.handshakes>0&&(j.queue(r,j.createAlert(r,{level:j.Alert.Level.warning,description:j.Alert.Description.no_renegotiation})),j.flush(r)),r.process()};j.parseHelloMessage=function(r,e,t){var n=null,i=r.entity===j.ConnectionEnd.client;if(t<38)r.error(r,{message:i?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});else{var s=e.fragment,a=s.length();if(n={version:{major:s.getByte(),minor:s.getByte()},random:ze.util.createBuffer(s.getBytes(32)),session_id:co(s,1),extensions:[]},i?(n.cipher_suite=s.getBytes(2),n.compression_method=s.getByte()):(n.cipher_suites=co(s,2),n.compression_methods=co(s,1)),a=t-(a-s.length()),a>0){for(var u=co(s,2);u.length()>0;)n.extensions.push({type:[u.getByte(),u.getByte()],data:co(u,2)});if(!i)for(var c=0;c<n.extensions.length;++c){var l=n.extensions[c];if(l.type[0]===0&&l.type[1]===0)for(var p=co(l.data,2);p.length()>0;){var m=p.getByte();if(m!==0)break;r.session.extensions.server_name.serverNameList.push(co(p,2).getBytes())}}}if(r.session.version&&(n.version.major!==r.session.version.major||n.version.minor!==r.session.version.minor))return r.error(r,{message:"TLS version change is disallowed during renegotiation.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});if(i)r.session.cipherSuite=j.getCipherSuite(n.cipher_suite);else for(var g=ze.util.createBuffer(n.cipher_suites.bytes());g.length()>0&&(r.session.cipherSuite=j.getCipherSuite(g.getBytes(2)),r.session.cipherSuite===null););if(r.session.cipherSuite===null)return r.error(r,{message:"No cipher suites in common.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure},cipherSuite:ze.util.bytesToHex(n.cipher_suite)});i?r.session.compressionMethod=n.compression_method:r.session.compressionMethod=j.CompressionMethod.none}return n};j.createSecurityParameters=function(r,e){var t=r.entity===j.ConnectionEnd.client,n=e.random.bytes(),i=t?r.session.sp.client_random:n,s=t?n:j.createRandom().getBytes();r.session.sp={entity:r.entity,prf_algorithm:j.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:r.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:i,server_random:s}};j.handleServerHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){if(n.version.minor<=r.version.minor)r.version.minor=n.version.minor;else return r.error(r,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}});r.session.version=r.version;var i=n.session_id.bytes();i.length>0&&i===r.session.id?(r.expect=g6,r.session.resuming=!0,r.session.sp.server_random=n.random.bytes()):(r.expect=Nfe,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.session.id=i,r.process()}};j.handleClientHello=function(r,e,t){var n=j.parseHelloMessage(r,e,t);if(!r.fail){var i=n.session_id.bytes(),s=null;if(r.sessionCache&&(s=r.sessionCache.getSession(i),s===null?i="":(s.version.major!==n.version.major||s.version.minor>n.version.minor)&&(s=null,i="")),i.length===0&&(i=ze.random.getBytes(32)),r.session.id=i,r.session.clientHelloVersion=n.version,r.session.sp={},s)r.version=r.session.version=s.version,r.session.sp=s.sp;else{for(var a,u=1;u<j.SupportedVersions.length&&(a=j.SupportedVersions[u],!(a.minor<=n.version.minor));++u);r.version={major:a.major,minor:a.minor},r.session.version=r.version}s!==null?(r.expect=oB,r.session.resuming=!0,r.session.sp.client_random=n.random.bytes()):(r.expect=r.verifyClient!==!1?Pfe:aB,r.session.resuming=!1,j.createSecurityParameters(r,n)),r.open=!0,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHello(r)})),r.session.resuming?(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.pending=j.createConnectionState(r),r.state.current.write=r.state.pending.write,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))):(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)})),r.fail||(j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerKeyExchange(r)})),r.verifyClient!==!1&&j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificateRequest(r)})),j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createServerHelloDone(r)})))),j.flush(r),r.process()}};j.handleCertificate=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid Certificate message. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_list:co(n,3)},s,a,u=[];try{for(;i.certificate_list.length()>0;)s=co(i.certificate_list,3),a=ze.asn1.fromDer(s),s=ze.pki.certificateFromAsn1(a,!0),u.push(s)}catch(l){return r.error(r,{message:"Could not parse certificate list.",cause:l,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var c=r.entity===j.ConnectionEnd.client;(c||r.verifyClient===!0)&&u.length===0?r.error(r,{message:c?"No server certificate provided.":"No client certificate provided.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}}):u.length===0?r.expect=c?d6:aB:(c?r.session.serverCertificate=u[0]:r.session.clientCertificate=u[0],j.verifyCertificateChain(r,u)&&(r.expect=c?d6:aB)),r.process()};j.handleServerKeyExchange=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});r.expect=Ife,r.process()};j.handleClientKeyExchange=function(r,e,t){if(t<48)return r.error(r,{message:"Invalid key parameters. Only RSA is supported.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unsupported_certificate}});var n=e.fragment,i={enc_pre_master_secret:co(n,2).getBytes()},s=null;if(r.getPrivateKey)try{s=r.getPrivateKey(r,r.session.serverCertificate),s=ze.pki.privateKeyFromPem(s)}catch(c){r.error(r,{message:"Could not get private key.",cause:c,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}if(s===null)return r.error(r,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}});try{var a=r.session.sp;a.pre_master_secret=s.decrypt(i.enc_pre_master_secret);var u=r.session.clientHelloVersion;if(u.major!==a.pre_master_secret.charCodeAt(0)||u.minor!==a.pre_master_secret.charCodeAt(1))throw new Error("TLS version rollback attack detected.")}catch{a.pre_master_secret=ze.random.getBytes(48)}r.expect=oB,r.session.clientCertificate!==null&&(r.expect=Bfe),r.process()};j.handleCertificateRequest=function(r,e,t){if(t<3)return r.error(r,{message:"Invalid CertificateRequest. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment,i={certificate_types:co(n,1),certificate_authorities:co(n,2)};r.session.certificateRequest=i,r.expect=Tfe,r.process()};j.handleCertificateVerify=function(r,e,t){if(t<2)return r.error(r,{message:"Invalid CertificateVerify. Message too short.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s={signature:co(n,2).getBytes()},a=ze.util.createBuffer();a.putBuffer(r.session.md5.digest()),a.putBuffer(r.session.sha1.digest()),a=a.getBytes();try{var u=r.session.clientCertificate;if(!u.publicKey.verify(a,s.signature,"NONE"))throw new Error("CertificateVerify signature does not match.");r.session.md5.update(i),r.session.sha1.update(i)}catch{return r.error(r,{message:"Bad signature in CertificateVerify.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.handshake_failure}})}r.expect=oB,r.process()};j.handleServerHelloDone=function(r,e,t){if(t>0)return r.error(r,{message:"Invalid ServerHelloDone message. Invalid length.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.record_overflow}});if(r.serverCertificate===null){var n={message:"No server certificate provided. Not enough security.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.insufficient_security}},i=0,s=r.verify(r,n.alert.description,i,[]);if(s!==!0)return(s||s===0)&&(typeof s=="object"&&!ze.util.isArray(s)?(s.message&&(n.message=s.message),s.alert&&(n.alert.description=s.alert)):typeof s=="number"&&(n.alert.description=s)),r.error(r,n)}r.session.certificateRequest!==null&&(e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createCertificate(r)}),j.queue(r,e)),e=j.createRecord(r,{type:j.ContentType.handshake,data:j.createClientKeyExchange(r)}),j.queue(r,e),r.expect=_fe;var a=o(function(u,c){u.session.certificateRequest!==null&&u.session.clientCertificate!==null&&j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createCertificateVerify(u,c)})),j.queue(u,j.createRecord(u,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),u.state.pending=j.createConnectionState(u),u.state.current.write=u.state.pending.write,j.queue(u,j.createRecord(u,{type:j.ContentType.handshake,data:j.createFinished(u)})),u.expect=g6,j.flush(u),u.process()},"callback");if(r.session.certificateRequest===null||r.session.clientCertificate===null)return a(r,null);j.getClientSignature(r,a)};j.handleChangeCipherSpec=function(r,e){if(e.fragment.getByte()!==1)return r.error(r,{message:"Invalid ChangeCipherSpec message received.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.illegal_parameter}});var t=r.entity===j.ConnectionEnd.client;(r.session.resuming&&t||!r.session.resuming&&!t)&&(r.state.pending=j.createConnectionState(r)),r.state.current.read=r.state.pending.read,(!r.session.resuming&&t||r.session.resuming&&!t)&&(r.state.pending=null),r.expect=t?Rfe:Ffe,r.process()};j.handleFinished=function(r,e,t){var n=e.fragment;n.read-=4;var i=n.bytes();n.read+=4;var s=e.fragment.getBytes();n=ze.util.createBuffer(),n.putBuffer(r.session.md5.digest()),n.putBuffer(r.session.sha1.digest());var a=r.entity===j.ConnectionEnd.client,u=a?"server finished":"client finished",c=r.session.sp,l=12,p=v2;if(n=p(c.master_secret,u,n.getBytes(),l),n.getBytes()!==s)return r.error(r,{message:"Invalid verify_data in Finished message.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decrypt_error}});r.session.md5.update(i),r.session.sha1.update(i),(r.session.resuming&&a||!r.session.resuming&&!a)&&(j.queue(r,j.createRecord(r,{type:j.ContentType.change_cipher_spec,data:j.createChangeCipherSpec()})),r.state.current.write=r.state.pending.write,r.state.pending=null,j.queue(r,j.createRecord(r,{type:j.ContentType.handshake,data:j.createFinished(r)}))),r.expect=a?Dfe:Lfe,r.handshaking=!1,++r.handshakes,r.peerCertificate=a?r.session.serverCertificate:r.session.clientCertificate,j.flush(r),r.isConnected=!0,r.connected(r),r.process()};j.handleAlert=function(r,e){var t=e.fragment,n={level:t.getByte(),description:t.getByte()},i;switch(n.description){case j.Alert.Description.close_notify:i="Connection closed.";break;case j.Alert.Description.unexpected_message:i="Unexpected message.";break;case j.Alert.Description.bad_record_mac:i="Bad record MAC.";break;case j.Alert.Description.decryption_failed:i="Decryption failed.";break;case j.Alert.Description.record_overflow:i="Record overflow.";break;case j.Alert.Description.decompression_failure:i="Decompression failed.";break;case j.Alert.Description.handshake_failure:i="Handshake failure.";break;case j.Alert.Description.bad_certificate:i="Bad certificate.";break;case j.Alert.Description.unsupported_certificate:i="Unsupported certificate.";break;case j.Alert.Description.certificate_revoked:i="Certificate revoked.";break;case j.Alert.Description.certificate_expired:i="Certificate expired.";break;case j.Alert.Description.certificate_unknown:i="Certificate unknown.";break;case j.Alert.Description.illegal_parameter:i="Illegal parameter.";break;case j.Alert.Description.unknown_ca:i="Unknown certificate authority.";break;case j.Alert.Description.access_denied:i="Access denied.";break;case j.Alert.Description.decode_error:i="Decode error.";break;case j.Alert.Description.decrypt_error:i="Decrypt error.";break;case j.Alert.Description.export_restriction:i="Export restriction.";break;case j.Alert.Description.protocol_version:i="Unsupported protocol version.";break;case j.Alert.Description.insufficient_security:i="Insufficient security.";break;case j.Alert.Description.internal_error:i="Internal error.";break;case j.Alert.Description.user_canceled:i="User canceled.";break;case j.Alert.Description.no_renegotiation:i="Renegotiation not supported.";break;default:i="Unknown error.";break}if(n.description===j.Alert.Description.close_notify)return r.close();r.error(r,{message:i,send:!1,origin:r.entity===j.ConnectionEnd.client?"server":"client",alert:n}),r.process()};j.handleHandshake=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt24();if(i>t.length())return r.fragmented=e,e.fragment=ze.util.createBuffer(),t.read-=4,r.process();r.fragmented=null,t.read-=4;var s=t.bytes(i+4);t.read+=4,n in g2[r.entity][r.expect]?(r.entity===j.ConnectionEnd.server&&!r.open&&!r.fail&&(r.handshaking=!0,r.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:ze.md.md5.create(),sha1:ze.md.sha1.create()}),n!==j.HandshakeType.hello_request&&n!==j.HandshakeType.certificate_verify&&n!==j.HandshakeType.finished&&(r.session.md5.update(s),r.session.sha1.update(s)),g2[r.entity][r.expect][n](r,e,i)):j.handleUnexpected(r,e)};j.handleApplicationData=function(r,e){r.data.putBuffer(e.fragment),r.dataReady(r),r.process()};j.handleHeartbeat=function(r,e){var t=e.fragment,n=t.getByte(),i=t.getInt16(),s=t.getBytes(i);if(n===j.HeartbeatMessageType.heartbeat_request){if(r.handshaking||i>s.length)return r.process();j.queue(r,j.createRecord(r,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_response,s)})),j.flush(r)}else if(n===j.HeartbeatMessageType.heartbeat_response){if(s!==r.expectedHeartbeatPayload)return r.process();r.heartbeatReceived&&r.heartbeatReceived(r,ze.util.createBuffer(s))}r.process()};var Afe=0,Nfe=1,d6=2,Ife=3,Tfe=4,g6=5,Rfe=6,Dfe=7,_fe=8,Ofe=0,Pfe=1,aB=2,Bfe=3,oB=4,Ffe=5,Lfe=6,V=j.handleUnexpected,v6=j.handleChangeCipherSpec,vs=j.handleAlert,ha=j.handleHandshake,y6=j.handleApplicationData,ys=j.handleHeartbeat,uB=[];uB[j.ConnectionEnd.client]=[[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[v6,vs,V,V,ys],[V,vs,ha,V,ys],[V,vs,ha,y6,ys],[V,vs,ha,V,ys]];uB[j.ConnectionEnd.server]=[[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[V,vs,ha,V,ys],[v6,vs,V,V,ys],[V,vs,ha,V,ys],[V,vs,ha,y6,ys],[V,vs,ha,V,ys]];var Up=j.handleHelloRequest,kfe=j.handleServerHello,S6=j.handleCertificate,m6=j.handleServerKeyExchange,iB=j.handleCertificateRequest,d2=j.handleServerHelloDone,x6=j.handleFinished,g2=[];g2[j.ConnectionEnd.client]=[[V,V,kfe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,S6,m6,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,m6,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,iB,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,d2,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,x6],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[Up,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];var Vfe=j.handleClientHello,jfe=j.handleClientKeyExchange,Ufe=j.handleCertificateVerify;g2[j.ConnectionEnd.server]=[[V,Vfe,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,S6,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,jfe,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,Ufe,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,x6],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V],[V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V,V]];j.generateKeys=function(r,e){var t=v2,n=e.client_random+e.server_random;r.session.resuming||(e.master_secret=t(e.pre_master_secret,"master secret",n,48).bytes(),e.pre_master_secret=null),n=e.server_random+e.client_random;var i=2*e.mac_key_length+2*e.enc_key_length,s=r.version.major===j.Versions.TLS_1_0.major&&r.version.minor===j.Versions.TLS_1_0.minor;s&&(i+=2*e.fixed_iv_length);var a=t(e.master_secret,"key expansion",n,i),u={client_write_MAC_key:a.getBytes(e.mac_key_length),server_write_MAC_key:a.getBytes(e.mac_key_length),client_write_key:a.getBytes(e.enc_key_length),server_write_key:a.getBytes(e.enc_key_length)};return s&&(u.client_write_IV=a.getBytes(e.fixed_iv_length),u.server_write_IV=a.getBytes(e.fixed_iv_length)),u};j.createConnectionState=function(r){var e=r.entity===j.ConnectionEnd.client,t=o(function(){var s={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:o(function(a){return!0},"cipherFunction"),compressionState:null,compressFunction:o(function(a){return!0},"compressFunction"),updateSequenceNumber:o(function(){s.sequenceNumber[1]===4294967295?(s.sequenceNumber[1]=0,++s.sequenceNumber[0]):++s.sequenceNumber[1]},"updateSequenceNumber")};return s},"createMode"),n={read:t(),write:t()};if(n.read.update=function(s,a){return n.read.cipherFunction(a,n.read)?n.read.compressFunction(s,a,n.read)||s.error(s,{message:"Could not decompress record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.decompression_failure}}):s.error(s,{message:"Could not decrypt record or bad MAC.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_record_mac}}),!s.fail},n.write.update=function(s,a){return n.write.compressFunction(s,a,n.write)?n.write.cipherFunction(a,n.write)||s.error(s,{message:"Could not encrypt record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):s.error(s,{message:"Could not compress record.",send:!1,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}),!s.fail},r.session){var i=r.session.sp;switch(r.session.cipherSuite.initSecurityParameters(i),i.keys=j.generateKeys(r,i),n.read.macKey=e?i.keys.server_write_MAC_key:i.keys.client_write_MAC_key,n.write.macKey=e?i.keys.client_write_MAC_key:i.keys.server_write_MAC_key,r.session.cipherSuite.initConnectionState(n,r,i),i.compression_algorithm){case j.CompressionMethod.none:break;case j.CompressionMethod.deflate:n.read.compressFunction=Efe,n.write.compressFunction=Cfe;break;default:throw new Error("Unsupported compression algorithm.")}}return n};j.createRandom=function(){var r=new Date,e=+r+r.getTimezoneOffset()*6e4,t=ze.util.createBuffer();return t.putInt32(e),t.putBytes(ze.random.getBytes(28)),t};j.createRecord=function(r,e){if(!e.data)return null;var t={type:e.type,version:{major:r.version.major,minor:r.version.minor},length:e.data.length(),fragment:e.data};return t};j.createAlert=function(r,e){var t=ze.util.createBuffer();return t.putByte(e.level),t.putByte(e.description),j.createRecord(r,{type:j.ContentType.alert,data:t})};j.createClientHello=function(r){r.session.clientHelloVersion={major:r.version.major,minor:r.version.minor};for(var e=ze.util.createBuffer(),t=0;t<r.cipherSuites.length;++t){var n=r.cipherSuites[t];e.putByte(n.id[0]),e.putByte(n.id[1])}var i=e.length(),s=ze.util.createBuffer();s.putByte(j.CompressionMethod.none);var a=s.length(),u=ze.util.createBuffer();if(r.virtualHost){var c=ze.util.createBuffer();c.putByte(0),c.putByte(0);var l=ze.util.createBuffer();l.putByte(0),Uo(l,2,ze.util.createBuffer(r.virtualHost));var p=ze.util.createBuffer();Uo(p,2,l),Uo(c,2,p),u.putBuffer(c)}var m=u.length();m>0&&(m+=2);var g=r.session.id,y=g.length+1+2+4+28+2+i+1+a+m,v=ze.util.createBuffer();return v.putByte(j.HandshakeType.client_hello),v.putInt24(y),v.putByte(r.version.major),v.putByte(r.version.minor),v.putBytes(r.session.sp.client_random),Uo(v,1,ze.util.createBuffer(g)),Uo(v,2,e),Uo(v,1,s),m>0&&Uo(v,2,u),v};j.createServerHello=function(r){var e=r.session.id,t=e.length+1+2+4+28+2+1,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.server_hello),n.putInt24(t),n.putByte(r.version.major),n.putByte(r.version.minor),n.putBytes(r.session.sp.server_random),Uo(n,1,ze.util.createBuffer(e)),n.putByte(r.session.cipherSuite.id[0]),n.putByte(r.session.cipherSuite.id[1]),n.putByte(r.session.compressionMethod),n};j.createCertificate=function(r){var e=r.entity===j.ConnectionEnd.client,t=null;if(r.getCertificate){var n;e?n=r.session.certificateRequest:n=r.session.extensions.server_name.serverNameList,t=r.getCertificate(r,n)}var i=ze.util.createBuffer();if(t!==null)try{ze.util.isArray(t)||(t=[t]);for(var s=null,a=0;a<t.length;++a){var u=ze.pem.decode(t[a])[0];if(u.type!=="CERTIFICATE"&&u.type!=="X509 CERTIFICATE"&&u.type!=="TRUSTED CERTIFICATE"){var c=new Error('Could not convert certificate from PEM; PEM header type is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".');throw c.headerType=u.type,c}if(u.procType&&u.procType.type==="ENCRYPTED")throw new Error("Could not convert certificate from PEM; PEM is encrypted.");var l=ze.util.createBuffer(u.body);s===null&&(s=ze.asn1.fromDer(l.bytes(),!1));var p=ze.util.createBuffer();Uo(p,3,l),i.putBuffer(p)}t=ze.pki.certificateFromAsn1(s),e?r.session.clientCertificate=t:r.session.serverCertificate=t}catch(y){return r.error(r,{message:"Could not send certificate list.",cause:y,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate}})}var m=3+i.length(),g=ze.util.createBuffer();return g.putByte(j.HandshakeType.certificate),g.putInt24(m),Uo(g,3,i),g};j.createClientKeyExchange=function(r){var e=ze.util.createBuffer();e.putByte(r.session.clientHelloVersion.major),e.putByte(r.session.clientHelloVersion.minor),e.putBytes(ze.random.getBytes(46));var t=r.session.sp;t.pre_master_secret=e.getBytes();var n=r.session.serverCertificate.publicKey;e=n.encrypt(t.pre_master_secret);var i=e.length+2,s=ze.util.createBuffer();return s.putByte(j.HandshakeType.client_key_exchange),s.putInt24(i),s.putInt16(e.length),s.putBytes(e),s};j.createServerKeyExchange=function(r){var e=0,t=ze.util.createBuffer();return e>0&&(t.putByte(j.HandshakeType.server_key_exchange),t.putInt24(e)),t};j.getClientSignature=function(r,e){var t=ze.util.createBuffer();t.putBuffer(r.session.md5.digest()),t.putBuffer(r.session.sha1.digest()),t=t.getBytes(),r.getSignature=r.getSignature||function(n,i,s){var a=null;if(n.getPrivateKey)try{a=n.getPrivateKey(n,n.session.clientCertificate),a=ze.pki.privateKeyFromPem(a)}catch(u){n.error(n,{message:"Could not get private key.",cause:u,send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}})}a===null?n.error(n,{message:"No private key set.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.internal_error}}):i=a.sign(i,null),s(n,i)},r.getSignature(r,t,e)};j.createCertificateVerify=function(r,e){var t=e.length+2,n=ze.util.createBuffer();return n.putByte(j.HandshakeType.certificate_verify),n.putInt24(t),n.putInt16(e.length),n.putBytes(e),n};j.createCertificateRequest=function(r){var e=ze.util.createBuffer();e.putByte(1);var t=ze.util.createBuffer();for(var n in r.caStore.certs){var i=r.caStore.certs[n],s=ze.pki.distinguishedNameToAsn1(i.subject),a=ze.asn1.toDer(s);t.putInt16(a.length()),t.putBuffer(a)}var u=1+e.length()+2+t.length(),c=ze.util.createBuffer();return c.putByte(j.HandshakeType.certificate_request),c.putInt24(u),Uo(c,1,e),Uo(c,2,t),c};j.createServerHelloDone=function(r){var e=ze.util.createBuffer();return e.putByte(j.HandshakeType.server_hello_done),e.putInt24(0),e};j.createChangeCipherSpec=function(){var r=ze.util.createBuffer();return r.putByte(1),r};j.createFinished=function(r){var e=ze.util.createBuffer();e.putBuffer(r.session.md5.digest()),e.putBuffer(r.session.sha1.digest());var t=r.entity===j.ConnectionEnd.client,n=r.session.sp,i=12,s=v2,a=t?"client finished":"server finished";e=s(n.master_secret,a,e.getBytes(),i);var u=ze.util.createBuffer();return u.putByte(j.HandshakeType.finished),u.putInt24(e.length()),u.putBuffer(e),u};j.createHeartbeat=function(r,e,t){typeof t>"u"&&(t=e.length);var n=ze.util.createBuffer();n.putByte(r),n.putInt16(t),n.putBytes(e);var i=n.length(),s=Math.max(16,i-t-3);return n.putBytes(ze.random.getBytes(s)),n};j.queue=function(r,e){if(e&&!(e.fragment.length()===0&&(e.type===j.ContentType.handshake||e.type===j.ContentType.alert||e.type===j.ContentType.change_cipher_spec))){if(e.type===j.ContentType.handshake){var t=e.fragment.bytes();r.session.md5.update(t),r.session.sha1.update(t),t=null}var n;if(e.fragment.length()<=j.MaxFragment)n=[e];else{n=[];for(var i=e.fragment.bytes();i.length>j.MaxFragment;)n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i.slice(0,j.MaxFragment))})),i=i.slice(j.MaxFragment);i.length>0&&n.push(j.createRecord(r,{type:e.type,data:ze.util.createBuffer(i)}))}for(var s=0;s<n.length&&!r.fail;++s){var a=n[s],u=r.state.current.write;u.update(r,a)&&r.records.push(a)}}};j.flush=function(r){for(var e=0;e<r.records.length;++e){var t=r.records[e];r.tlsData.putByte(t.type),r.tlsData.putByte(t.version.major),r.tlsData.putByte(t.version.minor),r.tlsData.putInt16(t.fragment.length()),r.tlsData.putBuffer(r.records[e].fragment)}return r.records=[],r.tlsDataReady(r)};var sB=o(function(r){switch(r){case!0:return!0;case ze.pki.certificateError.bad_certificate:return j.Alert.Description.bad_certificate;case ze.pki.certificateError.unsupported_certificate:return j.Alert.Description.unsupported_certificate;case ze.pki.certificateError.certificate_revoked:return j.Alert.Description.certificate_revoked;case ze.pki.certificateError.certificate_expired:return j.Alert.Description.certificate_expired;case ze.pki.certificateError.certificate_unknown:return j.Alert.Description.certificate_unknown;case ze.pki.certificateError.unknown_ca:return j.Alert.Description.unknown_ca;default:return j.Alert.Description.bad_certificate}},"_certErrorToAlertDesc"),Mfe=o(function(r){switch(r){case!0:return!0;case j.Alert.Description.bad_certificate:return ze.pki.certificateError.bad_certificate;case j.Alert.Description.unsupported_certificate:return ze.pki.certificateError.unsupported_certificate;case j.Alert.Description.certificate_revoked:return ze.pki.certificateError.certificate_revoked;case j.Alert.Description.certificate_expired:return ze.pki.certificateError.certificate_expired;case j.Alert.Description.certificate_unknown:return ze.pki.certificateError.certificate_unknown;case j.Alert.Description.unknown_ca:return ze.pki.certificateError.unknown_ca;default:return ze.pki.certificateError.bad_certificate}},"_alertDescToCertError");j.verifyCertificateChain=function(r,e){try{var t={};for(var n in r.verifyOptions)t[n]=r.verifyOptions[n];t.verify=function(s,a,u){var c=sB(s),l=r.verify(r,s,a,u);if(l!==!0){if(typeof l=="object"&&!ze.util.isArray(l)){var p=new Error("The application rejected the certificate.");throw p.send=!0,p.alert={level:j.Alert.Level.fatal,description:j.Alert.Description.bad_certificate},l.message&&(p.message=l.message),l.alert&&(p.alert.description=l.alert),p}l!==s&&(l=Mfe(l))}return l},ze.pki.verifyCertificateChain(r.caStore,e,t)}catch(s){var i=s;(typeof i!="object"||ze.util.isArray(i))&&(i={send:!0,alert:{level:j.Alert.Level.fatal,description:sB(s)}}),"send"in i||(i.send=!0),"alert"in i||(i.alert={level:j.Alert.Level.fatal,description:sB(i.error)}),r.error(r,i)}return!r.fail};j.createSessionCache=function(r,e){var t=null;if(r&&r.getSession&&r.setSession&&r.order)t=r;else{t={},t.cache=r||{},t.capacity=Math.max(e||100,1),t.order=[];for(var n in r)t.order.length<=e?t.order.push(n):delete r[n];t.getSession=function(i){var s=null,a=null;if(i?a=ze.util.bytesToHex(i):t.order.length>0&&(a=t.order[0]),a!==null&&a in t.cache){s=t.cache[a],delete t.cache[a];for(var u in t.order)if(t.order[u]===a){t.order.splice(u,1);break}}return s},t.setSession=function(i,s){if(t.order.length===t.capacity){var a=t.order.shift();delete t.cache[a]}var a=ze.util.bytesToHex(i);t.order.push(a),t.cache[a]=s}}return t};j.createConnection=function(r){var e=null;r.caStore?ze.util.isArray(r.caStore)?e=ze.pki.createCaStore(r.caStore):e=r.caStore:e=ze.pki.createCaStore();var t=r.cipherSuites||null;if(t===null){t=[];for(var n in j.CipherSuites)t.push(j.CipherSuites[n])}var i=r.server?j.ConnectionEnd.server:j.ConnectionEnd.client,s=r.sessionCache?j.createSessionCache(r.sessionCache):null,a={version:{major:j.Version.major,minor:j.Version.minor},entity:i,sessionId:r.sessionId,caStore:e,sessionCache:s,cipherSuites:t,connected:r.connected,virtualHost:r.virtualHost||null,verifyClient:r.verifyClient||!1,verify:r.verify||function(p,m,g,y){return m},verifyOptions:r.verifyOptions||{},getCertificate:r.getCertificate||null,getPrivateKey:r.getPrivateKey||null,getSignature:r.getSignature||null,input:ze.util.createBuffer(),tlsData:ze.util.createBuffer(),data:ze.util.createBuffer(),tlsDataReady:r.tlsDataReady,dataReady:r.dataReady,heartbeatReceived:r.heartbeatReceived,closed:r.closed,error:o(function(p,m){m.origin=m.origin||(p.entity===j.ConnectionEnd.client?"client":"server"),m.send&&(j.queue(p,j.createAlert(p,m.alert)),j.flush(p));var g=m.fatal!==!1;g&&(p.fail=!0),r.error(p,m),g&&p.close(!1)},"error"),deflate:r.deflate||null,inflate:r.inflate||null};a.reset=function(p){a.version={major:j.Version.major,minor:j.Version.minor},a.record=null,a.session=null,a.peerCertificate=null,a.state={pending:null,current:null},a.expect=a.entity===j.ConnectionEnd.client?Afe:Ofe,a.fragmented=null,a.records=[],a.open=!1,a.handshakes=0,a.handshaking=!1,a.isConnected=!1,a.fail=!(p||typeof p>"u"),a.input.clear(),a.tlsData.clear(),a.data.clear(),a.state.current=j.createConnectionState(a)},a.reset();var u=o(function(p,m){var g=m.type-j.ContentType.change_cipher_spec,y=uB[p.entity][p.expect];g in y?y[g](p,m):j.handleUnexpected(p,m)},"_update"),c=o(function(p){var m=0,g=p.input,y=g.length();if(y<5)m=5-y;else{p.record={type:g.getByte(),version:{major:g.getByte(),minor:g.getByte()},length:g.getInt16(),fragment:ze.util.createBuffer(),ready:!1};var v=p.record.version.major===p.version.major;v&&p.session&&p.session.version&&(v=p.record.version.minor===p.version.minor),v||p.error(p,{message:"Incompatible TLS version.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.protocol_version}})}return m},"_readRecordHeader"),l=o(function(p){var m=0,g=p.input,y=g.length();if(y<p.record.length)m=p.record.length-y;else{p.record.fragment.putBytes(g.getBytes(p.record.length)),g.compact();var v=p.state.current.read;v.update(p,p.record)&&(p.fragmented!==null&&(p.fragmented.type===p.record.type?(p.fragmented.fragment.putBuffer(p.record.fragment),p.record=p.fragmented):p.error(p,{message:"Invalid fragmented record.",send:!0,alert:{level:j.Alert.Level.fatal,description:j.Alert.Description.unexpected_message}})),p.record.ready=!0)}return m},"_readRecord");return a.handshake=function(p){if(a.entity!==j.ConnectionEnd.client)a.error(a,{message:"Cannot initiate handshake as a server.",fatal:!1});else if(a.handshaking)a.error(a,{message:"Handshake already in progress.",fatal:!1});else{a.fail&&!a.open&&a.handshakes===0&&(a.fail=!1),a.handshaking=!0,p=p||"";var m=null;p.length>0&&(a.sessionCache&&(m=a.sessionCache.getSession(p)),m===null&&(p="")),p.length===0&&a.sessionCache&&(m=a.sessionCache.getSession(),m!==null&&(p=m.id)),a.session={id:p,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:ze.md.md5.create(),sha1:ze.md.sha1.create()},m&&(a.version=m.version,a.session.sp=m.sp),a.session.sp.client_random=j.createRandom().getBytes(),a.open=!0,j.queue(a,j.createRecord(a,{type:j.ContentType.handshake,data:j.createClientHello(a)})),j.flush(a)}},a.process=function(p){var m=0;return p&&a.input.putBytes(p),a.fail||(a.record!==null&&a.record.ready&&a.record.fragment.isEmpty()&&(a.record=null),a.record===null&&(m=c(a)),!a.fail&&a.record!==null&&!a.record.ready&&(m=l(a)),!a.fail&&a.record!==null&&a.record.ready&&u(a,a.record)),m},a.prepare=function(p){return j.queue(a,j.createRecord(a,{type:j.ContentType.application_data,data:ze.util.createBuffer(p)})),j.flush(a)},a.prepareHeartbeatRequest=function(p,m){return p instanceof ze.util.ByteBuffer&&(p=p.bytes()),typeof m>"u"&&(m=p.length),a.expectedHeartbeatPayload=p,j.queue(a,j.createRecord(a,{type:j.ContentType.heartbeat,data:j.createHeartbeat(j.HeartbeatMessageType.heartbeat_request,p,m)})),j.flush(a)},a.close=function(p){if(!a.fail&&a.sessionCache&&a.session){var m={id:a.session.id,version:a.session.version,sp:a.session.sp};m.sp.keys=null,a.sessionCache.setSession(m.id,m)}a.open&&(a.open=!1,a.input.clear(),(a.isConnected||a.handshaking)&&(a.isConnected=a.handshaking=!1,j.queue(a,j.createAlert(a,{level:j.Alert.Level.warning,description:j.Alert.Description.close_notify})),j.flush(a)),a.closed(a)),a.reset(p)},a};b6.exports=ze.tls=ze.tls||{};for(m2 in j)typeof j[m2]!="function"&&(ze.tls[m2]=j[m2]);var m2;ze.tls.prf_tls1=v2;ze.tls.hmac_sha1=wfe;ze.tls.createSessionCache=j.createSessionCache;ze.tls.createConnection=j.createConnection});var E6=Z((zIe,C6)=>{"use strict";var Mp=pr();Bp();cB();var Mo=C6.exports=Mp.tls;Mo.CipherSuites.TLS_RSA_WITH_AES_128_CBC_SHA={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Mo.BulkCipherAlgorithm.aes,r.cipher_type=Mo.CipherType.block,r.enc_key_length=16,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Mo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:w6};Mo.CipherSuites.TLS_RSA_WITH_AES_256_CBC_SHA={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:o(function(r){r.bulk_cipher_algorithm=Mo.BulkCipherAlgorithm.aes,r.cipher_type=Mo.CipherType.block,r.enc_key_length=32,r.block_length=16,r.fixed_iv_length=16,r.record_iv_length=16,r.mac_algorithm=Mo.MACAlgorithm.hmac_sha1,r.mac_length=20,r.mac_key_length=20},"initSecurityParameters"),initConnectionState:w6};function w6(r,e,t){var n=e.entity===Mp.tls.ConnectionEnd.client;r.read.cipherState={init:!1,cipher:Mp.cipher.createDecipher("AES-CBC",n?t.keys.server_write_key:t.keys.client_write_key),iv:n?t.keys.server_write_IV:t.keys.client_write_IV},r.write.cipherState={init:!1,cipher:Mp.cipher.createCipher("AES-CBC",n?t.keys.client_write_key:t.keys.server_write_key),iv:n?t.keys.client_write_IV:t.keys.server_write_IV},r.read.cipherFunction=Kfe,r.write.cipherFunction=qfe,r.read.macLength=r.write.macLength=t.mac_length,r.read.macFunction=r.write.macFunction=Mo.hmac_sha1}o(w6,"initConnectionState");function qfe(r,e){var t=!1,n=e.macFunction(e.macKey,e.sequenceNumber,r);r.fragment.putBytes(n),e.updateSequenceNumber();var i;r.version.minor===Mo.Versions.TLS_1_0.minor?i=e.cipherState.init?null:e.cipherState.iv:i=Mp.random.getBytesSync(16),e.cipherState.init=!0;var s=e.cipherState.cipher;return s.start({iv:i}),r.version.minor>=Mo.Versions.TLS_1_1.minor&&s.output.putBytes(i),s.update(r.fragment),s.finish(Hfe)&&(r.fragment=s.output,r.length=r.fragment.length(),t=!0),t}o(qfe,"encrypt_aes_cbc_sha1");function Hfe(r,e,t){if(!t){var n=r-e.length()%r;e.fillWithByte(n-1,n)}return!0}o(Hfe,"encrypt_aes_cbc_sha1_padding");function zfe(r,e,t){var n=!0;if(t){for(var i=e.length(),s=e.last(),a=i-1-s;a<i-1;++a)n=n&&e.at(a)==s;n&&e.truncate(s+1)}return n}o(zfe,"decrypt_aes_cbc_sha1_padding");function Kfe(r,e){var t=!1,n;r.version.minor===Mo.Versions.TLS_1_0.minor?n=e.cipherState.init?null:e.cipherState.iv:n=r.fragment.getBytes(16),e.cipherState.init=!0;var i=e.cipherState.cipher;i.start({iv:n}),i.update(r.fragment),t=i.finish(zfe);var s=e.macLength,a=Mp.random.getBytesSync(s),u=i.output.length();u>=s?(r.fragment=i.output.getBytes(u-s),a=i.output.getBytes(s)):r.fragment=i.output.getBytes(),r.fragment=Mp.util.createBuffer(r.fragment),r.length=r.fragment.length();var c=e.macFunction(e.macKey,e.sequenceNumber,r);return e.updateSequenceNumber(),t=$fe(e.macKey,a,c)&&t,t}o(Kfe,"decrypt_aes_cbc_sha1");function $fe(r,e,t){var n=Mp.hmac.create();return n.start("SHA1",r),n.update(e),e=n.digest().getBytes(),n.start(null,null),n.update(t),t=n.digest().getBytes(),e===t}o($fe,"compareMacs")});var pB=Z(($Ie,T6)=>{"use strict";var Rn=pr();Ac();kr();var qx=T6.exports=Rn.sha512=Rn.sha512||{};Rn.md.sha512=Rn.md.algorithms.sha512=qx;var N6=Rn.sha384=Rn.sha512.sha384=Rn.sha512.sha384||{};N6.create=function(){return qx.create("SHA-384")};Rn.md.sha384=Rn.md.algorithms.sha384=N6;Rn.sha512.sha256=Rn.sha512.sha256||{create:o(function(){return qx.create("SHA-512/256")},"create")};Rn.md["sha512/256"]=Rn.md.algorithms["sha512/256"]=Rn.sha512.sha256;Rn.sha512.sha224=Rn.sha512.sha224||{create:o(function(){return qx.create("SHA-512/224")},"create")};Rn.md["sha512/224"]=Rn.md.algorithms["sha512/224"]=Rn.sha512.sha224;qx.create=function(r){if(I6||Gfe(),typeof r>"u"&&(r="SHA-512"),!(r in im))throw new Error("Invalid SHA-512 algorithm: "+r);for(var e=im[r],t=null,n=Rn.util.createBuffer(),i=new Array(80),s=0;s<80;++s)i[s]=new Array(2);var a=64;switch(r){case"SHA-384":a=48;break;case"SHA-512/256":a=32;break;case"SHA-512/224":a=28;break}var u={algorithm:r.replace("-","").toLowerCase(),blockLength:128,digestLength:a,messageLength:0,fullMessageLength:null,messageLengthSize:16};return u.start=function(){u.messageLength=0,u.fullMessageLength=u.messageLength128=[];for(var c=u.messageLengthSize/4,l=0;l<c;++l)u.fullMessageLength.push(0);n=Rn.util.createBuffer(),t=new Array(e.length);for(var l=0;l<e.length;++l)t[l]=e[l].slice(0);return u},u.start(),u.update=function(c,l){l==="utf8"&&(c=Rn.util.encodeUtf8(c));var p=c.length;u.messageLength+=p,p=[p/4294967296>>>0,p>>>0];for(var m=u.fullMessageLength.length-1;m>=0;--m)u.fullMessageLength[m]+=p[1],p[1]=p[0]+(u.fullMessageLength[m]/4294967296>>>0),u.fullMessageLength[m]=u.fullMessageLength[m]>>>0,p[0]=p[1]/4294967296>>>0;return n.putBytes(c),A6(t,i,n),(n.read>2048||n.length()===0)&&n.compact(),u},u.digest=function(){var c=Rn.util.createBuffer();c.putBytes(n.bytes());var l=u.fullMessageLength[u.fullMessageLength.length-1]+u.messageLengthSize,p=l&u.blockLength-1;c.putBytes(lB.substr(0,u.blockLength-p));for(var m,g,y=u.fullMessageLength[0]*8,v=0;v<u.fullMessageLength.length-1;++v)m=u.fullMessageLength[v+1]*8,g=m/4294967296>>>0,y+=g,c.putInt32(y>>>0),y=m>>>0;c.putInt32(y);for(var b=new Array(t.length),v=0;v<t.length;++v)b[v]=t[v].slice(0);A6(b,i,c);var x=Rn.util.createBuffer(),E;r==="SHA-512"?E=b.length:r==="SHA-384"?E=b.length-2:E=b.length-4;for(var v=0;v<E;++v)x.putInt32(b[v][0]),(v!==E-1||r!=="SHA-512/224")&&x.putInt32(b[v][1]);return x},u};var lB=null,I6=!1,fB=null,im=null;function Gfe(){lB="\x80",lB+=Rn.util.fillString("\0",128),fB=[[1116352408,3609767458],[1899447441,602891725],[3049323471,3964484399],[3921009573,2173295548],[961987163,4081628472],[1508970993,3053834265],[2453635748,2937671579],[2870763221,3664609560],[3624381080,2734883394],[310598401,1164996542],[607225278,1323610764],[1426881987,3590304994],[1925078388,4068182383],[2162078206,991336113],[2614888103,633803317],[3248222580,3479774868],[3835390401,2666613458],[4022224774,944711139],[264347078,2341262773],[604807628,2007800933],[770255983,1495990901],[1249150122,1856431235],[1555081692,3175218132],[1996064986,2198950837],[2554220882,3999719339],[2821834349,766784016],[2952996808,2566594879],[3210313671,3203337956],[3336571891,1034457026],[3584528711,2466948901],[113926993,3758326383],[338241895,168717936],[666307205,1188179964],[773529912,1546045734],[1294757372,1522805485],[1396182291,2643833823],[1695183700,2343527390],[1986661051,1014477480],[2177026350,1206759142],[2456956037,344077627],[2730485921,1290863460],[2820302411,3158454273],[3259730800,3505952657],[3345764771,106217008],[3516065817,3606008344],[3600352804,1432725776],[4094571909,1467031594],[275423344,851169720],[430227734,3100823752],[506948616,1363258195],[659060556,3750685593],[883997877,3785050280],[958139571,3318307427],[1322822218,3812723403],[1537002063,2003034995],[1747873779,3602036899],[1955562222,1575990012],[2024104815,1125592928],[2227730452,2716904306],[2361852424,442776044],[2428436474,593698344],[2756734187,3733110249],[3204031479,2999351573],[3329325298,3815920427],[3391569614,3928383900],[3515267271,566280711],[3940187606,3454069534],[4118630271,4000239992],[116418474,1914138554],[174292421,2731055270],[289380356,3203993006],[460393269,320620315],[685471733,587496836],[852142971,1086792851],[1017036298,365543100],[1126000580,2618297676],[1288033470,3409855158],[1501505948,4234509866],[1607167915,987167468],[1816402316,1246189591]],im={},im["SHA-512"]=[[1779033703,4089235720],[3144134277,2227873595],[1013904242,4271175723],[2773480762,1595750129],[1359893119,2917565137],[2600822924,725511199],[528734635,4215389547],[1541459225,327033209]],im["SHA-384"]=[[3418070365,3238371032],[1654270250,914150663],[2438529370,812702999],[355462360,4144912697],[1731405415,4290775857],[2394180231,1750603025],[3675008525,1694076839],[1203062813,3204075428]],im["SHA-512/256"]=[[573645204,4230739756],[2673172387,3360449730],[596883563,1867755857],[2520282905,1497426621],[2519219938,2827943907],[3193839141,1401305490],[721525244,746961066],[246885852,2177182882]],im["SHA-512/224"]=[[2352822216,424955298],[1944164710,2312950998],[502970286,855612546],[1738396948,1479516111],[258812777,2077511080],[2011393907,79989058],[1067287976,1780299464],[286451373,2446758561]],I6=!0}o(Gfe,"_init");function A6(r,e,t){for(var n,i,s,a,u,c,l,p,m,g,y,v,b,x,E,N,w,C,A,R,M,_,H,z,K,X,ye,fe,ce,ee,pe,Ce,Ye,xe,ie,De=t.length();De>=128;){for(ce=0;ce<16;++ce)e[ce][0]=t.getInt32()>>>0,e[ce][1]=t.getInt32()>>>0;for(;ce<80;++ce)Ce=e[ce-2],ee=Ce[0],pe=Ce[1],n=((ee>>>19|pe<<13)^(pe>>>29|ee<<3)^ee>>>6)>>>0,i=((ee<<13|pe>>>19)^(pe<<3|ee>>>29)^(ee<<26|pe>>>6))>>>0,xe=e[ce-15],ee=xe[0],pe=xe[1],s=((ee>>>1|pe<<31)^(ee>>>8|pe<<24)^ee>>>7)>>>0,a=((ee<<31|pe>>>1)^(ee<<24|pe>>>8)^(ee<<25|pe>>>7))>>>0,Ye=e[ce-7],ie=e[ce-16],pe=i+Ye[1]+a+ie[1],e[ce][0]=n+Ye[0]+s+ie[0]+(pe/4294967296>>>0)>>>0,e[ce][1]=pe>>>0;for(b=r[0][0],x=r[0][1],E=r[1][0],N=r[1][1],w=r[2][0],C=r[2][1],A=r[3][0],R=r[3][1],M=r[4][0],_=r[4][1],H=r[5][0],z=r[5][1],K=r[6][0],X=r[6][1],ye=r[7][0],fe=r[7][1],ce=0;ce<80;++ce)l=((M>>>14|_<<18)^(M>>>18|_<<14)^(_>>>9|M<<23))>>>0,p=((M<<18|_>>>14)^(M<<14|_>>>18)^(_<<23|M>>>9))>>>0,m=(K^M&(H^K))>>>0,g=(X^_&(z^X))>>>0,u=((b>>>28|x<<4)^(x>>>2|b<<30)^(x>>>7|b<<25))>>>0,c=((b<<4|x>>>28)^(x<<30|b>>>2)^(x<<25|b>>>7))>>>0,y=(b&E|w&(b^E))>>>0,v=(x&N|C&(x^N))>>>0,pe=fe+p+g+fB[ce][1]+e[ce][1],n=ye+l+m+fB[ce][0]+e[ce][0]+(pe/4294967296>>>0)>>>0,i=pe>>>0,pe=c+v,s=u+y+(pe/4294967296>>>0)>>>0,a=pe>>>0,ye=K,fe=X,K=H,X=z,H=M,z=_,pe=R+i,M=A+n+(pe/4294967296>>>0)>>>0,_=pe>>>0,A=w,R=C,w=E,C=N,E=b,N=x,pe=i+a,b=n+s+(pe/4294967296>>>0)>>>0,x=pe>>>0;pe=r[0][1]+x,r[0][0]=r[0][0]+b+(pe/4294967296>>>0)>>>0,r[0][1]=pe>>>0,pe=r[1][1]+N,r[1][0]=r[1][0]+E+(pe/4294967296>>>0)>>>0,r[1][1]=pe>>>0,pe=r[2][1]+C,r[2][0]=r[2][0]+w+(pe/4294967296>>>0)>>>0,r[2][1]=pe>>>0,pe=r[3][1]+R,r[3][0]=r[3][0]+A+(pe/4294967296>>>0)>>>0,r[3][1]=pe>>>0,pe=r[4][1]+_,r[4][0]=r[4][0]+M+(pe/4294967296>>>0)>>>0,r[4][1]=pe>>>0,pe=r[5][1]+z,r[5][0]=r[5][0]+H+(pe/4294967296>>>0)>>>0,r[5][1]=pe>>>0,pe=r[6][1]+X,r[6][0]=r[6][0]+K+(pe/4294967296>>>0)>>>0,r[6][1]=pe>>>0,pe=r[7][1]+fe,r[7][0]=r[7][0]+ye+(pe/4294967296>>>0)>>>0,r[7][1]=pe>>>0,De-=128}}o(A6,"_update")});var R6=Z(hB=>{"use strict";var Xfe=pr();Iu();var Wi=Xfe.asn1;hB.privateKeyValidator={name:"PrivateKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"PrivateKeyInfo.version",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.INTEGER,constructed:!1,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OID,constructed:!1,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OCTETSTRING,constructed:!1,capture:"privateKey"}]};hB.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.SEQUENCE,constructed:!0,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.OID,constructed:!1,capture:"publicKeyOid"}]},{tagClass:Wi.Class.UNIVERSAL,type:Wi.Type.BITSTRING,constructed:!1,composed:!0,captureBitStringValue:"ed25519PublicKey"}]}});var q6=Z((WIe,M6)=>{"use strict";var Ss=pr();Vx();Lo();pB();kr();var F6=R6(),Wfe=F6.publicKeyValidator,Jfe=F6.privateKeyValidator;typeof D6>"u"&&(D6=Ss.jsbn.BigInteger);var D6,gB=Ss.util.ByteBuffer,Da=typeof Buffer>"u"?Uint8Array:Buffer;Ss.pki=Ss.pki||{};M6.exports=Ss.pki.ed25519=Ss.ed25519=Ss.ed25519||{};var br=Ss.ed25519;br.constants={};br.constants.PUBLIC_KEY_BYTE_LENGTH=32;br.constants.PRIVATE_KEY_BYTE_LENGTH=64;br.constants.SEED_BYTE_LENGTH=32;br.constants.SIGN_BYTE_LENGTH=64;br.constants.HASH_BYTE_LENGTH=64;br.generateKeyPair=function(r){r=r||{};var e=r.seed;if(e===void 0)e=Ss.random.getBytesSync(br.constants.SEED_BYTE_LENGTH);else if(typeof e=="string"){if(e.length!==br.constants.SEED_BYTE_LENGTH)throw new TypeError('"seed" must be '+br.constants.SEED_BYTE_LENGTH+" bytes in length.")}else if(!(e instanceof Uint8Array))throw new TypeError('"seed" must be a node.js Buffer, Uint8Array, or a binary string.');e=Gl({message:e,encoding:"binary"});for(var t=new Da(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=new Da(br.constants.PRIVATE_KEY_BYTE_LENGTH),i=0;i<32;++i)n[i]=e[i];return epe(t,n),{publicKey:t,privateKey:n}};br.privateKeyFromAsn1=function(r){var e={},t=[],n=Ss.asn1.validate(r,Jfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=Ss.asn1.derToOid(e.privateKeyOid),a=Ss.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.privateKey,c=Gl({message:Ss.asn1.fromDer(u).value,encoding:"binary"});return{privateKeyBytes:c}};br.publicKeyFromAsn1=function(r){var e={},t=[],n=Ss.asn1.validate(r,Wfe,e,t);if(!n){var i=new Error("Invalid Key.");throw i.errors=t,i}var s=Ss.asn1.derToOid(e.publicKeyOid),a=Ss.oids.EdDSA25519;if(s!==a)throw new Error('Invalid OID "'+s+'"; OID must be "'+a+'".');var u=e.ed25519PublicKey;if(u.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new Error("Key length is invalid.");return Gl({message:u,encoding:"binary"})};br.publicKeyFromPrivateKey=function(r){r=r||{};var e=Gl({message:r.privateKey,encoding:"binary"});if(e.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.PRIVATE_KEY_BYTE_LENGTH);for(var t=new Da(br.constants.PUBLIC_KEY_BYTE_LENGTH),n=0;n<t.length;++n)t[n]=e[32+n];return t};br.sign=function(r){r=r||{};var e=Gl(r),t=Gl({message:r.privateKey,encoding:"binary"});if(t.length===br.constants.SEED_BYTE_LENGTH){var n=br.generateKeyPair({seed:t});t=n.privateKey}else if(t.length!==br.constants.PRIVATE_KEY_BYTE_LENGTH)throw new TypeError('"options.privateKey" must have a byte length of '+br.constants.SEED_BYTE_LENGTH+" or "+br.constants.PRIVATE_KEY_BYTE_LENGTH);var i=new Da(br.constants.SIGN_BYTE_LENGTH+e.length);tpe(i,e,e.length,t);for(var s=new Da(br.constants.SIGN_BYTE_LENGTH),a=0;a<s.length;++a)s[a]=i[a];return s};br.verify=function(r){r=r||{};var e=Gl(r);if(r.signature===void 0)throw new TypeError('"options.signature" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a binary string.');var t=Gl({message:r.signature,encoding:"binary"});if(t.length!==br.constants.SIGN_BYTE_LENGTH)throw new TypeError('"options.signature" must have a byte length of '+br.constants.SIGN_BYTE_LENGTH);var n=Gl({message:r.publicKey,encoding:"binary"});if(n.length!==br.constants.PUBLIC_KEY_BYTE_LENGTH)throw new TypeError('"options.publicKey" must have a byte length of '+br.constants.PUBLIC_KEY_BYTE_LENGTH);var i=new Da(br.constants.SIGN_BYTE_LENGTH+e.length),s=new Da(br.constants.SIGN_BYTE_LENGTH+e.length),a;for(a=0;a<br.constants.SIGN_BYTE_LENGTH;++a)i[a]=t[a];for(a=0;a<e.length;++a)i[a+br.constants.SIGN_BYTE_LENGTH]=e[a];return rpe(s,i,i.length,n)>=0};function Gl(r){var e=r.message;if(e instanceof Uint8Array||e instanceof Da)return e;var t=r.encoding;if(e===void 0)if(r.md)e=r.md.digest().getBytes(),t="binary";else throw new TypeError('"options.message" or "options.md" not specified.');if(typeof e=="string"&&!t)throw new TypeError('"options.encoding" must be "binary" or "utf8".');if(typeof e=="string"){if(typeof Buffer<"u")return Buffer.from(e,t);e=new gB(e,t)}else if(!(e instanceof gB))throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge ByteBuffer, or a string with "options.encoding" specifying its encoding.');for(var n=new Da(e.length()),i=0;i<n.length;++i)n[i]=e.at(i);return n}o(Gl,"messageToNativeBuffer");var vB=jt(),y2=jt([1]),Qfe=jt([30883,4953,19914,30187,55467,16705,2637,112,59544,30585,16505,36039,65139,11119,27886,20995]),Yfe=jt([61785,9906,39828,60374,45398,33411,5274,224,53552,61171,33010,6542,64743,22239,55772,9222]),_6=jt([54554,36645,11616,51542,42930,38181,51040,26924,56412,64982,57905,49316,21502,52590,14035,8553]),O6=jt([26200,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214,26214]),dB=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]),Zfe=jt([41136,18958,6951,50414,58488,44335,6150,12099,55207,15867,153,11085,57099,20417,9344,11139]);function Hx(r,e){var t=Ss.md.sha512.create(),n=new gB(r);t.update(n.getBytes(e),"binary");var i=t.digest().getBytes();if(typeof Buffer<"u")return Buffer.from(i,"binary");for(var s=new Da(br.constants.HASH_BYTE_LENGTH),a=0;a<64;++a)s[a]=i.charCodeAt(a);return s}o(Hx,"sha512");function epe(r,e){var t=[jt(),jt(),jt(),jt()],n,i=Hx(e,32);for(i[0]&=248,i[31]&=127,i[31]|=64,bB(t,i),xB(r,t),n=0;n<32;++n)e[n+32]=r[n];return 0}o(epe,"crypto_sign_keypair");function tpe(r,e,t,n){var i,s,a=new Float64Array(64),u=[jt(),jt(),jt(),jt()],c=Hx(n,32);c[0]&=248,c[31]&=127,c[31]|=64;var l=t+64;for(i=0;i<t;++i)r[64+i]=e[i];for(i=0;i<32;++i)r[32+i]=c[32+i];var p=Hx(r.subarray(32),t+32);for(yB(p),bB(u,p),xB(r,u),i=32;i<64;++i)r[i]=n[i];var m=Hx(r,t+64);for(yB(m),i=32;i<64;++i)a[i]=0;for(i=0;i<32;++i)a[i]=p[i];for(i=0;i<32;++i)for(s=0;s<32;s++)a[i+s]+=m[i]*c[s];return L6(r.subarray(32),a),l}o(tpe,"crypto_sign");function rpe(r,e,t,n){var i,s,a=new Da(32),u=[jt(),jt(),jt(),jt()],c=[jt(),jt(),jt(),jt()];if(s=-1,t<64||npe(c,n))return-1;for(i=0;i<t;++i)r[i]=e[i];for(i=0;i<32;++i)r[i+32]=n[i];var l=Hx(r,t);if(yB(l),j6(u,c,l),bB(c,e.subarray(32)),SB(u,c),xB(a,u),t-=64,k6(e,0,a,0)){for(i=0;i<t;++i)r[i]=0;return-1}for(i=0;i<t;++i)r[i]=e[i+64];return s=t,s}o(rpe,"crypto_sign_open");function L6(r,e){var t,n,i,s;for(n=63;n>=32;--n){for(t=0,i=n-32,s=n-12;i<s;++i)e[i]+=t-16*e[n]*dB[i-(n-32)],t=e[i]+128>>8,e[i]-=t*256;e[i]+=t,e[n]=0}for(t=0,i=0;i<32;++i)e[i]+=t-(e[31]>>4)*dB[i],t=e[i]>>8,e[i]&=255;for(i=0;i<32;++i)e[i]-=t*dB[i];for(n=0;n<32;++n)e[n+1]+=e[n]>>8,r[n]=e[n]&255}o(L6,"modL");function yB(r){for(var e=new Float64Array(64),t=0;t<64;++t)e[t]=r[t],r[t]=0;L6(r,e)}o(yB,"reduce");function SB(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt(),l=jt(),p=jt();cv(t,r[1],r[0]),cv(p,e[1],e[0]),hn(t,t,p),uv(n,r[0],r[1]),uv(p,e[0],e[1]),hn(n,n,p),hn(i,r[3],e[3]),hn(i,i,Yfe),hn(s,r[2],e[2]),uv(s,s,s),cv(a,n,t),cv(u,s,i),uv(c,s,i),uv(l,n,t),hn(r[0],a,u),hn(r[1],l,c),hn(r[2],c,u),hn(r[3],a,l)}o(SB,"add");function P6(r,e,t){for(var n=0;n<4;++n)U6(r[n],e[n],t)}o(P6,"cswap");function xB(r,e){var t=jt(),n=jt(),i=jt();ope(i,e[2]),hn(t,e[0],i),hn(n,e[1],i),S2(r,n),r[31]^=V6(t)<<7}o(xB,"pack");function S2(r,e){var t,n,i,s=jt(),a=jt();for(t=0;t<16;++t)a[t]=e[t];for(mB(a),mB(a),mB(a),n=0;n<2;++n){for(s[0]=a[0]-65517,t=1;t<15;++t)s[t]=a[t]-65535-(s[t-1]>>16&1),s[t-1]&=65535;s[15]=a[15]-32767-(s[14]>>16&1),i=s[15]>>16&1,s[14]&=65535,U6(a,s,1-i)}for(t=0;t<16;t++)r[2*t]=a[t]&255,r[2*t+1]=a[t]>>8}o(S2,"pack25519");function npe(r,e){var t=jt(),n=jt(),i=jt(),s=jt(),a=jt(),u=jt(),c=jt();return qp(r[2],y2),ipe(r[1],e),sm(i,r[1]),hn(s,i,Qfe),cv(i,i,r[2]),uv(s,r[2],s),sm(a,s),sm(u,a),hn(c,u,a),hn(t,c,i),hn(t,t,s),spe(t,t),hn(t,t,i),hn(t,t,s),hn(t,t,s),hn(r[0],t,s),sm(n,r[0]),hn(n,n,s),B6(n,i)&&hn(r[0],r[0],Zfe),sm(n,r[0]),hn(n,n,s),B6(n,i)?-1:(V6(r[0])===e[31]>>7&&cv(r[0],vB,r[0]),hn(r[3],r[0],r[1]),0)}o(npe,"unpackneg");function ipe(r,e){var t;for(t=0;t<16;++t)r[t]=e[2*t]+(e[2*t+1]<<8);r[15]&=32767}o(ipe,"unpack25519");function spe(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=250;n>=0;--n)sm(t,t),n!==1&&hn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(spe,"pow2523");function B6(r,e){var t=new Da(32),n=new Da(32);return S2(t,r),S2(n,e),k6(t,0,n,0)}o(B6,"neq25519");function k6(r,e,t,n){return ape(r,e,t,n,32)}o(k6,"crypto_verify_32");function ape(r,e,t,n,i){var s,a=0;for(s=0;s<i;++s)a|=r[e+s]^t[n+s];return(1&a-1>>>8)-1}o(ape,"vn");function V6(r){var e=new Da(32);return S2(e,r),e[0]&1}o(V6,"par25519");function j6(r,e,t){var n,i;for(qp(r[0],vB),qp(r[1],y2),qp(r[2],y2),qp(r[3],vB),i=255;i>=0;--i)n=t[i/8|0]>>(i&7)&1,P6(r,e,n),SB(e,r),SB(r,r),P6(r,e,n)}o(j6,"scalarmult");function bB(r,e){var t=[jt(),jt(),jt(),jt()];qp(t[0],_6),qp(t[1],O6),qp(t[2],y2),hn(t[3],_6,O6),j6(r,t,e)}o(bB,"scalarbase");function qp(r,e){var t;for(t=0;t<16;t++)r[t]=e[t]|0}o(qp,"set25519");function ope(r,e){var t=jt(),n;for(n=0;n<16;++n)t[n]=e[n];for(n=253;n>=0;--n)sm(t,t),n!==2&&n!==4&&hn(t,t,e);for(n=0;n<16;++n)r[n]=t[n]}o(ope,"inv25519");function mB(r){var e,t,n=1;for(e=0;e<16;++e)t=r[e]+n+65535,n=Math.floor(t/65536),r[e]=t-n*65536;r[0]+=n-1+37*(n-1)}o(mB,"car25519");function U6(r,e,t){for(var n,i=~(t-1),s=0;s<16;++s)n=i&(r[s]^e[s]),r[s]^=n,e[s]^=n}o(U6,"sel25519");function jt(r){var e,t=new Float64Array(16);if(r)for(e=0;e<r.length;++e)t[e]=r[e];return t}o(jt,"gf");function uv(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]+t[n]}o(uv,"A");function cv(r,e,t){for(var n=0;n<16;++n)r[n]=e[n]-t[n]}o(cv,"Z");function sm(r,e){hn(r,e,e)}o(sm,"S");function hn(r,e,t){var n,i,s=0,a=0,u=0,c=0,l=0,p=0,m=0,g=0,y=0,v=0,b=0,x=0,E=0,N=0,w=0,C=0,A=0,R=0,M=0,_=0,H=0,z=0,K=0,X=0,ye=0,fe=0,ce=0,ee=0,pe=0,Ce=0,Ye=0,xe=t[0],ie=t[1],De=t[2],Ze=t[3],We=t[4],it=t[5],F=t[6],O=t[7],oe=t[8],J=t[9],Ge=t[10],Ue=t[11],Pe=t[12],bt=t[13],Ir=t[14],Je=t[15];n=e[0],s+=n*xe,a+=n*ie,u+=n*De,c+=n*Ze,l+=n*We,p+=n*it,m+=n*F,g+=n*O,y+=n*oe,v+=n*J,b+=n*Ge,x+=n*Ue,E+=n*Pe,N+=n*bt,w+=n*Ir,C+=n*Je,n=e[1],a+=n*xe,u+=n*ie,c+=n*De,l+=n*Ze,p+=n*We,m+=n*it,g+=n*F,y+=n*O,v+=n*oe,b+=n*J,x+=n*Ge,E+=n*Ue,N+=n*Pe,w+=n*bt,C+=n*Ir,A+=n*Je,n=e[2],u+=n*xe,c+=n*ie,l+=n*De,p+=n*Ze,m+=n*We,g+=n*it,y+=n*F,v+=n*O,b+=n*oe,x+=n*J,E+=n*Ge,N+=n*Ue,w+=n*Pe,C+=n*bt,A+=n*Ir,R+=n*Je,n=e[3],c+=n*xe,l+=n*ie,p+=n*De,m+=n*Ze,g+=n*We,y+=n*it,v+=n*F,b+=n*O,x+=n*oe,E+=n*J,N+=n*Ge,w+=n*Ue,C+=n*Pe,A+=n*bt,R+=n*Ir,M+=n*Je,n=e[4],l+=n*xe,p+=n*ie,m+=n*De,g+=n*Ze,y+=n*We,v+=n*it,b+=n*F,x+=n*O,E+=n*oe,N+=n*J,w+=n*Ge,C+=n*Ue,A+=n*Pe,R+=n*bt,M+=n*Ir,_+=n*Je,n=e[5],p+=n*xe,m+=n*ie,g+=n*De,y+=n*Ze,v+=n*We,b+=n*it,x+=n*F,E+=n*O,N+=n*oe,w+=n*J,C+=n*Ge,A+=n*Ue,R+=n*Pe,M+=n*bt,_+=n*Ir,H+=n*Je,n=e[6],m+=n*xe,g+=n*ie,y+=n*De,v+=n*Ze,b+=n*We,x+=n*it,E+=n*F,N+=n*O,w+=n*oe,C+=n*J,A+=n*Ge,R+=n*Ue,M+=n*Pe,_+=n*bt,H+=n*Ir,z+=n*Je,n=e[7],g+=n*xe,y+=n*ie,v+=n*De,b+=n*Ze,x+=n*We,E+=n*it,N+=n*F,w+=n*O,C+=n*oe,A+=n*J,R+=n*Ge,M+=n*Ue,_+=n*Pe,H+=n*bt,z+=n*Ir,K+=n*Je,n=e[8],y+=n*xe,v+=n*ie,b+=n*De,x+=n*Ze,E+=n*We,N+=n*it,w+=n*F,C+=n*O,A+=n*oe,R+=n*J,M+=n*Ge,_+=n*Ue,H+=n*Pe,z+=n*bt,K+=n*Ir,X+=n*Je,n=e[9],v+=n*xe,b+=n*ie,x+=n*De,E+=n*Ze,N+=n*We,w+=n*it,C+=n*F,A+=n*O,R+=n*oe,M+=n*J,_+=n*Ge,H+=n*Ue,z+=n*Pe,K+=n*bt,X+=n*Ir,ye+=n*Je,n=e[10],b+=n*xe,x+=n*ie,E+=n*De,N+=n*Ze,w+=n*We,C+=n*it,A+=n*F,R+=n*O,M+=n*oe,_+=n*J,H+=n*Ge,z+=n*Ue,K+=n*Pe,X+=n*bt,ye+=n*Ir,fe+=n*Je,n=e[11],x+=n*xe,E+=n*ie,N+=n*De,w+=n*Ze,C+=n*We,A+=n*it,R+=n*F,M+=n*O,_+=n*oe,H+=n*J,z+=n*Ge,K+=n*Ue,X+=n*Pe,ye+=n*bt,fe+=n*Ir,ce+=n*Je,n=e[12],E+=n*xe,N+=n*ie,w+=n*De,C+=n*Ze,A+=n*We,R+=n*it,M+=n*F,_+=n*O,H+=n*oe,z+=n*J,K+=n*Ge,X+=n*Ue,ye+=n*Pe,fe+=n*bt,ce+=n*Ir,ee+=n*Je,n=e[13],N+=n*xe,w+=n*ie,C+=n*De,A+=n*Ze,R+=n*We,M+=n*it,_+=n*F,H+=n*O,z+=n*oe,K+=n*J,X+=n*Ge,ye+=n*Ue,fe+=n*Pe,ce+=n*bt,ee+=n*Ir,pe+=n*Je,n=e[14],w+=n*xe,C+=n*ie,A+=n*De,R+=n*Ze,M+=n*We,_+=n*it,H+=n*F,z+=n*O,K+=n*oe,X+=n*J,ye+=n*Ge,fe+=n*Ue,ce+=n*Pe,ee+=n*bt,pe+=n*Ir,Ce+=n*Je,n=e[15],C+=n*xe,A+=n*ie,R+=n*De,M+=n*Ze,_+=n*We,H+=n*it,z+=n*F,K+=n*O,X+=n*oe,ye+=n*J,fe+=n*Ge,ce+=n*Ue,ee+=n*Pe,pe+=n*bt,Ce+=n*Ir,Ye+=n*Je,s+=38*A,a+=38*R,u+=38*M,c+=38*_,l+=38*H,p+=38*z,m+=38*K,g+=38*X,y+=38*ye,v+=38*fe,b+=38*ce,x+=38*ee,E+=38*pe,N+=38*Ce,w+=38*Ye,i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),i=1,n=s+i+65535,i=Math.floor(n/65536),s=n-i*65536,n=a+i+65535,i=Math.floor(n/65536),a=n-i*65536,n=u+i+65535,i=Math.floor(n/65536),u=n-i*65536,n=c+i+65535,i=Math.floor(n/65536),c=n-i*65536,n=l+i+65535,i=Math.floor(n/65536),l=n-i*65536,n=p+i+65535,i=Math.floor(n/65536),p=n-i*65536,n=m+i+65535,i=Math.floor(n/65536),m=n-i*65536,n=g+i+65535,i=Math.floor(n/65536),g=n-i*65536,n=y+i+65535,i=Math.floor(n/65536),y=n-i*65536,n=v+i+65535,i=Math.floor(n/65536),v=n-i*65536,n=b+i+65535,i=Math.floor(n/65536),b=n-i*65536,n=x+i+65535,i=Math.floor(n/65536),x=n-i*65536,n=E+i+65535,i=Math.floor(n/65536),E=n-i*65536,n=N+i+65535,i=Math.floor(n/65536),N=n-i*65536,n=w+i+65535,i=Math.floor(n/65536),w=n-i*65536,n=C+i+65535,i=Math.floor(n/65536),C=n-i*65536,s+=i-1+37*(i-1),r[0]=s,r[1]=a,r[2]=u,r[3]=c,r[4]=l,r[5]=p,r[6]=m,r[7]=g,r[8]=y,r[9]=v,r[10]=b,r[11]=x,r[12]=E,r[13]=N,r[14]=w,r[15]=C}o(hn,"M")});var $6=Z((QIe,K6)=>{"use strict";var lo=pr();kr();Lo();Vx();K6.exports=lo.kem=lo.kem||{};var H6=lo.jsbn.BigInteger;lo.kem.rsa={};lo.kem.rsa.create=function(r,e){e=e||{};var t=e.prng||lo.random,n={};return n.encrypt=function(i,s){var a=Math.ceil(i.n.bitLength()/8),u;do u=new H6(lo.util.bytesToHex(t.getBytesSync(a)),16).mod(i.n);while(u.compareTo(H6.ONE)<=0);u=lo.util.hexToBytes(u.toString(16));var c=a-u.length;c>0&&(u=lo.util.fillString("\0",c)+u);var l=i.encrypt(u,"NONE"),p=r.generate(u,s);return{encapsulation:l,key:p}},n.decrypt=function(i,s,a){var u=i.decrypt(s,"NONE");return r.generate(u,a)},n};lo.kem.kdf1=function(r,e){z6(this,r,0,e||r.digestLength)};lo.kem.kdf2=function(r,e){z6(this,r,1,e||r.digestLength)};function z6(r,e,t,n){r.generate=function(i,s){for(var a=new lo.util.ByteBuffer,u=Math.ceil(s/n)+t,c=new lo.util.ByteBuffer,l=t;l<u;++l){c.putInt32(l),e.start(),e.update(i+c.getBytes());var p=e.digest();a.putBytes(p.getBytes(n))}return a.truncate(a.length()-s),a.getBytes()}}o(z6,"_createKDF")});var J6=Z((ZIe,W6)=>{"use strict";var Ar=pr();kr();W6.exports=Ar.log=Ar.log||{};Ar.log.levels=["none","error","warning","info","debug","verbose","max"];var x2={},EB=[],Kx=null;Ar.log.LEVEL_LOCKED=2;Ar.log.NO_LEVEL_CHECK=4;Ar.log.INTERPOLATE=8;for(Pc=0;Pc<Ar.log.levels.length;++Pc)wB=Ar.log.levels[Pc],x2[wB]={index:Pc,name:wB.toUpperCase()};var wB,Pc;Ar.log.logMessage=function(r){for(var e=x2[r.level].index,t=0;t<EB.length;++t){var n=EB[t];if(n.flags&Ar.log.NO_LEVEL_CHECK)n.f(r);else{var i=x2[n.level].index;e<=i&&n.f(n,r)}}};Ar.log.prepareStandard=function(r){"standard"in r||(r.standard=x2[r.level].name+" ["+r.category+"] "+r.message)};Ar.log.prepareFull=function(r){if(!("full"in r)){var e=[r.message];e=e.concat([]),r.full=Ar.util.format.apply(this,e)}};Ar.log.prepareStandardFull=function(r){"standardFull"in r||(Ar.log.prepareStandard(r),r.standardFull=r.standard)};for(CB=["error","warning","info","debug","verbose"],Pc=0;Pc<CB.length;++Pc)(function(e){Ar.log[e]=function(t,n){var i=Array.prototype.slice.call(arguments).slice(2),s={timestamp:new Date,level:e,category:t,message:n,arguments:i};Ar.log.logMessage(s)}})(CB[Pc]);var CB,Pc;Ar.log.makeLogger=function(r){var e={flags:0,f:r};return Ar.log.setLevel(e,"none"),e};Ar.log.setLevel=function(r,e){var t=!1;if(r&&!(r.flags&Ar.log.LEVEL_LOCKED))for(var n=0;n<Ar.log.levels.length;++n){var i=Ar.log.levels[n];if(e==i){r.level=e,t=!0;break}}return t};Ar.log.lock=function(r,e){typeof e>"u"||e?r.flags|=Ar.log.LEVEL_LOCKED:r.flags&=~Ar.log.LEVEL_LOCKED};Ar.log.addLogger=function(r){EB.push(r)};typeof console<"u"&&"log"in console?(console.error&&console.warn&&console.info&&console.debug?(G6={error:console.error,warning:console.warn,info:console.info,debug:console.debug,verbose:console.debug},$x=o(function(r,e){Ar.log.prepareStandard(e);var t=G6[e.level],n=[e.standard];n=n.concat(e.arguments.slice()),t.apply(console,n)},"f"),lv=Ar.log.makeLogger($x)):($x=o(function(e,t){Ar.log.prepareStandardFull(t),console.log(t.standardFull)},"f"),lv=Ar.log.makeLogger($x)),Ar.log.setLevel(lv,"debug"),Ar.log.addLogger(lv),Kx=lv):console={log:o(function(){},"log")};var lv,G6,$x;Kx!==null&&typeof window<"u"&&window.location&&(zx=new URL(window.location.href).searchParams,zx.has("console.level")&&Ar.log.setLevel(Kx,zx.get("console.level").slice(-1)[0]),zx.has("console.lock")&&(X6=zx.get("console.lock").slice(-1)[0],X6=="true"&&Ar.log.lock(Kx)));var zx,X6;Ar.log.consoleLogger=Kx});var Y6=Z((tTe,Q6)=>{"use strict";Q6.exports=Ac();ZN();nv();kP();pB()});var t9=Z((rTe,e9)=>{"use strict";var st=pr();Bp();Iu();Lx();Fp();Yd();QP();Lo();kr();h2();var re=st.asn1,da=e9.exports=st.pkcs7=st.pkcs7||{};da.messageFromPem=function(r){var e=st.pem.decode(r)[0];if(e.type!=="PKCS7"){var t=new Error('Could not convert PKCS#7 message from PEM; PEM header type is not "PKCS#7".');throw t.headerType=e.type,t}if(e.procType&&e.procType.type==="ENCRYPTED")throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.");var n=re.fromDer(e.body);return da.messageFromAsn1(n)};da.messageToPem=function(r,e){var t={type:"PKCS7",body:re.toDer(r.toAsn1()).getBytes()};return st.pem.encode(t,{maxline:e})};da.messageFromAsn1=function(r){var e={},t=[];if(!re.validate(r,da.asn1.contentInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 message. ASN.1 object is not an PKCS#7 ContentInfo.");throw n.errors=t,n}var i=re.derToOid(e.contentType),s;switch(i){case st.pki.oids.envelopedData:s=da.createEnvelopedData();break;case st.pki.oids.encryptedData:s=da.createEncryptedData();break;case st.pki.oids.signedData:s=da.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+i+" is not (yet) supported.")}return s.fromAsn1(e.content.value[0]),s};da.createSignedData=function(){var r=null;return r={type:st.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:o(function(n){if(NB(r,n,da.asn1.signedDataValidator),r.certificates=[],r.crls=[],r.digestAlgorithmIdentifiers=[],r.contentInfo=null,r.signerInfos=[],r.rawCapture.certificates)for(var i=r.rawCapture.certificates.value,s=0;s<i.length;++s)r.certificates.push(st.pki.certificateFromAsn1(i[s]))},"fromAsn1"),toAsn1:o(function(){r.contentInfo||r.sign();for(var n=[],i=0;i<r.certificates.length;++i)n.push(st.pki.certificateToAsn1(r.certificates[i]));var s=[],a=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.digestAlgorithmIdentifiers),r.contentInfo])]);return n.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,n)),s.length>0&&a.value[0].value.push(re.create(re.Class.CONTEXT_SPECIFIC,1,!0,s)),a.value[0].value.push(re.create(re.Class.UNIVERSAL,re.Type.SET,!0,r.signerInfos)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),a])},"toAsn1"),addSigner:o(function(n){var i=n.issuer,s=n.serialNumber;if(n.certificate){var a=n.certificate;typeof a=="string"&&(a=st.pki.certificateFromPem(a)),i=a.issuer.attributes,s=a.serialNumber}var u=n.key;if(!u)throw new Error("Could not add PKCS#7 signer; no private key specified.");typeof u=="string"&&(u=st.pki.privateKeyFromPem(u));var c=n.digestAlgorithm||st.pki.oids.sha1;switch(c){case st.pki.oids.sha1:case st.pki.oids.sha256:case st.pki.oids.sha384:case st.pki.oids.sha512:case st.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var l=n.authenticatedAttributes||[];if(l.length>0){for(var p=!1,m=!1,g=0;g<l.length;++g){var y=l[g];if(!p&&y.type===st.pki.oids.contentType){if(p=!0,m)break;continue}if(!m&&y.type===st.pki.oids.messageDigest){if(m=!0,p)break;continue}}if(!p||!m)throw new Error("Invalid signer.authenticatedAttributes. If signer.authenticatedAttributes is specified, then it must contain at least two attributes, PKCS #9 content-type and PKCS #9 message-digest.")}r.signers.push({key:u,version:1,issuer:i,serialNumber:s,digestAlgorithm:c,signatureAlgorithm:st.pki.oids.rsaEncryption,signature:null,authenticatedAttributes:l,unauthenticatedAttributes:[]})},"addSigner"),sign:o(function(n){if(n=n||{},(typeof r.content!="object"||r.contentInfo===null)&&(r.contentInfo=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes())]),"content"in r)){var i;r.content instanceof st.util.ByteBuffer?i=r.content.bytes():typeof r.content=="string"&&(i=st.util.encodeUtf8(r.content)),n.detached?r.detachedContent=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i):r.contentInfo.value.push(re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,i)]))}if(r.signers.length!==0){var s=e();t(s)}},"sign"),verify:o(function(){throw new Error("PKCS#7 signature verification not yet implemented.")},"verify"),addCertificate:o(function(n){typeof n=="string"&&(n=st.pki.certificateFromPem(n)),r.certificates.push(n)},"addCertificate"),addCertificateRevokationList:o(function(n){throw new Error("PKCS#7 CRL support not yet implemented.")},"addCertificateRevokationList")},r;function e(){for(var n={},i=0;i<r.signers.length;++i){var s=r.signers[i],a=s.digestAlgorithm;a in n||(n[a]=st.md[st.pki.oids[a]].create()),s.authenticatedAttributes.length===0?s.md=n[a]:s.md=st.md[st.pki.oids[a]].create()}r.digestAlgorithmIdentifiers=[];for(var a in n)r.digestAlgorithmIdentifiers.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(a).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]));return n}o(e,"addDigestAlgorithmIds");function t(n){var i;if(r.detachedContent?i=r.detachedContent:(i=r.contentInfo.value[1],i=i.value[0]),!i)throw new Error("Could not sign PKCS#7 message; there is no content to sign.");var s=re.derToOid(r.contentInfo.value[0].value),a=re.toDer(i);a.getByte(),re.getBerValueLength(a),a=a.getBytes();for(var u in n)n[u].start().update(a);for(var c=new Date,l=0;l<r.signers.length;++l){var p=r.signers[l];if(p.authenticatedAttributes.length===0){if(s!==st.pki.oids.data)throw new Error("Invalid signer; authenticatedAttributes must be present when the ContentInfo content type is not PKCS#7 Data.")}else{p.authenticatedAttributesAsn1=re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[]);for(var m=re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[]),g=0;g<p.authenticatedAttributes.length;++g){var y=p.authenticatedAttributes[g];y.type===st.pki.oids.messageDigest?y.value=n[p.digestAlgorithm].digest():y.type===st.pki.oids.signingTime&&(y.value||(y.value=c)),m.value.push(AB(y)),p.authenticatedAttributesAsn1.value.push(AB(y))}a=re.toDer(m).getBytes(),p.md.start().update(a)}p.signature=p.key.sign(p.md,"RSASSA-PKCS1-V1_5")}r.signerInfos=hpe(r.signers)}o(t,"addSignerInfos")};da.createEncryptedData=function(){var r=null;return r={type:st.pki.oids.encryptedData,version:0,encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){NB(r,e,da.asn1.encryptedDataValidator)},"fromAsn1"),decrypt:o(function(e){e!==void 0&&(r.encryptedContent.key=e),Z6(r)},"decrypt")},r};da.createEnvelopedData=function(){var r=null;return r={type:st.pki.oids.envelopedData,version:0,recipients:[],encryptedContent:{algorithm:st.pki.oids["aes256-CBC"]},fromAsn1:o(function(e){var t=NB(r,e,da.asn1.envelopedDataValidator);r.recipients=lpe(t.recipientInfos.value)},"fromAsn1"),toAsn1:o(function(){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,fpe(r.recipients)),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,dpe(r.encryptedContent))])])])},"toAsn1"),findRecipient:o(function(e){for(var t=e.issuer.attributes,n=0;n<r.recipients.length;++n){var i=r.recipients[n],s=i.issuer;if(i.serialNumber===e.serialNumber&&s.length===t.length){for(var a=!0,u=0;u<t.length;++u)if(s[u].type!==t[u].type||s[u].value!==t[u].value){a=!1;break}if(a)return i}}return null},"findRecipient"),decrypt:o(function(e,t){if(r.encryptedContent.key===void 0&&e!==void 0&&t!==void 0)switch(e.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:case st.pki.oids.desCBC:var n=t.decrypt(e.encryptedContent.content);r.encryptedContent.key=st.util.createBuffer(n);break;default:throw new Error("Unsupported asymmetric cipher, OID "+e.encryptedContent.algorithm)}Z6(r)},"decrypt"),addRecipient:o(function(e){r.recipients.push({version:0,issuer:e.issuer.attributes,serialNumber:e.serialNumber,encryptedContent:{algorithm:st.pki.oids.rsaEncryption,key:e.publicKey}})},"addRecipient"),encrypt:o(function(e,t){if(r.encryptedContent.content===void 0){t=t||r.encryptedContent.algorithm,e=e||r.encryptedContent.key;var n,i,s;switch(t){case st.pki.oids["aes128-CBC"]:n=16,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes192-CBC"]:n=24,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["aes256-CBC"]:n=32,i=16,s=st.aes.createEncryptionCipher;break;case st.pki.oids["des-EDE3-CBC"]:n=24,i=8,s=st.des.createEncryptionCipher;break;default:throw new Error("Unsupported symmetric cipher, OID "+t)}if(e===void 0)e=st.util.createBuffer(st.random.getBytes(n));else if(e.length()!=n)throw new Error("Symmetric key has wrong length; got "+e.length()+" bytes, expected "+n+".");r.encryptedContent.algorithm=t,r.encryptedContent.key=e,r.encryptedContent.parameter=st.util.createBuffer(st.random.getBytes(i));var a=s(e);if(a.start(r.encryptedContent.parameter.copy()),a.update(r.content),!a.finish())throw new Error("Symmetric encryption failed.");r.encryptedContent.content=a.output}for(var u=0;u<r.recipients.length;++u){var c=r.recipients[u];if(c.encryptedContent.content===void 0)switch(c.encryptedContent.algorithm){case st.pki.oids.rsaEncryption:c.encryptedContent.content=c.encryptedContent.key.encrypt(r.encryptedContent.key.data);break;default:throw new Error("Unsupported asymmetric cipher, OID "+c.encryptedContent.algorithm)}}},"encrypt")},r};function upe(r){var e={},t=[];if(!re.validate(r,da.asn1.recipientInfoValidator,e,t)){var n=new Error("Cannot read PKCS#7 RecipientInfo. ASN.1 object is not an PKCS#7 RecipientInfo.");throw n.errors=t,n}return{version:e.version.charCodeAt(0),issuer:st.pki.RDNAttributesAsArray(e.issuer),serialNumber:st.util.createBuffer(e.serial).toHex(),encryptedContent:{algorithm:re.derToOid(e.encAlgorithm),parameter:e.encParameter?e.encParameter.value:void 0,content:e.encKey}}}o(upe,"_recipientFromAsn1");function cpe(r){return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.encryptedContent.algorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")]),re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.encryptedContent.content)])}o(cpe,"_recipientToAsn1");function lpe(r){for(var e=[],t=0;t<r.length;++t)e.push(upe(r[t]));return e}o(lpe,"_recipientsFromAsn1");function fpe(r){for(var e=[],t=0;t<r.length;++t)e.push(cpe(r[t]));return e}o(fpe,"_recipientsToAsn1");function ppe(r){var e=re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,re.integerToDer(r.version).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[st.pki.distinguishedNameToAsn1({attributes:r.issuer}),re.create(re.Class.UNIVERSAL,re.Type.INTEGER,!1,st.util.hexToBytes(r.serialNumber))]),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.digestAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])]);if(r.authenticatedAttributesAsn1&&e.value.push(r.authenticatedAttributesAsn1),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.signatureAlgorithm).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.NULL,!1,"")])),e.value.push(re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.signature)),r.unauthenticatedAttributes.length>0){for(var t=re.create(re.Class.CONTEXT_SPECIFIC,1,!0,[]),n=0;n<r.unauthenticatedAttributes.length;++n){var i=r.unauthenticatedAttributes[n];t.values.push(AB(i))}e.value.push(t)}return e}o(ppe,"_signerToAsn1");function hpe(r){for(var e=[],t=0;t<r.length;++t)e.push(ppe(r[t]));return e}o(hpe,"_signersToAsn1");function AB(r){var e;if(r.type===st.pki.oids.contentType)e=re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.value).getBytes());else if(r.type===st.pki.oids.messageDigest)e=re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.value.bytes());else if(r.type===st.pki.oids.signingTime){var t=new Date("1950-01-01T00:00:00Z"),n=new Date("2050-01-01T00:00:00Z"),i=r.value;if(typeof i=="string"){var s=Date.parse(i);isNaN(s)?i.length===13?i=re.utcTimeToDate(i):i=re.generalizedTimeToDate(i):i=new Date(s)}i>=t&&i<n?e=re.create(re.Class.UNIVERSAL,re.Type.UTCTIME,!1,re.dateToUtcTime(i)):e=re.create(re.Class.UNIVERSAL,re.Type.GENERALIZEDTIME,!1,re.dateToGeneralizedTime(i))}return re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.type).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SET,!0,[e])])}o(AB,"_attributeToAsn1");function dpe(r){return[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(st.pki.oids.data).getBytes()),re.create(re.Class.UNIVERSAL,re.Type.SEQUENCE,!0,[re.create(re.Class.UNIVERSAL,re.Type.OID,!1,re.oidToDer(r.algorithm).getBytes()),r.parameter?re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.parameter.getBytes()):void 0]),re.create(re.Class.CONTEXT_SPECIFIC,0,!0,[re.create(re.Class.UNIVERSAL,re.Type.OCTETSTRING,!1,r.content.getBytes())])]}o(dpe,"_encryptedContentToAsn1");function NB(r,e,t){var n={},i=[];if(!re.validate(e,t,n,i)){var s=new Error("Cannot read PKCS#7 message. ASN.1 object is not a supported PKCS#7 message.");throw s.errors=s,s}var a=re.derToOid(n.contentType);if(a!==st.pki.oids.data)throw new Error("Unsupported PKCS#7 message. Only wrapped ContentType Data supported.");if(n.encryptedContent){var u="";if(st.util.isArray(n.encryptedContent))for(var c=0;c<n.encryptedContent.length;++c){if(n.encryptedContent[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting encrypted content constructed of only OCTET STRING objects.");u+=n.encryptedContent[c].value}else u=n.encryptedContent;r.encryptedContent={algorithm:re.derToOid(n.encAlgorithm),parameter:st.util.createBuffer(n.encParameter.value),content:st.util.createBuffer(u)}}if(n.content){var u="";if(st.util.isArray(n.content))for(var c=0;c<n.content.length;++c){if(n.content[c].type!==re.Type.OCTETSTRING)throw new Error("Malformed PKCS#7 message, expecting content constructed of only OCTET STRING objects.");u+=n.content[c].value}else u=n.content;r.content=st.util.createBuffer(u)}return r.version=n.version.charCodeAt(0),r.rawCapture=n,n}o(NB,"_fromAsn1");function Z6(r){if(r.encryptedContent.key===void 0)throw new Error("Symmetric key not available.");if(r.content===void 0){var e;switch(r.encryptedContent.algorithm){case st.pki.oids["aes128-CBC"]:case st.pki.oids["aes192-CBC"]:case st.pki.oids["aes256-CBC"]:e=st.aes.createDecryptionCipher(r.encryptedContent.key);break;case st.pki.oids.desCBC:case st.pki.oids["des-EDE3-CBC"]:e=st.des.createDecryptionCipher(r.encryptedContent.key);break;default:throw new Error("Unsupported symmetric cipher, OID "+r.encryptedContent.algorithm)}if(e.start(r.encryptedContent.parameter),e.update(r.encryptedContent.content),!e.finish())throw new Error("Symmetric decryption failed.");r.content=e.output}}o(Z6,"_decryptContent")});var n9=Z((iTe,r9)=>{"use strict";var Ni=pr();Bp();Zg();ZN();nv();kr();var w2=r9.exports=Ni.ssh=Ni.ssh||{};w2.privateKeyToPutty=function(r,e,t){t=t||"",e=e||"";var n="ssh-rsa",i=e===""?"none":"aes256-cbc",s="PuTTY-User-Key-File-2: "+n+`\r
15
15
  `;s+="Encryption: "+i+`\r
16
16
  `,s+="Comment: "+t+`\r
17
17
  `;var a=Ni.util.createBuffer();fv(a,n),Bc(a,r.e),Bc(a,r.n);var u=Ni.util.encode64(a.bytes(),64),c=Math.floor(u.length/66)+1;s+="Public-Lines: "+c+`\r
@@ -23,10 +23,10 @@ Private-MAC: `+N.digest().toHex()+`\r
23
23
  `).join(`
24
24
  `+s),r.push(i+"m+"+N2.exports.humanize(this.diff)+"\x1B[0m")}else r[0]=Ppe()+e+" "+r[0]}o(Ope,"formatArgs");function Ppe(){return Qi.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Ppe,"getDate");function Bpe(...r){return process.stderr.write(A2.formatWithOptions(Qi.inspectOpts,...r)+`
25
25
  `)}o(Bpe,"log");function Fpe(r){r?process.env.DEBUG=r:delete process.env.DEBUG}o(Fpe,"save");function Lpe(){return process.env.DEBUG}o(Lpe,"load");function kpe(r){r.inspectOpts={};let e=Object.keys(Qi.inspectOpts);for(let t=0;t<e.length;t++)r.inspectOpts[e[t]]=Qi.inspectOpts[e[t]]}o(kpe,"init");N2.exports=TB()(Qi);var{formatters:g9}=N2.exports;g9.o=function(r){return this.inspectOpts.colors=this.useColors,A2.inspect(r,this.inspectOpts).split(`
26
- `).map(e=>e.trim()).join(" ")};g9.O=function(r){return this.inspectOpts.colors=this.useColors,A2.inspect(r,this.inspectOpts)}});var mv=Z((DTe,_B)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_B.exports=l9():_B.exports=v9()});var S9=Z((_Te,y9)=>{"use strict";var{PassThrough:Vpe}=require("stream");y9.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",i=!1;e?i=!(t||n):t=t||"utf8",n&&(t=null);let s=new Vpe({objectMode:i});t&&s.setEncoding(t);let a=0,u=[];return s.on("data",c=>{u.push(c),i?a=u.length:a+=c.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,a):u.join(""),s.getBufferedLength=()=>a,s}});var b9=Z((PTe,Jx)=>{"use strict";var{constants:jpe}=require("buffer"),Upe=require("stream"),{promisify:Mpe}=require("util"),qpe=S9(),Hpe=Mpe(Upe.pipeline),x9=class extends Error{static{o(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function OB(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=qpe(e);return await new Promise((i,s)=>{let a=o(u=>{u&&n.getBufferedLength()<=jpe.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)},"rejectPromise");(async()=>{try{await Hpe(r,n),i()}catch(u){a(u)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new x9)})}),n.getBufferedValue()}o(OB,"getStream");Jx.exports=OB;Jx.exports.buffer=(r,e)=>OB(r,{...e,encoding:"buffer"});Jx.exports.array=(r,e)=>OB(r,{...e,array:!0});Jx.exports.MaxBufferError=x9});var Wl=Z((gv,Qx)=>{"use strict";(function(){var r,e="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",l=1,p=2,m=4,g=1,y=2,v=1,b=2,x=4,E=8,N=16,w=32,C=64,A=128,R=256,M=512,_=30,H="...",z=800,K=16,X=1,ye=2,fe=3,ce=1/0,ee=9007199254740991,pe=17976931348623157e292,Ce=NaN,Ye=4294967295,xe=Ye-1,ie=Ye>>>1,De=[["ary",A],["bind",v],["bindKey",b],["curry",E],["curryRight",N],["flip",M],["partial",w],["partialRight",C],["rearg",R]],Ze="[object Arguments]",We="[object Array]",it="[object AsyncFunction]",F="[object Boolean]",O="[object Date]",oe="[object DOMException]",J="[object Error]",Ge="[object Function]",Ue="[object GeneratorFunction]",Pe="[object Map]",bt="[object Number]",Ir="[object Null]",Je="[object Object]",Tr="[object Promise]",eo="[object Proxy]",nt="[object RegExp]",Bn="[object Set]",Ei="[object String]",Vs="[object Symbol]",Ca="[object Undefined]",aa="[object WeakMap]",Et="[object WeakSet]",lt="[object ArrayBuffer]",ps="[object DataView]",oa="[object Float32Array]",vc="[object Float64Array]",yc="[object Int8Array]",Jt="[object Int16Array]",Og="[object Int32Array]",Pg="[object Uint8Array]",Ud="[object Uint8ClampedArray]",ox="[object Uint16Array]",to="[object Uint32Array]",d=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,se=/&(?:amp|lt|gt|quot|#39);/g,de=/[&<>"']/g,G=RegExp(se.source),dt=RegExp(de.source),tr=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,ft=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/[\\^$.*+?()[\]{}|]/g,Sc=RegExp(Lr.source),ux=/^\s+/,HA=/\s/,Z_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eO=/\{\n\/\* \[wrapped with (.+)\] \*/,tO=/,? & /,rO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,Cr=/\\(\\)?/g,js=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Su=/\w*$/,nO=/^[-+]0x[0-9a-f]+$/i,See=/^0b[01]+$/i,xee=/^\[object .+?Constructor\]$/,bee=/^0o[0-7]+$/i,wee=/^(?:0|[1-9]\d*)$/,Cee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zA=/($^)/,Eee=/['\n\r\u2028\u2029\\]/g,KA="\\ud800-\\udfff",Aee="\\u0300-\\u036f",Nee="\\ufe20-\\ufe2f",Iee="\\u20d0-\\u20ff",rj=Aee+Nee+Iee,nj="\\u2700-\\u27bf",ij="a-z\\xdf-\\xf6\\xf8-\\xff",Tee="\\xac\\xb1\\xd7\\xf7",Ree="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dee="\\u2000-\\u206f",_ee=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sj="A-Z\\xc0-\\xd6\\xd8-\\xde",aj="\\ufe0e\\ufe0f",oj=Tee+Ree+Dee+_ee,iO="['\u2019]",Oee="["+KA+"]",uj="["+oj+"]",$A="["+rj+"]",cj="\\d+",Pee="["+nj+"]",lj="["+ij+"]",fj="[^"+KA+oj+cj+nj+ij+sj+"]",sO="\\ud83c[\\udffb-\\udfff]",Bee="(?:"+$A+"|"+sO+")",pj="[^"+KA+"]",aO="(?:\\ud83c[\\udde6-\\uddff]){2}",oO="[\\ud800-\\udbff][\\udc00-\\udfff]",Bg="["+sj+"]",hj="\\u200d",dj="(?:"+lj+"|"+fj+")",Fee="(?:"+Bg+"|"+fj+")",mj="(?:"+iO+"(?:d|ll|m|re|s|t|ve))?",gj="(?:"+iO+"(?:D|LL|M|RE|S|T|VE))?",vj=Bee+"?",yj="["+aj+"]?",Lee="(?:"+hj+"(?:"+[pj,aO,oO].join("|")+")"+yj+vj+")*",kee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sj=yj+vj+Lee,jee="(?:"+[Pee,aO,oO].join("|")+")"+Sj,Uee="(?:"+[pj+$A+"?",$A,aO,oO,Oee].join("|")+")",Mee=RegExp(iO,"g"),qee=RegExp($A,"g"),uO=RegExp(sO+"(?="+sO+")|"+Uee+Sj,"g"),Hee=RegExp([Bg+"?"+lj+"+"+mj+"(?="+[uj,Bg,"$"].join("|")+")",Fee+"+"+gj+"(?="+[uj,Bg+dj,"$"].join("|")+")",Bg+"?"+dj+"+"+mj,Bg+"+"+gj,Vee,kee,cj,jee].join("|"),"g"),zee=RegExp("["+hj+KA+rj+aj+"]"),Kee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gee=-1,In={};In[oa]=In[vc]=In[yc]=In[Jt]=In[Og]=In[Pg]=In[Ud]=In[ox]=In[to]=!0,In[Ze]=In[We]=In[lt]=In[F]=In[ps]=In[O]=In[J]=In[Ge]=In[Pe]=In[bt]=In[Je]=In[nt]=In[Bn]=In[Ei]=In[aa]=!1;var gn={};gn[Ze]=gn[We]=gn[lt]=gn[ps]=gn[F]=gn[O]=gn[oa]=gn[vc]=gn[yc]=gn[Jt]=gn[Og]=gn[Pe]=gn[bt]=gn[Je]=gn[nt]=gn[Bn]=gn[Ei]=gn[Vs]=gn[Pg]=gn[Ud]=gn[ox]=gn[to]=!0,gn[J]=gn[Ge]=gn[aa]=!1;var Xee={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Wee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jee={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yee=parseFloat,Zee=parseInt,xj=typeof global=="object"&&global&&global.Object===Object&&global,ete=typeof self=="object"&&self&&self.Object===Object&&self,zi=xj||ete||Function("return this")(),cO=typeof gv=="object"&&gv&&!gv.nodeType&&gv,Md=cO&&typeof Qx=="object"&&Qx&&!Qx.nodeType&&Qx,bj=Md&&Md.exports===cO,lO=bj&&xj.process,To=(function(){try{var he=Md&&Md.require&&Md.require("util").types;return he||lO&&lO.binding&&lO.binding("util")}catch{}})(),wj=To&&To.isArrayBuffer,Cj=To&&To.isDate,Ej=To&&To.isMap,Aj=To&&To.isRegExp,Nj=To&&To.isSet,Ij=To&&To.isTypedArray;function ro(he,Oe,Te){switch(Te.length){case 0:return he.call(Oe);case 1:return he.call(Oe,Te[0]);case 2:return he.call(Oe,Te[0],Te[1]);case 3:return he.call(Oe,Te[0],Te[1],Te[2])}return he.apply(Oe,Te)}o(ro,"apply");function tte(he,Oe,Te,St){for(var Qt=-1,$r=he==null?0:he.length;++Qt<$r;){var Pi=he[Qt];Oe(St,Pi,Te(Pi),he)}return St}o(tte,"arrayAggregator");function Ro(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St&&Oe(he[Te],Te,he)!==!1;);return he}o(Ro,"arrayEach");function rte(he,Oe){for(var Te=he==null?0:he.length;Te--&&Oe(he[Te],Te,he)!==!1;);return he}o(rte,"arrayEachRight");function Tj(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(!Oe(he[Te],Te,he))return!1;return!0}o(Tj,"arrayEvery");function vp(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=0,$r=[];++Te<St;){var Pi=he[Te];Oe(Pi,Te,he)&&($r[Qt++]=Pi)}return $r}o(vp,"arrayFilter");function GA(he,Oe){var Te=he==null?0:he.length;return!!Te&&Fg(he,Oe,0)>-1}o(GA,"arrayIncludes");function fO(he,Oe,Te){for(var St=-1,Qt=he==null?0:he.length;++St<Qt;)if(Te(Oe,he[St]))return!0;return!1}o(fO,"arrayIncludesWith");function Fn(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=Array(St);++Te<St;)Qt[Te]=Oe(he[Te],Te,he);return Qt}o(Fn,"arrayMap");function yp(he,Oe){for(var Te=-1,St=Oe.length,Qt=he.length;++Te<St;)he[Qt+Te]=Oe[Te];return he}o(yp,"arrayPush");function pO(he,Oe,Te,St){var Qt=-1,$r=he==null?0:he.length;for(St&&$r&&(Te=he[++Qt]);++Qt<$r;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(pO,"arrayReduce");function nte(he,Oe,Te,St){var Qt=he==null?0:he.length;for(St&&Qt&&(Te=he[--Qt]);Qt--;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(nte,"arrayReduceRight");function hO(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(Oe(he[Te],Te,he))return!0;return!1}o(hO,"arraySome");var ite=dO("length");function ste(he){return he.split("")}o(ste,"asciiToArray");function ate(he){return he.match(rO)||[]}o(ate,"asciiWords");function Rj(he,Oe,Te){var St;return Te(he,function(Qt,$r,Pi){if(Oe(Qt,$r,Pi))return St=$r,!1}),St}o(Rj,"baseFindKey");function XA(he,Oe,Te,St){for(var Qt=he.length,$r=Te+(St?1:-1);St?$r--:++$r<Qt;)if(Oe(he[$r],$r,he))return $r;return-1}o(XA,"baseFindIndex");function Fg(he,Oe,Te){return Oe===Oe?yte(he,Oe,Te):XA(he,Dj,Te)}o(Fg,"baseIndexOf");function ote(he,Oe,Te,St){for(var Qt=Te-1,$r=he.length;++Qt<$r;)if(St(he[Qt],Oe))return Qt;return-1}o(ote,"baseIndexOfWith");function Dj(he){return he!==he}o(Dj,"baseIsNaN");function _j(he,Oe){var Te=he==null?0:he.length;return Te?gO(he,Oe)/Te:Ce}o(_j,"baseMean");function dO(he){return function(Oe){return Oe==null?r:Oe[he]}}o(dO,"baseProperty");function mO(he){return function(Oe){return he==null?r:he[Oe]}}o(mO,"basePropertyOf");function Oj(he,Oe,Te,St,Qt){return Qt(he,function($r,Pi,cn){Te=St?(St=!1,$r):Oe(Te,$r,Pi,cn)}),Te}o(Oj,"baseReduce");function ute(he,Oe){var Te=he.length;for(he.sort(Oe);Te--;)he[Te]=he[Te].value;return he}o(ute,"baseSortBy");function gO(he,Oe){for(var Te,St=-1,Qt=he.length;++St<Qt;){var $r=Oe(he[St]);$r!==r&&(Te=Te===r?$r:Te+$r)}return Te}o(gO,"baseSum");function vO(he,Oe){for(var Te=-1,St=Array(he);++Te<he;)St[Te]=Oe(Te);return St}o(vO,"baseTimes");function cte(he,Oe){return Fn(Oe,function(Te){return[Te,he[Te]]})}o(cte,"baseToPairs");function Pj(he){return he&&he.slice(0,kj(he)+1).replace(ux,"")}o(Pj,"baseTrim");function no(he){return function(Oe){return he(Oe)}}o(no,"baseUnary");function yO(he,Oe){return Fn(Oe,function(Te){return he[Te]})}o(yO,"baseValues");function cx(he,Oe){return he.has(Oe)}o(cx,"cacheHas");function Bj(he,Oe){for(var Te=-1,St=he.length;++Te<St&&Fg(Oe,he[Te],0)>-1;);return Te}o(Bj,"charsStartIndex");function Fj(he,Oe){for(var Te=he.length;Te--&&Fg(Oe,he[Te],0)>-1;);return Te}o(Fj,"charsEndIndex");function lte(he,Oe){for(var Te=he.length,St=0;Te--;)he[Te]===Oe&&++St;return St}o(lte,"countHolders");var fte=mO(Xee),pte=mO(Wee);function hte(he){return"\\"+Qee[he]}o(hte,"escapeStringChar");function dte(he,Oe){return he==null?r:he[Oe]}o(dte,"getValue");function Lg(he){return zee.test(he)}o(Lg,"hasUnicode");function mte(he){return Kee.test(he)}o(mte,"hasUnicodeWord");function gte(he){for(var Oe,Te=[];!(Oe=he.next()).done;)Te.push(Oe.value);return Te}o(gte,"iteratorToArray");function SO(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St,Qt){Te[++Oe]=[Qt,St]}),Te}o(SO,"mapToArray");function Lj(he,Oe){return function(Te){return he(Oe(Te))}}o(Lj,"overArg");function Sp(he,Oe){for(var Te=-1,St=he.length,Qt=0,$r=[];++Te<St;){var Pi=he[Te];(Pi===Oe||Pi===c)&&(he[Te]=c,$r[Qt++]=Te)}return $r}o(Sp,"replaceHolders");function WA(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=St}),Te}o(WA,"setToArray");function vte(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=[St,St]}),Te}o(vte,"setToPairs");function yte(he,Oe,Te){for(var St=Te-1,Qt=he.length;++St<Qt;)if(he[St]===Oe)return St;return-1}o(yte,"strictIndexOf");function Ste(he,Oe,Te){for(var St=Te+1;St--;)if(he[St]===Oe)return St;return St}o(Ste,"strictLastIndexOf");function kg(he){return Lg(he)?bte(he):ite(he)}o(kg,"stringSize");function xu(he){return Lg(he)?wte(he):ste(he)}o(xu,"stringToArray");function kj(he){for(var Oe=he.length;Oe--&&HA.test(he.charAt(Oe)););return Oe}o(kj,"trimmedEndIndex");var xte=mO(Jee);function bte(he){for(var Oe=uO.lastIndex=0;uO.test(he);)++Oe;return Oe}o(bte,"unicodeSize");function wte(he){return he.match(uO)||[]}o(wte,"unicodeToArray");function Cte(he){return he.match(Hee)||[]}o(Cte,"unicodeWords");var Ete=o(function he(Oe){Oe=Oe==null?zi:xp.defaults(zi.Object(),Oe,xp.pick(zi,$ee));var Te=Oe.Array,St=Oe.Date,Qt=Oe.Error,$r=Oe.Function,Pi=Oe.Math,cn=Oe.Object,xO=Oe.RegExp,Ate=Oe.String,Do=Oe.TypeError,JA=Te.prototype,Nte=$r.prototype,Vg=cn.prototype,QA=Oe["__core-js_shared__"],YA=Nte.toString,Zr=Vg.hasOwnProperty,Ite=0,Vj=(function(){var f=/[^.]+$/.exec(QA&&QA.keys&&QA.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),ZA=Vg.toString,Tte=YA.call(cn),Rte=zi._,Dte=xO("^"+YA.call(Zr).replace(Lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eN=bj?Oe.Buffer:r,bp=Oe.Symbol,tN=Oe.Uint8Array,jj=eN?eN.allocUnsafe:r,rN=Lj(cn.getPrototypeOf,cn),Uj=cn.create,Mj=Vg.propertyIsEnumerable,nN=JA.splice,qj=bp?bp.isConcatSpreadable:r,lx=bp?bp.iterator:r,qd=bp?bp.toStringTag:r,iN=(function(){try{var f=Gd(cn,"defineProperty");return f({},"",{}),f}catch{}})(),_te=Oe.clearTimeout!==zi.clearTimeout&&Oe.clearTimeout,Ote=St&&St.now!==zi.Date.now&&St.now,Pte=Oe.setTimeout!==zi.setTimeout&&Oe.setTimeout,sN=Pi.ceil,aN=Pi.floor,bO=cn.getOwnPropertySymbols,Bte=eN?eN.isBuffer:r,Hj=Oe.isFinite,Fte=JA.join,Lte=Lj(cn.keys,cn),Bi=Pi.max,Us=Pi.min,kte=St.now,Vte=Oe.parseInt,zj=Pi.random,jte=JA.reverse,wO=Gd(Oe,"DataView"),fx=Gd(Oe,"Map"),CO=Gd(Oe,"Promise"),jg=Gd(Oe,"Set"),px=Gd(Oe,"WeakMap"),hx=Gd(cn,"create"),oN=px&&new px,Ug={},Ute=Xd(wO),Mte=Xd(fx),qte=Xd(CO),Hte=Xd(jg),zte=Xd(px),uN=bp?bp.prototype:r,dx=uN?uN.valueOf:r,Kj=uN?uN.toString:r;function U(f){if(si(f)&&!rr(f)&&!(f instanceof Er)){if(f instanceof _o)return f;if(Zr.call(f,"__wrapped__"))return $5(f)}return new _o(f)}o(U,"lodash");var Mg=(function(){function f(){}return o(f,"object"),function(h){if(!Wn(h))return{};if(Uj)return Uj(h);f.prototype=h;var S=new f;return f.prototype=r,S}})();function cN(){}o(cN,"baseLodash");function _o(f,h){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=r}o(_o,"LodashWrapper"),U.templateSettings={escape:tr,evaluate:vr,interpolate:ft,variable:"",imports:{_:U}},U.prototype=cN.prototype,U.prototype.constructor=U,_o.prototype=Mg(cN.prototype),_o.prototype.constructor=_o;function Er(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}o(Er,"LazyWrapper");function Kte(){var f=new Er(this.__wrapped__);return f.__actions__=Ea(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ea(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ea(this.__views__),f}o(Kte,"lazyClone");function $te(){if(this.__filtered__){var f=new Er(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}o($te,"lazyReverse");function Gte(){var f=this.__wrapped__.value(),h=this.__dir__,S=rr(f),I=h<0,B=S?f.length:0,q=sne(0,B,this.__views__),Q=q.start,te=q.end,ge=te-Q,Be=I?te:Q-1,Ve=this.__iteratees__,Ke=Ve.length,ct=0,Ct=Us(ge,this.__takeCount__);if(!S||!I&&B==ge&&Ct==ge)return m5(f,this.__actions__);var kt=[];e:for(;ge--&&ct<Ct;){Be+=h;for(var fr=-1,Vt=f[Be];++fr<Ke;){var yr=Ve[fr],Rr=yr.iteratee,ao=yr.type,la=Rr(Vt);if(ao==ye)Vt=la;else if(!la){if(ao==X)continue e;break e}}kt[ct++]=Vt}return kt}o(Gte,"lazyValue"),Er.prototype=Mg(cN.prototype),Er.prototype.constructor=Er;function Hd(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Hd,"Hash");function Xte(){this.__data__=hx?hx(null):{},this.size=0}o(Xte,"hashClear");function Wte(f){var h=this.has(f)&&delete this.__data__[f];return this.size-=h?1:0,h}o(Wte,"hashDelete");function Jte(f){var h=this.__data__;if(hx){var S=h[f];return S===a?r:S}return Zr.call(h,f)?h[f]:r}o(Jte,"hashGet");function Qte(f){var h=this.__data__;return hx?h[f]!==r:Zr.call(h,f)}o(Qte,"hashHas");function Yte(f,h){var S=this.__data__;return this.size+=this.has(f)?0:1,S[f]=hx&&h===r?a:h,this}o(Yte,"hashSet"),Hd.prototype.clear=Xte,Hd.prototype.delete=Wte,Hd.prototype.get=Jte,Hd.prototype.has=Qte,Hd.prototype.set=Yte;function Bl(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Bl,"ListCache");function Zte(){this.__data__=[],this.size=0}o(Zte,"listCacheClear");function ere(f){var h=this.__data__,S=lN(h,f);if(S<0)return!1;var I=h.length-1;return S==I?h.pop():nN.call(h,S,1),--this.size,!0}o(ere,"listCacheDelete");function tre(f){var h=this.__data__,S=lN(h,f);return S<0?r:h[S][1]}o(tre,"listCacheGet");function rre(f){return lN(this.__data__,f)>-1}o(rre,"listCacheHas");function nre(f,h){var S=this.__data__,I=lN(S,f);return I<0?(++this.size,S.push([f,h])):S[I][1]=h,this}o(nre,"listCacheSet"),Bl.prototype.clear=Zte,Bl.prototype.delete=ere,Bl.prototype.get=tre,Bl.prototype.has=rre,Bl.prototype.set=nre;function Fl(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Fl,"MapCache");function ire(){this.size=0,this.__data__={hash:new Hd,map:new(fx||Bl),string:new Hd}}o(ire,"mapCacheClear");function sre(f){var h=wN(this,f).delete(f);return this.size-=h?1:0,h}o(sre,"mapCacheDelete");function are(f){return wN(this,f).get(f)}o(are,"mapCacheGet");function ore(f){return wN(this,f).has(f)}o(ore,"mapCacheHas");function ure(f,h){var S=wN(this,f),I=S.size;return S.set(f,h),this.size+=S.size==I?0:1,this}o(ure,"mapCacheSet"),Fl.prototype.clear=ire,Fl.prototype.delete=sre,Fl.prototype.get=are,Fl.prototype.has=ore,Fl.prototype.set=ure;function zd(f){var h=-1,S=f==null?0:f.length;for(this.__data__=new Fl;++h<S;)this.add(f[h])}o(zd,"SetCache");function cre(f){return this.__data__.set(f,a),this}o(cre,"setCacheAdd");function lre(f){return this.__data__.has(f)}o(lre,"setCacheHas"),zd.prototype.add=zd.prototype.push=cre,zd.prototype.has=lre;function bu(f){var h=this.__data__=new Bl(f);this.size=h.size}o(bu,"Stack");function fre(){this.__data__=new Bl,this.size=0}o(fre,"stackClear");function pre(f){var h=this.__data__,S=h.delete(f);return this.size=h.size,S}o(pre,"stackDelete");function hre(f){return this.__data__.get(f)}o(hre,"stackGet");function dre(f){return this.__data__.has(f)}o(dre,"stackHas");function mre(f,h){var S=this.__data__;if(S instanceof Bl){var I=S.__data__;if(!fx||I.length<t-1)return I.push([f,h]),this.size=++S.size,this;S=this.__data__=new Fl(I)}return S.set(f,h),this.size=S.size,this}o(mre,"stackSet"),bu.prototype.clear=fre,bu.prototype.delete=pre,bu.prototype.get=hre,bu.prototype.has=dre,bu.prototype.set=mre;function $j(f,h){var S=rr(f),I=!S&&Wd(f),B=!S&&!I&&Np(f),q=!S&&!I&&!B&&Kg(f),Q=S||I||B||q,te=Q?vO(f.length,Ate):[],ge=te.length;for(var Be in f)(h||Zr.call(f,Be))&&!(Q&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||q&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||jl(Be,ge)))&&te.push(Be);return te}o($j,"arrayLikeKeys");function Gj(f){var h=f.length;return h?f[BO(0,h-1)]:r}o(Gj,"arraySample");function gre(f,h){return CN(Ea(f),Kd(h,0,f.length))}o(gre,"arraySampleSize");function vre(f){return CN(Ea(f))}o(vre,"arrayShuffle");function EO(f,h,S){(S!==r&&!wu(f[h],S)||S===r&&!(h in f))&&Ll(f,h,S)}o(EO,"assignMergeValue");function mx(f,h,S){var I=f[h];(!(Zr.call(f,h)&&wu(I,S))||S===r&&!(h in f))&&Ll(f,h,S)}o(mx,"assignValue");function lN(f,h){for(var S=f.length;S--;)if(wu(f[S][0],h))return S;return-1}o(lN,"assocIndexOf");function yre(f,h,S,I){return wp(f,function(B,q,Q){h(I,B,S(B),Q)}),I}o(yre,"baseAggregator");function Xj(f,h){return f&&bc(h,Ki(h),f)}o(Xj,"baseAssign");function Sre(f,h){return f&&bc(h,Na(h),f)}o(Sre,"baseAssignIn");function Ll(f,h,S){h=="__proto__"&&iN?iN(f,h,{configurable:!0,enumerable:!0,value:S,writable:!0}):f[h]=S}o(Ll,"baseAssignValue");function AO(f,h){for(var S=-1,I=h.length,B=Te(I),q=f==null;++S<I;)B[S]=q?r:sP(f,h[S]);return B}o(AO,"baseAt");function Kd(f,h,S){return f===f&&(S!==r&&(f=f<=S?f:S),h!==r&&(f=f>=h?f:h)),f}o(Kd,"baseClamp");function Oo(f,h,S,I,B,q){var Q,te=h&l,ge=h&p,Be=h&m;if(S&&(Q=B?S(f,I,B,q):S(f)),Q!==r)return Q;if(!Wn(f))return f;var Ve=rr(f);if(Ve){if(Q=one(f),!te)return Ea(f,Q)}else{var Ke=Ms(f),ct=Ke==Ge||Ke==Ue;if(Np(f))return y5(f,te);if(Ke==Je||Ke==Ze||ct&&!B){if(Q=ge||ct?{}:k5(f),!te)return ge?Jre(f,Sre(Q,f)):Wre(f,Xj(Q,f))}else{if(!gn[Ke])return B?f:{};Q=une(f,Ke,te)}}q||(q=new bu);var Ct=q.get(f);if(Ct)return Ct;q.set(f,Q),pU(f)?f.forEach(function(Vt){Q.add(Oo(Vt,h,S,Vt,f,q))}):lU(f)&&f.forEach(function(Vt,yr){Q.set(yr,Oo(Vt,h,S,yr,f,q))});var kt=Be?ge?KO:zO:ge?Na:Ki,fr=Ve?r:kt(f);return Ro(fr||f,function(Vt,yr){fr&&(yr=Vt,Vt=f[yr]),mx(Q,yr,Oo(Vt,h,S,yr,f,q))}),Q}o(Oo,"baseClone");function xre(f){var h=Ki(f);return function(S){return Wj(S,f,h)}}o(xre,"baseConforms");function Wj(f,h,S){var I=S.length;if(f==null)return!I;for(f=cn(f);I--;){var B=S[I],q=h[B],Q=f[B];if(Q===r&&!(B in f)||!q(Q))return!1}return!0}o(Wj,"baseConformsTo");function Jj(f,h,S){if(typeof f!="function")throw new Do(i);return wx(function(){f.apply(r,S)},h)}o(Jj,"baseDelay");function gx(f,h,S,I){var B=-1,q=GA,Q=!0,te=f.length,ge=[],Be=h.length;if(!te)return ge;S&&(h=Fn(h,no(S))),I?(q=fO,Q=!1):h.length>=t&&(q=cx,Q=!1,h=new zd(h));e:for(;++B<te;){var Ve=f[B],Ke=S==null?Ve:S(Ve);if(Ve=I||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ct=Be;ct--;)if(h[ct]===Ke)continue e;ge.push(Ve)}else q(h,Ke,I)||ge.push(Ve)}return ge}o(gx,"baseDifference");var wp=C5(xc),Qj=C5(IO,!0);function bre(f,h){var S=!0;return wp(f,function(I,B,q){return S=!!h(I,B,q),S}),S}o(bre,"baseEvery");function fN(f,h,S){for(var I=-1,B=f.length;++I<B;){var q=f[I],Q=h(q);if(Q!=null&&(te===r?Q===Q&&!so(Q):S(Q,te)))var te=Q,ge=q}return ge}o(fN,"baseExtremum");function wre(f,h,S,I){var B=f.length;for(S=or(S),S<0&&(S=-S>B?0:B+S),I=I===r||I>B?B:or(I),I<0&&(I+=B),I=S>I?0:dU(I);S<I;)f[S++]=h;return f}o(wre,"baseFill");function Yj(f,h){var S=[];return wp(f,function(I,B,q){h(I,B,q)&&S.push(I)}),S}o(Yj,"baseFilter");function ds(f,h,S,I,B){var q=-1,Q=f.length;for(S||(S=lne),B||(B=[]);++q<Q;){var te=f[q];h>0&&S(te)?h>1?ds(te,h-1,S,I,B):yp(B,te):I||(B[B.length]=te)}return B}o(ds,"baseFlatten");var NO=E5(),Zj=E5(!0);function xc(f,h){return f&&NO(f,h,Ki)}o(xc,"baseForOwn");function IO(f,h){return f&&Zj(f,h,Ki)}o(IO,"baseForOwnRight");function pN(f,h){return vp(h,function(S){return Ul(f[S])})}o(pN,"baseFunctions");function $d(f,h){h=Ep(h,f);for(var S=0,I=h.length;f!=null&&S<I;)f=f[wc(h[S++])];return S&&S==I?f:r}o($d,"baseGet");function e5(f,h,S){var I=h(f);return rr(f)?I:yp(I,S(f))}o(e5,"baseGetAllKeys");function ua(f){return f==null?f===r?Ca:Ir:qd&&qd in cn(f)?ine(f):vne(f)}o(ua,"baseGetTag");function TO(f,h){return f>h}o(TO,"baseGt");function Cre(f,h){return f!=null&&Zr.call(f,h)}o(Cre,"baseHas");function Ere(f,h){return f!=null&&h in cn(f)}o(Ere,"baseHasIn");function Are(f,h,S){return f>=Us(h,S)&&f<Bi(h,S)}o(Are,"baseInRange");function RO(f,h,S){for(var I=S?fO:GA,B=f[0].length,q=f.length,Q=q,te=Te(q),ge=1/0,Be=[];Q--;){var Ve=f[Q];Q&&h&&(Ve=Fn(Ve,no(h))),ge=Us(Ve.length,ge),te[Q]=!S&&(h||B>=120&&Ve.length>=120)?new zd(Q&&Ve):r}Ve=f[0];var Ke=-1,ct=te[0];e:for(;++Ke<B&&Be.length<ge;){var Ct=Ve[Ke],kt=h?h(Ct):Ct;if(Ct=S||Ct!==0?Ct:0,!(ct?cx(ct,kt):I(Be,kt,S))){for(Q=q;--Q;){var fr=te[Q];if(!(fr?cx(fr,kt):I(f[Q],kt,S)))continue e}ct&&ct.push(kt),Be.push(Ct)}}return Be}o(RO,"baseIntersection");function Nre(f,h,S,I){return xc(f,function(B,q,Q){h(I,S(B),q,Q)}),I}o(Nre,"baseInverter");function vx(f,h,S){h=Ep(h,f),f=M5(f,h);var I=f==null?f:f[wc(Bo(h))];return I==null?r:ro(I,f,S)}o(vx,"baseInvoke");function t5(f){return si(f)&&ua(f)==Ze}o(t5,"baseIsArguments");function Ire(f){return si(f)&&ua(f)==lt}o(Ire,"baseIsArrayBuffer");function Tre(f){return si(f)&&ua(f)==O}o(Tre,"baseIsDate");function yx(f,h,S,I,B){return f===h?!0:f==null||h==null||!si(f)&&!si(h)?f!==f&&h!==h:Rre(f,h,S,I,yx,B)}o(yx,"baseIsEqual");function Rre(f,h,S,I,B,q){var Q=rr(f),te=rr(h),ge=Q?We:Ms(f),Be=te?We:Ms(h);ge=ge==Ze?Je:ge,Be=Be==Ze?Je:Be;var Ve=ge==Je,Ke=Be==Je,ct=ge==Be;if(ct&&Np(f)){if(!Np(h))return!1;Q=!0,Ve=!1}if(ct&&!Ve)return q||(q=new bu),Q||Kg(f)?B5(f,h,S,I,B,q):rne(f,h,ge,S,I,B,q);if(!(S&g)){var Ct=Ve&&Zr.call(f,"__wrapped__"),kt=Ke&&Zr.call(h,"__wrapped__");if(Ct||kt){var fr=Ct?f.value():f,Vt=kt?h.value():h;return q||(q=new bu),B(fr,Vt,S,I,q)}}return ct?(q||(q=new bu),nne(f,h,S,I,B,q)):!1}o(Rre,"baseIsEqualDeep");function Dre(f){return si(f)&&Ms(f)==Pe}o(Dre,"baseIsMap");function DO(f,h,S,I){var B=S.length,q=B,Q=!I;if(f==null)return!q;for(f=cn(f);B--;){var te=S[B];if(Q&&te[2]?te[1]!==f[te[0]]:!(te[0]in f))return!1}for(;++B<q;){te=S[B];var ge=te[0],Be=f[ge],Ve=te[1];if(Q&&te[2]){if(Be===r&&!(ge in f))return!1}else{var Ke=new bu;if(I)var ct=I(Be,Ve,ge,f,h,Ke);if(!(ct===r?yx(Ve,Be,g|y,I,Ke):ct))return!1}}return!0}o(DO,"baseIsMatch");function r5(f){if(!Wn(f)||pne(f))return!1;var h=Ul(f)?Dte:xee;return h.test(Xd(f))}o(r5,"baseIsNative");function _re(f){return si(f)&&ua(f)==nt}o(_re,"baseIsRegExp");function Ore(f){return si(f)&&Ms(f)==Bn}o(Ore,"baseIsSet");function Pre(f){return si(f)&&RN(f.length)&&!!In[ua(f)]}o(Pre,"baseIsTypedArray");function n5(f){return typeof f=="function"?f:f==null?Ia:typeof f=="object"?rr(f)?a5(f[0],f[1]):s5(f):AU(f)}o(n5,"baseIteratee");function _O(f){if(!bx(f))return Lte(f);var h=[];for(var S in cn(f))Zr.call(f,S)&&S!="constructor"&&h.push(S);return h}o(_O,"baseKeys");function Bre(f){if(!Wn(f))return gne(f);var h=bx(f),S=[];for(var I in f)I=="constructor"&&(h||!Zr.call(f,I))||S.push(I);return S}o(Bre,"baseKeysIn");function OO(f,h){return f<h}o(OO,"baseLt");function i5(f,h){var S=-1,I=Aa(f)?Te(f.length):[];return wp(f,function(B,q,Q){I[++S]=h(B,q,Q)}),I}o(i5,"baseMap");function s5(f){var h=GO(f);return h.length==1&&h[0][2]?j5(h[0][0],h[0][1]):function(S){return S===f||DO(S,f,h)}}o(s5,"baseMatches");function a5(f,h){return WO(f)&&V5(h)?j5(wc(f),h):function(S){var I=sP(S,f);return I===r&&I===h?aP(S,f):yx(h,I,g|y)}}o(a5,"baseMatchesProperty");function hN(f,h,S,I,B){f!==h&&NO(h,function(q,Q){if(B||(B=new bu),Wn(q))Fre(f,h,Q,S,hN,I,B);else{var te=I?I(QO(f,Q),q,Q+"",f,h,B):r;te===r&&(te=q),EO(f,Q,te)}},Na)}o(hN,"baseMerge");function Fre(f,h,S,I,B,q,Q){var te=QO(f,S),ge=QO(h,S),Be=Q.get(ge);if(Be){EO(f,S,Be);return}var Ve=q?q(te,ge,S+"",f,h,Q):r,Ke=Ve===r;if(Ke){var ct=rr(ge),Ct=!ct&&Np(ge),kt=!ct&&!Ct&&Kg(ge);Ve=ge,ct||Ct||kt?rr(te)?Ve=te:mi(te)?Ve=Ea(te):Ct?(Ke=!1,Ve=y5(ge,!0)):kt?(Ke=!1,Ve=S5(ge,!0)):Ve=[]:Cx(ge)||Wd(ge)?(Ve=te,Wd(te)?Ve=mU(te):(!Wn(te)||Ul(te))&&(Ve=k5(ge))):Ke=!1}Ke&&(Q.set(ge,Ve),B(Ve,ge,I,q,Q),Q.delete(ge)),EO(f,S,Ve)}o(Fre,"baseMergeDeep");function o5(f,h){var S=f.length;if(S)return h+=h<0?S:0,jl(h,S)?f[h]:r}o(o5,"baseNth");function u5(f,h,S){h.length?h=Fn(h,function(q){return rr(q)?function(Q){return $d(Q,q.length===1?q[0]:q)}:q}):h=[Ia];var I=-1;h=Fn(h,no(Pt()));var B=i5(f,function(q,Q,te){var ge=Fn(h,function(Be){return Be(q)});return{criteria:ge,index:++I,value:q}});return ute(B,function(q,Q){return Xre(q,Q,S)})}o(u5,"baseOrderBy");function Lre(f,h){return c5(f,h,function(S,I){return aP(f,I)})}o(Lre,"basePick");function c5(f,h,S){for(var I=-1,B=h.length,q={};++I<B;){var Q=h[I],te=$d(f,Q);S(te,Q)&&Sx(q,Ep(Q,f),te)}return q}o(c5,"basePickBy");function kre(f){return function(h){return $d(h,f)}}o(kre,"basePropertyDeep");function PO(f,h,S,I){var B=I?ote:Fg,q=-1,Q=h.length,te=f;for(f===h&&(h=Ea(h)),S&&(te=Fn(f,no(S)));++q<Q;)for(var ge=0,Be=h[q],Ve=S?S(Be):Be;(ge=B(te,Ve,ge,I))>-1;)te!==f&&nN.call(te,ge,1),nN.call(f,ge,1);return f}o(PO,"basePullAll");function l5(f,h){for(var S=f?h.length:0,I=S-1;S--;){var B=h[S];if(S==I||B!==q){var q=B;jl(B)?nN.call(f,B,1):kO(f,B)}}return f}o(l5,"basePullAt");function BO(f,h){return f+aN(zj()*(h-f+1))}o(BO,"baseRandom");function Vre(f,h,S,I){for(var B=-1,q=Bi(sN((h-f)/(S||1)),0),Q=Te(q);q--;)Q[I?q:++B]=f,f+=S;return Q}o(Vre,"baseRange");function FO(f,h){var S="";if(!f||h<1||h>ee)return S;do h%2&&(S+=f),h=aN(h/2),h&&(f+=f);while(h);return S}o(FO,"baseRepeat");function mr(f,h){return YO(U5(f,h,Ia),f+"")}o(mr,"baseRest");function jre(f){return Gj($g(f))}o(jre,"baseSample");function Ure(f,h){var S=$g(f);return CN(S,Kd(h,0,S.length))}o(Ure,"baseSampleSize");function Sx(f,h,S,I){if(!Wn(f))return f;h=Ep(h,f);for(var B=-1,q=h.length,Q=q-1,te=f;te!=null&&++B<q;){var ge=wc(h[B]),Be=S;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return f;if(B!=Q){var Ve=te[ge];Be=I?I(Ve,ge,te):r,Be===r&&(Be=Wn(Ve)?Ve:jl(h[B+1])?[]:{})}mx(te,ge,Be),te=te[ge]}return f}o(Sx,"baseSet");var f5=oN?function(f,h){return oN.set(f,h),f}:Ia,Mre=iN?function(f,h){return iN(f,"toString",{configurable:!0,enumerable:!1,value:uP(h),writable:!0})}:Ia;function qre(f){return CN($g(f))}o(qre,"baseShuffle");function Po(f,h,S){var I=-1,B=f.length;h<0&&(h=-h>B?0:B+h),S=S>B?B:S,S<0&&(S+=B),B=h>S?0:S-h>>>0,h>>>=0;for(var q=Te(B);++I<B;)q[I]=f[I+h];return q}o(Po,"baseSlice");function Hre(f,h){var S;return wp(f,function(I,B,q){return S=h(I,B,q),!S}),!!S}o(Hre,"baseSome");function dN(f,h,S){var I=0,B=f==null?I:f.length;if(typeof h=="number"&&h===h&&B<=ie){for(;I<B;){var q=I+B>>>1,Q=f[q];Q!==null&&!so(Q)&&(S?Q<=h:Q<h)?I=q+1:B=q}return B}return LO(f,h,Ia,S)}o(dN,"baseSortedIndex");function LO(f,h,S,I){var B=0,q=f==null?0:f.length;if(q===0)return 0;h=S(h);for(var Q=h!==h,te=h===null,ge=so(h),Be=h===r;B<q;){var Ve=aN((B+q)/2),Ke=S(f[Ve]),ct=Ke!==r,Ct=Ke===null,kt=Ke===Ke,fr=so(Ke);if(Q)var Vt=I||kt;else Be?Vt=kt&&(I||ct):te?Vt=kt&&ct&&(I||!Ct):ge?Vt=kt&&ct&&!Ct&&(I||!fr):Ct||fr?Vt=!1:Vt=I?Ke<=h:Ke<h;Vt?B=Ve+1:q=Ve}return Us(q,xe)}o(LO,"baseSortedIndexBy");function p5(f,h){for(var S=-1,I=f.length,B=0,q=[];++S<I;){var Q=f[S],te=h?h(Q):Q;if(!S||!wu(te,ge)){var ge=te;q[B++]=Q===0?0:Q}}return q}o(p5,"baseSortedUniq");function h5(f){return typeof f=="number"?f:so(f)?Ce:+f}o(h5,"baseToNumber");function io(f){if(typeof f=="string")return f;if(rr(f))return Fn(f,io)+"";if(so(f))return Kj?Kj.call(f):"";var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(io,"baseToString");function Cp(f,h,S){var I=-1,B=GA,q=f.length,Q=!0,te=[],ge=te;if(S)Q=!1,B=fO;else if(q>=t){var Be=h?null:ene(f);if(Be)return WA(Be);Q=!1,B=cx,ge=new zd}else ge=h?[]:te;e:for(;++I<q;){var Ve=f[I],Ke=h?h(Ve):Ve;if(Ve=S||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ct=ge.length;ct--;)if(ge[ct]===Ke)continue e;h&&ge.push(Ke),te.push(Ve)}else B(ge,Ke,S)||(ge!==te&&ge.push(Ke),te.push(Ve))}return te}o(Cp,"baseUniq");function kO(f,h){return h=Ep(h,f),f=M5(f,h),f==null||delete f[wc(Bo(h))]}o(kO,"baseUnset");function d5(f,h,S,I){return Sx(f,h,S($d(f,h)),I)}o(d5,"baseUpdate");function mN(f,h,S,I){for(var B=f.length,q=I?B:-1;(I?q--:++q<B)&&h(f[q],q,f););return S?Po(f,I?0:q,I?q+1:B):Po(f,I?q+1:0,I?B:q)}o(mN,"baseWhile");function m5(f,h){var S=f;return S instanceof Er&&(S=S.value()),pO(h,function(I,B){return B.func.apply(B.thisArg,yp([I],B.args))},S)}o(m5,"baseWrapperValue");function VO(f,h,S){var I=f.length;if(I<2)return I?Cp(f[0]):[];for(var B=-1,q=Te(I);++B<I;)for(var Q=f[B],te=-1;++te<I;)te!=B&&(q[B]=gx(q[B]||Q,f[te],h,S));return Cp(ds(q,1),h,S)}o(VO,"baseXor");function g5(f,h,S){for(var I=-1,B=f.length,q=h.length,Q={};++I<B;){var te=I<q?h[I]:r;S(Q,f[I],te)}return Q}o(g5,"baseZipObject");function jO(f){return mi(f)?f:[]}o(jO,"castArrayLikeObject");function UO(f){return typeof f=="function"?f:Ia}o(UO,"castFunction");function Ep(f,h){return rr(f)?f:WO(f,h)?[f]:K5(Xr(f))}o(Ep,"castPath");var zre=mr;function Ap(f,h,S){var I=f.length;return S=S===r?I:S,!h&&S>=I?f:Po(f,h,S)}o(Ap,"castSlice");var v5=_te||function(f){return zi.clearTimeout(f)};function y5(f,h){if(h)return f.slice();var S=f.length,I=jj?jj(S):new f.constructor(S);return f.copy(I),I}o(y5,"cloneBuffer");function MO(f){var h=new f.constructor(f.byteLength);return new tN(h).set(new tN(f)),h}o(MO,"cloneArrayBuffer");function Kre(f,h){var S=h?MO(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}o(Kre,"cloneDataView");function $re(f){var h=new f.constructor(f.source,Su.exec(f));return h.lastIndex=f.lastIndex,h}o($re,"cloneRegExp");function Gre(f){return dx?cn(dx.call(f)):{}}o(Gre,"cloneSymbol");function S5(f,h){var S=h?MO(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}o(S5,"cloneTypedArray");function x5(f,h){if(f!==h){var S=f!==r,I=f===null,B=f===f,q=so(f),Q=h!==r,te=h===null,ge=h===h,Be=so(h);if(!te&&!Be&&!q&&f>h||q&&Q&&ge&&!te&&!Be||I&&Q&&ge||!S&&ge||!B)return 1;if(!I&&!q&&!Be&&f<h||Be&&S&&B&&!I&&!q||te&&S&&B||!Q&&B||!ge)return-1}return 0}o(x5,"compareAscending");function Xre(f,h,S){for(var I=-1,B=f.criteria,q=h.criteria,Q=B.length,te=S.length;++I<Q;){var ge=x5(B[I],q[I]);if(ge){if(I>=te)return ge;var Be=S[I];return ge*(Be=="desc"?-1:1)}}return f.index-h.index}o(Xre,"compareMultiple");function b5(f,h,S,I){for(var B=-1,q=f.length,Q=S.length,te=-1,ge=h.length,Be=Bi(q-Q,0),Ve=Te(ge+Be),Ke=!I;++te<ge;)Ve[te]=h[te];for(;++B<Q;)(Ke||B<q)&&(Ve[S[B]]=f[B]);for(;Be--;)Ve[te++]=f[B++];return Ve}o(b5,"composeArgs");function w5(f,h,S,I){for(var B=-1,q=f.length,Q=-1,te=S.length,ge=-1,Be=h.length,Ve=Bi(q-te,0),Ke=Te(Ve+Be),ct=!I;++B<Ve;)Ke[B]=f[B];for(var Ct=B;++ge<Be;)Ke[Ct+ge]=h[ge];for(;++Q<te;)(ct||B<q)&&(Ke[Ct+S[Q]]=f[B++]);return Ke}o(w5,"composeArgsRight");function Ea(f,h){var S=-1,I=f.length;for(h||(h=Te(I));++S<I;)h[S]=f[S];return h}o(Ea,"copyArray");function bc(f,h,S,I){var B=!S;S||(S={});for(var q=-1,Q=h.length;++q<Q;){var te=h[q],ge=I?I(S[te],f[te],te,S,f):r;ge===r&&(ge=f[te]),B?Ll(S,te,ge):mx(S,te,ge)}return S}o(bc,"copyObject");function Wre(f,h){return bc(f,XO(f),h)}o(Wre,"copySymbols");function Jre(f,h){return bc(f,F5(f),h)}o(Jre,"copySymbolsIn");function gN(f,h){return function(S,I){var B=rr(S)?tte:yre,q=h?h():{};return B(S,f,Pt(I,2),q)}}o(gN,"createAggregator");function qg(f){return mr(function(h,S){var I=-1,B=S.length,q=B>1?S[B-1]:r,Q=B>2?S[2]:r;for(q=f.length>3&&typeof q=="function"?(B--,q):r,Q&&ca(S[0],S[1],Q)&&(q=B<3?r:q,B=1),h=cn(h);++I<B;){var te=S[I];te&&f(h,te,I,q)}return h})}o(qg,"createAssigner");function C5(f,h){return function(S,I){if(S==null)return S;if(!Aa(S))return f(S,I);for(var B=S.length,q=h?B:-1,Q=cn(S);(h?q--:++q<B)&&I(Q[q],q,Q)!==!1;);return S}}o(C5,"createBaseEach");function E5(f){return function(h,S,I){for(var B=-1,q=cn(h),Q=I(h),te=Q.length;te--;){var ge=Q[f?te:++B];if(S(q[ge],ge,q)===!1)break}return h}}o(E5,"createBaseFor");function Qre(f,h,S){var I=h&v,B=xx(f);function q(){var Q=this&&this!==zi&&this instanceof q?B:f;return Q.apply(I?S:this,arguments)}return o(q,"wrapper"),q}o(Qre,"createBind");function A5(f){return function(h){h=Xr(h);var S=Lg(h)?xu(h):r,I=S?S[0]:h.charAt(0),B=S?Ap(S,1).join(""):h.slice(1);return I[f]()+B}}o(A5,"createCaseFirst");function Hg(f){return function(h){return pO(CU(wU(h).replace(Mee,"")),f,"")}}o(Hg,"createCompounder");function xx(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var S=Mg(f.prototype),I=f.apply(S,h);return Wn(I)?I:S}}o(xx,"createCtor");function Yre(f,h,S){var I=xx(f);function B(){for(var q=arguments.length,Q=Te(q),te=q,ge=zg(B);te--;)Q[te]=arguments[te];var Be=q<3&&Q[0]!==ge&&Q[q-1]!==ge?[]:Sp(Q,ge);if(q-=Be.length,q<S)return D5(f,h,vN,B.placeholder,r,Q,Be,r,r,S-q);var Ve=this&&this!==zi&&this instanceof B?I:f;return ro(Ve,this,Q)}return o(B,"wrapper"),B}o(Yre,"createCurry");function N5(f){return function(h,S,I){var B=cn(h);if(!Aa(h)){var q=Pt(S,3);h=Ki(h),S=o(function(te){return q(B[te],te,B)},"predicate")}var Q=f(h,S,I);return Q>-1?B[q?h[Q]:Q]:r}}o(N5,"createFind");function I5(f){return Vl(function(h){var S=h.length,I=S,B=_o.prototype.thru;for(f&&h.reverse();I--;){var q=h[I];if(typeof q!="function")throw new Do(i);if(B&&!Q&&bN(q)=="wrapper")var Q=new _o([],!0)}for(I=Q?I:S;++I<S;){q=h[I];var te=bN(q),ge=te=="wrapper"?$O(q):r;ge&&JO(ge[0])&&ge[1]==(A|E|w|R)&&!ge[4].length&&ge[9]==1?Q=Q[bN(ge[0])].apply(Q,ge[3]):Q=q.length==1&&JO(q)?Q[te]():Q.thru(q)}return function(){var Be=arguments,Ve=Be[0];if(Q&&Be.length==1&&rr(Ve))return Q.plant(Ve).value();for(var Ke=0,ct=S?h[Ke].apply(this,Be):Ve;++Ke<S;)ct=h[Ke].call(this,ct);return ct}})}o(I5,"createFlow");function vN(f,h,S,I,B,q,Q,te,ge,Be){var Ve=h&A,Ke=h&v,ct=h&b,Ct=h&(E|N),kt=h&M,fr=ct?r:xx(f);function Vt(){for(var yr=arguments.length,Rr=Te(yr),ao=yr;ao--;)Rr[ao]=arguments[ao];if(Ct)var la=zg(Vt),oo=lte(Rr,la);if(I&&(Rr=b5(Rr,I,B,Ct)),q&&(Rr=w5(Rr,q,Q,Ct)),yr-=oo,Ct&&yr<Be){var gi=Sp(Rr,la);return D5(f,h,vN,Vt.placeholder,S,Rr,gi,te,ge,Be-yr)}var Cu=Ke?S:this,ql=ct?Cu[f]:f;return yr=Rr.length,te?Rr=yne(Rr,te):kt&&yr>1&&Rr.reverse(),Ve&&ge<yr&&(Rr.length=ge),this&&this!==zi&&this instanceof Vt&&(ql=fr||xx(ql)),ql.apply(Cu,Rr)}return o(Vt,"wrapper"),Vt}o(vN,"createHybrid");function T5(f,h){return function(S,I){return Nre(S,f,h(I),{})}}o(T5,"createInverter");function yN(f,h){return function(S,I){var B;if(S===r&&I===r)return h;if(S!==r&&(B=S),I!==r){if(B===r)return I;typeof S=="string"||typeof I=="string"?(S=io(S),I=io(I)):(S=h5(S),I=h5(I)),B=f(S,I)}return B}}o(yN,"createMathOperation");function qO(f){return Vl(function(h){return h=Fn(h,no(Pt())),mr(function(S){var I=this;return f(h,function(B){return ro(B,I,S)})})})}o(qO,"createOver");function SN(f,h){h=h===r?" ":io(h);var S=h.length;if(S<2)return S?FO(h,f):h;var I=FO(h,sN(f/kg(h)));return Lg(h)?Ap(xu(I),0,f).join(""):I.slice(0,f)}o(SN,"createPadding");function Zre(f,h,S,I){var B=h&v,q=xx(f);function Q(){for(var te=-1,ge=arguments.length,Be=-1,Ve=I.length,Ke=Te(Ve+ge),ct=this&&this!==zi&&this instanceof Q?q:f;++Be<Ve;)Ke[Be]=I[Be];for(;ge--;)Ke[Be++]=arguments[++te];return ro(ct,B?S:this,Ke)}return o(Q,"wrapper"),Q}o(Zre,"createPartial");function R5(f){return function(h,S,I){return I&&typeof I!="number"&&ca(h,S,I)&&(S=I=r),h=Ml(h),S===r?(S=h,h=0):S=Ml(S),I=I===r?h<S?1:-1:Ml(I),Vre(h,S,I,f)}}o(R5,"createRange");function xN(f){return function(h,S){return typeof h=="string"&&typeof S=="string"||(h=Fo(h),S=Fo(S)),f(h,S)}}o(xN,"createRelationalOperation");function D5(f,h,S,I,B,q,Q,te,ge,Be){var Ve=h&E,Ke=Ve?Q:r,ct=Ve?r:Q,Ct=Ve?q:r,kt=Ve?r:q;h|=Ve?w:C,h&=~(Ve?C:w),h&x||(h&=~(v|b));var fr=[f,h,B,Ct,Ke,kt,ct,te,ge,Be],Vt=S.apply(r,fr);return JO(f)&&q5(Vt,fr),Vt.placeholder=I,H5(Vt,f,h)}o(D5,"createRecurry");function HO(f){var h=Pi[f];return function(S,I){if(S=Fo(S),I=I==null?0:Us(or(I),292),I&&Hj(S)){var B=(Xr(S)+"e").split("e"),q=h(B[0]+"e"+(+B[1]+I));return B=(Xr(q)+"e").split("e"),+(B[0]+"e"+(+B[1]-I))}return h(S)}}o(HO,"createRound");var ene=jg&&1/WA(new jg([,-0]))[1]==ce?function(f){return new jg(f)}:fP;function _5(f){return function(h){var S=Ms(h);return S==Pe?SO(h):S==Bn?vte(h):cte(h,f(h))}}o(_5,"createToPairs");function kl(f,h,S,I,B,q,Q,te){var ge=h&b;if(!ge&&typeof f!="function")throw new Do(i);var Be=I?I.length:0;if(Be||(h&=~(w|C),I=B=r),Q=Q===r?Q:Bi(or(Q),0),te=te===r?te:or(te),Be-=B?B.length:0,h&C){var Ve=I,Ke=B;I=B=r}var ct=ge?r:$O(f),Ct=[f,h,S,I,B,Ve,Ke,q,Q,te];if(ct&&mne(Ct,ct),f=Ct[0],h=Ct[1],S=Ct[2],I=Ct[3],B=Ct[4],te=Ct[9]=Ct[9]===r?ge?0:f.length:Bi(Ct[9]-Be,0),!te&&h&(E|N)&&(h&=~(E|N)),!h||h==v)var kt=Qre(f,h,S);else h==E||h==N?kt=Yre(f,h,te):(h==w||h==(v|w))&&!B.length?kt=Zre(f,h,S,I):kt=vN.apply(r,Ct);var fr=ct?f5:q5;return H5(fr(kt,Ct),f,h)}o(kl,"createWrap");function O5(f,h,S,I){return f===r||wu(f,Vg[S])&&!Zr.call(I,S)?h:f}o(O5,"customDefaultsAssignIn");function P5(f,h,S,I,B,q){return Wn(f)&&Wn(h)&&(q.set(h,f),hN(f,h,r,P5,q),q.delete(h)),f}o(P5,"customDefaultsMerge");function tne(f){return Cx(f)?r:f}o(tne,"customOmitClone");function B5(f,h,S,I,B,q){var Q=S&g,te=f.length,ge=h.length;if(te!=ge&&!(Q&&ge>te))return!1;var Be=q.get(f),Ve=q.get(h);if(Be&&Ve)return Be==h&&Ve==f;var Ke=-1,ct=!0,Ct=S&y?new zd:r;for(q.set(f,h),q.set(h,f);++Ke<te;){var kt=f[Ke],fr=h[Ke];if(I)var Vt=Q?I(fr,kt,Ke,h,f,q):I(kt,fr,Ke,f,h,q);if(Vt!==r){if(Vt)continue;ct=!1;break}if(Ct){if(!hO(h,function(yr,Rr){if(!cx(Ct,Rr)&&(kt===yr||B(kt,yr,S,I,q)))return Ct.push(Rr)})){ct=!1;break}}else if(!(kt===fr||B(kt,fr,S,I,q))){ct=!1;break}}return q.delete(f),q.delete(h),ct}o(B5,"equalArrays");function rne(f,h,S,I,B,q,Q){switch(S){case ps:if(f.byteLength!=h.byteLength||f.byteOffset!=h.byteOffset)return!1;f=f.buffer,h=h.buffer;case lt:return!(f.byteLength!=h.byteLength||!q(new tN(f),new tN(h)));case F:case O:case bt:return wu(+f,+h);case J:return f.name==h.name&&f.message==h.message;case nt:case Ei:return f==h+"";case Pe:var te=SO;case Bn:var ge=I&g;if(te||(te=WA),f.size!=h.size&&!ge)return!1;var Be=Q.get(f);if(Be)return Be==h;I|=y,Q.set(f,h);var Ve=B5(te(f),te(h),I,B,q,Q);return Q.delete(f),Ve;case Vs:if(dx)return dx.call(f)==dx.call(h)}return!1}o(rne,"equalByTag");function nne(f,h,S,I,B,q){var Q=S&g,te=zO(f),ge=te.length,Be=zO(h),Ve=Be.length;if(ge!=Ve&&!Q)return!1;for(var Ke=ge;Ke--;){var ct=te[Ke];if(!(Q?ct in h:Zr.call(h,ct)))return!1}var Ct=q.get(f),kt=q.get(h);if(Ct&&kt)return Ct==h&&kt==f;var fr=!0;q.set(f,h),q.set(h,f);for(var Vt=Q;++Ke<ge;){ct=te[Ke];var yr=f[ct],Rr=h[ct];if(I)var ao=Q?I(Rr,yr,ct,h,f,q):I(yr,Rr,ct,f,h,q);if(!(ao===r?yr===Rr||B(yr,Rr,S,I,q):ao)){fr=!1;break}Vt||(Vt=ct=="constructor")}if(fr&&!Vt){var la=f.constructor,oo=h.constructor;la!=oo&&"constructor"in f&&"constructor"in h&&!(typeof la=="function"&&la instanceof la&&typeof oo=="function"&&oo instanceof oo)&&(fr=!1)}return q.delete(f),q.delete(h),fr}o(nne,"equalObjects");function Vl(f){return YO(U5(f,r,W5),f+"")}o(Vl,"flatRest");function zO(f){return e5(f,Ki,XO)}o(zO,"getAllKeys");function KO(f){return e5(f,Na,F5)}o(KO,"getAllKeysIn");var $O=oN?function(f){return oN.get(f)}:fP;function bN(f){for(var h=f.name+"",S=Ug[h],I=Zr.call(Ug,h)?S.length:0;I--;){var B=S[I],q=B.func;if(q==null||q==f)return B.name}return h}o(bN,"getFuncName");function zg(f){var h=Zr.call(U,"placeholder")?U:f;return h.placeholder}o(zg,"getHolder");function Pt(){var f=U.iteratee||cP;return f=f===cP?n5:f,arguments.length?f(arguments[0],arguments[1]):f}o(Pt,"getIteratee");function wN(f,h){var S=f.__data__;return fne(h)?S[typeof h=="string"?"string":"hash"]:S.map}o(wN,"getMapData");function GO(f){for(var h=Ki(f),S=h.length;S--;){var I=h[S],B=f[I];h[S]=[I,B,V5(B)]}return h}o(GO,"getMatchData");function Gd(f,h){var S=dte(f,h);return r5(S)?S:r}o(Gd,"getNative");function ine(f){var h=Zr.call(f,qd),S=f[qd];try{f[qd]=r;var I=!0}catch{}var B=ZA.call(f);return I&&(h?f[qd]=S:delete f[qd]),B}o(ine,"getRawTag");var XO=bO?function(f){return f==null?[]:(f=cn(f),vp(bO(f),function(h){return Mj.call(f,h)}))}:pP,F5=bO?function(f){for(var h=[];f;)yp(h,XO(f)),f=rN(f);return h}:pP,Ms=ua;(wO&&Ms(new wO(new ArrayBuffer(1)))!=ps||fx&&Ms(new fx)!=Pe||CO&&Ms(CO.resolve())!=Tr||jg&&Ms(new jg)!=Bn||px&&Ms(new px)!=aa)&&(Ms=o(function(f){var h=ua(f),S=h==Je?f.constructor:r,I=S?Xd(S):"";if(I)switch(I){case Ute:return ps;case Mte:return Pe;case qte:return Tr;case Hte:return Bn;case zte:return aa}return h},"getTag"));function sne(f,h,S){for(var I=-1,B=S.length;++I<B;){var q=S[I],Q=q.size;switch(q.type){case"drop":f+=Q;break;case"dropRight":h-=Q;break;case"take":h=Us(h,f+Q);break;case"takeRight":f=Bi(f,h-Q);break}}return{start:f,end:h}}o(sne,"getView");function ane(f){var h=f.match(eO);return h?h[1].split(tO):[]}o(ane,"getWrapDetails");function L5(f,h,S){h=Ep(h,f);for(var I=-1,B=h.length,q=!1;++I<B;){var Q=wc(h[I]);if(!(q=f!=null&&S(f,Q)))break;f=f[Q]}return q||++I!=B?q:(B=f==null?0:f.length,!!B&&RN(B)&&jl(Q,B)&&(rr(f)||Wd(f)))}o(L5,"hasPath");function one(f){var h=f.length,S=new f.constructor(h);return h&&typeof f[0]=="string"&&Zr.call(f,"index")&&(S.index=f.index,S.input=f.input),S}o(one,"initCloneArray");function k5(f){return typeof f.constructor=="function"&&!bx(f)?Mg(rN(f)):{}}o(k5,"initCloneObject");function une(f,h,S){var I=f.constructor;switch(h){case lt:return MO(f);case F:case O:return new I(+f);case ps:return Kre(f,S);case oa:case vc:case yc:case Jt:case Og:case Pg:case Ud:case ox:case to:return S5(f,S);case Pe:return new I;case bt:case Ei:return new I(f);case nt:return $re(f);case Bn:return new I;case Vs:return Gre(f)}}o(une,"initCloneByTag");function cne(f,h){var S=h.length;if(!S)return f;var I=S-1;return h[I]=(S>1?"& ":"")+h[I],h=h.join(S>2?", ":" "),f.replace(Z_,`{
26
+ `).map(e=>e.trim()).join(" ")};g9.O=function(r){return this.inspectOpts.colors=this.useColors,A2.inspect(r,this.inspectOpts)}});var mv=Z((DTe,_B)=>{"use strict";typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_B.exports=l9():_B.exports=v9()});var S9=Z((_Te,y9)=>{"use strict";var{PassThrough:Vpe}=require("stream");y9.exports=r=>{r={...r};let{array:e}=r,{encoding:t}=r,n=t==="buffer",i=!1;e?i=!(t||n):t=t||"utf8",n&&(t=null);let s=new Vpe({objectMode:i});t&&s.setEncoding(t);let a=0,u=[];return s.on("data",c=>{u.push(c),i?a=u.length:a+=c.length}),s.getBufferedValue=()=>e?u:n?Buffer.concat(u,a):u.join(""),s.getBufferedLength=()=>a,s}});var b9=Z((PTe,Jx)=>{"use strict";var{constants:jpe}=require("buffer"),Upe=require("stream"),{promisify:Mpe}=require("util"),qpe=S9(),Hpe=Mpe(Upe.pipeline),x9=class extends Error{static{o(this,"MaxBufferError")}constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function OB(r,e){if(!r)throw new Error("Expected a stream");e={maxBuffer:1/0,...e};let{maxBuffer:t}=e,n=qpe(e);return await new Promise((i,s)=>{let a=o(u=>{u&&n.getBufferedLength()<=jpe.MAX_LENGTH&&(u.bufferedData=n.getBufferedValue()),s(u)},"rejectPromise");(async()=>{try{await Hpe(r,n),i()}catch(u){a(u)}})(),n.on("data",()=>{n.getBufferedLength()>t&&a(new x9)})}),n.getBufferedValue()}o(OB,"getStream");Jx.exports=OB;Jx.exports.buffer=(r,e)=>OB(r,{...e,encoding:"buffer"});Jx.exports.array=(r,e)=>OB(r,{...e,array:!0});Jx.exports.MaxBufferError=x9});var Wl=Z((gv,Qx)=>{"use strict";(function(){var r,e="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",a="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",l=1,p=2,m=4,g=1,y=2,v=1,b=2,x=4,E=8,N=16,w=32,C=64,A=128,R=256,M=512,_=30,H="...",z=800,K=16,X=1,ye=2,fe=3,ce=1/0,ee=9007199254740991,pe=17976931348623157e292,Ce=NaN,Ye=4294967295,xe=Ye-1,ie=Ye>>>1,De=[["ary",A],["bind",v],["bindKey",b],["curry",E],["curryRight",N],["flip",M],["partial",w],["partialRight",C],["rearg",R]],Ze="[object Arguments]",We="[object Array]",it="[object AsyncFunction]",F="[object Boolean]",O="[object Date]",oe="[object DOMException]",J="[object Error]",Ge="[object Function]",Ue="[object GeneratorFunction]",Pe="[object Map]",bt="[object Number]",Ir="[object Null]",Je="[object Object]",Tr="[object Promise]",eo="[object Proxy]",nt="[object RegExp]",Bn="[object Set]",Ei="[object String]",Vs="[object Symbol]",Ca="[object Undefined]",aa="[object WeakMap]",Et="[object WeakSet]",lt="[object ArrayBuffer]",ps="[object DataView]",oa="[object Float32Array]",vc="[object Float64Array]",yc="[object Int8Array]",Jt="[object Int16Array]",Og="[object Int32Array]",Pg="[object Uint8Array]",Ud="[object Uint8ClampedArray]",ox="[object Uint16Array]",to="[object Uint32Array]",d=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,se=/&(?:amp|lt|gt|quot|#39);/g,de=/[&<>"']/g,G=RegExp(se.source),dt=RegExp(de.source),tr=/<%-([\s\S]+?)%>/g,vr=/<%([\s\S]+?)%>/g,ft=/<%=([\s\S]+?)%>/g,Xt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/,Io=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Lr=/[\\^$.*+?()[\]{}|]/g,Sc=RegExp(Lr.source),ux=/^\s+/,HA=/\s/,Z_=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,eO=/\{\n\/\* \[wrapped with (.+)\] \*/,tO=/,? & /,rO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,et=/[()=,{}\[\]\/\s]/,Cr=/\\(\\)?/g,js=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Su=/\w*$/,nO=/^[-+]0x[0-9a-f]+$/i,See=/^0b[01]+$/i,xee=/^\[object .+?Constructor\]$/,bee=/^0o[0-7]+$/i,wee=/^(?:0|[1-9]\d*)$/,Cee=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zA=/($^)/,Eee=/['\n\r\u2028\u2029\\]/g,KA="\\ud800-\\udfff",Aee="\\u0300-\\u036f",Nee="\\ufe20-\\ufe2f",Iee="\\u20d0-\\u20ff",rj=Aee+Nee+Iee,nj="\\u2700-\\u27bf",ij="a-z\\xdf-\\xf6\\xf8-\\xff",Tee="\\xac\\xb1\\xd7\\xf7",Ree="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Dee="\\u2000-\\u206f",_ee=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",sj="A-Z\\xc0-\\xd6\\xd8-\\xde",aj="\\ufe0e\\ufe0f",oj=Tee+Ree+Dee+_ee,iO="['\u2019]",Oee="["+KA+"]",uj="["+oj+"]",$A="["+rj+"]",cj="\\d+",Pee="["+nj+"]",lj="["+ij+"]",fj="[^"+KA+oj+cj+nj+ij+sj+"]",sO="\\ud83c[\\udffb-\\udfff]",Bee="(?:"+$A+"|"+sO+")",pj="[^"+KA+"]",aO="(?:\\ud83c[\\udde6-\\uddff]){2}",oO="[\\ud800-\\udbff][\\udc00-\\udfff]",Bg="["+sj+"]",hj="\\u200d",dj="(?:"+lj+"|"+fj+")",Fee="(?:"+Bg+"|"+fj+")",mj="(?:"+iO+"(?:d|ll|m|re|s|t|ve))?",gj="(?:"+iO+"(?:D|LL|M|RE|S|T|VE))?",vj=Bee+"?",yj="["+aj+"]?",Lee="(?:"+hj+"(?:"+[pj,aO,oO].join("|")+")"+yj+vj+")*",kee="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vee="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Sj=yj+vj+Lee,jee="(?:"+[Pee,aO,oO].join("|")+")"+Sj,Uee="(?:"+[pj+$A+"?",$A,aO,oO,Oee].join("|")+")",Mee=RegExp(iO,"g"),qee=RegExp($A,"g"),uO=RegExp(sO+"(?="+sO+")|"+Uee+Sj,"g"),Hee=RegExp([Bg+"?"+lj+"+"+mj+"(?="+[uj,Bg,"$"].join("|")+")",Fee+"+"+gj+"(?="+[uj,Bg+dj,"$"].join("|")+")",Bg+"?"+dj+"+"+mj,Bg+"+"+gj,Vee,kee,cj,jee].join("|"),"g"),zee=RegExp("["+hj+KA+rj+aj+"]"),Kee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,$ee=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Gee=-1,In={};In[oa]=In[vc]=In[yc]=In[Jt]=In[Og]=In[Pg]=In[Ud]=In[ox]=In[to]=!0,In[Ze]=In[We]=In[lt]=In[F]=In[ps]=In[O]=In[J]=In[Ge]=In[Pe]=In[bt]=In[Je]=In[nt]=In[Bn]=In[Ei]=In[aa]=!1;var gn={};gn[Ze]=gn[We]=gn[lt]=gn[ps]=gn[F]=gn[O]=gn[oa]=gn[vc]=gn[yc]=gn[Jt]=gn[Og]=gn[Pe]=gn[bt]=gn[Je]=gn[nt]=gn[Bn]=gn[Ei]=gn[Vs]=gn[Pg]=gn[Ud]=gn[ox]=gn[to]=!0,gn[J]=gn[Ge]=gn[aa]=!1;var Xee={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Wee={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jee={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Qee={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Yee=parseFloat,Zee=parseInt,xj=typeof global=="object"&&global&&global.Object===Object&&global,ete=typeof self=="object"&&self&&self.Object===Object&&self,zi=xj||ete||Function("return this")(),cO=typeof gv=="object"&&gv&&!gv.nodeType&&gv,Md=cO&&typeof Qx=="object"&&Qx&&!Qx.nodeType&&Qx,bj=Md&&Md.exports===cO,lO=bj&&xj.process,To=(function(){try{var he=Md&&Md.require&&Md.require("util").types;return he||lO&&lO.binding&&lO.binding("util")}catch{}})(),wj=To&&To.isArrayBuffer,Cj=To&&To.isDate,Ej=To&&To.isMap,Aj=To&&To.isRegExp,Nj=To&&To.isSet,Ij=To&&To.isTypedArray;function ro(he,Oe,Te){switch(Te.length){case 0:return he.call(Oe);case 1:return he.call(Oe,Te[0]);case 2:return he.call(Oe,Te[0],Te[1]);case 3:return he.call(Oe,Te[0],Te[1],Te[2])}return he.apply(Oe,Te)}o(ro,"apply");function tte(he,Oe,Te,St){for(var Qt=-1,$r=he==null?0:he.length;++Qt<$r;){var Pi=he[Qt];Oe(St,Pi,Te(Pi),he)}return St}o(tte,"arrayAggregator");function Ro(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St&&Oe(he[Te],Te,he)!==!1;);return he}o(Ro,"arrayEach");function rte(he,Oe){for(var Te=he==null?0:he.length;Te--&&Oe(he[Te],Te,he)!==!1;);return he}o(rte,"arrayEachRight");function Tj(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(!Oe(he[Te],Te,he))return!1;return!0}o(Tj,"arrayEvery");function vp(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=0,$r=[];++Te<St;){var Pi=he[Te];Oe(Pi,Te,he)&&($r[Qt++]=Pi)}return $r}o(vp,"arrayFilter");function GA(he,Oe){var Te=he==null?0:he.length;return!!Te&&Fg(he,Oe,0)>-1}o(GA,"arrayIncludes");function fO(he,Oe,Te){for(var St=-1,Qt=he==null?0:he.length;++St<Qt;)if(Te(Oe,he[St]))return!0;return!1}o(fO,"arrayIncludesWith");function Fn(he,Oe){for(var Te=-1,St=he==null?0:he.length,Qt=Array(St);++Te<St;)Qt[Te]=Oe(he[Te],Te,he);return Qt}o(Fn,"arrayMap");function yp(he,Oe){for(var Te=-1,St=Oe.length,Qt=he.length;++Te<St;)he[Qt+Te]=Oe[Te];return he}o(yp,"arrayPush");function pO(he,Oe,Te,St){var Qt=-1,$r=he==null?0:he.length;for(St&&$r&&(Te=he[++Qt]);++Qt<$r;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(pO,"arrayReduce");function nte(he,Oe,Te,St){var Qt=he==null?0:he.length;for(St&&Qt&&(Te=he[--Qt]);Qt--;)Te=Oe(Te,he[Qt],Qt,he);return Te}o(nte,"arrayReduceRight");function hO(he,Oe){for(var Te=-1,St=he==null?0:he.length;++Te<St;)if(Oe(he[Te],Te,he))return!0;return!1}o(hO,"arraySome");var ite=dO("length");function ste(he){return he.split("")}o(ste,"asciiToArray");function ate(he){return he.match(rO)||[]}o(ate,"asciiWords");function Rj(he,Oe,Te){var St;return Te(he,function(Qt,$r,Pi){if(Oe(Qt,$r,Pi))return St=$r,!1}),St}o(Rj,"baseFindKey");function XA(he,Oe,Te,St){for(var Qt=he.length,$r=Te+(St?1:-1);St?$r--:++$r<Qt;)if(Oe(he[$r],$r,he))return $r;return-1}o(XA,"baseFindIndex");function Fg(he,Oe,Te){return Oe===Oe?yte(he,Oe,Te):XA(he,Dj,Te)}o(Fg,"baseIndexOf");function ote(he,Oe,Te,St){for(var Qt=Te-1,$r=he.length;++Qt<$r;)if(St(he[Qt],Oe))return Qt;return-1}o(ote,"baseIndexOfWith");function Dj(he){return he!==he}o(Dj,"baseIsNaN");function _j(he,Oe){var Te=he==null?0:he.length;return Te?gO(he,Oe)/Te:Ce}o(_j,"baseMean");function dO(he){return function(Oe){return Oe==null?r:Oe[he]}}o(dO,"baseProperty");function mO(he){return function(Oe){return he==null?r:he[Oe]}}o(mO,"basePropertyOf");function Oj(he,Oe,Te,St,Qt){return Qt(he,function($r,Pi,cn){Te=St?(St=!1,$r):Oe(Te,$r,Pi,cn)}),Te}o(Oj,"baseReduce");function ute(he,Oe){var Te=he.length;for(he.sort(Oe);Te--;)he[Te]=he[Te].value;return he}o(ute,"baseSortBy");function gO(he,Oe){for(var Te,St=-1,Qt=he.length;++St<Qt;){var $r=Oe(he[St]);$r!==r&&(Te=Te===r?$r:Te+$r)}return Te}o(gO,"baseSum");function vO(he,Oe){for(var Te=-1,St=Array(he);++Te<he;)St[Te]=Oe(Te);return St}o(vO,"baseTimes");function cte(he,Oe){return Fn(Oe,function(Te){return[Te,he[Te]]})}o(cte,"baseToPairs");function Pj(he){return he&&he.slice(0,kj(he)+1).replace(ux,"")}o(Pj,"baseTrim");function no(he){return function(Oe){return he(Oe)}}o(no,"baseUnary");function yO(he,Oe){return Fn(Oe,function(Te){return he[Te]})}o(yO,"baseValues");function cx(he,Oe){return he.has(Oe)}o(cx,"cacheHas");function Bj(he,Oe){for(var Te=-1,St=he.length;++Te<St&&Fg(Oe,he[Te],0)>-1;);return Te}o(Bj,"charsStartIndex");function Fj(he,Oe){for(var Te=he.length;Te--&&Fg(Oe,he[Te],0)>-1;);return Te}o(Fj,"charsEndIndex");function lte(he,Oe){for(var Te=he.length,St=0;Te--;)he[Te]===Oe&&++St;return St}o(lte,"countHolders");var fte=mO(Xee),pte=mO(Wee);function hte(he){return"\\"+Qee[he]}o(hte,"escapeStringChar");function dte(he,Oe){return he==null?r:he[Oe]}o(dte,"getValue");function Lg(he){return zee.test(he)}o(Lg,"hasUnicode");function mte(he){return Kee.test(he)}o(mte,"hasUnicodeWord");function gte(he){for(var Oe,Te=[];!(Oe=he.next()).done;)Te.push(Oe.value);return Te}o(gte,"iteratorToArray");function SO(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St,Qt){Te[++Oe]=[Qt,St]}),Te}o(SO,"mapToArray");function Lj(he,Oe){return function(Te){return he(Oe(Te))}}o(Lj,"overArg");function Sp(he,Oe){for(var Te=-1,St=he.length,Qt=0,$r=[];++Te<St;){var Pi=he[Te];(Pi===Oe||Pi===c)&&(he[Te]=c,$r[Qt++]=Te)}return $r}o(Sp,"replaceHolders");function WA(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=St}),Te}o(WA,"setToArray");function vte(he){var Oe=-1,Te=Array(he.size);return he.forEach(function(St){Te[++Oe]=[St,St]}),Te}o(vte,"setToPairs");function yte(he,Oe,Te){for(var St=Te-1,Qt=he.length;++St<Qt;)if(he[St]===Oe)return St;return-1}o(yte,"strictIndexOf");function Ste(he,Oe,Te){for(var St=Te+1;St--;)if(he[St]===Oe)return St;return St}o(Ste,"strictLastIndexOf");function kg(he){return Lg(he)?bte(he):ite(he)}o(kg,"stringSize");function xu(he){return Lg(he)?wte(he):ste(he)}o(xu,"stringToArray");function kj(he){for(var Oe=he.length;Oe--&&HA.test(he.charAt(Oe)););return Oe}o(kj,"trimmedEndIndex");var xte=mO(Jee);function bte(he){for(var Oe=uO.lastIndex=0;uO.test(he);)++Oe;return Oe}o(bte,"unicodeSize");function wte(he){return he.match(uO)||[]}o(wte,"unicodeToArray");function Cte(he){return he.match(Hee)||[]}o(Cte,"unicodeWords");var Ete=o(function he(Oe){Oe=Oe==null?zi:xp.defaults(zi.Object(),Oe,xp.pick(zi,$ee));var Te=Oe.Array,St=Oe.Date,Qt=Oe.Error,$r=Oe.Function,Pi=Oe.Math,cn=Oe.Object,xO=Oe.RegExp,Ate=Oe.String,Do=Oe.TypeError,JA=Te.prototype,Nte=$r.prototype,Vg=cn.prototype,QA=Oe["__core-js_shared__"],YA=Nte.toString,Zr=Vg.hasOwnProperty,Ite=0,Vj=(function(){var f=/[^.]+$/.exec(QA&&QA.keys&&QA.keys.IE_PROTO||"");return f?"Symbol(src)_1."+f:""})(),ZA=Vg.toString,Tte=YA.call(cn),Rte=zi._,Dte=xO("^"+YA.call(Zr).replace(Lr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),eN=bj?Oe.Buffer:r,bp=Oe.Symbol,tN=Oe.Uint8Array,jj=eN?eN.allocUnsafe:r,rN=Lj(cn.getPrototypeOf,cn),Uj=cn.create,Mj=Vg.propertyIsEnumerable,nN=JA.splice,qj=bp?bp.isConcatSpreadable:r,lx=bp?bp.iterator:r,qd=bp?bp.toStringTag:r,iN=(function(){try{var f=Gd(cn,"defineProperty");return f({},"",{}),f}catch{}})(),_te=Oe.clearTimeout!==zi.clearTimeout&&Oe.clearTimeout,Ote=St&&St.now!==zi.Date.now&&St.now,Pte=Oe.setTimeout!==zi.setTimeout&&Oe.setTimeout,sN=Pi.ceil,aN=Pi.floor,bO=cn.getOwnPropertySymbols,Bte=eN?eN.isBuffer:r,Hj=Oe.isFinite,Fte=JA.join,Lte=Lj(cn.keys,cn),Bi=Pi.max,Us=Pi.min,kte=St.now,Vte=Oe.parseInt,zj=Pi.random,jte=JA.reverse,wO=Gd(Oe,"DataView"),fx=Gd(Oe,"Map"),CO=Gd(Oe,"Promise"),jg=Gd(Oe,"Set"),px=Gd(Oe,"WeakMap"),hx=Gd(cn,"create"),oN=px&&new px,Ug={},Ute=Xd(wO),Mte=Xd(fx),qte=Xd(CO),Hte=Xd(jg),zte=Xd(px),uN=bp?bp.prototype:r,dx=uN?uN.valueOf:r,Kj=uN?uN.toString:r;function U(f){if(si(f)&&!rr(f)&&!(f instanceof Er)){if(f instanceof _o)return f;if(Zr.call(f,"__wrapped__"))return $5(f)}return new _o(f)}o(U,"lodash");var Mg=(function(){function f(){}return o(f,"object"),function(h){if(!Wn(h))return{};if(Uj)return Uj(h);f.prototype=h;var S=new f;return f.prototype=r,S}})();function cN(){}o(cN,"baseLodash");function _o(f,h){this.__wrapped__=f,this.__actions__=[],this.__chain__=!!h,this.__index__=0,this.__values__=r}o(_o,"LodashWrapper"),U.templateSettings={escape:tr,evaluate:vr,interpolate:ft,variable:"",imports:{_:U}},U.prototype=cN.prototype,U.prototype.constructor=U,_o.prototype=Mg(cN.prototype),_o.prototype.constructor=_o;function Er(f){this.__wrapped__=f,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Ye,this.__views__=[]}o(Er,"LazyWrapper");function Kte(){var f=new Er(this.__wrapped__);return f.__actions__=Ea(this.__actions__),f.__dir__=this.__dir__,f.__filtered__=this.__filtered__,f.__iteratees__=Ea(this.__iteratees__),f.__takeCount__=this.__takeCount__,f.__views__=Ea(this.__views__),f}o(Kte,"lazyClone");function $te(){if(this.__filtered__){var f=new Er(this);f.__dir__=-1,f.__filtered__=!0}else f=this.clone(),f.__dir__*=-1;return f}o($te,"lazyReverse");function Gte(){var f=this.__wrapped__.value(),h=this.__dir__,S=rr(f),I=h<0,B=S?f.length:0,q=sne(0,B,this.__views__),Q=q.start,te=q.end,ge=te-Q,Be=I?te:Q-1,Ve=this.__iteratees__,Ke=Ve.length,ut=0,Ct=Us(ge,this.__takeCount__);if(!S||!I&&B==ge&&Ct==ge)return m5(f,this.__actions__);var kt=[];e:for(;ge--&&ut<Ct;){Be+=h;for(var fr=-1,Vt=f[Be];++fr<Ke;){var yr=Ve[fr],Rr=yr.iteratee,ao=yr.type,la=Rr(Vt);if(ao==ye)Vt=la;else if(!la){if(ao==X)continue e;break e}}kt[ut++]=Vt}return kt}o(Gte,"lazyValue"),Er.prototype=Mg(cN.prototype),Er.prototype.constructor=Er;function Hd(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Hd,"Hash");function Xte(){this.__data__=hx?hx(null):{},this.size=0}o(Xte,"hashClear");function Wte(f){var h=this.has(f)&&delete this.__data__[f];return this.size-=h?1:0,h}o(Wte,"hashDelete");function Jte(f){var h=this.__data__;if(hx){var S=h[f];return S===a?r:S}return Zr.call(h,f)?h[f]:r}o(Jte,"hashGet");function Qte(f){var h=this.__data__;return hx?h[f]!==r:Zr.call(h,f)}o(Qte,"hashHas");function Yte(f,h){var S=this.__data__;return this.size+=this.has(f)?0:1,S[f]=hx&&h===r?a:h,this}o(Yte,"hashSet"),Hd.prototype.clear=Xte,Hd.prototype.delete=Wte,Hd.prototype.get=Jte,Hd.prototype.has=Qte,Hd.prototype.set=Yte;function Bl(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Bl,"ListCache");function Zte(){this.__data__=[],this.size=0}o(Zte,"listCacheClear");function ere(f){var h=this.__data__,S=lN(h,f);if(S<0)return!1;var I=h.length-1;return S==I?h.pop():nN.call(h,S,1),--this.size,!0}o(ere,"listCacheDelete");function tre(f){var h=this.__data__,S=lN(h,f);return S<0?r:h[S][1]}o(tre,"listCacheGet");function rre(f){return lN(this.__data__,f)>-1}o(rre,"listCacheHas");function nre(f,h){var S=this.__data__,I=lN(S,f);return I<0?(++this.size,S.push([f,h])):S[I][1]=h,this}o(nre,"listCacheSet"),Bl.prototype.clear=Zte,Bl.prototype.delete=ere,Bl.prototype.get=tre,Bl.prototype.has=rre,Bl.prototype.set=nre;function Fl(f){var h=-1,S=f==null?0:f.length;for(this.clear();++h<S;){var I=f[h];this.set(I[0],I[1])}}o(Fl,"MapCache");function ire(){this.size=0,this.__data__={hash:new Hd,map:new(fx||Bl),string:new Hd}}o(ire,"mapCacheClear");function sre(f){var h=wN(this,f).delete(f);return this.size-=h?1:0,h}o(sre,"mapCacheDelete");function are(f){return wN(this,f).get(f)}o(are,"mapCacheGet");function ore(f){return wN(this,f).has(f)}o(ore,"mapCacheHas");function ure(f,h){var S=wN(this,f),I=S.size;return S.set(f,h),this.size+=S.size==I?0:1,this}o(ure,"mapCacheSet"),Fl.prototype.clear=ire,Fl.prototype.delete=sre,Fl.prototype.get=are,Fl.prototype.has=ore,Fl.prototype.set=ure;function zd(f){var h=-1,S=f==null?0:f.length;for(this.__data__=new Fl;++h<S;)this.add(f[h])}o(zd,"SetCache");function cre(f){return this.__data__.set(f,a),this}o(cre,"setCacheAdd");function lre(f){return this.__data__.has(f)}o(lre,"setCacheHas"),zd.prototype.add=zd.prototype.push=cre,zd.prototype.has=lre;function bu(f){var h=this.__data__=new Bl(f);this.size=h.size}o(bu,"Stack");function fre(){this.__data__=new Bl,this.size=0}o(fre,"stackClear");function pre(f){var h=this.__data__,S=h.delete(f);return this.size=h.size,S}o(pre,"stackDelete");function hre(f){return this.__data__.get(f)}o(hre,"stackGet");function dre(f){return this.__data__.has(f)}o(dre,"stackHas");function mre(f,h){var S=this.__data__;if(S instanceof Bl){var I=S.__data__;if(!fx||I.length<t-1)return I.push([f,h]),this.size=++S.size,this;S=this.__data__=new Fl(I)}return S.set(f,h),this.size=S.size,this}o(mre,"stackSet"),bu.prototype.clear=fre,bu.prototype.delete=pre,bu.prototype.get=hre,bu.prototype.has=dre,bu.prototype.set=mre;function $j(f,h){var S=rr(f),I=!S&&Wd(f),B=!S&&!I&&Np(f),q=!S&&!I&&!B&&Kg(f),Q=S||I||B||q,te=Q?vO(f.length,Ate):[],ge=te.length;for(var Be in f)(h||Zr.call(f,Be))&&!(Q&&(Be=="length"||B&&(Be=="offset"||Be=="parent")||q&&(Be=="buffer"||Be=="byteLength"||Be=="byteOffset")||jl(Be,ge)))&&te.push(Be);return te}o($j,"arrayLikeKeys");function Gj(f){var h=f.length;return h?f[BO(0,h-1)]:r}o(Gj,"arraySample");function gre(f,h){return CN(Ea(f),Kd(h,0,f.length))}o(gre,"arraySampleSize");function vre(f){return CN(Ea(f))}o(vre,"arrayShuffle");function EO(f,h,S){(S!==r&&!wu(f[h],S)||S===r&&!(h in f))&&Ll(f,h,S)}o(EO,"assignMergeValue");function mx(f,h,S){var I=f[h];(!(Zr.call(f,h)&&wu(I,S))||S===r&&!(h in f))&&Ll(f,h,S)}o(mx,"assignValue");function lN(f,h){for(var S=f.length;S--;)if(wu(f[S][0],h))return S;return-1}o(lN,"assocIndexOf");function yre(f,h,S,I){return wp(f,function(B,q,Q){h(I,B,S(B),Q)}),I}o(yre,"baseAggregator");function Xj(f,h){return f&&bc(h,Ki(h),f)}o(Xj,"baseAssign");function Sre(f,h){return f&&bc(h,Na(h),f)}o(Sre,"baseAssignIn");function Ll(f,h,S){h=="__proto__"&&iN?iN(f,h,{configurable:!0,enumerable:!0,value:S,writable:!0}):f[h]=S}o(Ll,"baseAssignValue");function AO(f,h){for(var S=-1,I=h.length,B=Te(I),q=f==null;++S<I;)B[S]=q?r:sP(f,h[S]);return B}o(AO,"baseAt");function Kd(f,h,S){return f===f&&(S!==r&&(f=f<=S?f:S),h!==r&&(f=f>=h?f:h)),f}o(Kd,"baseClamp");function Oo(f,h,S,I,B,q){var Q,te=h&l,ge=h&p,Be=h&m;if(S&&(Q=B?S(f,I,B,q):S(f)),Q!==r)return Q;if(!Wn(f))return f;var Ve=rr(f);if(Ve){if(Q=one(f),!te)return Ea(f,Q)}else{var Ke=Ms(f),ut=Ke==Ge||Ke==Ue;if(Np(f))return y5(f,te);if(Ke==Je||Ke==Ze||ut&&!B){if(Q=ge||ut?{}:k5(f),!te)return ge?Jre(f,Sre(Q,f)):Wre(f,Xj(Q,f))}else{if(!gn[Ke])return B?f:{};Q=une(f,Ke,te)}}q||(q=new bu);var Ct=q.get(f);if(Ct)return Ct;q.set(f,Q),pU(f)?f.forEach(function(Vt){Q.add(Oo(Vt,h,S,Vt,f,q))}):lU(f)&&f.forEach(function(Vt,yr){Q.set(yr,Oo(Vt,h,S,yr,f,q))});var kt=Be?ge?KO:zO:ge?Na:Ki,fr=Ve?r:kt(f);return Ro(fr||f,function(Vt,yr){fr&&(yr=Vt,Vt=f[yr]),mx(Q,yr,Oo(Vt,h,S,yr,f,q))}),Q}o(Oo,"baseClone");function xre(f){var h=Ki(f);return function(S){return Wj(S,f,h)}}o(xre,"baseConforms");function Wj(f,h,S){var I=S.length;if(f==null)return!I;for(f=cn(f);I--;){var B=S[I],q=h[B],Q=f[B];if(Q===r&&!(B in f)||!q(Q))return!1}return!0}o(Wj,"baseConformsTo");function Jj(f,h,S){if(typeof f!="function")throw new Do(i);return wx(function(){f.apply(r,S)},h)}o(Jj,"baseDelay");function gx(f,h,S,I){var B=-1,q=GA,Q=!0,te=f.length,ge=[],Be=h.length;if(!te)return ge;S&&(h=Fn(h,no(S))),I?(q=fO,Q=!1):h.length>=t&&(q=cx,Q=!1,h=new zd(h));e:for(;++B<te;){var Ve=f[B],Ke=S==null?Ve:S(Ve);if(Ve=I||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ut=Be;ut--;)if(h[ut]===Ke)continue e;ge.push(Ve)}else q(h,Ke,I)||ge.push(Ve)}return ge}o(gx,"baseDifference");var wp=C5(xc),Qj=C5(IO,!0);function bre(f,h){var S=!0;return wp(f,function(I,B,q){return S=!!h(I,B,q),S}),S}o(bre,"baseEvery");function fN(f,h,S){for(var I=-1,B=f.length;++I<B;){var q=f[I],Q=h(q);if(Q!=null&&(te===r?Q===Q&&!so(Q):S(Q,te)))var te=Q,ge=q}return ge}o(fN,"baseExtremum");function wre(f,h,S,I){var B=f.length;for(S=or(S),S<0&&(S=-S>B?0:B+S),I=I===r||I>B?B:or(I),I<0&&(I+=B),I=S>I?0:dU(I);S<I;)f[S++]=h;return f}o(wre,"baseFill");function Yj(f,h){var S=[];return wp(f,function(I,B,q){h(I,B,q)&&S.push(I)}),S}o(Yj,"baseFilter");function ds(f,h,S,I,B){var q=-1,Q=f.length;for(S||(S=lne),B||(B=[]);++q<Q;){var te=f[q];h>0&&S(te)?h>1?ds(te,h-1,S,I,B):yp(B,te):I||(B[B.length]=te)}return B}o(ds,"baseFlatten");var NO=E5(),Zj=E5(!0);function xc(f,h){return f&&NO(f,h,Ki)}o(xc,"baseForOwn");function IO(f,h){return f&&Zj(f,h,Ki)}o(IO,"baseForOwnRight");function pN(f,h){return vp(h,function(S){return Ul(f[S])})}o(pN,"baseFunctions");function $d(f,h){h=Ep(h,f);for(var S=0,I=h.length;f!=null&&S<I;)f=f[wc(h[S++])];return S&&S==I?f:r}o($d,"baseGet");function e5(f,h,S){var I=h(f);return rr(f)?I:yp(I,S(f))}o(e5,"baseGetAllKeys");function ua(f){return f==null?f===r?Ca:Ir:qd&&qd in cn(f)?ine(f):vne(f)}o(ua,"baseGetTag");function TO(f,h){return f>h}o(TO,"baseGt");function Cre(f,h){return f!=null&&Zr.call(f,h)}o(Cre,"baseHas");function Ere(f,h){return f!=null&&h in cn(f)}o(Ere,"baseHasIn");function Are(f,h,S){return f>=Us(h,S)&&f<Bi(h,S)}o(Are,"baseInRange");function RO(f,h,S){for(var I=S?fO:GA,B=f[0].length,q=f.length,Q=q,te=Te(q),ge=1/0,Be=[];Q--;){var Ve=f[Q];Q&&h&&(Ve=Fn(Ve,no(h))),ge=Us(Ve.length,ge),te[Q]=!S&&(h||B>=120&&Ve.length>=120)?new zd(Q&&Ve):r}Ve=f[0];var Ke=-1,ut=te[0];e:for(;++Ke<B&&Be.length<ge;){var Ct=Ve[Ke],kt=h?h(Ct):Ct;if(Ct=S||Ct!==0?Ct:0,!(ut?cx(ut,kt):I(Be,kt,S))){for(Q=q;--Q;){var fr=te[Q];if(!(fr?cx(fr,kt):I(f[Q],kt,S)))continue e}ut&&ut.push(kt),Be.push(Ct)}}return Be}o(RO,"baseIntersection");function Nre(f,h,S,I){return xc(f,function(B,q,Q){h(I,S(B),q,Q)}),I}o(Nre,"baseInverter");function vx(f,h,S){h=Ep(h,f),f=M5(f,h);var I=f==null?f:f[wc(Bo(h))];return I==null?r:ro(I,f,S)}o(vx,"baseInvoke");function t5(f){return si(f)&&ua(f)==Ze}o(t5,"baseIsArguments");function Ire(f){return si(f)&&ua(f)==lt}o(Ire,"baseIsArrayBuffer");function Tre(f){return si(f)&&ua(f)==O}o(Tre,"baseIsDate");function yx(f,h,S,I,B){return f===h?!0:f==null||h==null||!si(f)&&!si(h)?f!==f&&h!==h:Rre(f,h,S,I,yx,B)}o(yx,"baseIsEqual");function Rre(f,h,S,I,B,q){var Q=rr(f),te=rr(h),ge=Q?We:Ms(f),Be=te?We:Ms(h);ge=ge==Ze?Je:ge,Be=Be==Ze?Je:Be;var Ve=ge==Je,Ke=Be==Je,ut=ge==Be;if(ut&&Np(f)){if(!Np(h))return!1;Q=!0,Ve=!1}if(ut&&!Ve)return q||(q=new bu),Q||Kg(f)?B5(f,h,S,I,B,q):rne(f,h,ge,S,I,B,q);if(!(S&g)){var Ct=Ve&&Zr.call(f,"__wrapped__"),kt=Ke&&Zr.call(h,"__wrapped__");if(Ct||kt){var fr=Ct?f.value():f,Vt=kt?h.value():h;return q||(q=new bu),B(fr,Vt,S,I,q)}}return ut?(q||(q=new bu),nne(f,h,S,I,B,q)):!1}o(Rre,"baseIsEqualDeep");function Dre(f){return si(f)&&Ms(f)==Pe}o(Dre,"baseIsMap");function DO(f,h,S,I){var B=S.length,q=B,Q=!I;if(f==null)return!q;for(f=cn(f);B--;){var te=S[B];if(Q&&te[2]?te[1]!==f[te[0]]:!(te[0]in f))return!1}for(;++B<q;){te=S[B];var ge=te[0],Be=f[ge],Ve=te[1];if(Q&&te[2]){if(Be===r&&!(ge in f))return!1}else{var Ke=new bu;if(I)var ut=I(Be,Ve,ge,f,h,Ke);if(!(ut===r?yx(Ve,Be,g|y,I,Ke):ut))return!1}}return!0}o(DO,"baseIsMatch");function r5(f){if(!Wn(f)||pne(f))return!1;var h=Ul(f)?Dte:xee;return h.test(Xd(f))}o(r5,"baseIsNative");function _re(f){return si(f)&&ua(f)==nt}o(_re,"baseIsRegExp");function Ore(f){return si(f)&&Ms(f)==Bn}o(Ore,"baseIsSet");function Pre(f){return si(f)&&RN(f.length)&&!!In[ua(f)]}o(Pre,"baseIsTypedArray");function n5(f){return typeof f=="function"?f:f==null?Ia:typeof f=="object"?rr(f)?a5(f[0],f[1]):s5(f):AU(f)}o(n5,"baseIteratee");function _O(f){if(!bx(f))return Lte(f);var h=[];for(var S in cn(f))Zr.call(f,S)&&S!="constructor"&&h.push(S);return h}o(_O,"baseKeys");function Bre(f){if(!Wn(f))return gne(f);var h=bx(f),S=[];for(var I in f)I=="constructor"&&(h||!Zr.call(f,I))||S.push(I);return S}o(Bre,"baseKeysIn");function OO(f,h){return f<h}o(OO,"baseLt");function i5(f,h){var S=-1,I=Aa(f)?Te(f.length):[];return wp(f,function(B,q,Q){I[++S]=h(B,q,Q)}),I}o(i5,"baseMap");function s5(f){var h=GO(f);return h.length==1&&h[0][2]?j5(h[0][0],h[0][1]):function(S){return S===f||DO(S,f,h)}}o(s5,"baseMatches");function a5(f,h){return WO(f)&&V5(h)?j5(wc(f),h):function(S){var I=sP(S,f);return I===r&&I===h?aP(S,f):yx(h,I,g|y)}}o(a5,"baseMatchesProperty");function hN(f,h,S,I,B){f!==h&&NO(h,function(q,Q){if(B||(B=new bu),Wn(q))Fre(f,h,Q,S,hN,I,B);else{var te=I?I(QO(f,Q),q,Q+"",f,h,B):r;te===r&&(te=q),EO(f,Q,te)}},Na)}o(hN,"baseMerge");function Fre(f,h,S,I,B,q,Q){var te=QO(f,S),ge=QO(h,S),Be=Q.get(ge);if(Be){EO(f,S,Be);return}var Ve=q?q(te,ge,S+"",f,h,Q):r,Ke=Ve===r;if(Ke){var ut=rr(ge),Ct=!ut&&Np(ge),kt=!ut&&!Ct&&Kg(ge);Ve=ge,ut||Ct||kt?rr(te)?Ve=te:mi(te)?Ve=Ea(te):Ct?(Ke=!1,Ve=y5(ge,!0)):kt?(Ke=!1,Ve=S5(ge,!0)):Ve=[]:Cx(ge)||Wd(ge)?(Ve=te,Wd(te)?Ve=mU(te):(!Wn(te)||Ul(te))&&(Ve=k5(ge))):Ke=!1}Ke&&(Q.set(ge,Ve),B(Ve,ge,I,q,Q),Q.delete(ge)),EO(f,S,Ve)}o(Fre,"baseMergeDeep");function o5(f,h){var S=f.length;if(S)return h+=h<0?S:0,jl(h,S)?f[h]:r}o(o5,"baseNth");function u5(f,h,S){h.length?h=Fn(h,function(q){return rr(q)?function(Q){return $d(Q,q.length===1?q[0]:q)}:q}):h=[Ia];var I=-1;h=Fn(h,no(Pt()));var B=i5(f,function(q,Q,te){var ge=Fn(h,function(Be){return Be(q)});return{criteria:ge,index:++I,value:q}});return ute(B,function(q,Q){return Xre(q,Q,S)})}o(u5,"baseOrderBy");function Lre(f,h){return c5(f,h,function(S,I){return aP(f,I)})}o(Lre,"basePick");function c5(f,h,S){for(var I=-1,B=h.length,q={};++I<B;){var Q=h[I],te=$d(f,Q);S(te,Q)&&Sx(q,Ep(Q,f),te)}return q}o(c5,"basePickBy");function kre(f){return function(h){return $d(h,f)}}o(kre,"basePropertyDeep");function PO(f,h,S,I){var B=I?ote:Fg,q=-1,Q=h.length,te=f;for(f===h&&(h=Ea(h)),S&&(te=Fn(f,no(S)));++q<Q;)for(var ge=0,Be=h[q],Ve=S?S(Be):Be;(ge=B(te,Ve,ge,I))>-1;)te!==f&&nN.call(te,ge,1),nN.call(f,ge,1);return f}o(PO,"basePullAll");function l5(f,h){for(var S=f?h.length:0,I=S-1;S--;){var B=h[S];if(S==I||B!==q){var q=B;jl(B)?nN.call(f,B,1):kO(f,B)}}return f}o(l5,"basePullAt");function BO(f,h){return f+aN(zj()*(h-f+1))}o(BO,"baseRandom");function Vre(f,h,S,I){for(var B=-1,q=Bi(sN((h-f)/(S||1)),0),Q=Te(q);q--;)Q[I?q:++B]=f,f+=S;return Q}o(Vre,"baseRange");function FO(f,h){var S="";if(!f||h<1||h>ee)return S;do h%2&&(S+=f),h=aN(h/2),h&&(f+=f);while(h);return S}o(FO,"baseRepeat");function mr(f,h){return YO(U5(f,h,Ia),f+"")}o(mr,"baseRest");function jre(f){return Gj($g(f))}o(jre,"baseSample");function Ure(f,h){var S=$g(f);return CN(S,Kd(h,0,S.length))}o(Ure,"baseSampleSize");function Sx(f,h,S,I){if(!Wn(f))return f;h=Ep(h,f);for(var B=-1,q=h.length,Q=q-1,te=f;te!=null&&++B<q;){var ge=wc(h[B]),Be=S;if(ge==="__proto__"||ge==="constructor"||ge==="prototype")return f;if(B!=Q){var Ve=te[ge];Be=I?I(Ve,ge,te):r,Be===r&&(Be=Wn(Ve)?Ve:jl(h[B+1])?[]:{})}mx(te,ge,Be),te=te[ge]}return f}o(Sx,"baseSet");var f5=oN?function(f,h){return oN.set(f,h),f}:Ia,Mre=iN?function(f,h){return iN(f,"toString",{configurable:!0,enumerable:!1,value:uP(h),writable:!0})}:Ia;function qre(f){return CN($g(f))}o(qre,"baseShuffle");function Po(f,h,S){var I=-1,B=f.length;h<0&&(h=-h>B?0:B+h),S=S>B?B:S,S<0&&(S+=B),B=h>S?0:S-h>>>0,h>>>=0;for(var q=Te(B);++I<B;)q[I]=f[I+h];return q}o(Po,"baseSlice");function Hre(f,h){var S;return wp(f,function(I,B,q){return S=h(I,B,q),!S}),!!S}o(Hre,"baseSome");function dN(f,h,S){var I=0,B=f==null?I:f.length;if(typeof h=="number"&&h===h&&B<=ie){for(;I<B;){var q=I+B>>>1,Q=f[q];Q!==null&&!so(Q)&&(S?Q<=h:Q<h)?I=q+1:B=q}return B}return LO(f,h,Ia,S)}o(dN,"baseSortedIndex");function LO(f,h,S,I){var B=0,q=f==null?0:f.length;if(q===0)return 0;h=S(h);for(var Q=h!==h,te=h===null,ge=so(h),Be=h===r;B<q;){var Ve=aN((B+q)/2),Ke=S(f[Ve]),ut=Ke!==r,Ct=Ke===null,kt=Ke===Ke,fr=so(Ke);if(Q)var Vt=I||kt;else Be?Vt=kt&&(I||ut):te?Vt=kt&&ut&&(I||!Ct):ge?Vt=kt&&ut&&!Ct&&(I||!fr):Ct||fr?Vt=!1:Vt=I?Ke<=h:Ke<h;Vt?B=Ve+1:q=Ve}return Us(q,xe)}o(LO,"baseSortedIndexBy");function p5(f,h){for(var S=-1,I=f.length,B=0,q=[];++S<I;){var Q=f[S],te=h?h(Q):Q;if(!S||!wu(te,ge)){var ge=te;q[B++]=Q===0?0:Q}}return q}o(p5,"baseSortedUniq");function h5(f){return typeof f=="number"?f:so(f)?Ce:+f}o(h5,"baseToNumber");function io(f){if(typeof f=="string")return f;if(rr(f))return Fn(f,io)+"";if(so(f))return Kj?Kj.call(f):"";var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(io,"baseToString");function Cp(f,h,S){var I=-1,B=GA,q=f.length,Q=!0,te=[],ge=te;if(S)Q=!1,B=fO;else if(q>=t){var Be=h?null:ene(f);if(Be)return WA(Be);Q=!1,B=cx,ge=new zd}else ge=h?[]:te;e:for(;++I<q;){var Ve=f[I],Ke=h?h(Ve):Ve;if(Ve=S||Ve!==0?Ve:0,Q&&Ke===Ke){for(var ut=ge.length;ut--;)if(ge[ut]===Ke)continue e;h&&ge.push(Ke),te.push(Ve)}else B(ge,Ke,S)||(ge!==te&&ge.push(Ke),te.push(Ve))}return te}o(Cp,"baseUniq");function kO(f,h){return h=Ep(h,f),f=M5(f,h),f==null||delete f[wc(Bo(h))]}o(kO,"baseUnset");function d5(f,h,S,I){return Sx(f,h,S($d(f,h)),I)}o(d5,"baseUpdate");function mN(f,h,S,I){for(var B=f.length,q=I?B:-1;(I?q--:++q<B)&&h(f[q],q,f););return S?Po(f,I?0:q,I?q+1:B):Po(f,I?q+1:0,I?B:q)}o(mN,"baseWhile");function m5(f,h){var S=f;return S instanceof Er&&(S=S.value()),pO(h,function(I,B){return B.func.apply(B.thisArg,yp([I],B.args))},S)}o(m5,"baseWrapperValue");function VO(f,h,S){var I=f.length;if(I<2)return I?Cp(f[0]):[];for(var B=-1,q=Te(I);++B<I;)for(var Q=f[B],te=-1;++te<I;)te!=B&&(q[B]=gx(q[B]||Q,f[te],h,S));return Cp(ds(q,1),h,S)}o(VO,"baseXor");function g5(f,h,S){for(var I=-1,B=f.length,q=h.length,Q={};++I<B;){var te=I<q?h[I]:r;S(Q,f[I],te)}return Q}o(g5,"baseZipObject");function jO(f){return mi(f)?f:[]}o(jO,"castArrayLikeObject");function UO(f){return typeof f=="function"?f:Ia}o(UO,"castFunction");function Ep(f,h){return rr(f)?f:WO(f,h)?[f]:K5(Xr(f))}o(Ep,"castPath");var zre=mr;function Ap(f,h,S){var I=f.length;return S=S===r?I:S,!h&&S>=I?f:Po(f,h,S)}o(Ap,"castSlice");var v5=_te||function(f){return zi.clearTimeout(f)};function y5(f,h){if(h)return f.slice();var S=f.length,I=jj?jj(S):new f.constructor(S);return f.copy(I),I}o(y5,"cloneBuffer");function MO(f){var h=new f.constructor(f.byteLength);return new tN(h).set(new tN(f)),h}o(MO,"cloneArrayBuffer");function Kre(f,h){var S=h?MO(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.byteLength)}o(Kre,"cloneDataView");function $re(f){var h=new f.constructor(f.source,Su.exec(f));return h.lastIndex=f.lastIndex,h}o($re,"cloneRegExp");function Gre(f){return dx?cn(dx.call(f)):{}}o(Gre,"cloneSymbol");function S5(f,h){var S=h?MO(f.buffer):f.buffer;return new f.constructor(S,f.byteOffset,f.length)}o(S5,"cloneTypedArray");function x5(f,h){if(f!==h){var S=f!==r,I=f===null,B=f===f,q=so(f),Q=h!==r,te=h===null,ge=h===h,Be=so(h);if(!te&&!Be&&!q&&f>h||q&&Q&&ge&&!te&&!Be||I&&Q&&ge||!S&&ge||!B)return 1;if(!I&&!q&&!Be&&f<h||Be&&S&&B&&!I&&!q||te&&S&&B||!Q&&B||!ge)return-1}return 0}o(x5,"compareAscending");function Xre(f,h,S){for(var I=-1,B=f.criteria,q=h.criteria,Q=B.length,te=S.length;++I<Q;){var ge=x5(B[I],q[I]);if(ge){if(I>=te)return ge;var Be=S[I];return ge*(Be=="desc"?-1:1)}}return f.index-h.index}o(Xre,"compareMultiple");function b5(f,h,S,I){for(var B=-1,q=f.length,Q=S.length,te=-1,ge=h.length,Be=Bi(q-Q,0),Ve=Te(ge+Be),Ke=!I;++te<ge;)Ve[te]=h[te];for(;++B<Q;)(Ke||B<q)&&(Ve[S[B]]=f[B]);for(;Be--;)Ve[te++]=f[B++];return Ve}o(b5,"composeArgs");function w5(f,h,S,I){for(var B=-1,q=f.length,Q=-1,te=S.length,ge=-1,Be=h.length,Ve=Bi(q-te,0),Ke=Te(Ve+Be),ut=!I;++B<Ve;)Ke[B]=f[B];for(var Ct=B;++ge<Be;)Ke[Ct+ge]=h[ge];for(;++Q<te;)(ut||B<q)&&(Ke[Ct+S[Q]]=f[B++]);return Ke}o(w5,"composeArgsRight");function Ea(f,h){var S=-1,I=f.length;for(h||(h=Te(I));++S<I;)h[S]=f[S];return h}o(Ea,"copyArray");function bc(f,h,S,I){var B=!S;S||(S={});for(var q=-1,Q=h.length;++q<Q;){var te=h[q],ge=I?I(S[te],f[te],te,S,f):r;ge===r&&(ge=f[te]),B?Ll(S,te,ge):mx(S,te,ge)}return S}o(bc,"copyObject");function Wre(f,h){return bc(f,XO(f),h)}o(Wre,"copySymbols");function Jre(f,h){return bc(f,F5(f),h)}o(Jre,"copySymbolsIn");function gN(f,h){return function(S,I){var B=rr(S)?tte:yre,q=h?h():{};return B(S,f,Pt(I,2),q)}}o(gN,"createAggregator");function qg(f){return mr(function(h,S){var I=-1,B=S.length,q=B>1?S[B-1]:r,Q=B>2?S[2]:r;for(q=f.length>3&&typeof q=="function"?(B--,q):r,Q&&ca(S[0],S[1],Q)&&(q=B<3?r:q,B=1),h=cn(h);++I<B;){var te=S[I];te&&f(h,te,I,q)}return h})}o(qg,"createAssigner");function C5(f,h){return function(S,I){if(S==null)return S;if(!Aa(S))return f(S,I);for(var B=S.length,q=h?B:-1,Q=cn(S);(h?q--:++q<B)&&I(Q[q],q,Q)!==!1;);return S}}o(C5,"createBaseEach");function E5(f){return function(h,S,I){for(var B=-1,q=cn(h),Q=I(h),te=Q.length;te--;){var ge=Q[f?te:++B];if(S(q[ge],ge,q)===!1)break}return h}}o(E5,"createBaseFor");function Qre(f,h,S){var I=h&v,B=xx(f);function q(){var Q=this&&this!==zi&&this instanceof q?B:f;return Q.apply(I?S:this,arguments)}return o(q,"wrapper"),q}o(Qre,"createBind");function A5(f){return function(h){h=Xr(h);var S=Lg(h)?xu(h):r,I=S?S[0]:h.charAt(0),B=S?Ap(S,1).join(""):h.slice(1);return I[f]()+B}}o(A5,"createCaseFirst");function Hg(f){return function(h){return pO(CU(wU(h).replace(Mee,"")),f,"")}}o(Hg,"createCompounder");function xx(f){return function(){var h=arguments;switch(h.length){case 0:return new f;case 1:return new f(h[0]);case 2:return new f(h[0],h[1]);case 3:return new f(h[0],h[1],h[2]);case 4:return new f(h[0],h[1],h[2],h[3]);case 5:return new f(h[0],h[1],h[2],h[3],h[4]);case 6:return new f(h[0],h[1],h[2],h[3],h[4],h[5]);case 7:return new f(h[0],h[1],h[2],h[3],h[4],h[5],h[6])}var S=Mg(f.prototype),I=f.apply(S,h);return Wn(I)?I:S}}o(xx,"createCtor");function Yre(f,h,S){var I=xx(f);function B(){for(var q=arguments.length,Q=Te(q),te=q,ge=zg(B);te--;)Q[te]=arguments[te];var Be=q<3&&Q[0]!==ge&&Q[q-1]!==ge?[]:Sp(Q,ge);if(q-=Be.length,q<S)return D5(f,h,vN,B.placeholder,r,Q,Be,r,r,S-q);var Ve=this&&this!==zi&&this instanceof B?I:f;return ro(Ve,this,Q)}return o(B,"wrapper"),B}o(Yre,"createCurry");function N5(f){return function(h,S,I){var B=cn(h);if(!Aa(h)){var q=Pt(S,3);h=Ki(h),S=o(function(te){return q(B[te],te,B)},"predicate")}var Q=f(h,S,I);return Q>-1?B[q?h[Q]:Q]:r}}o(N5,"createFind");function I5(f){return Vl(function(h){var S=h.length,I=S,B=_o.prototype.thru;for(f&&h.reverse();I--;){var q=h[I];if(typeof q!="function")throw new Do(i);if(B&&!Q&&bN(q)=="wrapper")var Q=new _o([],!0)}for(I=Q?I:S;++I<S;){q=h[I];var te=bN(q),ge=te=="wrapper"?$O(q):r;ge&&JO(ge[0])&&ge[1]==(A|E|w|R)&&!ge[4].length&&ge[9]==1?Q=Q[bN(ge[0])].apply(Q,ge[3]):Q=q.length==1&&JO(q)?Q[te]():Q.thru(q)}return function(){var Be=arguments,Ve=Be[0];if(Q&&Be.length==1&&rr(Ve))return Q.plant(Ve).value();for(var Ke=0,ut=S?h[Ke].apply(this,Be):Ve;++Ke<S;)ut=h[Ke].call(this,ut);return ut}})}o(I5,"createFlow");function vN(f,h,S,I,B,q,Q,te,ge,Be){var Ve=h&A,Ke=h&v,ut=h&b,Ct=h&(E|N),kt=h&M,fr=ut?r:xx(f);function Vt(){for(var yr=arguments.length,Rr=Te(yr),ao=yr;ao--;)Rr[ao]=arguments[ao];if(Ct)var la=zg(Vt),oo=lte(Rr,la);if(I&&(Rr=b5(Rr,I,B,Ct)),q&&(Rr=w5(Rr,q,Q,Ct)),yr-=oo,Ct&&yr<Be){var gi=Sp(Rr,la);return D5(f,h,vN,Vt.placeholder,S,Rr,gi,te,ge,Be-yr)}var Cu=Ke?S:this,ql=ut?Cu[f]:f;return yr=Rr.length,te?Rr=yne(Rr,te):kt&&yr>1&&Rr.reverse(),Ve&&ge<yr&&(Rr.length=ge),this&&this!==zi&&this instanceof Vt&&(ql=fr||xx(ql)),ql.apply(Cu,Rr)}return o(Vt,"wrapper"),Vt}o(vN,"createHybrid");function T5(f,h){return function(S,I){return Nre(S,f,h(I),{})}}o(T5,"createInverter");function yN(f,h){return function(S,I){var B;if(S===r&&I===r)return h;if(S!==r&&(B=S),I!==r){if(B===r)return I;typeof S=="string"||typeof I=="string"?(S=io(S),I=io(I)):(S=h5(S),I=h5(I)),B=f(S,I)}return B}}o(yN,"createMathOperation");function qO(f){return Vl(function(h){return h=Fn(h,no(Pt())),mr(function(S){var I=this;return f(h,function(B){return ro(B,I,S)})})})}o(qO,"createOver");function SN(f,h){h=h===r?" ":io(h);var S=h.length;if(S<2)return S?FO(h,f):h;var I=FO(h,sN(f/kg(h)));return Lg(h)?Ap(xu(I),0,f).join(""):I.slice(0,f)}o(SN,"createPadding");function Zre(f,h,S,I){var B=h&v,q=xx(f);function Q(){for(var te=-1,ge=arguments.length,Be=-1,Ve=I.length,Ke=Te(Ve+ge),ut=this&&this!==zi&&this instanceof Q?q:f;++Be<Ve;)Ke[Be]=I[Be];for(;ge--;)Ke[Be++]=arguments[++te];return ro(ut,B?S:this,Ke)}return o(Q,"wrapper"),Q}o(Zre,"createPartial");function R5(f){return function(h,S,I){return I&&typeof I!="number"&&ca(h,S,I)&&(S=I=r),h=Ml(h),S===r?(S=h,h=0):S=Ml(S),I=I===r?h<S?1:-1:Ml(I),Vre(h,S,I,f)}}o(R5,"createRange");function xN(f){return function(h,S){return typeof h=="string"&&typeof S=="string"||(h=Fo(h),S=Fo(S)),f(h,S)}}o(xN,"createRelationalOperation");function D5(f,h,S,I,B,q,Q,te,ge,Be){var Ve=h&E,Ke=Ve?Q:r,ut=Ve?r:Q,Ct=Ve?q:r,kt=Ve?r:q;h|=Ve?w:C,h&=~(Ve?C:w),h&x||(h&=~(v|b));var fr=[f,h,B,Ct,Ke,kt,ut,te,ge,Be],Vt=S.apply(r,fr);return JO(f)&&q5(Vt,fr),Vt.placeholder=I,H5(Vt,f,h)}o(D5,"createRecurry");function HO(f){var h=Pi[f];return function(S,I){if(S=Fo(S),I=I==null?0:Us(or(I),292),I&&Hj(S)){var B=(Xr(S)+"e").split("e"),q=h(B[0]+"e"+(+B[1]+I));return B=(Xr(q)+"e").split("e"),+(B[0]+"e"+(+B[1]-I))}return h(S)}}o(HO,"createRound");var ene=jg&&1/WA(new jg([,-0]))[1]==ce?function(f){return new jg(f)}:fP;function _5(f){return function(h){var S=Ms(h);return S==Pe?SO(h):S==Bn?vte(h):cte(h,f(h))}}o(_5,"createToPairs");function kl(f,h,S,I,B,q,Q,te){var ge=h&b;if(!ge&&typeof f!="function")throw new Do(i);var Be=I?I.length:0;if(Be||(h&=~(w|C),I=B=r),Q=Q===r?Q:Bi(or(Q),0),te=te===r?te:or(te),Be-=B?B.length:0,h&C){var Ve=I,Ke=B;I=B=r}var ut=ge?r:$O(f),Ct=[f,h,S,I,B,Ve,Ke,q,Q,te];if(ut&&mne(Ct,ut),f=Ct[0],h=Ct[1],S=Ct[2],I=Ct[3],B=Ct[4],te=Ct[9]=Ct[9]===r?ge?0:f.length:Bi(Ct[9]-Be,0),!te&&h&(E|N)&&(h&=~(E|N)),!h||h==v)var kt=Qre(f,h,S);else h==E||h==N?kt=Yre(f,h,te):(h==w||h==(v|w))&&!B.length?kt=Zre(f,h,S,I):kt=vN.apply(r,Ct);var fr=ut?f5:q5;return H5(fr(kt,Ct),f,h)}o(kl,"createWrap");function O5(f,h,S,I){return f===r||wu(f,Vg[S])&&!Zr.call(I,S)?h:f}o(O5,"customDefaultsAssignIn");function P5(f,h,S,I,B,q){return Wn(f)&&Wn(h)&&(q.set(h,f),hN(f,h,r,P5,q),q.delete(h)),f}o(P5,"customDefaultsMerge");function tne(f){return Cx(f)?r:f}o(tne,"customOmitClone");function B5(f,h,S,I,B,q){var Q=S&g,te=f.length,ge=h.length;if(te!=ge&&!(Q&&ge>te))return!1;var Be=q.get(f),Ve=q.get(h);if(Be&&Ve)return Be==h&&Ve==f;var Ke=-1,ut=!0,Ct=S&y?new zd:r;for(q.set(f,h),q.set(h,f);++Ke<te;){var kt=f[Ke],fr=h[Ke];if(I)var Vt=Q?I(fr,kt,Ke,h,f,q):I(kt,fr,Ke,f,h,q);if(Vt!==r){if(Vt)continue;ut=!1;break}if(Ct){if(!hO(h,function(yr,Rr){if(!cx(Ct,Rr)&&(kt===yr||B(kt,yr,S,I,q)))return Ct.push(Rr)})){ut=!1;break}}else if(!(kt===fr||B(kt,fr,S,I,q))){ut=!1;break}}return q.delete(f),q.delete(h),ut}o(B5,"equalArrays");function rne(f,h,S,I,B,q,Q){switch(S){case ps:if(f.byteLength!=h.byteLength||f.byteOffset!=h.byteOffset)return!1;f=f.buffer,h=h.buffer;case lt:return!(f.byteLength!=h.byteLength||!q(new tN(f),new tN(h)));case F:case O:case bt:return wu(+f,+h);case J:return f.name==h.name&&f.message==h.message;case nt:case Ei:return f==h+"";case Pe:var te=SO;case Bn:var ge=I&g;if(te||(te=WA),f.size!=h.size&&!ge)return!1;var Be=Q.get(f);if(Be)return Be==h;I|=y,Q.set(f,h);var Ve=B5(te(f),te(h),I,B,q,Q);return Q.delete(f),Ve;case Vs:if(dx)return dx.call(f)==dx.call(h)}return!1}o(rne,"equalByTag");function nne(f,h,S,I,B,q){var Q=S&g,te=zO(f),ge=te.length,Be=zO(h),Ve=Be.length;if(ge!=Ve&&!Q)return!1;for(var Ke=ge;Ke--;){var ut=te[Ke];if(!(Q?ut in h:Zr.call(h,ut)))return!1}var Ct=q.get(f),kt=q.get(h);if(Ct&&kt)return Ct==h&&kt==f;var fr=!0;q.set(f,h),q.set(h,f);for(var Vt=Q;++Ke<ge;){ut=te[Ke];var yr=f[ut],Rr=h[ut];if(I)var ao=Q?I(Rr,yr,ut,h,f,q):I(yr,Rr,ut,f,h,q);if(!(ao===r?yr===Rr||B(yr,Rr,S,I,q):ao)){fr=!1;break}Vt||(Vt=ut=="constructor")}if(fr&&!Vt){var la=f.constructor,oo=h.constructor;la!=oo&&"constructor"in f&&"constructor"in h&&!(typeof la=="function"&&la instanceof la&&typeof oo=="function"&&oo instanceof oo)&&(fr=!1)}return q.delete(f),q.delete(h),fr}o(nne,"equalObjects");function Vl(f){return YO(U5(f,r,W5),f+"")}o(Vl,"flatRest");function zO(f){return e5(f,Ki,XO)}o(zO,"getAllKeys");function KO(f){return e5(f,Na,F5)}o(KO,"getAllKeysIn");var $O=oN?function(f){return oN.get(f)}:fP;function bN(f){for(var h=f.name+"",S=Ug[h],I=Zr.call(Ug,h)?S.length:0;I--;){var B=S[I],q=B.func;if(q==null||q==f)return B.name}return h}o(bN,"getFuncName");function zg(f){var h=Zr.call(U,"placeholder")?U:f;return h.placeholder}o(zg,"getHolder");function Pt(){var f=U.iteratee||cP;return f=f===cP?n5:f,arguments.length?f(arguments[0],arguments[1]):f}o(Pt,"getIteratee");function wN(f,h){var S=f.__data__;return fne(h)?S[typeof h=="string"?"string":"hash"]:S.map}o(wN,"getMapData");function GO(f){for(var h=Ki(f),S=h.length;S--;){var I=h[S],B=f[I];h[S]=[I,B,V5(B)]}return h}o(GO,"getMatchData");function Gd(f,h){var S=dte(f,h);return r5(S)?S:r}o(Gd,"getNative");function ine(f){var h=Zr.call(f,qd),S=f[qd];try{f[qd]=r;var I=!0}catch{}var B=ZA.call(f);return I&&(h?f[qd]=S:delete f[qd]),B}o(ine,"getRawTag");var XO=bO?function(f){return f==null?[]:(f=cn(f),vp(bO(f),function(h){return Mj.call(f,h)}))}:pP,F5=bO?function(f){for(var h=[];f;)yp(h,XO(f)),f=rN(f);return h}:pP,Ms=ua;(wO&&Ms(new wO(new ArrayBuffer(1)))!=ps||fx&&Ms(new fx)!=Pe||CO&&Ms(CO.resolve())!=Tr||jg&&Ms(new jg)!=Bn||px&&Ms(new px)!=aa)&&(Ms=o(function(f){var h=ua(f),S=h==Je?f.constructor:r,I=S?Xd(S):"";if(I)switch(I){case Ute:return ps;case Mte:return Pe;case qte:return Tr;case Hte:return Bn;case zte:return aa}return h},"getTag"));function sne(f,h,S){for(var I=-1,B=S.length;++I<B;){var q=S[I],Q=q.size;switch(q.type){case"drop":f+=Q;break;case"dropRight":h-=Q;break;case"take":h=Us(h,f+Q);break;case"takeRight":f=Bi(f,h-Q);break}}return{start:f,end:h}}o(sne,"getView");function ane(f){var h=f.match(eO);return h?h[1].split(tO):[]}o(ane,"getWrapDetails");function L5(f,h,S){h=Ep(h,f);for(var I=-1,B=h.length,q=!1;++I<B;){var Q=wc(h[I]);if(!(q=f!=null&&S(f,Q)))break;f=f[Q]}return q||++I!=B?q:(B=f==null?0:f.length,!!B&&RN(B)&&jl(Q,B)&&(rr(f)||Wd(f)))}o(L5,"hasPath");function one(f){var h=f.length,S=new f.constructor(h);return h&&typeof f[0]=="string"&&Zr.call(f,"index")&&(S.index=f.index,S.input=f.input),S}o(one,"initCloneArray");function k5(f){return typeof f.constructor=="function"&&!bx(f)?Mg(rN(f)):{}}o(k5,"initCloneObject");function une(f,h,S){var I=f.constructor;switch(h){case lt:return MO(f);case F:case O:return new I(+f);case ps:return Kre(f,S);case oa:case vc:case yc:case Jt:case Og:case Pg:case Ud:case ox:case to:return S5(f,S);case Pe:return new I;case bt:case Ei:return new I(f);case nt:return $re(f);case Bn:return new I;case Vs:return Gre(f)}}o(une,"initCloneByTag");function cne(f,h){var S=h.length;if(!S)return f;var I=S-1;return h[I]=(S>1?"& ":"")+h[I],h=h.join(S>2?", ":" "),f.replace(Z_,`{
27
27
  /* [wrapped with `+h+`] */
28
- `)}o(cne,"insertWrapDetails");function lne(f){return rr(f)||Wd(f)||!!(qj&&f&&f[qj])}o(lne,"isFlattenable");function jl(f,h){var S=typeof f;return h=h??ee,!!h&&(S=="number"||S!="symbol"&&wee.test(f))&&f>-1&&f%1==0&&f<h}o(jl,"isIndex");function ca(f,h,S){if(!Wn(S))return!1;var I=typeof h;return(I=="number"?Aa(S)&&jl(h,S.length):I=="string"&&h in S)?wu(S[h],f):!1}o(ca,"isIterateeCall");function WO(f,h){if(rr(f))return!1;var S=typeof f;return S=="number"||S=="symbol"||S=="boolean"||f==null||so(f)?!0:hs.test(f)||!Xt.test(f)||h!=null&&f in cn(h)}o(WO,"isKey");function fne(f){var h=typeof f;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null}o(fne,"isKeyable");function JO(f){var h=bN(f),S=U[h];if(typeof S!="function"||!(h in Er.prototype))return!1;if(f===S)return!0;var I=$O(S);return!!I&&f===I[0]}o(JO,"isLaziable");function pne(f){return!!Vj&&Vj in f}o(pne,"isMasked");var hne=QA?Ul:hP;function bx(f){var h=f&&f.constructor,S=typeof h=="function"&&h.prototype||Vg;return f===S}o(bx,"isPrototype");function V5(f){return f===f&&!Wn(f)}o(V5,"isStrictComparable");function j5(f,h){return function(S){return S==null?!1:S[f]===h&&(h!==r||f in cn(S))}}o(j5,"matchesStrictComparable");function dne(f){var h=IN(f,function(I){return S.size===u&&S.clear(),I}),S=h.cache;return h}o(dne,"memoizeCapped");function mne(f,h){var S=f[1],I=h[1],B=S|I,q=B<(v|b|A),Q=I==A&&S==E||I==A&&S==R&&f[7].length<=h[8]||I==(A|R)&&h[7].length<=h[8]&&S==E;if(!(q||Q))return f;I&v&&(f[2]=h[2],B|=S&v?0:x);var te=h[3];if(te){var ge=f[3];f[3]=ge?b5(ge,te,h[4]):te,f[4]=ge?Sp(f[3],c):h[4]}return te=h[5],te&&(ge=f[5],f[5]=ge?w5(ge,te,h[6]):te,f[6]=ge?Sp(f[5],c):h[6]),te=h[7],te&&(f[7]=te),I&A&&(f[8]=f[8]==null?h[8]:Us(f[8],h[8])),f[9]==null&&(f[9]=h[9]),f[0]=h[0],f[1]=B,f}o(mne,"mergeData");function gne(f){var h=[];if(f!=null)for(var S in cn(f))h.push(S);return h}o(gne,"nativeKeysIn");function vne(f){return ZA.call(f)}o(vne,"objectToString");function U5(f,h,S){return h=Bi(h===r?f.length-1:h,0),function(){for(var I=arguments,B=-1,q=Bi(I.length-h,0),Q=Te(q);++B<q;)Q[B]=I[h+B];B=-1;for(var te=Te(h+1);++B<h;)te[B]=I[B];return te[h]=S(Q),ro(f,this,te)}}o(U5,"overRest");function M5(f,h){return h.length<2?f:$d(f,Po(h,0,-1))}o(M5,"parent");function yne(f,h){for(var S=f.length,I=Us(h.length,S),B=Ea(f);I--;){var q=h[I];f[I]=jl(q,S)?B[q]:r}return f}o(yne,"reorder");function QO(f,h){if(!(h==="constructor"&&typeof f[h]=="function")&&h!="__proto__")return f[h]}o(QO,"safeGet");var q5=z5(f5),wx=Pte||function(f,h){return zi.setTimeout(f,h)},YO=z5(Mre);function H5(f,h,S){var I=h+"";return YO(f,cne(I,Sne(ane(I),S)))}o(H5,"setWrapToString");function z5(f){var h=0,S=0;return function(){var I=kte(),B=K-(I-S);if(S=I,B>0){if(++h>=z)return arguments[0]}else h=0;return f.apply(r,arguments)}}o(z5,"shortOut");function CN(f,h){var S=-1,I=f.length,B=I-1;for(h=h===r?I:h;++S<h;){var q=BO(S,B),Q=f[q];f[q]=f[S],f[S]=Q}return f.length=h,f}o(CN,"shuffleSelf");var K5=dne(function(f){var h=[];return f.charCodeAt(0)===46&&h.push(""),f.replace(Io,function(S,I,B,q){h.push(B?q.replace(Cr,"$1"):I||S)}),h});function wc(f){if(typeof f=="string"||so(f))return f;var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(wc,"toKey");function Xd(f){if(f!=null){try{return YA.call(f)}catch{}try{return f+""}catch{}}return""}o(Xd,"toSource");function Sne(f,h){return Ro(De,function(S){var I="_."+S[0];h&S[1]&&!GA(f,I)&&f.push(I)}),f.sort()}o(Sne,"updateWrapDetails");function $5(f){if(f instanceof Er)return f.clone();var h=new _o(f.__wrapped__,f.__chain__);return h.__actions__=Ea(f.__actions__),h.__index__=f.__index__,h.__values__=f.__values__,h}o($5,"wrapperClone");function xne(f,h,S){(S?ca(f,h,S):h===r)?h=1:h=Bi(or(h),0);var I=f==null?0:f.length;if(!I||h<1)return[];for(var B=0,q=0,Q=Te(sN(I/h));B<I;)Q[q++]=Po(f,B,B+=h);return Q}o(xne,"chunk");function bne(f){for(var h=-1,S=f==null?0:f.length,I=0,B=[];++h<S;){var q=f[h];q&&(B[I++]=q)}return B}o(bne,"compact");function wne(){var f=arguments.length;if(!f)return[];for(var h=Te(f-1),S=arguments[0],I=f;I--;)h[I-1]=arguments[I];return yp(rr(S)?Ea(S):[S],ds(h,1))}o(wne,"concat");var Cne=mr(function(f,h){return mi(f)?gx(f,ds(h,1,mi,!0)):[]}),Ene=mr(function(f,h){var S=Bo(h);return mi(S)&&(S=r),mi(f)?gx(f,ds(h,1,mi,!0),Pt(S,2)):[]}),Ane=mr(function(f,h){var S=Bo(h);return mi(S)&&(S=r),mi(f)?gx(f,ds(h,1,mi,!0),r,S):[]});function Nne(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),Po(f,h<0?0:h,I)):[]}o(Nne,"drop");function Ine(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),h=I-h,Po(f,0,h<0?0:h)):[]}o(Ine,"dropRight");function Tne(f,h){return f&&f.length?mN(f,Pt(h,3),!0,!0):[]}o(Tne,"dropRightWhile");function Rne(f,h){return f&&f.length?mN(f,Pt(h,3),!0):[]}o(Rne,"dropWhile");function Dne(f,h,S,I){var B=f==null?0:f.length;return B?(S&&typeof S!="number"&&ca(f,h,S)&&(S=0,I=B),wre(f,h,S,I)):[]}o(Dne,"fill");function G5(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=S==null?0:or(S);return B<0&&(B=Bi(I+B,0)),XA(f,Pt(h,3),B)}o(G5,"findIndex");function X5(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=I-1;return S!==r&&(B=or(S),B=S<0?Bi(I+B,0):Us(B,I-1)),XA(f,Pt(h,3),B,!0)}o(X5,"findLastIndex");function W5(f){var h=f==null?0:f.length;return h?ds(f,1):[]}o(W5,"flatten");function _ne(f){var h=f==null?0:f.length;return h?ds(f,ce):[]}o(_ne,"flattenDeep");function One(f,h){var S=f==null?0:f.length;return S?(h=h===r?1:or(h),ds(f,h)):[]}o(One,"flattenDepth");function Pne(f){for(var h=-1,S=f==null?0:f.length,I={};++h<S;){var B=f[h];I[B[0]]=B[1]}return I}o(Pne,"fromPairs");function J5(f){return f&&f.length?f[0]:r}o(J5,"head");function Bne(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=S==null?0:or(S);return B<0&&(B=Bi(I+B,0)),Fg(f,h,B)}o(Bne,"indexOf");function Fne(f){var h=f==null?0:f.length;return h?Po(f,0,-1):[]}o(Fne,"initial");var Lne=mr(function(f){var h=Fn(f,jO);return h.length&&h[0]===f[0]?RO(h):[]}),kne=mr(function(f){var h=Bo(f),S=Fn(f,jO);return h===Bo(S)?h=r:S.pop(),S.length&&S[0]===f[0]?RO(S,Pt(h,2)):[]}),Vne=mr(function(f){var h=Bo(f),S=Fn(f,jO);return h=typeof h=="function"?h:r,h&&S.pop(),S.length&&S[0]===f[0]?RO(S,r,h):[]});function jne(f,h){return f==null?"":Fte.call(f,h)}o(jne,"join");function Bo(f){var h=f==null?0:f.length;return h?f[h-1]:r}o(Bo,"last");function Une(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=I;return S!==r&&(B=or(S),B=B<0?Bi(I+B,0):Us(B,I-1)),h===h?Ste(f,h,B):XA(f,Dj,B,!0)}o(Une,"lastIndexOf");function Mne(f,h){return f&&f.length?o5(f,or(h)):r}o(Mne,"nth");var qne=mr(Q5);function Q5(f,h){return f&&f.length&&h&&h.length?PO(f,h):f}o(Q5,"pullAll");function Hne(f,h,S){return f&&f.length&&h&&h.length?PO(f,h,Pt(S,2)):f}o(Hne,"pullAllBy");function zne(f,h,S){return f&&f.length&&h&&h.length?PO(f,h,r,S):f}o(zne,"pullAllWith");var Kne=Vl(function(f,h){var S=f==null?0:f.length,I=AO(f,h);return l5(f,Fn(h,function(B){return jl(B,S)?+B:B}).sort(x5)),I});function $ne(f,h){var S=[];if(!(f&&f.length))return S;var I=-1,B=[],q=f.length;for(h=Pt(h,3);++I<q;){var Q=f[I];h(Q,I,f)&&(S.push(Q),B.push(I))}return l5(f,B),S}o($ne,"remove");function ZO(f){return f==null?f:jte.call(f)}o(ZO,"reverse");function Gne(f,h,S){var I=f==null?0:f.length;return I?(S&&typeof S!="number"&&ca(f,h,S)?(h=0,S=I):(h=h==null?0:or(h),S=S===r?I:or(S)),Po(f,h,S)):[]}o(Gne,"slice");function Xne(f,h){return dN(f,h)}o(Xne,"sortedIndex");function Wne(f,h,S){return LO(f,h,Pt(S,2))}o(Wne,"sortedIndexBy");function Jne(f,h){var S=f==null?0:f.length;if(S){var I=dN(f,h);if(I<S&&wu(f[I],h))return I}return-1}o(Jne,"sortedIndexOf");function Qne(f,h){return dN(f,h,!0)}o(Qne,"sortedLastIndex");function Yne(f,h,S){return LO(f,h,Pt(S,2),!0)}o(Yne,"sortedLastIndexBy");function Zne(f,h){var S=f==null?0:f.length;if(S){var I=dN(f,h,!0)-1;if(wu(f[I],h))return I}return-1}o(Zne,"sortedLastIndexOf");function eie(f){return f&&f.length?p5(f):[]}o(eie,"sortedUniq");function tie(f,h){return f&&f.length?p5(f,Pt(h,2)):[]}o(tie,"sortedUniqBy");function rie(f){var h=f==null?0:f.length;return h?Po(f,1,h):[]}o(rie,"tail");function nie(f,h,S){return f&&f.length?(h=S||h===r?1:or(h),Po(f,0,h<0?0:h)):[]}o(nie,"take");function iie(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),h=I-h,Po(f,h<0?0:h,I)):[]}o(iie,"takeRight");function sie(f,h){return f&&f.length?mN(f,Pt(h,3),!1,!0):[]}o(sie,"takeRightWhile");function aie(f,h){return f&&f.length?mN(f,Pt(h,3)):[]}o(aie,"takeWhile");var oie=mr(function(f){return Cp(ds(f,1,mi,!0))}),uie=mr(function(f){var h=Bo(f);return mi(h)&&(h=r),Cp(ds(f,1,mi,!0),Pt(h,2))}),cie=mr(function(f){var h=Bo(f);return h=typeof h=="function"?h:r,Cp(ds(f,1,mi,!0),r,h)});function lie(f){return f&&f.length?Cp(f):[]}o(lie,"uniq");function fie(f,h){return f&&f.length?Cp(f,Pt(h,2)):[]}o(fie,"uniqBy");function pie(f,h){return h=typeof h=="function"?h:r,f&&f.length?Cp(f,r,h):[]}o(pie,"uniqWith");function eP(f){if(!(f&&f.length))return[];var h=0;return f=vp(f,function(S){if(mi(S))return h=Bi(S.length,h),!0}),vO(h,function(S){return Fn(f,dO(S))})}o(eP,"unzip");function Y5(f,h){if(!(f&&f.length))return[];var S=eP(f);return h==null?S:Fn(S,function(I){return ro(h,r,I)})}o(Y5,"unzipWith");var hie=mr(function(f,h){return mi(f)?gx(f,h):[]}),die=mr(function(f){return VO(vp(f,mi))}),mie=mr(function(f){var h=Bo(f);return mi(h)&&(h=r),VO(vp(f,mi),Pt(h,2))}),gie=mr(function(f){var h=Bo(f);return h=typeof h=="function"?h:r,VO(vp(f,mi),r,h)}),vie=mr(eP);function yie(f,h){return g5(f||[],h||[],mx)}o(yie,"zipObject");function Sie(f,h){return g5(f||[],h||[],Sx)}o(Sie,"zipObjectDeep");var xie=mr(function(f){var h=f.length,S=h>1?f[h-1]:r;return S=typeof S=="function"?(f.pop(),S):r,Y5(f,S)});function Z5(f){var h=U(f);return h.__chain__=!0,h}o(Z5,"chain");function bie(f,h){return h(f),f}o(bie,"tap");function EN(f,h){return h(f)}o(EN,"thru");var wie=Vl(function(f){var h=f.length,S=h?f[0]:0,I=this.__wrapped__,B=o(function(q){return AO(q,f)},"interceptor");return h>1||this.__actions__.length||!(I instanceof Er)||!jl(S)?this.thru(B):(I=I.slice(S,+S+(h?1:0)),I.__actions__.push({func:EN,args:[B],thisArg:r}),new _o(I,this.__chain__).thru(function(q){return h&&!q.length&&q.push(r),q}))});function Cie(){return Z5(this)}o(Cie,"wrapperChain");function Eie(){return new _o(this.value(),this.__chain__)}o(Eie,"wrapperCommit");function Aie(){this.__values__===r&&(this.__values__=hU(this.value()));var f=this.__index__>=this.__values__.length,h=f?r:this.__values__[this.__index__++];return{done:f,value:h}}o(Aie,"wrapperNext");function Nie(){return this}o(Nie,"wrapperToIterator");function Iie(f){for(var h,S=this;S instanceof cN;){var I=$5(S);I.__index__=0,I.__values__=r,h?B.__wrapped__=I:h=I;var B=I;S=S.__wrapped__}return B.__wrapped__=f,h}o(Iie,"wrapperPlant");function Tie(){var f=this.__wrapped__;if(f instanceof Er){var h=f;return this.__actions__.length&&(h=new Er(this)),h=h.reverse(),h.__actions__.push({func:EN,args:[ZO],thisArg:r}),new _o(h,this.__chain__)}return this.thru(ZO)}o(Tie,"wrapperReverse");function Rie(){return m5(this.__wrapped__,this.__actions__)}o(Rie,"wrapperValue");var Die=gN(function(f,h,S){Zr.call(f,S)?++f[S]:Ll(f,S,1)});function _ie(f,h,S){var I=rr(f)?Tj:bre;return S&&ca(f,h,S)&&(h=r),I(f,Pt(h,3))}o(_ie,"every");function Oie(f,h){var S=rr(f)?vp:Yj;return S(f,Pt(h,3))}o(Oie,"filter");var Pie=N5(G5),Bie=N5(X5);function Fie(f,h){return ds(AN(f,h),1)}o(Fie,"flatMap");function Lie(f,h){return ds(AN(f,h),ce)}o(Lie,"flatMapDeep");function kie(f,h,S){return S=S===r?1:or(S),ds(AN(f,h),S)}o(kie,"flatMapDepth");function eU(f,h){var S=rr(f)?Ro:wp;return S(f,Pt(h,3))}o(eU,"forEach");function tU(f,h){var S=rr(f)?rte:Qj;return S(f,Pt(h,3))}o(tU,"forEachRight");var Vie=gN(function(f,h,S){Zr.call(f,S)?f[S].push(h):Ll(f,S,[h])});function jie(f,h,S,I){f=Aa(f)?f:$g(f),S=S&&!I?or(S):0;var B=f.length;return S<0&&(S=Bi(B+S,0)),DN(f)?S<=B&&f.indexOf(h,S)>-1:!!B&&Fg(f,h,S)>-1}o(jie,"includes");var Uie=mr(function(f,h,S){var I=-1,B=typeof h=="function",q=Aa(f)?Te(f.length):[];return wp(f,function(Q){q[++I]=B?ro(h,Q,S):vx(Q,h,S)}),q}),Mie=gN(function(f,h,S){Ll(f,S,h)});function AN(f,h){var S=rr(f)?Fn:i5;return S(f,Pt(h,3))}o(AN,"map");function qie(f,h,S,I){return f==null?[]:(rr(h)||(h=h==null?[]:[h]),S=I?r:S,rr(S)||(S=S==null?[]:[S]),u5(f,h,S))}o(qie,"orderBy");var Hie=gN(function(f,h,S){f[S?0:1].push(h)},function(){return[[],[]]});function zie(f,h,S){var I=rr(f)?pO:Oj,B=arguments.length<3;return I(f,Pt(h,4),S,B,wp)}o(zie,"reduce");function Kie(f,h,S){var I=rr(f)?nte:Oj,B=arguments.length<3;return I(f,Pt(h,4),S,B,Qj)}o(Kie,"reduceRight");function $ie(f,h){var S=rr(f)?vp:Yj;return S(f,TN(Pt(h,3)))}o($ie,"reject");function Gie(f){var h=rr(f)?Gj:jre;return h(f)}o(Gie,"sample");function Xie(f,h,S){(S?ca(f,h,S):h===r)?h=1:h=or(h);var I=rr(f)?gre:Ure;return I(f,h)}o(Xie,"sampleSize");function Wie(f){var h=rr(f)?vre:qre;return h(f)}o(Wie,"shuffle");function Jie(f){if(f==null)return 0;if(Aa(f))return DN(f)?kg(f):f.length;var h=Ms(f);return h==Pe||h==Bn?f.size:_O(f).length}o(Jie,"size");function Qie(f,h,S){var I=rr(f)?hO:Hre;return S&&ca(f,h,S)&&(h=r),I(f,Pt(h,3))}o(Qie,"some");var Yie=mr(function(f,h){if(f==null)return[];var S=h.length;return S>1&&ca(f,h[0],h[1])?h=[]:S>2&&ca(h[0],h[1],h[2])&&(h=[h[0]]),u5(f,ds(h,1),[])}),NN=Ote||function(){return zi.Date.now()};function Zie(f,h){if(typeof h!="function")throw new Do(i);return f=or(f),function(){if(--f<1)return h.apply(this,arguments)}}o(Zie,"after");function rU(f,h,S){return h=S?r:h,h=f&&h==null?f.length:h,kl(f,A,r,r,r,r,h)}o(rU,"ary");function nU(f,h){var S;if(typeof h!="function")throw new Do(i);return f=or(f),function(){return--f>0&&(S=h.apply(this,arguments)),f<=1&&(h=r),S}}o(nU,"before");var tP=mr(function(f,h,S){var I=v;if(S.length){var B=Sp(S,zg(tP));I|=w}return kl(f,I,h,S,B)}),iU=mr(function(f,h,S){var I=v|b;if(S.length){var B=Sp(S,zg(iU));I|=w}return kl(h,I,f,S,B)});function sU(f,h,S){h=S?r:h;var I=kl(f,E,r,r,r,r,r,h);return I.placeholder=sU.placeholder,I}o(sU,"curry");function aU(f,h,S){h=S?r:h;var I=kl(f,N,r,r,r,r,r,h);return I.placeholder=aU.placeholder,I}o(aU,"curryRight");function oU(f,h,S){var I,B,q,Q,te,ge,Be=0,Ve=!1,Ke=!1,ct=!0;if(typeof f!="function")throw new Do(i);h=Fo(h)||0,Wn(S)&&(Ve=!!S.leading,Ke="maxWait"in S,q=Ke?Bi(Fo(S.maxWait)||0,h):q,ct="trailing"in S?!!S.trailing:ct);function Ct(gi){var Cu=I,ql=B;return I=B=r,Be=gi,Q=f.apply(ql,Cu),Q}o(Ct,"invokeFunc");function kt(gi){return Be=gi,te=wx(yr,h),Ve?Ct(gi):Q}o(kt,"leadingEdge");function fr(gi){var Cu=gi-ge,ql=gi-Be,NU=h-Cu;return Ke?Us(NU,q-ql):NU}o(fr,"remainingWait");function Vt(gi){var Cu=gi-ge,ql=gi-Be;return ge===r||Cu>=h||Cu<0||Ke&&ql>=q}o(Vt,"shouldInvoke");function yr(){var gi=NN();if(Vt(gi))return Rr(gi);te=wx(yr,fr(gi))}o(yr,"timerExpired");function Rr(gi){return te=r,ct&&I?Ct(gi):(I=B=r,Q)}o(Rr,"trailingEdge");function ao(){te!==r&&v5(te),Be=0,I=ge=B=te=r}o(ao,"cancel");function la(){return te===r?Q:Rr(NN())}o(la,"flush");function oo(){var gi=NN(),Cu=Vt(gi);if(I=arguments,B=this,ge=gi,Cu){if(te===r)return kt(ge);if(Ke)return v5(te),te=wx(yr,h),Ct(ge)}return te===r&&(te=wx(yr,h)),Q}return o(oo,"debounced"),oo.cancel=ao,oo.flush=la,oo}o(oU,"debounce");var ese=mr(function(f,h){return Jj(f,1,h)}),tse=mr(function(f,h,S){return Jj(f,Fo(h)||0,S)});function rse(f){return kl(f,M)}o(rse,"flip");function IN(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new Do(i);var S=o(function(){var I=arguments,B=h?h.apply(this,I):I[0],q=S.cache;if(q.has(B))return q.get(B);var Q=f.apply(this,I);return S.cache=q.set(B,Q)||q,Q},"memoized");return S.cache=new(IN.Cache||Fl),S}o(IN,"memoize"),IN.Cache=Fl;function TN(f){if(typeof f!="function")throw new Do(i);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}o(TN,"negate");function nse(f){return nU(2,f)}o(nse,"once");var ise=zre(function(f,h){h=h.length==1&&rr(h[0])?Fn(h[0],no(Pt())):Fn(ds(h,1),no(Pt()));var S=h.length;return mr(function(I){for(var B=-1,q=Us(I.length,S);++B<q;)I[B]=h[B].call(this,I[B]);return ro(f,this,I)})}),rP=mr(function(f,h){var S=Sp(h,zg(rP));return kl(f,w,r,h,S)}),uU=mr(function(f,h){var S=Sp(h,zg(uU));return kl(f,C,r,h,S)}),sse=Vl(function(f,h){return kl(f,R,r,r,r,h)});function ase(f,h){if(typeof f!="function")throw new Do(i);return h=h===r?h:or(h),mr(f,h)}o(ase,"rest");function ose(f,h){if(typeof f!="function")throw new Do(i);return h=h==null?0:Bi(or(h),0),mr(function(S){var I=S[h],B=Ap(S,0,h);return I&&yp(B,I),ro(f,this,B)})}o(ose,"spread");function use(f,h,S){var I=!0,B=!0;if(typeof f!="function")throw new Do(i);return Wn(S)&&(I="leading"in S?!!S.leading:I,B="trailing"in S?!!S.trailing:B),oU(f,h,{leading:I,maxWait:h,trailing:B})}o(use,"throttle");function cse(f){return rU(f,1)}o(cse,"unary");function lse(f,h){return rP(UO(h),f)}o(lse,"wrap");function fse(){if(!arguments.length)return[];var f=arguments[0];return rr(f)?f:[f]}o(fse,"castArray");function pse(f){return Oo(f,m)}o(pse,"clone");function hse(f,h){return h=typeof h=="function"?h:r,Oo(f,m,h)}o(hse,"cloneWith");function dse(f){return Oo(f,l|m)}o(dse,"cloneDeep");function mse(f,h){return h=typeof h=="function"?h:r,Oo(f,l|m,h)}o(mse,"cloneDeepWith");function gse(f,h){return h==null||Wj(f,h,Ki(h))}o(gse,"conformsTo");function wu(f,h){return f===h||f!==f&&h!==h}o(wu,"eq");var vse=xN(TO),yse=xN(function(f,h){return f>=h}),Wd=t5((function(){return arguments})())?t5:function(f){return si(f)&&Zr.call(f,"callee")&&!Mj.call(f,"callee")},rr=Te.isArray,Sse=wj?no(wj):Ire;function Aa(f){return f!=null&&RN(f.length)&&!Ul(f)}o(Aa,"isArrayLike");function mi(f){return si(f)&&Aa(f)}o(mi,"isArrayLikeObject");function xse(f){return f===!0||f===!1||si(f)&&ua(f)==F}o(xse,"isBoolean");var Np=Bte||hP,bse=Cj?no(Cj):Tre;function wse(f){return si(f)&&f.nodeType===1&&!Cx(f)}o(wse,"isElement");function Cse(f){if(f==null)return!0;if(Aa(f)&&(rr(f)||typeof f=="string"||typeof f.splice=="function"||Np(f)||Kg(f)||Wd(f)))return!f.length;var h=Ms(f);if(h==Pe||h==Bn)return!f.size;if(bx(f))return!_O(f).length;for(var S in f)if(Zr.call(f,S))return!1;return!0}o(Cse,"isEmpty");function Ese(f,h){return yx(f,h)}o(Ese,"isEqual");function Ase(f,h,S){S=typeof S=="function"?S:r;var I=S?S(f,h):r;return I===r?yx(f,h,r,S):!!I}o(Ase,"isEqualWith");function nP(f){if(!si(f))return!1;var h=ua(f);return h==J||h==oe||typeof f.message=="string"&&typeof f.name=="string"&&!Cx(f)}o(nP,"isError");function Nse(f){return typeof f=="number"&&Hj(f)}o(Nse,"isFinite");function Ul(f){if(!Wn(f))return!1;var h=ua(f);return h==Ge||h==Ue||h==it||h==eo}o(Ul,"isFunction");function cU(f){return typeof f=="number"&&f==or(f)}o(cU,"isInteger");function RN(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ee}o(RN,"isLength");function Wn(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}o(Wn,"isObject");function si(f){return f!=null&&typeof f=="object"}o(si,"isObjectLike");var lU=Ej?no(Ej):Dre;function Ise(f,h){return f===h||DO(f,h,GO(h))}o(Ise,"isMatch");function Tse(f,h,S){return S=typeof S=="function"?S:r,DO(f,h,GO(h),S)}o(Tse,"isMatchWith");function Rse(f){return fU(f)&&f!=+f}o(Rse,"isNaN");function Dse(f){if(hne(f))throw new Qt(n);return r5(f)}o(Dse,"isNative");function _se(f){return f===null}o(_se,"isNull");function Ose(f){return f==null}o(Ose,"isNil");function fU(f){return typeof f=="number"||si(f)&&ua(f)==bt}o(fU,"isNumber");function Cx(f){if(!si(f)||ua(f)!=Je)return!1;var h=rN(f);if(h===null)return!0;var S=Zr.call(h,"constructor")&&h.constructor;return typeof S=="function"&&S instanceof S&&YA.call(S)==Tte}o(Cx,"isPlainObject");var iP=Aj?no(Aj):_re;function Pse(f){return cU(f)&&f>=-ee&&f<=ee}o(Pse,"isSafeInteger");var pU=Nj?no(Nj):Ore;function DN(f){return typeof f=="string"||!rr(f)&&si(f)&&ua(f)==Ei}o(DN,"isString");function so(f){return typeof f=="symbol"||si(f)&&ua(f)==Vs}o(so,"isSymbol");var Kg=Ij?no(Ij):Pre;function Bse(f){return f===r}o(Bse,"isUndefined");function Fse(f){return si(f)&&Ms(f)==aa}o(Fse,"isWeakMap");function Lse(f){return si(f)&&ua(f)==Et}o(Lse,"isWeakSet");var kse=xN(OO),Vse=xN(function(f,h){return f<=h});function hU(f){if(!f)return[];if(Aa(f))return DN(f)?xu(f):Ea(f);if(lx&&f[lx])return gte(f[lx]());var h=Ms(f),S=h==Pe?SO:h==Bn?WA:$g;return S(f)}o(hU,"toArray");function Ml(f){if(!f)return f===0?f:0;if(f=Fo(f),f===ce||f===-ce){var h=f<0?-1:1;return h*pe}return f===f?f:0}o(Ml,"toFinite");function or(f){var h=Ml(f),S=h%1;return h===h?S?h-S:h:0}o(or,"toInteger");function dU(f){return f?Kd(or(f),0,Ye):0}o(dU,"toLength");function Fo(f){if(typeof f=="number")return f;if(so(f))return Ce;if(Wn(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=Wn(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=Pj(f);var S=See.test(f);return S||bee.test(f)?Zee(f.slice(2),S?2:8):nO.test(f)?Ce:+f}o(Fo,"toNumber");function mU(f){return bc(f,Na(f))}o(mU,"toPlainObject");function jse(f){return f?Kd(or(f),-ee,ee):f===0?f:0}o(jse,"toSafeInteger");function Xr(f){return f==null?"":io(f)}o(Xr,"toString");var Use=qg(function(f,h){if(bx(h)||Aa(h)){bc(h,Ki(h),f);return}for(var S in h)Zr.call(h,S)&&mx(f,S,h[S])}),gU=qg(function(f,h){bc(h,Na(h),f)}),_N=qg(function(f,h,S,I){bc(h,Na(h),f,I)}),Mse=qg(function(f,h,S,I){bc(h,Ki(h),f,I)}),qse=Vl(AO);function Hse(f,h){var S=Mg(f);return h==null?S:Xj(S,h)}o(Hse,"create");var zse=mr(function(f,h){f=cn(f);var S=-1,I=h.length,B=I>2?h[2]:r;for(B&&ca(h[0],h[1],B)&&(I=1);++S<I;)for(var q=h[S],Q=Na(q),te=-1,ge=Q.length;++te<ge;){var Be=Q[te],Ve=f[Be];(Ve===r||wu(Ve,Vg[Be])&&!Zr.call(f,Be))&&(f[Be]=q[Be])}return f}),Kse=mr(function(f){return f.push(r,P5),ro(vU,r,f)});function $se(f,h){return Rj(f,Pt(h,3),xc)}o($se,"findKey");function Gse(f,h){return Rj(f,Pt(h,3),IO)}o(Gse,"findLastKey");function Xse(f,h){return f==null?f:NO(f,Pt(h,3),Na)}o(Xse,"forIn");function Wse(f,h){return f==null?f:Zj(f,Pt(h,3),Na)}o(Wse,"forInRight");function Jse(f,h){return f&&xc(f,Pt(h,3))}o(Jse,"forOwn");function Qse(f,h){return f&&IO(f,Pt(h,3))}o(Qse,"forOwnRight");function Yse(f){return f==null?[]:pN(f,Ki(f))}o(Yse,"functions");function Zse(f){return f==null?[]:pN(f,Na(f))}o(Zse,"functionsIn");function sP(f,h,S){var I=f==null?r:$d(f,h);return I===r?S:I}o(sP,"get");function eae(f,h){return f!=null&&L5(f,h,Cre)}o(eae,"has");function aP(f,h){return f!=null&&L5(f,h,Ere)}o(aP,"hasIn");var tae=T5(function(f,h,S){h!=null&&typeof h.toString!="function"&&(h=ZA.call(h)),f[h]=S},uP(Ia)),rae=T5(function(f,h,S){h!=null&&typeof h.toString!="function"&&(h=ZA.call(h)),Zr.call(f,h)?f[h].push(S):f[h]=[S]},Pt),nae=mr(vx);function Ki(f){return Aa(f)?$j(f):_O(f)}o(Ki,"keys");function Na(f){return Aa(f)?$j(f,!0):Bre(f)}o(Na,"keysIn");function iae(f,h){var S={};return h=Pt(h,3),xc(f,function(I,B,q){Ll(S,h(I,B,q),I)}),S}o(iae,"mapKeys");function sae(f,h){var S={};return h=Pt(h,3),xc(f,function(I,B,q){Ll(S,B,h(I,B,q))}),S}o(sae,"mapValues");var aae=qg(function(f,h,S){hN(f,h,S)}),vU=qg(function(f,h,S,I){hN(f,h,S,I)}),oae=Vl(function(f,h){var S={};if(f==null)return S;var I=!1;h=Fn(h,function(q){return q=Ep(q,f),I||(I=q.length>1),q}),bc(f,KO(f),S),I&&(S=Oo(S,l|p|m,tne));for(var B=h.length;B--;)kO(S,h[B]);return S});function uae(f,h){return yU(f,TN(Pt(h)))}o(uae,"omitBy");var cae=Vl(function(f,h){return f==null?{}:Lre(f,h)});function yU(f,h){if(f==null)return{};var S=Fn(KO(f),function(I){return[I]});return h=Pt(h),c5(f,S,function(I,B){return h(I,B[0])})}o(yU,"pickBy");function lae(f,h,S){h=Ep(h,f);var I=-1,B=h.length;for(B||(B=1,f=r);++I<B;){var q=f==null?r:f[wc(h[I])];q===r&&(I=B,q=S),f=Ul(q)?q.call(f):q}return f}o(lae,"result");function fae(f,h,S){return f==null?f:Sx(f,h,S)}o(fae,"set");function pae(f,h,S,I){return I=typeof I=="function"?I:r,f==null?f:Sx(f,h,S,I)}o(pae,"setWith");var SU=_5(Ki),xU=_5(Na);function hae(f,h,S){var I=rr(f),B=I||Np(f)||Kg(f);if(h=Pt(h,4),S==null){var q=f&&f.constructor;B?S=I?new q:[]:Wn(f)?S=Ul(q)?Mg(rN(f)):{}:S={}}return(B?Ro:xc)(f,function(Q,te,ge){return h(S,Q,te,ge)}),S}o(hae,"transform");function dae(f,h){return f==null?!0:kO(f,h)}o(dae,"unset");function mae(f,h,S){return f==null?f:d5(f,h,UO(S))}o(mae,"update");function gae(f,h,S,I){return I=typeof I=="function"?I:r,f==null?f:d5(f,h,UO(S),I)}o(gae,"updateWith");function $g(f){return f==null?[]:yO(f,Ki(f))}o($g,"values");function vae(f){return f==null?[]:yO(f,Na(f))}o(vae,"valuesIn");function yae(f,h,S){return S===r&&(S=h,h=r),S!==r&&(S=Fo(S),S=S===S?S:0),h!==r&&(h=Fo(h),h=h===h?h:0),Kd(Fo(f),h,S)}o(yae,"clamp");function Sae(f,h,S){return h=Ml(h),S===r?(S=h,h=0):S=Ml(S),f=Fo(f),Are(f,h,S)}o(Sae,"inRange");function xae(f,h,S){if(S&&typeof S!="boolean"&&ca(f,h,S)&&(h=S=r),S===r&&(typeof h=="boolean"?(S=h,h=r):typeof f=="boolean"&&(S=f,f=r)),f===r&&h===r?(f=0,h=1):(f=Ml(f),h===r?(h=f,f=0):h=Ml(h)),f>h){var I=f;f=h,h=I}if(S||f%1||h%1){var B=zj();return Us(f+B*(h-f+Yee("1e-"+((B+"").length-1))),h)}return BO(f,h)}o(xae,"random");var bae=Hg(function(f,h,S){return h=h.toLowerCase(),f+(S?bU(h):h)});function bU(f){return oP(Xr(f).toLowerCase())}o(bU,"capitalize");function wU(f){return f=Xr(f),f&&f.replace(Cee,fte).replace(qee,"")}o(wU,"deburr");function wae(f,h,S){f=Xr(f),h=io(h);var I=f.length;S=S===r?I:Kd(or(S),0,I);var B=S;return S-=h.length,S>=0&&f.slice(S,B)==h}o(wae,"endsWith");function Cae(f){return f=Xr(f),f&&dt.test(f)?f.replace(de,pte):f}o(Cae,"escape");function Eae(f){return f=Xr(f),f&&Sc.test(f)?f.replace(Lr,"\\$&"):f}o(Eae,"escapeRegExp");var Aae=Hg(function(f,h,S){return f+(S?"-":"")+h.toLowerCase()}),Nae=Hg(function(f,h,S){return f+(S?" ":"")+h.toLowerCase()}),Iae=A5("toLowerCase");function Tae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;if(!h||I>=h)return f;var B=(h-I)/2;return SN(aN(B),S)+f+SN(sN(B),S)}o(Tae,"pad");function Rae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;return h&&I<h?f+SN(h-I,S):f}o(Rae,"padEnd");function Dae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;return h&&I<h?SN(h-I,S)+f:f}o(Dae,"padStart");function _ae(f,h,S){return S||h==null?h=0:h&&(h=+h),Vte(Xr(f).replace(ux,""),h||0)}o(_ae,"parseInt1");function Oae(f,h,S){return(S?ca(f,h,S):h===r)?h=1:h=or(h),FO(Xr(f),h)}o(Oae,"repeat");function Pae(){var f=arguments,h=Xr(f[0]);return f.length<3?h:h.replace(f[1],f[2])}o(Pae,"replace");var Bae=Hg(function(f,h,S){return f+(S?"_":"")+h.toLowerCase()});function Fae(f,h,S){return S&&typeof S!="number"&&ca(f,h,S)&&(h=S=r),S=S===r?Ye:S>>>0,S?(f=Xr(f),f&&(typeof h=="string"||h!=null&&!iP(h))&&(h=io(h),!h&&Lg(f))?Ap(xu(f),0,S):f.split(h,S)):[]}o(Fae,"split");var Lae=Hg(function(f,h,S){return f+(S?" ":"")+oP(h)});function kae(f,h,S){return f=Xr(f),S=S==null?0:Kd(or(S),0,f.length),h=io(h),f.slice(S,S+h.length)==h}o(kae,"startsWith");function Vae(f,h,S){var I=U.templateSettings;S&&ca(f,h,S)&&(h=r),f=Xr(f),h=_N({},h,I,O5);var B=_N({},h.imports,I.imports,O5),q=Ki(B),Q=yO(B,q),te,ge,Be=0,Ve=h.interpolate||zA,Ke="__p += '",ct=xO((h.escape||zA).source+"|"+Ve.source+"|"+(Ve===ft?js:zA).source+"|"+(h.evaluate||zA).source+"|$","g"),Ct="//# sourceURL="+(Zr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gee+"]")+`
29
- `;f.replace(ct,function(Vt,yr,Rr,ao,la,oo){return Rr||(Rr=ao),Ke+=f.slice(Be,oo).replace(Eee,hte),yr&&(te=!0,Ke+=`' +
28
+ `)}o(cne,"insertWrapDetails");function lne(f){return rr(f)||Wd(f)||!!(qj&&f&&f[qj])}o(lne,"isFlattenable");function jl(f,h){var S=typeof f;return h=h??ee,!!h&&(S=="number"||S!="symbol"&&wee.test(f))&&f>-1&&f%1==0&&f<h}o(jl,"isIndex");function ca(f,h,S){if(!Wn(S))return!1;var I=typeof h;return(I=="number"?Aa(S)&&jl(h,S.length):I=="string"&&h in S)?wu(S[h],f):!1}o(ca,"isIterateeCall");function WO(f,h){if(rr(f))return!1;var S=typeof f;return S=="number"||S=="symbol"||S=="boolean"||f==null||so(f)?!0:hs.test(f)||!Xt.test(f)||h!=null&&f in cn(h)}o(WO,"isKey");function fne(f){var h=typeof f;return h=="string"||h=="number"||h=="symbol"||h=="boolean"?f!=="__proto__":f===null}o(fne,"isKeyable");function JO(f){var h=bN(f),S=U[h];if(typeof S!="function"||!(h in Er.prototype))return!1;if(f===S)return!0;var I=$O(S);return!!I&&f===I[0]}o(JO,"isLaziable");function pne(f){return!!Vj&&Vj in f}o(pne,"isMasked");var hne=QA?Ul:hP;function bx(f){var h=f&&f.constructor,S=typeof h=="function"&&h.prototype||Vg;return f===S}o(bx,"isPrototype");function V5(f){return f===f&&!Wn(f)}o(V5,"isStrictComparable");function j5(f,h){return function(S){return S==null?!1:S[f]===h&&(h!==r||f in cn(S))}}o(j5,"matchesStrictComparable");function dne(f){var h=IN(f,function(I){return S.size===u&&S.clear(),I}),S=h.cache;return h}o(dne,"memoizeCapped");function mne(f,h){var S=f[1],I=h[1],B=S|I,q=B<(v|b|A),Q=I==A&&S==E||I==A&&S==R&&f[7].length<=h[8]||I==(A|R)&&h[7].length<=h[8]&&S==E;if(!(q||Q))return f;I&v&&(f[2]=h[2],B|=S&v?0:x);var te=h[3];if(te){var ge=f[3];f[3]=ge?b5(ge,te,h[4]):te,f[4]=ge?Sp(f[3],c):h[4]}return te=h[5],te&&(ge=f[5],f[5]=ge?w5(ge,te,h[6]):te,f[6]=ge?Sp(f[5],c):h[6]),te=h[7],te&&(f[7]=te),I&A&&(f[8]=f[8]==null?h[8]:Us(f[8],h[8])),f[9]==null&&(f[9]=h[9]),f[0]=h[0],f[1]=B,f}o(mne,"mergeData");function gne(f){var h=[];if(f!=null)for(var S in cn(f))h.push(S);return h}o(gne,"nativeKeysIn");function vne(f){return ZA.call(f)}o(vne,"objectToString");function U5(f,h,S){return h=Bi(h===r?f.length-1:h,0),function(){for(var I=arguments,B=-1,q=Bi(I.length-h,0),Q=Te(q);++B<q;)Q[B]=I[h+B];B=-1;for(var te=Te(h+1);++B<h;)te[B]=I[B];return te[h]=S(Q),ro(f,this,te)}}o(U5,"overRest");function M5(f,h){return h.length<2?f:$d(f,Po(h,0,-1))}o(M5,"parent");function yne(f,h){for(var S=f.length,I=Us(h.length,S),B=Ea(f);I--;){var q=h[I];f[I]=jl(q,S)?B[q]:r}return f}o(yne,"reorder");function QO(f,h){if(!(h==="constructor"&&typeof f[h]=="function")&&h!="__proto__")return f[h]}o(QO,"safeGet");var q5=z5(f5),wx=Pte||function(f,h){return zi.setTimeout(f,h)},YO=z5(Mre);function H5(f,h,S){var I=h+"";return YO(f,cne(I,Sne(ane(I),S)))}o(H5,"setWrapToString");function z5(f){var h=0,S=0;return function(){var I=kte(),B=K-(I-S);if(S=I,B>0){if(++h>=z)return arguments[0]}else h=0;return f.apply(r,arguments)}}o(z5,"shortOut");function CN(f,h){var S=-1,I=f.length,B=I-1;for(h=h===r?I:h;++S<h;){var q=BO(S,B),Q=f[q];f[q]=f[S],f[S]=Q}return f.length=h,f}o(CN,"shuffleSelf");var K5=dne(function(f){var h=[];return f.charCodeAt(0)===46&&h.push(""),f.replace(Io,function(S,I,B,q){h.push(B?q.replace(Cr,"$1"):I||S)}),h});function wc(f){if(typeof f=="string"||so(f))return f;var h=f+"";return h=="0"&&1/f==-ce?"-0":h}o(wc,"toKey");function Xd(f){if(f!=null){try{return YA.call(f)}catch{}try{return f+""}catch{}}return""}o(Xd,"toSource");function Sne(f,h){return Ro(De,function(S){var I="_."+S[0];h&S[1]&&!GA(f,I)&&f.push(I)}),f.sort()}o(Sne,"updateWrapDetails");function $5(f){if(f instanceof Er)return f.clone();var h=new _o(f.__wrapped__,f.__chain__);return h.__actions__=Ea(f.__actions__),h.__index__=f.__index__,h.__values__=f.__values__,h}o($5,"wrapperClone");function xne(f,h,S){(S?ca(f,h,S):h===r)?h=1:h=Bi(or(h),0);var I=f==null?0:f.length;if(!I||h<1)return[];for(var B=0,q=0,Q=Te(sN(I/h));B<I;)Q[q++]=Po(f,B,B+=h);return Q}o(xne,"chunk");function bne(f){for(var h=-1,S=f==null?0:f.length,I=0,B=[];++h<S;){var q=f[h];q&&(B[I++]=q)}return B}o(bne,"compact");function wne(){var f=arguments.length;if(!f)return[];for(var h=Te(f-1),S=arguments[0],I=f;I--;)h[I-1]=arguments[I];return yp(rr(S)?Ea(S):[S],ds(h,1))}o(wne,"concat");var Cne=mr(function(f,h){return mi(f)?gx(f,ds(h,1,mi,!0)):[]}),Ene=mr(function(f,h){var S=Bo(h);return mi(S)&&(S=r),mi(f)?gx(f,ds(h,1,mi,!0),Pt(S,2)):[]}),Ane=mr(function(f,h){var S=Bo(h);return mi(S)&&(S=r),mi(f)?gx(f,ds(h,1,mi,!0),r,S):[]});function Nne(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),Po(f,h<0?0:h,I)):[]}o(Nne,"drop");function Ine(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),h=I-h,Po(f,0,h<0?0:h)):[]}o(Ine,"dropRight");function Tne(f,h){return f&&f.length?mN(f,Pt(h,3),!0,!0):[]}o(Tne,"dropRightWhile");function Rne(f,h){return f&&f.length?mN(f,Pt(h,3),!0):[]}o(Rne,"dropWhile");function Dne(f,h,S,I){var B=f==null?0:f.length;return B?(S&&typeof S!="number"&&ca(f,h,S)&&(S=0,I=B),wre(f,h,S,I)):[]}o(Dne,"fill");function G5(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=S==null?0:or(S);return B<0&&(B=Bi(I+B,0)),XA(f,Pt(h,3),B)}o(G5,"findIndex");function X5(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=I-1;return S!==r&&(B=or(S),B=S<0?Bi(I+B,0):Us(B,I-1)),XA(f,Pt(h,3),B,!0)}o(X5,"findLastIndex");function W5(f){var h=f==null?0:f.length;return h?ds(f,1):[]}o(W5,"flatten");function _ne(f){var h=f==null?0:f.length;return h?ds(f,ce):[]}o(_ne,"flattenDeep");function One(f,h){var S=f==null?0:f.length;return S?(h=h===r?1:or(h),ds(f,h)):[]}o(One,"flattenDepth");function Pne(f){for(var h=-1,S=f==null?0:f.length,I={};++h<S;){var B=f[h];I[B[0]]=B[1]}return I}o(Pne,"fromPairs");function J5(f){return f&&f.length?f[0]:r}o(J5,"head");function Bne(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=S==null?0:or(S);return B<0&&(B=Bi(I+B,0)),Fg(f,h,B)}o(Bne,"indexOf");function Fne(f){var h=f==null?0:f.length;return h?Po(f,0,-1):[]}o(Fne,"initial");var Lne=mr(function(f){var h=Fn(f,jO);return h.length&&h[0]===f[0]?RO(h):[]}),kne=mr(function(f){var h=Bo(f),S=Fn(f,jO);return h===Bo(S)?h=r:S.pop(),S.length&&S[0]===f[0]?RO(S,Pt(h,2)):[]}),Vne=mr(function(f){var h=Bo(f),S=Fn(f,jO);return h=typeof h=="function"?h:r,h&&S.pop(),S.length&&S[0]===f[0]?RO(S,r,h):[]});function jne(f,h){return f==null?"":Fte.call(f,h)}o(jne,"join");function Bo(f){var h=f==null?0:f.length;return h?f[h-1]:r}o(Bo,"last");function Une(f,h,S){var I=f==null?0:f.length;if(!I)return-1;var B=I;return S!==r&&(B=or(S),B=B<0?Bi(I+B,0):Us(B,I-1)),h===h?Ste(f,h,B):XA(f,Dj,B,!0)}o(Une,"lastIndexOf");function Mne(f,h){return f&&f.length?o5(f,or(h)):r}o(Mne,"nth");var qne=mr(Q5);function Q5(f,h){return f&&f.length&&h&&h.length?PO(f,h):f}o(Q5,"pullAll");function Hne(f,h,S){return f&&f.length&&h&&h.length?PO(f,h,Pt(S,2)):f}o(Hne,"pullAllBy");function zne(f,h,S){return f&&f.length&&h&&h.length?PO(f,h,r,S):f}o(zne,"pullAllWith");var Kne=Vl(function(f,h){var S=f==null?0:f.length,I=AO(f,h);return l5(f,Fn(h,function(B){return jl(B,S)?+B:B}).sort(x5)),I});function $ne(f,h){var S=[];if(!(f&&f.length))return S;var I=-1,B=[],q=f.length;for(h=Pt(h,3);++I<q;){var Q=f[I];h(Q,I,f)&&(S.push(Q),B.push(I))}return l5(f,B),S}o($ne,"remove");function ZO(f){return f==null?f:jte.call(f)}o(ZO,"reverse");function Gne(f,h,S){var I=f==null?0:f.length;return I?(S&&typeof S!="number"&&ca(f,h,S)?(h=0,S=I):(h=h==null?0:or(h),S=S===r?I:or(S)),Po(f,h,S)):[]}o(Gne,"slice");function Xne(f,h){return dN(f,h)}o(Xne,"sortedIndex");function Wne(f,h,S){return LO(f,h,Pt(S,2))}o(Wne,"sortedIndexBy");function Jne(f,h){var S=f==null?0:f.length;if(S){var I=dN(f,h);if(I<S&&wu(f[I],h))return I}return-1}o(Jne,"sortedIndexOf");function Qne(f,h){return dN(f,h,!0)}o(Qne,"sortedLastIndex");function Yne(f,h,S){return LO(f,h,Pt(S,2),!0)}o(Yne,"sortedLastIndexBy");function Zne(f,h){var S=f==null?0:f.length;if(S){var I=dN(f,h,!0)-1;if(wu(f[I],h))return I}return-1}o(Zne,"sortedLastIndexOf");function eie(f){return f&&f.length?p5(f):[]}o(eie,"sortedUniq");function tie(f,h){return f&&f.length?p5(f,Pt(h,2)):[]}o(tie,"sortedUniqBy");function rie(f){var h=f==null?0:f.length;return h?Po(f,1,h):[]}o(rie,"tail");function nie(f,h,S){return f&&f.length?(h=S||h===r?1:or(h),Po(f,0,h<0?0:h)):[]}o(nie,"take");function iie(f,h,S){var I=f==null?0:f.length;return I?(h=S||h===r?1:or(h),h=I-h,Po(f,h<0?0:h,I)):[]}o(iie,"takeRight");function sie(f,h){return f&&f.length?mN(f,Pt(h,3),!1,!0):[]}o(sie,"takeRightWhile");function aie(f,h){return f&&f.length?mN(f,Pt(h,3)):[]}o(aie,"takeWhile");var oie=mr(function(f){return Cp(ds(f,1,mi,!0))}),uie=mr(function(f){var h=Bo(f);return mi(h)&&(h=r),Cp(ds(f,1,mi,!0),Pt(h,2))}),cie=mr(function(f){var h=Bo(f);return h=typeof h=="function"?h:r,Cp(ds(f,1,mi,!0),r,h)});function lie(f){return f&&f.length?Cp(f):[]}o(lie,"uniq");function fie(f,h){return f&&f.length?Cp(f,Pt(h,2)):[]}o(fie,"uniqBy");function pie(f,h){return h=typeof h=="function"?h:r,f&&f.length?Cp(f,r,h):[]}o(pie,"uniqWith");function eP(f){if(!(f&&f.length))return[];var h=0;return f=vp(f,function(S){if(mi(S))return h=Bi(S.length,h),!0}),vO(h,function(S){return Fn(f,dO(S))})}o(eP,"unzip");function Y5(f,h){if(!(f&&f.length))return[];var S=eP(f);return h==null?S:Fn(S,function(I){return ro(h,r,I)})}o(Y5,"unzipWith");var hie=mr(function(f,h){return mi(f)?gx(f,h):[]}),die=mr(function(f){return VO(vp(f,mi))}),mie=mr(function(f){var h=Bo(f);return mi(h)&&(h=r),VO(vp(f,mi),Pt(h,2))}),gie=mr(function(f){var h=Bo(f);return h=typeof h=="function"?h:r,VO(vp(f,mi),r,h)}),vie=mr(eP);function yie(f,h){return g5(f||[],h||[],mx)}o(yie,"zipObject");function Sie(f,h){return g5(f||[],h||[],Sx)}o(Sie,"zipObjectDeep");var xie=mr(function(f){var h=f.length,S=h>1?f[h-1]:r;return S=typeof S=="function"?(f.pop(),S):r,Y5(f,S)});function Z5(f){var h=U(f);return h.__chain__=!0,h}o(Z5,"chain");function bie(f,h){return h(f),f}o(bie,"tap");function EN(f,h){return h(f)}o(EN,"thru");var wie=Vl(function(f){var h=f.length,S=h?f[0]:0,I=this.__wrapped__,B=o(function(q){return AO(q,f)},"interceptor");return h>1||this.__actions__.length||!(I instanceof Er)||!jl(S)?this.thru(B):(I=I.slice(S,+S+(h?1:0)),I.__actions__.push({func:EN,args:[B],thisArg:r}),new _o(I,this.__chain__).thru(function(q){return h&&!q.length&&q.push(r),q}))});function Cie(){return Z5(this)}o(Cie,"wrapperChain");function Eie(){return new _o(this.value(),this.__chain__)}o(Eie,"wrapperCommit");function Aie(){this.__values__===r&&(this.__values__=hU(this.value()));var f=this.__index__>=this.__values__.length,h=f?r:this.__values__[this.__index__++];return{done:f,value:h}}o(Aie,"wrapperNext");function Nie(){return this}o(Nie,"wrapperToIterator");function Iie(f){for(var h,S=this;S instanceof cN;){var I=$5(S);I.__index__=0,I.__values__=r,h?B.__wrapped__=I:h=I;var B=I;S=S.__wrapped__}return B.__wrapped__=f,h}o(Iie,"wrapperPlant");function Tie(){var f=this.__wrapped__;if(f instanceof Er){var h=f;return this.__actions__.length&&(h=new Er(this)),h=h.reverse(),h.__actions__.push({func:EN,args:[ZO],thisArg:r}),new _o(h,this.__chain__)}return this.thru(ZO)}o(Tie,"wrapperReverse");function Rie(){return m5(this.__wrapped__,this.__actions__)}o(Rie,"wrapperValue");var Die=gN(function(f,h,S){Zr.call(f,S)?++f[S]:Ll(f,S,1)});function _ie(f,h,S){var I=rr(f)?Tj:bre;return S&&ca(f,h,S)&&(h=r),I(f,Pt(h,3))}o(_ie,"every");function Oie(f,h){var S=rr(f)?vp:Yj;return S(f,Pt(h,3))}o(Oie,"filter");var Pie=N5(G5),Bie=N5(X5);function Fie(f,h){return ds(AN(f,h),1)}o(Fie,"flatMap");function Lie(f,h){return ds(AN(f,h),ce)}o(Lie,"flatMapDeep");function kie(f,h,S){return S=S===r?1:or(S),ds(AN(f,h),S)}o(kie,"flatMapDepth");function eU(f,h){var S=rr(f)?Ro:wp;return S(f,Pt(h,3))}o(eU,"forEach");function tU(f,h){var S=rr(f)?rte:Qj;return S(f,Pt(h,3))}o(tU,"forEachRight");var Vie=gN(function(f,h,S){Zr.call(f,S)?f[S].push(h):Ll(f,S,[h])});function jie(f,h,S,I){f=Aa(f)?f:$g(f),S=S&&!I?or(S):0;var B=f.length;return S<0&&(S=Bi(B+S,0)),DN(f)?S<=B&&f.indexOf(h,S)>-1:!!B&&Fg(f,h,S)>-1}o(jie,"includes");var Uie=mr(function(f,h,S){var I=-1,B=typeof h=="function",q=Aa(f)?Te(f.length):[];return wp(f,function(Q){q[++I]=B?ro(h,Q,S):vx(Q,h,S)}),q}),Mie=gN(function(f,h,S){Ll(f,S,h)});function AN(f,h){var S=rr(f)?Fn:i5;return S(f,Pt(h,3))}o(AN,"map");function qie(f,h,S,I){return f==null?[]:(rr(h)||(h=h==null?[]:[h]),S=I?r:S,rr(S)||(S=S==null?[]:[S]),u5(f,h,S))}o(qie,"orderBy");var Hie=gN(function(f,h,S){f[S?0:1].push(h)},function(){return[[],[]]});function zie(f,h,S){var I=rr(f)?pO:Oj,B=arguments.length<3;return I(f,Pt(h,4),S,B,wp)}o(zie,"reduce");function Kie(f,h,S){var I=rr(f)?nte:Oj,B=arguments.length<3;return I(f,Pt(h,4),S,B,Qj)}o(Kie,"reduceRight");function $ie(f,h){var S=rr(f)?vp:Yj;return S(f,TN(Pt(h,3)))}o($ie,"reject");function Gie(f){var h=rr(f)?Gj:jre;return h(f)}o(Gie,"sample");function Xie(f,h,S){(S?ca(f,h,S):h===r)?h=1:h=or(h);var I=rr(f)?gre:Ure;return I(f,h)}o(Xie,"sampleSize");function Wie(f){var h=rr(f)?vre:qre;return h(f)}o(Wie,"shuffle");function Jie(f){if(f==null)return 0;if(Aa(f))return DN(f)?kg(f):f.length;var h=Ms(f);return h==Pe||h==Bn?f.size:_O(f).length}o(Jie,"size");function Qie(f,h,S){var I=rr(f)?hO:Hre;return S&&ca(f,h,S)&&(h=r),I(f,Pt(h,3))}o(Qie,"some");var Yie=mr(function(f,h){if(f==null)return[];var S=h.length;return S>1&&ca(f,h[0],h[1])?h=[]:S>2&&ca(h[0],h[1],h[2])&&(h=[h[0]]),u5(f,ds(h,1),[])}),NN=Ote||function(){return zi.Date.now()};function Zie(f,h){if(typeof h!="function")throw new Do(i);return f=or(f),function(){if(--f<1)return h.apply(this,arguments)}}o(Zie,"after");function rU(f,h,S){return h=S?r:h,h=f&&h==null?f.length:h,kl(f,A,r,r,r,r,h)}o(rU,"ary");function nU(f,h){var S;if(typeof h!="function")throw new Do(i);return f=or(f),function(){return--f>0&&(S=h.apply(this,arguments)),f<=1&&(h=r),S}}o(nU,"before");var tP=mr(function(f,h,S){var I=v;if(S.length){var B=Sp(S,zg(tP));I|=w}return kl(f,I,h,S,B)}),iU=mr(function(f,h,S){var I=v|b;if(S.length){var B=Sp(S,zg(iU));I|=w}return kl(h,I,f,S,B)});function sU(f,h,S){h=S?r:h;var I=kl(f,E,r,r,r,r,r,h);return I.placeholder=sU.placeholder,I}o(sU,"curry");function aU(f,h,S){h=S?r:h;var I=kl(f,N,r,r,r,r,r,h);return I.placeholder=aU.placeholder,I}o(aU,"curryRight");function oU(f,h,S){var I,B,q,Q,te,ge,Be=0,Ve=!1,Ke=!1,ut=!0;if(typeof f!="function")throw new Do(i);h=Fo(h)||0,Wn(S)&&(Ve=!!S.leading,Ke="maxWait"in S,q=Ke?Bi(Fo(S.maxWait)||0,h):q,ut="trailing"in S?!!S.trailing:ut);function Ct(gi){var Cu=I,ql=B;return I=B=r,Be=gi,Q=f.apply(ql,Cu),Q}o(Ct,"invokeFunc");function kt(gi){return Be=gi,te=wx(yr,h),Ve?Ct(gi):Q}o(kt,"leadingEdge");function fr(gi){var Cu=gi-ge,ql=gi-Be,NU=h-Cu;return Ke?Us(NU,q-ql):NU}o(fr,"remainingWait");function Vt(gi){var Cu=gi-ge,ql=gi-Be;return ge===r||Cu>=h||Cu<0||Ke&&ql>=q}o(Vt,"shouldInvoke");function yr(){var gi=NN();if(Vt(gi))return Rr(gi);te=wx(yr,fr(gi))}o(yr,"timerExpired");function Rr(gi){return te=r,ut&&I?Ct(gi):(I=B=r,Q)}o(Rr,"trailingEdge");function ao(){te!==r&&v5(te),Be=0,I=ge=B=te=r}o(ao,"cancel");function la(){return te===r?Q:Rr(NN())}o(la,"flush");function oo(){var gi=NN(),Cu=Vt(gi);if(I=arguments,B=this,ge=gi,Cu){if(te===r)return kt(ge);if(Ke)return v5(te),te=wx(yr,h),Ct(ge)}return te===r&&(te=wx(yr,h)),Q}return o(oo,"debounced"),oo.cancel=ao,oo.flush=la,oo}o(oU,"debounce");var ese=mr(function(f,h){return Jj(f,1,h)}),tse=mr(function(f,h,S){return Jj(f,Fo(h)||0,S)});function rse(f){return kl(f,M)}o(rse,"flip");function IN(f,h){if(typeof f!="function"||h!=null&&typeof h!="function")throw new Do(i);var S=o(function(){var I=arguments,B=h?h.apply(this,I):I[0],q=S.cache;if(q.has(B))return q.get(B);var Q=f.apply(this,I);return S.cache=q.set(B,Q)||q,Q},"memoized");return S.cache=new(IN.Cache||Fl),S}o(IN,"memoize"),IN.Cache=Fl;function TN(f){if(typeof f!="function")throw new Do(i);return function(){var h=arguments;switch(h.length){case 0:return!f.call(this);case 1:return!f.call(this,h[0]);case 2:return!f.call(this,h[0],h[1]);case 3:return!f.call(this,h[0],h[1],h[2])}return!f.apply(this,h)}}o(TN,"negate");function nse(f){return nU(2,f)}o(nse,"once");var ise=zre(function(f,h){h=h.length==1&&rr(h[0])?Fn(h[0],no(Pt())):Fn(ds(h,1),no(Pt()));var S=h.length;return mr(function(I){for(var B=-1,q=Us(I.length,S);++B<q;)I[B]=h[B].call(this,I[B]);return ro(f,this,I)})}),rP=mr(function(f,h){var S=Sp(h,zg(rP));return kl(f,w,r,h,S)}),uU=mr(function(f,h){var S=Sp(h,zg(uU));return kl(f,C,r,h,S)}),sse=Vl(function(f,h){return kl(f,R,r,r,r,h)});function ase(f,h){if(typeof f!="function")throw new Do(i);return h=h===r?h:or(h),mr(f,h)}o(ase,"rest");function ose(f,h){if(typeof f!="function")throw new Do(i);return h=h==null?0:Bi(or(h),0),mr(function(S){var I=S[h],B=Ap(S,0,h);return I&&yp(B,I),ro(f,this,B)})}o(ose,"spread");function use(f,h,S){var I=!0,B=!0;if(typeof f!="function")throw new Do(i);return Wn(S)&&(I="leading"in S?!!S.leading:I,B="trailing"in S?!!S.trailing:B),oU(f,h,{leading:I,maxWait:h,trailing:B})}o(use,"throttle");function cse(f){return rU(f,1)}o(cse,"unary");function lse(f,h){return rP(UO(h),f)}o(lse,"wrap");function fse(){if(!arguments.length)return[];var f=arguments[0];return rr(f)?f:[f]}o(fse,"castArray");function pse(f){return Oo(f,m)}o(pse,"clone");function hse(f,h){return h=typeof h=="function"?h:r,Oo(f,m,h)}o(hse,"cloneWith");function dse(f){return Oo(f,l|m)}o(dse,"cloneDeep");function mse(f,h){return h=typeof h=="function"?h:r,Oo(f,l|m,h)}o(mse,"cloneDeepWith");function gse(f,h){return h==null||Wj(f,h,Ki(h))}o(gse,"conformsTo");function wu(f,h){return f===h||f!==f&&h!==h}o(wu,"eq");var vse=xN(TO),yse=xN(function(f,h){return f>=h}),Wd=t5((function(){return arguments})())?t5:function(f){return si(f)&&Zr.call(f,"callee")&&!Mj.call(f,"callee")},rr=Te.isArray,Sse=wj?no(wj):Ire;function Aa(f){return f!=null&&RN(f.length)&&!Ul(f)}o(Aa,"isArrayLike");function mi(f){return si(f)&&Aa(f)}o(mi,"isArrayLikeObject");function xse(f){return f===!0||f===!1||si(f)&&ua(f)==F}o(xse,"isBoolean");var Np=Bte||hP,bse=Cj?no(Cj):Tre;function wse(f){return si(f)&&f.nodeType===1&&!Cx(f)}o(wse,"isElement");function Cse(f){if(f==null)return!0;if(Aa(f)&&(rr(f)||typeof f=="string"||typeof f.splice=="function"||Np(f)||Kg(f)||Wd(f)))return!f.length;var h=Ms(f);if(h==Pe||h==Bn)return!f.size;if(bx(f))return!_O(f).length;for(var S in f)if(Zr.call(f,S))return!1;return!0}o(Cse,"isEmpty");function Ese(f,h){return yx(f,h)}o(Ese,"isEqual");function Ase(f,h,S){S=typeof S=="function"?S:r;var I=S?S(f,h):r;return I===r?yx(f,h,r,S):!!I}o(Ase,"isEqualWith");function nP(f){if(!si(f))return!1;var h=ua(f);return h==J||h==oe||typeof f.message=="string"&&typeof f.name=="string"&&!Cx(f)}o(nP,"isError");function Nse(f){return typeof f=="number"&&Hj(f)}o(Nse,"isFinite");function Ul(f){if(!Wn(f))return!1;var h=ua(f);return h==Ge||h==Ue||h==it||h==eo}o(Ul,"isFunction");function cU(f){return typeof f=="number"&&f==or(f)}o(cU,"isInteger");function RN(f){return typeof f=="number"&&f>-1&&f%1==0&&f<=ee}o(RN,"isLength");function Wn(f){var h=typeof f;return f!=null&&(h=="object"||h=="function")}o(Wn,"isObject");function si(f){return f!=null&&typeof f=="object"}o(si,"isObjectLike");var lU=Ej?no(Ej):Dre;function Ise(f,h){return f===h||DO(f,h,GO(h))}o(Ise,"isMatch");function Tse(f,h,S){return S=typeof S=="function"?S:r,DO(f,h,GO(h),S)}o(Tse,"isMatchWith");function Rse(f){return fU(f)&&f!=+f}o(Rse,"isNaN");function Dse(f){if(hne(f))throw new Qt(n);return r5(f)}o(Dse,"isNative");function _se(f){return f===null}o(_se,"isNull");function Ose(f){return f==null}o(Ose,"isNil");function fU(f){return typeof f=="number"||si(f)&&ua(f)==bt}o(fU,"isNumber");function Cx(f){if(!si(f)||ua(f)!=Je)return!1;var h=rN(f);if(h===null)return!0;var S=Zr.call(h,"constructor")&&h.constructor;return typeof S=="function"&&S instanceof S&&YA.call(S)==Tte}o(Cx,"isPlainObject");var iP=Aj?no(Aj):_re;function Pse(f){return cU(f)&&f>=-ee&&f<=ee}o(Pse,"isSafeInteger");var pU=Nj?no(Nj):Ore;function DN(f){return typeof f=="string"||!rr(f)&&si(f)&&ua(f)==Ei}o(DN,"isString");function so(f){return typeof f=="symbol"||si(f)&&ua(f)==Vs}o(so,"isSymbol");var Kg=Ij?no(Ij):Pre;function Bse(f){return f===r}o(Bse,"isUndefined");function Fse(f){return si(f)&&Ms(f)==aa}o(Fse,"isWeakMap");function Lse(f){return si(f)&&ua(f)==Et}o(Lse,"isWeakSet");var kse=xN(OO),Vse=xN(function(f,h){return f<=h});function hU(f){if(!f)return[];if(Aa(f))return DN(f)?xu(f):Ea(f);if(lx&&f[lx])return gte(f[lx]());var h=Ms(f),S=h==Pe?SO:h==Bn?WA:$g;return S(f)}o(hU,"toArray");function Ml(f){if(!f)return f===0?f:0;if(f=Fo(f),f===ce||f===-ce){var h=f<0?-1:1;return h*pe}return f===f?f:0}o(Ml,"toFinite");function or(f){var h=Ml(f),S=h%1;return h===h?S?h-S:h:0}o(or,"toInteger");function dU(f){return f?Kd(or(f),0,Ye):0}o(dU,"toLength");function Fo(f){if(typeof f=="number")return f;if(so(f))return Ce;if(Wn(f)){var h=typeof f.valueOf=="function"?f.valueOf():f;f=Wn(h)?h+"":h}if(typeof f!="string")return f===0?f:+f;f=Pj(f);var S=See.test(f);return S||bee.test(f)?Zee(f.slice(2),S?2:8):nO.test(f)?Ce:+f}o(Fo,"toNumber");function mU(f){return bc(f,Na(f))}o(mU,"toPlainObject");function jse(f){return f?Kd(or(f),-ee,ee):f===0?f:0}o(jse,"toSafeInteger");function Xr(f){return f==null?"":io(f)}o(Xr,"toString");var Use=qg(function(f,h){if(bx(h)||Aa(h)){bc(h,Ki(h),f);return}for(var S in h)Zr.call(h,S)&&mx(f,S,h[S])}),gU=qg(function(f,h){bc(h,Na(h),f)}),_N=qg(function(f,h,S,I){bc(h,Na(h),f,I)}),Mse=qg(function(f,h,S,I){bc(h,Ki(h),f,I)}),qse=Vl(AO);function Hse(f,h){var S=Mg(f);return h==null?S:Xj(S,h)}o(Hse,"create");var zse=mr(function(f,h){f=cn(f);var S=-1,I=h.length,B=I>2?h[2]:r;for(B&&ca(h[0],h[1],B)&&(I=1);++S<I;)for(var q=h[S],Q=Na(q),te=-1,ge=Q.length;++te<ge;){var Be=Q[te],Ve=f[Be];(Ve===r||wu(Ve,Vg[Be])&&!Zr.call(f,Be))&&(f[Be]=q[Be])}return f}),Kse=mr(function(f){return f.push(r,P5),ro(vU,r,f)});function $se(f,h){return Rj(f,Pt(h,3),xc)}o($se,"findKey");function Gse(f,h){return Rj(f,Pt(h,3),IO)}o(Gse,"findLastKey");function Xse(f,h){return f==null?f:NO(f,Pt(h,3),Na)}o(Xse,"forIn");function Wse(f,h){return f==null?f:Zj(f,Pt(h,3),Na)}o(Wse,"forInRight");function Jse(f,h){return f&&xc(f,Pt(h,3))}o(Jse,"forOwn");function Qse(f,h){return f&&IO(f,Pt(h,3))}o(Qse,"forOwnRight");function Yse(f){return f==null?[]:pN(f,Ki(f))}o(Yse,"functions");function Zse(f){return f==null?[]:pN(f,Na(f))}o(Zse,"functionsIn");function sP(f,h,S){var I=f==null?r:$d(f,h);return I===r?S:I}o(sP,"get");function eae(f,h){return f!=null&&L5(f,h,Cre)}o(eae,"has");function aP(f,h){return f!=null&&L5(f,h,Ere)}o(aP,"hasIn");var tae=T5(function(f,h,S){h!=null&&typeof h.toString!="function"&&(h=ZA.call(h)),f[h]=S},uP(Ia)),rae=T5(function(f,h,S){h!=null&&typeof h.toString!="function"&&(h=ZA.call(h)),Zr.call(f,h)?f[h].push(S):f[h]=[S]},Pt),nae=mr(vx);function Ki(f){return Aa(f)?$j(f):_O(f)}o(Ki,"keys");function Na(f){return Aa(f)?$j(f,!0):Bre(f)}o(Na,"keysIn");function iae(f,h){var S={};return h=Pt(h,3),xc(f,function(I,B,q){Ll(S,h(I,B,q),I)}),S}o(iae,"mapKeys");function sae(f,h){var S={};return h=Pt(h,3),xc(f,function(I,B,q){Ll(S,B,h(I,B,q))}),S}o(sae,"mapValues");var aae=qg(function(f,h,S){hN(f,h,S)}),vU=qg(function(f,h,S,I){hN(f,h,S,I)}),oae=Vl(function(f,h){var S={};if(f==null)return S;var I=!1;h=Fn(h,function(q){return q=Ep(q,f),I||(I=q.length>1),q}),bc(f,KO(f),S),I&&(S=Oo(S,l|p|m,tne));for(var B=h.length;B--;)kO(S,h[B]);return S});function uae(f,h){return yU(f,TN(Pt(h)))}o(uae,"omitBy");var cae=Vl(function(f,h){return f==null?{}:Lre(f,h)});function yU(f,h){if(f==null)return{};var S=Fn(KO(f),function(I){return[I]});return h=Pt(h),c5(f,S,function(I,B){return h(I,B[0])})}o(yU,"pickBy");function lae(f,h,S){h=Ep(h,f);var I=-1,B=h.length;for(B||(B=1,f=r);++I<B;){var q=f==null?r:f[wc(h[I])];q===r&&(I=B,q=S),f=Ul(q)?q.call(f):q}return f}o(lae,"result");function fae(f,h,S){return f==null?f:Sx(f,h,S)}o(fae,"set");function pae(f,h,S,I){return I=typeof I=="function"?I:r,f==null?f:Sx(f,h,S,I)}o(pae,"setWith");var SU=_5(Ki),xU=_5(Na);function hae(f,h,S){var I=rr(f),B=I||Np(f)||Kg(f);if(h=Pt(h,4),S==null){var q=f&&f.constructor;B?S=I?new q:[]:Wn(f)?S=Ul(q)?Mg(rN(f)):{}:S={}}return(B?Ro:xc)(f,function(Q,te,ge){return h(S,Q,te,ge)}),S}o(hae,"transform");function dae(f,h){return f==null?!0:kO(f,h)}o(dae,"unset");function mae(f,h,S){return f==null?f:d5(f,h,UO(S))}o(mae,"update");function gae(f,h,S,I){return I=typeof I=="function"?I:r,f==null?f:d5(f,h,UO(S),I)}o(gae,"updateWith");function $g(f){return f==null?[]:yO(f,Ki(f))}o($g,"values");function vae(f){return f==null?[]:yO(f,Na(f))}o(vae,"valuesIn");function yae(f,h,S){return S===r&&(S=h,h=r),S!==r&&(S=Fo(S),S=S===S?S:0),h!==r&&(h=Fo(h),h=h===h?h:0),Kd(Fo(f),h,S)}o(yae,"clamp");function Sae(f,h,S){return h=Ml(h),S===r?(S=h,h=0):S=Ml(S),f=Fo(f),Are(f,h,S)}o(Sae,"inRange");function xae(f,h,S){if(S&&typeof S!="boolean"&&ca(f,h,S)&&(h=S=r),S===r&&(typeof h=="boolean"?(S=h,h=r):typeof f=="boolean"&&(S=f,f=r)),f===r&&h===r?(f=0,h=1):(f=Ml(f),h===r?(h=f,f=0):h=Ml(h)),f>h){var I=f;f=h,h=I}if(S||f%1||h%1){var B=zj();return Us(f+B*(h-f+Yee("1e-"+((B+"").length-1))),h)}return BO(f,h)}o(xae,"random");var bae=Hg(function(f,h,S){return h=h.toLowerCase(),f+(S?bU(h):h)});function bU(f){return oP(Xr(f).toLowerCase())}o(bU,"capitalize");function wU(f){return f=Xr(f),f&&f.replace(Cee,fte).replace(qee,"")}o(wU,"deburr");function wae(f,h,S){f=Xr(f),h=io(h);var I=f.length;S=S===r?I:Kd(or(S),0,I);var B=S;return S-=h.length,S>=0&&f.slice(S,B)==h}o(wae,"endsWith");function Cae(f){return f=Xr(f),f&&dt.test(f)?f.replace(de,pte):f}o(Cae,"escape");function Eae(f){return f=Xr(f),f&&Sc.test(f)?f.replace(Lr,"\\$&"):f}o(Eae,"escapeRegExp");var Aae=Hg(function(f,h,S){return f+(S?"-":"")+h.toLowerCase()}),Nae=Hg(function(f,h,S){return f+(S?" ":"")+h.toLowerCase()}),Iae=A5("toLowerCase");function Tae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;if(!h||I>=h)return f;var B=(h-I)/2;return SN(aN(B),S)+f+SN(sN(B),S)}o(Tae,"pad");function Rae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;return h&&I<h?f+SN(h-I,S):f}o(Rae,"padEnd");function Dae(f,h,S){f=Xr(f),h=or(h);var I=h?kg(f):0;return h&&I<h?SN(h-I,S)+f:f}o(Dae,"padStart");function _ae(f,h,S){return S||h==null?h=0:h&&(h=+h),Vte(Xr(f).replace(ux,""),h||0)}o(_ae,"parseInt1");function Oae(f,h,S){return(S?ca(f,h,S):h===r)?h=1:h=or(h),FO(Xr(f),h)}o(Oae,"repeat");function Pae(){var f=arguments,h=Xr(f[0]);return f.length<3?h:h.replace(f[1],f[2])}o(Pae,"replace");var Bae=Hg(function(f,h,S){return f+(S?"_":"")+h.toLowerCase()});function Fae(f,h,S){return S&&typeof S!="number"&&ca(f,h,S)&&(h=S=r),S=S===r?Ye:S>>>0,S?(f=Xr(f),f&&(typeof h=="string"||h!=null&&!iP(h))&&(h=io(h),!h&&Lg(f))?Ap(xu(f),0,S):f.split(h,S)):[]}o(Fae,"split");var Lae=Hg(function(f,h,S){return f+(S?" ":"")+oP(h)});function kae(f,h,S){return f=Xr(f),S=S==null?0:Kd(or(S),0,f.length),h=io(h),f.slice(S,S+h.length)==h}o(kae,"startsWith");function Vae(f,h,S){var I=U.templateSettings;S&&ca(f,h,S)&&(h=r),f=Xr(f),h=_N({},h,I,O5);var B=_N({},h.imports,I.imports,O5),q=Ki(B),Q=yO(B,q),te,ge,Be=0,Ve=h.interpolate||zA,Ke="__p += '",ut=xO((h.escape||zA).source+"|"+Ve.source+"|"+(Ve===ft?js:zA).source+"|"+(h.evaluate||zA).source+"|$","g"),Ct="//# sourceURL="+(Zr.call(h,"sourceURL")?(h.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Gee+"]")+`
29
+ `;f.replace(ut,function(Vt,yr,Rr,ao,la,oo){return Rr||(Rr=ao),Ke+=f.slice(Be,oo).replace(Eee,hte),yr&&(te=!0,Ke+=`' +
30
30
  __e(`+yr+`) +
31
31
  '`),la&&(ge=!0,Ke+=`';
32
32
  `+la+`;
@@ -42,7 +42,7 @@ __p += '`),Rr&&(Ke+=`' +
42
42
  function print() { __p += __j.call(arguments, '') }
43
43
  `:`;
44
44
  `)+Ke+`return __p
45
- }`;var fr=EU(function(){return $r(q,Ct+"return "+Ke).apply(r,Q)});if(fr.source=Ke,nP(fr))throw fr;return fr}o(Vae,"template");function jae(f){return Xr(f).toLowerCase()}o(jae,"toLower");function Uae(f){return Xr(f).toUpperCase()}o(Uae,"toUpper");function Mae(f,h,S){if(f=Xr(f),f&&(S||h===r))return Pj(f);if(!f||!(h=io(h)))return f;var I=xu(f),B=xu(h),q=Bj(I,B),Q=Fj(I,B)+1;return Ap(I,q,Q).join("")}o(Mae,"trim");function qae(f,h,S){if(f=Xr(f),f&&(S||h===r))return f.slice(0,kj(f)+1);if(!f||!(h=io(h)))return f;var I=xu(f),B=Fj(I,xu(h))+1;return Ap(I,0,B).join("")}o(qae,"trimEnd");function Hae(f,h,S){if(f=Xr(f),f&&(S||h===r))return f.replace(ux,"");if(!f||!(h=io(h)))return f;var I=xu(f),B=Bj(I,xu(h));return Ap(I,B).join("")}o(Hae,"trimStart");function zae(f,h){var S=_,I=H;if(Wn(h)){var B="separator"in h?h.separator:B;S="length"in h?or(h.length):S,I="omission"in h?io(h.omission):I}f=Xr(f);var q=f.length;if(Lg(f)){var Q=xu(f);q=Q.length}if(S>=q)return f;var te=S-kg(I);if(te<1)return I;var ge=Q?Ap(Q,0,te).join(""):f.slice(0,te);if(B===r)return ge+I;if(Q&&(te+=ge.length-te),iP(B)){if(f.slice(te).search(B)){var Be,Ve=ge;for(B.global||(B=xO(B.source,Xr(Su.exec(B))+"g")),B.lastIndex=0;Be=B.exec(Ve);)var Ke=Be.index;ge=ge.slice(0,Ke===r?te:Ke)}}else if(f.indexOf(io(B),te)!=te){var ct=ge.lastIndexOf(B);ct>-1&&(ge=ge.slice(0,ct))}return ge+I}o(zae,"truncate");function Kae(f){return f=Xr(f),f&&G.test(f)?f.replace(se,xte):f}o(Kae,"unescape");var $ae=Hg(function(f,h,S){return f+(S?" ":"")+h.toUpperCase()}),oP=A5("toUpperCase");function CU(f,h,S){return f=Xr(f),h=S?r:h,h===r?mte(f)?Cte(f):ate(f):f.match(h)||[]}o(CU,"words");var EU=mr(function(f,h){try{return ro(f,r,h)}catch(S){return nP(S)?S:new Qt(S)}}),Gae=Vl(function(f,h){return Ro(h,function(S){S=wc(S),Ll(f,S,tP(f[S],f))}),f});function Xae(f){var h=f==null?0:f.length,S=Pt();return f=h?Fn(f,function(I){if(typeof I[1]!="function")throw new Do(i);return[S(I[0]),I[1]]}):[],mr(function(I){for(var B=-1;++B<h;){var q=f[B];if(ro(q[0],this,I))return ro(q[1],this,I)}})}o(Xae,"cond");function Wae(f){return xre(Oo(f,l))}o(Wae,"conforms");function uP(f){return function(){return f}}o(uP,"constant");function Jae(f,h){return f==null||f!==f?h:f}o(Jae,"defaultTo");var Qae=I5(),Yae=I5(!0);function Ia(f){return f}o(Ia,"identity");function cP(f){return n5(typeof f=="function"?f:Oo(f,l))}o(cP,"iteratee");function Zae(f){return s5(Oo(f,l))}o(Zae,"matches");function eoe(f,h){return a5(f,Oo(h,l))}o(eoe,"matchesProperty");var toe=mr(function(f,h){return function(S){return vx(S,f,h)}}),roe=mr(function(f,h){return function(S){return vx(f,S,h)}});function lP(f,h,S){var I=Ki(h),B=pN(h,I);S==null&&!(Wn(h)&&(B.length||!I.length))&&(S=h,h=f,f=this,B=pN(h,Ki(h)));var q=!(Wn(S)&&"chain"in S)||!!S.chain,Q=Ul(f);return Ro(B,function(te){var ge=h[te];f[te]=ge,Q&&(f.prototype[te]=function(){var Be=this.__chain__;if(q||Be){var Ve=f(this.__wrapped__),Ke=Ve.__actions__=Ea(this.__actions__);return Ke.push({func:ge,args:arguments,thisArg:f}),Ve.__chain__=Be,Ve}return ge.apply(f,yp([this.value()],arguments))})}),f}o(lP,"mixin");function noe(){return zi._===this&&(zi._=Rte),this}o(noe,"noConflict");function fP(){}o(fP,"noop");function ioe(f){return f=or(f),mr(function(h){return o5(h,f)})}o(ioe,"nthArg");var soe=qO(Fn),aoe=qO(Tj),ooe=qO(hO);function AU(f){return WO(f)?dO(wc(f)):kre(f)}o(AU,"property");function uoe(f){return function(h){return f==null?r:$d(f,h)}}o(uoe,"propertyOf");var coe=R5(),loe=R5(!0);function pP(){return[]}o(pP,"stubArray");function hP(){return!1}o(hP,"stubFalse");function foe(){return{}}o(foe,"stubObject");function poe(){return""}o(poe,"stubString");function hoe(){return!0}o(hoe,"stubTrue");function doe(f,h){if(f=or(f),f<1||f>ee)return[];var S=Ye,I=Us(f,Ye);h=Pt(h),f-=Ye;for(var B=vO(I,h);++S<f;)h(S);return B}o(doe,"times");function moe(f){return rr(f)?Fn(f,wc):so(f)?[f]:Ea(K5(Xr(f)))}o(moe,"toPath");function goe(f){var h=++Ite;return Xr(f)+h}o(goe,"uniqueId");var voe=yN(function(f,h){return f+h},0),yoe=HO("ceil"),Soe=yN(function(f,h){return f/h},1),xoe=HO("floor");function boe(f){return f&&f.length?fN(f,Ia,TO):r}o(boe,"max");function woe(f,h){return f&&f.length?fN(f,Pt(h,2),TO):r}o(woe,"maxBy");function Coe(f){return _j(f,Ia)}o(Coe,"mean");function Eoe(f,h){return _j(f,Pt(h,2))}o(Eoe,"meanBy");function Aoe(f){return f&&f.length?fN(f,Ia,OO):r}o(Aoe,"min");function Noe(f,h){return f&&f.length?fN(f,Pt(h,2),OO):r}o(Noe,"minBy");var Ioe=yN(function(f,h){return f*h},1),Toe=HO("round"),Roe=yN(function(f,h){return f-h},0);function Doe(f){return f&&f.length?gO(f,Ia):0}o(Doe,"sum");function _oe(f,h){return f&&f.length?gO(f,Pt(h,2)):0}return o(_oe,"sumBy"),U.after=Zie,U.ary=rU,U.assign=Use,U.assignIn=gU,U.assignInWith=_N,U.assignWith=Mse,U.at=qse,U.before=nU,U.bind=tP,U.bindAll=Gae,U.bindKey=iU,U.castArray=fse,U.chain=Z5,U.chunk=xne,U.compact=bne,U.concat=wne,U.cond=Xae,U.conforms=Wae,U.constant=uP,U.countBy=Die,U.create=Hse,U.curry=sU,U.curryRight=aU,U.debounce=oU,U.defaults=zse,U.defaultsDeep=Kse,U.defer=ese,U.delay=tse,U.difference=Cne,U.differenceBy=Ene,U.differenceWith=Ane,U.drop=Nne,U.dropRight=Ine,U.dropRightWhile=Tne,U.dropWhile=Rne,U.fill=Dne,U.filter=Oie,U.flatMap=Fie,U.flatMapDeep=Lie,U.flatMapDepth=kie,U.flatten=W5,U.flattenDeep=_ne,U.flattenDepth=One,U.flip=rse,U.flow=Qae,U.flowRight=Yae,U.fromPairs=Pne,U.functions=Yse,U.functionsIn=Zse,U.groupBy=Vie,U.initial=Fne,U.intersection=Lne,U.intersectionBy=kne,U.intersectionWith=Vne,U.invert=tae,U.invertBy=rae,U.invokeMap=Uie,U.iteratee=cP,U.keyBy=Mie,U.keys=Ki,U.keysIn=Na,U.map=AN,U.mapKeys=iae,U.mapValues=sae,U.matches=Zae,U.matchesProperty=eoe,U.memoize=IN,U.merge=aae,U.mergeWith=vU,U.method=toe,U.methodOf=roe,U.mixin=lP,U.negate=TN,U.nthArg=ioe,U.omit=oae,U.omitBy=uae,U.once=nse,U.orderBy=qie,U.over=soe,U.overArgs=ise,U.overEvery=aoe,U.overSome=ooe,U.partial=rP,U.partialRight=uU,U.partition=Hie,U.pick=cae,U.pickBy=yU,U.property=AU,U.propertyOf=uoe,U.pull=qne,U.pullAll=Q5,U.pullAllBy=Hne,U.pullAllWith=zne,U.pullAt=Kne,U.range=coe,U.rangeRight=loe,U.rearg=sse,U.reject=$ie,U.remove=$ne,U.rest=ase,U.reverse=ZO,U.sampleSize=Xie,U.set=fae,U.setWith=pae,U.shuffle=Wie,U.slice=Gne,U.sortBy=Yie,U.sortedUniq=eie,U.sortedUniqBy=tie,U.split=Fae,U.spread=ose,U.tail=rie,U.take=nie,U.takeRight=iie,U.takeRightWhile=sie,U.takeWhile=aie,U.tap=bie,U.throttle=use,U.thru=EN,U.toArray=hU,U.toPairs=SU,U.toPairsIn=xU,U.toPath=moe,U.toPlainObject=mU,U.transform=hae,U.unary=cse,U.union=oie,U.unionBy=uie,U.unionWith=cie,U.uniq=lie,U.uniqBy=fie,U.uniqWith=pie,U.unset=dae,U.unzip=eP,U.unzipWith=Y5,U.update=mae,U.updateWith=gae,U.values=$g,U.valuesIn=vae,U.without=hie,U.words=CU,U.wrap=lse,U.xor=die,U.xorBy=mie,U.xorWith=gie,U.zip=vie,U.zipObject=yie,U.zipObjectDeep=Sie,U.zipWith=xie,U.entries=SU,U.entriesIn=xU,U.extend=gU,U.extendWith=_N,lP(U,U),U.add=voe,U.attempt=EU,U.camelCase=bae,U.capitalize=bU,U.ceil=yoe,U.clamp=yae,U.clone=pse,U.cloneDeep=dse,U.cloneDeepWith=mse,U.cloneWith=hse,U.conformsTo=gse,U.deburr=wU,U.defaultTo=Jae,U.divide=Soe,U.endsWith=wae,U.eq=wu,U.escape=Cae,U.escapeRegExp=Eae,U.every=_ie,U.find=Pie,U.findIndex=G5,U.findKey=$se,U.findLast=Bie,U.findLastIndex=X5,U.findLastKey=Gse,U.floor=xoe,U.forEach=eU,U.forEachRight=tU,U.forIn=Xse,U.forInRight=Wse,U.forOwn=Jse,U.forOwnRight=Qse,U.get=sP,U.gt=vse,U.gte=yse,U.has=eae,U.hasIn=aP,U.head=J5,U.identity=Ia,U.includes=jie,U.indexOf=Bne,U.inRange=Sae,U.invoke=nae,U.isArguments=Wd,U.isArray=rr,U.isArrayBuffer=Sse,U.isArrayLike=Aa,U.isArrayLikeObject=mi,U.isBoolean=xse,U.isBuffer=Np,U.isDate=bse,U.isElement=wse,U.isEmpty=Cse,U.isEqual=Ese,U.isEqualWith=Ase,U.isError=nP,U.isFinite=Nse,U.isFunction=Ul,U.isInteger=cU,U.isLength=RN,U.isMap=lU,U.isMatch=Ise,U.isMatchWith=Tse,U.isNaN=Rse,U.isNative=Dse,U.isNil=Ose,U.isNull=_se,U.isNumber=fU,U.isObject=Wn,U.isObjectLike=si,U.isPlainObject=Cx,U.isRegExp=iP,U.isSafeInteger=Pse,U.isSet=pU,U.isString=DN,U.isSymbol=so,U.isTypedArray=Kg,U.isUndefined=Bse,U.isWeakMap=Fse,U.isWeakSet=Lse,U.join=jne,U.kebabCase=Aae,U.last=Bo,U.lastIndexOf=Une,U.lowerCase=Nae,U.lowerFirst=Iae,U.lt=kse,U.lte=Vse,U.max=boe,U.maxBy=woe,U.mean=Coe,U.meanBy=Eoe,U.min=Aoe,U.minBy=Noe,U.stubArray=pP,U.stubFalse=hP,U.stubObject=foe,U.stubString=poe,U.stubTrue=hoe,U.multiply=Ioe,U.nth=Mne,U.noConflict=noe,U.noop=fP,U.now=NN,U.pad=Tae,U.padEnd=Rae,U.padStart=Dae,U.parseInt=_ae,U.random=xae,U.reduce=zie,U.reduceRight=Kie,U.repeat=Oae,U.replace=Pae,U.result=lae,U.round=Toe,U.runInContext=he,U.sample=Gie,U.size=Jie,U.snakeCase=Bae,U.some=Qie,U.sortedIndex=Xne,U.sortedIndexBy=Wne,U.sortedIndexOf=Jne,U.sortedLastIndex=Qne,U.sortedLastIndexBy=Yne,U.sortedLastIndexOf=Zne,U.startCase=Lae,U.startsWith=kae,U.subtract=Roe,U.sum=Doe,U.sumBy=_oe,U.template=Vae,U.times=doe,U.toFinite=Ml,U.toInteger=or,U.toLength=dU,U.toLower=jae,U.toNumber=Fo,U.toSafeInteger=jse,U.toString=Xr,U.toUpper=Uae,U.trim=Mae,U.trimEnd=qae,U.trimStart=Hae,U.truncate=zae,U.unescape=Kae,U.uniqueId=goe,U.upperCase=$ae,U.upperFirst=oP,U.each=eU,U.eachRight=tU,U.first=J5,lP(U,(function(){var f={};return xc(U,function(h,S){Zr.call(U.prototype,S)||(f[S]=h)}),f})(),{chain:!1}),U.VERSION=e,Ro(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){U[f].placeholder=U}),Ro(["drop","take"],function(f,h){Er.prototype[f]=function(S){S=S===r?1:Bi(or(S),0);var I=this.__filtered__&&!h?new Er(this):this.clone();return I.__filtered__?I.__takeCount__=Us(S,I.__takeCount__):I.__views__.push({size:Us(S,Ye),type:f+(I.__dir__<0?"Right":"")}),I},Er.prototype[f+"Right"]=function(S){return this.reverse()[f](S).reverse()}}),Ro(["filter","map","takeWhile"],function(f,h){var S=h+1,I=S==X||S==fe;Er.prototype[f]=function(B){var q=this.clone();return q.__iteratees__.push({iteratee:Pt(B,3),type:S}),q.__filtered__=q.__filtered__||I,q}}),Ro(["head","last"],function(f,h){var S="take"+(h?"Right":"");Er.prototype[f]=function(){return this[S](1).value()[0]}}),Ro(["initial","tail"],function(f,h){var S="drop"+(h?"":"Right");Er.prototype[f]=function(){return this.__filtered__?new Er(this):this[S](1)}}),Er.prototype.compact=function(){return this.filter(Ia)},Er.prototype.find=function(f){return this.filter(f).head()},Er.prototype.findLast=function(f){return this.reverse().find(f)},Er.prototype.invokeMap=mr(function(f,h){return typeof f=="function"?new Er(this):this.map(function(S){return vx(S,f,h)})}),Er.prototype.reject=function(f){return this.filter(TN(Pt(f)))},Er.prototype.slice=function(f,h){f=or(f);var S=this;return S.__filtered__&&(f>0||h<0)?new Er(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),h!==r&&(h=or(h),S=h<0?S.dropRight(-h):S.take(h-f)),S)},Er.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Er.prototype.toArray=function(){return this.take(Ye)},xc(Er.prototype,function(f,h){var S=/^(?:filter|find|map|reject)|While$/.test(h),I=/^(?:head|last)$/.test(h),B=U[I?"take"+(h=="last"?"Right":""):h],q=I||/^find/.test(h);B&&(U.prototype[h]=function(){var Q=this.__wrapped__,te=I?[1]:arguments,ge=Q instanceof Er,Be=te[0],Ve=ge||rr(Q),Ke=o(function(yr){var Rr=B.apply(U,yp([yr],te));return I&&ct?Rr[0]:Rr},"interceptor");Ve&&S&&typeof Be=="function"&&Be.length!=1&&(ge=Ve=!1);var ct=this.__chain__,Ct=!!this.__actions__.length,kt=q&&!ct,fr=ge&&!Ct;if(!q&&Ve){Q=fr?Q:new Er(this);var Vt=f.apply(Q,te);return Vt.__actions__.push({func:EN,args:[Ke],thisArg:r}),new _o(Vt,ct)}return kt&&fr?f.apply(this,te):(Vt=this.thru(Ke),kt?I?Vt.value()[0]:Vt.value():Vt)})}),Ro(["pop","push","shift","sort","splice","unshift"],function(f){var h=JA[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);U.prototype[f]=function(){var B=arguments;if(I&&!this.__chain__){var q=this.value();return h.apply(rr(q)?q:[],B)}return this[S](function(Q){return h.apply(rr(Q)?Q:[],B)})}}),xc(Er.prototype,function(f,h){var S=U[h];if(S){var I=S.name+"";Zr.call(Ug,I)||(Ug[I]=[]),Ug[I].push({name:h,func:S})}}),Ug[vN(r,b).name]=[{name:"wrapper",func:r}],Er.prototype.clone=Kte,Er.prototype.reverse=$te,Er.prototype.value=Gte,U.prototype.at=wie,U.prototype.chain=Cie,U.prototype.commit=Eie,U.prototype.next=Aie,U.prototype.plant=Iie,U.prototype.reverse=Tie,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Rie,U.prototype.first=U.prototype.head,lx&&(U.prototype[lx]=Nie),U},"runInContext"),xp=Ete();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(zi._=xp,define(function(){return xp})):Md?((Md.exports=xp)._=xp,cO._=xp):zi._=xp}).call(gv)});var E9=Z((LTe,C9)=>{"use strict";var w9=require("stream").Stream,zpe=require("util");C9.exports=Ru;function Ru(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(Ru,"DelayedStream");zpe.inherits(Ru,w9);Ru.create=function(r,e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];t.source=r;var i=r.emit;return r.emit=function(){return t._handleEmit(arguments),i.apply(r,arguments)},r.on("error",function(){}),t.pauseStream&&r.pause(),t};Object.defineProperty(Ru.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});Ru.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Ru.prototype.resume=function(){this._released||this.release(),this.source.resume()};Ru.prototype.pause=function(){this.source.pause()};Ru.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(r){this.emit.apply(this,r)}).bind(this)),this._bufferedEvents=[]};Ru.prototype.pipe=function(){var r=w9.prototype.pipe.apply(this,arguments);return this.resume(),r};Ru.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}r[0]==="data"&&(this.dataSize+=r[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(r)};Ru.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}}});var T9=Z((VTe,I9)=>{"use strict";var Kpe=require("util"),N9=require("stream").Stream,A9=E9();I9.exports=oi;function oi(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}o(oi,"CombinedStream");Kpe.inherits(oi,N9);oi.create=function(r){var e=new this;r=r||{};for(var t in r)e[t]=r[t];return e};oi.isStreamLike=function(r){return typeof r!="function"&&typeof r!="string"&&typeof r!="boolean"&&typeof r!="number"&&!Buffer.isBuffer(r)};oi.prototype.append=function(r){var e=oi.isStreamLike(r);if(e){if(!(r instanceof A9)){var t=A9.create(r,{maxDataSize:1/0,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this)),r=t}this._handleErrors(r),this.pauseStreams&&r.pause()}return this._streams.push(r),this};oi.prototype.pipe=function(r,e){return N9.prototype.pipe.call(this,r,e),this.resume(),r};oi.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};oi.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r>"u"){this.end();return}if(typeof r!="function"){this._pipeNext(r);return}var e=r;e((function(t){var n=oi.isStreamLike(t);n&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}).bind(this))};oi.prototype._pipeNext=function(r){this._currentStream=r;var e=oi.isStreamLike(r);if(e){r.on("end",this._getNext.bind(this)),r.pipe(this,{end:!1});return}var t=r;this.write(t),this._getNext()};oi.prototype._handleErrors=function(r){var e=this;r.on("error",function(t){e._emitError(t)})};oi.prototype.write=function(r){this.emit("data",r)};oi.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};oi.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};oi.prototype.end=function(){this._reset(),this.emit("end")};oi.prototype.destroy=function(){this._reset(),this.emit("close")};oi.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};oi.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))}};oi.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach(function(e){e.dataSize&&(r.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};oi.prototype._emitError=function(r){this._reset(),this.emit("error",r)}});var R9=Z((UTe,$pe)=>{$pe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var _9=Z((MTe,D9)=>{"use strict";D9.exports=R9()});var B9=Z(Oa=>{"use strict";var I2=_9(),Gpe=require("path").extname,O9=/^\s*([^;\s]*)(?:;|\s|$)/,Xpe=/^text\//i;Oa.charset=P9;Oa.charsets={lookup:P9};Oa.contentType=Wpe;Oa.extension=Jpe;Oa.extensions=Object.create(null);Oa.lookup=Qpe;Oa.types=Object.create(null);Ype(Oa.extensions,Oa.types);function P9(r){if(!r||typeof r!="string")return!1;var e=O9.exec(r),t=e&&I2[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&Xpe.test(e[1])?"UTF-8":!1}o(P9,"charset");function Wpe(r){if(!r||typeof r!="string")return!1;var e=r.indexOf("/")===-1?Oa.lookup(r):r;if(!e)return!1;if(e.indexOf("charset")===-1){var t=Oa.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}o(Wpe,"contentType");function Jpe(r){if(!r||typeof r!="string")return!1;var e=O9.exec(r),t=e&&Oa.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}o(Jpe,"extension");function Qpe(r){if(!r||typeof r!="string")return!1;var e=Gpe("x."+r).toLowerCase().substr(1);return e&&Oa.types[e]||!1}o(Qpe,"lookup");function Ype(r,e){var t=["nginx","apache",void 0,"iana"];Object.keys(I2).forEach(o(function(i){var s=I2[i],a=s.extensions;if(!(!a||!a.length)){r[i]=a;for(var u=0;u<a.length;u++){var c=a[u];if(e[c]){var l=t.indexOf(I2[e[c]].source),p=t.indexOf(s.source);if(e[c]!=="application/octet-stream"&&(l>p||l===p&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}},"forEachMimeType"))}o(Ype,"populateMaps")});var L9=Z((zTe,F9)=>{"use strict";F9.exports=Zpe;function Zpe(r){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(r):setTimeout(r,0)}o(Zpe,"defer")});var PB=Z(($Te,V9)=>{"use strict";var k9=L9();V9.exports=ehe;function ehe(r){var e=!1;return k9(function(){e=!0}),o(function(n,i){e?r(n,i):k9(o(function(){r(n,i)},"nextTick_callback"))},"async_callback")}o(ehe,"async")});var BB=Z((XTe,j9)=>{"use strict";j9.exports=the;function the(r){Object.keys(r.jobs).forEach(rhe.bind(r)),r.jobs={}}o(the,"abort");function rhe(r){typeof this.jobs[r]=="function"&&this.jobs[r]()}o(rhe,"clean")});var FB=Z((JTe,M9)=>{"use strict";var U9=PB(),nhe=BB();M9.exports=ihe;function ihe(r,e,t,n){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=she(e,i,r[i],function(s,a){i in t.jobs&&(delete t.jobs[i],s?nhe(t):t.results[i]=a,n(s,t.results))})}o(ihe,"iterate");function she(r,e,t,n){var i;return r.length==2?i=r(t,U9(n)):i=r(t,e,U9(n)),i}o(she,"runJob")});var LB=Z((YTe,q9)=>{"use strict";q9.exports=ahe;function ahe(r,e){var t=!Array.isArray(r),n={index:0,keyedList:t||e?Object.keys(r):null,jobs:{},results:t?{}:[],size:t?Object.keys(r).length:r.length};return e&&n.keyedList.sort(t?e:function(i,s){return e(r[i],r[s])}),n}o(ahe,"state")});var kB=Z((eRe,H9)=>{"use strict";var ohe=BB(),uhe=PB();H9.exports=che;function che(r){Object.keys(this.jobs).length&&(this.index=this.size,ohe(this),uhe(r)(null,this.results))}o(che,"terminator")});var K9=Z((rRe,z9)=>{"use strict";var lhe=FB(),fhe=LB(),phe=kB();z9.exports=hhe;function hhe(r,e,t){for(var n=fhe(r);n.index<(n.keyedList||r).length;)lhe(r,e,n,function(i,s){if(i){t(i,s);return}if(Object.keys(n.jobs).length===0){t(null,n.results);return}}),n.index++;return phe.bind(n,t)}o(hhe,"parallel")});var VB=Z((iRe,T2)=>{"use strict";var $9=FB(),dhe=LB(),mhe=kB();T2.exports=ghe;T2.exports.ascending=G9;T2.exports.descending=vhe;function ghe(r,e,t,n){var i=dhe(r,t);return $9(r,e,i,o(function s(a,u){if(a){n(a,u);return}if(i.index++,i.index<(i.keyedList||r).length){$9(r,e,i,s);return}n(null,i.results)},"iteratorHandler")),mhe.bind(i,n)}o(ghe,"serialOrdered");function G9(r,e){return r<e?-1:r>e?1:0}o(G9,"ascending");function vhe(r,e){return-1*G9(r,e)}o(vhe,"descending")});var W9=Z((aRe,X9)=>{"use strict";var yhe=VB();X9.exports=She;function She(r,e,t){return yhe(r,e,null,t)}o(She,"serial")});var Q9=Z((uRe,J9)=>{"use strict";J9.exports={parallel:K9(),serial:W9(),serialOrdered:VB()}});var jB=Z((cRe,Y9)=>{"use strict";Y9.exports=Object});var eq=Z((lRe,Z9)=>{"use strict";Z9.exports=Error});var rq=Z((fRe,tq)=>{"use strict";tq.exports=EvalError});var iq=Z((pRe,nq)=>{"use strict";nq.exports=RangeError});var aq=Z((hRe,sq)=>{"use strict";sq.exports=ReferenceError});var uq=Z((dRe,oq)=>{"use strict";oq.exports=SyntaxError});var R2=Z((mRe,cq)=>{"use strict";cq.exports=TypeError});var fq=Z((gRe,lq)=>{"use strict";lq.exports=URIError});var hq=Z((vRe,pq)=>{"use strict";pq.exports=Math.abs});var mq=Z((yRe,dq)=>{"use strict";dq.exports=Math.floor});var vq=Z((SRe,gq)=>{"use strict";gq.exports=Math.max});var Sq=Z((xRe,yq)=>{"use strict";yq.exports=Math.min});var bq=Z((bRe,xq)=>{"use strict";xq.exports=Math.pow});var Cq=Z((wRe,wq)=>{"use strict";wq.exports=Math.round});var Aq=Z((CRe,Eq)=>{"use strict";Eq.exports=Number.isNaN||o(function(e){return e!==e},"isNaN")});var Iq=Z((ARe,Nq)=>{"use strict";var xhe=Aq();Nq.exports=o(function(e){return xhe(e)||e===0?e:e<0?-1:1},"sign")});var Rq=Z((IRe,Tq)=>{"use strict";Tq.exports=Object.getOwnPropertyDescriptor});var UB=Z((TRe,Dq)=>{"use strict";var D2=Rq();if(D2)try{D2([],"length")}catch{D2=null}Dq.exports=D2});var Oq=Z((RRe,_q)=>{"use strict";var _2=Object.defineProperty||!1;if(_2)try{_2({},"a",{value:1})}catch{_2=!1}_q.exports=_2});var MB=Z((DRe,Pq)=>{"use strict";Pq.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Lq=Z((ORe,Fq)=>{"use strict";var Bq=typeof Symbol<"u"&&Symbol,bhe=MB();Fq.exports=o(function(){return typeof Bq!="function"||typeof Symbol!="function"||typeof Bq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bhe()},"hasNativeSymbols")});var qB=Z((BRe,kq)=>{"use strict";kq.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var HB=Z((FRe,Vq)=>{"use strict";var whe=jB();Vq.exports=whe.getPrototypeOf||null});var Mq=Z((LRe,Uq)=>{"use strict";var Che="Function.prototype.bind called on incompatible ",Ehe=Object.prototype.toString,Ahe=Math.max,Nhe="[object Function]",jq=o(function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},"concatty"),Ihe=o(function(e,t){for(var n=[],i=t||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},"slicy"),The=o(function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},"joiny");Uq.exports=o(function(e){var t=this;if(typeof t!="function"||Ehe.apply(t)!==Nhe)throw new TypeError(Che+t);for(var n=Ihe(arguments,1),i,s=o(function(){if(this instanceof i){var p=t.apply(this,jq(n,arguments));return Object(p)===p?p:this}return t.apply(e,jq(n,arguments))},"binder"),a=Ahe(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+The(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var l=o(function(){},"Empty");l.prototype=t.prototype,i.prototype=new l,l.prototype=null}return i},"bind")});var Yx=Z((VRe,qq)=>{"use strict";var Rhe=Mq();qq.exports=Function.prototype.bind||Rhe});var O2=Z((jRe,Hq)=>{"use strict";Hq.exports=Function.prototype.call});var zB=Z((URe,zq)=>{"use strict";zq.exports=Function.prototype.apply});var $q=Z((MRe,Kq)=>{"use strict";Kq.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Xq=Z((qRe,Gq)=>{"use strict";var Dhe=Yx(),_he=zB(),Ohe=O2(),Phe=$q();Gq.exports=Phe||Dhe.call(Ohe,_he)});var Jq=Z((HRe,Wq)=>{"use strict";var Bhe=Yx(),Fhe=R2(),Lhe=O2(),khe=Xq();Wq.exports=o(function(e){if(e.length<1||typeof e[0]!="function")throw new Fhe("a function is required");return khe(Bhe,Lhe,e)},"callBindBasic")});var rH=Z((KRe,tH)=>{"use strict";var Vhe=Jq(),Qq=UB(),Zq;try{Zq=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var KB=!!Zq&&Qq&&Qq(Object.prototype,"__proto__"),eH=Object,Yq=eH.getPrototypeOf;tH.exports=KB&&typeof KB.get=="function"?Vhe([KB.get]):typeof Yq=="function"?o(function(e){return Yq(e==null?e:eH(e))},"getDunder"):!1});var oH=Z((GRe,aH)=>{"use strict";var nH=qB(),iH=HB(),sH=rH();aH.exports=nH?o(function(e){return nH(e)},"getProto"):iH?o(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return iH(e)},"getProto"):sH?o(function(e){return sH(e)},"getProto"):null});var P2=Z((WRe,uH)=>{"use strict";var jhe=Function.prototype.call,Uhe=Object.prototype.hasOwnProperty,Mhe=Yx();uH.exports=Mhe.call(jhe,Uhe)});var mH=Z((JRe,dH)=>{"use strict";var wr,qhe=jB(),Hhe=eq(),zhe=rq(),Khe=iq(),$he=aq(),xv=uq(),Sv=R2(),Ghe=fq(),Xhe=hq(),Whe=mq(),Jhe=vq(),Qhe=Sq(),Yhe=bq(),Zhe=Cq(),ede=Iq(),pH=Function,$B=o(function(r){try{return pH('"use strict"; return ('+r+").constructor;")()}catch{}},"getEvalledConstructor"),Zx=UB(),tde=Oq(),GB=o(function(){throw new Sv},"throwTypeError"),rde=Zx?(function(){try{return arguments.callee,GB}catch{try{return Zx(arguments,"callee").get}catch{return GB}}})():GB,vv=Lq()(),Yi=oH(),nde=HB(),ide=qB(),hH=zB(),eb=O2(),yv={},sde=typeof Uint8Array>"u"||!Yi?wr:Yi(Uint8Array),cm={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wr:ArrayBuffer,"%ArrayIteratorPrototype%":vv&&Yi?Yi([][Symbol.iterator]()):wr,"%AsyncFromSyncIteratorPrototype%":wr,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics>"u"?wr:Atomics,"%BigInt%":typeof BigInt>"u"?wr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hhe,"%eval%":eval,"%EvalError%":zhe,"%Float16Array%":typeof Float16Array>"u"?wr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?wr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wr:FinalizationRegistry,"%Function%":pH,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array>"u"?wr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vv&&Yi?Yi(Yi([][Symbol.iterator]())):wr,"%JSON%":typeof JSON=="object"?JSON:wr,"%Map%":typeof Map>"u"?wr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vv||!Yi?wr:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qhe,"%Object.getOwnPropertyDescriptor%":Zx,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wr:Promise,"%Proxy%":typeof Proxy>"u"?wr:Proxy,"%RangeError%":Khe,"%ReferenceError%":$he,"%Reflect%":typeof Reflect>"u"?wr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vv||!Yi?wr:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vv&&Yi?Yi(""[Symbol.iterator]()):wr,"%Symbol%":vv?Symbol:wr,"%SyntaxError%":xv,"%ThrowTypeError%":rde,"%TypedArray%":sde,"%TypeError%":Sv,"%Uint8Array%":typeof Uint8Array>"u"?wr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wr:Uint32Array,"%URIError%":Ghe,"%WeakMap%":typeof WeakMap>"u"?wr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wr:WeakSet,"%Function.prototype.call%":eb,"%Function.prototype.apply%":hH,"%Object.defineProperty%":tde,"%Object.getPrototypeOf%":nde,"%Math.abs%":Xhe,"%Math.floor%":Whe,"%Math.max%":Jhe,"%Math.min%":Qhe,"%Math.pow%":Yhe,"%Math.round%":Zhe,"%Math.sign%":ede,"%Reflect.getPrototypeOf%":ide};if(Yi)try{null.error}catch(r){cH=Yi(Yi(r)),cm["%Error.prototype%"]=cH}var cH,ade=o(function r(e){var t;if(e==="%AsyncFunction%")t=$B("async function () {}");else if(e==="%GeneratorFunction%")t=$B("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=$B("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&Yi&&(t=Yi(i.prototype))}return cm[e]=t,t},"doEval"),lH={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tb=Yx(),B2=P2(),ode=tb.call(eb,Array.prototype.concat),ude=tb.call(hH,Array.prototype.splice),fH=tb.call(eb,String.prototype.replace),F2=tb.call(eb,String.prototype.slice),cde=tb.call(eb,RegExp.prototype.exec),lde=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fde=/\\(\\)?/g,pde=o(function(e){var t=F2(e,0,1),n=F2(e,-1);if(t==="%"&&n!=="%")throw new xv("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new xv("invalid intrinsic syntax, expected opening `%`");var i=[];return fH(e,lde,function(s,a,u,c){i[i.length]=u?fH(c,fde,"$1"):a||s}),i},"stringToPath"),hde=o(function(e,t){var n=e,i;if(B2(lH,n)&&(i=lH[n],n="%"+i[0]+"%"),B2(cm,n)){var s=cm[n];if(s===yv&&(s=ade(n)),typeof s>"u"&&!t)throw new Sv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new xv("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");dH.exports=o(function(e,t){if(typeof e!="string"||e.length===0)throw new Sv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Sv('"allowMissing" argument must be a boolean');if(cde(/^%?[^%]*%?$/,e)===null)throw new xv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pde(e),i=n.length>0?n[0]:"",s=hde("%"+i+"%",t),a=s.name,u=s.value,c=!1,l=s.alias;l&&(i=l[0],ude(n,ode([0,1],l)));for(var p=1,m=!0;p<n.length;p+=1){var g=n[p],y=F2(g,0,1),v=F2(g,-1);if((y==='"'||y==="'"||y==="`"||v==='"'||v==="'"||v==="`")&&y!==v)throw new xv("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(c=!0),i+="."+g,a="%"+i+"%",B2(cm,a))u=cm[a];else if(u!=null){if(!(g in u)){if(!t)throw new Sv("base intrinsic for "+e+" exists, but the property is not available.");return}if(Zx&&p+1>=n.length){var b=Zx(u,g);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[g]}else m=B2(u,g),u=u[g];m&&!c&&(cm[a]=u)}}return u},"GetIntrinsic")});var vH=Z((YRe,gH)=>{"use strict";var dde=MB();gH.exports=o(function(){return dde()&&!!Symbol.toStringTag},"hasToStringTagShams")});var xH=Z((eDe,SH)=>{"use strict";var mde=mH(),yH=mde("%Object.defineProperty%",!0),gde=vH()(),vde=P2(),yde=R2(),L2=gde?Symbol.toStringTag:null;SH.exports=o(function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new yde("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");L2&&(n||!vde(e,L2))&&(yH?yH(e,L2,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[L2]=t)},"setToStringTag")});var wH=Z((rDe,bH)=>{"use strict";bH.exports=function(r,e){return Object.keys(e).forEach(function(t){r[t]=r[t]||e[t]}),r}});var YB=Z((nDe,CH)=>{"use strict";var QB=T9(),Sde=require("util"),XB=require("path"),xde=require("http"),bde=require("https"),wde=require("url").parse,Cde=require("fs"),Ede=require("stream").Stream,Ade=require("crypto"),WB=B9(),Nde=Q9(),Ide=xH(),zp=P2(),JB=wH();function Pr(r){if(!(this instanceof Pr))return new Pr(r);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],QB.call(this),r=r||{};for(var e in r)this[e]=r[e]}o(Pr,"FormData");Sde.inherits(Pr,QB);Pr.LINE_BREAK=`\r
45
+ }`;var fr=EU(function(){return $r(q,Ct+"return "+Ke).apply(r,Q)});if(fr.source=Ke,nP(fr))throw fr;return fr}o(Vae,"template");function jae(f){return Xr(f).toLowerCase()}o(jae,"toLower");function Uae(f){return Xr(f).toUpperCase()}o(Uae,"toUpper");function Mae(f,h,S){if(f=Xr(f),f&&(S||h===r))return Pj(f);if(!f||!(h=io(h)))return f;var I=xu(f),B=xu(h),q=Bj(I,B),Q=Fj(I,B)+1;return Ap(I,q,Q).join("")}o(Mae,"trim");function qae(f,h,S){if(f=Xr(f),f&&(S||h===r))return f.slice(0,kj(f)+1);if(!f||!(h=io(h)))return f;var I=xu(f),B=Fj(I,xu(h))+1;return Ap(I,0,B).join("")}o(qae,"trimEnd");function Hae(f,h,S){if(f=Xr(f),f&&(S||h===r))return f.replace(ux,"");if(!f||!(h=io(h)))return f;var I=xu(f),B=Bj(I,xu(h));return Ap(I,B).join("")}o(Hae,"trimStart");function zae(f,h){var S=_,I=H;if(Wn(h)){var B="separator"in h?h.separator:B;S="length"in h?or(h.length):S,I="omission"in h?io(h.omission):I}f=Xr(f);var q=f.length;if(Lg(f)){var Q=xu(f);q=Q.length}if(S>=q)return f;var te=S-kg(I);if(te<1)return I;var ge=Q?Ap(Q,0,te).join(""):f.slice(0,te);if(B===r)return ge+I;if(Q&&(te+=ge.length-te),iP(B)){if(f.slice(te).search(B)){var Be,Ve=ge;for(B.global||(B=xO(B.source,Xr(Su.exec(B))+"g")),B.lastIndex=0;Be=B.exec(Ve);)var Ke=Be.index;ge=ge.slice(0,Ke===r?te:Ke)}}else if(f.indexOf(io(B),te)!=te){var ut=ge.lastIndexOf(B);ut>-1&&(ge=ge.slice(0,ut))}return ge+I}o(zae,"truncate");function Kae(f){return f=Xr(f),f&&G.test(f)?f.replace(se,xte):f}o(Kae,"unescape");var $ae=Hg(function(f,h,S){return f+(S?" ":"")+h.toUpperCase()}),oP=A5("toUpperCase");function CU(f,h,S){return f=Xr(f),h=S?r:h,h===r?mte(f)?Cte(f):ate(f):f.match(h)||[]}o(CU,"words");var EU=mr(function(f,h){try{return ro(f,r,h)}catch(S){return nP(S)?S:new Qt(S)}}),Gae=Vl(function(f,h){return Ro(h,function(S){S=wc(S),Ll(f,S,tP(f[S],f))}),f});function Xae(f){var h=f==null?0:f.length,S=Pt();return f=h?Fn(f,function(I){if(typeof I[1]!="function")throw new Do(i);return[S(I[0]),I[1]]}):[],mr(function(I){for(var B=-1;++B<h;){var q=f[B];if(ro(q[0],this,I))return ro(q[1],this,I)}})}o(Xae,"cond");function Wae(f){return xre(Oo(f,l))}o(Wae,"conforms");function uP(f){return function(){return f}}o(uP,"constant");function Jae(f,h){return f==null||f!==f?h:f}o(Jae,"defaultTo");var Qae=I5(),Yae=I5(!0);function Ia(f){return f}o(Ia,"identity");function cP(f){return n5(typeof f=="function"?f:Oo(f,l))}o(cP,"iteratee");function Zae(f){return s5(Oo(f,l))}o(Zae,"matches");function eoe(f,h){return a5(f,Oo(h,l))}o(eoe,"matchesProperty");var toe=mr(function(f,h){return function(S){return vx(S,f,h)}}),roe=mr(function(f,h){return function(S){return vx(f,S,h)}});function lP(f,h,S){var I=Ki(h),B=pN(h,I);S==null&&!(Wn(h)&&(B.length||!I.length))&&(S=h,h=f,f=this,B=pN(h,Ki(h)));var q=!(Wn(S)&&"chain"in S)||!!S.chain,Q=Ul(f);return Ro(B,function(te){var ge=h[te];f[te]=ge,Q&&(f.prototype[te]=function(){var Be=this.__chain__;if(q||Be){var Ve=f(this.__wrapped__),Ke=Ve.__actions__=Ea(this.__actions__);return Ke.push({func:ge,args:arguments,thisArg:f}),Ve.__chain__=Be,Ve}return ge.apply(f,yp([this.value()],arguments))})}),f}o(lP,"mixin");function noe(){return zi._===this&&(zi._=Rte),this}o(noe,"noConflict");function fP(){}o(fP,"noop");function ioe(f){return f=or(f),mr(function(h){return o5(h,f)})}o(ioe,"nthArg");var soe=qO(Fn),aoe=qO(Tj),ooe=qO(hO);function AU(f){return WO(f)?dO(wc(f)):kre(f)}o(AU,"property");function uoe(f){return function(h){return f==null?r:$d(f,h)}}o(uoe,"propertyOf");var coe=R5(),loe=R5(!0);function pP(){return[]}o(pP,"stubArray");function hP(){return!1}o(hP,"stubFalse");function foe(){return{}}o(foe,"stubObject");function poe(){return""}o(poe,"stubString");function hoe(){return!0}o(hoe,"stubTrue");function doe(f,h){if(f=or(f),f<1||f>ee)return[];var S=Ye,I=Us(f,Ye);h=Pt(h),f-=Ye;for(var B=vO(I,h);++S<f;)h(S);return B}o(doe,"times");function moe(f){return rr(f)?Fn(f,wc):so(f)?[f]:Ea(K5(Xr(f)))}o(moe,"toPath");function goe(f){var h=++Ite;return Xr(f)+h}o(goe,"uniqueId");var voe=yN(function(f,h){return f+h},0),yoe=HO("ceil"),Soe=yN(function(f,h){return f/h},1),xoe=HO("floor");function boe(f){return f&&f.length?fN(f,Ia,TO):r}o(boe,"max");function woe(f,h){return f&&f.length?fN(f,Pt(h,2),TO):r}o(woe,"maxBy");function Coe(f){return _j(f,Ia)}o(Coe,"mean");function Eoe(f,h){return _j(f,Pt(h,2))}o(Eoe,"meanBy");function Aoe(f){return f&&f.length?fN(f,Ia,OO):r}o(Aoe,"min");function Noe(f,h){return f&&f.length?fN(f,Pt(h,2),OO):r}o(Noe,"minBy");var Ioe=yN(function(f,h){return f*h},1),Toe=HO("round"),Roe=yN(function(f,h){return f-h},0);function Doe(f){return f&&f.length?gO(f,Ia):0}o(Doe,"sum");function _oe(f,h){return f&&f.length?gO(f,Pt(h,2)):0}return o(_oe,"sumBy"),U.after=Zie,U.ary=rU,U.assign=Use,U.assignIn=gU,U.assignInWith=_N,U.assignWith=Mse,U.at=qse,U.before=nU,U.bind=tP,U.bindAll=Gae,U.bindKey=iU,U.castArray=fse,U.chain=Z5,U.chunk=xne,U.compact=bne,U.concat=wne,U.cond=Xae,U.conforms=Wae,U.constant=uP,U.countBy=Die,U.create=Hse,U.curry=sU,U.curryRight=aU,U.debounce=oU,U.defaults=zse,U.defaultsDeep=Kse,U.defer=ese,U.delay=tse,U.difference=Cne,U.differenceBy=Ene,U.differenceWith=Ane,U.drop=Nne,U.dropRight=Ine,U.dropRightWhile=Tne,U.dropWhile=Rne,U.fill=Dne,U.filter=Oie,U.flatMap=Fie,U.flatMapDeep=Lie,U.flatMapDepth=kie,U.flatten=W5,U.flattenDeep=_ne,U.flattenDepth=One,U.flip=rse,U.flow=Qae,U.flowRight=Yae,U.fromPairs=Pne,U.functions=Yse,U.functionsIn=Zse,U.groupBy=Vie,U.initial=Fne,U.intersection=Lne,U.intersectionBy=kne,U.intersectionWith=Vne,U.invert=tae,U.invertBy=rae,U.invokeMap=Uie,U.iteratee=cP,U.keyBy=Mie,U.keys=Ki,U.keysIn=Na,U.map=AN,U.mapKeys=iae,U.mapValues=sae,U.matches=Zae,U.matchesProperty=eoe,U.memoize=IN,U.merge=aae,U.mergeWith=vU,U.method=toe,U.methodOf=roe,U.mixin=lP,U.negate=TN,U.nthArg=ioe,U.omit=oae,U.omitBy=uae,U.once=nse,U.orderBy=qie,U.over=soe,U.overArgs=ise,U.overEvery=aoe,U.overSome=ooe,U.partial=rP,U.partialRight=uU,U.partition=Hie,U.pick=cae,U.pickBy=yU,U.property=AU,U.propertyOf=uoe,U.pull=qne,U.pullAll=Q5,U.pullAllBy=Hne,U.pullAllWith=zne,U.pullAt=Kne,U.range=coe,U.rangeRight=loe,U.rearg=sse,U.reject=$ie,U.remove=$ne,U.rest=ase,U.reverse=ZO,U.sampleSize=Xie,U.set=fae,U.setWith=pae,U.shuffle=Wie,U.slice=Gne,U.sortBy=Yie,U.sortedUniq=eie,U.sortedUniqBy=tie,U.split=Fae,U.spread=ose,U.tail=rie,U.take=nie,U.takeRight=iie,U.takeRightWhile=sie,U.takeWhile=aie,U.tap=bie,U.throttle=use,U.thru=EN,U.toArray=hU,U.toPairs=SU,U.toPairsIn=xU,U.toPath=moe,U.toPlainObject=mU,U.transform=hae,U.unary=cse,U.union=oie,U.unionBy=uie,U.unionWith=cie,U.uniq=lie,U.uniqBy=fie,U.uniqWith=pie,U.unset=dae,U.unzip=eP,U.unzipWith=Y5,U.update=mae,U.updateWith=gae,U.values=$g,U.valuesIn=vae,U.without=hie,U.words=CU,U.wrap=lse,U.xor=die,U.xorBy=mie,U.xorWith=gie,U.zip=vie,U.zipObject=yie,U.zipObjectDeep=Sie,U.zipWith=xie,U.entries=SU,U.entriesIn=xU,U.extend=gU,U.extendWith=_N,lP(U,U),U.add=voe,U.attempt=EU,U.camelCase=bae,U.capitalize=bU,U.ceil=yoe,U.clamp=yae,U.clone=pse,U.cloneDeep=dse,U.cloneDeepWith=mse,U.cloneWith=hse,U.conformsTo=gse,U.deburr=wU,U.defaultTo=Jae,U.divide=Soe,U.endsWith=wae,U.eq=wu,U.escape=Cae,U.escapeRegExp=Eae,U.every=_ie,U.find=Pie,U.findIndex=G5,U.findKey=$se,U.findLast=Bie,U.findLastIndex=X5,U.findLastKey=Gse,U.floor=xoe,U.forEach=eU,U.forEachRight=tU,U.forIn=Xse,U.forInRight=Wse,U.forOwn=Jse,U.forOwnRight=Qse,U.get=sP,U.gt=vse,U.gte=yse,U.has=eae,U.hasIn=aP,U.head=J5,U.identity=Ia,U.includes=jie,U.indexOf=Bne,U.inRange=Sae,U.invoke=nae,U.isArguments=Wd,U.isArray=rr,U.isArrayBuffer=Sse,U.isArrayLike=Aa,U.isArrayLikeObject=mi,U.isBoolean=xse,U.isBuffer=Np,U.isDate=bse,U.isElement=wse,U.isEmpty=Cse,U.isEqual=Ese,U.isEqualWith=Ase,U.isError=nP,U.isFinite=Nse,U.isFunction=Ul,U.isInteger=cU,U.isLength=RN,U.isMap=lU,U.isMatch=Ise,U.isMatchWith=Tse,U.isNaN=Rse,U.isNative=Dse,U.isNil=Ose,U.isNull=_se,U.isNumber=fU,U.isObject=Wn,U.isObjectLike=si,U.isPlainObject=Cx,U.isRegExp=iP,U.isSafeInteger=Pse,U.isSet=pU,U.isString=DN,U.isSymbol=so,U.isTypedArray=Kg,U.isUndefined=Bse,U.isWeakMap=Fse,U.isWeakSet=Lse,U.join=jne,U.kebabCase=Aae,U.last=Bo,U.lastIndexOf=Une,U.lowerCase=Nae,U.lowerFirst=Iae,U.lt=kse,U.lte=Vse,U.max=boe,U.maxBy=woe,U.mean=Coe,U.meanBy=Eoe,U.min=Aoe,U.minBy=Noe,U.stubArray=pP,U.stubFalse=hP,U.stubObject=foe,U.stubString=poe,U.stubTrue=hoe,U.multiply=Ioe,U.nth=Mne,U.noConflict=noe,U.noop=fP,U.now=NN,U.pad=Tae,U.padEnd=Rae,U.padStart=Dae,U.parseInt=_ae,U.random=xae,U.reduce=zie,U.reduceRight=Kie,U.repeat=Oae,U.replace=Pae,U.result=lae,U.round=Toe,U.runInContext=he,U.sample=Gie,U.size=Jie,U.snakeCase=Bae,U.some=Qie,U.sortedIndex=Xne,U.sortedIndexBy=Wne,U.sortedIndexOf=Jne,U.sortedLastIndex=Qne,U.sortedLastIndexBy=Yne,U.sortedLastIndexOf=Zne,U.startCase=Lae,U.startsWith=kae,U.subtract=Roe,U.sum=Doe,U.sumBy=_oe,U.template=Vae,U.times=doe,U.toFinite=Ml,U.toInteger=or,U.toLength=dU,U.toLower=jae,U.toNumber=Fo,U.toSafeInteger=jse,U.toString=Xr,U.toUpper=Uae,U.trim=Mae,U.trimEnd=qae,U.trimStart=Hae,U.truncate=zae,U.unescape=Kae,U.uniqueId=goe,U.upperCase=$ae,U.upperFirst=oP,U.each=eU,U.eachRight=tU,U.first=J5,lP(U,(function(){var f={};return xc(U,function(h,S){Zr.call(U.prototype,S)||(f[S]=h)}),f})(),{chain:!1}),U.VERSION=e,Ro(["bind","bindKey","curry","curryRight","partial","partialRight"],function(f){U[f].placeholder=U}),Ro(["drop","take"],function(f,h){Er.prototype[f]=function(S){S=S===r?1:Bi(or(S),0);var I=this.__filtered__&&!h?new Er(this):this.clone();return I.__filtered__?I.__takeCount__=Us(S,I.__takeCount__):I.__views__.push({size:Us(S,Ye),type:f+(I.__dir__<0?"Right":"")}),I},Er.prototype[f+"Right"]=function(S){return this.reverse()[f](S).reverse()}}),Ro(["filter","map","takeWhile"],function(f,h){var S=h+1,I=S==X||S==fe;Er.prototype[f]=function(B){var q=this.clone();return q.__iteratees__.push({iteratee:Pt(B,3),type:S}),q.__filtered__=q.__filtered__||I,q}}),Ro(["head","last"],function(f,h){var S="take"+(h?"Right":"");Er.prototype[f]=function(){return this[S](1).value()[0]}}),Ro(["initial","tail"],function(f,h){var S="drop"+(h?"":"Right");Er.prototype[f]=function(){return this.__filtered__?new Er(this):this[S](1)}}),Er.prototype.compact=function(){return this.filter(Ia)},Er.prototype.find=function(f){return this.filter(f).head()},Er.prototype.findLast=function(f){return this.reverse().find(f)},Er.prototype.invokeMap=mr(function(f,h){return typeof f=="function"?new Er(this):this.map(function(S){return vx(S,f,h)})}),Er.prototype.reject=function(f){return this.filter(TN(Pt(f)))},Er.prototype.slice=function(f,h){f=or(f);var S=this;return S.__filtered__&&(f>0||h<0)?new Er(S):(f<0?S=S.takeRight(-f):f&&(S=S.drop(f)),h!==r&&(h=or(h),S=h<0?S.dropRight(-h):S.take(h-f)),S)},Er.prototype.takeRightWhile=function(f){return this.reverse().takeWhile(f).reverse()},Er.prototype.toArray=function(){return this.take(Ye)},xc(Er.prototype,function(f,h){var S=/^(?:filter|find|map|reject)|While$/.test(h),I=/^(?:head|last)$/.test(h),B=U[I?"take"+(h=="last"?"Right":""):h],q=I||/^find/.test(h);B&&(U.prototype[h]=function(){var Q=this.__wrapped__,te=I?[1]:arguments,ge=Q instanceof Er,Be=te[0],Ve=ge||rr(Q),Ke=o(function(yr){var Rr=B.apply(U,yp([yr],te));return I&&ut?Rr[0]:Rr},"interceptor");Ve&&S&&typeof Be=="function"&&Be.length!=1&&(ge=Ve=!1);var ut=this.__chain__,Ct=!!this.__actions__.length,kt=q&&!ut,fr=ge&&!Ct;if(!q&&Ve){Q=fr?Q:new Er(this);var Vt=f.apply(Q,te);return Vt.__actions__.push({func:EN,args:[Ke],thisArg:r}),new _o(Vt,ut)}return kt&&fr?f.apply(this,te):(Vt=this.thru(Ke),kt?I?Vt.value()[0]:Vt.value():Vt)})}),Ro(["pop","push","shift","sort","splice","unshift"],function(f){var h=JA[f],S=/^(?:push|sort|unshift)$/.test(f)?"tap":"thru",I=/^(?:pop|shift)$/.test(f);U.prototype[f]=function(){var B=arguments;if(I&&!this.__chain__){var q=this.value();return h.apply(rr(q)?q:[],B)}return this[S](function(Q){return h.apply(rr(Q)?Q:[],B)})}}),xc(Er.prototype,function(f,h){var S=U[h];if(S){var I=S.name+"";Zr.call(Ug,I)||(Ug[I]=[]),Ug[I].push({name:h,func:S})}}),Ug[vN(r,b).name]=[{name:"wrapper",func:r}],Er.prototype.clone=Kte,Er.prototype.reverse=$te,Er.prototype.value=Gte,U.prototype.at=wie,U.prototype.chain=Cie,U.prototype.commit=Eie,U.prototype.next=Aie,U.prototype.plant=Iie,U.prototype.reverse=Tie,U.prototype.toJSON=U.prototype.valueOf=U.prototype.value=Rie,U.prototype.first=U.prototype.head,lx&&(U.prototype[lx]=Nie),U},"runInContext"),xp=Ete();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(zi._=xp,define(function(){return xp})):Md?((Md.exports=xp)._=xp,cO._=xp):zi._=xp}).call(gv)});var E9=Z((LTe,C9)=>{"use strict";var w9=require("stream").Stream,zpe=require("util");C9.exports=Ru;function Ru(){this.source=null,this.dataSize=0,this.maxDataSize=1024*1024,this.pauseStream=!0,this._maxDataSizeExceeded=!1,this._released=!1,this._bufferedEvents=[]}o(Ru,"DelayedStream");zpe.inherits(Ru,w9);Ru.create=function(r,e){var t=new this;e=e||{};for(var n in e)t[n]=e[n];t.source=r;var i=r.emit;return r.emit=function(){return t._handleEmit(arguments),i.apply(r,arguments)},r.on("error",function(){}),t.pauseStream&&r.pause(),t};Object.defineProperty(Ru.prototype,"readable",{configurable:!0,enumerable:!0,get:o(function(){return this.source.readable},"get")});Ru.prototype.setEncoding=function(){return this.source.setEncoding.apply(this.source,arguments)};Ru.prototype.resume=function(){this._released||this.release(),this.source.resume()};Ru.prototype.pause=function(){this.source.pause()};Ru.prototype.release=function(){this._released=!0,this._bufferedEvents.forEach((function(r){this.emit.apply(this,r)}).bind(this)),this._bufferedEvents=[]};Ru.prototype.pipe=function(){var r=w9.prototype.pipe.apply(this,arguments);return this.resume(),r};Ru.prototype._handleEmit=function(r){if(this._released){this.emit.apply(this,r);return}r[0]==="data"&&(this.dataSize+=r[1].length,this._checkIfMaxDataSizeExceeded()),this._bufferedEvents.push(r)};Ru.prototype._checkIfMaxDataSizeExceeded=function(){if(!this._maxDataSizeExceeded&&!(this.dataSize<=this.maxDataSize)){this._maxDataSizeExceeded=!0;var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this.emit("error",new Error(r))}}});var T9=Z((VTe,I9)=>{"use strict";var Kpe=require("util"),N9=require("stream").Stream,A9=E9();I9.exports=oi;function oi(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2*1024*1024,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}o(oi,"CombinedStream");Kpe.inherits(oi,N9);oi.create=function(r){var e=new this;r=r||{};for(var t in r)e[t]=r[t];return e};oi.isStreamLike=function(r){return typeof r!="function"&&typeof r!="string"&&typeof r!="boolean"&&typeof r!="number"&&!Buffer.isBuffer(r)};oi.prototype.append=function(r){var e=oi.isStreamLike(r);if(e){if(!(r instanceof A9)){var t=A9.create(r,{maxDataSize:1/0,pauseStream:this.pauseStreams});r.on("data",this._checkDataSize.bind(this)),r=t}this._handleErrors(r),this.pauseStreams&&r.pause()}return this._streams.push(r),this};oi.prototype.pipe=function(r,e){return N9.prototype.pipe.call(this,r,e),this.resume(),r};oi.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop){this._pendingNext=!0;return}this._insideLoop=!0;try{do this._pendingNext=!1,this._realGetNext();while(this._pendingNext)}finally{this._insideLoop=!1}};oi.prototype._realGetNext=function(){var r=this._streams.shift();if(typeof r>"u"){this.end();return}if(typeof r!="function"){this._pipeNext(r);return}var e=r;e((function(t){var n=oi.isStreamLike(t);n&&(t.on("data",this._checkDataSize.bind(this)),this._handleErrors(t)),this._pipeNext(t)}).bind(this))};oi.prototype._pipeNext=function(r){this._currentStream=r;var e=oi.isStreamLike(r);if(e){r.on("end",this._getNext.bind(this)),r.pipe(this,{end:!1});return}var t=r;this.write(t),this._getNext()};oi.prototype._handleErrors=function(r){var e=this;r.on("error",function(t){e._emitError(t)})};oi.prototype.write=function(r){this.emit("data",r)};oi.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&typeof this._currentStream.pause=="function"&&this._currentStream.pause(),this.emit("pause"))};oi.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&typeof this._currentStream.resume=="function"&&this._currentStream.resume(),this.emit("resume")};oi.prototype.end=function(){this._reset(),this.emit("end")};oi.prototype.destroy=function(){this._reset(),this.emit("close")};oi.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null};oi.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var r="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(r))}};oi.prototype._updateDataSize=function(){this.dataSize=0;var r=this;this._streams.forEach(function(e){e.dataSize&&(r.dataSize+=e.dataSize)}),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)};oi.prototype._emitError=function(r){this._reset(),this.emit("error",r)}});var R9=Z((UTe,$pe)=>{$pe.exports={"application/1d-interleaved-parityfec":{source:"iana"},"application/3gpdash-qoe-report+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/3gpp-ims+xml":{source:"iana",compressible:!0},"application/3gpphal+json":{source:"iana",compressible:!0},"application/3gpphalforms+json":{source:"iana",compressible:!0},"application/a2l":{source:"iana"},"application/ace+cbor":{source:"iana"},"application/activemessage":{source:"iana"},"application/activity+json":{source:"iana",compressible:!0},"application/alto-costmap+json":{source:"iana",compressible:!0},"application/alto-costmapfilter+json":{source:"iana",compressible:!0},"application/alto-directory+json":{source:"iana",compressible:!0},"application/alto-endpointcost+json":{source:"iana",compressible:!0},"application/alto-endpointcostparams+json":{source:"iana",compressible:!0},"application/alto-endpointprop+json":{source:"iana",compressible:!0},"application/alto-endpointpropparams+json":{source:"iana",compressible:!0},"application/alto-error+json":{source:"iana",compressible:!0},"application/alto-networkmap+json":{source:"iana",compressible:!0},"application/alto-networkmapfilter+json":{source:"iana",compressible:!0},"application/alto-updatestreamcontrol+json":{source:"iana",compressible:!0},"application/alto-updatestreamparams+json":{source:"iana",compressible:!0},"application/aml":{source:"iana"},"application/andrew-inset":{source:"iana",extensions:["ez"]},"application/applefile":{source:"iana"},"application/applixware":{source:"apache",extensions:["aw"]},"application/at+jwt":{source:"iana"},"application/atf":{source:"iana"},"application/atfx":{source:"iana"},"application/atom+xml":{source:"iana",compressible:!0,extensions:["atom"]},"application/atomcat+xml":{source:"iana",compressible:!0,extensions:["atomcat"]},"application/atomdeleted+xml":{source:"iana",compressible:!0,extensions:["atomdeleted"]},"application/atomicmail":{source:"iana"},"application/atomsvc+xml":{source:"iana",compressible:!0,extensions:["atomsvc"]},"application/atsc-dwd+xml":{source:"iana",compressible:!0,extensions:["dwd"]},"application/atsc-dynamic-event-message":{source:"iana"},"application/atsc-held+xml":{source:"iana",compressible:!0,extensions:["held"]},"application/atsc-rdt+json":{source:"iana",compressible:!0},"application/atsc-rsat+xml":{source:"iana",compressible:!0,extensions:["rsat"]},"application/atxml":{source:"iana"},"application/auth-policy+xml":{source:"iana",compressible:!0},"application/bacnet-xdd+zip":{source:"iana",compressible:!1},"application/batch-smtp":{source:"iana"},"application/bdoc":{compressible:!1,extensions:["bdoc"]},"application/beep+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/calendar+json":{source:"iana",compressible:!0},"application/calendar+xml":{source:"iana",compressible:!0,extensions:["xcs"]},"application/call-completion":{source:"iana"},"application/cals-1840":{source:"iana"},"application/captive+json":{source:"iana",compressible:!0},"application/cbor":{source:"iana"},"application/cbor-seq":{source:"iana"},"application/cccex":{source:"iana"},"application/ccmp+xml":{source:"iana",compressible:!0},"application/ccxml+xml":{source:"iana",compressible:!0,extensions:["ccxml"]},"application/cdfx+xml":{source:"iana",compressible:!0,extensions:["cdfx"]},"application/cdmi-capability":{source:"iana",extensions:["cdmia"]},"application/cdmi-container":{source:"iana",extensions:["cdmic"]},"application/cdmi-domain":{source:"iana",extensions:["cdmid"]},"application/cdmi-object":{source:"iana",extensions:["cdmio"]},"application/cdmi-queue":{source:"iana",extensions:["cdmiq"]},"application/cdni":{source:"iana"},"application/cea":{source:"iana"},"application/cea-2018+xml":{source:"iana",compressible:!0},"application/cellml+xml":{source:"iana",compressible:!0},"application/cfw":{source:"iana"},"application/city+json":{source:"iana",compressible:!0},"application/clr":{source:"iana"},"application/clue+xml":{source:"iana",compressible:!0},"application/clue_info+xml":{source:"iana",compressible:!0},"application/cms":{source:"iana"},"application/cnrp+xml":{source:"iana",compressible:!0},"application/coap-group+json":{source:"iana",compressible:!0},"application/coap-payload":{source:"iana"},"application/commonground":{source:"iana"},"application/conference-info+xml":{source:"iana",compressible:!0},"application/cose":{source:"iana"},"application/cose-key":{source:"iana"},"application/cose-key-set":{source:"iana"},"application/cpl+xml":{source:"iana",compressible:!0,extensions:["cpl"]},"application/csrattrs":{source:"iana"},"application/csta+xml":{source:"iana",compressible:!0},"application/cstadata+xml":{source:"iana",compressible:!0},"application/csvm+json":{source:"iana",compressible:!0},"application/cu-seeme":{source:"apache",extensions:["cu"]},"application/cwt":{source:"iana"},"application/cybercash":{source:"iana"},"application/dart":{compressible:!0},"application/dash+xml":{source:"iana",compressible:!0,extensions:["mpd"]},"application/dash-patch+xml":{source:"iana",compressible:!0,extensions:["mpp"]},"application/dashdelta":{source:"iana"},"application/davmount+xml":{source:"iana",compressible:!0,extensions:["davmount"]},"application/dca-rft":{source:"iana"},"application/dcd":{source:"iana"},"application/dec-dx":{source:"iana"},"application/dialog-info+xml":{source:"iana",compressible:!0},"application/dicom":{source:"iana"},"application/dicom+json":{source:"iana",compressible:!0},"application/dicom+xml":{source:"iana",compressible:!0},"application/dii":{source:"iana"},"application/dit":{source:"iana"},"application/dns":{source:"iana"},"application/dns+json":{source:"iana",compressible:!0},"application/dns-message":{source:"iana"},"application/docbook+xml":{source:"apache",compressible:!0,extensions:["dbk"]},"application/dots+cbor":{source:"iana"},"application/dskpp+xml":{source:"iana",compressible:!0},"application/dssc+der":{source:"iana",extensions:["dssc"]},"application/dssc+xml":{source:"iana",compressible:!0,extensions:["xdssc"]},"application/dvcs":{source:"iana"},"application/ecmascript":{source:"iana",compressible:!0,extensions:["es","ecma"]},"application/edi-consent":{source:"iana"},"application/edi-x12":{source:"iana",compressible:!1},"application/edifact":{source:"iana",compressible:!1},"application/efi":{source:"iana"},"application/elm+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/elm+xml":{source:"iana",compressible:!0},"application/emergencycalldata.cap+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/emergencycalldata.comment+xml":{source:"iana",compressible:!0},"application/emergencycalldata.control+xml":{source:"iana",compressible:!0},"application/emergencycalldata.deviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.ecall.msd":{source:"iana"},"application/emergencycalldata.providerinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.serviceinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.subscriberinfo+xml":{source:"iana",compressible:!0},"application/emergencycalldata.veds+xml":{source:"iana",compressible:!0},"application/emma+xml":{source:"iana",compressible:!0,extensions:["emma"]},"application/emotionml+xml":{source:"iana",compressible:!0,extensions:["emotionml"]},"application/encaprtp":{source:"iana"},"application/epp+xml":{source:"iana",compressible:!0},"application/epub+zip":{source:"iana",compressible:!1,extensions:["epub"]},"application/eshop":{source:"iana"},"application/exi":{source:"iana",extensions:["exi"]},"application/expect-ct-report+json":{source:"iana",compressible:!0},"application/express":{source:"iana",extensions:["exp"]},"application/fastinfoset":{source:"iana"},"application/fastsoap":{source:"iana"},"application/fdt+xml":{source:"iana",compressible:!0,extensions:["fdt"]},"application/fhir+json":{source:"iana",charset:"UTF-8",compressible:!0},"application/fhir+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/fido.trusted-apps+json":{compressible:!0},"application/fits":{source:"iana"},"application/flexfec":{source:"iana"},"application/font-sfnt":{source:"iana"},"application/font-tdpfr":{source:"iana",extensions:["pfr"]},"application/font-woff":{source:"iana",compressible:!1},"application/framework-attributes+xml":{source:"iana",compressible:!0},"application/geo+json":{source:"iana",compressible:!0,extensions:["geojson"]},"application/geo+json-seq":{source:"iana"},"application/geopackage+sqlite3":{source:"iana"},"application/geoxacml+xml":{source:"iana",compressible:!0},"application/gltf-buffer":{source:"iana"},"application/gml+xml":{source:"iana",compressible:!0,extensions:["gml"]},"application/gpx+xml":{source:"apache",compressible:!0,extensions:["gpx"]},"application/gxf":{source:"apache",extensions:["gxf"]},"application/gzip":{source:"iana",compressible:!1,extensions:["gz"]},"application/h224":{source:"iana"},"application/held+xml":{source:"iana",compressible:!0},"application/hjson":{extensions:["hjson"]},"application/http":{source:"iana"},"application/hyperstudio":{source:"iana",extensions:["stk"]},"application/ibe-key-request+xml":{source:"iana",compressible:!0},"application/ibe-pkg-reply+xml":{source:"iana",compressible:!0},"application/ibe-pp-data":{source:"iana"},"application/iges":{source:"iana"},"application/im-iscomposing+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/index":{source:"iana"},"application/index.cmd":{source:"iana"},"application/index.obj":{source:"iana"},"application/index.response":{source:"iana"},"application/index.vnd":{source:"iana"},"application/inkml+xml":{source:"iana",compressible:!0,extensions:["ink","inkml"]},"application/iotp":{source:"iana"},"application/ipfix":{source:"iana",extensions:["ipfix"]},"application/ipp":{source:"iana"},"application/isup":{source:"iana"},"application/its+xml":{source:"iana",compressible:!0,extensions:["its"]},"application/java-archive":{source:"apache",compressible:!1,extensions:["jar","war","ear"]},"application/java-serialized-object":{source:"apache",compressible:!1,extensions:["ser"]},"application/java-vm":{source:"apache",compressible:!1,extensions:["class"]},"application/javascript":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["js","mjs"]},"application/jf2feed+json":{source:"iana",compressible:!0},"application/jose":{source:"iana"},"application/jose+json":{source:"iana",compressible:!0},"application/jrd+json":{source:"iana",compressible:!0},"application/jscalendar+json":{source:"iana",compressible:!0},"application/json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["json","map"]},"application/json-patch+json":{source:"iana",compressible:!0},"application/json-seq":{source:"iana"},"application/json5":{extensions:["json5"]},"application/jsonml+json":{source:"apache",compressible:!0,extensions:["jsonml"]},"application/jwk+json":{source:"iana",compressible:!0},"application/jwk-set+json":{source:"iana",compressible:!0},"application/jwt":{source:"iana"},"application/kpml-request+xml":{source:"iana",compressible:!0},"application/kpml-response+xml":{source:"iana",compressible:!0},"application/ld+json":{source:"iana",compressible:!0,extensions:["jsonld"]},"application/lgr+xml":{source:"iana",compressible:!0,extensions:["lgr"]},"application/link-format":{source:"iana"},"application/load-control+xml":{source:"iana",compressible:!0},"application/lost+xml":{source:"iana",compressible:!0,extensions:["lostxml"]},"application/lostsync+xml":{source:"iana",compressible:!0},"application/lpf+zip":{source:"iana",compressible:!1},"application/lxf":{source:"iana"},"application/mac-binhex40":{source:"iana",extensions:["hqx"]},"application/mac-compactpro":{source:"apache",extensions:["cpt"]},"application/macwriteii":{source:"iana"},"application/mads+xml":{source:"iana",compressible:!0,extensions:["mads"]},"application/manifest+json":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["webmanifest"]},"application/marc":{source:"iana",extensions:["mrc"]},"application/marcxml+xml":{source:"iana",compressible:!0,extensions:["mrcx"]},"application/mathematica":{source:"iana",extensions:["ma","nb","mb"]},"application/mathml+xml":{source:"iana",compressible:!0,extensions:["mathml"]},"application/mathml-content+xml":{source:"iana",compressible:!0},"application/mathml-presentation+xml":{source:"iana",compressible:!0},"application/mbms-associated-procedure-description+xml":{source:"iana",compressible:!0},"application/mbms-deregister+xml":{source:"iana",compressible:!0},"application/mbms-envelope+xml":{source:"iana",compressible:!0},"application/mbms-msk+xml":{source:"iana",compressible:!0},"application/mbms-msk-response+xml":{source:"iana",compressible:!0},"application/mbms-protection-description+xml":{source:"iana",compressible:!0},"application/mbms-reception-report+xml":{source:"iana",compressible:!0},"application/mbms-register+xml":{source:"iana",compressible:!0},"application/mbms-register-response+xml":{source:"iana",compressible:!0},"application/mbms-schedule+xml":{source:"iana",compressible:!0},"application/mbms-user-service-description+xml":{source:"iana",compressible:!0},"application/mbox":{source:"iana",extensions:["mbox"]},"application/media-policy-dataset+xml":{source:"iana",compressible:!0,extensions:["mpf"]},"application/media_control+xml":{source:"iana",compressible:!0},"application/mediaservercontrol+xml":{source:"iana",compressible:!0,extensions:["mscml"]},"application/merge-patch+json":{source:"iana",compressible:!0},"application/metalink+xml":{source:"apache",compressible:!0,extensions:["metalink"]},"application/metalink4+xml":{source:"iana",compressible:!0,extensions:["meta4"]},"application/mets+xml":{source:"iana",compressible:!0,extensions:["mets"]},"application/mf4":{source:"iana"},"application/mikey":{source:"iana"},"application/mipc":{source:"iana"},"application/missing-blocks+cbor-seq":{source:"iana"},"application/mmt-aei+xml":{source:"iana",compressible:!0,extensions:["maei"]},"application/mmt-usd+xml":{source:"iana",compressible:!0,extensions:["musd"]},"application/mods+xml":{source:"iana",compressible:!0,extensions:["mods"]},"application/moss-keys":{source:"iana"},"application/moss-signature":{source:"iana"},"application/mosskey-data":{source:"iana"},"application/mosskey-request":{source:"iana"},"application/mp21":{source:"iana",extensions:["m21","mp21"]},"application/mp4":{source:"iana",extensions:["mp4s","m4p"]},"application/mpeg4-generic":{source:"iana"},"application/mpeg4-iod":{source:"iana"},"application/mpeg4-iod-xmt":{source:"iana"},"application/mrb-consumer+xml":{source:"iana",compressible:!0},"application/mrb-publish+xml":{source:"iana",compressible:!0},"application/msc-ivr+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msc-mixer+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/msword":{source:"iana",compressible:!1,extensions:["doc","dot"]},"application/mud+json":{source:"iana",compressible:!0},"application/multipart-core":{source:"iana"},"application/mxf":{source:"iana",extensions:["mxf"]},"application/n-quads":{source:"iana",extensions:["nq"]},"application/n-triples":{source:"iana",extensions:["nt"]},"application/nasdata":{source:"iana"},"application/news-checkgroups":{source:"iana",charset:"US-ASCII"},"application/news-groupinfo":{source:"iana",charset:"US-ASCII"},"application/news-transmission":{source:"iana"},"application/nlsml+xml":{source:"iana",compressible:!0},"application/node":{source:"iana",extensions:["cjs"]},"application/nss":{source:"iana"},"application/oauth-authz-req+jwt":{source:"iana"},"application/oblivious-dns-message":{source:"iana"},"application/ocsp-request":{source:"iana"},"application/ocsp-response":{source:"iana"},"application/octet-stream":{source:"iana",compressible:!1,extensions:["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"]},"application/oda":{source:"iana",extensions:["oda"]},"application/odm+xml":{source:"iana",compressible:!0},"application/odx":{source:"iana"},"application/oebps-package+xml":{source:"iana",compressible:!0,extensions:["opf"]},"application/ogg":{source:"iana",compressible:!1,extensions:["ogx"]},"application/omdoc+xml":{source:"apache",compressible:!0,extensions:["omdoc"]},"application/onenote":{source:"apache",extensions:["onetoc","onetoc2","onetmp","onepkg"]},"application/opc-nodeset+xml":{source:"iana",compressible:!0},"application/oscore":{source:"iana"},"application/oxps":{source:"iana",extensions:["oxps"]},"application/p21":{source:"iana"},"application/p21+zip":{source:"iana",compressible:!1},"application/p2p-overlay+xml":{source:"iana",compressible:!0,extensions:["relo"]},"application/parityfec":{source:"iana"},"application/passport":{source:"iana"},"application/patch-ops-error+xml":{source:"iana",compressible:!0,extensions:["xer"]},"application/pdf":{source:"iana",compressible:!1,extensions:["pdf"]},"application/pdx":{source:"iana"},"application/pem-certificate-chain":{source:"iana"},"application/pgp-encrypted":{source:"iana",compressible:!1,extensions:["pgp"]},"application/pgp-keys":{source:"iana",extensions:["asc"]},"application/pgp-signature":{source:"iana",extensions:["asc","sig"]},"application/pics-rules":{source:"apache",extensions:["prf"]},"application/pidf+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pidf-diff+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/pkcs10":{source:"iana",extensions:["p10"]},"application/pkcs12":{source:"iana"},"application/pkcs7-mime":{source:"iana",extensions:["p7m","p7c"]},"application/pkcs7-signature":{source:"iana",extensions:["p7s"]},"application/pkcs8":{source:"iana",extensions:["p8"]},"application/pkcs8-encrypted":{source:"iana"},"application/pkix-attr-cert":{source:"iana",extensions:["ac"]},"application/pkix-cert":{source:"iana",extensions:["cer"]},"application/pkix-crl":{source:"iana",extensions:["crl"]},"application/pkix-pkipath":{source:"iana",extensions:["pkipath"]},"application/pkixcmp":{source:"iana",extensions:["pki"]},"application/pls+xml":{source:"iana",compressible:!0,extensions:["pls"]},"application/poc-settings+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/postscript":{source:"iana",compressible:!0,extensions:["ai","eps","ps"]},"application/ppsp-tracker+json":{source:"iana",compressible:!0},"application/problem+json":{source:"iana",compressible:!0},"application/problem+xml":{source:"iana",compressible:!0},"application/provenance+xml":{source:"iana",compressible:!0,extensions:["provx"]},"application/prs.alvestrand.titrax-sheet":{source:"iana"},"application/prs.cww":{source:"iana",extensions:["cww"]},"application/prs.cyn":{source:"iana",charset:"7-BIT"},"application/prs.hpub+zip":{source:"iana",compressible:!1},"application/prs.nprend":{source:"iana"},"application/prs.plucker":{source:"iana"},"application/prs.rdf-xml-crypt":{source:"iana"},"application/prs.xsf+xml":{source:"iana",compressible:!0},"application/pskc+xml":{source:"iana",compressible:!0,extensions:["pskcxml"]},"application/pvd+json":{source:"iana",compressible:!0},"application/qsig":{source:"iana"},"application/raml+yaml":{compressible:!0,extensions:["raml"]},"application/raptorfec":{source:"iana"},"application/rdap+json":{source:"iana",compressible:!0},"application/rdf+xml":{source:"iana",compressible:!0,extensions:["rdf","owl"]},"application/reginfo+xml":{source:"iana",compressible:!0,extensions:["rif"]},"application/relax-ng-compact-syntax":{source:"iana",extensions:["rnc"]},"application/remote-printing":{source:"iana"},"application/reputon+json":{source:"iana",compressible:!0},"application/resource-lists+xml":{source:"iana",compressible:!0,extensions:["rl"]},"application/resource-lists-diff+xml":{source:"iana",compressible:!0,extensions:["rld"]},"application/rfc+xml":{source:"iana",compressible:!0},"application/riscos":{source:"iana"},"application/rlmi+xml":{source:"iana",compressible:!0},"application/rls-services+xml":{source:"iana",compressible:!0,extensions:["rs"]},"application/route-apd+xml":{source:"iana",compressible:!0,extensions:["rapd"]},"application/route-s-tsid+xml":{source:"iana",compressible:!0,extensions:["sls"]},"application/route-usd+xml":{source:"iana",compressible:!0,extensions:["rusd"]},"application/rpki-ghostbusters":{source:"iana",extensions:["gbr"]},"application/rpki-manifest":{source:"iana",extensions:["mft"]},"application/rpki-publication":{source:"iana"},"application/rpki-roa":{source:"iana",extensions:["roa"]},"application/rpki-updown":{source:"iana"},"application/rsd+xml":{source:"apache",compressible:!0,extensions:["rsd"]},"application/rss+xml":{source:"apache",compressible:!0,extensions:["rss"]},"application/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"application/rtploopback":{source:"iana"},"application/rtx":{source:"iana"},"application/samlassertion+xml":{source:"iana",compressible:!0},"application/samlmetadata+xml":{source:"iana",compressible:!0},"application/sarif+json":{source:"iana",compressible:!0},"application/sarif-external-properties+json":{source:"iana",compressible:!0},"application/sbe":{source:"iana"},"application/sbml+xml":{source:"iana",compressible:!0,extensions:["sbml"]},"application/scaip+xml":{source:"iana",compressible:!0},"application/scim+json":{source:"iana",compressible:!0},"application/scvp-cv-request":{source:"iana",extensions:["scq"]},"application/scvp-cv-response":{source:"iana",extensions:["scs"]},"application/scvp-vp-request":{source:"iana",extensions:["spq"]},"application/scvp-vp-response":{source:"iana",extensions:["spp"]},"application/sdp":{source:"iana",extensions:["sdp"]},"application/secevent+jwt":{source:"iana"},"application/senml+cbor":{source:"iana"},"application/senml+json":{source:"iana",compressible:!0},"application/senml+xml":{source:"iana",compressible:!0,extensions:["senmlx"]},"application/senml-etch+cbor":{source:"iana"},"application/senml-etch+json":{source:"iana",compressible:!0},"application/senml-exi":{source:"iana"},"application/sensml+cbor":{source:"iana"},"application/sensml+json":{source:"iana",compressible:!0},"application/sensml+xml":{source:"iana",compressible:!0,extensions:["sensmlx"]},"application/sensml-exi":{source:"iana"},"application/sep+xml":{source:"iana",compressible:!0},"application/sep-exi":{source:"iana"},"application/session-info":{source:"iana"},"application/set-payment":{source:"iana"},"application/set-payment-initiation":{source:"iana",extensions:["setpay"]},"application/set-registration":{source:"iana"},"application/set-registration-initiation":{source:"iana",extensions:["setreg"]},"application/sgml":{source:"iana"},"application/sgml-open-catalog":{source:"iana"},"application/shf+xml":{source:"iana",compressible:!0,extensions:["shf"]},"application/sieve":{source:"iana",extensions:["siv","sieve"]},"application/simple-filter+xml":{source:"iana",compressible:!0},"application/simple-message-summary":{source:"iana"},"application/simplesymbolcontainer":{source:"iana"},"application/sipc":{source:"iana"},"application/slate":{source:"iana"},"application/smil":{source:"iana"},"application/smil+xml":{source:"iana",compressible:!0,extensions:["smi","smil"]},"application/smpte336m":{source:"iana"},"application/soap+fastinfoset":{source:"iana"},"application/soap+xml":{source:"iana",compressible:!0},"application/sparql-query":{source:"iana",extensions:["rq"]},"application/sparql-results+xml":{source:"iana",compressible:!0,extensions:["srx"]},"application/spdx+json":{source:"iana",compressible:!0},"application/spirits-event+xml":{source:"iana",compressible:!0},"application/sql":{source:"iana"},"application/srgs":{source:"iana",extensions:["gram"]},"application/srgs+xml":{source:"iana",compressible:!0,extensions:["grxml"]},"application/sru+xml":{source:"iana",compressible:!0,extensions:["sru"]},"application/ssdl+xml":{source:"apache",compressible:!0,extensions:["ssdl"]},"application/ssml+xml":{source:"iana",compressible:!0,extensions:["ssml"]},"application/stix+json":{source:"iana",compressible:!0},"application/swid+xml":{source:"iana",compressible:!0,extensions:["swidtag"]},"application/tamp-apex-update":{source:"iana"},"application/tamp-apex-update-confirm":{source:"iana"},"application/tamp-community-update":{source:"iana"},"application/tamp-community-update-confirm":{source:"iana"},"application/tamp-error":{source:"iana"},"application/tamp-sequence-adjust":{source:"iana"},"application/tamp-sequence-adjust-confirm":{source:"iana"},"application/tamp-status-query":{source:"iana"},"application/tamp-status-response":{source:"iana"},"application/tamp-update":{source:"iana"},"application/tamp-update-confirm":{source:"iana"},"application/tar":{compressible:!0},"application/taxii+json":{source:"iana",compressible:!0},"application/td+json":{source:"iana",compressible:!0},"application/tei+xml":{source:"iana",compressible:!0,extensions:["tei","teicorpus"]},"application/tetra_isi":{source:"iana"},"application/thraud+xml":{source:"iana",compressible:!0,extensions:["tfi"]},"application/timestamp-query":{source:"iana"},"application/timestamp-reply":{source:"iana"},"application/timestamped-data":{source:"iana",extensions:["tsd"]},"application/tlsrpt+gzip":{source:"iana"},"application/tlsrpt+json":{source:"iana",compressible:!0},"application/tnauthlist":{source:"iana"},"application/token-introspection+jwt":{source:"iana"},"application/toml":{compressible:!0,extensions:["toml"]},"application/trickle-ice-sdpfrag":{source:"iana"},"application/trig":{source:"iana",extensions:["trig"]},"application/ttml+xml":{source:"iana",compressible:!0,extensions:["ttml"]},"application/tve-trigger":{source:"iana"},"application/tzif":{source:"iana"},"application/tzif-leap":{source:"iana"},"application/ubjson":{compressible:!1,extensions:["ubj"]},"application/ulpfec":{source:"iana"},"application/urc-grpsheet+xml":{source:"iana",compressible:!0},"application/urc-ressheet+xml":{source:"iana",compressible:!0,extensions:["rsheet"]},"application/urc-targetdesc+xml":{source:"iana",compressible:!0,extensions:["td"]},"application/urc-uisocketdesc+xml":{source:"iana",compressible:!0},"application/vcard+json":{source:"iana",compressible:!0},"application/vcard+xml":{source:"iana",compressible:!0},"application/vemmi":{source:"iana"},"application/vividence.scriptfile":{source:"apache"},"application/vnd.1000minds.decision-model+xml":{source:"iana",compressible:!0,extensions:["1km"]},"application/vnd.3gpp-prose+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-prose-pc3ch+xml":{source:"iana",compressible:!0},"application/vnd.3gpp-v2x-local-service-information":{source:"iana"},"application/vnd.3gpp.5gnas":{source:"iana"},"application/vnd.3gpp.access-transfer-events+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.bsf+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gmop+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.gtpc":{source:"iana"},"application/vnd.3gpp.interworking-data":{source:"iana"},"application/vnd.3gpp.lpp":{source:"iana"},"application/vnd.3gpp.mc-signalling-ear":{source:"iana"},"application/vnd.3gpp.mcdata-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-payload":{source:"iana"},"application/vnd.3gpp.mcdata-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-signalling":{source:"iana"},"application/vnd.3gpp.mcdata-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcdata-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-floor-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-signed+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-ue-init-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcptt-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-command+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-affiliation-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-location-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-mbms-usage-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-service-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-transmission-request+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-ue-config+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mcvideo-user-profile+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.mid-call+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ngap":{source:"iana"},"application/vnd.3gpp.pfcp":{source:"iana"},"application/vnd.3gpp.pic-bw-large":{source:"iana",extensions:["plb"]},"application/vnd.3gpp.pic-bw-small":{source:"iana",extensions:["psb"]},"application/vnd.3gpp.pic-bw-var":{source:"iana",extensions:["pvb"]},"application/vnd.3gpp.s1ap":{source:"iana"},"application/vnd.3gpp.sms":{source:"iana"},"application/vnd.3gpp.sms+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-ext+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.srvcc-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.state-and-event-info+xml":{source:"iana",compressible:!0},"application/vnd.3gpp.ussd+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.bcmcsinfo+xml":{source:"iana",compressible:!0},"application/vnd.3gpp2.sms":{source:"iana"},"application/vnd.3gpp2.tcap":{source:"iana",extensions:["tcap"]},"application/vnd.3lightssoftware.imagescal":{source:"iana"},"application/vnd.3m.post-it-notes":{source:"iana",extensions:["pwn"]},"application/vnd.accpac.simply.aso":{source:"iana",extensions:["aso"]},"application/vnd.accpac.simply.imp":{source:"iana",extensions:["imp"]},"application/vnd.acucobol":{source:"iana",extensions:["acu"]},"application/vnd.acucorp":{source:"iana",extensions:["atc","acutc"]},"application/vnd.adobe.air-application-installer-package+zip":{source:"apache",compressible:!1,extensions:["air"]},"application/vnd.adobe.flash.movie":{source:"iana"},"application/vnd.adobe.formscentral.fcdt":{source:"iana",extensions:["fcdt"]},"application/vnd.adobe.fxp":{source:"iana",extensions:["fxp","fxpl"]},"application/vnd.adobe.partial-upload":{source:"iana"},"application/vnd.adobe.xdp+xml":{source:"iana",compressible:!0,extensions:["xdp"]},"application/vnd.adobe.xfdf":{source:"iana",extensions:["xfdf"]},"application/vnd.aether.imp":{source:"iana"},"application/vnd.afpc.afplinedata":{source:"iana"},"application/vnd.afpc.afplinedata-pagedef":{source:"iana"},"application/vnd.afpc.cmoca-cmresource":{source:"iana"},"application/vnd.afpc.foca-charset":{source:"iana"},"application/vnd.afpc.foca-codedfont":{source:"iana"},"application/vnd.afpc.foca-codepage":{source:"iana"},"application/vnd.afpc.modca":{source:"iana"},"application/vnd.afpc.modca-cmtable":{source:"iana"},"application/vnd.afpc.modca-formdef":{source:"iana"},"application/vnd.afpc.modca-mediummap":{source:"iana"},"application/vnd.afpc.modca-objectcontainer":{source:"iana"},"application/vnd.afpc.modca-overlay":{source:"iana"},"application/vnd.afpc.modca-pagesegment":{source:"iana"},"application/vnd.age":{source:"iana",extensions:["age"]},"application/vnd.ah-barcode":{source:"iana"},"application/vnd.ahead.space":{source:"iana",extensions:["ahead"]},"application/vnd.airzip.filesecure.azf":{source:"iana",extensions:["azf"]},"application/vnd.airzip.filesecure.azs":{source:"iana",extensions:["azs"]},"application/vnd.amadeus+json":{source:"iana",compressible:!0},"application/vnd.amazon.ebook":{source:"apache",extensions:["azw"]},"application/vnd.amazon.mobi8-ebook":{source:"iana"},"application/vnd.americandynamics.acc":{source:"iana",extensions:["acc"]},"application/vnd.amiga.ami":{source:"iana",extensions:["ami"]},"application/vnd.amundsen.maze+xml":{source:"iana",compressible:!0},"application/vnd.android.ota":{source:"iana"},"application/vnd.android.package-archive":{source:"apache",compressible:!1,extensions:["apk"]},"application/vnd.anki":{source:"iana"},"application/vnd.anser-web-certificate-issue-initiation":{source:"iana",extensions:["cii"]},"application/vnd.anser-web-funds-transfer-initiation":{source:"apache",extensions:["fti"]},"application/vnd.antix.game-component":{source:"iana",extensions:["atx"]},"application/vnd.apache.arrow.file":{source:"iana"},"application/vnd.apache.arrow.stream":{source:"iana"},"application/vnd.apache.thrift.binary":{source:"iana"},"application/vnd.apache.thrift.compact":{source:"iana"},"application/vnd.apache.thrift.json":{source:"iana"},"application/vnd.api+json":{source:"iana",compressible:!0},"application/vnd.aplextor.warrp+json":{source:"iana",compressible:!0},"application/vnd.apothekende.reservation+json":{source:"iana",compressible:!0},"application/vnd.apple.installer+xml":{source:"iana",compressible:!0,extensions:["mpkg"]},"application/vnd.apple.keynote":{source:"iana",extensions:["key"]},"application/vnd.apple.mpegurl":{source:"iana",extensions:["m3u8"]},"application/vnd.apple.numbers":{source:"iana",extensions:["numbers"]},"application/vnd.apple.pages":{source:"iana",extensions:["pages"]},"application/vnd.apple.pkpass":{compressible:!1,extensions:["pkpass"]},"application/vnd.arastra.swi":{source:"iana"},"application/vnd.aristanetworks.swi":{source:"iana",extensions:["swi"]},"application/vnd.artisan+json":{source:"iana",compressible:!0},"application/vnd.artsquare":{source:"iana"},"application/vnd.astraea-software.iota":{source:"iana",extensions:["iota"]},"application/vnd.audiograph":{source:"iana",extensions:["aep"]},"application/vnd.autopackage":{source:"iana"},"application/vnd.avalon+json":{source:"iana",compressible:!0},"application/vnd.avistar+xml":{source:"iana",compressible:!0},"application/vnd.balsamiq.bmml+xml":{source:"iana",compressible:!0,extensions:["bmml"]},"application/vnd.balsamiq.bmpr":{source:"iana"},"application/vnd.banana-accounting":{source:"iana"},"application/vnd.bbf.usp.error":{source:"iana"},"application/vnd.bbf.usp.msg":{source:"iana"},"application/vnd.bbf.usp.msg+json":{source:"iana",compressible:!0},"application/vnd.bekitzur-stech+json":{source:"iana",compressible:!0},"application/vnd.bint.med-content":{source:"iana"},"application/vnd.biopax.rdf+xml":{source:"iana",compressible:!0},"application/vnd.blink-idb-value-wrapper":{source:"iana"},"application/vnd.blueice.multipass":{source:"iana",extensions:["mpm"]},"application/vnd.bluetooth.ep.oob":{source:"iana"},"application/vnd.bluetooth.le.oob":{source:"iana"},"application/vnd.bmi":{source:"iana",extensions:["bmi"]},"application/vnd.bpf":{source:"iana"},"application/vnd.bpf3":{source:"iana"},"application/vnd.businessobjects":{source:"iana",extensions:["rep"]},"application/vnd.byu.uapi+json":{source:"iana",compressible:!0},"application/vnd.cab-jscript":{source:"iana"},"application/vnd.canon-cpdl":{source:"iana"},"application/vnd.canon-lips":{source:"iana"},"application/vnd.capasystems-pg+json":{source:"iana",compressible:!0},"application/vnd.cendio.thinlinc.clientconf":{source:"iana"},"application/vnd.century-systems.tcp_stream":{source:"iana"},"application/vnd.chemdraw+xml":{source:"iana",compressible:!0,extensions:["cdxml"]},"application/vnd.chess-pgn":{source:"iana"},"application/vnd.chipnuts.karaoke-mmd":{source:"iana",extensions:["mmd"]},"application/vnd.ciedi":{source:"iana"},"application/vnd.cinderella":{source:"iana",extensions:["cdy"]},"application/vnd.cirpack.isdn-ext":{source:"iana"},"application/vnd.citationstyles.style+xml":{source:"iana",compressible:!0,extensions:["csl"]},"application/vnd.claymore":{source:"iana",extensions:["cla"]},"application/vnd.cloanto.rp9":{source:"iana",extensions:["rp9"]},"application/vnd.clonk.c4group":{source:"iana",extensions:["c4g","c4d","c4f","c4p","c4u"]},"application/vnd.cluetrust.cartomobile-config":{source:"iana",extensions:["c11amc"]},"application/vnd.cluetrust.cartomobile-config-pkg":{source:"iana",extensions:["c11amz"]},"application/vnd.coffeescript":{source:"iana"},"application/vnd.collabio.xodocuments.document":{source:"iana"},"application/vnd.collabio.xodocuments.document-template":{source:"iana"},"application/vnd.collabio.xodocuments.presentation":{source:"iana"},"application/vnd.collabio.xodocuments.presentation-template":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet":{source:"iana"},"application/vnd.collabio.xodocuments.spreadsheet-template":{source:"iana"},"application/vnd.collection+json":{source:"iana",compressible:!0},"application/vnd.collection.doc+json":{source:"iana",compressible:!0},"application/vnd.collection.next+json":{source:"iana",compressible:!0},"application/vnd.comicbook+zip":{source:"iana",compressible:!1},"application/vnd.comicbook-rar":{source:"iana"},"application/vnd.commerce-battelle":{source:"iana"},"application/vnd.commonspace":{source:"iana",extensions:["csp"]},"application/vnd.contact.cmsg":{source:"iana",extensions:["cdbcmsg"]},"application/vnd.coreos.ignition+json":{source:"iana",compressible:!0},"application/vnd.cosmocaller":{source:"iana",extensions:["cmc"]},"application/vnd.crick.clicker":{source:"iana",extensions:["clkx"]},"application/vnd.crick.clicker.keyboard":{source:"iana",extensions:["clkk"]},"application/vnd.crick.clicker.palette":{source:"iana",extensions:["clkp"]},"application/vnd.crick.clicker.template":{source:"iana",extensions:["clkt"]},"application/vnd.crick.clicker.wordbank":{source:"iana",extensions:["clkw"]},"application/vnd.criticaltools.wbs+xml":{source:"iana",compressible:!0,extensions:["wbs"]},"application/vnd.cryptii.pipe+json":{source:"iana",compressible:!0},"application/vnd.crypto-shade-file":{source:"iana"},"application/vnd.cryptomator.encrypted":{source:"iana"},"application/vnd.cryptomator.vault":{source:"iana"},"application/vnd.ctc-posml":{source:"iana",extensions:["pml"]},"application/vnd.ctct.ws+xml":{source:"iana",compressible:!0},"application/vnd.cups-pdf":{source:"iana"},"application/vnd.cups-postscript":{source:"iana"},"application/vnd.cups-ppd":{source:"iana",extensions:["ppd"]},"application/vnd.cups-raster":{source:"iana"},"application/vnd.cups-raw":{source:"iana"},"application/vnd.curl":{source:"iana"},"application/vnd.curl.car":{source:"apache",extensions:["car"]},"application/vnd.curl.pcurl":{source:"apache",extensions:["pcurl"]},"application/vnd.cyan.dean.root+xml":{source:"iana",compressible:!0},"application/vnd.cybank":{source:"iana"},"application/vnd.cyclonedx+json":{source:"iana",compressible:!0},"application/vnd.cyclonedx+xml":{source:"iana",compressible:!0},"application/vnd.d2l.coursepackage1p0+zip":{source:"iana",compressible:!1},"application/vnd.d3m-dataset":{source:"iana"},"application/vnd.d3m-problem":{source:"iana"},"application/vnd.dart":{source:"iana",compressible:!0,extensions:["dart"]},"application/vnd.data-vision.rdz":{source:"iana",extensions:["rdz"]},"application/vnd.datapackage+json":{source:"iana",compressible:!0},"application/vnd.dataresource+json":{source:"iana",compressible:!0},"application/vnd.dbf":{source:"iana",extensions:["dbf"]},"application/vnd.debian.binary-package":{source:"iana"},"application/vnd.dece.data":{source:"iana",extensions:["uvf","uvvf","uvd","uvvd"]},"application/vnd.dece.ttml+xml":{source:"iana",compressible:!0,extensions:["uvt","uvvt"]},"application/vnd.dece.unspecified":{source:"iana",extensions:["uvx","uvvx"]},"application/vnd.dece.zip":{source:"iana",extensions:["uvz","uvvz"]},"application/vnd.denovo.fcselayout-link":{source:"iana",extensions:["fe_launch"]},"application/vnd.desmume.movie":{source:"iana"},"application/vnd.dir-bi.plate-dl-nosuffix":{source:"iana"},"application/vnd.dm.delegation+xml":{source:"iana",compressible:!0},"application/vnd.dna":{source:"iana",extensions:["dna"]},"application/vnd.document+json":{source:"iana",compressible:!0},"application/vnd.dolby.mlp":{source:"apache",extensions:["mlp"]},"application/vnd.dolby.mobile.1":{source:"iana"},"application/vnd.dolby.mobile.2":{source:"iana"},"application/vnd.doremir.scorecloud-binary-document":{source:"iana"},"application/vnd.dpgraph":{source:"iana",extensions:["dpg"]},"application/vnd.dreamfactory":{source:"iana",extensions:["dfac"]},"application/vnd.drive+json":{source:"iana",compressible:!0},"application/vnd.ds-keypoint":{source:"apache",extensions:["kpxx"]},"application/vnd.dtg.local":{source:"iana"},"application/vnd.dtg.local.flash":{source:"iana"},"application/vnd.dtg.local.html":{source:"iana"},"application/vnd.dvb.ait":{source:"iana",extensions:["ait"]},"application/vnd.dvb.dvbisl+xml":{source:"iana",compressible:!0},"application/vnd.dvb.dvbj":{source:"iana"},"application/vnd.dvb.esgcontainer":{source:"iana"},"application/vnd.dvb.ipdcdftnotifaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess":{source:"iana"},"application/vnd.dvb.ipdcesgaccess2":{source:"iana"},"application/vnd.dvb.ipdcesgpdd":{source:"iana"},"application/vnd.dvb.ipdcroaming":{source:"iana"},"application/vnd.dvb.iptv.alfec-base":{source:"iana"},"application/vnd.dvb.iptv.alfec-enhancement":{source:"iana"},"application/vnd.dvb.notif-aggregate-root+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-container+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-generic+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-msglist+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-request+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-ia-registration-response+xml":{source:"iana",compressible:!0},"application/vnd.dvb.notif-init+xml":{source:"iana",compressible:!0},"application/vnd.dvb.pfr":{source:"iana"},"application/vnd.dvb.service":{source:"iana",extensions:["svc"]},"application/vnd.dxr":{source:"iana"},"application/vnd.dynageo":{source:"iana",extensions:["geo"]},"application/vnd.dzr":{source:"iana"},"application/vnd.easykaraoke.cdgdownload":{source:"iana"},"application/vnd.ecdis-update":{source:"iana"},"application/vnd.ecip.rlp":{source:"iana"},"application/vnd.eclipse.ditto+json":{source:"iana",compressible:!0},"application/vnd.ecowin.chart":{source:"iana",extensions:["mag"]},"application/vnd.ecowin.filerequest":{source:"iana"},"application/vnd.ecowin.fileupdate":{source:"iana"},"application/vnd.ecowin.series":{source:"iana"},"application/vnd.ecowin.seriesrequest":{source:"iana"},"application/vnd.ecowin.seriesupdate":{source:"iana"},"application/vnd.efi.img":{source:"iana"},"application/vnd.efi.iso":{source:"iana"},"application/vnd.emclient.accessrequest+xml":{source:"iana",compressible:!0},"application/vnd.enliven":{source:"iana",extensions:["nml"]},"application/vnd.enphase.envoy":{source:"iana"},"application/vnd.eprints.data+xml":{source:"iana",compressible:!0},"application/vnd.epson.esf":{source:"iana",extensions:["esf"]},"application/vnd.epson.msf":{source:"iana",extensions:["msf"]},"application/vnd.epson.quickanime":{source:"iana",extensions:["qam"]},"application/vnd.epson.salt":{source:"iana",extensions:["slt"]},"application/vnd.epson.ssf":{source:"iana",extensions:["ssf"]},"application/vnd.ericsson.quickcall":{source:"iana"},"application/vnd.espass-espass+zip":{source:"iana",compressible:!1},"application/vnd.eszigno3+xml":{source:"iana",compressible:!0,extensions:["es3","et3"]},"application/vnd.etsi.aoc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.asic-e+zip":{source:"iana",compressible:!1},"application/vnd.etsi.asic-s+zip":{source:"iana",compressible:!1},"application/vnd.etsi.cug+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvcommand+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-bc+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-cod+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsad-npvr+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvservice+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvsync+xml":{source:"iana",compressible:!0},"application/vnd.etsi.iptvueprofile+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mcid+xml":{source:"iana",compressible:!0},"application/vnd.etsi.mheg5":{source:"iana"},"application/vnd.etsi.overload-control-policy-dataset+xml":{source:"iana",compressible:!0},"application/vnd.etsi.pstn+xml":{source:"iana",compressible:!0},"application/vnd.etsi.sci+xml":{source:"iana",compressible:!0},"application/vnd.etsi.simservs+xml":{source:"iana",compressible:!0},"application/vnd.etsi.timestamp-token":{source:"iana"},"application/vnd.etsi.tsl+xml":{source:"iana",compressible:!0},"application/vnd.etsi.tsl.der":{source:"iana"},"application/vnd.eu.kasparian.car+json":{source:"iana",compressible:!0},"application/vnd.eudora.data":{source:"iana"},"application/vnd.evolv.ecig.profile":{source:"iana"},"application/vnd.evolv.ecig.settings":{source:"iana"},"application/vnd.evolv.ecig.theme":{source:"iana"},"application/vnd.exstream-empower+zip":{source:"iana",compressible:!1},"application/vnd.exstream-package":{source:"iana"},"application/vnd.ezpix-album":{source:"iana",extensions:["ez2"]},"application/vnd.ezpix-package":{source:"iana",extensions:["ez3"]},"application/vnd.f-secure.mobile":{source:"iana"},"application/vnd.familysearch.gedcom+zip":{source:"iana",compressible:!1},"application/vnd.fastcopy-disk-image":{source:"iana"},"application/vnd.fdf":{source:"iana",extensions:["fdf"]},"application/vnd.fdsn.mseed":{source:"iana",extensions:["mseed"]},"application/vnd.fdsn.seed":{source:"iana",extensions:["seed","dataless"]},"application/vnd.ffsns":{source:"iana"},"application/vnd.ficlab.flb+zip":{source:"iana",compressible:!1},"application/vnd.filmit.zfc":{source:"iana"},"application/vnd.fints":{source:"iana"},"application/vnd.firemonkeys.cloudcell":{source:"iana"},"application/vnd.flographit":{source:"iana",extensions:["gph"]},"application/vnd.fluxtime.clip":{source:"iana",extensions:["ftc"]},"application/vnd.font-fontforge-sfd":{source:"iana"},"application/vnd.framemaker":{source:"iana",extensions:["fm","frame","maker","book"]},"application/vnd.frogans.fnc":{source:"iana",extensions:["fnc"]},"application/vnd.frogans.ltf":{source:"iana",extensions:["ltf"]},"application/vnd.fsc.weblaunch":{source:"iana",extensions:["fsc"]},"application/vnd.fujifilm.fb.docuworks":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.binder":{source:"iana"},"application/vnd.fujifilm.fb.docuworks.container":{source:"iana"},"application/vnd.fujifilm.fb.jfi+xml":{source:"iana",compressible:!0},"application/vnd.fujitsu.oasys":{source:"iana",extensions:["oas"]},"application/vnd.fujitsu.oasys2":{source:"iana",extensions:["oa2"]},"application/vnd.fujitsu.oasys3":{source:"iana",extensions:["oa3"]},"application/vnd.fujitsu.oasysgp":{source:"iana",extensions:["fg5"]},"application/vnd.fujitsu.oasysprs":{source:"iana",extensions:["bh2"]},"application/vnd.fujixerox.art-ex":{source:"iana"},"application/vnd.fujixerox.art4":{source:"iana"},"application/vnd.fujixerox.ddd":{source:"iana",extensions:["ddd"]},"application/vnd.fujixerox.docuworks":{source:"iana",extensions:["xdw"]},"application/vnd.fujixerox.docuworks.binder":{source:"iana",extensions:["xbd"]},"application/vnd.fujixerox.docuworks.container":{source:"iana"},"application/vnd.fujixerox.hbpl":{source:"iana"},"application/vnd.fut-misnet":{source:"iana"},"application/vnd.futoin+cbor":{source:"iana"},"application/vnd.futoin+json":{source:"iana",compressible:!0},"application/vnd.fuzzysheet":{source:"iana",extensions:["fzs"]},"application/vnd.genomatix.tuxedo":{source:"iana",extensions:["txd"]},"application/vnd.gentics.grd+json":{source:"iana",compressible:!0},"application/vnd.geo+json":{source:"iana",compressible:!0},"application/vnd.geocube+xml":{source:"iana",compressible:!0},"application/vnd.geogebra.file":{source:"iana",extensions:["ggb"]},"application/vnd.geogebra.slides":{source:"iana"},"application/vnd.geogebra.tool":{source:"iana",extensions:["ggt"]},"application/vnd.geometry-explorer":{source:"iana",extensions:["gex","gre"]},"application/vnd.geonext":{source:"iana",extensions:["gxt"]},"application/vnd.geoplan":{source:"iana",extensions:["g2w"]},"application/vnd.geospace":{source:"iana",extensions:["g3w"]},"application/vnd.gerber":{source:"iana"},"application/vnd.globalplatform.card-content-mgt":{source:"iana"},"application/vnd.globalplatform.card-content-mgt-response":{source:"iana"},"application/vnd.gmx":{source:"iana",extensions:["gmx"]},"application/vnd.google-apps.document":{compressible:!1,extensions:["gdoc"]},"application/vnd.google-apps.presentation":{compressible:!1,extensions:["gslides"]},"application/vnd.google-apps.spreadsheet":{compressible:!1,extensions:["gsheet"]},"application/vnd.google-earth.kml+xml":{source:"iana",compressible:!0,extensions:["kml"]},"application/vnd.google-earth.kmz":{source:"iana",compressible:!1,extensions:["kmz"]},"application/vnd.gov.sk.e-form+xml":{source:"iana",compressible:!0},"application/vnd.gov.sk.e-form+zip":{source:"iana",compressible:!1},"application/vnd.gov.sk.xmldatacontainer+xml":{source:"iana",compressible:!0},"application/vnd.grafeq":{source:"iana",extensions:["gqf","gqs"]},"application/vnd.gridmp":{source:"iana"},"application/vnd.groove-account":{source:"iana",extensions:["gac"]},"application/vnd.groove-help":{source:"iana",extensions:["ghf"]},"application/vnd.groove-identity-message":{source:"iana",extensions:["gim"]},"application/vnd.groove-injector":{source:"iana",extensions:["grv"]},"application/vnd.groove-tool-message":{source:"iana",extensions:["gtm"]},"application/vnd.groove-tool-template":{source:"iana",extensions:["tpl"]},"application/vnd.groove-vcard":{source:"iana",extensions:["vcg"]},"application/vnd.hal+json":{source:"iana",compressible:!0},"application/vnd.hal+xml":{source:"iana",compressible:!0,extensions:["hal"]},"application/vnd.handheld-entertainment+xml":{source:"iana",compressible:!0,extensions:["zmm"]},"application/vnd.hbci":{source:"iana",extensions:["hbci"]},"application/vnd.hc+json":{source:"iana",compressible:!0},"application/vnd.hcl-bireports":{source:"iana"},"application/vnd.hdt":{source:"iana"},"application/vnd.heroku+json":{source:"iana",compressible:!0},"application/vnd.hhe.lesson-player":{source:"iana",extensions:["les"]},"application/vnd.hl7cda+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hl7v2+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.hp-hpgl":{source:"iana",extensions:["hpgl"]},"application/vnd.hp-hpid":{source:"iana",extensions:["hpid"]},"application/vnd.hp-hps":{source:"iana",extensions:["hps"]},"application/vnd.hp-jlyt":{source:"iana",extensions:["jlt"]},"application/vnd.hp-pcl":{source:"iana",extensions:["pcl"]},"application/vnd.hp-pclxl":{source:"iana",extensions:["pclxl"]},"application/vnd.httphone":{source:"iana"},"application/vnd.hydrostatix.sof-data":{source:"iana",extensions:["sfd-hdstx"]},"application/vnd.hyper+json":{source:"iana",compressible:!0},"application/vnd.hyper-item+json":{source:"iana",compressible:!0},"application/vnd.hyperdrive+json":{source:"iana",compressible:!0},"application/vnd.hzn-3d-crossword":{source:"iana"},"application/vnd.ibm.afplinedata":{source:"iana"},"application/vnd.ibm.electronic-media":{source:"iana"},"application/vnd.ibm.minipay":{source:"iana",extensions:["mpy"]},"application/vnd.ibm.modcap":{source:"iana",extensions:["afp","listafp","list3820"]},"application/vnd.ibm.rights-management":{source:"iana",extensions:["irm"]},"application/vnd.ibm.secure-container":{source:"iana",extensions:["sc"]},"application/vnd.iccprofile":{source:"iana",extensions:["icc","icm"]},"application/vnd.ieee.1905":{source:"iana"},"application/vnd.igloader":{source:"iana",extensions:["igl"]},"application/vnd.imagemeter.folder+zip":{source:"iana",compressible:!1},"application/vnd.imagemeter.image+zip":{source:"iana",compressible:!1},"application/vnd.immervision-ivp":{source:"iana",extensions:["ivp"]},"application/vnd.immervision-ivu":{source:"iana",extensions:["ivu"]},"application/vnd.ims.imsccv1p1":{source:"iana"},"application/vnd.ims.imsccv1p2":{source:"iana"},"application/vnd.ims.imsccv1p3":{source:"iana"},"application/vnd.ims.lis.v2.result+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolconsumerprofile+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolproxy.id+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings+json":{source:"iana",compressible:!0},"application/vnd.ims.lti.v2.toolsettings.simple+json":{source:"iana",compressible:!0},"application/vnd.informedcontrol.rms+xml":{source:"iana",compressible:!0},"application/vnd.informix-visionary":{source:"iana"},"application/vnd.infotech.project":{source:"iana"},"application/vnd.infotech.project+xml":{source:"iana",compressible:!0},"application/vnd.innopath.wamp.notification":{source:"iana"},"application/vnd.insors.igm":{source:"iana",extensions:["igm"]},"application/vnd.intercon.formnet":{source:"iana",extensions:["xpw","xpx"]},"application/vnd.intergeo":{source:"iana",extensions:["i2g"]},"application/vnd.intertrust.digibox":{source:"iana"},"application/vnd.intertrust.nncp":{source:"iana"},"application/vnd.intu.qbo":{source:"iana",extensions:["qbo"]},"application/vnd.intu.qfx":{source:"iana",extensions:["qfx"]},"application/vnd.iptc.g2.catalogitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.conceptitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.knowledgeitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.newsmessage+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.packageitem+xml":{source:"iana",compressible:!0},"application/vnd.iptc.g2.planningitem+xml":{source:"iana",compressible:!0},"application/vnd.ipunplugged.rcprofile":{source:"iana",extensions:["rcprofile"]},"application/vnd.irepository.package+xml":{source:"iana",compressible:!0,extensions:["irp"]},"application/vnd.is-xpr":{source:"iana",extensions:["xpr"]},"application/vnd.isac.fcs":{source:"iana",extensions:["fcs"]},"application/vnd.iso11783-10+zip":{source:"iana",compressible:!1},"application/vnd.jam":{source:"iana",extensions:["jam"]},"application/vnd.japannet-directory-service":{source:"iana"},"application/vnd.japannet-jpnstore-wakeup":{source:"iana"},"application/vnd.japannet-payment-wakeup":{source:"iana"},"application/vnd.japannet-registration":{source:"iana"},"application/vnd.japannet-registration-wakeup":{source:"iana"},"application/vnd.japannet-setstore-wakeup":{source:"iana"},"application/vnd.japannet-verification":{source:"iana"},"application/vnd.japannet-verification-wakeup":{source:"iana"},"application/vnd.jcp.javame.midlet-rms":{source:"iana",extensions:["rms"]},"application/vnd.jisp":{source:"iana",extensions:["jisp"]},"application/vnd.joost.joda-archive":{source:"iana",extensions:["joda"]},"application/vnd.jsk.isdn-ngn":{source:"iana"},"application/vnd.kahootz":{source:"iana",extensions:["ktz","ktr"]},"application/vnd.kde.karbon":{source:"iana",extensions:["karbon"]},"application/vnd.kde.kchart":{source:"iana",extensions:["chrt"]},"application/vnd.kde.kformula":{source:"iana",extensions:["kfo"]},"application/vnd.kde.kivio":{source:"iana",extensions:["flw"]},"application/vnd.kde.kontour":{source:"iana",extensions:["kon"]},"application/vnd.kde.kpresenter":{source:"iana",extensions:["kpr","kpt"]},"application/vnd.kde.kspread":{source:"iana",extensions:["ksp"]},"application/vnd.kde.kword":{source:"iana",extensions:["kwd","kwt"]},"application/vnd.kenameaapp":{source:"iana",extensions:["htke"]},"application/vnd.kidspiration":{source:"iana",extensions:["kia"]},"application/vnd.kinar":{source:"iana",extensions:["kne","knp"]},"application/vnd.koan":{source:"iana",extensions:["skp","skd","skt","skm"]},"application/vnd.kodak-descriptor":{source:"iana",extensions:["sse"]},"application/vnd.las":{source:"iana"},"application/vnd.las.las+json":{source:"iana",compressible:!0},"application/vnd.las.las+xml":{source:"iana",compressible:!0,extensions:["lasxml"]},"application/vnd.laszip":{source:"iana"},"application/vnd.leap+json":{source:"iana",compressible:!0},"application/vnd.liberty-request+xml":{source:"iana",compressible:!0},"application/vnd.llamagraphics.life-balance.desktop":{source:"iana",extensions:["lbd"]},"application/vnd.llamagraphics.life-balance.exchange+xml":{source:"iana",compressible:!0,extensions:["lbe"]},"application/vnd.logipipe.circuit+zip":{source:"iana",compressible:!1},"application/vnd.loom":{source:"iana"},"application/vnd.lotus-1-2-3":{source:"iana",extensions:["123"]},"application/vnd.lotus-approach":{source:"iana",extensions:["apr"]},"application/vnd.lotus-freelance":{source:"iana",extensions:["pre"]},"application/vnd.lotus-notes":{source:"iana",extensions:["nsf"]},"application/vnd.lotus-organizer":{source:"iana",extensions:["org"]},"application/vnd.lotus-screencam":{source:"iana",extensions:["scm"]},"application/vnd.lotus-wordpro":{source:"iana",extensions:["lwp"]},"application/vnd.macports.portpkg":{source:"iana",extensions:["portpkg"]},"application/vnd.mapbox-vector-tile":{source:"iana",extensions:["mvt"]},"application/vnd.marlin.drm.actiontoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.conftoken+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.license+xml":{source:"iana",compressible:!0},"application/vnd.marlin.drm.mdcf":{source:"iana"},"application/vnd.mason+json":{source:"iana",compressible:!0},"application/vnd.maxar.archive.3tz+zip":{source:"iana",compressible:!1},"application/vnd.maxmind.maxmind-db":{source:"iana"},"application/vnd.mcd":{source:"iana",extensions:["mcd"]},"application/vnd.medcalcdata":{source:"iana",extensions:["mc1"]},"application/vnd.mediastation.cdkey":{source:"iana",extensions:["cdkey"]},"application/vnd.meridian-slingshot":{source:"iana"},"application/vnd.mfer":{source:"iana",extensions:["mwf"]},"application/vnd.mfmp":{source:"iana",extensions:["mfm"]},"application/vnd.micro+json":{source:"iana",compressible:!0},"application/vnd.micrografx.flo":{source:"iana",extensions:["flo"]},"application/vnd.micrografx.igx":{source:"iana",extensions:["igx"]},"application/vnd.microsoft.portable-executable":{source:"iana"},"application/vnd.microsoft.windows.thumbnail-cache":{source:"iana"},"application/vnd.miele+json":{source:"iana",compressible:!0},"application/vnd.mif":{source:"iana",extensions:["mif"]},"application/vnd.minisoft-hp3000-save":{source:"iana"},"application/vnd.mitsubishi.misty-guard.trustweb":{source:"iana"},"application/vnd.mobius.daf":{source:"iana",extensions:["daf"]},"application/vnd.mobius.dis":{source:"iana",extensions:["dis"]},"application/vnd.mobius.mbk":{source:"iana",extensions:["mbk"]},"application/vnd.mobius.mqy":{source:"iana",extensions:["mqy"]},"application/vnd.mobius.msl":{source:"iana",extensions:["msl"]},"application/vnd.mobius.plc":{source:"iana",extensions:["plc"]},"application/vnd.mobius.txf":{source:"iana",extensions:["txf"]},"application/vnd.mophun.application":{source:"iana",extensions:["mpn"]},"application/vnd.mophun.certificate":{source:"iana",extensions:["mpc"]},"application/vnd.motorola.flexsuite":{source:"iana"},"application/vnd.motorola.flexsuite.adsi":{source:"iana"},"application/vnd.motorola.flexsuite.fis":{source:"iana"},"application/vnd.motorola.flexsuite.gotap":{source:"iana"},"application/vnd.motorola.flexsuite.kmr":{source:"iana"},"application/vnd.motorola.flexsuite.ttc":{source:"iana"},"application/vnd.motorola.flexsuite.wem":{source:"iana"},"application/vnd.motorola.iprm":{source:"iana"},"application/vnd.mozilla.xul+xml":{source:"iana",compressible:!0,extensions:["xul"]},"application/vnd.ms-3mfdocument":{source:"iana"},"application/vnd.ms-artgalry":{source:"iana",extensions:["cil"]},"application/vnd.ms-asf":{source:"iana"},"application/vnd.ms-cab-compressed":{source:"iana",extensions:["cab"]},"application/vnd.ms-color.iccprofile":{source:"apache"},"application/vnd.ms-excel":{source:"iana",compressible:!1,extensions:["xls","xlm","xla","xlc","xlt","xlw"]},"application/vnd.ms-excel.addin.macroenabled.12":{source:"iana",extensions:["xlam"]},"application/vnd.ms-excel.sheet.binary.macroenabled.12":{source:"iana",extensions:["xlsb"]},"application/vnd.ms-excel.sheet.macroenabled.12":{source:"iana",extensions:["xlsm"]},"application/vnd.ms-excel.template.macroenabled.12":{source:"iana",extensions:["xltm"]},"application/vnd.ms-fontobject":{source:"iana",compressible:!0,extensions:["eot"]},"application/vnd.ms-htmlhelp":{source:"iana",extensions:["chm"]},"application/vnd.ms-ims":{source:"iana",extensions:["ims"]},"application/vnd.ms-lrm":{source:"iana",extensions:["lrm"]},"application/vnd.ms-office.activex+xml":{source:"iana",compressible:!0},"application/vnd.ms-officetheme":{source:"iana",extensions:["thmx"]},"application/vnd.ms-opentype":{source:"apache",compressible:!0},"application/vnd.ms-outlook":{compressible:!1,extensions:["msg"]},"application/vnd.ms-package.obfuscated-opentype":{source:"apache"},"application/vnd.ms-pki.seccat":{source:"apache",extensions:["cat"]},"application/vnd.ms-pki.stl":{source:"apache",extensions:["stl"]},"application/vnd.ms-playready.initiator+xml":{source:"iana",compressible:!0},"application/vnd.ms-powerpoint":{source:"iana",compressible:!1,extensions:["ppt","pps","pot"]},"application/vnd.ms-powerpoint.addin.macroenabled.12":{source:"iana",extensions:["ppam"]},"application/vnd.ms-powerpoint.presentation.macroenabled.12":{source:"iana",extensions:["pptm"]},"application/vnd.ms-powerpoint.slide.macroenabled.12":{source:"iana",extensions:["sldm"]},"application/vnd.ms-powerpoint.slideshow.macroenabled.12":{source:"iana",extensions:["ppsm"]},"application/vnd.ms-powerpoint.template.macroenabled.12":{source:"iana",extensions:["potm"]},"application/vnd.ms-printdevicecapabilities+xml":{source:"iana",compressible:!0},"application/vnd.ms-printing.printticket+xml":{source:"apache",compressible:!0},"application/vnd.ms-printschematicket+xml":{source:"iana",compressible:!0},"application/vnd.ms-project":{source:"iana",extensions:["mpp","mpt"]},"application/vnd.ms-tnef":{source:"iana"},"application/vnd.ms-windows.devicepairing":{source:"iana"},"application/vnd.ms-windows.nwprinting.oob":{source:"iana"},"application/vnd.ms-windows.printerpairing":{source:"iana"},"application/vnd.ms-windows.wsd.oob":{source:"iana"},"application/vnd.ms-wmdrm.lic-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.lic-resp":{source:"iana"},"application/vnd.ms-wmdrm.meter-chlg-req":{source:"iana"},"application/vnd.ms-wmdrm.meter-resp":{source:"iana"},"application/vnd.ms-word.document.macroenabled.12":{source:"iana",extensions:["docm"]},"application/vnd.ms-word.template.macroenabled.12":{source:"iana",extensions:["dotm"]},"application/vnd.ms-works":{source:"iana",extensions:["wps","wks","wcm","wdb"]},"application/vnd.ms-wpl":{source:"iana",extensions:["wpl"]},"application/vnd.ms-xpsdocument":{source:"iana",compressible:!1,extensions:["xps"]},"application/vnd.msa-disk-image":{source:"iana"},"application/vnd.mseq":{source:"iana",extensions:["mseq"]},"application/vnd.msign":{source:"iana"},"application/vnd.multiad.creator":{source:"iana"},"application/vnd.multiad.creator.cif":{source:"iana"},"application/vnd.music-niff":{source:"iana"},"application/vnd.musician":{source:"iana",extensions:["mus"]},"application/vnd.muvee.style":{source:"iana",extensions:["msty"]},"application/vnd.mynfc":{source:"iana",extensions:["taglet"]},"application/vnd.nacamar.ybrid+json":{source:"iana",compressible:!0},"application/vnd.ncd.control":{source:"iana"},"application/vnd.ncd.reference":{source:"iana"},"application/vnd.nearst.inv+json":{source:"iana",compressible:!0},"application/vnd.nebumind.line":{source:"iana"},"application/vnd.nervana":{source:"iana"},"application/vnd.netfpx":{source:"iana"},"application/vnd.neurolanguage.nlu":{source:"iana",extensions:["nlu"]},"application/vnd.nimn":{source:"iana"},"application/vnd.nintendo.nitro.rom":{source:"iana"},"application/vnd.nintendo.snes.rom":{source:"iana"},"application/vnd.nitf":{source:"iana",extensions:["ntf","nitf"]},"application/vnd.noblenet-directory":{source:"iana",extensions:["nnd"]},"application/vnd.noblenet-sealer":{source:"iana",extensions:["nns"]},"application/vnd.noblenet-web":{source:"iana",extensions:["nnw"]},"application/vnd.nokia.catalogs":{source:"iana"},"application/vnd.nokia.conml+wbxml":{source:"iana"},"application/vnd.nokia.conml+xml":{source:"iana",compressible:!0},"application/vnd.nokia.iptv.config+xml":{source:"iana",compressible:!0},"application/vnd.nokia.isds-radio-presets":{source:"iana"},"application/vnd.nokia.landmark+wbxml":{source:"iana"},"application/vnd.nokia.landmark+xml":{source:"iana",compressible:!0},"application/vnd.nokia.landmarkcollection+xml":{source:"iana",compressible:!0},"application/vnd.nokia.n-gage.ac+xml":{source:"iana",compressible:!0,extensions:["ac"]},"application/vnd.nokia.n-gage.data":{source:"iana",extensions:["ngdat"]},"application/vnd.nokia.n-gage.symbian.install":{source:"iana",extensions:["n-gage"]},"application/vnd.nokia.ncd":{source:"iana"},"application/vnd.nokia.pcd+wbxml":{source:"iana"},"application/vnd.nokia.pcd+xml":{source:"iana",compressible:!0},"application/vnd.nokia.radio-preset":{source:"iana",extensions:["rpst"]},"application/vnd.nokia.radio-presets":{source:"iana",extensions:["rpss"]},"application/vnd.novadigm.edm":{source:"iana",extensions:["edm"]},"application/vnd.novadigm.edx":{source:"iana",extensions:["edx"]},"application/vnd.novadigm.ext":{source:"iana",extensions:["ext"]},"application/vnd.ntt-local.content-share":{source:"iana"},"application/vnd.ntt-local.file-transfer":{source:"iana"},"application/vnd.ntt-local.ogw_remote-access":{source:"iana"},"application/vnd.ntt-local.sip-ta_remote":{source:"iana"},"application/vnd.ntt-local.sip-ta_tcp_stream":{source:"iana"},"application/vnd.oasis.opendocument.chart":{source:"iana",extensions:["odc"]},"application/vnd.oasis.opendocument.chart-template":{source:"iana",extensions:["otc"]},"application/vnd.oasis.opendocument.database":{source:"iana",extensions:["odb"]},"application/vnd.oasis.opendocument.formula":{source:"iana",extensions:["odf"]},"application/vnd.oasis.opendocument.formula-template":{source:"iana",extensions:["odft"]},"application/vnd.oasis.opendocument.graphics":{source:"iana",compressible:!1,extensions:["odg"]},"application/vnd.oasis.opendocument.graphics-template":{source:"iana",extensions:["otg"]},"application/vnd.oasis.opendocument.image":{source:"iana",extensions:["odi"]},"application/vnd.oasis.opendocument.image-template":{source:"iana",extensions:["oti"]},"application/vnd.oasis.opendocument.presentation":{source:"iana",compressible:!1,extensions:["odp"]},"application/vnd.oasis.opendocument.presentation-template":{source:"iana",extensions:["otp"]},"application/vnd.oasis.opendocument.spreadsheet":{source:"iana",compressible:!1,extensions:["ods"]},"application/vnd.oasis.opendocument.spreadsheet-template":{source:"iana",extensions:["ots"]},"application/vnd.oasis.opendocument.text":{source:"iana",compressible:!1,extensions:["odt"]},"application/vnd.oasis.opendocument.text-master":{source:"iana",extensions:["odm"]},"application/vnd.oasis.opendocument.text-template":{source:"iana",extensions:["ott"]},"application/vnd.oasis.opendocument.text-web":{source:"iana",extensions:["oth"]},"application/vnd.obn":{source:"iana"},"application/vnd.ocf+cbor":{source:"iana"},"application/vnd.oci.image.manifest.v1+json":{source:"iana",compressible:!0},"application/vnd.oftn.l10n+json":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessdownload+xml":{source:"iana",compressible:!0},"application/vnd.oipf.contentaccessstreaming+xml":{source:"iana",compressible:!0},"application/vnd.oipf.cspg-hexbinary":{source:"iana"},"application/vnd.oipf.dae.svg+xml":{source:"iana",compressible:!0},"application/vnd.oipf.dae.xhtml+xml":{source:"iana",compressible:!0},"application/vnd.oipf.mippvcontrolmessage+xml":{source:"iana",compressible:!0},"application/vnd.oipf.pae.gem":{source:"iana"},"application/vnd.oipf.spdiscovery+xml":{source:"iana",compressible:!0},"application/vnd.oipf.spdlist+xml":{source:"iana",compressible:!0},"application/vnd.oipf.ueprofile+xml":{source:"iana",compressible:!0},"application/vnd.oipf.userprofile+xml":{source:"iana",compressible:!0},"application/vnd.olpc-sugar":{source:"iana",extensions:["xo"]},"application/vnd.oma-scws-config":{source:"iana"},"application/vnd.oma-scws-http-request":{source:"iana"},"application/vnd.oma-scws-http-response":{source:"iana"},"application/vnd.oma.bcast.associated-procedure-parameter+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.drm-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.imd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.ltkm":{source:"iana"},"application/vnd.oma.bcast.notification+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.provisioningtrigger":{source:"iana"},"application/vnd.oma.bcast.sgboot":{source:"iana"},"application/vnd.oma.bcast.sgdd+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sgdu":{source:"iana"},"application/vnd.oma.bcast.simple-symbol-container":{source:"iana"},"application/vnd.oma.bcast.smartcard-trigger+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.sprov+xml":{source:"iana",compressible:!0},"application/vnd.oma.bcast.stkm":{source:"iana"},"application/vnd.oma.cab-address-book+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-feature-handler+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-pcc+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-subs-invite+xml":{source:"iana",compressible:!0},"application/vnd.oma.cab-user-prefs+xml":{source:"iana",compressible:!0},"application/vnd.oma.dcd":{source:"iana"},"application/vnd.oma.dcdc":{source:"iana"},"application/vnd.oma.dd2+xml":{source:"iana",compressible:!0,extensions:["dd2"]},"application/vnd.oma.drm.risd+xml":{source:"iana",compressible:!0},"application/vnd.oma.group-usage-list+xml":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+cbor":{source:"iana"},"application/vnd.oma.lwm2m+json":{source:"iana",compressible:!0},"application/vnd.oma.lwm2m+tlv":{source:"iana"},"application/vnd.oma.pal+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.detailed-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.final-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.groups+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.invocation-descriptor+xml":{source:"iana",compressible:!0},"application/vnd.oma.poc.optimized-progress-report+xml":{source:"iana",compressible:!0},"application/vnd.oma.push":{source:"iana"},"application/vnd.oma.scidm.messages+xml":{source:"iana",compressible:!0},"application/vnd.oma.xcap-directory+xml":{source:"iana",compressible:!0},"application/vnd.omads-email+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-file+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omads-folder+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.omaloc-supl-init":{source:"iana"},"application/vnd.onepager":{source:"iana"},"application/vnd.onepagertamp":{source:"iana"},"application/vnd.onepagertamx":{source:"iana"},"application/vnd.onepagertat":{source:"iana"},"application/vnd.onepagertatp":{source:"iana"},"application/vnd.onepagertatx":{source:"iana"},"application/vnd.openblox.game+xml":{source:"iana",compressible:!0,extensions:["obgx"]},"application/vnd.openblox.game-binary":{source:"iana"},"application/vnd.openeye.oeb":{source:"iana"},"application/vnd.openofficeorg.extension":{source:"apache",extensions:["oxt"]},"application/vnd.openstreetmap.data+xml":{source:"iana",compressible:!0,extensions:["osm"]},"application/vnd.opentimestamps.ots":{source:"iana"},"application/vnd.openxmlformats-officedocument.custom-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.customxmlproperties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawing+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chart+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramcolors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramdata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramlayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.drawingml.diagramstyle+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.extended-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.commentauthors+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.handoutmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesmaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.notesslide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presentation":{source:"iana",compressible:!1,extensions:["pptx"]},"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.presprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slide":{source:"iana",extensions:["sldx"]},"application/vnd.openxmlformats-officedocument.presentationml.slide+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidelayout+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slidemaster+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideshow":{source:"iana",extensions:["ppsx"]},"application/vnd.openxmlformats-officedocument.presentationml.slideshow.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.slideupdateinfo+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tablestyles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.tags+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.template":{source:"iana",extensions:["potx"]},"application/vnd.openxmlformats-officedocument.presentationml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.presentationml.viewprops+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.calcchain+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.externallink+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcachedefinition+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivotcacherecords+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.pivottable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.querytable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionheaders+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.revisionlog+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedstrings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":{source:"iana",compressible:!1,extensions:["xlsx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetmetadata+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.tablesinglecells+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.template":{source:"iana",extensions:["xltx"]},"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.usernames+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.volatiledependencies+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.theme+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.themeoverride+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.vmldrawing":{source:"iana"},"application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document":{source:"iana",compressible:!1,extensions:["docx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.glossary+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.endnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.fonttable+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.template":{source:"iana",extensions:["dotx"]},"application/vnd.openxmlformats-officedocument.wordprocessingml.template.main+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-officedocument.wordprocessingml.websettings+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.core-properties+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.digital-signature-xmlsignature+xml":{source:"iana",compressible:!0},"application/vnd.openxmlformats-package.relationships+xml":{source:"iana",compressible:!0},"application/vnd.oracle.resource+json":{source:"iana",compressible:!0},"application/vnd.orange.indata":{source:"iana"},"application/vnd.osa.netdeploy":{source:"iana"},"application/vnd.osgeo.mapguide.package":{source:"iana",extensions:["mgp"]},"application/vnd.osgi.bundle":{source:"iana"},"application/vnd.osgi.dp":{source:"iana",extensions:["dp"]},"application/vnd.osgi.subsystem":{source:"iana",extensions:["esa"]},"application/vnd.otps.ct-kip+xml":{source:"iana",compressible:!0},"application/vnd.oxli.countgraph":{source:"iana"},"application/vnd.pagerduty+json":{source:"iana",compressible:!0},"application/vnd.palm":{source:"iana",extensions:["pdb","pqa","oprc"]},"application/vnd.panoply":{source:"iana"},"application/vnd.paos.xml":{source:"iana"},"application/vnd.patentdive":{source:"iana"},"application/vnd.patientecommsdoc":{source:"iana"},"application/vnd.pawaafile":{source:"iana",extensions:["paw"]},"application/vnd.pcos":{source:"iana"},"application/vnd.pg.format":{source:"iana",extensions:["str"]},"application/vnd.pg.osasli":{source:"iana",extensions:["ei6"]},"application/vnd.piaccess.application-licence":{source:"iana"},"application/vnd.picsel":{source:"iana",extensions:["efif"]},"application/vnd.pmi.widget":{source:"iana",extensions:["wg"]},"application/vnd.poc.group-advertisement+xml":{source:"iana",compressible:!0},"application/vnd.pocketlearn":{source:"iana",extensions:["plf"]},"application/vnd.powerbuilder6":{source:"iana",extensions:["pbd"]},"application/vnd.powerbuilder6-s":{source:"iana"},"application/vnd.powerbuilder7":{source:"iana"},"application/vnd.powerbuilder7-s":{source:"iana"},"application/vnd.powerbuilder75":{source:"iana"},"application/vnd.powerbuilder75-s":{source:"iana"},"application/vnd.preminet":{source:"iana"},"application/vnd.previewsystems.box":{source:"iana",extensions:["box"]},"application/vnd.proteus.magazine":{source:"iana",extensions:["mgz"]},"application/vnd.psfs":{source:"iana"},"application/vnd.publishare-delta-tree":{source:"iana",extensions:["qps"]},"application/vnd.pvi.ptid1":{source:"iana",extensions:["ptid"]},"application/vnd.pwg-multiplexed":{source:"iana"},"application/vnd.pwg-xhtml-print+xml":{source:"iana",compressible:!0},"application/vnd.qualcomm.brew-app-res":{source:"iana"},"application/vnd.quarantainenet":{source:"iana"},"application/vnd.quark.quarkxpress":{source:"iana",extensions:["qxd","qxt","qwd","qwt","qxl","qxb"]},"application/vnd.quobject-quoxdocument":{source:"iana"},"application/vnd.radisys.moml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-conn+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-audit-stream+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-conf+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-base+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-detect+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-fax-sendrecv+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-group+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-speech+xml":{source:"iana",compressible:!0},"application/vnd.radisys.msml-dialog-transform+xml":{source:"iana",compressible:!0},"application/vnd.rainstor.data":{source:"iana"},"application/vnd.rapid":{source:"iana"},"application/vnd.rar":{source:"iana",extensions:["rar"]},"application/vnd.realvnc.bed":{source:"iana",extensions:["bed"]},"application/vnd.recordare.musicxml":{source:"iana",extensions:["mxl"]},"application/vnd.recordare.musicxml+xml":{source:"iana",compressible:!0,extensions:["musicxml"]},"application/vnd.renlearn.rlprint":{source:"iana"},"application/vnd.resilient.logic":{source:"iana"},"application/vnd.restful+json":{source:"iana",compressible:!0},"application/vnd.rig.cryptonote":{source:"iana",extensions:["cryptonote"]},"application/vnd.rim.cod":{source:"apache",extensions:["cod"]},"application/vnd.rn-realmedia":{source:"apache",extensions:["rm"]},"application/vnd.rn-realmedia-vbr":{source:"apache",extensions:["rmvb"]},"application/vnd.route66.link66+xml":{source:"iana",compressible:!0,extensions:["link66"]},"application/vnd.rs-274x":{source:"iana"},"application/vnd.ruckus.download":{source:"iana"},"application/vnd.s3sms":{source:"iana"},"application/vnd.sailingtracker.track":{source:"iana",extensions:["st"]},"application/vnd.sar":{source:"iana"},"application/vnd.sbm.cid":{source:"iana"},"application/vnd.sbm.mid2":{source:"iana"},"application/vnd.scribus":{source:"iana"},"application/vnd.sealed.3df":{source:"iana"},"application/vnd.sealed.csf":{source:"iana"},"application/vnd.sealed.doc":{source:"iana"},"application/vnd.sealed.eml":{source:"iana"},"application/vnd.sealed.mht":{source:"iana"},"application/vnd.sealed.net":{source:"iana"},"application/vnd.sealed.ppt":{source:"iana"},"application/vnd.sealed.tiff":{source:"iana"},"application/vnd.sealed.xls":{source:"iana"},"application/vnd.sealedmedia.softseal.html":{source:"iana"},"application/vnd.sealedmedia.softseal.pdf":{source:"iana"},"application/vnd.seemail":{source:"iana",extensions:["see"]},"application/vnd.seis+json":{source:"iana",compressible:!0},"application/vnd.sema":{source:"iana",extensions:["sema"]},"application/vnd.semd":{source:"iana",extensions:["semd"]},"application/vnd.semf":{source:"iana",extensions:["semf"]},"application/vnd.shade-save-file":{source:"iana"},"application/vnd.shana.informed.formdata":{source:"iana",extensions:["ifm"]},"application/vnd.shana.informed.formtemplate":{source:"iana",extensions:["itp"]},"application/vnd.shana.informed.interchange":{source:"iana",extensions:["iif"]},"application/vnd.shana.informed.package":{source:"iana",extensions:["ipk"]},"application/vnd.shootproof+json":{source:"iana",compressible:!0},"application/vnd.shopkick+json":{source:"iana",compressible:!0},"application/vnd.shp":{source:"iana"},"application/vnd.shx":{source:"iana"},"application/vnd.sigrok.session":{source:"iana"},"application/vnd.simtech-mindmapper":{source:"iana",extensions:["twd","twds"]},"application/vnd.siren+json":{source:"iana",compressible:!0},"application/vnd.smaf":{source:"iana",extensions:["mmf"]},"application/vnd.smart.notebook":{source:"iana"},"application/vnd.smart.teacher":{source:"iana",extensions:["teacher"]},"application/vnd.snesdev-page-table":{source:"iana"},"application/vnd.software602.filler.form+xml":{source:"iana",compressible:!0,extensions:["fo"]},"application/vnd.software602.filler.form-xml-zip":{source:"iana"},"application/vnd.solent.sdkm+xml":{source:"iana",compressible:!0,extensions:["sdkm","sdkd"]},"application/vnd.spotfire.dxp":{source:"iana",extensions:["dxp"]},"application/vnd.spotfire.sfs":{source:"iana",extensions:["sfs"]},"application/vnd.sqlite3":{source:"iana"},"application/vnd.sss-cod":{source:"iana"},"application/vnd.sss-dtf":{source:"iana"},"application/vnd.sss-ntf":{source:"iana"},"application/vnd.stardivision.calc":{source:"apache",extensions:["sdc"]},"application/vnd.stardivision.draw":{source:"apache",extensions:["sda"]},"application/vnd.stardivision.impress":{source:"apache",extensions:["sdd"]},"application/vnd.stardivision.math":{source:"apache",extensions:["smf"]},"application/vnd.stardivision.writer":{source:"apache",extensions:["sdw","vor"]},"application/vnd.stardivision.writer-global":{source:"apache",extensions:["sgl"]},"application/vnd.stepmania.package":{source:"iana",extensions:["smzip"]},"application/vnd.stepmania.stepchart":{source:"iana",extensions:["sm"]},"application/vnd.street-stream":{source:"iana"},"application/vnd.sun.wadl+xml":{source:"iana",compressible:!0,extensions:["wadl"]},"application/vnd.sun.xml.calc":{source:"apache",extensions:["sxc"]},"application/vnd.sun.xml.calc.template":{source:"apache",extensions:["stc"]},"application/vnd.sun.xml.draw":{source:"apache",extensions:["sxd"]},"application/vnd.sun.xml.draw.template":{source:"apache",extensions:["std"]},"application/vnd.sun.xml.impress":{source:"apache",extensions:["sxi"]},"application/vnd.sun.xml.impress.template":{source:"apache",extensions:["sti"]},"application/vnd.sun.xml.math":{source:"apache",extensions:["sxm"]},"application/vnd.sun.xml.writer":{source:"apache",extensions:["sxw"]},"application/vnd.sun.xml.writer.global":{source:"apache",extensions:["sxg"]},"application/vnd.sun.xml.writer.template":{source:"apache",extensions:["stw"]},"application/vnd.sus-calendar":{source:"iana",extensions:["sus","susp"]},"application/vnd.svd":{source:"iana",extensions:["svd"]},"application/vnd.swiftview-ics":{source:"iana"},"application/vnd.sycle+xml":{source:"iana",compressible:!0},"application/vnd.syft+json":{source:"iana",compressible:!0},"application/vnd.symbian.install":{source:"apache",extensions:["sis","sisx"]},"application/vnd.syncml+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xsm"]},"application/vnd.syncml.dm+wbxml":{source:"iana",charset:"UTF-8",extensions:["bdm"]},"application/vnd.syncml.dm+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["xdm"]},"application/vnd.syncml.dm.notification":{source:"iana"},"application/vnd.syncml.dmddf+wbxml":{source:"iana"},"application/vnd.syncml.dmddf+xml":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["ddf"]},"application/vnd.syncml.dmtnds+wbxml":{source:"iana"},"application/vnd.syncml.dmtnds+xml":{source:"iana",charset:"UTF-8",compressible:!0},"application/vnd.syncml.ds.notification":{source:"iana"},"application/vnd.tableschema+json":{source:"iana",compressible:!0},"application/vnd.tao.intent-module-archive":{source:"iana",extensions:["tao"]},"application/vnd.tcpdump.pcap":{source:"iana",extensions:["pcap","cap","dmp"]},"application/vnd.think-cell.ppttc+json":{source:"iana",compressible:!0},"application/vnd.tmd.mediaflex.api+xml":{source:"iana",compressible:!0},"application/vnd.tml":{source:"iana"},"application/vnd.tmobile-livetv":{source:"iana",extensions:["tmo"]},"application/vnd.tri.onesource":{source:"iana"},"application/vnd.trid.tpt":{source:"iana",extensions:["tpt"]},"application/vnd.triscape.mxs":{source:"iana",extensions:["mxs"]},"application/vnd.trueapp":{source:"iana",extensions:["tra"]},"application/vnd.truedoc":{source:"iana"},"application/vnd.ubisoft.webplayer":{source:"iana"},"application/vnd.ufdl":{source:"iana",extensions:["ufd","ufdl"]},"application/vnd.uiq.theme":{source:"iana",extensions:["utz"]},"application/vnd.umajin":{source:"iana",extensions:["umj"]},"application/vnd.unity":{source:"iana",extensions:["unityweb"]},"application/vnd.uoml+xml":{source:"iana",compressible:!0,extensions:["uoml"]},"application/vnd.uplanet.alert":{source:"iana"},"application/vnd.uplanet.alert-wbxml":{source:"iana"},"application/vnd.uplanet.bearer-choice":{source:"iana"},"application/vnd.uplanet.bearer-choice-wbxml":{source:"iana"},"application/vnd.uplanet.cacheop":{source:"iana"},"application/vnd.uplanet.cacheop-wbxml":{source:"iana"},"application/vnd.uplanet.channel":{source:"iana"},"application/vnd.uplanet.channel-wbxml":{source:"iana"},"application/vnd.uplanet.list":{source:"iana"},"application/vnd.uplanet.list-wbxml":{source:"iana"},"application/vnd.uplanet.listcmd":{source:"iana"},"application/vnd.uplanet.listcmd-wbxml":{source:"iana"},"application/vnd.uplanet.signal":{source:"iana"},"application/vnd.uri-map":{source:"iana"},"application/vnd.valve.source.material":{source:"iana"},"application/vnd.vcx":{source:"iana",extensions:["vcx"]},"application/vnd.vd-study":{source:"iana"},"application/vnd.vectorworks":{source:"iana"},"application/vnd.vel+json":{source:"iana",compressible:!0},"application/vnd.verimatrix.vcas":{source:"iana"},"application/vnd.veritone.aion+json":{source:"iana",compressible:!0},"application/vnd.veryant.thin":{source:"iana"},"application/vnd.ves.encrypted":{source:"iana"},"application/vnd.vidsoft.vidconference":{source:"iana"},"application/vnd.visio":{source:"iana",extensions:["vsd","vst","vss","vsw"]},"application/vnd.visionary":{source:"iana",extensions:["vis"]},"application/vnd.vividence.scriptfile":{source:"iana"},"application/vnd.vsf":{source:"iana",extensions:["vsf"]},"application/vnd.wap.sic":{source:"iana"},"application/vnd.wap.slc":{source:"iana"},"application/vnd.wap.wbxml":{source:"iana",charset:"UTF-8",extensions:["wbxml"]},"application/vnd.wap.wmlc":{source:"iana",extensions:["wmlc"]},"application/vnd.wap.wmlscriptc":{source:"iana",extensions:["wmlsc"]},"application/vnd.webturbo":{source:"iana",extensions:["wtb"]},"application/vnd.wfa.dpp":{source:"iana"},"application/vnd.wfa.p2p":{source:"iana"},"application/vnd.wfa.wsc":{source:"iana"},"application/vnd.windows.devicepairing":{source:"iana"},"application/vnd.wmc":{source:"iana"},"application/vnd.wmf.bootstrap":{source:"iana"},"application/vnd.wolfram.mathematica":{source:"iana"},"application/vnd.wolfram.mathematica.package":{source:"iana"},"application/vnd.wolfram.player":{source:"iana",extensions:["nbp"]},"application/vnd.wordperfect":{source:"iana",extensions:["wpd"]},"application/vnd.wqd":{source:"iana",extensions:["wqd"]},"application/vnd.wrq-hp3000-labelled":{source:"iana"},"application/vnd.wt.stf":{source:"iana",extensions:["stf"]},"application/vnd.wv.csp+wbxml":{source:"iana"},"application/vnd.wv.csp+xml":{source:"iana",compressible:!0},"application/vnd.wv.ssp+xml":{source:"iana",compressible:!0},"application/vnd.xacml+json":{source:"iana",compressible:!0},"application/vnd.xara":{source:"iana",extensions:["xar"]},"application/vnd.xfdl":{source:"iana",extensions:["xfdl"]},"application/vnd.xfdl.webform":{source:"iana"},"application/vnd.xmi+xml":{source:"iana",compressible:!0},"application/vnd.xmpie.cpkg":{source:"iana"},"application/vnd.xmpie.dpkg":{source:"iana"},"application/vnd.xmpie.plan":{source:"iana"},"application/vnd.xmpie.ppkg":{source:"iana"},"application/vnd.xmpie.xlim":{source:"iana"},"application/vnd.yamaha.hv-dic":{source:"iana",extensions:["hvd"]},"application/vnd.yamaha.hv-script":{source:"iana",extensions:["hvs"]},"application/vnd.yamaha.hv-voice":{source:"iana",extensions:["hvp"]},"application/vnd.yamaha.openscoreformat":{source:"iana",extensions:["osf"]},"application/vnd.yamaha.openscoreformat.osfpvg+xml":{source:"iana",compressible:!0,extensions:["osfpvg"]},"application/vnd.yamaha.remote-setup":{source:"iana"},"application/vnd.yamaha.smaf-audio":{source:"iana",extensions:["saf"]},"application/vnd.yamaha.smaf-phrase":{source:"iana",extensions:["spf"]},"application/vnd.yamaha.through-ngn":{source:"iana"},"application/vnd.yamaha.tunnel-udpencap":{source:"iana"},"application/vnd.yaoweme":{source:"iana"},"application/vnd.yellowriver-custom-menu":{source:"iana",extensions:["cmp"]},"application/vnd.youtube.yt":{source:"iana"},"application/vnd.zul":{source:"iana",extensions:["zir","zirz"]},"application/vnd.zzazz.deck+xml":{source:"iana",compressible:!0,extensions:["zaz"]},"application/voicexml+xml":{source:"iana",compressible:!0,extensions:["vxml"]},"application/voucher-cms+json":{source:"iana",compressible:!0},"application/vq-rtcpxr":{source:"iana"},"application/wasm":{source:"iana",compressible:!0,extensions:["wasm"]},"application/watcherinfo+xml":{source:"iana",compressible:!0,extensions:["wif"]},"application/webpush-options+json":{source:"iana",compressible:!0},"application/whoispp-query":{source:"iana"},"application/whoispp-response":{source:"iana"},"application/widget":{source:"iana",extensions:["wgt"]},"application/winhlp":{source:"apache",extensions:["hlp"]},"application/wita":{source:"iana"},"application/wordperfect5.1":{source:"iana"},"application/wsdl+xml":{source:"iana",compressible:!0,extensions:["wsdl"]},"application/wspolicy+xml":{source:"iana",compressible:!0,extensions:["wspolicy"]},"application/x-7z-compressed":{source:"apache",compressible:!1,extensions:["7z"]},"application/x-abiword":{source:"apache",extensions:["abw"]},"application/x-ace-compressed":{source:"apache",extensions:["ace"]},"application/x-amf":{source:"apache"},"application/x-apple-diskimage":{source:"apache",extensions:["dmg"]},"application/x-arj":{compressible:!1,extensions:["arj"]},"application/x-authorware-bin":{source:"apache",extensions:["aab","x32","u32","vox"]},"application/x-authorware-map":{source:"apache",extensions:["aam"]},"application/x-authorware-seg":{source:"apache",extensions:["aas"]},"application/x-bcpio":{source:"apache",extensions:["bcpio"]},"application/x-bdoc":{compressible:!1,extensions:["bdoc"]},"application/x-bittorrent":{source:"apache",extensions:["torrent"]},"application/x-blorb":{source:"apache",extensions:["blb","blorb"]},"application/x-bzip":{source:"apache",compressible:!1,extensions:["bz"]},"application/x-bzip2":{source:"apache",compressible:!1,extensions:["bz2","boz"]},"application/x-cbr":{source:"apache",extensions:["cbr","cba","cbt","cbz","cb7"]},"application/x-cdlink":{source:"apache",extensions:["vcd"]},"application/x-cfs-compressed":{source:"apache",extensions:["cfs"]},"application/x-chat":{source:"apache",extensions:["chat"]},"application/x-chess-pgn":{source:"apache",extensions:["pgn"]},"application/x-chrome-extension":{extensions:["crx"]},"application/x-cocoa":{source:"nginx",extensions:["cco"]},"application/x-compress":{source:"apache"},"application/x-conference":{source:"apache",extensions:["nsc"]},"application/x-cpio":{source:"apache",extensions:["cpio"]},"application/x-csh":{source:"apache",extensions:["csh"]},"application/x-deb":{compressible:!1},"application/x-debian-package":{source:"apache",extensions:["deb","udeb"]},"application/x-dgc-compressed":{source:"apache",extensions:["dgc"]},"application/x-director":{source:"apache",extensions:["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"]},"application/x-doom":{source:"apache",extensions:["wad"]},"application/x-dtbncx+xml":{source:"apache",compressible:!0,extensions:["ncx"]},"application/x-dtbook+xml":{source:"apache",compressible:!0,extensions:["dtb"]},"application/x-dtbresource+xml":{source:"apache",compressible:!0,extensions:["res"]},"application/x-dvi":{source:"apache",compressible:!1,extensions:["dvi"]},"application/x-envoy":{source:"apache",extensions:["evy"]},"application/x-eva":{source:"apache",extensions:["eva"]},"application/x-font-bdf":{source:"apache",extensions:["bdf"]},"application/x-font-dos":{source:"apache"},"application/x-font-framemaker":{source:"apache"},"application/x-font-ghostscript":{source:"apache",extensions:["gsf"]},"application/x-font-libgrx":{source:"apache"},"application/x-font-linux-psf":{source:"apache",extensions:["psf"]},"application/x-font-pcf":{source:"apache",extensions:["pcf"]},"application/x-font-snf":{source:"apache",extensions:["snf"]},"application/x-font-speedo":{source:"apache"},"application/x-font-sunos-news":{source:"apache"},"application/x-font-type1":{source:"apache",extensions:["pfa","pfb","pfm","afm"]},"application/x-font-vfont":{source:"apache"},"application/x-freearc":{source:"apache",extensions:["arc"]},"application/x-futuresplash":{source:"apache",extensions:["spl"]},"application/x-gca-compressed":{source:"apache",extensions:["gca"]},"application/x-glulx":{source:"apache",extensions:["ulx"]},"application/x-gnumeric":{source:"apache",extensions:["gnumeric"]},"application/x-gramps-xml":{source:"apache",extensions:["gramps"]},"application/x-gtar":{source:"apache",extensions:["gtar"]},"application/x-gzip":{source:"apache"},"application/x-hdf":{source:"apache",extensions:["hdf"]},"application/x-httpd-php":{compressible:!0,extensions:["php"]},"application/x-install-instructions":{source:"apache",extensions:["install"]},"application/x-iso9660-image":{source:"apache",extensions:["iso"]},"application/x-iwork-keynote-sffkey":{extensions:["key"]},"application/x-iwork-numbers-sffnumbers":{extensions:["numbers"]},"application/x-iwork-pages-sffpages":{extensions:["pages"]},"application/x-java-archive-diff":{source:"nginx",extensions:["jardiff"]},"application/x-java-jnlp-file":{source:"apache",compressible:!1,extensions:["jnlp"]},"application/x-javascript":{compressible:!0},"application/x-keepass2":{extensions:["kdbx"]},"application/x-latex":{source:"apache",compressible:!1,extensions:["latex"]},"application/x-lua-bytecode":{extensions:["luac"]},"application/x-lzh-compressed":{source:"apache",extensions:["lzh","lha"]},"application/x-makeself":{source:"nginx",extensions:["run"]},"application/x-mie":{source:"apache",extensions:["mie"]},"application/x-mobipocket-ebook":{source:"apache",extensions:["prc","mobi"]},"application/x-mpegurl":{compressible:!1},"application/x-ms-application":{source:"apache",extensions:["application"]},"application/x-ms-shortcut":{source:"apache",extensions:["lnk"]},"application/x-ms-wmd":{source:"apache",extensions:["wmd"]},"application/x-ms-wmz":{source:"apache",extensions:["wmz"]},"application/x-ms-xbap":{source:"apache",extensions:["xbap"]},"application/x-msaccess":{source:"apache",extensions:["mdb"]},"application/x-msbinder":{source:"apache",extensions:["obd"]},"application/x-mscardfile":{source:"apache",extensions:["crd"]},"application/x-msclip":{source:"apache",extensions:["clp"]},"application/x-msdos-program":{extensions:["exe"]},"application/x-msdownload":{source:"apache",extensions:["exe","dll","com","bat","msi"]},"application/x-msmediaview":{source:"apache",extensions:["mvb","m13","m14"]},"application/x-msmetafile":{source:"apache",extensions:["wmf","wmz","emf","emz"]},"application/x-msmoney":{source:"apache",extensions:["mny"]},"application/x-mspublisher":{source:"apache",extensions:["pub"]},"application/x-msschedule":{source:"apache",extensions:["scd"]},"application/x-msterminal":{source:"apache",extensions:["trm"]},"application/x-mswrite":{source:"apache",extensions:["wri"]},"application/x-netcdf":{source:"apache",extensions:["nc","cdf"]},"application/x-ns-proxy-autoconfig":{compressible:!0,extensions:["pac"]},"application/x-nzb":{source:"apache",extensions:["nzb"]},"application/x-perl":{source:"nginx",extensions:["pl","pm"]},"application/x-pilot":{source:"nginx",extensions:["prc","pdb"]},"application/x-pkcs12":{source:"apache",compressible:!1,extensions:["p12","pfx"]},"application/x-pkcs7-certificates":{source:"apache",extensions:["p7b","spc"]},"application/x-pkcs7-certreqresp":{source:"apache",extensions:["p7r"]},"application/x-pki-message":{source:"iana"},"application/x-rar-compressed":{source:"apache",compressible:!1,extensions:["rar"]},"application/x-redhat-package-manager":{source:"nginx",extensions:["rpm"]},"application/x-research-info-systems":{source:"apache",extensions:["ris"]},"application/x-sea":{source:"nginx",extensions:["sea"]},"application/x-sh":{source:"apache",compressible:!0,extensions:["sh"]},"application/x-shar":{source:"apache",extensions:["shar"]},"application/x-shockwave-flash":{source:"apache",compressible:!1,extensions:["swf"]},"application/x-silverlight-app":{source:"apache",extensions:["xap"]},"application/x-sql":{source:"apache",extensions:["sql"]},"application/x-stuffit":{source:"apache",compressible:!1,extensions:["sit"]},"application/x-stuffitx":{source:"apache",extensions:["sitx"]},"application/x-subrip":{source:"apache",extensions:["srt"]},"application/x-sv4cpio":{source:"apache",extensions:["sv4cpio"]},"application/x-sv4crc":{source:"apache",extensions:["sv4crc"]},"application/x-t3vm-image":{source:"apache",extensions:["t3"]},"application/x-tads":{source:"apache",extensions:["gam"]},"application/x-tar":{source:"apache",compressible:!0,extensions:["tar"]},"application/x-tcl":{source:"apache",extensions:["tcl","tk"]},"application/x-tex":{source:"apache",extensions:["tex"]},"application/x-tex-tfm":{source:"apache",extensions:["tfm"]},"application/x-texinfo":{source:"apache",extensions:["texinfo","texi"]},"application/x-tgif":{source:"apache",extensions:["obj"]},"application/x-ustar":{source:"apache",extensions:["ustar"]},"application/x-virtualbox-hdd":{compressible:!0,extensions:["hdd"]},"application/x-virtualbox-ova":{compressible:!0,extensions:["ova"]},"application/x-virtualbox-ovf":{compressible:!0,extensions:["ovf"]},"application/x-virtualbox-vbox":{compressible:!0,extensions:["vbox"]},"application/x-virtualbox-vbox-extpack":{compressible:!1,extensions:["vbox-extpack"]},"application/x-virtualbox-vdi":{compressible:!0,extensions:["vdi"]},"application/x-virtualbox-vhd":{compressible:!0,extensions:["vhd"]},"application/x-virtualbox-vmdk":{compressible:!0,extensions:["vmdk"]},"application/x-wais-source":{source:"apache",extensions:["src"]},"application/x-web-app-manifest+json":{compressible:!0,extensions:["webapp"]},"application/x-www-form-urlencoded":{source:"iana",compressible:!0},"application/x-x509-ca-cert":{source:"iana",extensions:["der","crt","pem"]},"application/x-x509-ca-ra-cert":{source:"iana"},"application/x-x509-next-ca-cert":{source:"iana"},"application/x-xfig":{source:"apache",extensions:["fig"]},"application/x-xliff+xml":{source:"apache",compressible:!0,extensions:["xlf"]},"application/x-xpinstall":{source:"apache",compressible:!1,extensions:["xpi"]},"application/x-xz":{source:"apache",extensions:["xz"]},"application/x-zmachine":{source:"apache",extensions:["z1","z2","z3","z4","z5","z6","z7","z8"]},"application/x400-bp":{source:"iana"},"application/xacml+xml":{source:"iana",compressible:!0},"application/xaml+xml":{source:"apache",compressible:!0,extensions:["xaml"]},"application/xcap-att+xml":{source:"iana",compressible:!0,extensions:["xav"]},"application/xcap-caps+xml":{source:"iana",compressible:!0,extensions:["xca"]},"application/xcap-diff+xml":{source:"iana",compressible:!0,extensions:["xdf"]},"application/xcap-el+xml":{source:"iana",compressible:!0,extensions:["xel"]},"application/xcap-error+xml":{source:"iana",compressible:!0},"application/xcap-ns+xml":{source:"iana",compressible:!0,extensions:["xns"]},"application/xcon-conference-info+xml":{source:"iana",compressible:!0},"application/xcon-conference-info-diff+xml":{source:"iana",compressible:!0},"application/xenc+xml":{source:"iana",compressible:!0,extensions:["xenc"]},"application/xhtml+xml":{source:"iana",compressible:!0,extensions:["xhtml","xht"]},"application/xhtml-voice+xml":{source:"apache",compressible:!0},"application/xliff+xml":{source:"iana",compressible:!0,extensions:["xlf"]},"application/xml":{source:"iana",compressible:!0,extensions:["xml","xsl","xsd","rng"]},"application/xml-dtd":{source:"iana",compressible:!0,extensions:["dtd"]},"application/xml-external-parsed-entity":{source:"iana"},"application/xml-patch+xml":{source:"iana",compressible:!0},"application/xmpp+xml":{source:"iana",compressible:!0},"application/xop+xml":{source:"iana",compressible:!0,extensions:["xop"]},"application/xproc+xml":{source:"apache",compressible:!0,extensions:["xpl"]},"application/xslt+xml":{source:"iana",compressible:!0,extensions:["xsl","xslt"]},"application/xspf+xml":{source:"apache",compressible:!0,extensions:["xspf"]},"application/xv+xml":{source:"iana",compressible:!0,extensions:["mxml","xhvml","xvml","xvm"]},"application/yang":{source:"iana",extensions:["yang"]},"application/yang-data+json":{source:"iana",compressible:!0},"application/yang-data+xml":{source:"iana",compressible:!0},"application/yang-patch+json":{source:"iana",compressible:!0},"application/yang-patch+xml":{source:"iana",compressible:!0},"application/yin+xml":{source:"iana",compressible:!0,extensions:["yin"]},"application/zip":{source:"iana",compressible:!1,extensions:["zip"]},"application/zlib":{source:"iana"},"application/zstd":{source:"iana"},"audio/1d-interleaved-parityfec":{source:"iana"},"audio/32kadpcm":{source:"iana"},"audio/3gpp":{source:"iana",compressible:!1,extensions:["3gpp"]},"audio/3gpp2":{source:"iana"},"audio/aac":{source:"iana"},"audio/ac3":{source:"iana"},"audio/adpcm":{source:"apache",extensions:["adp"]},"audio/amr":{source:"iana",extensions:["amr"]},"audio/amr-wb":{source:"iana"},"audio/amr-wb+":{source:"iana"},"audio/aptx":{source:"iana"},"audio/asc":{source:"iana"},"audio/atrac-advanced-lossless":{source:"iana"},"audio/atrac-x":{source:"iana"},"audio/atrac3":{source:"iana"},"audio/basic":{source:"iana",compressible:!1,extensions:["au","snd"]},"audio/bv16":{source:"iana"},"audio/bv32":{source:"iana"},"audio/clearmode":{source:"iana"},"audio/cn":{source:"iana"},"audio/dat12":{source:"iana"},"audio/dls":{source:"iana"},"audio/dsr-es201108":{source:"iana"},"audio/dsr-es202050":{source:"iana"},"audio/dsr-es202211":{source:"iana"},"audio/dsr-es202212":{source:"iana"},"audio/dv":{source:"iana"},"audio/dvi4":{source:"iana"},"audio/eac3":{source:"iana"},"audio/encaprtp":{source:"iana"},"audio/evrc":{source:"iana"},"audio/evrc-qcp":{source:"iana"},"audio/evrc0":{source:"iana"},"audio/evrc1":{source:"iana"},"audio/evrcb":{source:"iana"},"audio/evrcb0":{source:"iana"},"audio/evrcb1":{source:"iana"},"audio/evrcnw":{source:"iana"},"audio/evrcnw0":{source:"iana"},"audio/evrcnw1":{source:"iana"},"audio/evrcwb":{source:"iana"},"audio/evrcwb0":{source:"iana"},"audio/evrcwb1":{source:"iana"},"audio/evs":{source:"iana"},"audio/flexfec":{source:"iana"},"audio/fwdred":{source:"iana"},"audio/g711-0":{source:"iana"},"audio/g719":{source:"iana"},"audio/g722":{source:"iana"},"audio/g7221":{source:"iana"},"audio/g723":{source:"iana"},"audio/g726-16":{source:"iana"},"audio/g726-24":{source:"iana"},"audio/g726-32":{source:"iana"},"audio/g726-40":{source:"iana"},"audio/g728":{source:"iana"},"audio/g729":{source:"iana"},"audio/g7291":{source:"iana"},"audio/g729d":{source:"iana"},"audio/g729e":{source:"iana"},"audio/gsm":{source:"iana"},"audio/gsm-efr":{source:"iana"},"audio/gsm-hr-08":{source:"iana"},"audio/ilbc":{source:"iana"},"audio/ip-mr_v2.5":{source:"iana"},"audio/isac":{source:"apache"},"audio/l16":{source:"iana"},"audio/l20":{source:"iana"},"audio/l24":{source:"iana",compressible:!1},"audio/l8":{source:"iana"},"audio/lpc":{source:"iana"},"audio/melp":{source:"iana"},"audio/melp1200":{source:"iana"},"audio/melp2400":{source:"iana"},"audio/melp600":{source:"iana"},"audio/mhas":{source:"iana"},"audio/midi":{source:"apache",extensions:["mid","midi","kar","rmi"]},"audio/mobile-xmf":{source:"iana",extensions:["mxmf"]},"audio/mp3":{compressible:!1,extensions:["mp3"]},"audio/mp4":{source:"iana",compressible:!1,extensions:["m4a","mp4a"]},"audio/mp4a-latm":{source:"iana"},"audio/mpa":{source:"iana"},"audio/mpa-robust":{source:"iana"},"audio/mpeg":{source:"iana",compressible:!1,extensions:["mpga","mp2","mp2a","mp3","m2a","m3a"]},"audio/mpeg4-generic":{source:"iana"},"audio/musepack":{source:"apache"},"audio/ogg":{source:"iana",compressible:!1,extensions:["oga","ogg","spx","opus"]},"audio/opus":{source:"iana"},"audio/parityfec":{source:"iana"},"audio/pcma":{source:"iana"},"audio/pcma-wb":{source:"iana"},"audio/pcmu":{source:"iana"},"audio/pcmu-wb":{source:"iana"},"audio/prs.sid":{source:"iana"},"audio/qcelp":{source:"iana"},"audio/raptorfec":{source:"iana"},"audio/red":{source:"iana"},"audio/rtp-enc-aescm128":{source:"iana"},"audio/rtp-midi":{source:"iana"},"audio/rtploopback":{source:"iana"},"audio/rtx":{source:"iana"},"audio/s3m":{source:"apache",extensions:["s3m"]},"audio/scip":{source:"iana"},"audio/silk":{source:"apache",extensions:["sil"]},"audio/smv":{source:"iana"},"audio/smv-qcp":{source:"iana"},"audio/smv0":{source:"iana"},"audio/sofa":{source:"iana"},"audio/sp-midi":{source:"iana"},"audio/speex":{source:"iana"},"audio/t140c":{source:"iana"},"audio/t38":{source:"iana"},"audio/telephone-event":{source:"iana"},"audio/tetra_acelp":{source:"iana"},"audio/tetra_acelp_bb":{source:"iana"},"audio/tone":{source:"iana"},"audio/tsvcis":{source:"iana"},"audio/uemclip":{source:"iana"},"audio/ulpfec":{source:"iana"},"audio/usac":{source:"iana"},"audio/vdvi":{source:"iana"},"audio/vmr-wb":{source:"iana"},"audio/vnd.3gpp.iufp":{source:"iana"},"audio/vnd.4sb":{source:"iana"},"audio/vnd.audiokoz":{source:"iana"},"audio/vnd.celp":{source:"iana"},"audio/vnd.cisco.nse":{source:"iana"},"audio/vnd.cmles.radio-events":{source:"iana"},"audio/vnd.cns.anp1":{source:"iana"},"audio/vnd.cns.inf1":{source:"iana"},"audio/vnd.dece.audio":{source:"iana",extensions:["uva","uvva"]},"audio/vnd.digital-winds":{source:"iana",extensions:["eol"]},"audio/vnd.dlna.adts":{source:"iana"},"audio/vnd.dolby.heaac.1":{source:"iana"},"audio/vnd.dolby.heaac.2":{source:"iana"},"audio/vnd.dolby.mlp":{source:"iana"},"audio/vnd.dolby.mps":{source:"iana"},"audio/vnd.dolby.pl2":{source:"iana"},"audio/vnd.dolby.pl2x":{source:"iana"},"audio/vnd.dolby.pl2z":{source:"iana"},"audio/vnd.dolby.pulse.1":{source:"iana"},"audio/vnd.dra":{source:"iana",extensions:["dra"]},"audio/vnd.dts":{source:"iana",extensions:["dts"]},"audio/vnd.dts.hd":{source:"iana",extensions:["dtshd"]},"audio/vnd.dts.uhd":{source:"iana"},"audio/vnd.dvb.file":{source:"iana"},"audio/vnd.everad.plj":{source:"iana"},"audio/vnd.hns.audio":{source:"iana"},"audio/vnd.lucent.voice":{source:"iana",extensions:["lvp"]},"audio/vnd.ms-playready.media.pya":{source:"iana",extensions:["pya"]},"audio/vnd.nokia.mobile-xmf":{source:"iana"},"audio/vnd.nortel.vbk":{source:"iana"},"audio/vnd.nuera.ecelp4800":{source:"iana",extensions:["ecelp4800"]},"audio/vnd.nuera.ecelp7470":{source:"iana",extensions:["ecelp7470"]},"audio/vnd.nuera.ecelp9600":{source:"iana",extensions:["ecelp9600"]},"audio/vnd.octel.sbc":{source:"iana"},"audio/vnd.presonus.multitrack":{source:"iana"},"audio/vnd.qcelp":{source:"iana"},"audio/vnd.rhetorex.32kadpcm":{source:"iana"},"audio/vnd.rip":{source:"iana",extensions:["rip"]},"audio/vnd.rn-realaudio":{compressible:!1},"audio/vnd.sealedmedia.softseal.mpeg":{source:"iana"},"audio/vnd.vmx.cvsd":{source:"iana"},"audio/vnd.wave":{compressible:!1},"audio/vorbis":{source:"iana",compressible:!1},"audio/vorbis-config":{source:"iana"},"audio/wav":{compressible:!1,extensions:["wav"]},"audio/wave":{compressible:!1,extensions:["wav"]},"audio/webm":{source:"apache",compressible:!1,extensions:["weba"]},"audio/x-aac":{source:"apache",compressible:!1,extensions:["aac"]},"audio/x-aiff":{source:"apache",extensions:["aif","aiff","aifc"]},"audio/x-caf":{source:"apache",compressible:!1,extensions:["caf"]},"audio/x-flac":{source:"apache",extensions:["flac"]},"audio/x-m4a":{source:"nginx",extensions:["m4a"]},"audio/x-matroska":{source:"apache",extensions:["mka"]},"audio/x-mpegurl":{source:"apache",extensions:["m3u"]},"audio/x-ms-wax":{source:"apache",extensions:["wax"]},"audio/x-ms-wma":{source:"apache",extensions:["wma"]},"audio/x-pn-realaudio":{source:"apache",extensions:["ram","ra"]},"audio/x-pn-realaudio-plugin":{source:"apache",extensions:["rmp"]},"audio/x-realaudio":{source:"nginx",extensions:["ra"]},"audio/x-tta":{source:"apache"},"audio/x-wav":{source:"apache",extensions:["wav"]},"audio/xm":{source:"apache",extensions:["xm"]},"chemical/x-cdx":{source:"apache",extensions:["cdx"]},"chemical/x-cif":{source:"apache",extensions:["cif"]},"chemical/x-cmdf":{source:"apache",extensions:["cmdf"]},"chemical/x-cml":{source:"apache",extensions:["cml"]},"chemical/x-csml":{source:"apache",extensions:["csml"]},"chemical/x-pdb":{source:"apache"},"chemical/x-xyz":{source:"apache",extensions:["xyz"]},"font/collection":{source:"iana",extensions:["ttc"]},"font/otf":{source:"iana",compressible:!0,extensions:["otf"]},"font/sfnt":{source:"iana"},"font/ttf":{source:"iana",compressible:!0,extensions:["ttf"]},"font/woff":{source:"iana",extensions:["woff"]},"font/woff2":{source:"iana",extensions:["woff2"]},"image/aces":{source:"iana",extensions:["exr"]},"image/apng":{compressible:!1,extensions:["apng"]},"image/avci":{source:"iana",extensions:["avci"]},"image/avcs":{source:"iana",extensions:["avcs"]},"image/avif":{source:"iana",compressible:!1,extensions:["avif"]},"image/bmp":{source:"iana",compressible:!0,extensions:["bmp"]},"image/cgm":{source:"iana",extensions:["cgm"]},"image/dicom-rle":{source:"iana",extensions:["drle"]},"image/emf":{source:"iana",extensions:["emf"]},"image/fits":{source:"iana",extensions:["fits"]},"image/g3fax":{source:"iana",extensions:["g3"]},"image/gif":{source:"iana",compressible:!1,extensions:["gif"]},"image/heic":{source:"iana",extensions:["heic"]},"image/heic-sequence":{source:"iana",extensions:["heics"]},"image/heif":{source:"iana",extensions:["heif"]},"image/heif-sequence":{source:"iana",extensions:["heifs"]},"image/hej2k":{source:"iana",extensions:["hej2"]},"image/hsj2":{source:"iana",extensions:["hsj2"]},"image/ief":{source:"iana",extensions:["ief"]},"image/jls":{source:"iana",extensions:["jls"]},"image/jp2":{source:"iana",compressible:!1,extensions:["jp2","jpg2"]},"image/jpeg":{source:"iana",compressible:!1,extensions:["jpeg","jpg","jpe"]},"image/jph":{source:"iana",extensions:["jph"]},"image/jphc":{source:"iana",extensions:["jhc"]},"image/jpm":{source:"iana",compressible:!1,extensions:["jpm"]},"image/jpx":{source:"iana",compressible:!1,extensions:["jpx","jpf"]},"image/jxr":{source:"iana",extensions:["jxr"]},"image/jxra":{source:"iana",extensions:["jxra"]},"image/jxrs":{source:"iana",extensions:["jxrs"]},"image/jxs":{source:"iana",extensions:["jxs"]},"image/jxsc":{source:"iana",extensions:["jxsc"]},"image/jxsi":{source:"iana",extensions:["jxsi"]},"image/jxss":{source:"iana",extensions:["jxss"]},"image/ktx":{source:"iana",extensions:["ktx"]},"image/ktx2":{source:"iana",extensions:["ktx2"]},"image/naplps":{source:"iana"},"image/pjpeg":{compressible:!1},"image/png":{source:"iana",compressible:!1,extensions:["png"]},"image/prs.btif":{source:"iana",extensions:["btif"]},"image/prs.pti":{source:"iana",extensions:["pti"]},"image/pwg-raster":{source:"iana"},"image/sgi":{source:"apache",extensions:["sgi"]},"image/svg+xml":{source:"iana",compressible:!0,extensions:["svg","svgz"]},"image/t38":{source:"iana",extensions:["t38"]},"image/tiff":{source:"iana",compressible:!1,extensions:["tif","tiff"]},"image/tiff-fx":{source:"iana",extensions:["tfx"]},"image/vnd.adobe.photoshop":{source:"iana",compressible:!0,extensions:["psd"]},"image/vnd.airzip.accelerator.azv":{source:"iana",extensions:["azv"]},"image/vnd.cns.inf2":{source:"iana"},"image/vnd.dece.graphic":{source:"iana",extensions:["uvi","uvvi","uvg","uvvg"]},"image/vnd.djvu":{source:"iana",extensions:["djvu","djv"]},"image/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"image/vnd.dwg":{source:"iana",extensions:["dwg"]},"image/vnd.dxf":{source:"iana",extensions:["dxf"]},"image/vnd.fastbidsheet":{source:"iana",extensions:["fbs"]},"image/vnd.fpx":{source:"iana",extensions:["fpx"]},"image/vnd.fst":{source:"iana",extensions:["fst"]},"image/vnd.fujixerox.edmics-mmr":{source:"iana",extensions:["mmr"]},"image/vnd.fujixerox.edmics-rlc":{source:"iana",extensions:["rlc"]},"image/vnd.globalgraphics.pgb":{source:"iana"},"image/vnd.microsoft.icon":{source:"iana",compressible:!0,extensions:["ico"]},"image/vnd.mix":{source:"iana"},"image/vnd.mozilla.apng":{source:"iana"},"image/vnd.ms-dds":{compressible:!0,extensions:["dds"]},"image/vnd.ms-modi":{source:"iana",extensions:["mdi"]},"image/vnd.ms-photo":{source:"apache",extensions:["wdp"]},"image/vnd.net-fpx":{source:"iana",extensions:["npx"]},"image/vnd.pco.b16":{source:"iana",extensions:["b16"]},"image/vnd.radiance":{source:"iana"},"image/vnd.sealed.png":{source:"iana"},"image/vnd.sealedmedia.softseal.gif":{source:"iana"},"image/vnd.sealedmedia.softseal.jpg":{source:"iana"},"image/vnd.svf":{source:"iana"},"image/vnd.tencent.tap":{source:"iana",extensions:["tap"]},"image/vnd.valve.source.texture":{source:"iana",extensions:["vtf"]},"image/vnd.wap.wbmp":{source:"iana",extensions:["wbmp"]},"image/vnd.xiff":{source:"iana",extensions:["xif"]},"image/vnd.zbrush.pcx":{source:"iana",extensions:["pcx"]},"image/webp":{source:"apache",extensions:["webp"]},"image/wmf":{source:"iana",extensions:["wmf"]},"image/x-3ds":{source:"apache",extensions:["3ds"]},"image/x-cmu-raster":{source:"apache",extensions:["ras"]},"image/x-cmx":{source:"apache",extensions:["cmx"]},"image/x-freehand":{source:"apache",extensions:["fh","fhc","fh4","fh5","fh7"]},"image/x-icon":{source:"apache",compressible:!0,extensions:["ico"]},"image/x-jng":{source:"nginx",extensions:["jng"]},"image/x-mrsid-image":{source:"apache",extensions:["sid"]},"image/x-ms-bmp":{source:"nginx",compressible:!0,extensions:["bmp"]},"image/x-pcx":{source:"apache",extensions:["pcx"]},"image/x-pict":{source:"apache",extensions:["pic","pct"]},"image/x-portable-anymap":{source:"apache",extensions:["pnm"]},"image/x-portable-bitmap":{source:"apache",extensions:["pbm"]},"image/x-portable-graymap":{source:"apache",extensions:["pgm"]},"image/x-portable-pixmap":{source:"apache",extensions:["ppm"]},"image/x-rgb":{source:"apache",extensions:["rgb"]},"image/x-tga":{source:"apache",extensions:["tga"]},"image/x-xbitmap":{source:"apache",extensions:["xbm"]},"image/x-xcf":{compressible:!1},"image/x-xpixmap":{source:"apache",extensions:["xpm"]},"image/x-xwindowdump":{source:"apache",extensions:["xwd"]},"message/cpim":{source:"iana"},"message/delivery-status":{source:"iana"},"message/disposition-notification":{source:"iana",extensions:["disposition-notification"]},"message/external-body":{source:"iana"},"message/feedback-report":{source:"iana"},"message/global":{source:"iana",extensions:["u8msg"]},"message/global-delivery-status":{source:"iana",extensions:["u8dsn"]},"message/global-disposition-notification":{source:"iana",extensions:["u8mdn"]},"message/global-headers":{source:"iana",extensions:["u8hdr"]},"message/http":{source:"iana",compressible:!1},"message/imdn+xml":{source:"iana",compressible:!0},"message/news":{source:"iana"},"message/partial":{source:"iana",compressible:!1},"message/rfc822":{source:"iana",compressible:!0,extensions:["eml","mime"]},"message/s-http":{source:"iana"},"message/sip":{source:"iana"},"message/sipfrag":{source:"iana"},"message/tracking-status":{source:"iana"},"message/vnd.si.simp":{source:"iana"},"message/vnd.wfa.wsc":{source:"iana",extensions:["wsc"]},"model/3mf":{source:"iana",extensions:["3mf"]},"model/e57":{source:"iana"},"model/gltf+json":{source:"iana",compressible:!0,extensions:["gltf"]},"model/gltf-binary":{source:"iana",compressible:!0,extensions:["glb"]},"model/iges":{source:"iana",compressible:!1,extensions:["igs","iges"]},"model/mesh":{source:"iana",compressible:!1,extensions:["msh","mesh","silo"]},"model/mtl":{source:"iana",extensions:["mtl"]},"model/obj":{source:"iana",extensions:["obj"]},"model/step":{source:"iana"},"model/step+xml":{source:"iana",compressible:!0,extensions:["stpx"]},"model/step+zip":{source:"iana",compressible:!1,extensions:["stpz"]},"model/step-xml+zip":{source:"iana",compressible:!1,extensions:["stpxz"]},"model/stl":{source:"iana",extensions:["stl"]},"model/vnd.collada+xml":{source:"iana",compressible:!0,extensions:["dae"]},"model/vnd.dwf":{source:"iana",extensions:["dwf"]},"model/vnd.flatland.3dml":{source:"iana"},"model/vnd.gdl":{source:"iana",extensions:["gdl"]},"model/vnd.gs-gdl":{source:"apache"},"model/vnd.gs.gdl":{source:"iana"},"model/vnd.gtw":{source:"iana",extensions:["gtw"]},"model/vnd.moml+xml":{source:"iana",compressible:!0},"model/vnd.mts":{source:"iana",extensions:["mts"]},"model/vnd.opengex":{source:"iana",extensions:["ogex"]},"model/vnd.parasolid.transmit.binary":{source:"iana",extensions:["x_b"]},"model/vnd.parasolid.transmit.text":{source:"iana",extensions:["x_t"]},"model/vnd.pytha.pyox":{source:"iana"},"model/vnd.rosette.annotated-data-model":{source:"iana"},"model/vnd.sap.vds":{source:"iana",extensions:["vds"]},"model/vnd.usdz+zip":{source:"iana",compressible:!1,extensions:["usdz"]},"model/vnd.valve.source.compiled-map":{source:"iana",extensions:["bsp"]},"model/vnd.vtu":{source:"iana",extensions:["vtu"]},"model/vrml":{source:"iana",compressible:!1,extensions:["wrl","vrml"]},"model/x3d+binary":{source:"apache",compressible:!1,extensions:["x3db","x3dbz"]},"model/x3d+fastinfoset":{source:"iana",extensions:["x3db"]},"model/x3d+vrml":{source:"apache",compressible:!1,extensions:["x3dv","x3dvz"]},"model/x3d+xml":{source:"iana",compressible:!0,extensions:["x3d","x3dz"]},"model/x3d-vrml":{source:"iana",extensions:["x3dv"]},"multipart/alternative":{source:"iana",compressible:!1},"multipart/appledouble":{source:"iana"},"multipart/byteranges":{source:"iana"},"multipart/digest":{source:"iana"},"multipart/encrypted":{source:"iana",compressible:!1},"multipart/form-data":{source:"iana",compressible:!1},"multipart/header-set":{source:"iana"},"multipart/mixed":{source:"iana"},"multipart/multilingual":{source:"iana"},"multipart/parallel":{source:"iana"},"multipart/related":{source:"iana",compressible:!1},"multipart/report":{source:"iana"},"multipart/signed":{source:"iana",compressible:!1},"multipart/vnd.bint.med-plus":{source:"iana"},"multipart/voice-message":{source:"iana"},"multipart/x-mixed-replace":{source:"iana"},"text/1d-interleaved-parityfec":{source:"iana"},"text/cache-manifest":{source:"iana",compressible:!0,extensions:["appcache","manifest"]},"text/calendar":{source:"iana",extensions:["ics","ifb"]},"text/calender":{compressible:!0},"text/cmd":{compressible:!0},"text/coffeescript":{extensions:["coffee","litcoffee"]},"text/cql":{source:"iana"},"text/cql-expression":{source:"iana"},"text/cql-identifier":{source:"iana"},"text/css":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["css"]},"text/csv":{source:"iana",compressible:!0,extensions:["csv"]},"text/csv-schema":{source:"iana"},"text/directory":{source:"iana"},"text/dns":{source:"iana"},"text/ecmascript":{source:"iana"},"text/encaprtp":{source:"iana"},"text/enriched":{source:"iana"},"text/fhirpath":{source:"iana"},"text/flexfec":{source:"iana"},"text/fwdred":{source:"iana"},"text/gff3":{source:"iana"},"text/grammar-ref-list":{source:"iana"},"text/html":{source:"iana",compressible:!0,extensions:["html","htm","shtml"]},"text/jade":{extensions:["jade"]},"text/javascript":{source:"iana",compressible:!0},"text/jcr-cnd":{source:"iana"},"text/jsx":{compressible:!0,extensions:["jsx"]},"text/less":{compressible:!0,extensions:["less"]},"text/markdown":{source:"iana",compressible:!0,extensions:["markdown","md"]},"text/mathml":{source:"nginx",extensions:["mml"]},"text/mdx":{compressible:!0,extensions:["mdx"]},"text/mizar":{source:"iana"},"text/n3":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["n3"]},"text/parameters":{source:"iana",charset:"UTF-8"},"text/parityfec":{source:"iana"},"text/plain":{source:"iana",compressible:!0,extensions:["txt","text","conf","def","list","log","in","ini"]},"text/provenance-notation":{source:"iana",charset:"UTF-8"},"text/prs.fallenstein.rst":{source:"iana"},"text/prs.lines.tag":{source:"iana",extensions:["dsc"]},"text/prs.prop.logic":{source:"iana"},"text/raptorfec":{source:"iana"},"text/red":{source:"iana"},"text/rfc822-headers":{source:"iana"},"text/richtext":{source:"iana",compressible:!0,extensions:["rtx"]},"text/rtf":{source:"iana",compressible:!0,extensions:["rtf"]},"text/rtp-enc-aescm128":{source:"iana"},"text/rtploopback":{source:"iana"},"text/rtx":{source:"iana"},"text/sgml":{source:"iana",extensions:["sgml","sgm"]},"text/shaclc":{source:"iana"},"text/shex":{source:"iana",extensions:["shex"]},"text/slim":{extensions:["slim","slm"]},"text/spdx":{source:"iana",extensions:["spdx"]},"text/strings":{source:"iana"},"text/stylus":{extensions:["stylus","styl"]},"text/t140":{source:"iana"},"text/tab-separated-values":{source:"iana",compressible:!0,extensions:["tsv"]},"text/troff":{source:"iana",extensions:["t","tr","roff","man","me","ms"]},"text/turtle":{source:"iana",charset:"UTF-8",extensions:["ttl"]},"text/ulpfec":{source:"iana"},"text/uri-list":{source:"iana",compressible:!0,extensions:["uri","uris","urls"]},"text/vcard":{source:"iana",compressible:!0,extensions:["vcard"]},"text/vnd.a":{source:"iana"},"text/vnd.abc":{source:"iana"},"text/vnd.ascii-art":{source:"iana"},"text/vnd.curl":{source:"iana",extensions:["curl"]},"text/vnd.curl.dcurl":{source:"apache",extensions:["dcurl"]},"text/vnd.curl.mcurl":{source:"apache",extensions:["mcurl"]},"text/vnd.curl.scurl":{source:"apache",extensions:["scurl"]},"text/vnd.debian.copyright":{source:"iana",charset:"UTF-8"},"text/vnd.dmclientscript":{source:"iana"},"text/vnd.dvb.subtitle":{source:"iana",extensions:["sub"]},"text/vnd.esmertec.theme-descriptor":{source:"iana",charset:"UTF-8"},"text/vnd.familysearch.gedcom":{source:"iana",extensions:["ged"]},"text/vnd.ficlab.flt":{source:"iana"},"text/vnd.fly":{source:"iana",extensions:["fly"]},"text/vnd.fmi.flexstor":{source:"iana",extensions:["flx"]},"text/vnd.gml":{source:"iana"},"text/vnd.graphviz":{source:"iana",extensions:["gv"]},"text/vnd.hans":{source:"iana"},"text/vnd.hgl":{source:"iana"},"text/vnd.in3d.3dml":{source:"iana",extensions:["3dml"]},"text/vnd.in3d.spot":{source:"iana",extensions:["spot"]},"text/vnd.iptc.newsml":{source:"iana"},"text/vnd.iptc.nitf":{source:"iana"},"text/vnd.latex-z":{source:"iana"},"text/vnd.motorola.reflex":{source:"iana"},"text/vnd.ms-mediapackage":{source:"iana"},"text/vnd.net2phone.commcenter.command":{source:"iana"},"text/vnd.radisys.msml-basic-layout":{source:"iana"},"text/vnd.senx.warpscript":{source:"iana"},"text/vnd.si.uricatalogue":{source:"iana"},"text/vnd.sosi":{source:"iana"},"text/vnd.sun.j2me.app-descriptor":{source:"iana",charset:"UTF-8",extensions:["jad"]},"text/vnd.trolltech.linguist":{source:"iana",charset:"UTF-8"},"text/vnd.wap.si":{source:"iana"},"text/vnd.wap.sl":{source:"iana"},"text/vnd.wap.wml":{source:"iana",extensions:["wml"]},"text/vnd.wap.wmlscript":{source:"iana",extensions:["wmls"]},"text/vtt":{source:"iana",charset:"UTF-8",compressible:!0,extensions:["vtt"]},"text/x-asm":{source:"apache",extensions:["s","asm"]},"text/x-c":{source:"apache",extensions:["c","cc","cxx","cpp","h","hh","dic"]},"text/x-component":{source:"nginx",extensions:["htc"]},"text/x-fortran":{source:"apache",extensions:["f","for","f77","f90"]},"text/x-gwt-rpc":{compressible:!0},"text/x-handlebars-template":{extensions:["hbs"]},"text/x-java-source":{source:"apache",extensions:["java"]},"text/x-jquery-tmpl":{compressible:!0},"text/x-lua":{extensions:["lua"]},"text/x-markdown":{compressible:!0,extensions:["mkd"]},"text/x-nfo":{source:"apache",extensions:["nfo"]},"text/x-opml":{source:"apache",extensions:["opml"]},"text/x-org":{compressible:!0,extensions:["org"]},"text/x-pascal":{source:"apache",extensions:["p","pas"]},"text/x-processing":{compressible:!0,extensions:["pde"]},"text/x-sass":{extensions:["sass"]},"text/x-scss":{extensions:["scss"]},"text/x-setext":{source:"apache",extensions:["etx"]},"text/x-sfv":{source:"apache",extensions:["sfv"]},"text/x-suse-ymp":{compressible:!0,extensions:["ymp"]},"text/x-uuencode":{source:"apache",extensions:["uu"]},"text/x-vcalendar":{source:"apache",extensions:["vcs"]},"text/x-vcard":{source:"apache",extensions:["vcf"]},"text/xml":{source:"iana",compressible:!0,extensions:["xml"]},"text/xml-external-parsed-entity":{source:"iana"},"text/yaml":{compressible:!0,extensions:["yaml","yml"]},"video/1d-interleaved-parityfec":{source:"iana"},"video/3gpp":{source:"iana",extensions:["3gp","3gpp"]},"video/3gpp-tt":{source:"iana"},"video/3gpp2":{source:"iana",extensions:["3g2"]},"video/av1":{source:"iana"},"video/bmpeg":{source:"iana"},"video/bt656":{source:"iana"},"video/celb":{source:"iana"},"video/dv":{source:"iana"},"video/encaprtp":{source:"iana"},"video/ffv1":{source:"iana"},"video/flexfec":{source:"iana"},"video/h261":{source:"iana",extensions:["h261"]},"video/h263":{source:"iana",extensions:["h263"]},"video/h263-1998":{source:"iana"},"video/h263-2000":{source:"iana"},"video/h264":{source:"iana",extensions:["h264"]},"video/h264-rcdo":{source:"iana"},"video/h264-svc":{source:"iana"},"video/h265":{source:"iana"},"video/iso.segment":{source:"iana",extensions:["m4s"]},"video/jpeg":{source:"iana",extensions:["jpgv"]},"video/jpeg2000":{source:"iana"},"video/jpm":{source:"apache",extensions:["jpm","jpgm"]},"video/jxsv":{source:"iana"},"video/mj2":{source:"iana",extensions:["mj2","mjp2"]},"video/mp1s":{source:"iana"},"video/mp2p":{source:"iana"},"video/mp2t":{source:"iana",extensions:["ts"]},"video/mp4":{source:"iana",compressible:!1,extensions:["mp4","mp4v","mpg4"]},"video/mp4v-es":{source:"iana"},"video/mpeg":{source:"iana",compressible:!1,extensions:["mpeg","mpg","mpe","m1v","m2v"]},"video/mpeg4-generic":{source:"iana"},"video/mpv":{source:"iana"},"video/nv":{source:"iana"},"video/ogg":{source:"iana",compressible:!1,extensions:["ogv"]},"video/parityfec":{source:"iana"},"video/pointer":{source:"iana"},"video/quicktime":{source:"iana",compressible:!1,extensions:["qt","mov"]},"video/raptorfec":{source:"iana"},"video/raw":{source:"iana"},"video/rtp-enc-aescm128":{source:"iana"},"video/rtploopback":{source:"iana"},"video/rtx":{source:"iana"},"video/scip":{source:"iana"},"video/smpte291":{source:"iana"},"video/smpte292m":{source:"iana"},"video/ulpfec":{source:"iana"},"video/vc1":{source:"iana"},"video/vc2":{source:"iana"},"video/vnd.cctv":{source:"iana"},"video/vnd.dece.hd":{source:"iana",extensions:["uvh","uvvh"]},"video/vnd.dece.mobile":{source:"iana",extensions:["uvm","uvvm"]},"video/vnd.dece.mp4":{source:"iana"},"video/vnd.dece.pd":{source:"iana",extensions:["uvp","uvvp"]},"video/vnd.dece.sd":{source:"iana",extensions:["uvs","uvvs"]},"video/vnd.dece.video":{source:"iana",extensions:["uvv","uvvv"]},"video/vnd.directv.mpeg":{source:"iana"},"video/vnd.directv.mpeg-tts":{source:"iana"},"video/vnd.dlna.mpeg-tts":{source:"iana"},"video/vnd.dvb.file":{source:"iana",extensions:["dvb"]},"video/vnd.fvt":{source:"iana",extensions:["fvt"]},"video/vnd.hns.video":{source:"iana"},"video/vnd.iptvforum.1dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.1dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.2dparityfec-1010":{source:"iana"},"video/vnd.iptvforum.2dparityfec-2005":{source:"iana"},"video/vnd.iptvforum.ttsavc":{source:"iana"},"video/vnd.iptvforum.ttsmpeg2":{source:"iana"},"video/vnd.motorola.video":{source:"iana"},"video/vnd.motorola.videop":{source:"iana"},"video/vnd.mpegurl":{source:"iana",extensions:["mxu","m4u"]},"video/vnd.ms-playready.media.pyv":{source:"iana",extensions:["pyv"]},"video/vnd.nokia.interleaved-multimedia":{source:"iana"},"video/vnd.nokia.mp4vr":{source:"iana"},"video/vnd.nokia.videovoip":{source:"iana"},"video/vnd.objectvideo":{source:"iana"},"video/vnd.radgamettools.bink":{source:"iana"},"video/vnd.radgamettools.smacker":{source:"iana"},"video/vnd.sealed.mpeg1":{source:"iana"},"video/vnd.sealed.mpeg4":{source:"iana"},"video/vnd.sealed.swf":{source:"iana"},"video/vnd.sealedmedia.softseal.mov":{source:"iana"},"video/vnd.uvvu.mp4":{source:"iana",extensions:["uvu","uvvu"]},"video/vnd.vivo":{source:"iana",extensions:["viv"]},"video/vnd.youtube.yt":{source:"iana"},"video/vp8":{source:"iana"},"video/vp9":{source:"iana"},"video/webm":{source:"apache",compressible:!1,extensions:["webm"]},"video/x-f4v":{source:"apache",extensions:["f4v"]},"video/x-fli":{source:"apache",extensions:["fli"]},"video/x-flv":{source:"apache",compressible:!1,extensions:["flv"]},"video/x-m4v":{source:"apache",extensions:["m4v"]},"video/x-matroska":{source:"apache",compressible:!1,extensions:["mkv","mk3d","mks"]},"video/x-mng":{source:"apache",extensions:["mng"]},"video/x-ms-asf":{source:"apache",extensions:["asf","asx"]},"video/x-ms-vob":{source:"apache",extensions:["vob"]},"video/x-ms-wm":{source:"apache",extensions:["wm"]},"video/x-ms-wmv":{source:"apache",compressible:!1,extensions:["wmv"]},"video/x-ms-wmx":{source:"apache",extensions:["wmx"]},"video/x-ms-wvx":{source:"apache",extensions:["wvx"]},"video/x-msvideo":{source:"apache",extensions:["avi"]},"video/x-sgi-movie":{source:"apache",extensions:["movie"]},"video/x-smv":{source:"apache",extensions:["smv"]},"x-conference/x-cooltalk":{source:"apache",extensions:["ice"]},"x-shader/x-fragment":{compressible:!0},"x-shader/x-vertex":{compressible:!0}}});var _9=Z((MTe,D9)=>{"use strict";D9.exports=R9()});var B9=Z(Oa=>{"use strict";var I2=_9(),Gpe=require("path").extname,O9=/^\s*([^;\s]*)(?:;|\s|$)/,Xpe=/^text\//i;Oa.charset=P9;Oa.charsets={lookup:P9};Oa.contentType=Wpe;Oa.extension=Jpe;Oa.extensions=Object.create(null);Oa.lookup=Qpe;Oa.types=Object.create(null);Ype(Oa.extensions,Oa.types);function P9(r){if(!r||typeof r!="string")return!1;var e=O9.exec(r),t=e&&I2[e[1].toLowerCase()];return t&&t.charset?t.charset:e&&Xpe.test(e[1])?"UTF-8":!1}o(P9,"charset");function Wpe(r){if(!r||typeof r!="string")return!1;var e=r.indexOf("/")===-1?Oa.lookup(r):r;if(!e)return!1;if(e.indexOf("charset")===-1){var t=Oa.charset(e);t&&(e+="; charset="+t.toLowerCase())}return e}o(Wpe,"contentType");function Jpe(r){if(!r||typeof r!="string")return!1;var e=O9.exec(r),t=e&&Oa.extensions[e[1].toLowerCase()];return!t||!t.length?!1:t[0]}o(Jpe,"extension");function Qpe(r){if(!r||typeof r!="string")return!1;var e=Gpe("x."+r).toLowerCase().substr(1);return e&&Oa.types[e]||!1}o(Qpe,"lookup");function Ype(r,e){var t=["nginx","apache",void 0,"iana"];Object.keys(I2).forEach(o(function(i){var s=I2[i],a=s.extensions;if(!(!a||!a.length)){r[i]=a;for(var u=0;u<a.length;u++){var c=a[u];if(e[c]){var l=t.indexOf(I2[e[c]].source),p=t.indexOf(s.source);if(e[c]!=="application/octet-stream"&&(l>p||l===p&&e[c].substr(0,12)==="application/"))continue}e[c]=i}}},"forEachMimeType"))}o(Ype,"populateMaps")});var L9=Z((zTe,F9)=>{"use strict";F9.exports=Zpe;function Zpe(r){var e=typeof setImmediate=="function"?setImmediate:typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:null;e?e(r):setTimeout(r,0)}o(Zpe,"defer")});var PB=Z(($Te,V9)=>{"use strict";var k9=L9();V9.exports=ehe;function ehe(r){var e=!1;return k9(function(){e=!0}),o(function(n,i){e?r(n,i):k9(o(function(){r(n,i)},"nextTick_callback"))},"async_callback")}o(ehe,"async")});var BB=Z((XTe,j9)=>{"use strict";j9.exports=the;function the(r){Object.keys(r.jobs).forEach(rhe.bind(r)),r.jobs={}}o(the,"abort");function rhe(r){typeof this.jobs[r]=="function"&&this.jobs[r]()}o(rhe,"clean")});var FB=Z((JTe,M9)=>{"use strict";var U9=PB(),nhe=BB();M9.exports=ihe;function ihe(r,e,t,n){var i=t.keyedList?t.keyedList[t.index]:t.index;t.jobs[i]=she(e,i,r[i],function(s,a){i in t.jobs&&(delete t.jobs[i],s?nhe(t):t.results[i]=a,n(s,t.results))})}o(ihe,"iterate");function she(r,e,t,n){var i;return r.length==2?i=r(t,U9(n)):i=r(t,e,U9(n)),i}o(she,"runJob")});var LB=Z((YTe,q9)=>{"use strict";q9.exports=ahe;function ahe(r,e){var t=!Array.isArray(r),n={index:0,keyedList:t||e?Object.keys(r):null,jobs:{},results:t?{}:[],size:t?Object.keys(r).length:r.length};return e&&n.keyedList.sort(t?e:function(i,s){return e(r[i],r[s])}),n}o(ahe,"state")});var kB=Z((eRe,H9)=>{"use strict";var ohe=BB(),uhe=PB();H9.exports=che;function che(r){Object.keys(this.jobs).length&&(this.index=this.size,ohe(this),uhe(r)(null,this.results))}o(che,"terminator")});var K9=Z((rRe,z9)=>{"use strict";var lhe=FB(),fhe=LB(),phe=kB();z9.exports=hhe;function hhe(r,e,t){for(var n=fhe(r);n.index<(n.keyedList||r).length;)lhe(r,e,n,function(i,s){if(i){t(i,s);return}if(Object.keys(n.jobs).length===0){t(null,n.results);return}}),n.index++;return phe.bind(n,t)}o(hhe,"parallel")});var VB=Z((iRe,T2)=>{"use strict";var $9=FB(),dhe=LB(),mhe=kB();T2.exports=ghe;T2.exports.ascending=G9;T2.exports.descending=vhe;function ghe(r,e,t,n){var i=dhe(r,t);return $9(r,e,i,o(function s(a,u){if(a){n(a,u);return}if(i.index++,i.index<(i.keyedList||r).length){$9(r,e,i,s);return}n(null,i.results)},"iteratorHandler")),mhe.bind(i,n)}o(ghe,"serialOrdered");function G9(r,e){return r<e?-1:r>e?1:0}o(G9,"ascending");function vhe(r,e){return-1*G9(r,e)}o(vhe,"descending")});var W9=Z((aRe,X9)=>{"use strict";var yhe=VB();X9.exports=She;function She(r,e,t){return yhe(r,e,null,t)}o(She,"serial")});var Q9=Z((uRe,J9)=>{"use strict";J9.exports={parallel:K9(),serial:W9(),serialOrdered:VB()}});var jB=Z((cRe,Y9)=>{"use strict";Y9.exports=Object});var eq=Z((lRe,Z9)=>{"use strict";Z9.exports=Error});var rq=Z((fRe,tq)=>{"use strict";tq.exports=EvalError});var iq=Z((pRe,nq)=>{"use strict";nq.exports=RangeError});var aq=Z((hRe,sq)=>{"use strict";sq.exports=ReferenceError});var uq=Z((dRe,oq)=>{"use strict";oq.exports=SyntaxError});var R2=Z((mRe,cq)=>{"use strict";cq.exports=TypeError});var fq=Z((gRe,lq)=>{"use strict";lq.exports=URIError});var hq=Z((vRe,pq)=>{"use strict";pq.exports=Math.abs});var mq=Z((yRe,dq)=>{"use strict";dq.exports=Math.floor});var vq=Z((SRe,gq)=>{"use strict";gq.exports=Math.max});var Sq=Z((xRe,yq)=>{"use strict";yq.exports=Math.min});var bq=Z((bRe,xq)=>{"use strict";xq.exports=Math.pow});var Cq=Z((wRe,wq)=>{"use strict";wq.exports=Math.round});var Aq=Z((CRe,Eq)=>{"use strict";Eq.exports=Number.isNaN||o(function(e){return e!==e},"isNaN")});var Iq=Z((ARe,Nq)=>{"use strict";var xhe=Aq();Nq.exports=o(function(e){return xhe(e)||e===0?e:e<0?-1:1},"sign")});var Rq=Z((IRe,Tq)=>{"use strict";Tq.exports=Object.getOwnPropertyDescriptor});var UB=Z((TRe,Dq)=>{"use strict";var D2=Rq();if(D2)try{D2([],"length")}catch{D2=null}Dq.exports=D2});var Oq=Z((RRe,_q)=>{"use strict";var _2=Object.defineProperty||!1;if(_2)try{_2({},"a",{value:1})}catch{_2=!1}_q.exports=_2});var MB=Z((DRe,Pq)=>{"use strict";Pq.exports=o(function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[t]=i;for(var s in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(e,t);if(u.value!==i||u.enumerable!==!0)return!1}return!0},"hasSymbols")});var Lq=Z((ORe,Fq)=>{"use strict";var Bq=typeof Symbol<"u"&&Symbol,bhe=MB();Fq.exports=o(function(){return typeof Bq!="function"||typeof Symbol!="function"||typeof Bq("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:bhe()},"hasNativeSymbols")});var qB=Z((BRe,kq)=>{"use strict";kq.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var HB=Z((FRe,Vq)=>{"use strict";var whe=jB();Vq.exports=whe.getPrototypeOf||null});var Mq=Z((LRe,Uq)=>{"use strict";var Che="Function.prototype.bind called on incompatible ",Ehe=Object.prototype.toString,Ahe=Math.max,Nhe="[object Function]",jq=o(function(e,t){for(var n=[],i=0;i<e.length;i+=1)n[i]=e[i];for(var s=0;s<t.length;s+=1)n[s+e.length]=t[s];return n},"concatty"),Ihe=o(function(e,t){for(var n=[],i=t||0,s=0;i<e.length;i+=1,s+=1)n[s]=e[i];return n},"slicy"),The=o(function(r,e){for(var t="",n=0;n<r.length;n+=1)t+=r[n],n+1<r.length&&(t+=e);return t},"joiny");Uq.exports=o(function(e){var t=this;if(typeof t!="function"||Ehe.apply(t)!==Nhe)throw new TypeError(Che+t);for(var n=Ihe(arguments,1),i,s=o(function(){if(this instanceof i){var p=t.apply(this,jq(n,arguments));return Object(p)===p?p:this}return t.apply(e,jq(n,arguments))},"binder"),a=Ahe(0,t.length-n.length),u=[],c=0;c<a;c++)u[c]="$"+c;if(i=Function("binder","return function ("+The(u,",")+"){ return binder.apply(this,arguments); }")(s),t.prototype){var l=o(function(){},"Empty");l.prototype=t.prototype,i.prototype=new l,l.prototype=null}return i},"bind")});var Yx=Z((VRe,qq)=>{"use strict";var Rhe=Mq();qq.exports=Function.prototype.bind||Rhe});var O2=Z((jRe,Hq)=>{"use strict";Hq.exports=Function.prototype.call});var zB=Z((URe,zq)=>{"use strict";zq.exports=Function.prototype.apply});var $q=Z((MRe,Kq)=>{"use strict";Kq.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Xq=Z((qRe,Gq)=>{"use strict";var Dhe=Yx(),_he=zB(),Ohe=O2(),Phe=$q();Gq.exports=Phe||Dhe.call(Ohe,_he)});var Jq=Z((HRe,Wq)=>{"use strict";var Bhe=Yx(),Fhe=R2(),Lhe=O2(),khe=Xq();Wq.exports=o(function(e){if(e.length<1||typeof e[0]!="function")throw new Fhe("a function is required");return khe(Bhe,Lhe,e)},"callBindBasic")});var rH=Z((KRe,tH)=>{"use strict";var Vhe=Jq(),Qq=UB(),Zq;try{Zq=[].__proto__===Array.prototype}catch(r){if(!r||typeof r!="object"||!("code"in r)||r.code!=="ERR_PROTO_ACCESS")throw r}var KB=!!Zq&&Qq&&Qq(Object.prototype,"__proto__"),eH=Object,Yq=eH.getPrototypeOf;tH.exports=KB&&typeof KB.get=="function"?Vhe([KB.get]):typeof Yq=="function"?o(function(e){return Yq(e==null?e:eH(e))},"getDunder"):!1});var oH=Z((GRe,aH)=>{"use strict";var nH=qB(),iH=HB(),sH=rH();aH.exports=nH?o(function(e){return nH(e)},"getProto"):iH?o(function(e){if(!e||typeof e!="object"&&typeof e!="function")throw new TypeError("getProto: not an object");return iH(e)},"getProto"):sH?o(function(e){return sH(e)},"getProto"):null});var P2=Z((WRe,uH)=>{"use strict";var jhe=Function.prototype.call,Uhe=Object.prototype.hasOwnProperty,Mhe=Yx();uH.exports=Mhe.call(jhe,Uhe)});var mH=Z((JRe,dH)=>{"use strict";var wr,qhe=jB(),Hhe=eq(),zhe=rq(),Khe=iq(),$he=aq(),xv=uq(),Sv=R2(),Ghe=fq(),Xhe=hq(),Whe=mq(),Jhe=vq(),Qhe=Sq(),Yhe=bq(),Zhe=Cq(),ede=Iq(),pH=Function,$B=o(function(r){try{return pH('"use strict"; return ('+r+").constructor;")()}catch{}},"getEvalledConstructor"),Zx=UB(),tde=Oq(),GB=o(function(){throw new Sv},"throwTypeError"),rde=Zx?(function(){try{return arguments.callee,GB}catch{try{return Zx(arguments,"callee").get}catch{return GB}}})():GB,vv=Lq()(),Yi=oH(),nde=HB(),ide=qB(),hH=zB(),eb=O2(),yv={},sde=typeof Uint8Array>"u"||!Yi?wr:Yi(Uint8Array),cm={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?wr:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?wr:ArrayBuffer,"%ArrayIteratorPrototype%":vv&&Yi?Yi([][Symbol.iterator]()):wr,"%AsyncFromSyncIteratorPrototype%":wr,"%AsyncFunction%":yv,"%AsyncGenerator%":yv,"%AsyncGeneratorFunction%":yv,"%AsyncIteratorPrototype%":yv,"%Atomics%":typeof Atomics>"u"?wr:Atomics,"%BigInt%":typeof BigInt>"u"?wr:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?wr:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?wr:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?wr:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Hhe,"%eval%":eval,"%EvalError%":zhe,"%Float16Array%":typeof Float16Array>"u"?wr:Float16Array,"%Float32Array%":typeof Float32Array>"u"?wr:Float32Array,"%Float64Array%":typeof Float64Array>"u"?wr:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?wr:FinalizationRegistry,"%Function%":pH,"%GeneratorFunction%":yv,"%Int8Array%":typeof Int8Array>"u"?wr:Int8Array,"%Int16Array%":typeof Int16Array>"u"?wr:Int16Array,"%Int32Array%":typeof Int32Array>"u"?wr:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":vv&&Yi?Yi(Yi([][Symbol.iterator]())):wr,"%JSON%":typeof JSON=="object"?JSON:wr,"%Map%":typeof Map>"u"?wr:Map,"%MapIteratorPrototype%":typeof Map>"u"||!vv||!Yi?wr:Yi(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":qhe,"%Object.getOwnPropertyDescriptor%":Zx,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?wr:Promise,"%Proxy%":typeof Proxy>"u"?wr:Proxy,"%RangeError%":Khe,"%ReferenceError%":$he,"%Reflect%":typeof Reflect>"u"?wr:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?wr:Set,"%SetIteratorPrototype%":typeof Set>"u"||!vv||!Yi?wr:Yi(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?wr:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":vv&&Yi?Yi(""[Symbol.iterator]()):wr,"%Symbol%":vv?Symbol:wr,"%SyntaxError%":xv,"%ThrowTypeError%":rde,"%TypedArray%":sde,"%TypeError%":Sv,"%Uint8Array%":typeof Uint8Array>"u"?wr:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?wr:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?wr:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?wr:Uint32Array,"%URIError%":Ghe,"%WeakMap%":typeof WeakMap>"u"?wr:WeakMap,"%WeakRef%":typeof WeakRef>"u"?wr:WeakRef,"%WeakSet%":typeof WeakSet>"u"?wr:WeakSet,"%Function.prototype.call%":eb,"%Function.prototype.apply%":hH,"%Object.defineProperty%":tde,"%Object.getPrototypeOf%":nde,"%Math.abs%":Xhe,"%Math.floor%":Whe,"%Math.max%":Jhe,"%Math.min%":Qhe,"%Math.pow%":Yhe,"%Math.round%":Zhe,"%Math.sign%":ede,"%Reflect.getPrototypeOf%":ide};if(Yi)try{null.error}catch(r){cH=Yi(Yi(r)),cm["%Error.prototype%"]=cH}var cH,ade=o(function r(e){var t;if(e==="%AsyncFunction%")t=$B("async function () {}");else if(e==="%GeneratorFunction%")t=$B("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=$B("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=r("%AsyncGenerator%");i&&Yi&&(t=Yi(i.prototype))}return cm[e]=t,t},"doEval"),lH={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},tb=Yx(),B2=P2(),ode=tb.call(eb,Array.prototype.concat),ude=tb.call(hH,Array.prototype.splice),fH=tb.call(eb,String.prototype.replace),F2=tb.call(eb,String.prototype.slice),cde=tb.call(eb,RegExp.prototype.exec),lde=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,fde=/\\(\\)?/g,pde=o(function(e){var t=F2(e,0,1),n=F2(e,-1);if(t==="%"&&n!=="%")throw new xv("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new xv("invalid intrinsic syntax, expected opening `%`");var i=[];return fH(e,lde,function(s,a,u,c){i[i.length]=u?fH(c,fde,"$1"):a||s}),i},"stringToPath"),hde=o(function(e,t){var n=e,i;if(B2(lH,n)&&(i=lH[n],n="%"+i[0]+"%"),B2(cm,n)){var s=cm[n];if(s===yv&&(s=ade(n)),typeof s>"u"&&!t)throw new Sv("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:s}}throw new xv("intrinsic "+e+" does not exist!")},"getBaseIntrinsic");dH.exports=o(function(e,t){if(typeof e!="string"||e.length===0)throw new Sv("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new Sv('"allowMissing" argument must be a boolean');if(cde(/^%?[^%]*%?$/,e)===null)throw new xv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=pde(e),i=n.length>0?n[0]:"",s=hde("%"+i+"%",t),a=s.name,u=s.value,c=!1,l=s.alias;l&&(i=l[0],ude(n,ode([0,1],l)));for(var p=1,m=!0;p<n.length;p+=1){var g=n[p],y=F2(g,0,1),v=F2(g,-1);if((y==='"'||y==="'"||y==="`"||v==='"'||v==="'"||v==="`")&&y!==v)throw new xv("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(c=!0),i+="."+g,a="%"+i+"%",B2(cm,a))u=cm[a];else if(u!=null){if(!(g in u)){if(!t)throw new Sv("base intrinsic for "+e+" exists, but the property is not available.");return}if(Zx&&p+1>=n.length){var b=Zx(u,g);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?u=b.get:u=u[g]}else m=B2(u,g),u=u[g];m&&!c&&(cm[a]=u)}}return u},"GetIntrinsic")});var vH=Z((YRe,gH)=>{"use strict";var dde=MB();gH.exports=o(function(){return dde()&&!!Symbol.toStringTag},"hasToStringTagShams")});var xH=Z((eDe,SH)=>{"use strict";var mde=mH(),yH=mde("%Object.defineProperty%",!0),gde=vH()(),vde=P2(),yde=R2(),L2=gde?Symbol.toStringTag:null;SH.exports=o(function(e,t){var n=arguments.length>2&&!!arguments[2]&&arguments[2].force,i=arguments.length>2&&!!arguments[2]&&arguments[2].nonConfigurable;if(typeof n<"u"&&typeof n!="boolean"||typeof i<"u"&&typeof i!="boolean")throw new yde("if provided, the `overrideIfSet` and `nonConfigurable` options must be booleans");L2&&(n||!vde(e,L2))&&(yH?yH(e,L2,{configurable:!i,enumerable:!1,value:t,writable:!1}):e[L2]=t)},"setToStringTag")});var wH=Z((rDe,bH)=>{"use strict";bH.exports=function(r,e){return Object.keys(e).forEach(function(t){r[t]=r[t]||e[t]}),r}});var YB=Z((nDe,CH)=>{"use strict";var QB=T9(),Sde=require("util"),XB=require("path"),xde=require("http"),bde=require("https"),wde=require("url").parse,Cde=require("fs"),Ede=require("stream").Stream,Ade=require("crypto"),WB=B9(),Nde=Q9(),Ide=xH(),zp=P2(),JB=wH();function Pr(r){if(!(this instanceof Pr))return new Pr(r);this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],QB.call(this),r=r||{};for(var e in r)this[e]=r[e]}o(Pr,"FormData");Sde.inherits(Pr,QB);Pr.LINE_BREAK=`\r
46
46
  `;Pr.DEFAULT_CONTENT_TYPE="application/octet-stream";Pr.prototype.append=function(r,e,t){t=t||{},typeof t=="string"&&(t={filename:t});var n=QB.prototype.append.bind(this);if((typeof e=="number"||e==null)&&(e=String(e)),Array.isArray(e)){this._error(new Error("Arrays are not supported."));return}var i=this._multiPartHeader(r,e,t),s=this._multiPartFooter();n(i),n(e),n(s),this._trackLength(i,e,t)};Pr.prototype._trackLength=function(r,e,t){var n=0;t.knownLength!=null?n+=Number(t.knownLength):Buffer.isBuffer(e)?n=e.length:typeof e=="string"&&(n=Buffer.byteLength(e)),this._valueLength+=n,this._overheadLength+=Buffer.byteLength(r)+Pr.LINE_BREAK.length,!(!e||!e.path&&!(e.readable&&zp(e,"httpVersion"))&&!(e instanceof Ede))&&(t.knownLength||this._valuesToMeasure.push(e))};Pr.prototype._lengthRetriever=function(r,e){zp(r,"fd")?r.end!=null&&r.end!=1/0&&r.start!=null?e(null,r.end+1-(r.start?r.start:0)):Cde.stat(r.path,function(t,n){if(t){e(t);return}var i=n.size-(r.start?r.start:0);e(null,i)}):zp(r,"httpVersion")?e(null,Number(r.headers["content-length"])):zp(r,"httpModule")?(r.on("response",function(t){r.pause(),e(null,Number(t.headers["content-length"]))}),r.resume()):e("Unknown stream")};Pr.prototype._multiPartHeader=function(r,e,t){if(typeof t.header=="string")return t.header;var n=this._getContentDisposition(e,t),i=this._getContentType(e,t),s="",a={"Content-Disposition":["form-data",'name="'+r+'"'].concat(n||[]),"Content-Type":[].concat(i||[])};typeof t.header=="object"&&JB(a,t.header);var u;for(var c in a)if(zp(a,c)){if(u=a[c],u==null)continue;Array.isArray(u)||(u=[u]),u.length&&(s+=c+": "+u.join("; ")+Pr.LINE_BREAK)}return"--"+this.getBoundary()+Pr.LINE_BREAK+s+Pr.LINE_BREAK};Pr.prototype._getContentDisposition=function(r,e){var t;if(typeof e.filepath=="string"?t=XB.normalize(e.filepath).replace(/\\/g,"/"):e.filename||r&&(r.name||r.path)?t=XB.basename(e.filename||r&&(r.name||r.path)):r&&r.readable&&zp(r,"httpVersion")&&(t=XB.basename(r.client._httpMessage.path||"")),t)return'filename="'+t+'"'};Pr.prototype._getContentType=function(r,e){var t=e.contentType;return!t&&r&&r.name&&(t=WB.lookup(r.name)),!t&&r&&r.path&&(t=WB.lookup(r.path)),!t&&r&&r.readable&&zp(r,"httpVersion")&&(t=r.headers["content-type"]),!t&&(e.filepath||e.filename)&&(t=WB.lookup(e.filepath||e.filename)),!t&&r&&typeof r=="object"&&(t=Pr.DEFAULT_CONTENT_TYPE),t};Pr.prototype._multiPartFooter=function(){return(function(r){var e=Pr.LINE_BREAK,t=this._streams.length===0;t&&(e+=this._lastBoundary()),r(e)}).bind(this)};Pr.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+Pr.LINE_BREAK};Pr.prototype.getHeaders=function(r){var e,t={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(e in r)zp(r,e)&&(t[e.toLowerCase()]=r[e]);return t};Pr.prototype.setBoundary=function(r){if(typeof r!="string")throw new TypeError("FormData boundary must be a string");this._boundary=r};Pr.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary};Pr.prototype.getBuffer=function(){for(var r=new Buffer.alloc(0),e=this.getBoundary(),t=0,n=this._streams.length;t<n;t++)typeof this._streams[t]!="function"&&(Buffer.isBuffer(this._streams[t])?r=Buffer.concat([r,this._streams[t]]):r=Buffer.concat([r,Buffer.from(this._streams[t])]),(typeof this._streams[t]!="string"||this._streams[t].substring(2,e.length+2)!==e)&&(r=Buffer.concat([r,Buffer.from(Pr.LINE_BREAK)])));return Buffer.concat([r,Buffer.from(this._lastBoundary())])};Pr.prototype._generateBoundary=function(){this._boundary="--------------------------"+Ade.randomBytes(12).toString("hex")};Pr.prototype.getLengthSync=function(){var r=this._overheadLength+this._valueLength;return this._streams.length&&(r+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),r};Pr.prototype.hasKnownLength=function(){var r=!0;return this._valuesToMeasure.length&&(r=!1),r};Pr.prototype.getLength=function(r){var e=this._overheadLength+this._valueLength;if(this._streams.length&&(e+=this._lastBoundary().length),!this._valuesToMeasure.length){process.nextTick(r.bind(this,null,e));return}Nde.parallel(this._valuesToMeasure,this._lengthRetriever,function(t,n){if(t){r(t);return}n.forEach(function(i){e+=i}),r(null,e)})};Pr.prototype.submit=function(r,e){var t,n,i={method:"post"};return typeof r=="string"?(r=wde(r),n=JB({port:r.port,path:r.pathname,host:r.hostname,protocol:r.protocol},i)):(n=JB(r,i),n.port||(n.port=n.protocol==="https:"?443:80)),n.headers=this.getHeaders(r.headers),n.protocol==="https:"?t=bde.request(n):t=xde.request(n),this.getLength((function(s,a){if(s&&s!=="Unknown stream"){this._error(s);return}if(a&&t.setHeader("Content-Length",a),this.pipe(t),e){var u,c=o(function(l,p){return t.removeListener("error",c),t.removeListener("response",u),e.call(this,l,p)},"callback");u=c.bind(this,null),t.on("error",c),t.on("response",u)}}).bind(this)),t};Pr.prototype._error=function(r){this.error||(this.error=r,this.pause(),this.emit("error",r))};Pr.prototype.toString=function(){return"[object FormData]"};Ide(Pr,"FormData");CH.exports=Pr});var ZB=Z(EH=>{"use strict";var Tde=require("url").parse,Rde={ftp:21,gopher:70,http:80,https:443,ws:80,wss:443},Dde=String.prototype.endsWith||function(r){return r.length<=this.length&&this.indexOf(r,this.length-r.length)!==-1};function _de(r){var e=typeof r=="string"?Tde(r):r||{},t=e.protocol,n=e.host,i=e.port;if(typeof n!="string"||!n||typeof t!="string"||(t=t.split(":",1)[0],n=n.replace(/:\d*$/,""),i=parseInt(i)||Rde[t]||0,!Ode(n,i)))return"";var s=bv("npm_config_"+t+"_proxy")||bv(t+"_proxy")||bv("npm_config_proxy")||bv("all_proxy");return s&&s.indexOf("://")===-1&&(s=t+"://"+s),s}o(_de,"getProxyForUrl");function Ode(r,e){var t=(bv("npm_config_no_proxy")||bv("no_proxy")).toLowerCase();return t?t==="*"?!1:t.split(/[,\s]/).every(function(n){if(!n)return!0;var i=n.match(/^(.+):(\d+)$/),s=i?i[1]:n,a=i?parseInt(i[2]):0;return a&&a!==e?!0:/^[.*]/.test(s)?(s.charAt(0)==="*"&&(s=s.slice(1)),!Dde.call(r,s)):r!==s}):!0}o(Ode,"shouldProxy");function bv(r){return process.env[r.toLowerCase()]||process.env[r.toUpperCase()]||""}o(bv,"getEnv");EH.getProxyForUrl=_de});var NH=Z((oDe,AH)=>{"use strict";var rb;AH.exports=function(){if(!rb){try{rb=mv()("follow-redirects")}catch{}typeof rb!="function"&&(rb=o(function(){},"debug"))}rb.apply(null,arguments)}});var p4=Z((cDe,f4)=>{"use strict";var ib=require("url"),nb=ib.URL,Pde=require("http"),Bde=require("https"),i4=require("stream").Writable,s4=require("assert"),IH=NH();o((function(){var e=typeof process<"u",t=typeof window<"u"&&typeof document<"u",n=fm(Error.captureStackTrace);!e&&(t||!n)&&console.warn("The follow-redirects package should be excluded from browser builds.")}),"detectUnsupportedEnvironment")();var a4=!1;try{s4(new nb(""))}catch(r){a4=r.code==="ERR_INVALID_URL"}var Fde=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],o4=["abort","aborted","connect","error","socket","timeout"],u4=Object.create(null);o4.forEach(function(r){u4[r]=function(e,t,n){this._redirectable.emit(r,e,t,n)}});var t4=sb("ERR_INVALID_URL","Invalid URL",TypeError),r4=sb("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),Lde=sb("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",r4),kde=sb("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),Vde=sb("ERR_STREAM_WRITE_AFTER_END","write after end"),jde=i4.prototype.destroy||RH;function Pa(r,e){i4.call(this),this._sanitizeOptions(r),this._options=r,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(n){try{t._processResponse(n)}catch(i){t.emit("error",i instanceof r4?i:new r4({cause:i}))}},this._performRequest()}o(Pa,"RedirectableRequest");Pa.prototype=Object.create(i4.prototype);Pa.prototype.abort=function(){l4(this._currentRequest),this._currentRequest.abort(),this.emit("abort")};Pa.prototype.destroy=function(r){return l4(this._currentRequest,r),jde.call(this,r),this};Pa.prototype.write=function(r,e,t){if(this._ending)throw new Vde;if(!lm(r)&&!qde(r))throw new TypeError("data should be a string, Buffer or Uint8Array");if(fm(e)&&(t=e,e=null),r.length===0){t&&t();return}this._requestBodyLength+r.length<=this._options.maxBodyLength?(this._requestBodyLength+=r.length,this._requestBodyBuffers.push({data:r,encoding:e}),this._currentRequest.write(r,e,t)):(this.emit("error",new kde),this.abort())};Pa.prototype.end=function(r,e,t){if(fm(r)?(t=r,r=e=null):fm(e)&&(t=e,e=null),!r)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else{var n=this,i=this._currentRequest;this.write(r,e,function(){n._ended=!0,i.end(null,null,t)}),this._ending=!0}};Pa.prototype.setHeader=function(r,e){this._options.headers[r]=e,this._currentRequest.setHeader(r,e)};Pa.prototype.removeHeader=function(r){delete this._options.headers[r],this._currentRequest.removeHeader(r)};Pa.prototype.setTimeout=function(r,e){var t=this;function n(a){a.setTimeout(r),a.removeListener("timeout",a.destroy),a.addListener("timeout",a.destroy)}o(n,"destroyOnTimeout");function i(a){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),s()},r),n(a)}o(i,"startTimer");function s(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",s),t.removeListener("error",s),t.removeListener("response",s),t.removeListener("close",s),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",i)}return o(s,"clearTimer"),e&&this.on("timeout",e),this.socket?i(this.socket):this._currentRequest.once("socket",i),this.on("socket",n),this.on("abort",s),this.on("error",s),this.on("response",s),this.on("close",s),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(r){Pa.prototype[r]=function(e,t){return this._currentRequest[r](e,t)}});["aborted","connection","socket"].forEach(function(r){Object.defineProperty(Pa.prototype,r,{get:o(function(){return this._currentRequest[r]},"get")})});Pa.prototype._sanitizeOptions=function(r){if(r.headers||(r.headers={}),r.host&&(r.hostname||(r.hostname=r.host),delete r.host),!r.pathname&&r.path){var e=r.path.indexOf("?");e<0?r.pathname=r.path:(r.pathname=r.path.substring(0,e),r.search=r.path.substring(e))}};Pa.prototype._performRequest=function(){var r=this._options.protocol,e=this._options.nativeProtocols[r];if(!e)throw new TypeError("Unsupported protocol "+r);if(this._options.agents){var t=r.slice(0,-1);this._options.agent=this._options.agents[t]}var n=this._currentRequest=e.request(this._options,this._onNativeResponse);n._redirectable=this;for(var i of o4)n.on(i,u4[i]);if(this._currentUrl=/^\//.test(this._options.path)?ib.format(this._options):this._options.path,this._isRedirect){var s=0,a=this,u=this._requestBodyBuffers;o((function c(l){if(n===a._currentRequest)if(l)a.emit("error",l);else if(s<u.length){var p=u[s++];n.finished||n.write(p.data,p.encoding,c)}else a._ended&&n.end()}),"writeNext")()}};Pa.prototype._processResponse=function(r){var e=r.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:r.headers,statusCode:e});var t=r.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){r.responseUrl=this._currentUrl,r.redirects=this._redirects,this.emit("response",r),this._requestBodyBuffers=[];return}if(l4(this._currentRequest),r.destroy(),++this._redirectCount>this._options.maxRedirects)throw new Lde;var n,i=this._options.beforeRedirect;i&&(n=Object.assign({Host:r.req.getHeader("host")},this._options.headers));var s=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=[],e4(/^content-/i,this._options.headers));var a=e4(/^host$/i,this._options.headers),u=c4(this._currentUrl),c=a||u.host,l=/^\w+:/.test(t)?this._currentUrl:ib.format(Object.assign(u,{host:c})),p=Ude(t,l);if(IH("redirecting to",p.href),this._isRedirect=!0,n4(p,this._options),(p.protocol!==u.protocol&&p.protocol!=="https:"||p.host!==c&&!Mde(p.host,c))&&e4(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),fm(i)){var m={headers:r.headers,statusCode:e},g={url:l,method:s,headers:n};i(this._options,m,g),this._sanitizeOptions(this._options)}this._performRequest()};function TH(r){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(r).forEach(function(n){var i=n+":",s=t[i]=r[n],a=e[n]=Object.create(s);function u(l,p,m){return Hde(l)?l=n4(l):lm(l)?l=n4(c4(l)):(m=p,p=DH(l),l={protocol:i}),fm(p)&&(m=p,p=null),p=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},l,p),p.nativeProtocols=t,!lm(p.host)&&!lm(p.hostname)&&(p.hostname="::1"),s4.equal(p.protocol,i,"protocol mismatch"),IH("options",p),new Pa(p,m)}o(u,"request");function c(l,p,m){var g=a.request(l,p,m);return g.end(),g}o(c,"get"),Object.defineProperties(a,{request:{value:u,configurable:!0,enumerable:!0,writable:!0},get:{value:c,configurable:!0,enumerable:!0,writable:!0}})}),e}o(TH,"wrap");function RH(){}o(RH,"noop");function c4(r){var e;if(a4)e=new nb(r);else if(e=DH(ib.parse(r)),!lm(e.protocol))throw new t4({input:r});return e}o(c4,"parseUrl");function Ude(r,e){return a4?new nb(r,e):c4(ib.resolve(e,r))}o(Ude,"resolveUrl");function DH(r){if(/^\[/.test(r.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(r.hostname))throw new t4({input:r.href||r});if(/^\[/.test(r.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(r.host))throw new t4({input:r.href||r});return r}o(DH,"validateUrl");function n4(r,e){var t=e||{};for(var n of Fde)t[n]=r[n];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),t.port!==""&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}o(n4,"spreadUrlObject");function e4(r,e){var t;for(var n in e)r.test(n)&&(t=e[n],delete e[n]);return t===null||typeof t>"u"?void 0:String(t).trim()}o(e4,"removeMatchingHeaders");function sb(r,e,t){function n(i){fm(Error.captureStackTrace)&&Error.captureStackTrace(this,this.constructor),Object.assign(this,i||{}),this.code=r,this.message=this.cause?e+": "+this.cause.message:e}return o(n,"CustomError"),n.prototype=new(t||Error),Object.defineProperties(n.prototype,{constructor:{value:n,enumerable:!1},name:{value:"Error ["+r+"]",enumerable:!1}}),n}o(sb,"createErrorType");function l4(r,e){for(var t of o4)r.removeListener(t,u4[t]);r.on("error",RH),r.destroy(e)}o(l4,"destroyRequest");function Mde(r,e){s4(lm(r)&&lm(e));var t=r.length-e.length-1;return t>0&&r[t]==="."&&r.endsWith(e)}o(Mde,"isSubdomain");function lm(r){return typeof r=="string"||r instanceof String}o(lm,"isString");function fm(r){return typeof r=="function"}o(fm,"isFunction");function qde(r){return typeof r=="object"&&"length"in r}o(qde,"isBuffer");function Hde(r){return nb&&r instanceof nb}o(Hde,"isURL");f4.exports=TH({http:Pde,https:Bde});f4.exports.wrap=TH});var F4=Z((fDe,Az)=>{"use strict";var zde=YB(),Kde=require("crypto"),$de=require("url"),Gde=ZB(),Xde=require("http"),Wde=require("https"),Jde=require("util"),Qde=p4(),Yde=require("zlib"),ZH=require("stream"),Zde=require("events");function Lc(r){return r&&typeof r=="object"&&"default"in r?r:{default:r}}o(Lc,"_interopDefaultLegacy");var ez=Lc(zde),eme=Lc(Kde),tme=Lc($de),rme=Lc(Gde),nme=Lc(Xde),ime=Lc(Wde),tz=Lc(Jde),sme=Lc(Qde),$p=Lc(Yde),Kp=Lc(ZH);function rz(r,e){return o(function(){return r.apply(e,arguments)},"wrap")}o(rz,"bind");var{toString:ame}=Object.prototype,{getPrototypeOf:T4}=Object,{iterator:K2,toStringTag:nz}=Symbol,$2=(r=>e=>{let t=ame.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Du=o(r=>(r=r.toLowerCase(),e=>$2(e)===r),"kindOfTest"),G2=o(r=>e=>typeof e===r,"typeOfTest"),{isArray:Iv}=Array,Cv=G2("undefined");function ub(r){return r!==null&&!Cv(r)&&r.constructor!==null&&!Cv(r.constructor)&&Ba(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}o(ub,"isBuffer");var iz=Du("ArrayBuffer");function ome(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&iz(r.buffer),e}o(ome,"isArrayBufferView");var ume=G2("string"),Ba=G2("function"),sz=G2("number"),cb=o(r=>r!==null&&typeof r=="object","isObject"),cme=o(r=>r===!0||r===!1,"isBoolean"),V2=o(r=>{if($2(r)!=="object")return!1;let e=T4(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(nz in r)&&!(K2 in r)},"isPlainObject"),lme=o(r=>{if(!cb(r)||ub(r))return!1;try{return Object.keys(r).length===0&&Object.getPrototypeOf(r)===Object.prototype}catch{return!1}},"isEmptyObject"),fme=Du("Date"),pme=Du("File"),hme=Du("Blob"),dme=Du("FileList"),mme=o(r=>cb(r)&&Ba(r.pipe),"isStream"),gme=o(r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||Ba(r.append)&&((e=$2(r))==="formdata"||e==="object"&&Ba(r.toString)&&r.toString()==="[object FormData]"))},"isFormData"),vme=Du("URLSearchParams"),[yme,Sme,xme,bme]=["ReadableStream","Request","Response","Headers"].map(Du),wme=o(r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),"trim");function lb(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,i;if(typeof r!="object"&&(r=[r]),Iv(r))for(n=0,i=r.length;n<i;n++)e.call(null,r[n],n,r);else{if(ub(r))return;let s=t?Object.getOwnPropertyNames(r):Object.keys(r),a=s.length,u;for(n=0;n<a;n++)u=s[n],e.call(null,r[u],u,r)}}o(lb,"forEach");function az(r,e){if(ub(r))return null;e=e.toLowerCase();let t=Object.keys(r),n=t.length,i;for(;n-- >0;)if(i=t[n],e===i.toLowerCase())return i;return null}o(az,"findKey");var pm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,oz=o(r=>!Cv(r)&&r!==pm,"isContextDefined");function y4(){let{caseless:r,skipUndefined:e}=oz(this)&&this||{},t={},n=o((i,s)=>{let a=r&&az(t,s)||s;V2(t[a])&&V2(i)?t[a]=y4(t[a],i):V2(i)?t[a]=y4({},i):Iv(i)?t[a]=i.slice():(!e||!Cv(i))&&(t[a]=i)},"assignValue");for(let i=0,s=arguments.length;i<s;i++)arguments[i]&&lb(arguments[i],n);return t}o(y4,"merge");var Cme=o((r,e,t,{allOwnKeys:n}={})=>(lb(e,(i,s)=>{t&&Ba(i)?r[s]=rz(i,t):r[s]=i},{allOwnKeys:n}),r),"extend"),Eme=o(r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),"stripBOM"),Ame=o((r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},"inherits"),Nme=o((r,e,t,n)=>{let i,s,a,u={};if(e=e||{},r==null)return e;do{for(i=Object.getOwnPropertyNames(r),s=i.length;s-- >0;)a=i[s],(!n||n(a,r,e))&&!u[a]&&(e[a]=r[a],u[a]=!0);r=t!==!1&&T4(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},"toFlatObject"),Ime=o((r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;let n=r.indexOf(e,t);return n!==-1&&n===t},"endsWith"),Tme=o(r=>{if(!r)return null;if(Iv(r))return r;let e=r.length;if(!sz(e))return null;let t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},"toArray"),Rme=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&T4(Uint8Array)),Dme=o((r,e)=>{let n=(r&&r[K2]).call(r),i;for(;(i=n.next())&&!i.done;){let s=i.value;e.call(r,s[0],s[1])}},"forEachEntry"),_me=o((r,e)=>{let t,n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},"matchAll"),Ome=Du("HTMLFormElement"),Pme=o(r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,o(function(t,n,i){return n.toUpperCase()+i},"replacer")),"toCamelCase"),_H=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),Bme=Du("RegExp"),uz=o((r,e)=>{let t=Object.getOwnPropertyDescriptors(r),n={};lb(t,(i,s)=>{let a;(a=e(i,s,r))!==!1&&(n[s]=a||i)}),Object.defineProperties(r,n)},"reduceDescriptors"),Fme=o(r=>{uz(r,(e,t)=>{if(Ba(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;let n=r[t];if(Ba(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},"freezeMethods"),Lme=o((r,e)=>{let t={},n=o(i=>{i.forEach(s=>{t[s]=!0})},"define");return Iv(r)?n(r):n(String(r).split(e)),t},"toObjectSet"),kme=o(()=>{},"noop"),Vme=o((r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,"toFiniteNumber");function jme(r){return!!(r&&Ba(r.append)&&r[nz]==="FormData"&&r[K2])}o(jme,"isSpecCompliantForm");var Ume=o(r=>{let e=new Array(10),t=o((n,i)=>{if(cb(n)){if(e.indexOf(n)>=0)return;if(ub(n))return n;if(!("toJSON"in n)){e[i]=n;let s=Iv(n)?[]:{};return lb(n,(a,u)=>{let c=t(a,i+1);!Cv(c)&&(s[u]=c)}),e[i]=void 0,s}}return n},"visit");return t(r,0)},"toJSONObject"),Mme=Du("AsyncFunction"),qme=o(r=>r&&(cb(r)||Ba(r))&&Ba(r.then)&&Ba(r.catch),"isThenable"),cz=((r,e)=>r?setImmediate:e?((t,n)=>(pm.addEventListener("message",({source:i,data:s})=>{i===pm&&s===t&&n.length&&n.shift()()},!1),i=>{n.push(i),pm.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",Ba(pm.postMessage)),Hme=typeof queueMicrotask<"u"?queueMicrotask.bind(pm):typeof process<"u"&&process.nextTick||cz,zme=o(r=>r!=null&&Ba(r[K2]),"isIterable"),ve={isArray:Iv,isArrayBuffer:iz,isBuffer:ub,isFormData:gme,isArrayBufferView:ome,isString:ume,isNumber:sz,isBoolean:cme,isObject:cb,isPlainObject:V2,isEmptyObject:lme,isReadableStream:yme,isRequest:Sme,isResponse:xme,isHeaders:bme,isUndefined:Cv,isDate:fme,isFile:pme,isBlob:hme,isRegExp:Bme,isFunction:Ba,isStream:mme,isURLSearchParams:vme,isTypedArray:Rme,isFileList:dme,forEach:lb,merge:y4,extend:Cme,trim:wme,stripBOM:Eme,inherits:Ame,toFlatObject:Nme,kindOf:$2,kindOfTest:Du,endsWith:Ime,toArray:Tme,forEachEntry:Dme,matchAll:_me,isHTMLForm:Ome,hasOwnProperty:_H,hasOwnProp:_H,reduceDescriptors:uz,freezeMethods:Fme,toObjectSet:Lme,toCamelCase:Pme,noop:kme,toFiniteNumber:Vme,findKey:az,global:pm,isContextDefined:oz,isSpecCompliantForm:jme,toJSONObject:Ume,isAsyncFn:Mme,isThenable:qme,setImmediate:cz,asap:Hme,isIterable:zme};function gt(r,e,t,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}o(gt,"AxiosError");ve.inherits(gt,Error,{toJSON:o(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:ve.toJSONObject(this.config),code:this.code,status:this.status}},"toJSON")});var lz=gt.prototype,fz={};["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(r=>{fz[r]={value:r}});Object.defineProperties(gt,fz);Object.defineProperty(lz,"isAxiosError",{value:!0});gt.from=(r,e,t,n,i,s)=>{let a=Object.create(lz);ve.toFlatObject(r,a,o(function(p){return p!==Error.prototype},"filter"),l=>l!=="isAxiosError");let u=r&&r.message?r.message:"Error",c=e==null&&r?r.code:e;return gt.call(a,u,c,t,n,i),r&&a.cause==null&&Object.defineProperty(a,"cause",{value:r,configurable:!0}),a.name=r&&r.name||"Error",s&&Object.assign(a,s),a};function S4(r){return ve.isPlainObject(r)||ve.isArray(r)}o(S4,"isVisitable");function pz(r){return ve.endsWith(r,"[]")?r.slice(0,-2):r}o(pz,"removeBrackets");function OH(r,e,t){return r?r.concat(e).map(o(function(i,s){return i=pz(i),!t&&s?"["+i+"]":i},"each")).join(t?".":""):e}o(OH,"renderKey");function Kme(r){return ve.isArray(r)&&!r.some(S4)}o(Kme,"isFlatArray");var $me=ve.toFlatObject(ve,{},null,o(function(e){return/^is[A-Z]/.test(e)},"filter"));function X2(r,e,t){if(!ve.isObject(r))throw new TypeError("target must be an object");e=e||new(ez.default||FormData),t=ve.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,o(function(b,x){return!ve.isUndefined(x[b])},"defined"));let n=t.metaTokens,i=t.visitor||p,s=t.dots,a=t.indexes,c=(t.Blob||typeof Blob<"u"&&Blob)&&ve.isSpecCompliantForm(e);if(!ve.isFunction(i))throw new TypeError("visitor must be a function");function l(v){if(v===null)return"";if(ve.isDate(v))return v.toISOString();if(ve.isBoolean(v))return v.toString();if(!c&&ve.isBlob(v))throw new gt("Blob is not supported. Use a Buffer instead.");return ve.isArrayBuffer(v)||ve.isTypedArray(v)?c&&typeof Blob=="function"?new Blob([v]):Buffer.from(v):v}o(l,"convertValue");function p(v,b,x){let E=v;if(v&&!x&&typeof v=="object"){if(ve.endsWith(b,"{}"))b=n?b:b.slice(0,-2),v=JSON.stringify(v);else if(ve.isArray(v)&&Kme(v)||(ve.isFileList(v)||ve.endsWith(b,"[]"))&&(E=ve.toArray(v)))return b=pz(b),E.forEach(o(function(w,C){!(ve.isUndefined(w)||w===null)&&e.append(a===!0?OH([b],C,s):a===null?b:b+"[]",l(w))},"each")),!1}return S4(v)?!0:(e.append(OH(x,b,s),l(v)),!1)}o(p,"defaultVisitor");let m=[],g=Object.assign($me,{defaultVisitor:p,convertValue:l,isVisitable:S4});function y(v,b){if(!ve.isUndefined(v)){if(m.indexOf(v)!==-1)throw Error("Circular reference detected in "+b.join("."));m.push(v),ve.forEach(v,o(function(E,N){(!(ve.isUndefined(E)||E===null)&&i.call(e,E,ve.isString(N)?N.trim():N,b,g))===!0&&y(E,b?b.concat(N):[N])},"each")),m.pop()}}if(o(y,"build"),!ve.isObject(r))throw new TypeError("data must be an object");return y(r),e}o(X2,"toFormData");function PH(r){let e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,o(function(n){return e[n]},"replacer"))}o(PH,"encode$1");function hz(r,e){this._pairs=[],r&&X2(r,this,e)}o(hz,"AxiosURLSearchParams");var dz=hz.prototype;dz.append=o(function(e,t){this._pairs.push([e,t])},"append");dz.toString=o(function(e){let t=e?function(n){return e.call(this,n,PH)}:PH;return this._pairs.map(o(function(i){return t(i[0])+"="+t(i[1])},"each"),"").join("&")},"toString");function Gme(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}o(Gme,"encode");function R4(r,e,t){if(!e)return r;let n=t&&t.encode||Gme;ve.isFunction(t)&&(t={serialize:t});let i=t&&t.serialize,s;if(i?s=i(e,t):s=ve.isURLSearchParams(e)?e.toString():new hz(e,t).toString(n),s){let a=r.indexOf("#");a!==-1&&(r=r.slice(0,a)),r+=(r.indexOf("?")===-1?"?":"&")+s}return r}o(R4,"buildURL");var x4=class{static{o(this,"InterceptorManager")}constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,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){ve.forEach(this.handlers,o(function(n){n!==null&&e(n)},"forEachHandler"))}},BH=x4,D4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xme=tme.default.URLSearchParams,h4="abcdefghijklmnopqrstuvwxyz",FH="0123456789",mz={DIGIT:FH,ALPHA:h4,ALPHA_DIGIT:h4+h4.toUpperCase()+FH},Wme=o((r=16,e=mz.ALPHA_DIGIT)=>{let t="",{length:n}=e,i=new Uint32Array(r);eme.default.randomFillSync(i);for(let s=0;s<r;s++)t+=e[i[s]%n];return t},"generateString"),Jme={isNode:!0,classes:{URLSearchParams:Xme,FormData:ez.default,Blob:typeof Blob<"u"&&Blob||null},ALPHABET:mz,generateString:Wme,protocols:["http","https","file","data"]},_4=typeof window<"u"&&typeof document<"u",b4=typeof navigator=="object"&&navigator||void 0,Qme=_4&&(!b4||["ReactNative","NativeScript","NS"].indexOf(b4.product)<0),Yme=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Zme=_4&&window.location.href||"http://localhost",e0e=Object.freeze({__proto__:null,hasBrowserEnv:_4,hasStandardBrowserWebWorkerEnv:Yme,hasStandardBrowserEnv:Qme,navigator:b4,origin:Zme}),ui={...e0e,...Jme};function t0e(r,e){return X2(r,new ui.classes.URLSearchParams,{visitor:o(function(t,n,i,s){return ui.isNode&&ve.isBuffer(t)?(this.append(n,t.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)},"visitor"),...e})}o(t0e,"toURLEncodedForm");function r0e(r){return ve.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}o(r0e,"parsePropPath");function n0e(r){let e={},t=Object.keys(r),n,i=t.length,s;for(n=0;n<i;n++)s=t[n],e[s]=r[s];return e}o(n0e,"arrayToObject");function gz(r){function e(t,n,i,s){let a=t[s++];if(a==="__proto__")return!0;let u=Number.isFinite(+a),c=s>=t.length;return a=!a&&ve.isArray(i)?i.length:a,c?(ve.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!u):((!i[a]||!ve.isObject(i[a]))&&(i[a]=[]),e(t,n,i[a],s)&&ve.isArray(i[a])&&(i[a]=n0e(i[a])),!u)}if(o(e,"buildPath"),ve.isFormData(r)&&ve.isFunction(r.entries)){let t={};return ve.forEachEntry(r,(n,i)=>{e(r0e(n),i,t,0)}),t}return null}o(gz,"formDataToJSON");function i0e(r,e,t){if(ve.isString(r))try{return(e||JSON.parse)(r),ve.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(t||JSON.stringify)(r)}o(i0e,"stringifySafely");var O4={transitional:D4,adapter:["xhr","http","fetch"],transformRequest:[o(function(e,t){let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=ve.isObject(e);if(s&&ve.isHTMLForm(e)&&(e=new FormData(e)),ve.isFormData(e))return i?JSON.stringify(gz(e)):e;if(ve.isArrayBuffer(e)||ve.isBuffer(e)||ve.isStream(e)||ve.isFile(e)||ve.isBlob(e)||ve.isReadableStream(e))return e;if(ve.isArrayBufferView(e))return e.buffer;if(ve.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let u;if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1)return t0e(e,this.formSerializer).toString();if((u=ve.isFileList(e))||n.indexOf("multipart/form-data")>-1){let c=this.env&&this.env.FormData;return X2(u?{"files[]":e}:e,c&&new c,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),i0e(e)):e},"transformRequest")],transformResponse:[o(function(e){let t=this.transitional||O4.transitional,n=t&&t.forcedJSONParsing,i=this.responseType==="json";if(ve.isResponse(e)||ve.isReadableStream(e))return e;if(e&&ve.isString(e)&&(n&&!this.responseType||i)){let a=!(t&&t.silentJSONParsing)&&i;try{return JSON.parse(e,this.parseReviver)}catch(u){if(a)throw u.name==="SyntaxError"?gt.from(u,gt.ERR_BAD_RESPONSE,this,null,this.response):u}}return e},"transformResponse")],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ui.classes.FormData,Blob:ui.classes.Blob},validateStatus:o(function(e){return e>=200&&e<300},"validateStatus"),headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ve.forEach(["delete","get","head","post","put","patch"],r=>{O4.headers[r]={}});var P4=O4,s0e=ve.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"]),a0e=o(r=>{let e={},t,n,i;return r&&r.split(`
47
47
  `).forEach(o(function(a){i=a.indexOf(":"),t=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!t||e[t]&&s0e[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)},"parser")),e},"parseHeaders"),LH=Symbol("internals");function ab(r){return r&&String(r).trim().toLowerCase()}o(ab,"normalizeHeader");function j2(r){return r===!1||r==null?r:ve.isArray(r)?r.map(j2):String(r)}o(j2,"normalizeValue");function o0e(r){let e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}o(o0e,"parseTokens");var u0e=o(r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim()),"isValidHeaderName");function d4(r,e,t,n,i){if(ve.isFunction(n))return n.call(this,e,t);if(i&&(e=t),!!ve.isString(e)){if(ve.isString(n))return e.indexOf(n)!==-1;if(ve.isRegExp(n))return n.test(e)}}o(d4,"matchHeaderValue");function c0e(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}o(c0e,"formatHeader");function l0e(r,e){let t=ve.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:o(function(i,s,a){return this[n].call(this,e,i,s,a)},"value"),configurable:!0})})}o(l0e,"buildAccessors");var Ev=class{static{o(this,"AxiosHeaders")}constructor(e){e&&this.set(e)}set(e,t,n){let i=this;function s(u,c,l){let p=ab(c);if(!p)throw new Error("header name must be a non-empty string");let m=ve.findKey(i,p);(!m||i[m]===void 0||l===!0||l===void 0&&i[m]!==!1)&&(i[m||c]=j2(u))}o(s,"setHeader");let a=o((u,c)=>ve.forEach(u,(l,p)=>s(l,p,c)),"setHeaders");if(ve.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ve.isString(e)&&(e=e.trim())&&!u0e(e))a(a0e(e),t);else if(ve.isObject(e)&&ve.isIterable(e)){let u={},c,l;for(let p of e){if(!ve.isArray(p))throw TypeError("Object iterator must return a key-value pair");u[l=p[0]]=(c=u[l])?ve.isArray(c)?[...c,p[1]]:[c,p[1]]:p[1]}a(u,t)}else e!=null&&s(t,e,n);return this}get(e,t){if(e=ab(e),e){let n=ve.findKey(this,e);if(n){let i=this[n];if(!t)return i;if(t===!0)return o0e(i);if(ve.isFunction(t))return t.call(this,i,n);if(ve.isRegExp(t))return t.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=ab(e),e){let n=ve.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||d4(this,this[n],n,t)))}return!1}delete(e,t){let n=this,i=!1;function s(a){if(a=ab(a),a){let u=ve.findKey(n,a);u&&(!t||d4(n,n[u],u,t))&&(delete n[u],i=!0)}}return o(s,"deleteHeader"),ve.isArray(e)?e.forEach(s):s(e),i}clear(e){let t=Object.keys(this),n=t.length,i=!1;for(;n--;){let s=t[n];(!e||d4(this,this[s],s,e,!0))&&(delete this[s],i=!0)}return i}normalize(e){let t=this,n={};return ve.forEach(this,(i,s)=>{let a=ve.findKey(n,s);if(a){t[a]=j2(i),delete t[s];return}let u=e?c0e(s):String(s).trim();u!==s&&delete t[s],t[u]=j2(i),n[u]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return ve.forEach(this,(n,i)=>{n!=null&&n!==!1&&(t[i]=e&&ve.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
48
48
  `)}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,...t){let n=new this(e);return t.forEach(i=>n.set(i)),n}static accessor(e){let n=(this[LH]=this[LH]={accessors:{}}).accessors,i=this.prototype;function s(a){let u=ab(a);n[u]||(l0e(i,a),n[u]=!0)}return o(s,"defineAccessor"),ve.isArray(e)?e.forEach(s):s(e),this}};Ev.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ve.reduceDescriptors(Ev.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:o(()=>r,"get"),set(n){this[t]=n}}});ve.freezeMethods(Ev);var Fa=Ev;function m4(r,e){let t=this||P4,n=e||t,i=Fa.from(n.headers),s=n.data;return ve.forEach(r,o(function(u){s=u.call(t,s,i.normalize(),e?e.status:void 0)},"transform")),i.normalize(),s}o(m4,"transformData");function vz(r){return!!(r&&r.__CANCEL__)}o(vz,"isCancel");function Gp(r,e,t){gt.call(this,r??"canceled",gt.ERR_CANCELED,e,t),this.name="CanceledError"}o(Gp,"CanceledError");ve.inherits(Gp,gt,{__CANCEL__:!0});function wv(r,e,t){let n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new gt("Request failed with status code "+t.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}o(wv,"settle");function f0e(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}o(f0e,"isAbsoluteURL");function p0e(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}o(p0e,"combineURLs");function B4(r,e,t){let n=!f0e(e);return r&&(n||t==!1)?p0e(r,e):e}o(B4,"buildFullPath");var q2="1.12.2";function yz(r){let e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}o(yz,"parseProtocol");var h0e=/^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;function d0e(r,e,t){let n=t&&t.Blob||ui.classes.Blob,i=yz(r);if(e===void 0&&n&&(e=!0),i==="data"){r=i.length?r.slice(i.length+1):r;let s=h0e.exec(r);if(!s)throw new gt("Invalid URL",gt.ERR_INVALID_URL);let a=s[1],u=s[2],c=s[3],l=Buffer.from(decodeURIComponent(c),u?"base64":"utf8");if(e){if(!n)throw new gt("Blob is not supported",gt.ERR_NOT_SUPPORT);return new n([l],{type:a})}return l}throw new gt("Unsupported protocol "+i,gt.ERR_NOT_SUPPORT)}o(d0e,"fromDataURI");var g4=Symbol("internals"),w4=class extends Kp.default.Transform{static{o(this,"AxiosTransformStream")}constructor(e){e=ve.toFlatObject(e,{maxRate:0,chunkSize:64*1024,minChunkSize:100,timeWindow:500,ticksRate:2,samplesCount:15},null,(n,i)=>!ve.isUndefined(i[n])),super({readableHighWaterMark:e.chunkSize});let t=this[g4]={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"&&(t.isCaptured||(t.isCaptured=!0))})}_read(e){let t=this[g4];return t.onReadCallback&&t.onReadCallback(),super._read(e)}_transform(e,t,n){let i=this[g4],s=i.maxRate,a=this.readableHighWaterMark,u=i.timeWindow,c=1e3/u,l=s/c,p=i.minChunkSize!==!1?Math.max(i.minChunkSize,l*.01):0,m=o((y,v)=>{let b=Buffer.byteLength(y);i.bytesSeen+=b,i.bytes+=b,i.isCaptured&&this.emit("progress",i.bytesSeen),this.push(y)?process.nextTick(v):i.onReadCallback=()=>{i.onReadCallback=null,process.nextTick(v)}},"pushChunk"),g=o((y,v)=>{let b=Buffer.byteLength(y),x=null,E=a,N,w=0;if(s){let C=Date.now();(!i.ts||(w=C-i.ts)>=u)&&(i.ts=C,N=l-i.bytes,i.bytes=N<0?-N:0,w=0),N=l-i.bytes}if(s){if(N<=0)return setTimeout(()=>{v(null,y)},u-w);N<E&&(E=N)}E&&b>E&&b-E>p&&(x=y.subarray(E),y=y.subarray(0,E)),m(y,x?()=>{process.nextTick(v,null,x)}:v)},"transformChunk");g(e,o(function y(v,b){if(v)return n(v);b?g(b,y):n(null)},"transformNextChunk"))}},kH=w4,{asyncIterator:VH}=Symbol,m0e=o(async function*(r){r.stream?yield*r.stream():r.arrayBuffer?yield await r.arrayBuffer():r[VH]?yield*r[VH]():yield r},"readBlob"),Sz=m0e,g0e=ui.ALPHABET.ALPHA_DIGIT+"-_",ob=typeof TextEncoder=="function"?new TextEncoder:new tz.default.TextEncoder,hm=`\r
@@ -105,7 +105,7 @@ ${e.join(`
105
105
  `,XAe=xA.encode(pg),WAe=2,JAe=class{static{o(this,"FormDataPart")}constructor(e,t){let{escapeName:n}=this.constructor,i=ne.isString(t),s=`Content-Disposition: form-data; name="${n(e)}"${!i&&t.name?`; filename="${n(t.name)}"`:""}${pg}`;i?t=xA.encode(String(t).replace(/\r?\n|\r\n?/g,pg)):s+=`Content-Type: ${t.type||"application/octet-stream"}${pg}`,this.headers=xA.encode(s+pg),this.contentLength=i?t.byteLength:t.size,this.size=this.headers.byteLength+this.contentLength+WAe,this.name=e,this.value=t}async*encode(){yield this.headers;let{value:e}=this;ne.isTypedArray(e)?yield e:yield*m_(e),yield XAe}static escapeName(e){return String(e).replace(/[\r\n"]/g,t=>({"\r":"%0D","\n":"%0A",'"':"%22"})[t])}},QAe=o((r,e,t)=>{let{tag:n="form-data-boundary",size:i=25,boundary:s=n+"-"+Kr.generateString(i,GAe)}=t||{};if(!ne.isFormData(r))throw TypeError("FormData instance required");if(s.length<1||s.length>70)throw Error("boundary must be 10-70 characters long");let a=xA.encode("--"+s+pg),u=xA.encode("--"+s+"--"+pg),c=u.byteLength,l=Array.from(r.entries()).map(([m,g])=>{let y=new JAe(m,g);return c+=y.size,y});c+=a.byteLength*l.length,c=ne.toFiniteNumber(c);let p={"Content-Type":`multipart/form-data; boundary=${s}`};return Number.isFinite(c)&&(p["Content-Length"]=c),e&&e(p),pZ.Readable.from((async function*(){for(let m of l)yield a,yield*m.encode();yield u})())},"formDataToStream"),hZ=QAe;var dZ=Dr(require("stream"),1);var YAe=class extends dZ.default.Transform{static{o(this,"ZlibHeaderTransformStream")}__transform(e,t,n){this.push(e),n()}_transform(e,t,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,t)}this.__transform(e,t,n)}},mZ=YAe;var ZAe=o((r,e)=>ne.isAsyncFn(r)?function(...t){let n=t.pop();r.apply(this,t).then(i=>{try{e?n(null,...e(i)):n(null,i)}catch(s){n(s)}},n)}:r,"callbackify"),gZ=ZAe;function eNe(r,e){r=r||10;let t=new Array(r),n=new Array(r),i=0,s=0,a;return e=e!==void 0?e:1e3,o(function(c){let l=Date.now(),p=n[s];a||(a=l),t[i]=c,n[i]=l;let m=s,g=0;for(;m!==i;)g+=t[m++],m=m%r;if(i=(i+1)%r,i===s&&(s=(s+1)%r),l-a<e)return;let y=p&&l-p;return y?Math.round(g*1e3/y):void 0},"push")}o(eNe,"speedometer");var vZ=eNe;function tNe(r,e){let t=0,n=1e3/e,i,s,a=o((l,p=Date.now())=>{t=p,i=null,s&&(clearTimeout(s),s=null),r(...l)},"invoke");return[o((...l)=>{let p=Date.now(),m=p-t;m>=n?a(l,p):(i=l,s||(s=setTimeout(()=>{s=null,a(i)},n-m)))},"throttled"),o(()=>i&&a(i),"flush")]}o(tNe,"throttle");var yZ=tNe;var Vf=o((r,e,t=3)=>{let n=0,i=vZ(50,250);return yZ(s=>{let a=s.loaded,u=s.lengthComputable?s.total:void 0,c=a-n,l=i(c),p=a<=u;n=a;let m={loaded:a,total:u,progress:u?a/u:void 0,bytes:c,rate:l||void 0,estimated:l&&u&&p?(u-a)/l:void 0,event:s,lengthComputable:u!=null,[e?"download":"upload"]:!0};r(m)},t)},"progressEventReducer"),TS=o((r,e)=>{let t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},"progressEventDecorator"),RS=o(r=>(...e)=>ne.asap(()=>r(...e)),"asyncDecorator");function h8(r){if(!r||typeof r!="string"||!r.startsWith("data:"))return 0;let e=r.indexOf(",");if(e<0)return 0;let t=r.slice(5,e),n=r.slice(e+1);if(/;base64/i.test(t)){let s=n.length,a=n.length;for(let g=0;g<a;g++)if(n.charCodeAt(g)===37&&g+2<a){let y=n.charCodeAt(g+1),v=n.charCodeAt(g+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(s-=2,g+=2)}let u=0,c=a-1,l=o(g=>g>=2&&n.charCodeAt(g-2)===37&&n.charCodeAt(g-1)===51&&(n.charCodeAt(g)===68||n.charCodeAt(g)===100),"tailIsPct3D");c>=0&&(n.charCodeAt(c)===61?(u++,c--):l(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||l(c))&&u++;let m=Math.floor(s/4)*3-(u||0);return m>0?m:0}return Buffer.byteLength(n,"utf8")}o(h8,"estimateDataURLDecodedBytes");var SZ={flush:Uf.default.constants.Z_SYNC_FLUSH,finishFlush:Uf.default.constants.Z_SYNC_FLUSH},rNe={flush:Uf.default.constants.BROTLI_OPERATION_FLUSH,finishFlush:Uf.default.constants.BROTLI_OPERATION_FLUSH},xZ=ne.isFunction(Uf.default.createBrotliDecompress),{http:nNe,https:iNe}=IZ.default,sNe=/https:?/,bZ=Kr.protocols.map(r=>r+":"),wZ=o((r,[e,t])=>(r.on("end",t).on("error",t),e),"flushOnFinish"),aNe=class{static{o(this,"Http2Sessions")}constructor(){this.sessions=Object.create(null)}getSession(e,t){t=Object.assign({sessionTimeout:1e3},t);let n=this.sessions[e];if(n){let p=n.length;for(let m=0;m<p;m++){let[g,y]=n[m];if(!g.destroyed&&!g.closed&&m8.default.isDeepStrictEqual(y,t))return g}}let i=d8.default.connect(e,t),s,a=o(()=>{if(s)return;s=!0;let p=n,m=p.length,g=m;for(;g--;)if(p[g][0]===i){m===1?delete this.sessions[e]:p.splice(g,1);return}},"removeSession"),u=i.request,{sessionTimeout:c}=t;if(c!=null){let p,m=0;i.request=function(){let g=u.apply(this,arguments);return m++,p&&(clearTimeout(p),p=null),g.once("close",()=>{--m||(p=setTimeout(()=>{p=null,a()},c))}),g}}i.once("close",a);let l=[i,t];return n?n.push(l):n=this.sessions[e]=[l],i}},oNe=new aNe;function uNe(r,e){r.beforeRedirects.proxy&&r.beforeRedirects.proxy(r),r.beforeRedirects.config&&r.beforeRedirects.config(r,e)}o(uNe,"dispatchBeforeRedirect");function RZ(r,e,t){let n=e;if(!n&&n!==!1){let i=EZ.default.getProxyForUrl(t);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 s=Buffer.from(n.auth,"utf8").toString("base64");r.headers["Proxy-Authorization"]="Basic "+s}r.headers.host=r.hostname+(r.port?":"+r.port:"");let i=n.hostname||n.host;r.hostname=i,r.host=i,r.port=n.port,r.path=t,n.protocol&&(r.protocol=n.protocol.includes(":")?n.protocol:`${n.protocol}:`)}r.beforeRedirects.proxy=o(function(s){RZ(s,e,s.href)},"beforeRedirect")}o(RZ,"setProxy");var cNe=typeof process<"u"&&ne.kindOf(process)==="process",lNe=o(r=>new Promise((e,t)=>{let n,i,s=o((c,l)=>{i||(i=!0,n&&n(c,l))},"done"),a=o(c=>{s(c),e(c)},"_resolve"),u=o(c=>{s(c,!0),t(c)},"_reject");r(a,u,c=>n=c).catch(u)}),"wrapAsync"),fNe=o(({address:r,family:e})=>{if(!ne.isString(r))throw TypeError("address must be a string");return{address:r,family:e||(r.indexOf(".")<0?6:4)}},"resolveFamily"),CZ=o((r,e)=>fNe(ne.isObject(r)?r:{address:r,family:e}),"buildAddressEntry"),pNe={request(r,e){let t=r.protocol+"//"+r.hostname+":"+(r.port||80),{http2Options:n,headers:i}=r,s=oNe.getSession(t,n),{HTTP2_HEADER_SCHEME:a,HTTP2_HEADER_METHOD:u,HTTP2_HEADER_PATH:c,HTTP2_HEADER_STATUS:l}=d8.default.constants,p={[a]:r.protocol.replace(":",""),[u]:r.method,[c]:r.path};ne.forEach(i,(g,y)=>{y.charAt(0)!==":"&&(p[y]=g)});let m=s.request(p);return m.once("response",g=>{let y=m;g=Object.assign({},g);let v=g[l];delete g[l],y.headers=g,y.statusCode=+v,e(y)}),m}},DZ=cNe&&o(function(e){return lNe(o(async function(n,i,s){let{data:a,lookup:u,family:c,httpVersion:l=1,http2Options:p}=e,{responseType:m,responseEncoding:g}=e,y=e.method.toUpperCase(),v,b=!1,x;if(l=+l,Number.isNaN(l))throw TypeError(`Invalid protocol version: '${e.httpVersion}' is not a number`);if(l!==1&&l!==2)throw TypeError(`Unsupported protocol version '${l}'`);let E=l===2;if(u){let xe=gZ(u,ie=>ne.isArray(ie)?ie:[ie]);u=o((ie,De,Ze)=>{xe(ie,De,(We,it,F)=>{if(We)return Ze(We);let O=ne.isArray(it)?it.map(oe=>CZ(oe)):[CZ(it,F)];De.all?Ze(We,O):Ze(We,O[0].address,O[0].family)})},"lookup")}let N=new TZ.EventEmitter;function w(xe){try{N.emit("abort",!xe||xe.type?new bo(null,e,x):xe)}catch(ie){console.warn("emit error",ie)}}o(w,"abort"),N.once("abort",i);let C=o(()=>{e.cancelToken&&e.cancelToken.unsubscribe(w),e.signal&&e.signal.removeEventListener("abort",w),N.removeAllListeners()},"onFinished");(e.cancelToken||e.signal)&&(e.cancelToken&&e.cancelToken.subscribe(w),e.signal&&(e.signal.aborted?w():e.signal.addEventListener("abort",w))),s((xe,ie)=>{if(v=!0,ie){b=!0,C();return}let{data:De}=xe;if(De instanceof jf.default.Readable||De instanceof jf.default.Duplex){let Ze=jf.default.finished(De,()=>{Ze(),C()})}else C()});let A=lg(e.baseURL,e.url,e.allowAbsoluteUrls),R=new URL(A,Kr.hasBrowserEnv?Kr.origin:void 0),M=R.protocol||bZ[0];if(M==="data:"){if(e.maxContentLength>-1){let ie=String(e.url||A||"");if(h8(ie)>e.maxContentLength)return i(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e))}let xe;if(y!=="GET")return hl(n,i,{status:405,statusText:"method not allowed",headers:{},config:e});try{xe=l8(e.url,m==="blob",{Blob:e.env&&e.env.Blob})}catch(ie){throw at.from(ie,at.ERR_BAD_REQUEST,e)}return m==="text"?(xe=xe.toString(g),(!g||g==="utf8")&&(xe=ne.stripBOM(xe))):m==="stream"&&(xe=jf.default.Readable.from(xe)),hl(n,i,{data:xe,status:200,statusText:"OK",headers:new ri,config:e})}if(bZ.indexOf(M)===-1)return i(new at("Unsupported protocol "+M,at.ERR_BAD_REQUEST,e));let _=ri.from(e.headers).normalize();_.set("User-Agent","axios/"+fg,!1);let{onUploadProgress:H,onDownloadProgress:z}=e,K=e.maxRate,X,ye;if(ne.isSpecCompliantForm(a)){let xe=_.getContentType(/boundary=([-_\w\d]{10,70})/i);a=hZ(a,ie=>{_.set(ie)},{tag:`axios-${fg}-boundary`,boundary:xe&&xe[1]||void 0})}else if(ne.isFormData(a)&&ne.isFunction(a.getHeaders)){if(_.set(a.getHeaders()),!_.hasContentLength())try{let xe=await m8.default.promisify(a.getLength).call(a);Number.isFinite(xe)&&xe>=0&&_.setContentLength(xe)}catch{}}else if(ne.isBlob(a)||ne.isFile(a))a.size&&_.setContentType(a.type||"application/octet-stream"),_.setContentLength(a.size||0),a=jf.default.Readable.from(m_(a));else if(a&&!ne.isStream(a)){if(!Buffer.isBuffer(a))if(ne.isArrayBuffer(a))a=Buffer.from(new Uint8Array(a));else if(ne.isString(a))a=Buffer.from(a,"utf-8");else return i(new at("Data after transformation must be a string, an ArrayBuffer, a Buffer, or a Stream",at.ERR_BAD_REQUEST,e));if(_.setContentLength(a.length,!1),e.maxBodyLength>-1&&a.length>e.maxBodyLength)return i(new at("Request body larger than maxBodyLength limit",at.ERR_BAD_REQUEST,e))}let fe=ne.toFiniteNumber(_.getContentLength());ne.isArray(K)?(X=K[0],ye=K[1]):X=ye=K,a&&(H||X)&&(ne.isStream(a)||(a=jf.default.Readable.from(a,{objectMode:!1})),a=jf.default.pipeline([a,new p8({maxRate:ne.toFiniteNumber(X)})],ne.noop),H&&a.on("progress",wZ(a,TS(fe,Vf(RS(H),!1,3)))));let ce;if(e.auth){let xe=e.auth.username||"",ie=e.auth.password||"";ce=xe+":"+ie}if(!ce&&R.username){let xe=R.username,ie=R.password;ce=xe+":"+ie}ce&&_.delete("authorization");let ee;try{ee=cg(R.pathname+R.search,e.params,e.paramsSerializer).replace(/^\?/,"")}catch(xe){let ie=new Error(xe.message);return ie.config=e,ie.url=e.url,ie.exists=!0,i(ie)}_.set("Accept-Encoding","gzip, compress, deflate"+(xZ?", br":""),!1);let pe={path:ee,method:y,headers:_.toJSON(),agents:{http:e.httpAgent,https:e.httpsAgent},auth:ce,protocol:M,family:c,beforeRedirect:uNe,beforeRedirects:{},http2Options:p};!ne.isUndefined(u)&&(pe.lookup=u),e.socketPath?pe.socketPath=e.socketPath:(pe.hostname=R.hostname.startsWith("[")?R.hostname.slice(1,-1):R.hostname,pe.port=R.port,RZ(pe,e.proxy,M+"//"+R.hostname+(R.port?":"+R.port:"")+pe.path));let Ce,Ye=sNe.test(pe.protocol);if(pe.agent=Ye?e.httpsAgent:e.httpAgent,E?Ce=pNe:e.transport?Ce=e.transport:e.maxRedirects===0?Ce=Ye?NZ.default:AZ.default:(e.maxRedirects&&(pe.maxRedirects=e.maxRedirects),e.beforeRedirect&&(pe.beforeRedirects.config=e.beforeRedirect),Ce=Ye?iNe:nNe),e.maxBodyLength>-1?pe.maxBodyLength=e.maxBodyLength:pe.maxBodyLength=1/0,e.insecureHTTPParser&&(pe.insecureHTTPParser=e.insecureHTTPParser),x=Ce.request(pe,o(function(ie){if(x.destroyed)return;let De=[ie],Ze=ne.toFiniteNumber(ie.headers["content-length"]);if(z||ye){let O=new p8({maxRate:ne.toFiniteNumber(ye)});z&&O.on("progress",wZ(O,TS(Ze,Vf(RS(z),!0,3)))),De.push(O)}let We=ie,it=ie.req||x;if(e.decompress!==!1&&ie.headers["content-encoding"])switch((y==="HEAD"||ie.statusCode===204)&&delete ie.headers["content-encoding"],(ie.headers["content-encoding"]||"").toLowerCase()){case"gzip":case"x-gzip":case"compress":case"x-compress":De.push(Uf.default.createUnzip(SZ)),delete ie.headers["content-encoding"];break;case"deflate":De.push(new mZ),De.push(Uf.default.createUnzip(SZ)),delete ie.headers["content-encoding"];break;case"br":xZ&&(De.push(Uf.default.createBrotliDecompress(rNe)),delete ie.headers["content-encoding"])}We=De.length>1?jf.default.pipeline(De,ne.noop):De[0];let F={status:ie.statusCode,statusText:ie.statusMessage,headers:new ri(ie.headers),config:e,request:it};if(m==="stream")F.data=We,hl(n,i,F);else{let O=[],oe=0;We.on("data",o(function(Ge){O.push(Ge),oe+=Ge.length,e.maxContentLength>-1&&oe>e.maxContentLength&&(b=!0,We.destroy(),w(new at("maxContentLength size of "+e.maxContentLength+" exceeded",at.ERR_BAD_RESPONSE,e,it)))},"handleStreamData")),We.on("aborted",o(function(){if(b)return;let Ge=new at("stream has been aborted",at.ERR_BAD_RESPONSE,e,it);We.destroy(Ge),i(Ge)},"handlerStreamAborted")),We.on("error",o(function(Ge){x.destroyed||i(at.from(Ge,null,e,it))},"handleStreamError")),We.on("end",o(function(){try{let Ge=O.length===1?O[0]:Buffer.concat(O);m!=="arraybuffer"&&(Ge=Ge.toString(g),(!g||g==="utf8")&&(Ge=ne.stripBOM(Ge))),F.data=Ge}catch(Ge){return i(at.from(Ge,null,e,F.request,F))}hl(n,i,F)},"handleStreamEnd"))}N.once("abort",O=>{We.destroyed||(We.emit("error",O),We.destroy())})},"handleResponse")),N.once("abort",xe=>{x.close?x.close():x.destroy(xe)}),x.on("error",o(function(ie){i(at.from(ie,null,e,x))},"handleRequestError")),x.on("socket",o(function(ie){ie.setKeepAlive(!0,1e3*60)},"handleRequestSocket")),e.timeout){let xe=parseInt(e.timeout,10);if(Number.isNaN(xe)){w(new at("error trying to parse `config.timeout` to int",at.ERR_BAD_OPTION_VALUE,e,x));return}x.setTimeout(xe,o(function(){if(v)return;let De=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",Ze=e.transitional||NS;e.timeoutErrorMessage&&(De=e.timeoutErrorMessage),w(new at(De,Ze.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,e,x))},"handleRequestTimeout"))}else x.setTimeout(0);if(ne.isStream(a)){let xe=!1,ie=!1;a.on("end",()=>{xe=!0}),a.once("error",De=>{ie=!0,x.destroy(De)}),a.on("close",()=>{!xe&&!ie&&w(new bo("Request stream has been aborted",e,x))}),a.pipe(x)}else a&&x.write(a),x.end()},"dispatchHttpRequest"))},"httpAdapter");var _Z=Kr.hasStandardBrowserEnv?((r,e)=>t=>(t=new URL(t,Kr.origin),r.protocol===t.protocol&&r.host===t.host&&(e||r.port===t.port)))(new URL(Kr.origin),Kr.navigator&&/(msie|trident)/i.test(Kr.navigator.userAgent)):()=>!0;var OZ=Kr.hasStandardBrowserEnv?{write(r,e,t,n,i,s,a){if(typeof document>"u")return;let u=[`${r}=${encodeURIComponent(e)}`];ne.isNumber(t)&&u.push(`expires=${new Date(t).toUTCString()}`),ne.isString(n)&&u.push(`path=${n}`),ne.isString(i)&&u.push(`domain=${i}`),s===!0&&u.push("secure"),ne.isString(a)&&u.push(`SameSite=${a}`),document.cookie=u.join("; ")},read(r){if(typeof document>"u")return null;let e=document.cookie.match(new RegExp("(?:^|; )"+r+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(r){this.write(r,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};var PZ=o(r=>r instanceof ri?{...r}:r,"headersToObject");function Xu(r,e){e=e||{};let t={};function n(l,p,m,g){return ne.isPlainObject(l)&&ne.isPlainObject(p)?ne.merge.call({caseless:g},l,p):ne.isPlainObject(p)?ne.merge({},p):ne.isArray(p)?p.slice():p}o(n,"getMergedValue");function i(l,p,m,g){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l,m,g)}else return n(l,p,m,g)}o(i,"mergeDeepProperties");function s(l,p){if(!ne.isUndefined(p))return n(void 0,p)}o(s,"valueFromConfig2");function a(l,p){if(ne.isUndefined(p)){if(!ne.isUndefined(l))return n(void 0,l)}else return n(void 0,p)}o(a,"defaultToConfig2");function u(l,p,m){if(m in e)return n(l,p);if(m in r)return n(void 0,l)}o(u,"mergeDirectKeys");let c={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:u,headers:o((l,p,m)=>i(PZ(l),PZ(p),m,!0),"headers")};return ne.forEach(Object.keys({...r,...e}),o(function(p){let m=c[p]||i,g=m(r[p],e[p],p);ne.isUndefined(g)&&m!==u||(t[p]=g)},"computeConfigValue")),t}o(Xu,"mergeConfig");var g_=o((r=>{let e=Xu({},r),{data:t,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:a,auth:u}=e;if(e.headers=a=ri.from(a),e.url=cg(lg(e.baseURL,e.url,e.allowAbsoluteUrls),r.params,r.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),ne.isFormData(t)){if(Kr.hasStandardBrowserEnv||Kr.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(ne.isFunction(t.getHeaders)){let c=t.getHeaders(),l=["content-type","content-length"];Object.entries(c).forEach(([p,m])=>{l.includes(p.toLowerCase())&&a.set(p,m)})}}if(Kr.hasStandardBrowserEnv&&(n&&ne.isFunction(n)&&(n=n(e)),n||n!==!1&&_Z(e.url))){let c=i&&s&&OZ.read(s);c&&a.set(i,c)}return e}),"default");var hNe=typeof XMLHttpRequest<"u",BZ=hNe&&function(r){return new Promise(o(function(t,n){let i=g_(r),s=i.data,a=ri.from(i.headers).normalize(),{responseType:u,onUploadProgress:c,onDownloadProgress:l}=i,p,m,g,y,v;function b(){y&&y(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(p),i.signal&&i.signal.removeEventListener("abort",p)}o(b,"done");let x=new XMLHttpRequest;x.open(i.method.toUpperCase(),i.url,!0),x.timeout=i.timeout;function E(){if(!x)return;let w=ri.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),A={data:!u||u==="text"||u==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:w,config:r,request:x};hl(o(function(M){t(M),b()},"_resolve"),o(function(M){n(M),b()},"_reject"),A),x=null}o(E,"onloadend"),"onloadend"in x?x.onloadend=E:x.onreadystatechange=o(function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(E)},"handleLoad"),x.onabort=o(function(){x&&(n(new at("Request aborted",at.ECONNABORTED,r,x)),x=null)},"handleAbort"),x.onerror=o(function(C){let A=C&&C.message?C.message:"Network Error",R=new at(A,at.ERR_NETWORK,r,x);R.event=C||null,n(R),x=null},"handleError"),x.ontimeout=o(function(){let C=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded",A=i.transitional||NS;i.timeoutErrorMessage&&(C=i.timeoutErrorMessage),n(new at(C,A.clarifyTimeoutError?at.ETIMEDOUT:at.ECONNABORTED,r,x)),x=null},"handleTimeout"),s===void 0&&a.setContentType(null),"setRequestHeader"in x&&ne.forEach(a.toJSON(),o(function(C,A){x.setRequestHeader(A,C)},"setRequestHeader")),ne.isUndefined(i.withCredentials)||(x.withCredentials=!!i.withCredentials),u&&u!=="json"&&(x.responseType=i.responseType),l&&([g,v]=Vf(l,!0),x.addEventListener("progress",g)),c&&x.upload&&([m,y]=Vf(c),x.upload.addEventListener("progress",m),x.upload.addEventListener("loadend",y)),(i.cancelToken||i.signal)&&(p=o(w=>{x&&(n(!w||w.type?new bo(null,r,x):w),x.abort(),x=null)},"onCanceled"),i.cancelToken&&i.cancelToken.subscribe(p),i.signal&&(i.signal.aborted?p():i.signal.addEventListener("abort",p)));let N=SA(i.url);if(N&&Kr.protocols.indexOf(N)===-1){n(new at("Unsupported protocol "+N+":",at.ERR_BAD_REQUEST,r));return}x.send(s||null)},"dispatchXhrRequest"))};var dNe=o((r,e)=>{let{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,i,s=o(function(l){if(!i){i=!0,u();let p=l instanceof Error?l:this.reason;n.abort(p instanceof at?p:new bo(p instanceof Error?p.message:p))}},"onabort"),a=e&&setTimeout(()=>{a=null,s(new at(`timeout ${e} of ms exceeded`,at.ETIMEDOUT))},e),u=o(()=>{r&&(a&&clearTimeout(a),a=null,r.forEach(l=>{l.unsubscribe?l.unsubscribe(s):l.removeEventListener("abort",s)}),r=null)},"unsubscribe");r.forEach(l=>l.addEventListener("abort",s));let{signal:c}=n;return c.unsubscribe=()=>ne.asap(u),c}},"composeSignals"),FZ=dNe;var mNe=o(function*(r,e){let t=r.byteLength;if(!e||t<e){yield r;return}let n=0,i;for(;n<t;)i=n+e,yield r.slice(n,i),n=i},"streamChunk"),gNe=o(async function*(r,e){for await(let t of vNe(r))yield*mNe(t,e)},"readBytes"),vNe=o(async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}let e=r.getReader();try{for(;;){let{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},"readStream"),g8=o((r,e,t,n)=>{let i=gNe(r,e),s=0,a,u=o(c=>{a||(a=!0,n&&n(c))},"_onFinish");return new ReadableStream({async pull(c){try{let{done:l,value:p}=await i.next();if(l){u(),c.close();return}let m=p.byteLength;if(t){let g=s+=m;t(g)}c.enqueue(new Uint8Array(p))}catch(l){throw u(l),l}},cancel(c){return u(c),i.return()}},{highWaterMark:2})},"trackStream");var LZ=64*1024,{isFunction:v_}=ne,yNe=(({Request:r,Response:e})=>({Request:r,Response:e}))(ne.global),{ReadableStream:kZ,TextEncoder:VZ}=ne.global,jZ=o((r,...e)=>{try{return!!r(...e)}catch{return!1}},"test"),SNe=o(r=>{r=ne.merge.call({skipUndefined:!0},yNe,r);let{fetch:e,Request:t,Response:n}=r,i=e?v_(e):typeof fetch=="function",s=v_(t),a=v_(n);if(!i)return!1;let u=i&&v_(kZ),c=i&&(typeof VZ=="function"?(v=>b=>v.encode(b))(new VZ):async v=>new Uint8Array(await new t(v).arrayBuffer())),l=s&&u&&jZ(()=>{let v=!1,b=new t(Kr.origin,{body:new kZ,method:"POST",get duplex(){return v=!0,"half"}}).headers.has("Content-Type");return v&&!b}),p=a&&u&&jZ(()=>ne.isReadableStream(new n("").body)),m={stream:p&&(v=>v.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(v=>{!m[v]&&(m[v]=(b,x)=>{let E=b&&b[v];if(E)return E.call(b);throw new at(`Response type '${v}' is not supported`,at.ERR_NOT_SUPPORT,x)})});let g=o(async v=>{if(v==null)return 0;if(ne.isBlob(v))return v.size;if(ne.isSpecCompliantForm(v))return(await new t(Kr.origin,{method:"POST",body:v}).arrayBuffer()).byteLength;if(ne.isArrayBufferView(v)||ne.isArrayBuffer(v))return v.byteLength;if(ne.isURLSearchParams(v)&&(v=v+""),ne.isString(v))return(await c(v)).byteLength},"getBodyLength"),y=o(async(v,b)=>{let x=ne.toFiniteNumber(v.getContentLength());return x??g(b)},"resolveBodyLength");return async v=>{let{url:b,method:x,data:E,signal:N,cancelToken:w,timeout:C,onDownloadProgress:A,onUploadProgress:R,responseType:M,headers:_,withCredentials:H="same-origin",fetchOptions:z}=g_(v),K=e||fetch;M=M?(M+"").toLowerCase():"text";let X=FZ([N,w&&w.toAbortSignal()],C),ye=null,fe=X&&X.unsubscribe&&(()=>{X.unsubscribe()}),ce;try{if(R&&l&&x!=="get"&&x!=="head"&&(ce=await y(_,E))!==0){let ie=new t(b,{method:"POST",body:E,duplex:"half"}),De;if(ne.isFormData(E)&&(De=ie.headers.get("content-type"))&&_.setContentType(De),ie.body){let[Ze,We]=TS(ce,Vf(RS(R)));E=g8(ie.body,LZ,Ze,We)}}ne.isString(H)||(H=H?"include":"omit");let ee=s&&"credentials"in t.prototype,pe={...z,signal:X,method:x.toUpperCase(),headers:_.normalize().toJSON(),body:E,duplex:"half",credentials:ee?H:void 0};ye=s&&new t(b,pe);let Ce=await(s?K(ye,z):K(b,pe)),Ye=p&&(M==="stream"||M==="response");if(p&&(A||Ye&&fe)){let ie={};["status","statusText","headers"].forEach(it=>{ie[it]=Ce[it]});let De=ne.toFiniteNumber(Ce.headers.get("content-length")),[Ze,We]=A&&TS(De,Vf(RS(A),!0))||[];Ce=new n(g8(Ce.body,LZ,Ze,()=>{We&&We(),fe&&fe()}),ie)}M=M||"text";let xe=await m[ne.findKey(m,M)||"text"](Ce,v);return!Ye&&fe&&fe(),await new Promise((ie,De)=>{hl(ie,De,{data:xe,headers:ri.from(Ce.headers),status:Ce.status,statusText:Ce.statusText,config:v,request:ye})})}catch(ee){throw fe&&fe(),ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new at("Network Error",at.ERR_NETWORK,v,ye),{cause:ee.cause||ee}):at.from(ee,ee&&ee.code,v,ye)}}},"factory"),xNe=new Map,v8=o(r=>{let e=r&&r.env||{},{fetch:t,Request:n,Response:i}=e,s=[n,i,t],a=s.length,u=a,c,l,p=xNe;for(;u--;)c=s[u],l=p.get(c),l===void 0&&p.set(c,l=u?new Map:SNe(e)),p=l;return l},"getFetch"),m7e=v8();var y8={http:DZ,xhr:BZ,fetch:{get:v8}};ne.forEach(y8,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});var UZ=o(r=>`- ${r}`,"renderReason"),wNe=o(r=>ne.isFunction(r)||r===null||r===!1,"isResolvedHandle");function CNe(r,e){r=ne.isArray(r)?r:[r];let{length:t}=r,n,i,s={};for(let a=0;a<t;a++){n=r[a];let u;if(i=n,!wNe(n)&&(i=y8[(u=String(n)).toLowerCase()],i===void 0))throw new at(`Unknown adapter '${u}'`);if(i&&(ne.isFunction(i)||(i=i.get(e))))break;s[u||"#"+a]=i}if(!i){let a=Object.entries(s).map(([c,l])=>`adapter ${c} `+(l===!1?"is not supported by the environment":"is not available in the build")),u=t?a.length>1?`since :
106
106
  `+a.map(UZ).join(`
107
107
  `):" "+UZ(a[0]):"as no adapter specified";throw new at("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return i}o(CNe,"getAdapter");var y_={getAdapter:CNe,adapters:y8};function S8(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new bo(null,r)}o(S8,"throwIfCancellationRequested");function S_(r){return S8(r),r.headers=ri.from(r.headers),r.data=vA.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),y_.getAdapter(r.adapter||IS.adapter,r)(r).then(o(function(n){return S8(r),n.data=vA.call(r,r.transformResponse,n),n.headers=ri.from(n.headers),n},"onAdapterResolution"),o(function(n){return yA(n)||(S8(r),n&&n.response&&(n.response.data=vA.call(r,r.transformResponse,n.response),n.response.headers=ri.from(n.response.headers))),Promise.reject(n)},"onAdapterRejection"))}o(S_,"dispatchRequest");var x_={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{x_[r]=o(function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r},"validator")});var MZ={};x_.transitional=o(function(e,t,n){function i(s,a){return"[Axios v"+fg+"] Transitional option '"+s+"'"+a+(n?". "+n:"")}return o(i,"formatMessage"),(s,a,u)=>{if(e===!1)throw new at(i(a," has been removed"+(t?" in "+t:"")),at.ERR_DEPRECATED);return t&&!MZ[a]&&(MZ[a]=!0,console.warn(i(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(s,a,u):!0}},"transitional");x_.spelling=o(function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)},"spelling");function ENe(r,e,t){if(typeof r!="object")throw new at("options must be an object",at.ERR_BAD_OPTION_VALUE);let n=Object.keys(r),i=n.length;for(;i-- >0;){let s=n[i],a=e[s];if(a){let u=r[s],c=u===void 0||a(u,s,r);if(c!==!0)throw new at("option "+s+" must be "+c,at.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new at("Unknown option "+s,at.ERR_BAD_OPTION)}}o(ENe,"assertOptions");var bA={assertOptions:ENe,validators:x_};var dl=bA.validators,b_=class{static{o(this,"Axios")}constructor(e){this.defaults=e||{},this.interceptors={request:new e8,response:new e8}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;let s=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?s&&!String(n.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(n.stack+=`
108
- `+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Xu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&bA.assertOptions(n,{silentJSONParsing:dl.transitional(dl.boolean),forcedJSONParsing:dl.transitional(dl.boolean),clarifyTimeoutError:dl.transitional(dl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:bA.assertOptions(i,{encode:dl.function,serialize:dl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bA.assertOptions(t,{baseUrl:dl.spelling("baseURL"),withXsrfToken:dl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ri.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[S_.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let y=t;for(;m<g;){let v=u[m++],b=u[m++];try{y=v(y)}catch(x){b.call(this,x);break}}try{p=S_.call(this,y)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Xu(this.defaults,e);let t=lg(e.baseURL,e.url,e.allowAbsoluteUrls);return cg(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){b_.prototype[e]=function(t,n){return this.request(Xu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Xu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),b_.prototype[e]=t(),b_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var wA=b_;var ANe=class qZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new bo(s,a,u),t(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 t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new qZ(o(function(i){e=i},"executor")),cancel:e}}},HZ=ANe;function x8(r){return o(function(t){return r.apply(null,t)},"wrap")}o(x8,"spread");function b8(r){return ne.isObject(r)&&r.isAxiosError===!0}o(b8,"isAxiosError");var w8={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(w8).forEach(([r,e])=>{w8[e]=r});var zZ=w8;function KZ(r){let e=new wA(r),t=pA(wA.prototype.request,e);return ne.extend(t,wA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return KZ(Xu(r,i))},"create"),t}o(KZ,"createInstance");var _i=KZ(IS);_i.Axios=wA;_i.CanceledError=bo;_i.CancelToken=HZ;_i.isCancel=yA;_i.VERSION=fg;_i.toFormData=Ad;_i.AxiosError=at;_i.Cancel=_i.CanceledError;_i.all=o(function(e){return Promise.all(e)},"all");_i.spread=x8;_i.isAxiosError=b8;_i.mergeConfig=Xu;_i.AxiosHeaders=ri;_i.formToJSON=r=>p_(ne.isHTMLForm(r)?new FormData(r):r);_i.getAdapter=y_.getAdapter;_i.HttpStatusCode=zZ;_i.default=_i;var w_=_i;var{Axios:bKe,AxiosError:wKe,CanceledError:CKe,isCancel:EKe,CancelToken:AKe,VERSION:NKe,all:IKe,Cancel:TKe,isAxiosError:RKe,spread:DKe,toFormData:_Ke,AxiosHeaders:OKe,HttpStatusCode:PKe,formToJSON:BKe,getAdapter:FKe,mergeConfig:LKe}=w_;var pee=Dr(require("path"),1);var $Z=require("class-transformer"),Wu=require("class-validator");function C_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(C_,"_ts_decorate");function E8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(E8,"_ts_metadata");var Nd=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};C_([(0,Wu.IsEnum)(Me),E8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Nd.prototype,"tpAmb",void 0);C_([(0,Wu.IsEnum)(le),E8("design:type",typeof StateCode>"u"?Object:StateCode)],Nd.prototype,"cUF",void 0);C_([(0,Wu.IsOptional)()],Nd.prototype,"xServ",void 0);var C8=class{static{o(this,"ConsultStatusRequest")}consStatServ};C_([(0,Wu.IsNotEmptyObject)(),(0,Wu.IsObject)(),(0,Wu.ValidateNested)(),(0,$Z.Type)(()=>Nd),E8("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],C8.prototype,"consStatServ",void 0);var A_=require("class-transformer"),ar=require("class-validator");function ji(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ji,"_ts_decorate");function Rs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rs,"_ts_metadata");var E_=class{static{o(this,"InfInutAttributes")}Id};ji([(0,ar.IsString)(),Rs("design:type",String)],E_.prototype,"Id",void 0);var CA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};ji([(0,ar.IsString)(),Rs("design:type",String)],CA.prototype,"xmlns",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],CA.prototype,"versao",void 0);var Ts=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ji([(0,ar.ValidateNested)(),(0,A_.Type)(()=>E_),Rs("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Ts.prototype,"$",void 0);ji([(0,ar.IsEnum)(Me),Rs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ts.prototype,"tpAmb",void 0);ji([(0,ar.IsOptional)()],Ts.prototype,"xServ",void 0);ji([(0,ar.IsEnum)(le),Rs("design:type",typeof StateCode>"u"?Object:StateCode)],Ts.prototype,"cUF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Rs("design:type",String)],Ts.prototype,"ano",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],Ts.prototype,"CNPJ",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],Ts.prototype,"CPF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Rs("design:type",String)],Ts.prototype,"mod",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Rs("design:type",String)],Ts.prototype,"serie",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Rs("design:type",String)],Ts.prototype,"nNFIni",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Rs("design:type",String)],Ts.prototype,"nNFFin",void 0);ji([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Rs("design:type",String)],Ts.prototype,"xJust",void 0);Ts=ji([Qr({properties:["CNPJ","CPF"],required:!0})],Ts);var hg=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,A_.Type)(()=>CA),Rs("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],hg.prototype,"$",void 0);ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,A_.Type)(()=>Ts),Rs("design:type",typeof IInfInut>"u"?Object:IInfInut)],hg.prototype,"infInut",void 0);ji([(0,ar.Allow)(),Rs("design:type",typeof Signature>"u"?Object:Signature)],hg.prototype,"Signature",void 0);var ml=require("class-validator");function A8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A8,"_ts_decorate");function GZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(GZ,"_ts_metadata");var dg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};A8([(0,ml.IsEnum)(Me),GZ("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dg.prototype,"tpAmb",void 0);A8([(0,ml.IsOptional)()],dg.prototype,"xServ",void 0);A8([(0,ml.IsString)(),(0,ml.Length)(44,44),(0,ml.Matches)(/^[0-9]{44}$/),GZ("design:type",String)],dg.prototype,"chNFe",void 0);var cee=require("class-transformer"),du=require("class-validator");var wa=require("class-validator");var Ot=require("class-validator"),wi=require("class-transformer");var xt=require("class-validator"),EA=require("class-transformer");function qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qt,"_ts_decorate");function Ht(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ht,"_ts_metadata");var Mf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"nNF",void 0);var wo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"IE",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"nNF",void 0);wo=qt([Qr({properties:["CNPJ","CPF"],required:!0})],wo);var DS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"nCOO",void 0);var qf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>Mf),Ht("design:type",typeof IRefNF>"u"?Object:IRefNF)],qf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>wo),Ht("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],qf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>DS),Ht("design:type",typeof IRefECF>"u"?Object:IRefECF)],qf.prototype,"refECF",void 0);var Yr=class{static{o(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};qt([(0,xt.IsEnum)(le),Ht("design:type",typeof StateCode>"u"?Object:StateCode)],Yr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"nNF",void 0);qt([kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof TpEmis>"u"?Object:TpEmis)],Yr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),Ht("design:type",String)],Yr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Yr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,EA.Type)(()=>qf),Ht("design:type",Array)],Yr.prototype,"NFref",void 0);var Ui=require("class-validator");var XZ=require("class-transformer");var _s=require("class-validator");function Ju(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ju,"_ts_decorate");function Qu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qu,"_ts_metadata");var Ds=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xLgr",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"nro",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xCpl",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xBairro",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"cMun",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xMun",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"UF",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"CEP",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"cPais",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xPais",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"fone",void 0);function Yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yu,"_ts_decorate");function gl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CNPJ",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CPF",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"xNome",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"xFant",void 0);Yu([(0,Ui.ValidateNested)(),(0,XZ.Type)(()=>Ds),gl("design:type",typeof Ds>"u"?Object:Ds)],ns.prototype,"enderEmit",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IE",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IEST",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IM",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CNAE",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CRT",void 0);ns=Yu([Qr({properties:["CNPJ","CPF"],required:!0})],ns);var pi=require("class-validator"),WZ=require("class-transformer");var jn=require("class-validator");function Zu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zu,"_ts_decorate");function ec(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ec,"_ts_metadata");var ya=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xLgr",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"nro",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xCpl",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xBairro",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"cMun",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xMun",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"UF",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"CEP",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"cPais",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xPais",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"fone",void 0);function tc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tc,"_ts_decorate");function vl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CNPJ",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CPF",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"idEstrangeiro",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"xNome",void 0);tc([(0,pi.IsOptional)(),(0,pi.ValidateNested)(),(0,WZ.Type)(()=>ya),vl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);tc([(0,pi.IsString)(),vl("design:type",String)],is.prototype,"indIEDest",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IE",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"ISUF",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IM",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"email",void 0);is=tc([Qr({properties:["CNPJ","CPF"],required:!0})],is);var on=require("class-validator");function Os(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Os,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var En=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CNPJ",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CPF",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xNome",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xLgr",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"nro",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xCpl",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xBairro",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"cMun",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xMun",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"UF",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CEP",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"cPais",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xPais",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"fone",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"email",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"IE",void 0);En=Os([Qr({properties:["CNPJ","CPF"]})],En);var _S=require("class-validator");function N8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(N8,"_ts_decorate");function JZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JZ,"_ts_metadata");var yl=class{static{o(this,"AutXML")}CNPJ;CPF};N8([(0,_S.IsOptional)(),(0,_S.IsString)(),JZ("design:type",String)],yl.prototype,"CNPJ",void 0);N8([(0,_S.IsOptional)(),(0,_S.IsString)(),JZ("design:type",String)],yl.prototype,"CPF",void 0);yl=N8([Qr({properties:["CNPJ","CPF"]})],yl);var AA=require("class-validator");function QZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(QZ,"_ts_decorate");function YZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(YZ,"_ts_metadata");var Id=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};QZ([(0,AA.IsString)(),YZ("design:type",String)],Id.prototype,"CNPJ",void 0);QZ([(0,AA.IsOptional)(),(0,AA.IsString)(),YZ("design:type",String)],Id.prototype,"idCadIntTran",void 0);var mg=require("class-validator");function I8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(I8,"_ts_decorate");function T8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(T8,"_ts_metadata");var Hf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};I8([(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"UFSaidaPais",void 0);I8([(0,mg.IsOptional)(),(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"xLocExporta",void 0);I8([(0,mg.IsOptional)(),(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"xLocDespacho",void 0);var Td=require("class-validator");function R8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R8,"_ts_decorate");function D8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D8,"_ts_metadata");var zf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xNEmp",void 0);R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xPed",void 0);R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xCont",void 0);var Sl=require("class-validator");function OS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(OS,"_ts_decorate");function PS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PS,"_ts_metadata");var ou=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"CNPJ",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"xContato",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"email",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"fone",void 0);OS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"idCSRT",void 0);OS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"hashCSRT",void 0);var yg=require("class-validator"),N_=require("class-transformer");var rc=require("class-validator");function tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tn,"_ts_decorate");function rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rn,"_ts_metadata");var qr=class{static{o(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};tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var _n=require("class-validator");function uu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uu,"_ts_decorate");function cu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vServ",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vBC",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vISS",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vPIS",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vCOFINS",void 0);uu([(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"dCompet",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDeducao",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vOutro",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDescIncond",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDescCond",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vISSRet",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var Rd=require("class-validator");function gg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gg,"_ts_decorate");function vg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vg,"_ts_metadata");var nc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetPIS",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetCOFINS",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetCSLL",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vBCIRRF",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vIRRF",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vBCRetPrev",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetPrev",void 0);function _8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_8,"_ts_decorate");function O8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(O8,"_ts_metadata");var Kf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};_8([(0,yg.ValidateNested)(),(0,N_.Type)(()=>qr),O8("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Kf.prototype,"ICMSTot",void 0);_8([(0,yg.IsOptional)(),(0,yg.ValidateNested)(),(0,N_.Type)(()=>Zs),O8("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Kf.prototype,"ISSQNtot",void 0);_8([(0,yg.IsOptional)(),(0,yg.ValidateNested)(),(0,N_.Type)(()=>nc),O8("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Kf.prototype,"retTrib",void 0);var bi=require("class-validator"),US=require("class-transformer");var ta=require("class-validator");function Dd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dd,"_ts_decorate");function Sg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"CNPJ",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"CPF",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xNome",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"IE",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xEnder",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xMun",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"UF",void 0);ea=Dd([Qr({properties:["CNPJ","CPF"]})],ea);var xl=require("class-validator");function BS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BS,"_ts_decorate");function FS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FS,"_ts_metadata");var Co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vServ",void 0);BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCRet",void 0);BS([(0,xl.IsOptional)(),Se({fixed:4}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSRet",void 0);BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSRet",void 0);BS([(0,xl.IsOptional)(),(0,xl.IsString)(),FS("design:type",String)],Co.prototype,"CFOP",void 0);BS([(0,xl.IsOptional)(),(0,xl.IsString)(),FS("design:type",String)],Co.prototype,"cMunFG",void 0);var Wa=require("class-validator");function LS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LS,"_ts_decorate");function kS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kS,"_ts_metadata");var bl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"placa",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"UF",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"RNTC",void 0);var xg=class{static{o(this,"Reboque")}placa;UF;RNTC};LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"placa",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"UF",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"RNTC",void 0);var lu=require("class-validator");function VS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(VS,"_ts_decorate");function jS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(jS,"_ts_metadata");var wl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"qVol",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"esp",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"marca",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"nVol",void 0);VS([(0,lu.IsOptional)(),Se({fixed:3}),jS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoL",void 0);VS([(0,lu.IsOptional)(),Se({fixed:3}),jS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoB",void 0);function $f(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($f,"_ts_decorate");function _d(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_d,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};$f([(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"modFrete",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>ea),_d("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>Co),_d("design:type",typeof Co>"u"?Object:Co)],ra.prototype,"retTransp",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>bl),_d("design:type",typeof bl>"u"?Object:bl)],ra.prototype,"veicTransp",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,US.Type)(()=>xg),(0,bi.ArrayMaxSize)(5),_d("design:type",Array)],ra.prototype,"reboque",void 0);$f([(0,bi.IsOptional)(),(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"vagao",void 0);$f([(0,bi.IsOptional)(),(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"balsa",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,US.Type)(()=>wl),(0,bi.ArrayMaxSize)(5e3),_d("design:type",Array)],ra.prototype,"vol",void 0);ra=$f([Qr({properties:["veicTransp","reboque"]}),Qr({properties:["vagao","balsa"]})],ra);var Mi=require("class-validator"),P8=require("class-transformer");function Xf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Xf,"_ts_decorate");function Wf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Wf,"_ts_metadata");var Gf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],Gf.prototype,"nFat",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vOrig",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vDesc",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vLiq",void 0);var MS=class{static{o(this,"Dup")}nDup;dVenc;vDup};Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],MS.prototype,"nDup",void 0);Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],MS.prototype,"dVenc",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],MS.prototype,"vDup",void 0);var Od=class{static{o(this,"Cobr")}fat;dup};Xf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)(),(0,P8.Type)(()=>Gf),Wf("design:type",typeof Gf>"u"?Object:Gf)],Od.prototype,"fat",void 0);Xf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)({each:!0}),(0,Mi.ArrayMaxSize)(120),(0,P8.Type)(()=>MS),Wf("design:type",Array)],Od.prototype,"dup",void 0);var Fd=require("class-validator"),ree=require("class-transformer");var El=require("class-validator"),ZZ=require("class-transformer");var Pd=require("class-validator");function B8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B8,"_ts_decorate");function F8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F8,"_ts_metadata");var Cl=class{static{o(this,"Card")}cNPJ;tBand;cAut};B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"cNPJ",void 0);B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"tBand",void 0);B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"cAut",void 0);function NA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NA,"_ts_decorate");function IA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(IA,"_ts_metadata");var Jf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};NA([(0,El.IsOptional)(),(0,El.IsString)(),IA("design:type",String)],Jf.prototype,"indPag",void 0);NA([(0,El.IsString)(),IA("design:type",typeof TPag>"u"?Object:TPag)],Jf.prototype,"tPag",void 0);NA([Se({fixed:2}),IA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jf.prototype,"vPag",void 0);NA([(0,El.IsOptional)(),(0,El.ValidateNested)(),(0,ZZ.Type)(()=>Cl),IA("design:type",typeof Cl>"u"?Object:Cl)],Jf.prototype,"card",void 0);NA([(0,El.IsOptional)(),(0,El.IsString)(),IA("design:type",String)],Jf.prototype,"xPag",void 0);function eee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eee,"_ts_decorate");function tee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tee,"_ts_metadata");var Bd=class{static{o(this,"Pag")}detPag;vTroco};eee([(0,Fd.ValidateNested)({each:!0}),(0,Fd.ArrayMinSize)(1),(0,Fd.ArrayMaxSize)(100),(0,ree.Type)(()=>Jf),tee("design:type",Array)],Bd.prototype,"detPag",void 0);eee([(0,Fd.IsOptional)(),Se({fixed:2}),tee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bd.prototype,"vTroco",void 0);var ni=require("class-validator"),I_=require("class-transformer");function Qf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qf,"_ts_decorate");function Yf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Yf,"_ts_metadata");var qS=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Qf([(0,ni.IsString)(),Yf("design:type",String)],qS.prototype,"xCampo",void 0);Qf([(0,ni.IsString)(),Yf("design:type",String)],qS.prototype,"xTexto",void 0);var TA=class{static{o(this,"ProcRef")}nProc;indProc};Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],TA.prototype,"nProc",void 0);Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],TA.prototype,"indProc",void 0);var ic=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],ic.prototype,"infAdFisco",void 0);Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],ic.prototype,"infCpl",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>qS),(0,ni.ArrayMaxSize)(10),Yf("design:type",Array)],ic.prototype,"obsCont",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>qS),(0,ni.ArrayMaxSize)(10),Yf("design:type",Array)],ic.prototype,"obsFisco",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>TA),(0,ni.ArrayMaxSize)(100),Yf("design:type",Array)],ic.prototype,"procRef",void 0);var mn=require("class-validator"),R_=require("class-transformer");function Sa(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sa,"_ts_decorate");function xa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xa,"_ts_metadata");var T_=class{static{o(this,"ForDiaAttributes")}dia};Sa([(0,mn.IsString)(),xa("design:type",String)],T_.prototype,"dia",void 0);var RA=class{static{o(this,"ForDia")}$;qtde};Sa([(0,mn.IsObject)(),(0,mn.IsNotEmptyObject)(),(0,R_.Type)(()=>T_),xa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],RA.prototype,"$",void 0);Sa([(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],RA.prototype,"qtde",void 0);var DA=class{static{o(this,"Deduc")}xDed;vDed};Sa([(0,mn.IsString)(),xa("design:type",String)],DA.prototype,"xDed",void 0);Sa([Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],DA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};Sa([(0,mn.IsString)(),xa("design:type",String)],na.prototype,"safra",void 0);Sa([(0,mn.IsString)(),xa("design:type",String)],na.prototype,"ref",void 0);Sa([(0,mn.ValidateNested)({each:!0}),(0,mn.ArrayMaxSize)(31),(0,R_.Type)(()=>RA),xa("design:type",Array)],na.prototype,"forDia",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);Sa([(0,mn.IsOptional)(),(0,mn.ValidateNested)({each:!0}),(0,mn.ArrayMaxSize)(10),(0,R_.Type)(()=>DA),xa("design:type",Array)],na.prototype,"deduc",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),rx=require("class-transformer");var ut=require("class-validator");var Al=require("class-transformer");var sc=require("class-validator");function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function OA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(OA,"_ts_metadata");var Zf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_A([(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"nLote",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"qLote",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"dFab",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"dVal",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"cAgreg",void 0);var nn=require("class-validator"),nee=require("class-transformer");function as(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(as,"_ts_decorate");function Ps(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ps,"_ts_metadata");var Ld=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nAdicao",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nSeqAdic",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"cFabricante",void 0);as([Se({fixed:2}),Ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ld.prototype,"vDescDI",void 0);as([(0,nn.IsOptional)(),(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"nDI",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"dDI",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,nn.IsOptional)(),Se({fixed:2}),Ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"CPF",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,nn.IsArray)(),(0,nn.ValidateNested)({each:!0}),(0,nee.Type)(()=>Ld),(0,nn.ArrayMaxSize)(999),(0,nn.ArrayMinSize)(1),Ps("design:type",Array)],ss.prototype,"adi",void 0);ss=as([Qr({properties:["CNPJ","CPF"],required:!0})],ss);var iee=require("class-transformer"),ep=require("class-validator");function PA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(PA,"_ts_decorate");function BA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(BA,"_ts_metadata");var HS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};PA([(0,ep.IsString)(),BA("design:type",String)],HS.prototype,"nRE",void 0);PA([(0,ep.IsString)(),BA("design:type",String)],HS.prototype,"chNFe",void 0);PA([Se({fixed:4}),BA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],HS.prototype,"qExport",void 0);var zS=class{static{o(this,"DetExport")}nDraw;exportInd};PA([(0,ep.IsOptional)(),(0,ep.IsString)(),BA("design:type",String)],zS.prototype,"nDraw",void 0);PA([(0,ep.IsOptional)(),(0,ep.ValidateNested)(),(0,iee.Type)(()=>HS),BA("design:type",typeof IExportInd>"u"?Object:IExportInd)],zS.prototype,"exportInd",void 0);var L8=require("class-validator");function see(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(see,"_ts_decorate");function aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aee,"_ts_metadata");var KS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};see([(0,L8.IsString)(),aee("design:type",String)],KS.prototype,"cProdFisco",void 0);see([(0,L8.IsString)(),aee("design:type",String)],KS.prototype,"cOperNFF",void 0);var j8=require("class-validator");function k8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k8,"_ts_decorate");function V8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V8,"_ts_metadata");var bg=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};k8([(0,j8.IsString)(),V8("design:type",String)],bg.prototype,"xEmb",void 0);k8([Se({fixed:3}),V8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bg.prototype,"qVolEmb",void 0);k8([(0,j8.IsString)(),V8("design:type",String)],bg.prototype,"uEmb",void 0);var On=require("class-validator");function Un(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Un,"_ts_decorate");function Mn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Mn,"_ts_metadata");var un=class{static{o(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};Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpOp",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"chassi",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cCor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"xCor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pot",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cilin",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pesoL",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pesoB",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"nSerie",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpComb",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"nMotor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"CMT",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"dist",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"anoMod",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"anoFab",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpPint",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"espVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"VIN",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"condVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cMod",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cCorDENATRAN",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"lota",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpRest",void 0);var q8=require("class-validator");function U8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U8,"_ts_decorate");function M8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M8,"_ts_metadata");var wg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};U8([(0,q8.IsString)(),M8("design:type",String)],wg.prototype,"cProdANVISA",void 0);U8([(0,q8.IsString)(),M8("design:type",String)],wg.prototype,"xMotivoIsencao",void 0);U8([Se({fixed:2}),M8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wg.prototype,"vPMC",void 0);var FA=require("class-validator");function D_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(D_,"_ts_decorate");function __(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(__,"_ts_metadata");var kd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"tpArma",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"nSerie",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"nCano",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"descr",void 0);var Fr=require("class-validator"),O_=require("class-transformer");function qn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qn,"_ts_decorate");function Hn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Hn,"_ts_metadata");var $S=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};qn([(0,Fr.IsString)(),Hn("design:type",String)],$S.prototype,"indImport",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],$S.prototype,"cUFOrig",void 0);qn([Se({fixed:4}),(0,Fr.Max)(100),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$S.prototype,"pOrig",void 0);var GS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};qn([Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"qBCProd",void 0);qn([Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"vAliqProd",void 0);qn([Se({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"vCIDE",void 0);var Vd=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nBico",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nBomba",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nTanque",void 0);qn([Se({fixed:3}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vEncIni",void 0);qn([Se({fixed:3}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vEncFin",void 0);var Bs=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"cProdANP",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"descANP",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGLP",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGNn",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGNi",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vPart",void 0);qn([(0,Fr.IsString)(),(0,Fr.IsOptional)(),Hn("design:type",String)],Bs.prototype,"CODIF",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"qTemp",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"UFCons",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,O_.Type)(()=>GS),Hn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Bs.prototype,"CIDE",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,O_.Type)(()=>Vd),Hn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Bs.prototype,"encerrante",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pBio",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)({each:!0}),(0,O_.Type)(()=>$S),(0,Fr.ArrayMaxSize)(30),(0,Fr.IsOptional)(),Hn("design:type",Array)],Bs.prototype,"origComb",void 0);function dr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var zt=class{static{o(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};dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cEAN",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cBarra",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"xProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"NCM",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ArrayMaxSize)(8),(0,ut.IsString)({each:!0}),gr("design:type",Array)],zt.prototype,"NVE",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CEST",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"indEscala",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CNPJFab",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cBenef",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),gr("design:type",Object)],zt.prototype,"gCred",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"EXTIPI",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"CFOP",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vProd",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"cEANTrib",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnTrib",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vFrete",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vSeg",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vDesc",void 0);dr([(0,ut.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vOutro",void 0);dr([(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"indTot",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(100),(0,Al.Type)(()=>ss),gr("design:type",Array)],zt.prototype,"DI",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,Al.Type)(()=>zS),gr("design:type",Array)],zt.prototype,"detExport",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"xPed",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nItemPed",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nFCI",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsArray)(),(0,ut.ValidateNested)({each:!0}),(0,ut.ArrayMaxSize)(500),(0,Al.Type)(()=>Zf),gr("design:type",Array)],zt.prototype,"rastro",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>KS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],zt.prototype,"infProdNFF",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>bg),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],zt.prototype,"infProdEmb",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>un),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],zt.prototype,"veicProd",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>wg),gr("design:type",typeof IMed>"u"?Object:IMed)],zt.prototype,"med",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)({each:!0}),(0,Al.Type)(()=>kd),(0,ut.ArrayMaxSize)(500),gr("design:type",Array)],zt.prototype,"arma",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsObject)(),(0,ut.ValidateNested)(),(0,Al.Type)(()=>Bs),gr("design:type",typeof IComb>"u"?Object:IComb)],zt.prototype,"comb",void 0);dr([(0,ut.IsOptional)(),(0,ut.IsString)(),gr("design:type",String)],zt.prototype,"nRECOPI",void 0);zt=dr([Qr({properties:["veicProd","med","arma","comb"]})],zt);var Ol=require("class-transformer"),ii=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var tp=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMS",void 0);var Eo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMSST",void 0);var Nl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vICMS",void 0);var rp=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSST",void 0);var Cg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"motDesICMS",void 0);var fu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMSDif",void 0);var np=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSSTRet",void 0);var Ja=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMSST",void 0);var Qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var ip=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSTRet",void 0);var Eg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eg.prototype,"vCredICMSSN",void 0);var LA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],LA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],LA.prototype,"CSOSN",void 0);var ac=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vCredICMSSN",void 0);var sp=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSST",void 0);var ap=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var Pn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>tp),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],Pn.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eo),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],Pn.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Nl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],Pn.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>rp),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],Pn.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Cg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],Pn.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>fu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],Pn.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],Pn.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ja),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],Pn.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Qa),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],Pn.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Pn.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],Pn.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Pn.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>LA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Pn.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ac),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Pn.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sp),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Pn.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ap),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Pn.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Pn.prototype,"ICMSSN900",void 0);Pn=Ae([Qr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Pn);var An=require("class-validator"),H8=require("class-transformer");function Ao(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ao,"_ts_decorate");function No(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(No,"_ts_metadata");var op=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Ao([(0,An.IsString)(),No("design:type",String)],op.prototype,"CST",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vBC",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"pIPI",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"qUnid",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vUnid",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vIPI",void 0);var P_=class{static{o(this,"IPINT")}CST};Ao([(0,An.IsString)(),No("design:type",String)],P_.prototype,"CST",void 0);var pu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"CNPJProd",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"cSelo",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"qSelo",void 0);Ao([(0,An.IsString)(),No("design:type",String)],pu.prototype,"cEnq",void 0);Ao([(0,An.IsOptional)(),(0,An.ValidateNested)(),(0,H8.Type)(()=>op),No("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],pu.prototype,"IPITrib",void 0);Ao([(0,An.IsOptional)(),(0,An.ValidateNested)(),(0,H8.Type)(()=>P_),No("design:type",typeof IIPINT>"u"?Object:IIPINT)],pu.prototype,"IPINT",void 0);var Tl=require("class-validator");function B_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B_,"_ts_decorate");function F_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F_,"_ts_metadata");var Il=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vBC",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vDespAdu",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vII",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vIOF",void 0);var Kt=require("class-validator"),kA=require("class-transformer");function zn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zn,"_ts_decorate");function Kn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kn,"_ts_metadata");var up=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"vPIS",void 0);var cp=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"vPIS",void 0);var XS=class{static{o(this,"PISNT")}CST};zn([(0,Kt.IsString)(),Kn("design:type",String)],XS.prototype,"CST",void 0);var oc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vPIS",void 0);var Rl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>up),Kn("design:type",typeof up>"u"?Object:up)],Rl.prototype,"PISAliq",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>cp),Kn("design:type",typeof cp>"u"?Object:cp)],Rl.prototype,"PISQtde",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>XS),Kn("design:type",typeof XS>"u"?Object:XS)],Rl.prototype,"PISNT",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>oc),Kn("design:type",typeof oc>"u"?Object:oc)],Rl.prototype,"PISOutr",void 0);var uc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vPIS",void 0);var $t=require("class-validator"),VA=require("class-transformer");function $n(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($n,"_ts_decorate");function Gn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gn,"_ts_metadata");var lp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"vCOFINS",void 0);var fp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"vCOFINS",void 0);var WS=class{static{o(this,"COFINSNT")}CST};$n([(0,$t.IsString)(),Gn("design:type",String)],WS.prototype,"CST",void 0);var cc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vCOFINS",void 0);var Dl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>lp),Gn("design:type",typeof lp>"u"?Object:lp)],Dl.prototype,"COFINSAliq",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>fp),Gn("design:type",typeof fp>"u"?Object:fp)],Dl.prototype,"COFINSQtde",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>WS),Gn("design:type",typeof WS>"u"?Object:WS)],Dl.prototype,"COFINSNT",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>cc),Gn("design:type",typeof cc>"u"?Object:cc)],Dl.prototype,"COFINSOutr",void 0);var lc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vCOFINS",void 0);var Ya=require("class-validator");function JS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(JS,"_ts_decorate");function QS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(QS,"_ts_metadata");var hu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vBC",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vAliq",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vISSQN",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cMunFG",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cListServ",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cSitTrib",void 0);var Oi=require("class-validator");function pp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pp,"_ts_decorate");function hp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hp,"_ts_metadata");var ba=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vBCUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vBCFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSInter",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSInterPart",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vICMSUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vICMSUFRemet",void 0);function fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fc,"_ts_decorate");function _l(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_l,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};fc([(0,ii.IsOptional)(),(0,ii.IsNumber)(),_l("design:type",Number)],cs.prototype,"vTotTrib",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Pn),_l("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>pu),_l("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>hu),_l("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Il),_l("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Rl),_l("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>uc),_l("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Dl),_l("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>lc),_l("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>ba),_l("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=fc([Qr({properties:["ICMS","ISSQN"]})],cs);var Ag=require("class-validator"),oee=require("class-transformer");function z8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z8,"_ts_decorate");function K8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K8,"_ts_metadata");var L_=class{static{o(this,"IpiDevol")}vIPIDevol};z8([(0,Ag.IsString)(),K8("design:type",String)],L_.prototype,"vIPIDevol",void 0);var YS=class{static{o(this,"Devol")}pDevol;IPI};z8([(0,Ag.IsString)(),K8("design:type",String)],YS.prototype,"pDevol",void 0);z8([(0,Ag.IsOptional)(),(0,Ag.ValidateNested)(),(0,oee.Type)(()=>L_),K8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],YS.prototype,"IPI",void 0);var dp=require("class-validator"),$8=require("class-transformer");function k_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k_,"_ts_decorate");function V_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V_,"_ts_metadata");var ZS=class{static{o(this,"Observation")}xCampo;xTexto};k_([(0,dp.IsString)(),V_("design:type",String)],ZS.prototype,"xCampo",void 0);k_([(0,dp.IsString)(),V_("design:type",String)],ZS.prototype,"xTexto",void 0);var ex=class{static{o(this,"ObsItem")}obsCont;obsFisco};k_([(0,dp.IsOptional)(),(0,dp.ValidateNested)(),(0,$8.Type)(()=>ZS),V_("design:type",typeof IObservation>"u"?Object:IObservation)],ex.prototype,"obsCont",void 0);k_([(0,dp.IsOptional)(),(0,dp.ValidateNested)(),(0,$8.Type)(()=>ZS),V_("design:type",typeof IObservation>"u"?Object:IObservation)],ex.prototype,"obsFisco",void 0);function Ng(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ng,"_ts_decorate");function Ig(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ig,"_ts_metadata");var tx=class{static{o(this,"DetAttributes")}nItem};Ng([(0,sa.IsString)(),Ig("design:type",String)],tx.prototype,"nItem",void 0);var Pl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};Ng([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>tx),Ig("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Pl.prototype,"$",void 0);Ng([(0,sa.ValidateNested)(),(0,rx.Type)(()=>zt),Ig("design:type",typeof IProd>"u"?Object:IProd)],Pl.prototype,"prod",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>cs),Ig("design:type",typeof IImposto>"u"?Object:IImposto)],Pl.prototype,"imposto",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>YS),Ig("design:type",typeof IDevol>"u"?Object:IDevol)],Pl.prototype,"impostoDevol",void 0);Ng([(0,sa.IsOptional)(),(0,sa.IsString)(),Ig("design:type",String)],Pl.prototype,"infAdProd",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>ex),Ig("design:type",typeof IObsItem>"u"?Object:IObsItem)],Pl.prototype,"obsItem",void 0);var Ls=require("class-validator");function pc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pc,"_ts_decorate");function hc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hc,"_ts_metadata");var Fs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"CNPJ",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"xOrgao",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"matr",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"xAgente",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"fone",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"UF",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"nDAR",void 0);pc([(0,Ls.IsOptional)(),kf({format:"YYYY-MM-DD"}),hc("design:type",typeof Date>"u"?Object:Date)],Fs.prototype,"dEmi",void 0);pc([(0,Ls.IsOptional)(),Se({fixed:2}),hc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fs.prototype,"vDAR",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"repEmi",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsDate)(),hc("design:type",typeof Date>"u"?Object:Date)],Fs.prototype,"dPag",void 0);var uee=require("class-validator");function NNe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NNe,"_ts_decorate");function INe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(INe,"_ts_metadata");var Tg=class{static{o(this,"InfSolicNFF")}xSolic};NNe([(0,uee.IsString)(),INe("design:type",String)],Tg.prototype,"xSolic",void 0);function hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(hi,"_ts_decorate");function di(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(di,"_ts_metadata");var Rg=class{static{o(this,"InfNFeAttributes")}Id;versao};hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Rg.prototype,"Id",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Rg.prototype,"versao",void 0);var Nn=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,wi.Type)(()=>Rg),(0,Ot.ValidateNested)(),di("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],Nn.prototype,"$",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Yr),di("design:type",typeof IIde>"u"?Object:IIde)],Nn.prototype,"ide",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ns),di("design:type",typeof IEmit>"u"?Object:IEmit)],Nn.prototype,"emit",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Fs),di("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],Nn.prototype,"avulsa",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>is),di("design:type",typeof IDest>"u"?Object:IDest)],Nn.prototype,"dest",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>En),di("design:type",typeof ILocal>"u"?Object:ILocal)],Nn.prototype,"retirada",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>En),di("design:type",typeof ILocal>"u"?Object:ILocal)],Nn.prototype,"entrega",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,wi.Type)(()=>yl),di("design:type",Array)],Nn.prototype,"autXML",void 0);hi([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,wi.Type)(()=>Pl),di("design:type",Array)],Nn.prototype,"det",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Kf),di("design:type",typeof ITotal>"u"?Object:ITotal)],Nn.prototype,"total",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ra),di("design:type",typeof ITransp>"u"?Object:ITransp)],Nn.prototype,"transp",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Od),di("design:type",typeof ICobr>"u"?Object:ICobr)],Nn.prototype,"cobr",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Bd),di("design:type",typeof IPag>"u"?Object:IPag)],Nn.prototype,"pag",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Id),di("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],Nn.prototype,"infIntermed",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ic),di("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],Nn.prototype,"infAdic",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Hf),di("design:type",typeof IExporta>"u"?Object:IExporta)],Nn.prototype,"exporta",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>zf),di("design:type",typeof ICompra>"u"?Object:ICompra)],Nn.prototype,"compra",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>na),di("design:type",typeof ICana>"u"?Object:ICana)],Nn.prototype,"cana",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ou),di("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],Nn.prototype,"infRespTec",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Tg),di("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],Nn.prototype,"infSolicNFF",void 0);var G8=require("class-transformer");function j_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j_,"_ts_decorate");function U_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U_,"_ts_metadata");var nx=class{static{o(this,"NFeAttributes")}xmlns};j_([(0,wa.IsString)(),(0,wa.IsNotEmpty)(),U_("design:type",String)],nx.prototype,"xmlns",void 0);var dc=class{static{o(this,"NFe")}$;infNFe;Signature};j_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,G8.Type)(()=>nx),(0,wa.ValidateNested)(),U_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],dc.prototype,"$",void 0);j_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,G8.Type)(()=>Nn),(0,wa.ValidateNested)(),U_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],dc.prototype,"infNFe",void 0);j_([(0,wa.Allow)(),U_("design:type",typeof Signature>"u"?Object:Signature)],dc.prototype,"Signature",void 0);function jA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jA,"_ts_decorate");function M_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M_,"_ts_metadata");var mp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};jA([(0,du.IsEnum)(Me),(0,du.IsOptional)(),M_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],mp.prototype,"tpAmb",void 0);jA([(0,du.IsEnum)(le),(0,du.IsOptional)(),M_("design:type",typeof StateCode>"u"?Object:StateCode)],mp.prototype,"cUF",void 0);jA([(0,du.IsString)(),M_("design:type",String)],mp.prototype,"idLote",void 0);jA([(0,du.IsOptional)(),(0,du.IsEnum)(["0","1"])],mp.prototype,"indSinc",void 0);jA([(0,du.IsNotEmpty)(),(0,cee.Type)(()=>dc),M_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],mp.prototype,"NFe",void 0);var UA=require("class-validator");function X8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(X8,"_ts_decorate");function W8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(W8,"_ts_metadata");var Dg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};X8([(0,UA.IsEnum)(Me),W8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Dg.prototype,"tpAmb",void 0);X8([(0,UA.IsEnum)(le),W8("design:type",typeof StateCode>"u"?Object:StateCode)],Dg.prototype,"cUF",void 0);X8([(0,UA.IsString)(),W8("design:type",String)],Dg.prototype,"nRec",void 0);var Gr=require("class-validator"),MA=require("class-transformer");var q_=(function(r){return r.Cancelamento="110111",r})({});function qi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var H_=class{static{o(this,"InfEventoAttributes")}Id};qi([(0,Gr.IsString)(),fs("design:type",String)],H_.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>H_),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);qi([kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);qi([(0,Gr.IsEnum)(q_),fs("design:type",typeof q_>"u"?Object:q_)],ls.prototype,"tpEvento",void 0);qi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);qi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=qi([Qr({properties:["CNPJ","CPF"],required:!0})],ls);var z_=class{static{o(this,"EventoItemAttributes")}xmlns};qi([(0,Gr.IsString)(),fs("design:type",String)],z_.prototype,"xmlns",void 0);var jd=class{static{o(this,"EventoItem")}$;infEvento;Signature};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>z_),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],jd.prototype,"$",void 0);qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],jd.prototype,"infEvento",void 0);qi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],jd.prototype,"Signature",void 0);var ix=class{static{o(this,"EventoPayload")}idLote;evento};qi([(0,Gr.IsString)(),fs("design:type",String)],ix.prototype,"idLote",void 0);qi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>jd),fs("design:type",typeof jd>"u"?Object:jd)],ix.prototype,"evento",void 0);var mu=require("class-validator");function sx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sx,"_ts_decorate");function K_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K_,"_ts_metadata");var mc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};sx([(0,mu.IsOptional)()],mc.prototype,"xServ",void 0);sx([(0,mu.IsString)(),(0,mu.IsIn)(Object.values(mP)),K_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],mc.prototype,"UF",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"IE",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"CNPJ",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"CPF",void 0);mc=sx([Qr({properties:["IE","CNPJ","CPF"],required:!0})],mc);var lee={AM:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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 TNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},fee=TNe;var $_={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function _g(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_g,"_ts_decorate");function Ci(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ci,"_ts_metadata");var Za=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=LY.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?$_[t]:fee[t];return lee[i][n][e.service]}errors(){return Reflect.getMetadata(uo,this)}validate(e){try{let t=this.errors();return t?Ai(new ln(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ln(e))}finally{Reflect.deleteMetadata(uo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return pee.default.resolve(JV,this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:le[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"})}};_g([Yt(Nd),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultStatus",null);_g([Yt(hg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"inutilizacao",null);_g([Yt(dg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaProtocolo",null);_g([Yt(mp),Ci("design:type",Function),Ci("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"autorizacao",null);_g([Yt(Dg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"retAutorizacao",null);_g([Yt(ix),Ci("design:type",Function),Ci("design:paramtypes",[Object]),Ci("design:returntype",Promise)],Za.prototype,"recepcaoEvento",null);_g([Yt(mc),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaCadastro",null);var G_=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=w_.create();toolkit=new uA;caching=new _x;certificates=new Xx(this.http,this.caching);soap=new Hb(this.toolkit,this.certificates);transmitter=new Za(this.soap);signer=new Ix(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(uo,this)}};var J8=class extends G_{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){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,...t,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:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ga.Normal))return{dhCont:t,xJust:n}}};var Q8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.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"}},[Me.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:{[Me.Homolog]:{},[Me.Production]:{}}};var hee={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var RNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},dee=RNe;var vee=require("class-transformer"),vu=require("class-validator");var J_=require("class-transformer"),gc=require("class-validator");var Y8=require("class-validator");function mee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mee,"_ts_decorate");function gee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gee,"_ts_metadata");var ax=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};mee([(0,Y8.IsString)(),gee("design:type",String)],ax.prototype,"qrCode",void 0);mee([(0,Y8.IsString)(),gee("design:type",String)],ax.prototype,"urlChave",void 0);function X_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(X_,"_ts_decorate");function W_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(W_,"_ts_metadata");var gu=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};X_([(0,gc.IsObject)(),(0,gc.IsNotEmptyObject)(),(0,J_.Type)(()=>nx),(0,gc.ValidateNested)(),W_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],gu.prototype,"$",void 0);X_([(0,gc.IsObject)(),(0,gc.IsNotEmptyObject)(),(0,J_.Type)(()=>Nn),(0,gc.ValidateNested)(),W_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],gu.prototype,"infNFe",void 0);X_([(0,J_.Type)(()=>ax),W_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],gu.prototype,"infNFeSupl",void 0);X_([(0,gc.Allow)(),W_("design:type",typeof Signature>"u"?Object:Signature)],gu.prototype,"Signature",void 0);function qA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qA,"_ts_decorate");function Q_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Q_,"_ts_metadata");var gp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};qA([(0,vu.IsEnum)(Me),(0,vu.IsOptional)(),Q_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gp.prototype,"tpAmb",void 0);qA([(0,vu.IsEnum)(le),(0,vu.IsOptional)(),Q_("design:type",typeof StateCode>"u"?Object:StateCode)],gp.prototype,"cUF",void 0);qA([(0,vu.IsString)(),Q_("design:type",String)],gp.prototype,"idLote",void 0);qA([(0,vu.IsOptional)(),(0,vu.IsEnum)(["0","1"])],gp.prototype,"indSinc",void 0);qA([(0,vu.IsNotEmpty)(),(0,vee.Type)(()=>gu),Q_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],gp.prototype,"NFe",void 0);function DNe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DNe,"_ts_decorate");function Z8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z8,"_ts_metadata");var Y_=class extends Za{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=dee[t],u=Q8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return Q8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return hee[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Ai(new ln("Certificate is required in QRCode version 3.00"));default:return Ip(t.version)}}};DNe([Yt(gp),Z8("design:type",Function),Z8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Z8("design:returntype",Promise)],Y_.prototype,"autorizacao",null);var yee=Dr(require("crypto"),1);var ej=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Ln(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):Ip(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ga.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=yee.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Ln(`${u}${s}|${a}`))}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ga.OFFLINE)return Ln(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,y=await this.certificateRepository.sign(g,t.certificate.privateKey,Eu.SHA1);return y.isLeft()?y:Ln(`${i}${g}|${y.value}`)}};function yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yu,"_ts_decorate");function Nr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nr,"_ts_metadata");var ks=class{static{o(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}};yu([Yt(tx),Nr("design:type",Function),Nr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Nr("design:returntype",void 0)],ks.prototype,"det",null);yu([Yt(zt),Nr("design:type",Function),Nr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Nr("design:returntype",void 0)],ks.prototype,"prod",null);yu([Yt(cs),Nr("design:type",Function),Nr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Nr("design:returntype",void 0)],ks.prototype,"imposto",null);yu([Yt(Pn),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Nr("design:returntype",void 0)],ks.prototype,"icms",null);yu([Yt(hu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Nr("design:returntype",void 0)],ks.prototype,"issqn",null);yu([Yt(Il),Nr("design:type",Function),Nr("design:paramtypes",[typeof III>"u"?Object:III]),Nr("design:returntype",void 0)],ks.prototype,"ii",null);yu([Yt(pu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Nr("design:returntype",void 0)],ks.prototype,"ipi",null);yu([Yt(Rl),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Nr("design:returntype",void 0)],ks.prototype,"pis",null);yu([Yt(uc),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Nr("design:returntype",void 0)],ks.prototype,"pisst",null);yu([Yt(Dl),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Nr("design:returntype",void 0)],ks.prototype,"cofins",null);yu([Yt(lc),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Nr("design:returntype",void 0)],ks.prototype,"cofinsst",null);yu([Yt(ba),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Nr("design:returntype",void 0)],ks.prototype,"icmsufdest",null);function Hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Xn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return dc}root="NFe";$det=new lA(this);$total=new fA(this);nfeDetXmlBuilder=ks.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(uo,this),this}toObject(){let e=this.errors();return e?Ai(new ln(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),Ln(Rx(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:Ln(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ga.Normal)return;switch($_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ga.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ga.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ga.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(uo,this)}collect(e){let t=Reflect.getMetadata(uo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(uo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new cA().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}}};Hi([Yt(Rg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Xn.prototype,"infNFe",null);Hi([Yt(Yr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Xn.prototype,"ide",null);Hi([Yt(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Xn.prototype,"emit",null);Hi([Yt(Fs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Xn.prototype,"avulsa",null);Hi([Yt(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Xn.prototype,"dest",null);Hi([Yt(En),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Xn.prototype,"retirada",null);Hi([Yt(En),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Xn.prototype,"entrega",null);Hi([Yt(yl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Xn.prototype,"autXML",null);Hi([Yt(Kf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Xn.prototype,"total",null);Hi([Yt(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Xn.prototype,"transp",null);Hi([Yt(Od),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Xn.prototype,"cobr",null);Hi([Yt(Bd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Xn.prototype,"pag",null);Hi([Yt(Id),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Xn.prototype,"infIntermed",null);Hi([Yt(ic),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Xn.prototype,"infAdic",null);Hi([Yt(Hf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Xn.prototype,"exporta",null);Hi([Yt(zf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Xn.prototype,"compra",null);Hi([Yt(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Xn.prototype,"cana",null);Hi([Yt(ou),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Xn.prototype,"infRespTec",null);Hi([Yt(Tg),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Xn.prototype,"infSolicNFF",null);var tj=class extends Xn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return gu}static create(e,t){return new this(e,t)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ga.Normal)return this.data.infNFe.ide.tpEmis=Ga.OFFLINE,void 0}};0&&(module.exports={ASN1,AccessKeyBuilder,CanonicalizationMethod,Choice,Decimal,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,DigestAlgorithm,EntitySigner,Environment,IsDecimal,Left,MemoryCacheAdapter,NFCeDto,NFeDto,NFeTsError,NativeCertificateRepository,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeRemoteTransmitter,NfeXmlBuilder,NullCacheAdapter,Right,SignatureAlgorithm,SignatureMethod,SignatureNamespace,Signer,SkipAllValidations,SkipValidation,SkipValidationMetadata,SoapRemoteTransmissionRepository,StateAcronyms,StateCodeAcValidator,StateCodeAlValidator,StateCodeAmValidator,StateCodeApValidator,StateCodeBaValidator,StateCodeCeValidator,StateCodeDfValidator,StateCodeEsValidator,StateCodeGoValidator,StateCodeMaValidator,StateCodeMgValidator,StateCodeMsValidator,StateCodeMtValidator,StateCodePaValidator,StateCodePbValidator,StateCodePeValidator,StateCodePiValidator,StateCodePrValidator,StateCodeRjValidator,StateCodeRnValidator,StateCodeRoValidator,StateCodeRrValidator,StateCodeRsValidator,StateCodeScValidator,StateCodeSeValidator,StateCodeSpValidator,StateCodeToValidator,StateCodes,TpEmis,TransformDateString,TransformDecimal,ValidateErrorsMetadata,Validates,ValidationError,Xml2JsToolkit,XmlSigner,clearEmptyValues,directory,left,leftFromError,mapConstraintsToErrors,plainToInstance,right,unreachable});
108
+ `+s):n.stack=s}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Xu(this.defaults,t);let{transitional:n,paramsSerializer:i,headers:s}=t;n!==void 0&&bA.assertOptions(n,{silentJSONParsing:dl.transitional(dl.boolean),forcedJSONParsing:dl.transitional(dl.boolean),clarifyTimeoutError:dl.transitional(dl.boolean)},!1),i!=null&&(ne.isFunction(i)?t.paramsSerializer={serialize:i}:bA.assertOptions(i,{encode:dl.function,serialize:dl.function},!0)),t.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),bA.assertOptions(t,{baseUrl:dl.spelling("baseURL"),withXsrfToken:dl.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=s&&ne.merge(s.common,s[t.method]);s&&ne.forEach(["delete","get","head","post","put","patch","common"],v=>{delete s[v]}),t.headers=ri.concat(a,s);let u=[],c=!0;this.interceptors.request.forEach(o(function(b){typeof b.runWhen=="function"&&b.runWhen(t)===!1||(c=c&&b.synchronous,u.unshift(b.fulfilled,b.rejected))},"unshiftRequestInterceptors"));let l=[];this.interceptors.response.forEach(o(function(b){l.push(b.fulfilled,b.rejected)},"pushResponseInterceptors"));let p,m=0,g;if(!c){let v=[S_.bind(this),void 0];for(v.unshift(...u),v.push(...l),g=v.length,p=Promise.resolve(t);m<g;)p=p.then(v[m++],v[m++]);return p}g=u.length;let y=t;for(;m<g;){let v=u[m++],b=u[m++];try{y=v(y)}catch(x){b.call(this,x);break}}try{p=S_.call(this,y)}catch(v){return Promise.reject(v)}for(m=0,g=l.length;m<g;)p=p.then(l[m++],l[m++]);return p}getUri(e){e=Xu(this.defaults,e);let t=lg(e.baseURL,e.url,e.allowAbsoluteUrls);return cg(t,e.params,e.paramsSerializer)}};ne.forEach(["delete","get","head","options"],o(function(e){b_.prototype[e]=function(t,n){return this.request(Xu(n||{},{method:e,url:t,data:(n||{}).data}))}},"forEachMethodNoData"));ne.forEach(["post","put","patch"],o(function(e){function t(n){return o(function(s,a,u){return this.request(Xu(u||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:s,data:a}))},"httpMethod")}o(t,"generateHTTPMethod"),b_.prototype[e]=t(),b_.prototype[e+"Form"]=t(!0)},"forEachMethodWithData"));var wA=b_;var ANe=class qZ{static{o(this,"CancelToken")}constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(o(function(s){t=s},"promiseExecutor"));let n=this;this.promise.then(i=>{if(!n._listeners)return;let s=n._listeners.length;for(;s-- >0;)n._listeners[s](i);n._listeners=null}),this.promise.then=i=>{let s,a=new Promise(u=>{n.subscribe(u),s=u}).then(i);return a.cancel=o(function(){n.unsubscribe(s)},"reject"),a},e(o(function(s,a,u){n.reason||(n.reason=new bo(s,a,u),t(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 t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=o(n=>{e.abort(n)},"abort");return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new qZ(o(function(i){e=i},"executor")),cancel:e}}},HZ=ANe;function x8(r){return o(function(t){return r.apply(null,t)},"wrap")}o(x8,"spread");function b8(r){return ne.isObject(r)&&r.isAxiosError===!0}o(b8,"isAxiosError");var w8={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(w8).forEach(([r,e])=>{w8[e]=r});var zZ=w8;function KZ(r){let e=new wA(r),t=pA(wA.prototype.request,e);return ne.extend(t,wA.prototype,e,{allOwnKeys:!0}),ne.extend(t,e,null,{allOwnKeys:!0}),t.create=o(function(i){return KZ(Xu(r,i))},"create"),t}o(KZ,"createInstance");var _i=KZ(IS);_i.Axios=wA;_i.CanceledError=bo;_i.CancelToken=HZ;_i.isCancel=yA;_i.VERSION=fg;_i.toFormData=Ad;_i.AxiosError=at;_i.Cancel=_i.CanceledError;_i.all=o(function(e){return Promise.all(e)},"all");_i.spread=x8;_i.isAxiosError=b8;_i.mergeConfig=Xu;_i.AxiosHeaders=ri;_i.formToJSON=r=>p_(ne.isHTMLForm(r)?new FormData(r):r);_i.getAdapter=y_.getAdapter;_i.HttpStatusCode=zZ;_i.default=_i;var w_=_i;var{Axios:bKe,AxiosError:wKe,CanceledError:CKe,isCancel:EKe,CancelToken:AKe,VERSION:NKe,all:IKe,Cancel:TKe,isAxiosError:RKe,spread:DKe,toFormData:_Ke,AxiosHeaders:OKe,HttpStatusCode:PKe,formToJSON:BKe,getAdapter:FKe,mergeConfig:LKe}=w_;var pee=Dr(require("path"),1);var $Z=require("class-transformer"),Wu=require("class-validator");function C_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(C_,"_ts_decorate");function E8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(E8,"_ts_metadata");var Nd=class{static{o(this,"ConsultStatusPayload")}tpAmb;cUF;xServ="STATUS"};C_([(0,Wu.IsEnum)(Me),E8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Nd.prototype,"tpAmb",void 0);C_([(0,Wu.IsEnum)(le),E8("design:type",typeof StateCode>"u"?Object:StateCode)],Nd.prototype,"cUF",void 0);C_([(0,Wu.IsOptional)()],Nd.prototype,"xServ",void 0);var C8=class{static{o(this,"ConsultStatusRequest")}consStatServ};C_([(0,Wu.IsNotEmptyObject)(),(0,Wu.IsObject)(),(0,Wu.ValidateNested)(),(0,$Z.Type)(()=>Nd),E8("design:type",typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload)],C8.prototype,"consStatServ",void 0);var A_=require("class-transformer"),ar=require("class-validator");function ji(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(ji,"_ts_decorate");function Rs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Rs,"_ts_metadata");var E_=class{static{o(this,"InfInutAttributes")}Id};ji([(0,ar.IsString)(),Rs("design:type",String)],E_.prototype,"Id",void 0);var CA=class{static{o(this,"InutNFeAttributes")}xmlns;versao};ji([(0,ar.IsString)(),Rs("design:type",String)],CA.prototype,"xmlns",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],CA.prototype,"versao",void 0);var Ts=class{static{o(this,"InfInut")}$;tpAmb;xServ="INUTILIZAR";cUF;ano;CNPJ;CPF;mod;serie;nNFIni;nNFFin;xJust};ji([(0,ar.ValidateNested)(),(0,A_.Type)(()=>E_),Rs("design:type",typeof IInfInutAttributes>"u"?Object:IInfInutAttributes)],Ts.prototype,"$",void 0);ji([(0,ar.IsEnum)(Me),Rs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Ts.prototype,"tpAmb",void 0);ji([(0,ar.IsOptional)()],Ts.prototype,"xServ",void 0);ji([(0,ar.IsEnum)(le),Rs("design:type",typeof StateCode>"u"?Object:StateCode)],Ts.prototype,"cUF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^[0-9]{2}$/),Rs("design:type",String)],Ts.prototype,"ano",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],Ts.prototype,"CNPJ",void 0);ji([(0,ar.IsString)(),(0,ar.IsOptional)(),Rs("design:type",String)],Ts.prototype,"CPF",void 0);ji([(0,ar.IsString)(),(0,ar.Length)(2,2),(0,ar.Matches)(/^(55|65)$/),Rs("design:type",String)],Ts.prototype,"mod",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,3}$/),Rs("design:type",String)],Ts.prototype,"serie",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Rs("design:type",String)],Ts.prototype,"nNFIni",void 0);ji([(0,ar.IsString)(),(0,ar.Matches)(/^[0-9]{1,9}$/),Rs("design:type",String)],Ts.prototype,"nNFFin",void 0);ji([(0,ar.IsString)(),(0,ar.MinLength)(15),(0,ar.MaxLength)(255),Rs("design:type",String)],Ts.prototype,"xJust",void 0);Ts=ji([Qr({properties:["CNPJ","CPF"],required:!0})],Ts);var hg=class{static{o(this,"InutilizacaoPayload")}$;infInut;Signature};ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,A_.Type)(()=>CA),Rs("design:type",typeof IInutNFeAttributes>"u"?Object:IInutNFeAttributes)],hg.prototype,"$",void 0);ji([(0,ar.IsObject)(),(0,ar.ValidateNested)(),(0,A_.Type)(()=>Ts),Rs("design:type",typeof IInfInut>"u"?Object:IInfInut)],hg.prototype,"infInut",void 0);ji([(0,ar.Allow)(),Rs("design:type",typeof Signature>"u"?Object:Signature)],hg.prototype,"Signature",void 0);var ml=require("class-validator");function A8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(A8,"_ts_decorate");function GZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(GZ,"_ts_metadata");var dg=class{static{o(this,"ConsultaProtocoloPayload")}tpAmb;xServ="CONSULTAR";chNFe};A8([(0,ml.IsEnum)(Me),GZ("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],dg.prototype,"tpAmb",void 0);A8([(0,ml.IsOptional)()],dg.prototype,"xServ",void 0);A8([(0,ml.IsString)(),(0,ml.Length)(44,44),(0,ml.Matches)(/^[0-9]{44}$/),GZ("design:type",String)],dg.prototype,"chNFe",void 0);var cee=require("class-transformer"),du=require("class-validator");var wa=require("class-validator");var Ot=require("class-validator"),wi=require("class-transformer");var xt=require("class-validator"),EA=require("class-transformer");function qt(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qt,"_ts_decorate");function Ht(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ht,"_ts_metadata");var Mf=class{static{o(this,"RefNF")}cUF;AAMM;CNPJ;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"AAMM",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"CNPJ",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Mf.prototype,"nNF",void 0);var wo=class{static{o(this,"RefNFP")}cUF;AAMM;CNPJ="";CPF="";IE;mod;serie;nNF};qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"AAMM",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"CNPJ",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"CPF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"IE",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],wo.prototype,"nNF",void 0);wo=qt([Qr({properties:["CNPJ","CPF"],required:!0})],wo);var DS=class{static{o(this,"RefECF")}mod;nECF;nCOO};qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"nECF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],DS.prototype,"nCOO",void 0);var qf=class{static{o(this,"NFref")}refNFe;refNFeSig;refNF;refNFP;refCTe;refECF};qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refNFe",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refNFeSig",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>Mf),Ht("design:type",typeof IRefNF>"u"?Object:IRefNF)],qf.prototype,"refNF",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>wo),Ht("design:type",typeof IRefNFP>"u"?Object:IRefNFP)],qf.prototype,"refNFP",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],qf.prototype,"refCTe",void 0);qt([(0,xt.IsOptional)(),(0,xt.ValidateNested)(),(0,EA.Type)(()=>DS),Ht("design:type",typeof IRefECF>"u"?Object:IRefECF)],qf.prototype,"refECF",void 0);var Yr=class{static{o(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};qt([(0,xt.IsEnum)(le),Ht("design:type",typeof StateCode>"u"?Object:StateCode)],Yr.prototype,"cUF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"cNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"natOp",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"mod",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"serie",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"nNF",void 0);qt([kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhEmi",void 0);qt([(0,xt.IsOptional)(),kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhSaiEnt",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"tpNF",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"idDest",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"cMunFG",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"tpImp",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof TpEmis>"u"?Object:TpEmis)],Yr.prototype,"tpEmis",void 0);qt([(0,xt.IsString)(),(0,xt.IsOptional)(),Ht("design:type",String)],Yr.prototype,"cDV",void 0);qt([(0,xt.IsString)(),Ht("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Yr.prototype,"tpAmb",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"finNFe",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indFinal",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indPres",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"indIntermed",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"procEmi",void 0);qt([(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"verProc",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),Ht("design:type",String)],Yr.prototype,"dhCont",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsString)(),Ht("design:type",String)],Yr.prototype,"xJust",void 0);qt([(0,xt.IsOptional)(),(0,xt.IsArray)(),(0,xt.ArrayMaxSize)(999),(0,xt.ValidateNested)({each:!0}),(0,EA.Type)(()=>qf),Ht("design:type",Array)],Yr.prototype,"NFref",void 0);var Ui=require("class-validator");var XZ=require("class-transformer");var _s=require("class-validator");function Ju(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ju,"_ts_decorate");function Qu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Qu,"_ts_metadata");var Ds=class{static{o(this,"EnderEmit")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xLgr",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"nro",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xCpl",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xBairro",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"cMun",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xMun",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"UF",void 0);Ju([(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"CEP",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"cPais",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"xPais",void 0);Ju([(0,_s.IsOptional)(),(0,_s.IsString)(),Qu("design:type",String)],Ds.prototype,"fone",void 0);function Yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Yu,"_ts_decorate");function gl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gl,"_ts_metadata");var ns=class{static{o(this,"Emit")}CNPJ="";CPF="";xNome;xFant;enderEmit;IE;IEST;IM;CNAE;CRT};Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CNPJ",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CPF",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"xNome",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"xFant",void 0);Yu([(0,Ui.ValidateNested)(),(0,XZ.Type)(()=>Ds),gl("design:type",typeof Ds>"u"?Object:Ds)],ns.prototype,"enderEmit",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IE",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IEST",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"IM",void 0);Yu([(0,Ui.IsOptional)(),(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CNAE",void 0);Yu([(0,Ui.IsString)(),gl("design:type",String)],ns.prototype,"CRT",void 0);ns=Yu([Qr({properties:["CNPJ","CPF"],required:!0})],ns);var pi=require("class-validator"),WZ=require("class-transformer");var jn=require("class-validator");function Zu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Zu,"_ts_decorate");function ec(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(ec,"_ts_metadata");var ya=class{static{o(this,"EnderDest")}xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone};Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xLgr",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"nro",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xCpl",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xBairro",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"cMun",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xMun",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"UF",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"CEP",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"cPais",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"xPais",void 0);Zu([(0,jn.IsOptional)(),(0,jn.IsString)(),ec("design:type",String)],ya.prototype,"fone",void 0);function tc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tc,"_ts_decorate");function vl(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vl,"_ts_metadata");var is=class{static{o(this,"Dest")}CNPJ="";CPF="";idEstrangeiro;xNome;enderDest;indIEDest;IE;ISUF;IM;email};tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CNPJ",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"CPF",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"idEstrangeiro",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"xNome",void 0);tc([(0,pi.IsOptional)(),(0,pi.ValidateNested)(),(0,WZ.Type)(()=>ya),vl("design:type",typeof IEnderDest>"u"?Object:IEnderDest)],is.prototype,"enderDest",void 0);tc([(0,pi.IsString)(),vl("design:type",String)],is.prototype,"indIEDest",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IE",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"ISUF",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"IM",void 0);tc([(0,pi.IsOptional)(),(0,pi.IsString)(),vl("design:type",String)],is.prototype,"email",void 0);is=tc([Qr({properties:["CNPJ","CPF"],required:!0})],is);var on=require("class-validator");function Os(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Os,"_ts_decorate");function Ys(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ys,"_ts_metadata");var En=class{static{o(this,"Local")}CNPJ;CPF;xNome;xLgr;nro;xCpl;xBairro;cMun;xMun;UF;CEP;cPais;xPais;fone;email;IE};Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CNPJ",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CPF",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xNome",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xLgr",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"nro",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xCpl",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xBairro",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"cMun",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xMun",void 0);Os([(0,on.IsString)(),Ys("design:type",String)],En.prototype,"UF",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"CEP",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"cPais",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"xPais",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"fone",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"email",void 0);Os([(0,on.IsOptional)(),(0,on.IsString)(),Ys("design:type",String)],En.prototype,"IE",void 0);En=Os([Qr({properties:["CNPJ","CPF"]})],En);var _S=require("class-validator");function N8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(N8,"_ts_decorate");function JZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(JZ,"_ts_metadata");var yl=class{static{o(this,"AutXML")}CNPJ;CPF};N8([(0,_S.IsOptional)(),(0,_S.IsString)(),JZ("design:type",String)],yl.prototype,"CNPJ",void 0);N8([(0,_S.IsOptional)(),(0,_S.IsString)(),JZ("design:type",String)],yl.prototype,"CPF",void 0);yl=N8([Qr({properties:["CNPJ","CPF"]})],yl);var AA=require("class-validator");function QZ(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(QZ,"_ts_decorate");function YZ(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(YZ,"_ts_metadata");var Id=class{static{o(this,"InfIntermed")}CNPJ;idCadIntTran};QZ([(0,AA.IsString)(),YZ("design:type",String)],Id.prototype,"CNPJ",void 0);QZ([(0,AA.IsOptional)(),(0,AA.IsString)(),YZ("design:type",String)],Id.prototype,"idCadIntTran",void 0);var mg=require("class-validator");function I8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(I8,"_ts_decorate");function T8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(T8,"_ts_metadata");var Hf=class{static{o(this,"Exporta")}UFSaidaPais;xLocExporta;xLocDespacho};I8([(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"UFSaidaPais",void 0);I8([(0,mg.IsOptional)(),(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"xLocExporta",void 0);I8([(0,mg.IsOptional)(),(0,mg.IsString)(),T8("design:type",String)],Hf.prototype,"xLocDespacho",void 0);var Td=require("class-validator");function R8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(R8,"_ts_decorate");function D8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(D8,"_ts_metadata");var zf=class{static{o(this,"Compra")}xNEmp;xPed;xCont};R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xNEmp",void 0);R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xPed",void 0);R8([(0,Td.IsOptional)(),(0,Td.IsString)(),D8("design:type",String)],zf.prototype,"xCont",void 0);var Sl=require("class-validator");function OS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(OS,"_ts_decorate");function PS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(PS,"_ts_metadata");var ou=class{static{o(this,"InfRespTec")}CNPJ;xContato;email;fone;idCSRT;hashCSRT};OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"CNPJ",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"xContato",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"email",void 0);OS([(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"fone",void 0);OS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"idCSRT",void 0);OS([(0,Sl.IsOptional)(),(0,Sl.IsString)(),PS("design:type",String)],ou.prototype,"hashCSRT",void 0);var yg=require("class-validator"),N_=require("class-transformer");var rc=require("class-validator");function tn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(tn,"_ts_decorate");function rn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(rn,"_ts_metadata");var qr=class{static{o(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};tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBC",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSDeson",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPUFDest",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFDest",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSUFRemet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCP",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vBCST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPST",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFCPSTRet",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMono",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMono",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoReten",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoReten",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"qBCMonoRet",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vICMSMonoRet",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vProd",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vFrete",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vSeg",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vDesc",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vII",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPI",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vIPIDevol",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vPIS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vCOFINS",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vOutro",void 0);tn([Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vNF",void 0);tn([(0,rc.IsOptional)(),Se({fixed:2}),rn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],qr.prototype,"vTotTrib",void 0);var _n=require("class-validator");function uu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(uu,"_ts_decorate");function cu(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(cu,"_ts_metadata");var Zs=class{static{o(this,"ISSQNTot")}vServ;vBC;vISS;vPIS;vCOFINS;dCompet;vDeducao;vOutro;vDescIncond;vDescCond;vISSRet;cRegTrib};uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vServ",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vBC",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vISS",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vPIS",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vCOFINS",void 0);uu([(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"dCompet",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDeducao",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vOutro",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDescIncond",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vDescCond",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"vISSRet",void 0);uu([(0,_n.IsOptional)(),(0,_n.IsString)(),cu("design:type",String)],Zs.prototype,"cRegTrib",void 0);var Rd=require("class-validator");function gg(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(gg,"_ts_decorate");function vg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(vg,"_ts_metadata");var nc=class{static{o(this,"RetTrib")}vRetPIS;vRetCOFINS;vRetCSLL;vBCIRRF;vIRRF;vBCRetPrev;vRetPrev};gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetPIS",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetCOFINS",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetCSLL",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vBCIRRF",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vIRRF",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vBCRetPrev",void 0);gg([(0,Rd.IsOptional)(),Se({fixed:2}),vg("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],nc.prototype,"vRetPrev",void 0);function _8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_8,"_ts_decorate");function O8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(O8,"_ts_metadata");var Kf=class{static{o(this,"Total")}ICMSTot;ISSQNtot;retTrib};_8([(0,yg.ValidateNested)(),(0,N_.Type)(()=>qr),O8("design:type",typeof IICMSTot>"u"?Object:IICMSTot)],Kf.prototype,"ICMSTot",void 0);_8([(0,yg.IsOptional)(),(0,yg.ValidateNested)(),(0,N_.Type)(()=>Zs),O8("design:type",typeof IISSQNTot>"u"?Object:IISSQNTot)],Kf.prototype,"ISSQNtot",void 0);_8([(0,yg.IsOptional)(),(0,yg.ValidateNested)(),(0,N_.Type)(()=>nc),O8("design:type",typeof IRetTrib>"u"?Object:IRetTrib)],Kf.prototype,"retTrib",void 0);var bi=require("class-validator"),US=require("class-transformer");var ta=require("class-validator");function Dd(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Dd,"_ts_decorate");function Sg(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Sg,"_ts_metadata");var ea=class{static{o(this,"Transporta")}CNPJ;CPF;xNome;IE;xEnder;xMun;UF};Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"CNPJ",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"CPF",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xNome",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"IE",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xEnder",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"xMun",void 0);Dd([(0,ta.IsOptional)(),(0,ta.IsString)(),Sg("design:type",String)],ea.prototype,"UF",void 0);ea=Dd([Qr({properties:["CNPJ","CPF"]})],ea);var xl=require("class-validator");function BS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(BS,"_ts_decorate");function FS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(FS,"_ts_metadata");var Co=class{static{o(this,"RetTransp")}vServ;vBCRet;pICMSRet;vICMSRet;CFOP;cMunFG};BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vServ",void 0);BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vBCRet",void 0);BS([(0,xl.IsOptional)(),Se({fixed:4}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"pICMSRet",void 0);BS([(0,xl.IsOptional)(),Se({fixed:2}),FS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Co.prototype,"vICMSRet",void 0);BS([(0,xl.IsOptional)(),(0,xl.IsString)(),FS("design:type",String)],Co.prototype,"CFOP",void 0);BS([(0,xl.IsOptional)(),(0,xl.IsString)(),FS("design:type",String)],Co.prototype,"cMunFG",void 0);var Wa=require("class-validator");function LS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(LS,"_ts_decorate");function kS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(kS,"_ts_metadata");var bl=class{static{o(this,"VeicTransp")}placa;UF;RNTC};LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"placa",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"UF",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],bl.prototype,"RNTC",void 0);var xg=class{static{o(this,"Reboque")}placa;UF;RNTC};LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"placa",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"UF",void 0);LS([(0,Wa.IsOptional)(),(0,Wa.IsString)(),kS("design:type",String)],xg.prototype,"RNTC",void 0);var lu=require("class-validator");function VS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(VS,"_ts_decorate");function jS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(jS,"_ts_metadata");var wl=class{static{o(this,"Vol")}qVol;esp;marca;nVol;pesoL;pesoB};VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"qVol",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"esp",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"marca",void 0);VS([(0,lu.IsOptional)(),(0,lu.IsString)(),jS("design:type",String)],wl.prototype,"nVol",void 0);VS([(0,lu.IsOptional)(),Se({fixed:3}),jS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoL",void 0);VS([(0,lu.IsOptional)(),Se({fixed:3}),jS("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wl.prototype,"pesoB",void 0);function $f(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($f,"_ts_decorate");function _d(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_d,"_ts_metadata");var ra=class{static{o(this,"Transp")}modFrete;transporta;retTransp;veicTransp;reboque;vagao;balsa;vol};$f([(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"modFrete",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>ea),_d("design:type",typeof ea>"u"?Object:ea)],ra.prototype,"transporta",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>Co),_d("design:type",typeof Co>"u"?Object:Co)],ra.prototype,"retTransp",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)(),(0,US.Type)(()=>bl),_d("design:type",typeof bl>"u"?Object:bl)],ra.prototype,"veicTransp",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,US.Type)(()=>xg),(0,bi.ArrayMaxSize)(5),_d("design:type",Array)],ra.prototype,"reboque",void 0);$f([(0,bi.IsOptional)(),(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"vagao",void 0);$f([(0,bi.IsOptional)(),(0,bi.IsString)(),_d("design:type",String)],ra.prototype,"balsa",void 0);$f([(0,bi.IsOptional)(),(0,bi.ValidateNested)({each:!0}),(0,US.Type)(()=>wl),(0,bi.ArrayMaxSize)(5e3),_d("design:type",Array)],ra.prototype,"vol",void 0);ra=$f([Qr({properties:["veicTransp","reboque"]}),Qr({properties:["vagao","balsa"]})],ra);var Mi=require("class-validator"),P8=require("class-transformer");function Xf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Xf,"_ts_decorate");function Wf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Wf,"_ts_metadata");var Gf=class{static{o(this,"Fat")}nFat;vOrig;vDesc;vLiq};Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],Gf.prototype,"nFat",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vOrig",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vDesc",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Gf.prototype,"vLiq",void 0);var MS=class{static{o(this,"Dup")}nDup;dVenc;vDup};Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],MS.prototype,"nDup",void 0);Xf([(0,Mi.IsOptional)(),(0,Mi.IsString)(),Wf("design:type",String)],MS.prototype,"dVenc",void 0);Xf([(0,Mi.IsOptional)(),Se({fixed:2}),Wf("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],MS.prototype,"vDup",void 0);var Od=class{static{o(this,"Cobr")}fat;dup};Xf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)(),(0,P8.Type)(()=>Gf),Wf("design:type",typeof Gf>"u"?Object:Gf)],Od.prototype,"fat",void 0);Xf([(0,Mi.IsOptional)(),(0,Mi.ValidateNested)({each:!0}),(0,Mi.ArrayMaxSize)(120),(0,P8.Type)(()=>MS),Wf("design:type",Array)],Od.prototype,"dup",void 0);var Fd=require("class-validator"),ree=require("class-transformer");var El=require("class-validator"),ZZ=require("class-transformer");var Pd=require("class-validator");function B8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B8,"_ts_decorate");function F8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F8,"_ts_metadata");var Cl=class{static{o(this,"Card")}cNPJ;tBand;cAut};B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"cNPJ",void 0);B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"tBand",void 0);B8([(0,Pd.IsOptional)(),(0,Pd.IsString)(),F8("design:type",String)],Cl.prototype,"cAut",void 0);function NA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NA,"_ts_decorate");function IA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(IA,"_ts_metadata");var Jf=class{static{o(this,"DetPag")}indPag;tPag;vPag;card;xPag};NA([(0,El.IsOptional)(),(0,El.IsString)(),IA("design:type",String)],Jf.prototype,"indPag",void 0);NA([(0,El.IsString)(),IA("design:type",typeof TPag>"u"?Object:TPag)],Jf.prototype,"tPag",void 0);NA([Se({fixed:2}),IA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Jf.prototype,"vPag",void 0);NA([(0,El.IsOptional)(),(0,El.ValidateNested)(),(0,ZZ.Type)(()=>Cl),IA("design:type",typeof Cl>"u"?Object:Cl)],Jf.prototype,"card",void 0);NA([(0,El.IsOptional)(),(0,El.IsString)(),IA("design:type",String)],Jf.prototype,"xPag",void 0);function eee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(eee,"_ts_decorate");function tee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(tee,"_ts_metadata");var Bd=class{static{o(this,"Pag")}detPag;vTroco};eee([(0,Fd.ValidateNested)({each:!0}),(0,Fd.ArrayMinSize)(1),(0,Fd.ArrayMaxSize)(100),(0,ree.Type)(()=>Jf),tee("design:type",Array)],Bd.prototype,"detPag",void 0);eee([(0,Fd.IsOptional)(),Se({fixed:2}),tee("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bd.prototype,"vTroco",void 0);var ni=require("class-validator"),I_=require("class-transformer");function Qf(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Qf,"_ts_decorate");function Yf(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Yf,"_ts_metadata");var qS=class{static{o(this,"InfAdicObs")}xCampo;xTexto};Qf([(0,ni.IsString)(),Yf("design:type",String)],qS.prototype,"xCampo",void 0);Qf([(0,ni.IsString)(),Yf("design:type",String)],qS.prototype,"xTexto",void 0);var TA=class{static{o(this,"ProcRef")}nProc;indProc};Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],TA.prototype,"nProc",void 0);Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],TA.prototype,"indProc",void 0);var ic=class{static{o(this,"InfAdic")}infAdFisco;infCpl;obsCont;obsFisco;procRef};Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],ic.prototype,"infAdFisco",void 0);Qf([(0,ni.IsOptional)(),(0,ni.IsString)(),Yf("design:type",String)],ic.prototype,"infCpl",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>qS),(0,ni.ArrayMaxSize)(10),Yf("design:type",Array)],ic.prototype,"obsCont",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>qS),(0,ni.ArrayMaxSize)(10),Yf("design:type",Array)],ic.prototype,"obsFisco",void 0);Qf([(0,ni.IsOptional)(),(0,ni.ValidateNested)({each:!0}),(0,I_.Type)(()=>TA),(0,ni.ArrayMaxSize)(100),Yf("design:type",Array)],ic.prototype,"procRef",void 0);var mn=require("class-validator"),R_=require("class-transformer");function Sa(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Sa,"_ts_decorate");function xa(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(xa,"_ts_metadata");var T_=class{static{o(this,"ForDiaAttributes")}dia};Sa([(0,mn.IsString)(),xa("design:type",String)],T_.prototype,"dia",void 0);var RA=class{static{o(this,"ForDia")}$;qtde};Sa([(0,mn.IsObject)(),(0,mn.IsNotEmptyObject)(),(0,R_.Type)(()=>T_),xa("design:type",typeof IForDiaAttributes>"u"?Object:IForDiaAttributes)],RA.prototype,"$",void 0);Sa([(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],RA.prototype,"qtde",void 0);var DA=class{static{o(this,"Deduc")}xDed;vDed};Sa([(0,mn.IsString)(),xa("design:type",String)],DA.prototype,"xDed",void 0);Sa([Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],DA.prototype,"vDed",void 0);var na=class{static{o(this,"Cana")}safra;ref;forDia;qTotMes;qTotAnt;qTotGer;deduc;vFor;vTotDed;vLiqFor};Sa([(0,mn.IsString)(),xa("design:type",String)],na.prototype,"safra",void 0);Sa([(0,mn.IsString)(),xa("design:type",String)],na.prototype,"ref",void 0);Sa([(0,mn.ValidateNested)({each:!0}),(0,mn.ArrayMaxSize)(31),(0,R_.Type)(()=>RA),xa("design:type",Array)],na.prototype,"forDia",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotMes",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotAnt",void 0);Sa([(0,mn.IsOptional)(),(0,mn.IsString)(),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"qTotGer",void 0);Sa([(0,mn.IsOptional)(),(0,mn.ValidateNested)({each:!0}),(0,mn.ArrayMaxSize)(10),(0,R_.Type)(()=>DA),xa("design:type",Array)],na.prototype,"deduc",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vFor",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vTotDed",void 0);Sa([(0,mn.IsOptional)(),Se({fixed:2}),xa("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],na.prototype,"vLiqFor",void 0);var sa=require("class-validator"),rx=require("class-transformer");var ot=require("class-validator");var Al=require("class-transformer");var sc=require("class-validator");function _A(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_A,"_ts_decorate");function OA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(OA,"_ts_metadata");var Zf=class{static{o(this,"Rastro")}nLote;qLote;dFab;dVal;cAgreg};_A([(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"nLote",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"qLote",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"dFab",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"dVal",void 0);_A([(0,sc.IsOptional)(),(0,sc.IsString)(),OA("design:type",String)],Zf.prototype,"cAgreg",void 0);var nn=require("class-validator"),nee=require("class-transformer");function as(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(as,"_ts_decorate");function Ps(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ps,"_ts_metadata");var Ld=class{static{o(this,"Adi")}nAdicao;nSeqAdic;cFabricante;vDescDI;nDraw};as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nAdicao",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nSeqAdic",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"cFabricante",void 0);as([Se({fixed:2}),Ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ld.prototype,"vDescDI",void 0);as([(0,nn.IsOptional)(),(0,nn.IsString)(),Ps("design:type",String)],Ld.prototype,"nDraw",void 0);var ss=class{static{o(this,"DI")}nDI;dDI;xLocDesemb;UFDesemb;dDesemb;tpViaTransp;vAFRMM;tpIntermedio;CNPJ="";CPF="";UFTerceiro;adi};as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"nDI",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"dDI",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"xLocDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"UFDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"dDesemb",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"tpViaTransp",void 0);as([(0,nn.IsOptional)(),Se({fixed:2}),Ps("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ss.prototype,"vAFRMM",void 0);as([(0,nn.IsString)(),Ps("design:type",String)],ss.prototype,"tpIntermedio",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"CNPJ",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"CPF",void 0);as([(0,nn.IsString)(),(0,nn.IsOptional)(),Ps("design:type",String)],ss.prototype,"UFTerceiro",void 0);as([(0,nn.IsArray)(),(0,nn.ValidateNested)({each:!0}),(0,nee.Type)(()=>Ld),(0,nn.ArrayMaxSize)(999),(0,nn.ArrayMinSize)(1),Ps("design:type",Array)],ss.prototype,"adi",void 0);ss=as([Qr({properties:["CNPJ","CPF"],required:!0})],ss);var iee=require("class-transformer"),ep=require("class-validator");function PA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(PA,"_ts_decorate");function BA(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(BA,"_ts_metadata");var HS=class{static{o(this,"ExportInd")}nRE;chNFe;qExport};PA([(0,ep.IsString)(),BA("design:type",String)],HS.prototype,"nRE",void 0);PA([(0,ep.IsString)(),BA("design:type",String)],HS.prototype,"chNFe",void 0);PA([Se({fixed:4}),BA("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],HS.prototype,"qExport",void 0);var zS=class{static{o(this,"DetExport")}nDraw;exportInd};PA([(0,ep.IsOptional)(),(0,ep.IsString)(),BA("design:type",String)],zS.prototype,"nDraw",void 0);PA([(0,ep.IsOptional)(),(0,ep.ValidateNested)(),(0,iee.Type)(()=>HS),BA("design:type",typeof IExportInd>"u"?Object:IExportInd)],zS.prototype,"exportInd",void 0);var L8=require("class-validator");function see(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(see,"_ts_decorate");function aee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(aee,"_ts_metadata");var KS=class{static{o(this,"InfProdNFF")}cProdFisco;cOperNFF};see([(0,L8.IsString)(),aee("design:type",String)],KS.prototype,"cProdFisco",void 0);see([(0,L8.IsString)(),aee("design:type",String)],KS.prototype,"cOperNFF",void 0);var j8=require("class-validator");function k8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k8,"_ts_decorate");function V8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V8,"_ts_metadata");var bg=class{static{o(this,"InfProdEmb")}xEmb;qVolEmb;uEmb};k8([(0,j8.IsString)(),V8("design:type",String)],bg.prototype,"xEmb",void 0);k8([Se({fixed:3}),V8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],bg.prototype,"qVolEmb",void 0);k8([(0,j8.IsString)(),V8("design:type",String)],bg.prototype,"uEmb",void 0);var On=require("class-validator");function Un(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Un,"_ts_decorate");function Mn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Mn,"_ts_metadata");var un=class{static{o(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};Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpOp",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"chassi",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cCor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"xCor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pot",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cilin",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pesoL",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"pesoB",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"nSerie",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpComb",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"nMotor",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"CMT",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"dist",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"anoMod",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"anoFab",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpPint",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"espVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"VIN",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"condVeic",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cMod",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"cCorDENATRAN",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"lota",void 0);Un([(0,On.IsString)(),Mn("design:type",String)],un.prototype,"tpRest",void 0);var q8=require("class-validator");function U8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(U8,"_ts_decorate");function M8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M8,"_ts_metadata");var wg=class{static{o(this,"Med")}cProdANVISA;xMotivoIsencao;vPMC};U8([(0,q8.IsString)(),M8("design:type",String)],wg.prototype,"cProdANVISA",void 0);U8([(0,q8.IsString)(),M8("design:type",String)],wg.prototype,"xMotivoIsencao",void 0);U8([Se({fixed:2}),M8("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],wg.prototype,"vPMC",void 0);var FA=require("class-validator");function D_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(D_,"_ts_decorate");function __(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(__,"_ts_metadata");var kd=class{static{o(this,"Arma")}tpArma;nSerie;nCano;descr};D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"tpArma",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"nSerie",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"nCano",void 0);D_([(0,FA.IsString)(),__("design:type",String)],kd.prototype,"descr",void 0);var Fr=require("class-validator"),O_=require("class-transformer");function qn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qn,"_ts_decorate");function Hn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Hn,"_ts_metadata");var $S=class{static{o(this,"OrigComb")}indImport;cUFOrig;pOrig};qn([(0,Fr.IsString)(),Hn("design:type",String)],$S.prototype,"indImport",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],$S.prototype,"cUFOrig",void 0);qn([Se({fixed:4}),(0,Fr.Max)(100),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],$S.prototype,"pOrig",void 0);var GS=class{static{o(this,"CIDE")}qBCProd;vAliqProd;vCIDE};qn([Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"qBCProd",void 0);qn([Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"vAliqProd",void 0);qn([Se({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],GS.prototype,"vCIDE",void 0);var Vd=class{static{o(this,"Encerrante")}nBico;nBomba;nTanque;vEncIni;vEncFin};qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nBico",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nBomba",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Vd.prototype,"nTanque",void 0);qn([Se({fixed:3}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vEncIni",void 0);qn([Se({fixed:3}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Vd.prototype,"vEncFin",void 0);var Bs=class{static{o(this,"Comb")}cProdANP;descANP;pGLP;pGNn;pGNi;vPart;CODIF;qTemp;UFCons;CIDE;encerrante;pBio;origComb};qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"cProdANP",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"descANP",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGLP",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGNn",void 0);qn([(0,Fr.IsOptional)(),(0,Fr.Max)(100),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pGNi",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:2}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"vPart",void 0);qn([(0,Fr.IsString)(),(0,Fr.IsOptional)(),Hn("design:type",String)],Bs.prototype,"CODIF",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"qTemp",void 0);qn([(0,Fr.IsString)(),Hn("design:type",String)],Bs.prototype,"UFCons",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,O_.Type)(()=>GS),Hn("design:type",typeof ICIDE>"u"?Object:ICIDE)],Bs.prototype,"CIDE",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)(),(0,O_.Type)(()=>Vd),Hn("design:type",typeof IEncerrante>"u"?Object:IEncerrante)],Bs.prototype,"encerrante",void 0);qn([(0,Fr.IsOptional)(),Se({fixed:4}),Hn("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Bs.prototype,"pBio",void 0);qn([(0,Fr.IsObject)(),(0,Fr.ValidateNested)({each:!0}),(0,O_.Type)(()=>$S),(0,Fr.ArrayMaxSize)(30),(0,Fr.IsOptional)(),Hn("design:type",Array)],Bs.prototype,"origComb",void 0);function dr(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(dr,"_ts_decorate");function gr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gr,"_ts_metadata");var zt=class{static{o(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};dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cEAN",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cBarra",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"xProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"NCM",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ArrayMaxSize)(8),(0,ot.IsString)({each:!0}),gr("design:type",Array)],zt.prototype,"NVE",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CEST",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"indEscala",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CNPJFab",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cBenef",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),gr("design:type",Object)],zt.prototype,"gCred",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"EXTIPI",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"CFOP",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"uCom",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qCom",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnCom",void 0);dr([Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vProd",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"cEANTrib",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"uTrib",void 0);dr([Se({fixed:4}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"qTrib",void 0);dr([Se({fixed:10}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vUnTrib",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vFrete",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vSeg",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vDesc",void 0);dr([(0,ot.IsOptional)(),Se({fixed:2}),gr("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],zt.prototype,"vOutro",void 0);dr([(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"indTot",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(100),(0,Al.Type)(()=>ss),gr("design:type",Array)],zt.prototype,"DI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Al.Type)(()=>zS),gr("design:type",Array)],zt.prototype,"detExport",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"xPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nItemPed",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nFCI",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsArray)(),(0,ot.ValidateNested)({each:!0}),(0,ot.ArrayMaxSize)(500),(0,Al.Type)(()=>Zf),gr("design:type",Array)],zt.prototype,"rastro",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>KS),gr("design:type",typeof IInfProdNFF>"u"?Object:IInfProdNFF)],zt.prototype,"infProdNFF",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>bg),gr("design:type",typeof IInfProdEmb>"u"?Object:IInfProdEmb)],zt.prototype,"infProdEmb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>un),gr("design:type",typeof IVeicProd>"u"?Object:IVeicProd)],zt.prototype,"veicProd",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>wg),gr("design:type",typeof IMed>"u"?Object:IMed)],zt.prototype,"med",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)({each:!0}),(0,Al.Type)(()=>kd),(0,ot.ArrayMaxSize)(500),gr("design:type",Array)],zt.prototype,"arma",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsObject)(),(0,ot.ValidateNested)(),(0,Al.Type)(()=>Bs),gr("design:type",typeof IComb>"u"?Object:IComb)],zt.prototype,"comb",void 0);dr([(0,ot.IsOptional)(),(0,ot.IsString)(),gr("design:type",String)],zt.prototype,"nRECOPI",void 0);zt=dr([Qr({properties:["veicProd","med","arma","comb"]})],zt);var Ol=require("class-transformer"),ii=require("class-validator");var ue=require("class-validator"),us=require("class-transformer");function Ae(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ae,"_ts_decorate");function Ie(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ie,"_ts_metadata");var tp=class{static{o(this,"ICMS00")}orig;CST;modBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],tp.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],tp.prototype,"vICMS",void 0);var Eo=class{static{o(this,"ICMS10")}orig;CST;modBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Eo.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eo.prototype,"vICMSST",void 0);var Nl=class{static{o(this,"ICMS20")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Nl.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Nl.prototype,"vICMS",void 0);var rp=class{static{o(this,"ICMS30")}orig;CST;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],rp.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],rp.prototype,"vICMSST",void 0);var Cg=class{static{o(this,"ICMS40")}orig;CST;vICMSDeson;motDesICMS};Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Cg.prototype,"vICMSDeson",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Cg.prototype,"motDesICMS",void 0);var fu=class{static{o(this,"ICMS51")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;pDif;vICMSDif};Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],fu.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),(0,ue.Max)(100),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"pDif",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],fu.prototype,"vICMSDif",void 0);var np=class{static{o(this,"ICMS60")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],np.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],np.prototype,"vICMSSTRet",void 0);var Ja=class{static{o(this,"ICMS70")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Ja.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Ja.prototype,"vICMSST",void 0);var Qa=class{static{o(this,"ICMS90")}orig;CST;modBC;pRedBC;vBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],Qa.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Qa.prototype,"vICMSST",void 0);var os=class{static{o(this,"ICMSPart")}orig;CST;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;pMVAST;pRedBCST;vBCST;pICMSST;vICMSST;pBCOp;UFST};Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pMVAST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pRedBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],os.prototype,"pBCOp",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],os.prototype,"UFST",void 0);var ip=class{static{o(this,"ICMSST")}orig;CST;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ip.prototype,"CST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ip.prototype,"vICMSSTRet",void 0);var Eg=class{static{o(this,"ICMSSN101")}orig;CSOSN;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],Eg.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],Eg.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eg.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Eg.prototype,"vCredICMSSN",void 0);var LA=class{static{o(this,"ICMSSN102")}orig;CSOSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],LA.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],LA.prototype,"CSOSN",void 0);var ac=class{static{o(this,"ICMSSN201")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ac.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ac.prototype,"vCredICMSSN",void 0);var sp=class{static{o(this,"ICMSSN202")}orig;CSOSN;modBCST;vBCST;pICMSST;vICMSST};Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],sp.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],sp.prototype,"vICMSST",void 0);var ap=class{static{o(this,"ICMSSN500")}orig;CSOSN;vBCSTRet;pST;vICMSSubstituto;vICMSSTRet};Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ap.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vBCSTRet",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"pST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSubstituto",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ap.prototype,"vICMSSTRet",void 0);var ia=class{static{o(this,"ICMSSN900")}orig;CSOSN;modBC;vBC;pRedBC;pICMS;vICMS;modBCST;vBCST;pICMSST;vICMSST;pCredSN;vCredICMSSN};Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"orig",void 0);Ae([(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"CSOSN",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pRedBC",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMS",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMS",void 0);Ae([(0,ue.IsOptional)(),(0,ue.IsString)(),Ie("design:type",String)],ia.prototype,"modBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vBCST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vICMSST",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:4}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"pCredSN",void 0);Ae([(0,ue.IsOptional)(),Se({fixed:2}),Ie("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],ia.prototype,"vCredICMSSN",void 0);var Pn=class{static{o(this,"ICMS")}ICMS00;ICMS10;ICMS20;ICMS30;ICMS40;ICMS51;ICMS60;ICMS70;ICMS90;ICMSPart;ICMSST;ICMSSN101;ICMSSN102;ICMSSN201;ICMSSN202;ICMSSN500;ICMSSN900};Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>tp),Ie("design:type",typeof IICMS00>"u"?Object:IICMS00)],Pn.prototype,"ICMS00",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eo),Ie("design:type",typeof IICMS10>"u"?Object:IICMS10)],Pn.prototype,"ICMS10",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Nl),Ie("design:type",typeof IICMS20>"u"?Object:IICMS20)],Pn.prototype,"ICMS20",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>rp),Ie("design:type",typeof IICMS30>"u"?Object:IICMS30)],Pn.prototype,"ICMS30",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Cg),Ie("design:type",typeof IICMS40>"u"?Object:IICMS40)],Pn.prototype,"ICMS40",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>fu),Ie("design:type",typeof IICMS51>"u"?Object:IICMS51)],Pn.prototype,"ICMS51",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>np),Ie("design:type",typeof IICMS60>"u"?Object:IICMS60)],Pn.prototype,"ICMS60",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Ja),Ie("design:type",typeof IICMS70>"u"?Object:IICMS70)],Pn.prototype,"ICMS70",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Qa),Ie("design:type",typeof IICMS90>"u"?Object:IICMS90)],Pn.prototype,"ICMS90",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>os),Ie("design:type",typeof IICMSPart>"u"?Object:IICMSPart)],Pn.prototype,"ICMSPart",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ip),Ie("design:type",typeof IICMSST>"u"?Object:IICMSST)],Pn.prototype,"ICMSST",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>Eg),Ie("design:type",typeof IICMSSN101>"u"?Object:IICMSSN101)],Pn.prototype,"ICMSSN101",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>LA),Ie("design:type",typeof IICMSSN102>"u"?Object:IICMSSN102)],Pn.prototype,"ICMSSN102",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ac),Ie("design:type",typeof IICMSSN201>"u"?Object:IICMSSN201)],Pn.prototype,"ICMSSN201",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>sp),Ie("design:type",typeof IICMSSN202>"u"?Object:IICMSSN202)],Pn.prototype,"ICMSSN202",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ap),Ie("design:type",typeof IICMSSN500>"u"?Object:IICMSSN500)],Pn.prototype,"ICMSSN500",void 0);Ae([(0,ue.IsOptional)(),(0,ue.ValidateNested)(),(0,us.Type)(()=>ia),Ie("design:type",typeof IICMSSN900>"u"?Object:IICMSSN900)],Pn.prototype,"ICMSSN900",void 0);Pn=Ae([Qr({properties:["ICMS00","ICMS10","ICMS20","ICMS30","ICMS40","ICMS51","ICMS60","ICMS70","ICMS90","ICMSPart","ICMSST","ICMSSN101","ICMSSN102","ICMSSN201","ICMSSN202","ICMSSN500","ICMSSN900"]})],Pn);var An=require("class-validator"),H8=require("class-transformer");function Ao(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ao,"_ts_decorate");function No(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(No,"_ts_metadata");var op=class{static{o(this,"IPITrib")}CST;vBC;pIPI;qUnid;vUnid;vIPI};Ao([(0,An.IsString)(),No("design:type",String)],op.prototype,"CST",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vBC",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"pIPI",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"qUnid",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vUnid",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],op.prototype,"vIPI",void 0);var P_=class{static{o(this,"IPINT")}CST};Ao([(0,An.IsString)(),No("design:type",String)],P_.prototype,"CST",void 0);var pu=class{static{o(this,"IPI")}CNPJProd;cSelo;qSelo;cEnq;IPITrib;IPINT};Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"CNPJProd",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"cSelo",void 0);Ao([(0,An.IsOptional)(),(0,An.IsString)(),No("design:type",String)],pu.prototype,"qSelo",void 0);Ao([(0,An.IsString)(),No("design:type",String)],pu.prototype,"cEnq",void 0);Ao([(0,An.IsOptional)(),(0,An.ValidateNested)(),(0,H8.Type)(()=>op),No("design:type",typeof IIPITrib>"u"?Object:IIPITrib)],pu.prototype,"IPITrib",void 0);Ao([(0,An.IsOptional)(),(0,An.ValidateNested)(),(0,H8.Type)(()=>P_),No("design:type",typeof IIPINT>"u"?Object:IIPINT)],pu.prototype,"IPINT",void 0);var Tl=require("class-validator");function B_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(B_,"_ts_decorate");function F_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(F_,"_ts_metadata");var Il=class{static{o(this,"II")}vBC;vDespAdu;vII;vIOF};B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vBC",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vDespAdu",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vII",void 0);B_([(0,Tl.IsOptional)(),(0,Tl.IsString)(),F_("design:type",String)],Il.prototype,"vIOF",void 0);var Kt=require("class-validator"),kA=require("class-transformer");function zn(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(zn,"_ts_decorate");function Kn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Kn,"_ts_metadata");var up=class{static{o(this,"PISAliq")}CST;vBC;pPIS;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],up.prototype,"vPIS",void 0);var cp=class{static{o(this,"PISQtde")}CST;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],cp.prototype,"vPIS",void 0);var XS=class{static{o(this,"PISNT")}CST};zn([(0,Kt.IsString)(),Kn("design:type",String)],XS.prototype,"CST",void 0);var oc=class{static{o(this,"PISOutr")}CST;vBC;pPIS;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"CST",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],oc.prototype,"vPIS",void 0);var Rl=class{static{o(this,"PIS")}PISAliq;PISQtde;PISNT;PISOutr};zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>up),Kn("design:type",typeof up>"u"?Object:up)],Rl.prototype,"PISAliq",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>cp),Kn("design:type",typeof cp>"u"?Object:cp)],Rl.prototype,"PISQtde",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>XS),Kn("design:type",typeof XS>"u"?Object:XS)],Rl.prototype,"PISNT",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.ValidateNested)(),(0,kA.Type)(()=>oc),Kn("design:type",typeof oc>"u"?Object:oc)],Rl.prototype,"PISOutr",void 0);var uc=class{static{o(this,"PISST")}vBC;pPIS;qBCProd;vAliqProd;vPIS};zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vBC",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"pPIS",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"qBCProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vAliqProd",void 0);zn([(0,Kt.IsOptional)(),(0,Kt.IsString)(),Kn("design:type",String)],uc.prototype,"vPIS",void 0);var $t=require("class-validator"),VA=require("class-transformer");function $n(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o($n,"_ts_decorate");function Gn(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Gn,"_ts_metadata");var lp=class{static{o(this,"COFINSAliq")}CST;vBC;pCOFINS;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lp.prototype,"vCOFINS",void 0);var fp=class{static{o(this,"COFINSQtde")}CST;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],fp.prototype,"vCOFINS",void 0);var WS=class{static{o(this,"COFINSNT")}CST};$n([(0,$t.IsString)(),Gn("design:type",String)],WS.prototype,"CST",void 0);var cc=class{static{o(this,"COFINSOutr")}CST;vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"CST",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],cc.prototype,"vCOFINS",void 0);var Dl=class{static{o(this,"COFINS")}COFINSAliq;COFINSQtde;COFINSNT;COFINSOutr};$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>lp),Gn("design:type",typeof lp>"u"?Object:lp)],Dl.prototype,"COFINSAliq",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>fp),Gn("design:type",typeof fp>"u"?Object:fp)],Dl.prototype,"COFINSQtde",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>WS),Gn("design:type",typeof WS>"u"?Object:WS)],Dl.prototype,"COFINSNT",void 0);$n([(0,$t.IsOptional)(),(0,$t.ValidateNested)(),(0,VA.Type)(()=>cc),Gn("design:type",typeof cc>"u"?Object:cc)],Dl.prototype,"COFINSOutr",void 0);var lc=class{static{o(this,"COFINSST")}vBC;pCOFINS;qBCProd;vAliqProd;vCOFINS};$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vBC",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"pCOFINS",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"qBCProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vAliqProd",void 0);$n([(0,$t.IsOptional)(),(0,$t.IsString)(),Gn("design:type",String)],lc.prototype,"vCOFINS",void 0);var Ya=require("class-validator");function JS(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(JS,"_ts_decorate");function QS(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(QS,"_ts_metadata");var hu=class{static{o(this,"ISSQN")}vBC;vAliq;vISSQN;cMunFG;cListServ;cSitTrib};JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vBC",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vAliq",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"vISSQN",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cMunFG",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cListServ",void 0);JS([(0,Ya.IsOptional)(),(0,Ya.IsString)(),QS("design:type",String)],hu.prototype,"cSitTrib",void 0);var Oi=require("class-validator");function pp(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pp,"_ts_decorate");function hp(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hp,"_ts_metadata");var ba=class{static{o(this,"ICMSUFDest")}vBCUFDest;vBCFCPUFDest;pFCPUFDest;pICMSUFDest;pICMSInter;pICMSInterPart;vFCPUFDest;vICMSUFDest;vICMSUFRemet};pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vBCUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vBCFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSInter",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"pICMSInterPart",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vFCPUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vICMSUFDest",void 0);pp([(0,Oi.IsOptional)(),(0,Oi.IsString)(),hp("design:type",String)],ba.prototype,"vICMSUFRemet",void 0);function fc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(fc,"_ts_decorate");function _l(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(_l,"_ts_metadata");var cs=class{static{o(this,"Imposto")}vTotTrib;ICMS;IPI;ISSQN;II;PIS;PISST;COFINS;COFINSST;ICMSUFDest};fc([(0,ii.IsOptional)(),(0,ii.IsNumber)(),_l("design:type",Number)],cs.prototype,"vTotTrib",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Pn),_l("design:type",typeof IICMS>"u"?Object:IICMS)],cs.prototype,"ICMS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>pu),_l("design:type",typeof IIPI>"u"?Object:IIPI)],cs.prototype,"IPI",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>hu),_l("design:type",typeof IISSQN>"u"?Object:IISSQN)],cs.prototype,"ISSQN",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Il),_l("design:type",typeof III>"u"?Object:III)],cs.prototype,"II",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Rl),_l("design:type",typeof IPIS>"u"?Object:IPIS)],cs.prototype,"PIS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>uc),_l("design:type",typeof IPISST>"u"?Object:IPISST)],cs.prototype,"PISST",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>Dl),_l("design:type",typeof ICOFINS>"u"?Object:ICOFINS)],cs.prototype,"COFINS",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>lc),_l("design:type",typeof ICOFINSST>"u"?Object:ICOFINSST)],cs.prototype,"COFINSST",void 0);fc([(0,ii.IsOptional)(),(0,ii.ValidateNested)(),(0,Ol.Type)(()=>ba),_l("design:type",typeof IICMSUFDest>"u"?Object:IICMSUFDest)],cs.prototype,"ICMSUFDest",void 0);cs=fc([Qr({properties:["ICMS","ISSQN"]})],cs);var Ag=require("class-validator"),oee=require("class-transformer");function z8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(z8,"_ts_decorate");function K8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K8,"_ts_metadata");var L_=class{static{o(this,"IpiDevol")}vIPIDevol};z8([(0,Ag.IsString)(),K8("design:type",String)],L_.prototype,"vIPIDevol",void 0);var YS=class{static{o(this,"Devol")}pDevol;IPI};z8([(0,Ag.IsString)(),K8("design:type",String)],YS.prototype,"pDevol",void 0);z8([(0,Ag.IsOptional)(),(0,Ag.ValidateNested)(),(0,oee.Type)(()=>L_),K8("design:type",typeof IIpiDevol>"u"?Object:IIpiDevol)],YS.prototype,"IPI",void 0);var dp=require("class-validator"),$8=require("class-transformer");function k_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(k_,"_ts_decorate");function V_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(V_,"_ts_metadata");var ZS=class{static{o(this,"Observation")}xCampo;xTexto};k_([(0,dp.IsString)(),V_("design:type",String)],ZS.prototype,"xCampo",void 0);k_([(0,dp.IsString)(),V_("design:type",String)],ZS.prototype,"xTexto",void 0);var ex=class{static{o(this,"ObsItem")}obsCont;obsFisco};k_([(0,dp.IsOptional)(),(0,dp.ValidateNested)(),(0,$8.Type)(()=>ZS),V_("design:type",typeof IObservation>"u"?Object:IObservation)],ex.prototype,"obsCont",void 0);k_([(0,dp.IsOptional)(),(0,dp.ValidateNested)(),(0,$8.Type)(()=>ZS),V_("design:type",typeof IObservation>"u"?Object:IObservation)],ex.prototype,"obsFisco",void 0);function Ng(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Ng,"_ts_decorate");function Ig(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ig,"_ts_metadata");var tx=class{static{o(this,"DetAttributes")}nItem};Ng([(0,sa.IsString)(),Ig("design:type",String)],tx.prototype,"nItem",void 0);var Pl=class{static{o(this,"Det")}prod;imposto;impostoDevol;infAdProd;obsItem};Ng([(0,sa.IsObject)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>tx),Ig("design:type",typeof IDetAttributes>"u"?Object:IDetAttributes)],Pl.prototype,"$",void 0);Ng([(0,sa.ValidateNested)(),(0,rx.Type)(()=>zt),Ig("design:type",typeof IProd>"u"?Object:IProd)],Pl.prototype,"prod",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>cs),Ig("design:type",typeof IImposto>"u"?Object:IImposto)],Pl.prototype,"imposto",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>YS),Ig("design:type",typeof IDevol>"u"?Object:IDevol)],Pl.prototype,"impostoDevol",void 0);Ng([(0,sa.IsOptional)(),(0,sa.IsString)(),Ig("design:type",String)],Pl.prototype,"infAdProd",void 0);Ng([(0,sa.IsOptional)(),(0,sa.ValidateNested)(),(0,rx.Type)(()=>ex),Ig("design:type",typeof IObsItem>"u"?Object:IObsItem)],Pl.prototype,"obsItem",void 0);var Ls=require("class-validator");function pc(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(pc,"_ts_decorate");function hc(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(hc,"_ts_metadata");var Fs=class{static{o(this,"Avulsa")}CNPJ;xOrgao;matr;xAgente;fone;UF;nDAR;dEmi;vDAR;repEmi;dPag};pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"CNPJ",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"xOrgao",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"matr",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"xAgente",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"fone",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"UF",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"nDAR",void 0);pc([(0,Ls.IsOptional)(),kf({format:"YYYY-MM-DD"}),hc("design:type",typeof Date>"u"?Object:Date)],Fs.prototype,"dEmi",void 0);pc([(0,Ls.IsOptional)(),Se({fixed:2}),hc("design:type",typeof DecimalValue>"u"?Object:DecimalValue)],Fs.prototype,"vDAR",void 0);pc([(0,Ls.IsString)(),hc("design:type",String)],Fs.prototype,"repEmi",void 0);pc([(0,Ls.IsOptional)(),(0,Ls.IsDate)(),hc("design:type",typeof Date>"u"?Object:Date)],Fs.prototype,"dPag",void 0);var uee=require("class-validator");function NNe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(NNe,"_ts_decorate");function INe(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(INe,"_ts_metadata");var Tg=class{static{o(this,"InfSolicNFF")}xSolic};NNe([(0,uee.IsString)(),INe("design:type",String)],Tg.prototype,"xSolic",void 0);function hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(hi,"_ts_decorate");function di(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(di,"_ts_metadata");var Rg=class{static{o(this,"InfNFeAttributes")}Id;versao};hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Rg.prototype,"Id",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.IsString)(),di("design:type",String)],Rg.prototype,"versao",void 0);var Nn=class{static{o(this,"InfNFe")}ide;emit;avulsa;dest;retirada;entrega;autXML;det;total;transp;cobr;pag;infIntermed;infAdic;exporta;compra;cana;infRespTec;infSolicNFF};hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,wi.Type)(()=>Rg),(0,Ot.ValidateNested)(),di("design:type",typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes)],Nn.prototype,"$",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Yr),di("design:type",typeof IIde>"u"?Object:IIde)],Nn.prototype,"ide",void 0);hi([(0,Ot.IsObject)(),(0,Ot.IsNotEmptyObject)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ns),di("design:type",typeof IEmit>"u"?Object:IEmit)],Nn.prototype,"emit",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Fs),di("design:type",typeof IAvulsa>"u"?Object:IAvulsa)],Nn.prototype,"avulsa",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>is),di("design:type",typeof IDest>"u"?Object:IDest)],Nn.prototype,"dest",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>En),di("design:type",typeof ILocal>"u"?Object:ILocal)],Nn.prototype,"retirada",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>En),di("design:type",typeof ILocal>"u"?Object:ILocal)],Nn.prototype,"entrega",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(10),(0,wi.Type)(()=>yl),di("design:type",Array)],Nn.prototype,"autXML",void 0);hi([(0,Ot.ValidateNested)({each:!0}),(0,Ot.ArrayMaxSize)(990),(0,Ot.ArrayMinSize)(1),(0,wi.Type)(()=>Pl),di("design:type",Array)],Nn.prototype,"det",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Kf),di("design:type",typeof ITotal>"u"?Object:ITotal)],Nn.prototype,"total",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ra),di("design:type",typeof ITransp>"u"?Object:ITransp)],Nn.prototype,"transp",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Od),di("design:type",typeof ICobr>"u"?Object:ICobr)],Nn.prototype,"cobr",void 0);hi([(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Bd),di("design:type",typeof IPag>"u"?Object:IPag)],Nn.prototype,"pag",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Id),di("design:type",typeof IInfIntermed>"u"?Object:IInfIntermed)],Nn.prototype,"infIntermed",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ic),di("design:type",typeof IInfAdic>"u"?Object:IInfAdic)],Nn.prototype,"infAdic",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Hf),di("design:type",typeof IExporta>"u"?Object:IExporta)],Nn.prototype,"exporta",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>zf),di("design:type",typeof ICompra>"u"?Object:ICompra)],Nn.prototype,"compra",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>na),di("design:type",typeof ICana>"u"?Object:ICana)],Nn.prototype,"cana",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>ou),di("design:type",typeof IInfRespTec>"u"?Object:IInfRespTec)],Nn.prototype,"infRespTec",void 0);hi([(0,Ot.IsOptional)(),(0,Ot.ValidateNested)(),(0,wi.Type)(()=>Tg),di("design:type",typeof ISolicNFF>"u"?Object:ISolicNFF)],Nn.prototype,"infSolicNFF",void 0);var G8=require("class-transformer");function j_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(j_,"_ts_decorate");function U_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(U_,"_ts_metadata");var nx=class{static{o(this,"NFeAttributes")}xmlns};j_([(0,wa.IsString)(),(0,wa.IsNotEmpty)(),U_("design:type",String)],nx.prototype,"xmlns",void 0);var dc=class{static{o(this,"NFe")}$;infNFe;Signature};j_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,G8.Type)(()=>nx),(0,wa.ValidateNested)(),U_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],dc.prototype,"$",void 0);j_([(0,wa.IsObject)(),(0,wa.IsNotEmptyObject)(),(0,G8.Type)(()=>Nn),(0,wa.ValidateNested)(),U_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],dc.prototype,"infNFe",void 0);j_([(0,wa.Allow)(),U_("design:type",typeof Signature>"u"?Object:Signature)],dc.prototype,"Signature",void 0);function jA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(jA,"_ts_decorate");function M_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(M_,"_ts_metadata");var mp=class{static{o(this,"NfeAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};jA([(0,du.IsEnum)(Me),(0,du.IsOptional)(),M_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],mp.prototype,"tpAmb",void 0);jA([(0,du.IsEnum)(le),(0,du.IsOptional)(),M_("design:type",typeof StateCode>"u"?Object:StateCode)],mp.prototype,"cUF",void 0);jA([(0,du.IsString)(),M_("design:type",String)],mp.prototype,"idLote",void 0);jA([(0,du.IsOptional)(),(0,du.IsEnum)(["0","1"])],mp.prototype,"indSinc",void 0);jA([(0,du.IsNotEmpty)(),(0,cee.Type)(()=>dc),M_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],mp.prototype,"NFe",void 0);var UA=require("class-validator");function X8(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(X8,"_ts_decorate");function W8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(W8,"_ts_metadata");var Dg=class{static{o(this,"RetAutorizacaoPayload")}tpAmb;cUF;nRec};X8([(0,UA.IsEnum)(Me),W8("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],Dg.prototype,"tpAmb",void 0);X8([(0,UA.IsEnum)(le),W8("design:type",typeof StateCode>"u"?Object:StateCode)],Dg.prototype,"cUF",void 0);X8([(0,UA.IsString)(),W8("design:type",String)],Dg.prototype,"nRec",void 0);var Gr=require("class-validator"),MA=require("class-transformer");var q_=(function(r){return r.Cancelamento="110111",r})({});function qi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qi,"_ts_decorate");function fs(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(fs,"_ts_metadata");var H_=class{static{o(this,"InfEventoAttributes")}Id};qi([(0,Gr.IsString)(),fs("design:type",String)],H_.prototype,"Id",void 0);var ls=class{static{o(this,"InfEvento")}$;cOrgao;tpAmb;CNPJ;CPF;chNFe;dhEvento;tpEvento;nSeqEvento;verEvento;detEvento};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>H_),fs("design:type",typeof IInfEventoAttributes>"u"?Object:IInfEventoAttributes)],ls.prototype,"$",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof StateCode>"u"?Object:StateCode)],ls.prototype,"cOrgao",void 0);qi([(0,Gr.IsString)(),fs("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],ls.prototype,"tpAmb",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CNPJ",void 0);qi([(0,Gr.IsString)(),(0,Gr.IsOptional)(),fs("design:type",String)],ls.prototype,"CPF",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"chNFe",void 0);qi([kf({format:"YYYY-MM-DD[T]HH:mm:ssZ"}),fs("design:type",String)],ls.prototype,"dhEvento",void 0);qi([(0,Gr.IsEnum)(q_),fs("design:type",typeof q_>"u"?Object:q_)],ls.prototype,"tpEvento",void 0);qi([(0,Gr.IsNumber)(),fs("design:type",Number)],ls.prototype,"nSeqEvento",void 0);qi([(0,Gr.IsString)(),fs("design:type",String)],ls.prototype,"verEvento",void 0);qi([(0,Gr.IsObject)(),fs("design:type",typeof T>"u"?Object:T)],ls.prototype,"detEvento",void 0);ls=qi([Qr({properties:["CNPJ","CPF"],required:!0})],ls);var z_=class{static{o(this,"EventoItemAttributes")}xmlns};qi([(0,Gr.IsString)(),fs("design:type",String)],z_.prototype,"xmlns",void 0);var jd=class{static{o(this,"EventoItem")}$;infEvento;Signature};qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>z_),fs("design:type",typeof IEventoItemAttributes>"u"?Object:IEventoItemAttributes)],jd.prototype,"$",void 0);qi([(0,Gr.IsObject)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>ls),fs("design:type",typeof ls>"u"?Object:ls)],jd.prototype,"infEvento",void 0);qi([(0,Gr.Allow)(),fs("design:type",typeof Signature>"u"?Object:Signature)],jd.prototype,"Signature",void 0);var ix=class{static{o(this,"EventoPayload")}idLote;evento};qi([(0,Gr.IsString)(),fs("design:type",String)],ix.prototype,"idLote",void 0);qi([(0,Gr.IsNotEmpty)(),(0,Gr.ValidateNested)(),(0,MA.Type)(()=>jd),fs("design:type",typeof jd>"u"?Object:jd)],ix.prototype,"evento",void 0);var mu=require("class-validator");function sx(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(sx,"_ts_decorate");function K_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(K_,"_ts_metadata");var mc=class{static{o(this,"ConsultaCadastroPayload")}xServ="CONS-CAD";UF;IE="";CNPJ="";CPF=""};sx([(0,mu.IsOptional)()],mc.prototype,"xServ",void 0);sx([(0,mu.IsString)(),(0,mu.IsIn)(Object.values(mP)),K_("design:type",typeof StateAcronym>"u"?Object:StateAcronym)],mc.prototype,"UF",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"IE",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"CNPJ",void 0);sx([(0,mu.IsOptional)(),(0,mu.IsString)(),K_("design:type",String)],mc.prototype,"CPF",void 0);mc=sx([Qr({properties:["IE","CNPJ","CPF"],required:!0})],mc);var lee={AM:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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 TNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"BA",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVAN",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"PE",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",AN:"AN",SVAN:"SVAN",SVRS:"SVRS",SVCAN:"SVCAN",SVCRS:"SVCRS"},fee=TNe;var $_={[le.AC]:"SVCAN",[le.AL]:"SVCAN",[le.AM]:"SVCRS",[le.AP]:"SVCAN",[le.BA]:"SVCRS",[le.CE]:"SVCAN",[le.DF]:"SVCAN",[le.ES]:"SVCAN",[le.GO]:"SVCRS",[le.MA]:"SVCRS",[le.MG]:"SVCAN",[le.MS]:"SVCRS",[le.MT]:"SVCRS",[le.PA]:"SVCAN",[le.PB]:"SVCAN",[le.PE]:"SVCRS",[le.PI]:"SVCAN",[le.PR]:"SVCRS",[le.RJ]:"SVCAN",[le.RN]:"SVCAN",[le.RO]:"SVCAN",[le.RR]:"SVCAN",[le.RS]:"SVCAN",[le.SC]:"SVCAN",[le.SE]:"SVCAN",[le.SP]:"SVCAN",[le.TO]:"SVCAN"};function _g(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(_g,"_ts_decorate");function Ci(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Ci,"_ts_metadata");var Za=class{static{o(this,"NfeRemoteTransmitter")}remoteTransmissionRepository;constructor(e){this.remoteTransmissionRepository=e}options={};xmlns="http://www.portalfiscal.inf.br/nfe";configure(e){this.options={...this.options,...e};let{certificate:t}=this.options;return t&&this.remoteTransmissionRepository.setCertificate(t),this.options.schema??=LY.PL_009_V4,this}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=this.options.contingency?$_[t]:fee[t];return lee[i][n][e.service]}errors(){return Reflect.getMetadata(uo,this)}validate(e){try{let t=this.errors();return t?Ai(new ln(t.join(", "))):("cUF"in e&&(e.cUF??=this.options.cUF),"tpAmb"in e&&(e.tpAmb??=this.options.tpAmb),Ln(e))}finally{Reflect.deleteMetadata(uo,this)}}ns(e,t){let n=e.$??{};return n.xmlns=this.xmlns,n.versao=t,{...e,$:n}}xsd(e){return pee.default.resolve(JV,this.options.schema,e)}async consultStatus(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let{cUF:n,tpAmb:i}=t.value.infInut,s=t.value,a=this.service({cUF:n,tpAmb:i,service:"NfeInutilizacao"});return this.remoteTransmissionRepository.send({root:"nfeDadosMsg",url:a.url,xsd:this.xsd("inutNFe_v4.00.xsd"),payload:{inutNFe:this.ns(s,a.version)},method:"nfeInutilizacaoNF"})}async consultaProtocolo(e){let t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.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 t=this.validate(e);if(t.isLeft())return t;let n=t.value,i=this.service({cUF:le[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"})}};_g([Yt(Nd),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultStatusPayload>"u"?Object:IConsultStatusPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultStatus",null);_g([Yt(hg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IInutilizacaoPayload>"u"?Object:IInutilizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"inutilizacao",null);_g([Yt(dg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaProtocoloPayload>"u"?Object:IConsultaProtocoloPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaProtocolo",null);_g([Yt(mp),Ci("design:type",Function),Ci("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"autorizacao",null);_g([Yt(Dg),Ci("design:type",Function),Ci("design:paramtypes",[typeof IRetAutorizacaoPayload>"u"?Object:IRetAutorizacaoPayload]),Ci("design:returntype",Promise)],Za.prototype,"retAutorizacao",null);_g([Yt(ix),Ci("design:type",Function),Ci("design:paramtypes",[Object]),Ci("design:returntype",Promise)],Za.prototype,"recepcaoEvento",null);_g([Yt(mc),Ci("design:type",Function),Ci("design:paramtypes",[typeof IConsultaCadastroPayload>"u"?Object:IConsultaCadastroPayload]),Ci("design:returntype",Promise)],Za.prototype,"consultaCadastro",null);var G_=class{static{o(this,"Pipeline")}certificate;xmlns="http://www.portalfiscal.inf.br/nfe";http=w_.create();toolkit=new uA;caching=new _x;certificates=new Xx(this.http,this.caching);soap=new Hb(this.toolkit,this.certificates);transmitter=new Za(this.soap);signer=new Ix(this.toolkit,this.certificates);constructor(e){this.certificate=e}errors(){return Reflect.getMetadata(uo,this)}};var J8=class extends G_{static{o(this,"NfeAuthorizerPipeline")}async execute(e,t){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,...t,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:t,xJust:n,tpEmis:i}=e.NFe.infNFe.ide;if(!(!t||!n||i===Ga.Normal))return{dhCont:t,xJust:n}}};var Q8={AC:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hml.sefaznet.ac.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaznet.ac.gov.br/nfce/qrcode"}}},AL:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.al.gov.br/QRCode/consultarNFCe.jsp"}}},AM:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://www.sefaz.ap.gov.br/nfcehml/nfce.php"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.ap.gov.br/nfce/nfcep.php"}}},BA:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hnfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfe.sefaz.ba.gov.br/servicos/nfce/qrcode.aspx"}}},CE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfceh.sefaz.ce.gov.br/pages/ShowNFCe.html"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.ce.gov.br/pages/ShowNFCe.html"}}},DF:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://dec.fazenda.df.gov.br/ConsultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.fazenda.df.gov.br/nfce/qrcode"}}},ES:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://app.sefaz.es.gov.br/ConsultaNFCe/qrcode.aspx"}}},GO:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefaz.ma.gov.br/portal/consultarNFCe.jsp"}}},MG:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://appnfc.sefa.pa.gov.br/portal-homologacao/view/consultas/nfce/nfceForm.seam"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://appnfc.sefa.pa.gov.br/portal/view/consultas/nfce/nfceForm.seam"}}},PB:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pb.gov.br/nfcehom"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pb.gov.br/nfce"}}},PE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://nfcehomolog.sefaz.pe.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.sefaz.pe.gov.br/nfce/consulta"}}},PI:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.pi.gov.br/nfce/qrcode"}}},PR:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www4.fazenda.rj.gov.br/consultaNFCe/QRCode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://consultadfe.fazenda.rj.gov.br/consultaNFCe/QRCode"}}},RN:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://hom.nfce.set.rn.gov.br/consultarNFCe.aspx"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://nfce.set.rn.gov.br/consultarNFCe.aspx"}}},RO:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.sefin.ro.gov.br/consultanfce/consulta.jsp"}}},RR:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://200.174.88.103:8080/nfce/servlet/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://www.sefaz.rr.gov.br/servlet/qrcode"}}},RS:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"https://hom.sat.sef.sc.gov.br/nfce/consulta"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"https://sat.sef.sc.gov.br/nfce/consulta"}}},SE:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://www.hom.nfe.se.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.nfce.se.gov.br/nfce/qrcode"}}},SP:{[Me.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"}},[Me.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:{[Me.Homolog]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"300",url:"http://homologacao.sefaz.to.gov.br/nfce/qrcode"}},[Me.Production]:{NfeConsultaQR:{method:"QR-CODE",operation:"NfeConsultaQR",version:"200",url:"http://www.sefaz.to.gov.br/nfce/qrcode"}}},SVRS:{[Me.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"}},[Me.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:{[Me.Homolog]:{},[Me.Production]:{}}};var hee={[Me.Homolog]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://hinternet.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.nfce.go.gov.br/post/ver/214413/consulta-nfc-e-homologacao",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://hportalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://homologacao.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfcehom",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SE]:"http://www.hom.nfe.se.gov.br/nfce/consulta",[le.SC]:"https://hom.sat.sef.sc.gov.br/nfce/consulta",[le.SP]:"https://www.homologacao.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"http://homologacao.sefaz.to.gov.br/nfce/consulta.jsf"},[Me.Production]:{[le.AC]:"www.sefaznet.ac.gov.br/nfce/consulta",[le.AL]:"www.sefaz.al.gov.br/nfce/consulta",[le.AP]:"www.sefaz.ap.gov.br/nfce/consulta",[le.AM]:"www.sefaz.am.gov.br/nfce/consulta",[le.BA]:"http://www.sefaz.ba.gov.br/nfce/consulta",[le.CE]:"www.sefaz.ce.gov.br/nfce/consulta",[le.DF]:"www.fazenda.df.gov.br/nfce/consulta",[le.ES]:"www.sefaz.es.gov.br/nfce/consulta",[le.GO]:"www.sefaz.go.gov.br/nfce/consulta",[le.MA]:"www.sefaz.ma.gov.br/nfce/consulta",[le.MG]:"https://portalsped.fazenda.mg.gov.br/portalnfce",[le.MS]:"http://www.dfe.ms.gov.br/nfce/consulta",[le.MT]:"http://www.sefaz.mt.gov.br/nfce/consultanfce",[le.PA]:"www.sefa.pa.gov.br/nfce/consulta",[le.PE]:"nfce.sefaz.pe.gov.br/nfce/consulta",[le.PR]:"http://www.fazenda.pr.gov.br/nfce/consulta",[le.PI]:"www.sefaz.pi.gov.br/nfce/consulta",[le.RJ]:"www.fazenda.rj.gov.br/nfce/consulta",[le.RN]:"www.set.rn.gov.br/nfce/consulta",[le.RO]:"www.sefin.ro.gov.br/nfce/consulta",[le.RR]:"www.sefaz.rr.gov.br/nfce/consulta",[le.RS]:"www.sefaz.rs.gov.br/nfce/consulta",[le.SC]:"https://sat.sef.sc.gov.br/nfce/consulta",[le.SE]:"http://www.nfce.se.gov.br/nfce/consulta",[le.SP]:"https://www.nfce.fazenda.sp.gov.br/NFCeConsultaPublica",[le.TO]:"www.sefaz.to.gov.br/nfce/consulta",[le.PB]:"www.sefaz.pb.gov.br/nfce/consulta"}};var RNe={[le.AC]:"SVRS",[le.AL]:"SVRS",[le.AM]:"AM",[le.AP]:"SVRS",[le.BA]:"SVRS",[le.CE]:"SVRS",[le.DF]:"SVRS",[le.ES]:"SVRS",[le.GO]:"GO",[le.MA]:"SVRS",[le.MG]:"MG",[le.MS]:"MS",[le.MT]:"MT",[le.PA]:"SVRS",[le.PB]:"SVRS",[le.PE]:"SVRS",[le.PI]:"SVRS",[le.PR]:"PR",[le.RJ]:"SVRS",[le.RN]:"SVRS",[le.RO]:"SVRS",[le.RR]:"SVRS",[le.RS]:"RS",[le.SC]:"SVRS",[le.SE]:"SVRS",[le.SP]:"SP",[le.TO]:"SVRS",SVRS:"SVRS"},dee=RNe;var vee=require("class-transformer"),vu=require("class-validator");var J_=require("class-transformer"),gc=require("class-validator");var Y8=require("class-validator");function mee(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(mee,"_ts_decorate");function gee(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(gee,"_ts_metadata");var ax=class{static{o(this,"InfNFeSupl")}qrCode;urlChave};mee([(0,Y8.IsString)(),gee("design:type",String)],ax.prototype,"qrCode",void 0);mee([(0,Y8.IsString)(),gee("design:type",String)],ax.prototype,"urlChave",void 0);function X_(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(X_,"_ts_decorate");function W_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(W_,"_ts_metadata");var gu=class{static{o(this,"NFCe")}$;infNFe;infNFeSupl;Signature};X_([(0,gc.IsObject)(),(0,gc.IsNotEmptyObject)(),(0,J_.Type)(()=>nx),(0,gc.ValidateNested)(),W_("design:type",typeof INFeAttributes>"u"?Object:INFeAttributes)],gu.prototype,"$",void 0);X_([(0,gc.IsObject)(),(0,gc.IsNotEmptyObject)(),(0,J_.Type)(()=>Nn),(0,gc.ValidateNested)(),W_("design:type",typeof IInfNFe>"u"?Object:IInfNFe)],gu.prototype,"infNFe",void 0);X_([(0,J_.Type)(()=>ax),W_("design:type",typeof IInfNFeSupl>"u"?Object:IInfNFeSupl)],gu.prototype,"infNFeSupl",void 0);X_([(0,gc.Allow)(),W_("design:type",typeof Signature>"u"?Object:Signature)],gu.prototype,"Signature",void 0);function qA(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(qA,"_ts_decorate");function Q_(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Q_,"_ts_metadata");var gp=class{static{o(this,"NfceAutorizacaoPayload")}tpAmb;cUF;idLote;indSinc="1";NFe};qA([(0,vu.IsEnum)(Me),(0,vu.IsOptional)(),Q_("design:type",typeof EnvironmentCode>"u"?Object:EnvironmentCode)],gp.prototype,"tpAmb",void 0);qA([(0,vu.IsEnum)(le),(0,vu.IsOptional)(),Q_("design:type",typeof StateCode>"u"?Object:StateCode)],gp.prototype,"cUF",void 0);qA([(0,vu.IsString)(),Q_("design:type",String)],gp.prototype,"idLote",void 0);qA([(0,vu.IsOptional)(),(0,vu.IsEnum)(["0","1"])],gp.prototype,"indSinc",void 0);qA([(0,vu.IsNotEmpty)(),(0,vee.Type)(()=>gu),Q_("design:type",typeof SignedEntity>"u"?Object:SignedEntity)],gp.prototype,"NFe",void 0);function DNe(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(DNe,"_ts_decorate");function Z8(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Z8,"_ts_metadata");var Y_=class extends Za{static{o(this,"NfceRemoteTransmitter")}remoteTransmissionRepository;qrCode;options={};constructor(e,t){super(e),this.remoteTransmissionRepository=e,this.qrCode=t}configure(e){return super.configure(e)}service(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb,i=dee[t],u=Q8[i][n][e.service];if(u)return u;let c=Object.keys(le).find(l=>le[l]===t);return Q8[c][n][e.service]}async autorizacao(e){let t=await this.infNfeSupl(e);return t.isLeft()?t:(e.NFe.infNFeSupl=t.value,super.autorizacao(e))}getUrlConsult(e){let t=e.cUF??this.options.cUF,n=e.tpAmb??this.options.tpAmb;return hee[n][t]}async infNfeSupl(e){let t=this.options.qrCode,n=this.service({...e,service:"NfeConsultaQR"});switch(t.version??=n.version,t.version){case"200":return await this.qrCode.execute(e.NFe,{version:t.version,urlConsult:this.getUrlConsult(e),urlService:n.url,CSC:t.CSC,CSCId:t.CSCId});case"300":return this.options.certificate?await this.qrCode.execute(e.NFe,{version:t.version,certificate:this.options.certificate,urlConsult:this.getUrlConsult(e),urlService:n.url}):Ai(new ln("Certificate is required in QRCode version 3.00"));default:return Ip(t.version)}}};DNe([Yt(gp),Z8("design:type",Function),Z8("design:paramtypes",[typeof IAutorizacaoPayload>"u"?Object:IAutorizacaoPayload]),Z8("design:returntype",Promise)],Y_.prototype,"autorizacao",null);var yee=Dr(require("crypto"),1);var ej=class{static{o(this,"NfceQrcode")}certificateRepository;constructor(e){this.certificateRepository=e}async execute(e,t){let n=await this.content(e,t);return n.isLeft()?n:Ln(this.assemble(n.value,t))}async content(e,t){return this.isVersion200(t)?await this.execute200(e,t):this.isVersion300(t)?await this.execute300(e,t):Ip(t)}isVersion200(e){return e.version==="200"}isVersion300(e){return e.version==="300"}assemble(e,t){return{qrCode:e,urlChave:t.urlConsult}}getSequence(e,t){let{version:n,CSCId:i}=t,s=e.infNFe.ide.tpAmb,a=Number.parseInt(i),u=e.infNFe.$.Id?.substring(3),c=Number.parseInt(n??"")/100;if(e.infNFe.ide.tpEmis!==Ga.OFFLINE)return`${u}|${c}|${s}|${a}`;let p=e.Signature.SignedInfo.Reference.DigestValue.split("").map(y=>y.charCodeAt(0).toString(16).padStart(2,"0")).join(""),m=new Date(e.infNFe.ide.dhEmi).getDate(),g=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2);return`${u}|${c}|${s}|${m}|${g}|${p}|${a}`}async execute200(e,t){let{urlService:n,CSC:i}=t,s=this.getSequence(e,t),a=yee.default.createHash("sha1").update(`${s}${i}`).digest("hex").toUpperCase(),u=`${n}?p=`;return Promise.resolve(Ln(`${u}${s}|${a}`))}async execute300(e,t){let{urlService:n}=t,i=`${n}?p=`,s=e.infNFe.ide.tpAmb,a=e.infNFe.$.Id?.substring(3),u=Number.parseInt(t.version)/100;if(e.infNFe.ide.tpEmis!==Ga.OFFLINE)return Ln(`${i}${a}|${u}|${s}`);let c=new Date(e.infNFe.ide.dhEmi).getDate(),l=Number(e.infNFe.total.ICMSTot.vNF).toFixed(2),p=e.infNFe.dest?.CNPJ??e.infNFe.dest?.CPF??e.infNFe.dest?.idEstrangeiro??"",m=p.length?e.infNFe.ide.idDest:"",g=`${a}|${u}|${s}|${c}|${l}|${m}$`,y=await this.certificateRepository.sign(g,t.certificate.privateKey,Eu.SHA1);return y.isLeft()?y:Ln(`${i}${g}|${y.value}`)}};function yu(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(yu,"_ts_decorate");function Nr(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nr,"_ts_metadata");var ks=class{static{o(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}};yu([Yt(tx),Nr("design:type",Function),Nr("design:paramtypes",[typeof IDetAttributes>"u"?Object:IDetAttributes]),Nr("design:returntype",void 0)],ks.prototype,"det",null);yu([Yt(zt),Nr("design:type",Function),Nr("design:paramtypes",[typeof IProd>"u"?Object:IProd]),Nr("design:returntype",void 0)],ks.prototype,"prod",null);yu([Yt(cs),Nr("design:type",Function),Nr("design:paramtypes",[typeof IImposto>"u"?Object:IImposto]),Nr("design:returntype",void 0)],ks.prototype,"imposto",null);yu([Yt(Pn),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMS>"u"?Object:IICMS]),Nr("design:returntype",void 0)],ks.prototype,"icms",null);yu([Yt(hu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IISSQN>"u"?Object:IISSQN]),Nr("design:returntype",void 0)],ks.prototype,"issqn",null);yu([Yt(Il),Nr("design:type",Function),Nr("design:paramtypes",[typeof III>"u"?Object:III]),Nr("design:returntype",void 0)],ks.prototype,"ii",null);yu([Yt(pu),Nr("design:type",Function),Nr("design:paramtypes",[typeof IIPI>"u"?Object:IIPI]),Nr("design:returntype",void 0)],ks.prototype,"ipi",null);yu([Yt(Rl),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPIS>"u"?Object:IPIS]),Nr("design:returntype",void 0)],ks.prototype,"pis",null);yu([Yt(uc),Nr("design:type",Function),Nr("design:paramtypes",[typeof IPISST>"u"?Object:IPISST]),Nr("design:returntype",void 0)],ks.prototype,"pisst",null);yu([Yt(Dl),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINS>"u"?Object:ICOFINS]),Nr("design:returntype",void 0)],ks.prototype,"cofins",null);yu([Yt(lc),Nr("design:type",Function),Nr("design:paramtypes",[typeof ICOFINSST>"u"?Object:ICOFINSST]),Nr("design:returntype",void 0)],ks.prototype,"cofinsst",null);yu([Yt(ba),Nr("design:type",Function),Nr("design:paramtypes",[typeof IICMSUFDest>"u"?Object:IICMSUFDest]),Nr("design:returntype",void 0)],ks.prototype,"icmsufdest",null);function Hi(r,e,t,n){var i=arguments.length,s=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(r,e,t,n);else for(var u=r.length-1;u>=0;u--)(a=r[u])&&(s=(i<3?a(s):i>3?a(e,t,s):a(e,t))||s);return i>3&&s&&Object.defineProperty(e,t,s),s}o(Hi,"_ts_decorate");function Nt(r,e){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,e)}o(Nt,"_ts_metadata");var Xn=class{static{o(this,"NfeXmlBuilder")}builder;contingency;data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}}};get entity(){return dc}root="NFe";$det=new lA(this);$total=new fA(this);nfeDetXmlBuilder=ks.create(this.$det);static create(e,t){return new this(e,t)}constructor(e,t){this.builder=e,this.contingency=t}infNFe(e){return this.data.infNFe.$=e,this}ide(e){return this.data.infNFe.ide=e,this}emit(e){return this.data.infNFe.emit=e,this}avulsa(e){return this.data.infNFe.avulsa=e,this}dest(e){return this.data.infNFe.dest=e,this}retirada(e){return this.data.infNFe.retirada=e,this}entrega(e){return this.data.infNFe.entrega=e,this}autXML(e){return this.data.infNFe.autXML??=[],this.data.infNFe.autXML.push(e),this}det(e,t){return this.data.infNFe.det=e.map((n,i)=>{let s=t(this.nfeDetXmlBuilder.det({nItem:(i+1).toString()}),n);return this.collect(s),s.assemble()}),this}total(e){return this.data.infNFe.total=e,this}increment(e){let t=e(this.data.infNFe.total);return this.data.infNFe.total={...this.data.infNFe.total,ICMSTot:{...this.data.infNFe.total.ICMSTot,...t.ICMSTot},ISSQNtot:t.ISSQNtot?{...this.data.infNFe.total.ISSQNtot,...t.ISSQNtot}:void 0},this}transp(e){return this.data.infNFe.transp=e,this}cobr(e){return this.data.infNFe.cobr=e,this}pag(e){return this.data.infNFe.pag=e,this}infIntermed(e){return this.data.infNFe.infIntermed=e,this}infAdic(e){return this.data.infNFe.infAdic=e,this}exporta(e){return this.data.infNFe.exporta=e,this}compra(e){return this.data.infNFe.compra=e,this}cana(e){return this.data.infNFe.cana=e,this}infRespTec(e){return this.data.infNFe.infRespTec=e,this}infSolicNFF(e){return this.data.infNFe.infSolicNFF=e,this}quiet(){return Reflect.deleteMetadata(uo,this),this}toObject(){let e=this.errors();return e?Ai(new ln(e.join(", "))):(this.$total?.aggregate(),this.assertHomologValidations(),this.assertContingencyModes(),this.fillAccessKeyIfEmpty(),Ln(Rx(this.data,this.entity,{clearEmptyValues:!0})))}async assemble(){let e=this.toObject();return e.isLeft()?e:Ln(await this.builder.build(e.value,{rootName:this.root}))}assertHomologValidations(){return this.data.infNFe.ide.tpAmb!==Me.Homolog?!1:(this.data.infNFe.dest&&(this.data.infNFe.dest.xNome="NF-E EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL"),!0)}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{cUF:e,tpEmis:t}=this.data.infNFe.ide;if(t!==Ga.Normal)return;switch($_[e]){case"SVCAN":return this.data.infNFe.ide.tpEmis=Ga.SVCAN,void 0;case"SVCRS":return this.data.infNFe.ide.tpEmis=Ga.SVCRS,void 0}}automaticallyInferContingencyMode(){let{xJust:e,dhCont:t,tpEmis:n}=this.data.infNFe.ide;if(!(!e&&!t&&n===Ga.Normal))return this.contingency={xJust:e??"SEFAZ fora do Ar",dhCont:t??new Date().toISOString()},this.assertContingencyModes()}errors(){return Reflect.getMetadata(uo,this)}collect(e){let t=Reflect.getMetadata(uo,e);if(!t)return;let n=this.errors();Reflect.defineMetadata(uo,(n??[]).concat(t),this)}fillAccessKeyIfEmpty(){if(this.data.infNFe.$.Id)return;let e=new cA().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}}};Hi([Yt(Rg),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfNFeAttributes>"u"?Object:IInfNFeAttributes]),Nt("design:returntype",void 0)],Xn.prototype,"infNFe",null);Hi([Yt(Yr),Nt("design:type",Function),Nt("design:paramtypes",[typeof IIde>"u"?Object:IIde]),Nt("design:returntype",void 0)],Xn.prototype,"ide",null);Hi([Yt(ns),Nt("design:type",Function),Nt("design:paramtypes",[typeof IEmit>"u"?Object:IEmit]),Nt("design:returntype",void 0)],Xn.prototype,"emit",null);Hi([Yt(Fs),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAvulsa>"u"?Object:IAvulsa]),Nt("design:returntype",void 0)],Xn.prototype,"avulsa",null);Hi([Yt(is),Nt("design:type",Function),Nt("design:paramtypes",[typeof IDest>"u"?Object:IDest]),Nt("design:returntype",void 0)],Xn.prototype,"dest",null);Hi([Yt(En),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Xn.prototype,"retirada",null);Hi([Yt(En),Nt("design:type",Function),Nt("design:paramtypes",[typeof ILocal>"u"?Object:ILocal]),Nt("design:returntype",void 0)],Xn.prototype,"entrega",null);Hi([Yt(yl),Nt("design:type",Function),Nt("design:paramtypes",[typeof IAutXML>"u"?Object:IAutXML]),Nt("design:returntype",void 0)],Xn.prototype,"autXML",null);Hi([Yt(Kf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITotal>"u"?Object:ITotal]),Nt("design:returntype",void 0)],Xn.prototype,"total",null);Hi([Yt(ra),Nt("design:type",Function),Nt("design:paramtypes",[typeof ITransp>"u"?Object:ITransp]),Nt("design:returntype",void 0)],Xn.prototype,"transp",null);Hi([Yt(Od),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICobr>"u"?Object:ICobr]),Nt("design:returntype",void 0)],Xn.prototype,"cobr",null);Hi([Yt(Bd),Nt("design:type",Function),Nt("design:paramtypes",[typeof IPag>"u"?Object:IPag]),Nt("design:returntype",void 0)],Xn.prototype,"pag",null);Hi([Yt(Id),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfIntermed>"u"?Object:IInfIntermed]),Nt("design:returntype",void 0)],Xn.prototype,"infIntermed",null);Hi([Yt(ic),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfAdic>"u"?Object:IInfAdic]),Nt("design:returntype",void 0)],Xn.prototype,"infAdic",null);Hi([Yt(Hf),Nt("design:type",Function),Nt("design:paramtypes",[typeof IExporta>"u"?Object:IExporta]),Nt("design:returntype",void 0)],Xn.prototype,"exporta",null);Hi([Yt(zf),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICompra>"u"?Object:ICompra]),Nt("design:returntype",void 0)],Xn.prototype,"compra",null);Hi([Yt(na),Nt("design:type",Function),Nt("design:paramtypes",[typeof ICana>"u"?Object:ICana]),Nt("design:returntype",void 0)],Xn.prototype,"cana",null);Hi([Yt(ou),Nt("design:type",Function),Nt("design:paramtypes",[typeof IInfRespTec>"u"?Object:IInfRespTec]),Nt("design:returntype",void 0)],Xn.prototype,"infRespTec",null);Hi([Yt(Tg),Nt("design:type",Function),Nt("design:paramtypes",[typeof ISolicNFF>"u"?Object:ISolicNFF]),Nt("design:returntype",void 0)],Xn.prototype,"infSolicNFF",null);var tj=class extends Xn{static{o(this,"NfceXmlBuilder")}data={$:{xmlns:"http://www.portalfiscal.inf.br/nfe"},infNFe:{total:{ICMSTot:{}}},infNFeSupl:{}};get entity(){return gu}static create(e,t){return new this(e,t)}assertHomologValidations(){return super.assertHomologValidations()?(this.data.infNFe.det[0].prod.xProd="NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL",!0):!1}assertContingencyModes(){if(this.contingency===void 0)return this.automaticallyInferContingencyMode();this.data.infNFe.ide.dhCont??=this.contingency.dhCont,this.data.infNFe.ide.xJust??=this.contingency.xJust;let{tpEmis:e}=this.data.infNFe.ide;if(e===Ga.Normal)return this.data.infNFe.ide.tpEmis=Ga.OFFLINE,void 0}};0&&(module.exports={ASN1,AccessKeyBuilder,CanonicalizationMethod,Choice,Decimal,DefaultDetBuilderAggregator,DefaultTotalBuilderAggregator,DigestAlgorithm,EntitySigner,Environment,IsDecimal,Left,MemoryCacheAdapter,NFCeDto,NFeDto,NFeTsError,NativeCertificateRepository,NfceQrcode,NfceRemoteTransmitter,NfceXmlBuilder,NfeAuthorizerPipeline,NfeDetXmlBuilder,NfeRemoteTransmitter,NfeXmlBuilder,NullCacheAdapter,Right,SignatureAlgorithm,SignatureMethod,SignatureNamespace,Signer,SkipAllValidations,SkipValidation,SkipValidationMetadata,SoapRemoteTransmissionRepository,StateAcronyms,StateCodeAcValidator,StateCodeAlValidator,StateCodeAmValidator,StateCodeApValidator,StateCodeBaValidator,StateCodeCeValidator,StateCodeDfValidator,StateCodeEsValidator,StateCodeGoValidator,StateCodeMaValidator,StateCodeMgValidator,StateCodeMsValidator,StateCodeMtValidator,StateCodePaValidator,StateCodePbValidator,StateCodePeValidator,StateCodePiValidator,StateCodePrValidator,StateCodeRjValidator,StateCodeRnValidator,StateCodeRoValidator,StateCodeRrValidator,StateCodeRsValidator,StateCodeScValidator,StateCodeSeValidator,StateCodeSpValidator,StateCodeToValidator,StateCodes,TpEmis,TransformDateString,TransformDecimal,ValidateErrorsMetadata,Validates,ValidationError,Xml2JsToolkit,XmlSigner,clearEmptyValues,directory,left,leftFromError,mapConstraintsToErrors,plainToInstance,right,unreachable});
109
109
  /*! Bundled license information:
110
110
 
111
111
  lodash/lodash.js: