UNPKG

node-mailjet

Version:
2 lines 1.15 MB
/*! For license information please see mailjet.node.js.LICENSE.txt */ !function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.mailjet=n():e.mailjet=n()}(this,(()=>{return e={28:(e,n,a)=>{var i=a(8051),t=a(9500),o=a(6276);function s(e,n){return e<n?-1:e>n?1:0}e.exports=function(e,n,a,s){var r=t(e,a);return i(e,n,r,(function a(t,o){t?s(t,o):(r.index++,r.index<(r.keyedList||e).length?i(e,n,r,a):s(null,r.results))})),o.bind(r,s)},e.exports.ascending=s,e.exports.descending=function(e,n){return-1*s(e,n)}},64:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.SentCampaign=n.DraftCampaign=void 0,function(e){!function(e){e.Tool2="tool2",e.HTML2="html2",e.MJML="mjml"}(e.EditMode||(e.EditMode={})),function(e){e[e.AXCanceled=-3]="AXCanceled",e[e.Deleted=-2]="Deleted",e[e.Archived=-1]="Archived",e[e.Draft=0]="Draft",e[e.Programmed=1]="Programmed",e[e.Sent=2]="Sent",e[e.AXTested=3]="AXTested",e[e.AXSelected=4]="AXSelected"}(e.CampaignDraftStatus||(e.CampaignDraftStatus={})),function(e){e.AXCancelled="AXCancelled",e.Deleted="Deleted",e.Archived="Archived",e.Draft="Draft",e.Programmed="Programmed",e.Sent="Sent",e.AXTested="AXTested",e.AXSelected="AXSelected"}(e.CampaignDraftSendingStatus||(e.CampaignDraftSendingStatus={}))}(n.DraftCampaign||(n.DraftCampaign={})),function(e){!function(e){e[e.Transactional=1]="Transactional",e[e.Marketing=2]="Marketing",e[e.Unknown=3]="Unknown"}(e.CampaignType||(e.CampaignType={}))}(n.SentCampaign||(n.SentCampaign={}))},76:e=>{"use strict";e.exports=Function.prototype.call},382:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.DNS=n.Sender=void 0,function(e){!function(e){e.Transactional="transactional",e.Bulk="bulk",e.Unknown="unknown"}(e.EmailType||(e.EmailType={})),function(e){e.Inactive="Inactive",e.Active="Active",e.Deleted="Deleted"}(e.SenderStatus||(e.SenderStatus={}))}(n.Sender||(n.Sender={})),function(e){!function(e){e.OK="OK",e.Error="Error",e.NotChecked="Not checked"}(e.DKIMConfigurationCheckStatus||(e.DKIMConfigurationCheckStatus={})),function(e){e.OK="OK",e.Error="Error"}(e.DKIMConfigurationStatus||(e.DKIMConfigurationStatus={})),function(e){e.OK="OK",e.Error="Error",e.NotChecked="Not checked",e.NotFound="Not found"}(e.SPFConfigurationCheckStatus||(e.SPFConfigurationCheckStatus={})),function(e){e.OK="OK",e.Error="Error"}(e.SPFConfigurationStatus||(e.SPFConfigurationStatus={}))}(n.DNS||(n.DNS={}))},405:e=>{e.exports=function(e){var n="function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:null;n?n(e):setTimeout(e,0)}},414:e=>{"use strict";e.exports=Math.round},453:(e,n,a)=>{"use strict";var i,t=a(9612),o=a(9383),s=a(1237),r=a(9290),c=a(9538),p=a(8068),l=a(9675),u=a(5345),d=a(1514),m=a(8968),f=a(6188),x=a(8002),v=a(5880),h=a(414),b=a(3093),g=Function,y=function(e){try{return g('"use strict"; return ('+e+").constructor;")()}catch(e){}},w=a(5795),k=a(655),j=function(){throw new l},S=w?function(){try{return j}catch(e){try{return w(arguments,"callee").get}catch(e){return j}}}():j,_=a(4039)(),E=a(3628),O=a(1064),A=a(8648),C=a(1002),R=a(76),T={},P="undefined"!=typeof Uint8Array&&E?E(Uint8Array):i,F={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?i:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?i:ArrayBuffer,"%ArrayIteratorPrototype%":_&&E?E([][Symbol.iterator]()):i,"%AsyncFromSyncIteratorPrototype%":i,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"undefined"==typeof Atomics?i:Atomics,"%BigInt%":"undefined"==typeof BigInt?i:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?i:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?i:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?i:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":o,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"undefined"==typeof Float16Array?i:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?i:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?i:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?i:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":T,"%Int8Array%":"undefined"==typeof Int8Array?i:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?i:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?i:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":_&&E?E(E([][Symbol.iterator]())):i,"%JSON%":"object"==typeof JSON?JSON:i,"%Map%":"undefined"==typeof Map?i:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&_&&E?E((new Map)[Symbol.iterator]()):i,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":w,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?i:Promise,"%Proxy%":"undefined"==typeof Proxy?i:Proxy,"%RangeError%":r,"%ReferenceError%":c,"%Reflect%":"undefined"==typeof Reflect?i:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?i:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&_&&E?E((new Set)[Symbol.iterator]()):i,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?i:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":_&&E?E(""[Symbol.iterator]()):i,"%Symbol%":_?Symbol:i,"%SyntaxError%":p,"%ThrowTypeError%":S,"%TypedArray%":P,"%TypeError%":l,"%Uint8Array%":"undefined"==typeof Uint8Array?i:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?i:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?i:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?i:Uint32Array,"%URIError%":u,"%WeakMap%":"undefined"==typeof WeakMap?i:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?i:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?i:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":C,"%Object.defineProperty%":k,"%Object.getPrototypeOf%":O,"%Math.abs%":d,"%Math.floor%":m,"%Math.max%":f,"%Math.min%":x,"%Math.pow%":v,"%Math.round%":h,"%Math.sign%":b,"%Reflect.getPrototypeOf%":A};if(E)try{null.error}catch(e){var B=E(E(e));F["%Error.prototype%"]=B}var N=function e(n){var a;if("%AsyncFunction%"===n)a=y("async function () {}");else if("%GeneratorFunction%"===n)a=y("function* () {}");else if("%AsyncGeneratorFunction%"===n)a=y("async function* () {}");else if("%AsyncGenerator%"===n){var i=e("%AsyncGeneratorFunction%");i&&(a=i.prototype)}else if("%AsyncIteratorPrototype%"===n){var t=e("%AsyncGenerator%");t&&E&&(a=E(t.prototype))}return F[n]=a,a},U={__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"]},L=a(6743),z=a(9957),I=L.call(R,Array.prototype.concat),D=L.call(C,Array.prototype.splice),M=L.call(R,String.prototype.replace),q=L.call(R,String.prototype.slice),H=L.call(R,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,G=/\\(\\)?/g,K=function(e,n){var a,i=e;if(z(U,i)&&(i="%"+(a=U[i])[0]+"%"),z(F,i)){var t=F[i];if(t===T&&(t=N(i)),void 0===t&&!n)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:i,value:t}}throw new p("intrinsic "+e+" does not exist!")};e.exports=function(e,n){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof n)throw new l('"allowMissing" argument must be a boolean');if(null===H(/^%?[^%]*%?$/,e))throw new p("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=function(e){var n=q(e,0,1),a=q(e,-1);if("%"===n&&"%"!==a)throw new p("invalid intrinsic syntax, expected closing `%`");if("%"===a&&"%"!==n)throw new p("invalid intrinsic syntax, expected opening `%`");var i=[];return M(e,V,(function(e,n,a,t){i[i.length]=a?M(t,G,"$1"):n||e})),i}(e),i=a.length>0?a[0]:"",t=K("%"+i+"%",n),o=t.name,s=t.value,r=!1,c=t.alias;c&&(i=c[0],D(a,I([0,1],c)));for(var u=1,d=!0;u<a.length;u+=1){var m=a[u],f=q(m,0,1),x=q(m,-1);if(('"'===f||"'"===f||"`"===f||'"'===x||"'"===x||"`"===x)&&f!==x)throw new p("property names with quotes must have matching quotes");if("constructor"!==m&&d||(r=!0),z(F,o="%"+(i+="."+m)+"%"))s=F[o];else if(null!=s){if(!(m in s)){if(!n)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(w&&u+1>=a.length){var v=w(s,m);s=(d=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:s[m]}else d=z(s,m),s=s[m];d&&!r&&(F[o]=s)}}return s}},457:function(e,n,a){"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var t=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var o=t(a(476)),s=t(a(3750));n.default=function(e,n,a){if("object"!==i(e)||(0,s.default)(e))throw Error('Argument "targetObject" is not object');if(!n)throw Error('Argument "path" is required');(0,o.default)(a)||(e[n]=a)}},476:function(e,n,a){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(n,"__esModule",{value:!0});var t=i(a(3750)),o=i(a(3235));n.default=function(e){return(0,o.default)(e)||(0,t.default)(e)}},655:e=>{"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}e.exports=n},696:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.ContactProperties=n.BulkContactManagement=void 0,function(e){!function(e){e.AddForce="addforce",e.AddNoForce="addnoforce",e.Remove="remove",e.UnSub="unsub"}(e.ManageContactsAction||(e.ManageContactsAction={})),function(e){e.AddForce="addforce",e.AddNoForce="addnoforce",e.UnSub="unsub",e.DuplicateOverride="duplicate-override",e.DuplicateNoOverride="duplicate-no-override"}(e.ImportListAction||(e.ImportListAction={})),function(e){e.AddForce="addforce",e.AddNoForce="addnoforce",e.Remove="remove",e.UnSub="unsub",e.ExcludeMarketing="excludemarketing",e.IncludeMarketing="includemarketing"}(e.ImportCSVMethod||(e.ImportCSVMethod={})),function(e){e.Upload="Upload",e.Completed="Completed",e.Abort="Abort"}(e.CSVImportStatus||(e.CSVImportStatus={})),function(e){e.Completed="Completed",e.InProgress="In Progress",e.Error="Error"}(e.JobStatus||(e.JobStatus={}))}(n.BulkContactManagement||(n.BulkContactManagement={})),function(e){!function(e){e.Str="str",e.Int="int",e.Float="float",e.Bool="bool",e.DateTime="datetime"}(e.DataType||(e.DataType={})),function(e){e.Static="static",e.Historic="historic"}(e.NameSpace||(e.NameSpace={}))}(n.ContactProperties||(n.ContactProperties={}))},736:(e,n,a)=>{e.exports=function(e){function n(e){let a,t,o,s=null;function r(...e){if(!r.enabled)return;const i=r,t=Number(new Date),o=t-(a||t);i.diff=o,i.prev=a,i.curr=t,a=t,e[0]=n.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((a,t)=>{if("%%"===a)return"%";s++;const o=n.formatters[t];if("function"==typeof o){const n=e[s];a=o.call(i,n),e.splice(s,1),s--}return a})),n.formatArgs.call(i,e),(i.log||n.log).apply(i,e)}return r.namespace=e,r.useColors=n.useColors(),r.color=n.selectColor(e),r.extend=i,r.destroy=n.destroy,Object.defineProperty(r,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(t!==n.namespaces&&(t=n.namespaces,o=n.enabled(e)),o),set:e=>{s=e}}),"function"==typeof n.init&&n.init(r),r}function i(e,a){const i=n(this.namespace+(void 0===a?":":a)+e);return i.log=this.log,i}function t(e,n){let a=0,i=0,t=-1,o=0;for(;a<e.length;)if(i<n.length&&(n[i]===e[a]||"*"===n[i]))"*"===n[i]?(t=i,o=a,i++):(a++,i++);else{if(-1===t)return!1;i=t+1,o++,a=o}for(;i<n.length&&"*"===n[i];)i++;return i===n.length}return n.debug=n,n.default=n,n.coerce=function(e){return e instanceof Error?e.stack||e.message:e},n.disable=function(){const e=[...n.names,...n.skips.map((e=>"-"+e))].join(",");return n.enable(""),e},n.enable=function(e){n.save(e),n.namespaces=e,n.names=[],n.skips=[];const a=("string"==typeof e?e:"").trim().replace(" ",",").split(",").filter(Boolean);for(const e of a)"-"===e[0]?n.skips.push(e.slice(1)):n.names.push(e)},n.enabled=function(e){for(const a of n.skips)if(t(e,a))return!1;for(const a of n.names)if(t(e,a))return!0;return!1},n.humanize=a(6585),n.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((a=>{n[a]=e[a]})),n.names=[],n.skips=[],n.formatters={},n.selectColor=function(e){let a=0;for(let n=0;n<e.length;n++)a=(a<<5)-a+e.charCodeAt(n),a|=0;return n.colors[Math.abs(a)%n.colors.length]},n.enable(n.load()),n}},737:(e,n,a)=>{"use strict";var i=a(801),t=a(9023),o=a(6928),s=a(8611),r=a(5692),c=a(7016).parse,p=a(9896),l=a(2203).Stream,u=a(6982),d=a(6049),m=a(1873),f=a(9605),x=a(9957),v=a(1362);function h(e){if(!(this instanceof h))return new h(e);for(var n in this._overheadLength=0,this._valueLength=0,this._valuesToMeasure=[],i.call(this),e=e||{})this[n]=e[n]}t.inherits(h,i),h.LINE_BREAK="\r\n",h.DEFAULT_CONTENT_TYPE="application/octet-stream",h.prototype.append=function(e,n,a){"string"==typeof(a=a||{})&&(a={filename:a});var t=i.prototype.append.bind(this);if("number"!=typeof n&&null!=n||(n=String(n)),Array.isArray(n))this._error(new Error("Arrays are not supported."));else{var o=this._multiPartHeader(e,n,a),s=this._multiPartFooter();t(o),t(n),t(s),this._trackLength(o,n,a)}},h.prototype._trackLength=function(e,n,a){var i=0;null!=a.knownLength?i+=Number(a.knownLength):Buffer.isBuffer(n)?i=n.length:"string"==typeof n&&(i=Buffer.byteLength(n)),this._valueLength+=i,this._overheadLength+=Buffer.byteLength(e)+h.LINE_BREAK.length,n&&(n.path||n.readable&&x(n,"httpVersion")||n instanceof l)&&(a.knownLength||this._valuesToMeasure.push(n))},h.prototype._lengthRetriever=function(e,n){x(e,"fd")?null!=e.end&&e.end!=1/0&&null!=e.start?n(null,e.end+1-(e.start?e.start:0)):p.stat(e.path,(function(a,i){if(a)n(a);else{var t=i.size-(e.start?e.start:0);n(null,t)}})):x(e,"httpVersion")?n(null,Number(e.headers["content-length"])):x(e,"httpModule")?(e.on("response",(function(a){e.pause(),n(null,Number(a.headers["content-length"]))})),e.resume()):n("Unknown stream")},h.prototype._multiPartHeader=function(e,n,a){if("string"==typeof a.header)return a.header;var i,t=this._getContentDisposition(n,a),o=this._getContentType(n,a),s="",r={"Content-Disposition":["form-data",'name="'+e+'"'].concat(t||[]),"Content-Type":[].concat(o||[])};for(var c in"object"==typeof a.header&&v(r,a.header),r)if(x(r,c)){if(null==(i=r[c]))continue;Array.isArray(i)||(i=[i]),i.length&&(s+=c+": "+i.join("; ")+h.LINE_BREAK)}return"--"+this.getBoundary()+h.LINE_BREAK+s+h.LINE_BREAK},h.prototype._getContentDisposition=function(e,n){var a;if("string"==typeof n.filepath?a=o.normalize(n.filepath).replace(/\\/g,"/"):n.filename||e&&(e.name||e.path)?a=o.basename(n.filename||e&&(e.name||e.path)):e&&e.readable&&x(e,"httpVersion")&&(a=o.basename(e.client._httpMessage.path||"")),a)return'filename="'+a+'"'},h.prototype._getContentType=function(e,n){var a=n.contentType;return!a&&e&&e.name&&(a=d.lookup(e.name)),!a&&e&&e.path&&(a=d.lookup(e.path)),!a&&e&&e.readable&&x(e,"httpVersion")&&(a=e.headers["content-type"]),a||!n.filepath&&!n.filename||(a=d.lookup(n.filepath||n.filename)),!a&&e&&"object"==typeof e&&(a=h.DEFAULT_CONTENT_TYPE),a},h.prototype._multiPartFooter=function(){return function(e){var n=h.LINE_BREAK;0===this._streams.length&&(n+=this._lastBoundary()),e(n)}.bind(this)},h.prototype._lastBoundary=function(){return"--"+this.getBoundary()+"--"+h.LINE_BREAK},h.prototype.getHeaders=function(e){var n,a={"content-type":"multipart/form-data; boundary="+this.getBoundary()};for(n in e)x(e,n)&&(a[n.toLowerCase()]=e[n]);return a},h.prototype.setBoundary=function(e){if("string"!=typeof e)throw new TypeError("FormData boundary must be a string");this._boundary=e},h.prototype.getBoundary=function(){return this._boundary||this._generateBoundary(),this._boundary},h.prototype.getBuffer=function(){for(var e=new Buffer.alloc(0),n=this.getBoundary(),a=0,i=this._streams.length;a<i;a++)"function"!=typeof this._streams[a]&&(e=Buffer.isBuffer(this._streams[a])?Buffer.concat([e,this._streams[a]]):Buffer.concat([e,Buffer.from(this._streams[a])]),"string"==typeof this._streams[a]&&this._streams[a].substring(2,n.length+2)===n||(e=Buffer.concat([e,Buffer.from(h.LINE_BREAK)])));return Buffer.concat([e,Buffer.from(this._lastBoundary())])},h.prototype._generateBoundary=function(){this._boundary="--------------------------"+u.randomBytes(12).toString("hex")},h.prototype.getLengthSync=function(){var e=this._overheadLength+this._valueLength;return this._streams.length&&(e+=this._lastBoundary().length),this.hasKnownLength()||this._error(new Error("Cannot calculate proper length in synchronous way.")),e},h.prototype.hasKnownLength=function(){var e=!0;return this._valuesToMeasure.length&&(e=!1),e},h.prototype.getLength=function(e){var n=this._overheadLength+this._valueLength;this._streams.length&&(n+=this._lastBoundary().length),this._valuesToMeasure.length?m.parallel(this._valuesToMeasure,this._lengthRetriever,(function(a,i){a?e(a):(i.forEach((function(e){n+=e})),e(null,n))})):process.nextTick(e.bind(this,null,n))},h.prototype.submit=function(e,n){var a,i,t={method:"post"};return"string"==typeof e?(e=c(e),i=v({port:e.port,path:e.pathname,host:e.hostname,protocol:e.protocol},t)):(i=v(e,t)).port||(i.port="https:"===i.protocol?443:80),i.headers=this.getHeaders(e.headers),a="https:"===i.protocol?r.request(i):s.request(i),this.getLength(function(e,i){if(e&&"Unknown stream"!==e)this._error(e);else if(i&&a.setHeader("Content-Length",i),this.pipe(a),n){var t,o=function(e,i){return a.removeListener("error",o),a.removeListener("response",t),n.call(this,e,i)};t=o.bind(this,null),a.on("error",o),a.on("response",t)}}.bind(this)),a},h.prototype._error=function(e){this.error||(this.error=e,this.pause(),this.emit("error",e))},h.prototype.toString=function(){return"[object FormData]"},f(h,"FormData"),e.exports=h},801:(e,n,a)=>{var i=a(9023),t=a(2203).Stream,o=a(8069);function s(){this.writable=!1,this.readable=!0,this.dataSize=0,this.maxDataSize=2097152,this.pauseStreams=!0,this._released=!1,this._streams=[],this._currentStream=null,this._insideLoop=!1,this._pendingNext=!1}e.exports=s,i.inherits(s,t),s.create=function(e){var n=new this;for(var a in e=e||{})n[a]=e[a];return n},s.isStreamLike=function(e){return"function"!=typeof e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e&&!Buffer.isBuffer(e)},s.prototype.append=function(e){if(s.isStreamLike(e)){if(!(e instanceof o)){var n=o.create(e,{maxDataSize:1/0,pauseStream:this.pauseStreams});e.on("data",this._checkDataSize.bind(this)),e=n}this._handleErrors(e),this.pauseStreams&&e.pause()}return this._streams.push(e),this},s.prototype.pipe=function(e,n){return t.prototype.pipe.call(this,e,n),this.resume(),e},s.prototype._getNext=function(){if(this._currentStream=null,this._insideLoop)this._pendingNext=!0;else{this._insideLoop=!0;try{do{this._pendingNext=!1,this._realGetNext()}while(this._pendingNext)}finally{this._insideLoop=!1}}},s.prototype._realGetNext=function(){var e=this._streams.shift();void 0!==e?"function"==typeof e?e(function(e){s.isStreamLike(e)&&(e.on("data",this._checkDataSize.bind(this)),this._handleErrors(e)),this._pipeNext(e)}.bind(this)):this._pipeNext(e):this.end()},s.prototype._pipeNext=function(e){if(this._currentStream=e,s.isStreamLike(e))return e.on("end",this._getNext.bind(this)),void e.pipe(this,{end:!1});var n=e;this.write(n),this._getNext()},s.prototype._handleErrors=function(e){var n=this;e.on("error",(function(e){n._emitError(e)}))},s.prototype.write=function(e){this.emit("data",e)},s.prototype.pause=function(){this.pauseStreams&&(this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.pause&&this._currentStream.pause(),this.emit("pause"))},s.prototype.resume=function(){this._released||(this._released=!0,this.writable=!0,this._getNext()),this.pauseStreams&&this._currentStream&&"function"==typeof this._currentStream.resume&&this._currentStream.resume(),this.emit("resume")},s.prototype.end=function(){this._reset(),this.emit("end")},s.prototype.destroy=function(){this._reset(),this.emit("close")},s.prototype._reset=function(){this.writable=!1,this._streams=[],this._currentStream=null},s.prototype._checkDataSize=function(){if(this._updateDataSize(),!(this.dataSize<=this.maxDataSize)){var e="DelayedStream#maxDataSize of "+this.maxDataSize+" bytes exceeded.";this._emitError(new Error(e))}},s.prototype._updateDataSize=function(){this.dataSize=0;var e=this;this._streams.forEach((function(n){n.dataSize&&(e.dataSize+=n.dataSize)})),this._currentStream&&this._currentStream.dataSize&&(this.dataSize+=this._currentStream.dataSize)},s.prototype._emitError=function(e){this._reset(),this.emit("error",e)}},857:e=>{"use strict";e.exports=require("os")},1002:e=>{"use strict";e.exports=Function.prototype.apply},1013:(e,n,a)=>{var i=a(7372).stringify,t=a(8146);e.exports=function(e){return{parse:t(e),stringify:i}},e.exports.parse=t(),e.exports.stringify=i},1064:(e,n,a)=>{"use strict";var i=a(9612);e.exports=i.getPrototypeOf||null},1237:e=>{"use strict";e.exports=EvalError},1254:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Statistic=void 0,function(e){!function(e){e.SentCampaign="Campaign",e.ABTesting="AX",e.Draft="NL"}(e.CampaignOverviewIDType||(e.CampaignOverviewIDType={})),function(e){e.Tool="tool",e.HTML="html",e.Tool2="tool2",e.HTML2="html2",e.MJML="mjml"}(e.CampaignOverviewEditMode||(e.CampaignOverviewEditMode={})),function(e){e.Full="full",e.Unknown="unknown"}(e.CampaignOverviewEditType||(e.CampaignOverviewEditType={})),function(e){e.Campaign="Campaign",e.APIKey="APIKey",e.List="List",e.Sender="Sender"}(e.CounterSource||(e.CounterSource={})),function(e){e.Highest="Highest",e.Hour="Hour",e.Day="Day",e.Lifetime="Lifetime"}(e.CounterResolution||(e.CounterResolution={})),function(e){e.Message="Message",e.Event="Event"}(e.CounterTiming||(e.CounterTiming={})),function(e){e.Open="open",e.Click="click"}(e.EmailEvent||(e.EmailEvent={}))}(n.Statistic||(n.Statistic={}))},1333:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},n=Symbol("test"),a=Object(n);if("string"==typeof n)return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;if("[object Symbol]"!==Object.prototype.toString.call(a))return!1;for(var i in e[n]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var t=Object.getOwnPropertySymbols(e);if(1!==t.length||t[0]!==n)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,n))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,n);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},1362:e=>{"use strict";e.exports=function(e,n){return Object.keys(n).forEach((function(a){e[a]=e[a]||n[a]})),e}},1375:(e,n)=>{"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Message=void 0,function(e){!function(e){e[e.UserUnknown=1]="UserUnknown",e[e.MailboxInactive=2]="MailboxInactive",e[e.QuotaExceeded=3]="QuotaExceeded",e[e.InvalidDomain=4]="InvalidDomain",e[e.NoMailHost=5]="NoMailHost",e[e.RelayOrAccessDenied=6]="RelayOrAccessDenied",e[e.SenderBlocked=7]="SenderBlocked",e[e.ContentBlocked=8]="ContentBlocked",e[e.PolicyIssue=9]="PolicyIssue",e[e.SystemIssue=10]="SystemIssue",e[e.ProtocolIssue=11]="ProtocolIssue",e[e.ConnectionIssue=12]="ConnectionIssue",e[e.GreyListed=13]="GreyListed",e[e.PreBlocked=14]="PreBlocked",e[e.DuplicateInCampaign=15]="DuplicateInCampaign",e[e.SpamPreBlocked=16]="SpamPreBlocked",e[e.BadOrEmptyTemplate=17]="BadOrEmptyTemplate",e[e.ErrorInTemplateLanguage=18]="ErrorInTemplateLanguage",e[e.TypoFix=19]="TypoFix",e[e.BlackListed=20]="BlackListed",e[e.SpamReporter=21]="SpamReporter"}(e.MessageState||(e.MessageState={})),function(e){e[e.Transactional=1]="Transactional",e[e.Marketing=2]="Marketing",e[e.Unknown=3]="Unknown"}(e.FromType||(e.FromType={})),function(e){e[e.Processed=0]="Processed",e[e.Queued=1]="Queued",e[e.Sent=2]="Sent",e[e.Opened=3]="Opened",e[e.Clicked=4]="Clicked",e[e.Bounce=5]="Bounce",e[e.Spam=6]="Spam",e[e.Unsub=7]="Unsub",e[e.Blocked=8]="Blocked",e[e.SoftBounce=9]="SoftBounce",e[e.HardBounce=10]="HardBounce",e[e.Deferred=11]="Deferred"}(e.MessageStatus||(e.MessageStatus={})),function(e){e.Unknown="unknown",e.Queued="queued",e.Sent="sent",e.Opened="opened",e.Clicked="clicked",e.Bounce="bounce",e.Spam="spam",e.Unsub="unsub",e.Blocked="blocked",e.HardBounced="hardbounced",e.SoftBounced="softbounced",e.Deferred="deferred"}(e.CurrentMessageStatus||(e.CurrentMessageStatus={})),function(e){e.Sent="sent",e.Opened="opened",e.Clicked="clicked",e.Bounced="bounced",e.Blocked="blocked",e.Unsub="unsub",e.Spam="spam"}(e.EventType||(e.EventType={}))}(n.Message||(n.Message={}))},1514:e=>{"use strict";e.exports=Math.abs},1594:function(e,n,a){var i;!function(){"use strict";var t,o=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,r=Math.floor,c="[BigNumber Error] ",p=c+"Number primitive has more than 15 significant digits: ",l=1e14,u=14,d=9007199254740991,m=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],f=1e7,x=1e9;function v(e){var n=0|e;return e>0||e===n?n:n-1}function h(e){for(var n,a,i=1,t=e.length,o=e[0]+"";i<t;){for(n=e[i++]+"",a=u-n.length;a--;n="0"+n);o+=n}for(t=o.length;48===o.charCodeAt(--t););return o.slice(0,t+1||1)}function b(e,n){var a,i,t=e.c,o=n.c,s=e.s,r=n.s,c=e.e,p=n.e;if(!s||!r)return null;if(a=t&&!t[0],i=o&&!o[0],a||i)return a?i?0:-r:s;if(s!=r)return s;if(a=s<0,i=c==p,!t||!o)return i?0:!t^a?1:-1;if(!i)return c>p^a?1:-1;for(r=(c=t.length)<(p=o.length)?c:p,s=0;s<r;s++)if(t[s]!=o[s])return t[s]>o[s]^a?1:-1;return c==p?0:c>p^a?1:-1}function g(e,n,a,i){if(e<n||e>a||e!==r(e))throw Error(c+(i||"Argument")+("number"==typeof e?e<n||e>a?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function y(e){var n=e.c.length-1;return v(e.e/u)==n&&e.c[n]%2!=0}function w(e,n){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(n<0?"e":"e+")+n}function k(e,n,a){var i,t;if(n<0){for(t=a+".";++n;t+=a);e=t+e}else if(++n>(i=e.length)){for(t=a,n-=i;--n;t+=a);e+=t}else n<i&&(e=e.slice(0,n)+"."+e.slice(n));return e}t=function e(n){var a,i,t,j,S,_,E,O,A,C,R=H.prototype={constructor:H,toString:null,valueOf:null},T=new H(1),P=20,F=4,B=-7,N=21,U=-1e7,L=1e7,z=!1,I=1,D=0,M={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},q="0123456789abcdefghijklmnopqrstuvwxyz";function H(e,n){var a,s,c,l,m,f,x,v,h=this;if(!(h instanceof H))return new H(e,n);if(null==n){if(e&&!0===e._isBigNumber)return h.s=e.s,void(!e.c||e.e>L?h.c=h.e=null:e.e<U?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice()));if((f="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,m=e;m>=10;m/=10,l++);return void(l>L?h.c=h.e=null:(h.e=l,h.c=[e]))}v=String(e)}else{if(!o.test(v=String(e)))return t(h,v,f);h.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(m=v.search(/e/i))>0?(l<0&&(l=m),l+=+v.slice(m+1),v=v.substring(0,m)):l<0&&(l=v.length)}else{if(g(n,2,q.length,"Base"),10==n)return W(h=new H(e),P+h.e+1,F);if(v=String(e),f="number"==typeof e){if(0*e!=0)return t(h,v,f,n);if(h.s=1/e<0?(v=v.slice(1),-1):1,H.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(p+e)}else h.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(a=q.slice(0,n),l=m=0,x=v.length;m<x;m++)if(a.indexOf(s=v.charAt(m))<0){if("."==s){if(m>l){l=x;continue}}else if(!c&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){c=!0,m=-1,l=0;continue}return t(h,String(e),f,n)}f=!1,(l=(v=i(v,n,10,h.s)).indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(m=0;48===v.charCodeAt(m);m++);for(x=v.length;48===v.charCodeAt(--x););if(v=v.slice(m,++x)){if(x-=m,f&&H.DEBUG&&x>15&&(e>d||e!==r(e)))throw Error(p+h.s*e);if((l=l-m-1)>L)h.c=h.e=null;else if(l<U)h.c=[h.e=0];else{if(h.e=l,h.c=[],m=(l+1)%u,l<0&&(m+=u),m<x){for(m&&h.c.push(+v.slice(0,m)),x-=u;m<x;)h.c.push(+v.slice(m,m+=u));m=u-(v=v.slice(m)).length}else m-=x;for(;m--;v+="0");h.c.push(+v)}}else h.c=[h.e=0]}function V(e,n,a,i){var t,o,s,r,c;if(null==a?a=F:g(a,0,8),!e.c)return e.toString();if(t=e.c[0],s=e.e,null==n)c=h(e.c),c=1==i||2==i&&(s<=B||s>=N)?w(c,s):k(c,s,"0");else if(o=(e=W(new H(e),n,a)).e,r=(c=h(e.c)).length,1==i||2==i&&(n<=o||o<=B)){for(;r<n;c+="0",r++);c=w(c,o)}else if(n-=s,c=k(c,o,"0"),o+1>r){if(--n>0)for(c+=".";n--;c+="0");}else if((n+=o-r)>0)for(o+1==r&&(c+=".");n--;c+="0");return e.s<0&&t?"-"+c:c}function G(e,n){for(var a,i=1,t=new H(e[0]);i<e.length;i++){if(!(a=new H(e[i])).s){t=a;break}n.call(t,a)&&(t=a)}return t}function K(e,n,a){for(var i=1,t=n.length;!n[--t];n.pop());for(t=n[0];t>=10;t/=10,i++);return(a=i+a*u-1)>L?e.c=e.e=null:a<U?e.c=[e.e=0]:(e.e=a,e.c=n),e}function W(e,n,a,i){var t,o,c,p,d,f,x,v=e.c,h=m;if(v){e:{for(t=1,p=v[0];p>=10;p/=10,t++);if((o=n-t)<0)o+=u,c=n,x=(d=v[f=0])/h[t-c-1]%10|0;else if((f=s((o+1)/u))>=v.length){if(!i)break e;for(;v.length<=f;v.push(0));d=x=0,t=1,c=(o%=u)-u+1}else{for(d=p=v[f],t=1;p>=10;p/=10,t++);x=(c=(o%=u)-u+t)<0?0:d/h[t-c-1]%10|0}if(i=i||n<0||null!=v[f+1]||(c<0?d:d%h[t-c-1]),i=a<4?(x||i)&&(0==a||a==(e.s<0?3:2)):x>5||5==x&&(4==a||i||6==a&&(o>0?c>0?d/h[t-c]:0:v[f-1])%10&1||a==(e.s<0?8:7)),n<1||!v[0])return v.length=0,i?(n-=e.e+1,v[0]=h[(u-n%u)%u],e.e=-n||0):v[0]=e.e=0,e;if(0==o?(v.length=f,p=1,f--):(v.length=f+1,p=h[u-o],v[f]=c>0?r(d/h[t-c]%h[c])*p:0),i)for(;;){if(0==f){for(o=1,c=v[0];c>=10;c/=10,o++);for(c=v[0]+=p,p=1;c>=10;c/=10,p++);o!=p&&(e.e++,v[0]==l&&(v[0]=1));break}if(v[f]+=p,v[f]!=l)break;v[f--]=0,p=1}for(o=v.length;0===v[--o];v.pop());}e.e>L?e.c=e.e=null:e.e<U&&(e.c=[e.e=0])}return e}function $(e){var n,a=e.e;return null===a?e.toString():(n=h(e.c),n=a<=B||a>=N?w(n,a):k(n,a,"0"),e.s<0?"-"+n:n)}return H.clone=e,H.ROUND_UP=0,H.ROUND_DOWN=1,H.ROUND_CEIL=2,H.ROUND_FLOOR=3,H.ROUND_HALF_UP=4,H.ROUND_HALF_DOWN=5,H.ROUND_HALF_EVEN=6,H.ROUND_HALF_CEIL=7,H.ROUND_HALF_FLOOR=8,H.EUCLID=9,H.config=H.set=function(e){var n,a;if(null!=e){if("object"!=typeof e)throw Error(c+"Object expected: "+e);if(e.hasOwnProperty(n="DECIMAL_PLACES")&&(g(a=e[n],0,x,n),P=a),e.hasOwnProperty(n="ROUNDING_MODE")&&(g(a=e[n],0,8,n),F=a),e.hasOwnProperty(n="EXPONENTIAL_AT")&&((a=e[n])&&a.pop?(g(a[0],-x,0,n),g(a[1],0,x,n),B=a[0],N=a[1]):(g(a,-x,x,n),B=-(N=a<0?-a:a))),e.hasOwnProperty(n="RANGE"))if((a=e[n])&&a.pop)g(a[0],-x,-1,n),g(a[1],1,x,n),U=a[0],L=a[1];else{if(g(a,-x,x,n),!a)throw Error(c+n+" cannot be zero: "+a);U=-(L=a<0?-a:a)}if(e.hasOwnProperty(n="CRYPTO")){if((a=e[n])!==!!a)throw Error(c+n+" not true or false: "+a);if(a){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw z=!a,Error(c+"crypto unavailable");z=a}else z=a}if(e.hasOwnProperty(n="MODULO_MODE")&&(g(a=e[n],0,9,n),I=a),e.hasOwnProperty(n="POW_PRECISION")&&(g(a=e[n],0,x,n),D=a),e.hasOwnProperty(n="FORMAT")){if("object"!=typeof(a=e[n]))throw Error(c+n+" not an object: "+a);M=a}if(e.hasOwnProperty(n="ALPHABET")){if("string"!=typeof(a=e[n])||/^.?$|[+\-.\s]|(.).*\1/.test(a))throw Error(c+n+" invalid: "+a);q=a}}return{DECIMAL_PLACES:P,ROUNDING_MODE:F,EXPONENTIAL_AT:[B,N],RANGE:[U,L],CRYPTO:z,MODULO_MODE:I,POW_PRECISION:D,FORMAT:M,ALPHABET:q}},H.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!H.DEBUG)return!0;var n,a,i=e.c,t=e.e,o=e.s;e:if("[object Array]"=={}.toString.call(i)){if((1===o||-1===o)&&t>=-x&&t<=x&&t===r(t)){if(0===i[0]){if(0===t&&1===i.length)return!0;break e}if((n=(t+1)%u)<1&&(n+=u),String(i[0]).length==n){for(n=0;n<i.length;n++)if((a=i[n])<0||a>=l||a!==r(a))break e;if(0!==a)return!0}}}else if(null===i&&null===t&&(null===o||1===o||-1===o))return!0;throw Error(c+"Invalid BigNumber: "+e)},H.maximum=H.max=function(){return G(arguments,R.lt)},H.minimum=H.min=function(){return G(arguments,R.gt)},H.random=(j=9007199254740992,S=Math.random()*j&2097151?function(){return r(Math.random()*j)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)},function(e){var n,a,i,t,o,p=0,l=[],d=new H(T);if(null==e?e=P:g(e,0,x),t=s(e/u),z)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(t*=2));p<t;)(o=131072*n[p]+(n[p+1]>>>11))>=9e15?(a=crypto.getRandomValues(new Uint32Array(2)),n[p]=a[0],n[p+1]=a[1]):(l.push(o%1e14),p+=2);p=t/2}else{if(!crypto.randomBytes)throw z=!1,Error(c+"crypto unavailable");for(n=crypto.randomBytes(t*=7);p<t;)(o=281474976710656*(31&n[p])+1099511627776*n[p+1]+4294967296*n[p+2]+16777216*n[p+3]+(n[p+4]<<16)+(n[p+5]<<8)+n[p+6])>=9e15?crypto.randomBytes(7).copy(n,p):(l.push(o%1e14),p+=7);p=t/7}if(!z)for(;p<t;)(o=S())<9e15&&(l[p++]=o%1e14);for(t=l[--p],e%=u,t&&e&&(o=m[u-e],l[p]=r(t/o)*o);0===l[p];l.pop(),p--);if(p<0)l=[i=0];else{for(i=-1;0===l[0];l.splice(0,1),i-=u);for(p=1,o=l[0];o>=10;o/=10,p++);p<u&&(i-=u-p)}return d.e=i,d.c=l,d}),H.sum=function(){for(var e=1,n=arguments,a=new H(n[0]);e<n.length;)a=a.plus(n[e++]);return a},i=function(){var e="0123456789";function n(e,n,a,i){for(var t,o,s=[0],r=0,c=e.length;r<c;){for(o=s.length;o--;s[o]*=n);for(s[0]+=i.indexOf(e.charAt(r++)),t=0;t<s.length;t++)s[t]>a-1&&(null==s[t+1]&&(s[t+1]=0),s[t+1]+=s[t]/a|0,s[t]%=a)}return s.reverse()}return function(i,t,o,s,r){var c,p,l,u,d,m,f,x,v=i.indexOf("."),b=P,g=F;for(v>=0&&(u=D,D=0,i=i.replace(".",""),m=(x=new H(t)).pow(i.length-v),D=u,x.c=n(k(h(m.c),m.e,"0"),10,o,e),x.e=x.c.length),l=u=(f=n(i,t,o,r?(c=q,e):(c=e,q))).length;0==f[--u];f.pop());if(!f[0])return c.charAt(0);if(v<0?--l:(m.c=f,m.e=l,m.s=s,f=(m=a(m,x,b,g,o)).c,d=m.r,l=m.e),v=f[p=l+b+1],u=o/2,d=d||p<0||null!=f[p+1],d=g<4?(null!=v||d)&&(0==g||g==(m.s<0?3:2)):v>u||v==u&&(4==g||d||6==g&&1&f[p-1]||g==(m.s<0?8:7)),p<1||!f[0])i=d?k(c.charAt(1),-b,c.charAt(0)):c.charAt(0);else{if(f.length=p,d)for(--o;++f[--p]>o;)f[p]=0,p||(++l,f=[1].concat(f));for(u=f.length;!f[--u];);for(v=0,i="";v<=u;i+=c.charAt(f[v++]));i=k(i,l,c.charAt(0))}return i}}(),a=function(){function e(e,n,a){var i,t,o,s,r=0,c=e.length,p=n%f,l=n/f|0;for(e=e.slice();c--;)r=((t=p*(o=e[c]%f)+(i=l*o+(s=e[c]/f|0)*p)%f*f+r)/a|0)+(i/f|0)+l*s,e[c]=t%a;return r&&(e=[r].concat(e)),e}function n(e,n,a,i){var t,o;if(a!=i)o=a>i?1:-1;else for(t=o=0;t<a;t++)if(e[t]!=n[t]){o=e[t]>n[t]?1:-1;break}return o}function a(e,n,a,i){for(var t=0;a--;)e[a]-=t,t=e[a]<n[a]?1:0,e[a]=t*i+e[a]-n[a];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(i,t,o,s,c){var p,d,m,f,x,h,b,g,y,w,k,j,S,_,E,O,A,C=i.s==t.s?1:-1,R=i.c,T=t.c;if(!(R&&R[0]&&T&&T[0]))return new H(i.s&&t.s&&(R?!T||R[0]!=T[0]:T)?R&&0==R[0]||!T?0*C:C/0:NaN);for(y=(g=new H(C)).c=[],C=o+(d=i.e-t.e)+1,c||(c=l,d=v(i.e/u)-v(t.e/u),C=C/u|0),m=0;T[m]==(R[m]||0);m++);if(T[m]>(R[m]||0)&&d--,C<0)y.push(1),f=!0;else{for(_=R.length,O=T.length,m=0,C+=2,(x=r(c/(T[0]+1)))>1&&(T=e(T,x,c),R=e(R,x,c),O=T.length,_=R.length),S=O,k=(w=R.slice(0,O)).length;k<O;w[k++]=0);A=T.slice(),A=[0].concat(A),E=T[0],T[1]>=c/2&&E++;do{if(x=0,(p=n(T,w,O,k))<0){if(j=w[0],O!=k&&(j=j*c+(w[1]||0)),(x=r(j/E))>1)for(x>=c&&(x=c-1),b=(h=e(T,x,c)).length,k=w.length;1==n(h,w,b,k);)x--,a(h,O<b?A:T,b,c),b=h.length,p=1;else 0==x&&(p=x=1),b=(h=T.slice()).length;if(b<k&&(h=[0].concat(h)),a(w,h,k,c),k=w.length,-1==p)for(;n(T,w,O,k)<1;)x++,a(w,O<k?A:T,k,c),k=w.length}else 0===p&&(x++,w=[0]);y[m++]=x,w[0]?w[k++]=R[S]||0:(w=[R[S]],k=1)}while((S++<_||null!=w[0])&&C--);f=null!=w[0],y[0]||y.splice(0,1)}if(c==l){for(m=1,C=y[0];C>=10;C/=10,m++);W(g,o+(g.e=m+d*u-1)+1,s,f)}else g.e=d,g.r=+f;return g}}(),_=/^(-?)0([xbo])(?=\w[\w.]*$)/i,E=/^([^.]+)\.$/,O=/^\.([^.]+)$/,A=/^-?(Infinity|NaN)$/,C=/^\s*\+(?=[\w.])|^\s+|\s+$/g,t=function(e,n,a,i){var t,o=a?n:n.replace(C,"");if(A.test(o))e.s=isNaN(o)?null:o<0?-1:1;else{if(!a&&(o=o.replace(_,(function(e,n,a){return t="x"==(a=a.toLowerCase())?16:"b"==a?2:8,i&&i!=t?e:n})),i&&(t=i,o=o.replace(E,"$1").replace(O,"0.$1")),n!=o))return new H(o,t);if(H.DEBUG)throw Error(c+"Not a"+(i?" base "+i:"")+" number: "+n);e.s=null}e.c=e.e=null},R.absoluteValue=R.abs=function(){var e=new H(this);return e.s<0&&(e.s=1),e},R.comparedTo=function(e,n){return b(this,new H(e,n))},R.decimalPlaces=R.dp=function(e,n){var a,i,t,o=this;if(null!=e)return g(e,0,x),null==n?n=F:g(n,0,8),W(new H(o),e+o.e+1,n);if(!(a=o.c))return null;if(i=((t=a.length-1)-v(this.e/u))*u,t=a[t])for(;t%10==0;t/=10,i--);return i<0&&(i=0),i},R.dividedBy=R.div=function(e,n){return a(this,new H(e,n),P,F)},R.dividedToIntegerBy=R.idiv=function(e,n){return a(this,new H(e,n),0,1)},R.exponentiatedBy=R.pow=function(e,n){var a,i,t,o,p,l,d,m,f=this;if((e=new H(e)).c&&!e.isInteger())throw Error(c+"Exponent not an integer: "+$(e));if(null!=n&&(n=new H(n)),p=e.e>14,!f.c||!f.c[0]||1==f.c[0]&&!f.e&&1==f.c.length||!e.c||!e.c[0])return m=new H(Math.pow(+$(f),p?2-y(e):+$(e))),n?m.mod(n):m;if(l=e.s<0,n){if(n.c?!n.c[0]:!n.s)return new H(NaN);(i=!l&&f.isInteger()&&n.isInteger())&&(f=f.mod(n))}else{if(e.e>9&&(f.e>0||f.e<-1||(0==f.e?f.c[0]>1||p&&f.c[1]>=24e7:f.c[0]<8e13||p&&f.c[0]<=9999975e7)))return o=f.s<0&&y(e)?-0:0,f.e>-1&&(o=1/o),new H(l?1/o:o);D&&(o=s(D/u+2))}for(p?(a=new H(.5),l&&(e.s=1),d=y(e)):d=(t=Math.abs(+$(e)))%2,m=new H(T);;){if(d){if(!(m=m.times(f)).c)break;o?m.c.length>o&&(m.c.length=o):i&&(m=m.mod(n))}if(t){if(0===(t=r(t/2)))break;d=t%2}else if(W(e=e.times(a),e.e+1,1),e.e>14)d=y(e);else{if(0==(t=+$(e)))break;d=t%2}f=f.times(f),o?f.c&&f.c.length>o&&(f.c.length=o):i&&(f=f.mod(n))}return i?m:(l&&(m=T.div(m)),n?m.mod(n):o?W(m,D,F,void 0):m)},R.integerValue=function(e){var n=new H(this);return null==e?e=F:g(e,0,8),W(n,n.e+1,e)},R.isEqualTo=R.eq=function(e,n){return 0===b(this,new H(e,n))},R.isFinite=function(){return!!this.c},R.isGreaterThan=R.gt=function(e,n){return b(this,new H(e,n))>0},R.isGreaterThanOrEqualTo=R.gte=function(e,n){return 1===(n=b(this,new H(e,n)))||0===n},R.isInteger=function(){return!!this.c&&v(this.e/u)>this.c.length-2},R.isLessThan=R.lt=function(e,n){return b(this,new H(e,n))<0},R.isLessThanOrEqualTo=R.lte=function(e,n){return-1===(n=b(this,new H(e,n)))||0===n},R.isNaN=function(){return!this.s},R.isNegative=function(){return this.s<0},R.isPositive=function(){return this.s>0},R.isZero=function(){return!!this.c&&0==this.c[0]},R.minus=function(e,n){var a,i,t,o,s=this,r=s.s;if(n=(e=new H(e,n)).s,!r||!n)return new H(NaN);if(r!=n)return e.s=-n,s.plus(e);var c=s.e/u,p=e.e/u,d=s.c,m=e.c;if(!c||!p){if(!d||!m)return d?(e.s=-n,e):new H(m?s:NaN);if(!d[0]||!m[0])return m[0]?(e.s=-n,e):new H(d[0]?s:3==F?-0:0)}if(c=v(c),p=v(p),d=d.slice(),r=c-p){for((o=r<0)?(r=-r,t=d):(p=c,t=m),t.reverse(),n=r;n--;t.push(0));t.reverse()}else for(i=(o=(r=d.length)<(n=m.length))?r:n,r=n=0;n<i;n++)if(d[n]!=m[n]){o=d[n]<m[n];break}if(o&&(t=d,d=m,m=t,e.s=-e.s),(n=(i=m.length)-(a=d.length))>0)for(;n--;d[a++]=0);for(n=l-1;i>r;){if(d[--i]<m[i]){for(a=i;a&&!d[--a];d[a]=n);--d[a],d[i]+=l}d[i]-=m[i]}for(;0==d[0];d.splice(0,1),--p);return d[0]?K(e,d,p):(e.s=3==F?-1:1,e.c=[e.e=0],e)},R.modulo=R.mod=function(e,n){var i,t,o=this;return e=new H(e,n),!o.c||!e.s||e.c&&!e.c[0]?new H(NaN):!e.c||o.c&&!o.c[0]?new H(o):(9==I?(t=e.s,e.s=1,i=a(o,e,0,3),e.s=t,i.s*=t):i=a(o,e,0,I),(e=o.minus(i.times(e))).c[0]||1!=I||(e.s=o.s),e)},R.multipliedBy=R.times=function(e,n){var a,i,t,o,s,r,c,p,d,m,x,h,b,g,y,w=this,k=w.c,j=(e=new H(e,n)).c;if(!(k&&j&&k[0]&&j[0]))return!w.s||!e.s||k&&!k[0]&&!j||j&&!j[0]&&!k?e.c=e.e=e.s=null:(e.s*=w.s,k&&j?(e.c=[0],e.e=0):e.c=e.e=null),e;for(i=v(w.e/u)+v(e.e/u),e.s*=w.s,(c=k.length)<(m=j.length)&&(b=k,k=j,j=b,t=c,c=m,m=t),t=c+m,b=[];t--;b.push(0));for(g=l,y=f,t=m;--t>=0;){for(a=0,x=j[t]%y,h=j[t]/y|0,o=t+(s=c);o>t;)a=((p=x*(p=k[--s]%y)+(r=h*p+(d=k[s]/y|0)*x)%y*y+b[o]+a)/g|0)+(r/y|0)+h*d,b[o--]=p%g;b[o]=a}return a?++i:b.splice(0,1),K(e,b,i)},R.negated=function(){var e=new H(this);return e.s=-e.s||null,e},R.plus=function(e,n){var a,i=this,t=i.s;if(n=(e=new H(e,n)).s,!t||!n)return new H(NaN);if(t!=n)return e.s=-n,i.minus(e);var o=i.e/u,s=e.e/u,r=i.c,c=e.c;if(!o||!s){if(!r||!c)return new H(t/0);if(!r[0]||!c[0])return c[0]?e:new H(r[0]?i:0*t)}if(o=v(o),s=v(s),r=r.slice(),t=o-s){for(t>0?(s=o,a=c):(t=-t,a=r),a.reverse();t--;a.push(0));a.reverse()}for((t=r.length)-(n=c.length)<0&&(a=c,c=r,r=a,n=t),t=0;n;)t=(r[--n]=r[n]+c[n]+t)/l|0,r[n]=l===r[n]?0:r[n]%l;return t&&(r=[t].concat(r),++s),K(e,r,s)},R.precision=R.sd=function(e,n){var a,i,t,o=this;if(null!=e&&e!==!!e)return g(e,1,x),null==n?n=F:g(n,0,8),W(new H(o),e,n);if(!(a=o.c))return null;if(i=(t=a.length-1)*u+1,t=a[t]){for(;t%10==0;t/=10,i--);for(t=a[0];t>=10;t/=10,i++);}return e&&o.e+1>i&&(i=o.e+1),i},R.shiftedBy=function(e){return g(e,-9007199254740991,d),this.times("1e"+e)},R.squareRoot=R.sqrt=function(){var e,n,i,t,o,s=this,r=s.c,c=s.s,p=s.e,l=P+4,u=new H("0.5");if(1!==c||!r||!r[0])return new H(!c||c<0&&(!r||r[0])?NaN:r?s:1/0);if(0==(c=Math.sqrt(+$(s)))||c==1/0?(((n=h(r)).length+p)%2==0&&(n+="0"),c=Math.sqrt(+n),p=v((p+1)/2)-(p<0||p%2),i=new H(n=c==1/0?"5e"+p:(n=c.toExponential()).slice(0,n.indexOf("e")+1)+p)):i=new H(c+""),i.c[0])for((c=(p=i.e)+l)<3&&(c=0);;)if(o=i,i=u.times(o.plus(a(s,o,l,1))),h(o.c).slice(0,c)===(n=h(i.c)).slice(0,c)){if(i.e<p&&--c,"9999"!=(n=n.slice(c-3,c+1))&&(t||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(W(i,i.e+P+2,1),e=!i.times(i).eq(s));break}if(!t&&(W(o,o.e+P+2,0),o.times(o).eq(s))){i=o;break}l+=4,c+=4,t=1}return W(i,i.e+P+1,F,e)},R.toExponential=function(e,n){return null!=e&&(g(e,0,x),e++),V(this,e,n,1)},R.toFixed=function(e,n){return null!=e&&(g(e,0,x),e=e+this.e+1),V(this,e,n)},R.toFormat=function(e,n,a){var i,t=this;if(null==a)null!=e&&n&&"object"==typeof n?(a=n,n=null):e&&"object"==typeof e?(a=e,e=n=null):a=M;else if("object"!=typeof a)throw Error(c+"Argument not an object: "+a);if(i=t.toFixed(e,n),t.c){var o,s=i.split("."),r=+a.groupSize,p=+a.secondaryGroupSize,l=a.groupSeparator||"",u=s[0],d=s[1],m=t.s<0,f=m?u.slice(1):u,x=f.length;if(p&&(o=r,r=p,p=o,x-=o),r>0&&x>0){for(o=x%r||r,u=f.substr(0,o);o<x;o+=r)u+=l+f.substr(o,r);p>0&&(u+=l+f.slice(o)),m&&(u="-"+u)}i=d?u+(a.decimalSeparator||"")+((p=+a.fractionGroupSize)?d.replace(new RegExp("\\d{"+p+"}\\B","g"),"$&"+(a.fractionGroupSeparator||"")):d):u}return(a.prefix||"")+i+(a.suffix||"")},R.toFraction=function(e){var n,i,t,o,s,r,p,l,d,f,x,v,b=this,g=b.c;if(null!=e&&(!(p=new H(e)).isInteger()&&(p.c||1!==p.s)||p.lt(T)))throw Error(c+"Argument "+(p.isInteger()?"out of range: ":"not an integer: ")+$(p));if(!g)return new H(b);for(n=new H(T),d=i=new H(T),t=l=new H(T),v=h(g),s=n.e=v.length-b.e-1,n.c[0]=m[(r=s%u)<0?u+r:r],e=!e||p.comparedTo(n)>0?s>0?n:d:p,r=L,L=1/0,p=new H(v),l.c[0]=0;f=a(p,n,0,1),1!=(o=i.plus(f.times(t))).comparedTo(e);)i=t,t=o,d=l.plus(f.times(o=d)),l=o,n=p.minus(f.times(o=n)),p=o;return o=a(e.minus(i),t,0,1),l=l.plus(o.times(d)),i=i.plus(o.times(t)),l.s=d.s=b.s,x=a(d,t,s*=2,F).minus(b).abs().comparedTo(a(l,i,s,F).minus(b).abs())<1?[d,t]:[l,i],L=r,x},R.toNumber=function(){return+$(this)},R.toPrecision=function(e,n){return null!=e&&g(e,1,x),V(this,e,n,2)},R.toString=function(e){var n,a=this,t=a.s,o=a.e;return null===o?t?(n="Infinity",t<0&&(n="-"+n)):n="NaN":(null==e?n=o<=B||o>=N?w(h(a.c),o):k(h(a.c),o,"0"):10===e?n=k(h((a=W(new H(a),P+o+1,F)).c),a.e,"0"):(g(e,2,q.length,"Base"),n=i(k(h(a.c),o,"0"),10,e,t,!0)),t<0&&a.c[0]&&(n="-"+n)),n},R.valueOf=R.toJSON=function(){return $(this)},R._isBigNumber=!0,null!=n&&H.set(n),H}(),t.default=t.BigNumber=t,void 0===(i=function(){return t}.call(n,a,n,e))||(e.exports=i)}()},1813:e=>{"use strict";e.exports=JSON.parse('{"application/1d-interleaved-parityfec":{"source":"iana"},"application/3gpdash-qoe-report+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/3gpp-ims+xml":{"source":"iana","compressible":true},"application/3gpphal+json":{"source":"iana","compressible":true},"application/3gpphalforms+json":{"source":"iana","compressible":true},"application/a2l":{"source":"iana"},"application/ace+cbor":{"source":"iana"},"application/activemessage":{"source":"iana"},"application/activity+json":{"source":"iana","compressible":true},"application/alto-costmap+json":{"source":"iana","compressible":true},"application/alto-costmapfilter+json":{"source":"iana","compressible":true},"application/alto-directory+json":{"source":"iana","compressible":true},"application/alto-endpointcost+json":{"source":"iana","compressible":true},"application/alto-endpointcostparams+json":{"source":"iana","compressible":true},"application/alto-endpointprop+json":{"source":"iana","compressible":true},"application/alto-endpointpropparams+json":{"source":"iana","compressible":true},"application/alto-error+json":{"source":"iana","compressible":true},"application/alto-networkmap+json":{"source":"iana","compressible":true},"application/alto-networkmapfilter+json":{"source":"iana","compressible":true},"application/alto-updatestreamcontrol+json":{"source":"iana","compressible":true},"application/alto-updatestreamparams+json":{"source":"iana","compressible":true},"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":true,"extensions":["atom"]},"application/atomcat+xml":{"source":"iana","compressible":true,"extensions":["atomcat"]},"application/atomdeleted+xml":{"source":"iana","compressible":true,"extensions":["atomdeleted"]},"application/atomicmail":{"source":"iana"},"application/atomsvc+xml":{"source":"iana","compressible":true,"extensions":["atomsvc"]},"application/atsc-dwd+xml":{"source":"iana","compressible":true,"extensions":["dwd"]},"application/atsc-dynamic-event-message":{"source":"iana"},"application/atsc-held+xml":{"source":"iana","compressible":true,"extensions":["held"]},"application/atsc-rdt+json":{"source":"iana","compressible":true},"application/atsc-rsat+xml":{"source":"iana","compressible":true,"extensions":["rsat"]},"application/atxml":{"source":"iana"},"application/auth-policy+xml":{"source":"iana","compressible":true},"application/bacnet-xdd+zip":{"source":"iana","compressible":false},"application/batch-smtp":{"source":"iana"},"application/bdoc":{"compressible":false,"extensions":["bdoc"]},"application/beep+xml":{"source":"iana","charset":"UTF-8","compressible":true},"application/calendar+json":{"source":"iana","compressible":true},"application/calendar+xml":{"source":"iana","compressible":true,"extensions":["xcs"]},"application/call-completion":{"source":"iana"},"application/cals-1840":{"source":"iana"},"application/captive+json":{"source":"iana","compressible":true},"application/cbor":{"source":"iana"},"application/cbor-seq":{"source":"iana"},"application/cccex":{"source":"iana"},"application/ccmp+xml":{"source":"iana","compressible":true},"application/ccxml+xml":{"source":"iana","compressible":true,"extensions":["ccxml"]},"application/cdfx+xml":{"source":"iana","compressible":true,"extensions":[