newman-cli-bundle 1.0.1 → 1.0.2
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/newman.js +18 -18
- package/package.json +3 -3
package/dist/newman.js
CHANGED
|
@@ -539,49 +539,49 @@ Expecting `+S.join(`, `)+`, got '`+(this.terminals_[p]||p)+`'`:`Parse error on l
|
|
|
539
539
|
`+a),e.push(i+`m+`+t.exports.humanize(this.diff)+`\x1B[0m`)}else e[0]=o()+n+` `+e[0]}function o(){return e.inspectOpts.hideDate?``:new Date().toISOString()+` `}function s(...t){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...t)+`
|
|
540
540
|
`)}function c(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function l(){return process.env.DEBUG}function u(t){t.inspectOpts={};let n=Object.keys(e.inspectOpts);for(let r=0;r<n.length;r++)t.inspectOpts[n[r]]=e.inspectOpts[n[r]]}t.exports=q_()(e);let{formatters:f}=t.exports;f.o=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts).split(`
|
|
541
541
|
`).map(e=>e.trim()).join(` `)},f.O=function(e){return this.inspectOpts.colors=this.useColors,r.inspect(e,this.inspectOpts)}})),Q_=s(((e,t)=>{typeof process>`u`||process.type===`renderer`||process.browser===!0||process.__nwjs?t.exports=J_():t.exports=Z_()})),$_=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.SocksProxyAgent=void 0;let a=U_(),o=G_(),s=i(Q_()),c=r(d(`dns`)),l=r(d(`net`)),u=r(d(`tls`)),f=d(`url`),p=(0,s.default)(`socks-proxy-agent`),m=e=>e.servername===void 0&&e.host&&!l.isIP(e.host)?{...e,servername:e.host}:e;function h(e){let t=!1,n=5,r=e.hostname,i=parseInt(e.port,10)||1080;switch(e.protocol.replace(`:`,``)){case`socks4`:t=!0,n=4;break;case`socks4a`:n=4;break;case`socks5`:t=!0,n=5;break;case`socks`:n=5;break;case`socks5h`:n=5;break;default:throw TypeError(`A "socks" protocol must be specified! Got: ${String(e.protocol)}`)}let a={host:r,port:i,type:n};return e.username&&Object.defineProperty(a,`userId`,{value:decodeURIComponent(e.username),enumerable:!1}),e.password!=null&&Object.defineProperty(a,`password`,{value:decodeURIComponent(e.password),enumerable:!1}),{lookup:t,proxy:a}}var g=class extends o.Agent{constructor(e,t){super(t);let{proxy:n,lookup:r}=h(typeof e==`string`?new f.URL(e):e);this.shouldLookup=r,this.proxy=n,this.timeout=t?.timeout??null,this.socketOptions=t?.socketOptions??null}async connect(e,t){let{shouldLookup:n,proxy:r,timeout:i}=this;if(!t.host)throw Error("No `host` defined!");let{host:o}=t,{port:s,lookup:l=c.lookup}=t;n&&(o=await new Promise((e,t)=>{l(o,{},(n,r)=>{n?t(n):e(r)})}));let d={proxy:r,destination:{host:o,port:typeof s==`number`?s:parseInt(s,10)},command:`connect`,timeout:i??void 0,socket_options:this.socketOptions??void 0},f=t=>{e.destroy(),h.destroy(),t&&t.destroy()};p(`Creating socks proxy connection: %o`,d);let{socket:h}=await a.SocksClient.createConnection(d);if(p(`Successfully created socks proxy connection`),i!==null&&(h.setTimeout(i),h.on(`timeout`,()=>f())),t.secureEndpoint){p(`Upgrading socket connection to TLS`);let e=u.connect({..._(m(t),`host`,`path`,`port`),socket:h});return e.once(`error`,t=>{p(`Socket TLS error`,t.message),f(e)}),e}return h}};g.protocols=[`socks`,`socks4`,`socks4a`,`socks5`,`socks5h`],e.SocksProxyAgent=g;function _(e,...t){let n={},r;for(r in e)t.includes(r)||(n[r]=e[r]);return n}})),ev=s((e=>{var{SocksProxyAgent:t}=$_(),n=[`socks4:`,`socks4a:`,`socks5:`,`socks5h:`,`socks:`];function r(e){this.request=e}r.prototype.isEnabled=function(){var e=this.request;return typeof e.proxy==`string`&&(e.proxy=e.urlParser.parse(e.proxy)),e.proxy?e.proxy.href&&n.includes(e.proxy.protocol):!1},r.prototype.setup=function(){var e=this,n=e.request;if(!e.isEnabled())return!1;var r=n.proxy.href;return n.proxy.auth&&r.indexOf(`@`)===-1&&(r=n.proxy.protocol+`//`+n.proxy.auth+`@`+n.proxy.host),n.agent=new t(r),!0},e.SocksProxy=r})),tv=s(((e,t)=>{var n=d(`zlib`),r=d(`stream`),i=d(`util`).inherits,a=cp().Buffer,o=function(e){this.options=e,this._stream=null,r.Transform.call(this)};i(o,r.Transform),o.prototype._transform=function(e,t,r){var i=this;i._stream||((a.from(e,t)[0]&15)==8?i._stream=n.createInflate(i.options):i._stream=n.createInflateRaw(i.options),i._stream.on(`error`,function(e){i.emit(`error`,e)}),i._stream.on(`data`,function(e){i.push(e)}),i._stream.once(`end`,function(){i._ended=!0,i.push(null)})),i._stream.write(e,t,r)},o.prototype._flush=function(e){this._stream&&!this._ended?(this._stream.once(`end`,e),this._stream.end()):e()},t.exports.createInflate=function(e){return new o(e)}})),nv=s(((e,t)=>{var n=d(`url`),r=``,i=`0`,a=`%`,o=`string`,s=`&`,c=`=`,l=`?`,u,f,p=function(e){var t=e.toString(16).toUpperCase();return t.length===1&&(t=i+t),a+t},m=function(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102},h=function(e,t){return e[t]===37&&m(e[t+1])&&m(e[t+2])},g=function(e){return e<35||e>126||e===60||e===62||e===40||e===41||e===37||e===39||e===42},_=function(e){if(!e)return r;var t=Buffer.from(e),n=r,i,a;for(i=0,a=t.length;i<a;++i)g(t[i])&&!h(t,i)?n+=p(t[i]):n+=String.fromCodePoint(t[i]);return n};f=function(e){var t;return typeof e===o?(t=e.split(s),t.map(function(e,n){if(e===r&&n!==t.length-1)return{key:null,value:null};var i=typeof e===o?e.indexOf(c):-1,a={};return i<0?(a.key=e.substr(0,e.length),a.value=null):(a.key=e.substr(0,i),a.value=e.substr(i+1)),a})):[]},u=function(e){return e?e.map(function(e){var t=e.key,n=e.value;return n===void 0?r:(t===null&&(t=r),n===null?_(t):_(t)+c+_(n))}).join(s):r},t.exports=function(e){var t=n.parse(e),r=t.query,i,a,o;return r&&r.length&&(o=u(f(t.query)),i=l+o,a=t.pathname+i,t.query=o,t.search=i,t.path=a,e=n.format(t)),n.parse(e)},t.exports.parse=f,t.exports.stringify=u})),rv=s(((e,t)=>{var n=d(`tls`),r=d(`http`),i=d(`https`),a=d(`fs/promises`),o=d(`events`),s=mg(),c=_g(),l=d(`url`),f=d(`util`),p=d(`stream`),m=d(`zlib`),h=sd(),g=yg(),_=(un(),u(ln)).v4,v=wg(),y=Ka(),b=nf(),x=rf(),S=vf(),C=ad(),w=yf(),T=ap(),E=op().strict,D=Tg(),O=lg(),k=Eg(),A=y_().Querystring,j=b_().Har,M=x_().Auth,N=S_().OAuth,P=C_(),F=w_().Multipart,I=T_().Redirect,L=E_().Tunnel,R=ev().SocksProxy,z=cp().Buffer,B=tv(),V=nv(),H=D.safeStringify,U=D.isReadStream,W=D.toBase64,G=D.defer,K=D.copy,J=D.version,Y=D.now,X=D.SizeTrackerStream,ee=O.jar(),te={};function ne(e,t){var n={};for(var r in t)e.indexOf(r)===-1&&(n[r]=t[r]);return n}function re(e,t){var n={};for(var r in t){var i=e.indexOf(r)!==-1,a=typeof t[r]==`function`;i&&a||(n[r]=t[r])}return n}function Z(e){var t=[],n=function(e,n){t.push({key:e,value:n&&n.hasOwnProperty(`value`)?n.value:n,options:n&&n.hasOwnProperty(`options`)?n.options:void 0})};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];if(Array.isArray(i))for(var a=0;a<i.length;a++)n(r,i[a]);else n(r,i)}return t}function ie(){var e=this;return{uri:e.uri,method:e.method,headers:e.headers}}function ae(){var e=this;return{statusCode:e.statusCode,body:e.body,headers:e.headers,request:ie.call(e.request)}}function oe(e){for(var t=e.split(`\r
|
|
542
|
-
`),n=[],r=1;r<t.length-2;r++){var i=t[r].indexOf(`:`,1);n.push({key:t[r].slice(0,i),value:t[r].slice(i+2)})}return n}function se(e){for(var t=[],n=0;n<e.length;n+=2)t.push({key:e[n],value:e[n+1]});return t}function ce(e){var t=this;e.har&&(t._har=new j(t),e=t._har.options(e)),e.formData&&!Array.isArray(e.formData)&&(e.formData=Z(e.formData)),e.urlParser&&typeof e.urlParser.parse==`function`&&typeof e.urlParser.resolve==`function`||(e.urlParser={parse:l.parse,resolve:l.resolve}),p.Stream.call(t);var n=Object.keys(ce.prototype);C(t,ne(n,e)),e=re(n,e),t.readable=!0,t.writable=!0,t._debug=[],e.method&&(t.explicitMethod=!0),t._qs=new A(t),t._auth=new M(t),t._oauth=new N(t),t._multipart=new F(t),t._redirect=new I(t),t._tunnel=new L(t),t._socks=new R(t),t.init(e)}f.inherits(ce,p.Stream),ce.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function le(){ce.debug&&console.error(`REQUEST %s`,f.format.apply(f,arguments))}ce.prototype.debug=le,ce.prototype.init=function(e){var t=this;for(var n in e||={},t.headers=t.headers?K(t.headers):{},t._reqResInfo={},t._debug.push(t._reqResInfo),e.bindOn&&Object.keys(e.bindOn).forEach(function(n){!Array.isArray(e.bindOn[n])&&(e.bindOn[n]=[e.bindOn[n]]),e.bindOn[n].forEach(function(e){t.on(n,e)})}),e.once&&Object.keys(e.once).forEach(function(n){!Array.isArray(e.bindOnce[n])&&(e.bindOnce[n]=[e.bindOnce[n]]),e.bindOnce[n].forEach(function(e){t.once(n,e)})}),t.headers)(t.headers[n]===void 0||n.startsWith(`:`))&&delete t.headers[n];if(b.httpify(t,t.headers),t.method||=e.method||`GET`,t.localAddress||=e.localAddress,t._qs.init(e),le(e),!t.pool&&t.pool!==!1&&(t.pool=te),t.dests=t.dests||[],t.__isRequestRequest=!0,!t._callback&&t.callback&&(t._callback=t.callback,t.callback=function(e,n,r){t._callbackCalled||(t._callbackCalled=!0,t._callback(e,n,r,t._debug))},t.on(`error`,t.callback.bind()),t.on(`complete`,t.callback.bind(t,null))),!t.uri&&t.url&&(t.uri=t.url,delete t.url),t.baseUrl){if(typeof t.baseUrl!=`string`)return t.emit(`error`,Error(`options.baseUrl must be a string`));if(typeof t.uri!=`string`)return t.emit(`error`,Error(`options.uri must be a string when using options.baseUrl`));if(t.uri.indexOf(`//`)===0||t.uri.indexOf(`://`)!==-1)return t.emit(`error`,Error(`options.uri must be a path when using options.baseUrl`));var a=t.baseUrl.lastIndexOf(`/`)===t.baseUrl.length-1,o=t.uri.indexOf(`/`)===0;a&&o?t.uri=t.baseUrl+t.uri.slice(1):a||o?t.uri=t.baseUrl+t.uri:t.uri===``?t.uri=t.baseUrl:t.uri=t.baseUrl+`/`+t.uri,delete t.baseUrl}if(!t.uri)return t.emit(`error`,Error(`options.uri is a required argument`));if(typeof t.uri==`string`&&(t.uri=t.urlParser.parse(t.uri)),t.uri.href||(t.uri.href=l.format(t.uri)),t.uri.protocol===`unix:`)return t.emit(`error`,Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if((t.uri.host===`unix`||t.uri.host===`unix:`)&&t.enableUnixSocket(),t.strictSSL===!1&&(t.rejectUnauthorized=!1),t.uri.pathname||(t.uri.pathname=`/`),!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var u=`Invalid URI "`+l.format(t.uri)+`"`;return Object.keys(e).length===0&&(u+=`. This can be caused by a crappy redirection.`),t.abort(),t.emit(`error`,Error(u))}if(t.hasOwnProperty(`proxy`)||(t.proxy=k(t.uri)),typeof t.proxy==`string`&&(t.proxy=t.urlParser.parse(t.proxy),t.proxy.auth&&(t.proxy.auth=t._qs.unescape(t.proxy.auth))),t.tunnel=t._tunnel.isEnabled(),t.socks=t._socks.isEnabled(),t.proxy&&(t.socks?t._socks.setup():t._tunnel.setup(e)),t._redirect.onRequest(e),t.setHost=t.setHost===void 0||!!t.setHost,!t.hasHeader(`host`)&&t.setHost){var d=t.originalHostHeaderName||`Host`;t.setHeader(d,t.uri.host),t.uri.port&&(t.uri.port===`80`&&t.uri.protocol===`http:`||t.uri.port===`443`&&t.uri.protocol===`https:`)&&t.setHeader(d,t.uri.hostname)}if(t.uri.port||(t.uri.protocol===`http:`?t.uri.port=80:t.uri.protocol===`https:`&&(t.uri.port=443)),t.proxy&&!t.tunnel&&!t.socks?(t.port=t.proxy.port,t.host=t.proxy.hostname):(t.port=t.uri.port,t.host=t.uri.hostname),e.form&&t.form(e.form),e.formData)for(var f=e.formData,p=t.form(),m=0,h=f.length;m<h;m++){var g=f[m];g&&(g.options?p.append(g.key,g.value,g.options):p.append(g.key,g.value))}if(e.qs&&t.qs(e.qs),t.uri.path?t.path=t.uri.path:t.path=t.uri.pathname+(t.uri.search||``),t.path.length===0&&(t.path=`/`),e.aws&&t.aws(e.aws),e.hawk&&t.hawk(e.hawk),e.httpSignature&&t.httpSignature(e.httpSignature),e.auth&&(Object.prototype.hasOwnProperty.call(e.auth,`username`)&&(e.auth.user=e.auth.username),Object.prototype.hasOwnProperty.call(e.auth,`password`)&&(e.auth.pass=e.auth.password),t.auth(e.auth.user,e.auth.pass,e.auth.sendImmediately,e.auth.bearer)),!t.hasHeader(`accept-encoding`)){var _=``;t.gzip&&(_+=`gzip, deflate`),t.brotli&&(_&&(_+=`, `),_+=`br`),_&&t.setHeader(`Accept-Encoding`,_)}if(t.uri.auth&&!t.hasHeader(`authorization`)){var v=t.uri.auth.split(`:`).map(function(e){return t._qs.unescape(e)});t.auth(v[0],v.slice(1).join(`:`),!0)}!t.tunnel&&!t.socks&&t.proxy&&t.proxy.auth&&!t.hasHeader(`proxy-authorization`)&&t.setHeader(`Proxy-Authorization`,`Basic `+W(t.proxy.auth)),t.proxy&&!t.tunnel&&!t.socks&&(t.path=t.uri.protocol+`//`+t.uri.host+t.path),e.json&&t.json(e.json),e.multipart&&t.multipart(e.multipart),(e.time||e.verbose)&&(t.timing=!0,t.elapsedTime=t.elapsedTime||0),e.verbose&&(t.verbose=!0),typeof e.maxResponseSize==`number`&&(t.maxResponseSize=e.maxResponseSize);function S(){if(E(t.body)&&(t.body=z.from(t.body)),!t.hasHeader(`content-length`)){var e=typeof t.body==`string`?z.byteLength(t.body):Array.isArray(t.body)?t.body.reduce(function(e,t){return e+t.length},0):t.body.length;e?t.setHeader(`Content-Length`,e):t.emit(`error`,Error(`Argument error, options.body.`))}}t.body&&!w(t.body)&&S(),e.oauth?t.oauth(e.oauth):t._oauth.params&&t.hasHeader(`authorization`)&&t.oauth(t._oauth.params);var C=t.proxy&&!t.tunnel&&!t.socks?t.proxy.protocol:t.uri.protocol,D={"http:":{http2:r,http1:r,auto:r},"https:":{http1:i,http2:s,auto:c}},O=t.httpModules||{};if(t.httpModule=O[C]&&O[C][t.protocolVersion]||O[C]||D[C]&&D[C][t.protocolVersion],O[C]&&!O[C][e.protocolVersion]&&(t.protocolVersion=`http1`),!t.httpModule)return t.emit(`error`,Error(`Invalid protocol: `+C));if(e.ca&&(t.ca=e.ca),t.agents&&!t.agent){var A=C===`http:`?t.agents.http:t.agents.https;A&&(A.agentClass||A.agentOptions?(e.agentClass=A.agentClass||e.agentClass,e.agentOptions=A.agentOptions||e.agentOptions):t.agent=A)}if(!t.agent)if(e.agentOptions&&(t.agentOptions=e.agentOptions),e.agentClass)t.agentClass=e.agentClass;else if(e.forever){var j=J();j.major===0&&j.minor<=10?t.agentClass=C===`http:`?x:x.SSL:(t.agentClass=t.httpModule.Agent,t.agentOptions=t.agentOptions||{},t.agentOptions.keepAlive=!0)}else t.agentClass=t.httpModule.Agent;if(t.pool===!1)t.agent=!1;else try{t.agent=t.agent||t.getNewAgent({agentIdleTimeout:e.agentIdleTimeout})}catch(e){return t.emit(`error`,e)}t.on(`pipe`,function(e){if(t.ntick&&t._started&&t.emit(`error`,Error(`You cannot pipe to this stream after the outbound request has started.`)),t.src=e,U(e))t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,y.lookup(e.path)||`application/octet-stream`);else{if(e.headers)for(var n in e.headers)t.hasHeader(n)||t.setHeader(n,e.headers[n]);t._json&&!t.hasHeader(`content-type`)&&t.setHeader(`Content-Type`,`application/json`),e.method&&!t.explicitMethod&&(t.method=e.method)}}),G(function(){if(!t._aborted){var n=function(){if(t._form&&(!t._auth.hasAuth||t._auth.hasAuth&&t._auth.sentAuth))try{t._form.pipe(t)}catch(n){t.abort(),e.callback&&e.callback(n);return}if(t._multipart&&t._multipart.chunked&&t._multipart.body.pipe(t),t.body)w(t.body)?t.hasHeader(`content-length`)?t.body.pipe(t):T(t.body,{},function(e,n){e||t._started||t.hasHeader(`content-length`)||n===null||n<0||t.setHeader(`Content-Length`,n),t.body.pipe(t)}):(S(),Array.isArray(t.body)?t.body.forEach(function(e){t.write(e)}):t.write(t.body),t.end());else if(t.requestBodyStream)console.warn(`options.requestBodyStream is deprecated, please pass the request object to stream.pipe.`),t.requestBodyStream.pipe(t);else if(!t.src){if(t._auth.hasAuth&&!t._auth.sentAuth||t.hasHeader(`content-length`)){t.end();return}switch(t.method){case`GET`:case`HEAD`:case`TRACE`:case`DELETE`:case`CONNECT`:case`OPTIONS`:case void 0:break;default:t.setHeader(`Content-Length`,0);break}t.end()}};t.jar(t._jar||e.jar,function(){t._form&&!t.hasHeader(`content-length`)?t._form.getLength(function(e,r){!e&&!isNaN(r)&&t.setHeader(`Content-Length`,r),n()}):n()}),t.ntick=!0}})},ce.prototype.getNewAgent=function({agentIdleTimeout:e}){var t=this,r=t.agentClass,i={};if(t.agentOptions)for(var a in t.agentOptions)i[a]=t.agentOptions[a];t.ca&&(i.ca=t.ca),t.extraCA&&(i.extraCA=t.extraCA),t.ciphers&&(i.ciphers=t.ciphers),t.secureProtocol&&(i.secureProtocol=t.secureProtocol),t.secureOptions&&(i.secureOptions=t.secureOptions),t.sslKeyLogFile&&(i.sslKeyLogFile=t.sslKeyLogFile),t.rejectUnauthorized!==void 0&&(i.rejectUnauthorized=t.rejectUnauthorized),t.cert&&t.key&&(i.key=t.key,i.cert=t.cert),t.pfx&&(i.pfx=t.pfx),t.passphrase&&(i.passphrase=t.passphrase);var o=``;r!==t.httpModule.Agent&&(o+=r.name);var s=t.proxy;if(typeof s==`string`&&(s=t.urlParser.parse(s)),s&&s.protocol===`https:`||this.uri.protocol===`https:`){if(i.ca&&(o&&(o+=`:`),o+=i.ca),i.extraCA){o&&(o+=`:`),o+=i.extraCA;var c=n.createSecureContext(i);c.context.addCACert(i.extraCA),i.secureContext=c}i.rejectUnauthorized!==void 0&&(o&&(o+=`:`),o+=i.rejectUnauthorized),i.cert&&(o&&(o+=`:`),o+=i.cert.toString(`ascii`)+i.key.toString(`ascii`)),i.pfx&&(o&&(o+=`:`),o+=i.pfx.toString(`ascii`)),i.passphrase&&(o&&(o+=`:`),o+=i.passphrase),i.ciphers&&(o&&(o+=`:`),o+=i.ciphers),i.secureProtocol&&(o&&(o+=`:`),o+=i.secureProtocol),i.secureOptions&&(o&&(o+=`:`),o+=i.secureOptions),i.sslKeyLogFile&&(o&&(o+=`:`),o+=i.sslKeyLogFile)}if(t.pool===te&&!o&&Object.keys(i).length===0&&t.httpModule.globalAgent&&typeof e!=`number`)return t.httpModule.globalAgent;o=t.protocolVersion+`:`+t.uri.protocol+o;let l=t.pool[o];return(!l||typeof e==`number`&&(l.lastUsedAt||0)+e<Date.now())&&(l=t.pool[o]=new r(i),t.pool.maxSockets&&(t.pool[o].maxSockets=t.pool.maxSockets)),l.lastUsedAt=Date.now(),l},ce.prototype.start=function(){var e=this;if(e.timing)var t=new Date().getTime(),n=Y();if(!e._aborted){e.emit(`start`),e._started=!0,e.method=e.method||`GET`,e.href=e.uri.href,e.src&&e.src.stat&&e.src.stat.size&&!e.hasHeader(`content-length`)&&e.setHeader(`Content-Length`,e.src.stat.size),e._aws&&e.aws(e._aws,!0),e._reqResInfo.request={method:e.method,href:e.uri.href,headers:[],proxy:e.proxy&&{href:e.proxy.href}||void 0,httpVersion:`1.1`};var r=K(e);if(delete r.auth,!(e.disableUrlEncoding||e.proxy||e.uri.isUnix))try{C(r,V(e.uri.href))}catch{}le(`make request`,e.uri.href),delete r.timeout;try{e.req=e.httpModule.request(r),Array.isArray(e.blacklistHeaders)&&e.blacklistHeaders.length&&e.blacklistHeaders.forEach(function(t){e.req.removeHeader(t),e.removeHeader(t)})}catch(t){e.emit(`error`,t);return}e.timing&&(e.startTime=t,e.startTimeNow=n,e.timings={});var i;e.timeout&&!e.timeoutTimer&&(e.timeout<0?i=0:typeof e.timeout==`number`&&isFinite(e.timeout)&&(i=e.timeout)),e.req.on(`response`,e.onRequestResponse.bind(e)),e.req.on(`error`,e.onRequestError.bind(e)),e.req.on(`drain`,function(){e.emit(`drain`)}),e.req.on(`socket`,function(t){if(e.verbose){var n=!!(t.__SESSION_ID&&t.__SESSION_DATA);n||(t.__SESSION_ID=_(),t.__SESSION_DATA={}),e._reqResInfo.session={id:t.__SESSION_ID,reused:n,data:t.__SESSION_DATA}}e.sslKeyLogFile&&!o.getEventListeners(t,`keylog`).length&&t.on(`keylog`,t=>{a.appendFile(e.sslKeyLogFile,t).catch(()=>{le(`Failed to append keylog to file: `+e.sslKeyLogFile)})});var r=t._connecting||t.connecting;if(e.timing&&(e.timings.socket=Y()-e.startTimeNow,r)){var s=function(){e.timings.lookup=Y()-e.startTimeNow},c=function(){e.timings.connect=Y()-e.startTimeNow,e.verbose&&(t.__SESSION_DATA.addresses={local:typeof t.address==`function`&&t.address(),remote:{address:t.remoteAddress,family:t.remoteFamily,port:t.remotePort}})};t.once(`lookup`,s),t.once(`connect`,c),t.once(`secureConnect`,function(){if(e.timings.secureConnect=Y()-e.startTimeNow,e.verbose){t.__SESSION_DATA.tls={reused:typeof t.isSessionReused==`function`&&t.isSessionReused(),authorized:t.authorized,authorizationError:t.authorizationError,cipher:typeof t.getCipher==`function`&&t.getCipher(),protocol:typeof t.getProtocol==`function`&&t.getProtocol(),ephemeralKeyInfo:typeof t.getEphemeralKeyInfo==`function`&&t.getEphemeralKeyInfo()};var n=typeof t.getPeerCertificate==`function`&&(t.getPeerCertificate()||{});t.__SESSION_DATA.tls.peerCertificate={subject:n.subject&&{country:n.subject.C,stateOrProvince:n.subject.ST,locality:n.subject.L,organization:n.subject.O,organizationalUnit:n.subject.OU,commonName:n.subject.CN,alternativeNames:n.subjectaltname},issuer:n.issuer&&{country:n.issuer.C,stateOrProvince:n.issuer.ST,locality:n.issuer.L,organization:n.issuer.O,organizationalUnit:n.issuer.OU,commonName:n.issuer.CN},validFrom:n.valid_from,validTo:n.valid_to,fingerprint:n.fingerprint,serialNumber:n.serialNumber}}}),e.req.once(`error`,function(){try{t.removeListener(`lookup`,s),t.removeListener(`connect`,c)}catch(e){if(e.code!==`ERR_HTTP2_SOCKET_UNBOUND`)throw e}})}var l=function(){e.req.setTimeout(i,function(){if(e.req){e.abort();var t=Error(`ESOCKETTIMEDOUT`);t.code=`ESOCKETTIMEDOUT`,t.connect=!1,e.emit(`error`,t)}})};if(i!==void 0)if(r){var u=function(){t.removeListener(`connect`,u),e.clearTimeout(),l()};t.on(`connect`,u),e.req.on(`error`,function(e){try{t.removeListener(`connect`,u)}catch(e){if(e.code!==`ERR_HTTP2_SOCKET_UNBOUND`)throw e}}),e.timeoutTimer=setTimeout(function(){t.removeListener(`connect`,u),e.abort();var n=Error(`ETIMEDOUT`);n.code=`ETIMEDOUT`,n.connect=!0,e.emit(`error`,n)},i)}else l();e.emit(`socket`,t)}),e.emit(`request`,e.req)}},ce.prototype.onRequestError=function(e){var t=this;if(!t._aborted){if(t.req&&t.req._reusedSocket&&e.code===`ECONNRESET`&&t.agent.addRequestNoreuse){t.agent={addRequest:t.agent.addRequestNoreuse.bind(t.agent)},t.start(),t.req.end();return}e.res&&e.res.statusCode&&e.res.statusMessage&&t.onRequestResponse(e.res),t.clearTimeout(),t.emit(`error`,e)}},ce.prototype.onRequestResponse=function(e){var t=this;let n=t.startTimeNow;if(t.timing&&(t.timings.response=Y()-n),le(`onRequestResponse`,t.uri.href,e.statusCode,e.headers),e.on(`end`,function(){t.timing&&(t.timings.end=Y()-n,e.timingStart=t.startTime,e.timingStartTimer=n,t.timings.socket||(t.timings.socket=0),t.timings.lookup||(t.timings.lookup=t.timings.socket),t.timings.connect||(t.timings.connect=t.timings.lookup),!t.timings.secureConnect&&t.uri.protocol===`https:`&&(t.timings.secureConnect=t.timings.connect),t.timings.response||(t.timings.response=t.timings.connect),le(`elapsed time`,t.timings.end),t.elapsedTime+=Math.round(t.timings.end),e.elapsedTime=t.elapsedTime,e.timings=t.timings,e.timingPhases={wait:t.timings.socket,dns:t.timings.lookup-t.timings.socket,tcp:t.timings.connect-t.timings.lookup,firstByte:t.timings.response-t.timings.connect,download:t.timings.end-t.timings.response,total:t.timings.end},t.timings.secureConnect&&(e.timingPhases.secureHandshake=t.timings.secureConnect-t.timings.connect,e.timingPhases.firstByte=t.timings.response-t.timings.secureConnect)),le(`response end`,t.uri.href,e.statusCode,e.headers)}),t._aborted){le(`aborted`,t.uri.href),e.resume();return}if(t._reqResInfo.response={statusCode:e.statusCode,headers:se(e.rawHeaders),httpVersion:e.httpVersion},t._reqResInfo.request.httpVersion=e.httpVersion,t.timing&&(t._reqResInfo.timingStart=t.startTime,t._reqResInfo.timingStartTimer=t.startTimeNow,t._reqResInfo.timings=t.timings),t.response=e,e.request=t,e.toJSON=ae,t.uri.protocol===`https:`&&t.strictSSL&&(!e.hasOwnProperty(`socket`)||!e.socket.authorized)){le(`strict ssl error`,t.uri.href);var r=e.hasOwnProperty(`socket`)?e.socket.authorizationError:t.uri.href+` does not support SSL`;t.emit(`error`,Error(`SSL Error: `+r));return}t.originalHost=t.getHeader(`host`),t.originalHostHeaderName||=t.hasHeader(`host`),t.setHost&&t.removeHeader(`host`),t.clearTimeout();function i(){if(!t._redirect.onResponse(e)){e.once(`close`,function(){t._ended||t.response.emit(`end`)}),e.once(`end`,function(){t._ended=!0});var n=function(e){return t.method===`HEAD`||e>=100&&e<200||e===204||e===304},r,i=new X;if((t.gzip||t.brotli)&&!n(e.statusCode)){var a=e.headers[`content-encoding`]||`identity`;a=a.trim().toLowerCase();var o={flush:m.Z_SYNC_FLUSH,finishFlush:m.Z_SYNC_FLUSH};t.gzip&&a===`gzip`?(r=m.createGunzip(o),e.pipe(i).pipe(r)):t.gzip&&a===`deflate`?(r=B.createInflate(o),e.pipe(i).pipe(r)):t.brotli&&a===`br`?(r=m.createBrotliDecompress(),e.pipe(i).pipe(r)):(a!==`identity`&&le(`ignoring unrecognized Content-Encoding `+a),r=e.pipe(i))}else r=e.pipe(i);t.encoding&&(t.dests.length===0?r.setEncoding(t.encoding):console.error(`Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.`));var s=String(e.statusMessage);t.statusMessageEncoding&&/[^\w\s-']/.test(s)&&(e.statusMessage=z.from(s,`latin1`).toString(t.statusMessageEncoding)),t._paused&&r.pause(),t.responseContent=r,t.emit(`response`,e),t.dests.forEach(function(e){t.pipeDest(e)});var c=!1,l;typeof t.maxResponseSize==`number`&&(c=!0,l=t.maxResponseSize),r.on(`data`,function(n){if(t.timing&&!t.responseStarted&&(t.responseStartTime=new Date().getTime(),e.responseStartTime=t.responseStartTime),c&&(l-=n.length,l<0)){t.emit(`error`,Error(`Maximum response size reached`)),t.destroy(),t.abort();return}t._destdata=!0,t.emit(`data`,n)}),r.once(`end`,function(e){t._reqResInfo.response.downloadedBytes=i.size,t.emit(`end`,e)}),r.on(`error`,function(e){t.emit(`error`,e)}),r.on(`close`,function(){t.emit(`close`)}),t.callback?t.readResponseBody(e):t.on(`end`,function(){if(t._aborted){le(`aborted`,t.uri.href);return}t.emit(`complete`,e)})}}function a(e,t,n){if(!n&&(n=function(){}),!(Array.isArray(e)&&t))return n();var r=0,i=e.length;function a(o){if(o||r>=i)return n(o);try{t.call(e,e[r++],a)}catch(e){return n(e)}}if(!i)return n();a()}var o=t._jar&&t._jar.setCookie?t._jar:ee,s=function(e,n){o.setCookie(e,t.uri,{ignoreError:!0},function(){n()})};if(e.caseless=b(e.headers),e.caseless.has(`set-cookie`)&&!t._disableCookies){var c=e.caseless.has(`set-cookie`);Array.isArray(e.headers[c])?a(e.headers[c],s,function(e){if(e)return t.emit(`error`,e);i()}):s(e.headers[c],i)}else i();le(`finish init function`,t.uri.href)},ce.prototype.readResponseBody=function(e){var t=this;le(`reading response's body`);var n=[],r=0,i=[];t.on(`data`,function(e){z.isBuffer(e)?e.length&&(r+=e.length,n.push(e)):i.push(e)}),t.on(`end`,function(){if(le(`end event`,t.uri.href),t._aborted){le(`aborted`,t.uri.href),n=[],r=0;return}if(r?(le(`has body`,t.uri.href,r),e.body=z.concat(n,r),t.encoding!==null&&(e.body=e.body.toString(t.encoding)),n=[],r=0):i.length&&(t.encoding===`utf8`&&i[0].length>0&&i[0][0]===``&&(i[0]=i[0].substring(1)),e.body=i.join(``)),t._json)try{e.body=JSON.parse(e.body,t._jsonReviver)}catch{le(`invalid JSON received`,t.uri.href)}le(`emitting complete`,t.uri.href),e.body===void 0&&!t._json&&(e.body=t.encoding===null?z.alloc(0):``),t.emit(`complete`,e,e.body)})},ce.prototype.abort=function(){var e=this;e._aborted=!0,e.req?e.req.abort():e.response&&e.response.destroy(),e.clearTimeout(),e.emit(`abort`)},ce.prototype.pipeDest=function(e){var t=this,n=t.response;if(e.headers&&!e.headersSent){if(n.caseless.has(`content-type`)){var r=n.caseless.has(`content-type`);e.setHeader?e.setHeader(r,n.headers[r]):e.headers[r]=n.headers[r]}if(n.caseless.has(`content-length`)){var i=n.caseless.has(`content-length`);e.setHeader?e.setHeader(i,n.headers[i]):e.headers[i]=n.headers[i]}}if(e.setHeader&&!e.headersSent){for(var a in n.headers)a.startsWith(`:`)||(!t.gzip||a!==`content-encoding`)&&e.setHeader(a,n.headers[a]);e.statusCode=n.statusCode}t.pipefilter&&t.pipefilter(n,e)},ce.prototype.qs=function(e,t){var n=this,r=!t&&n.uri.query?n._qs.parse(n.uri.query):{};for(var i in e)r[i]=e[i];var a=n._qs.stringify(r);return a===``?n:(n.uri=n.urlParser.parse(n.uri.href.split(`?`)[0]+`?`+a),n.url=n.uri,n.path=n.uri.path,n.uri.host===`unix`&&n.enableUnixSocket(),n)},ce.prototype.form=function(e){var t=this,n=t.getHeader(`content-type`),r=n?!t.allowContentTypeOverride:!0;if(e)return r&&!/^application\/x-www-form-urlencoded\b/.test(n)&&t.setHeader(`Content-Type`,`application/x-www-form-urlencoded`),t.body=typeof e==`string`?t._qs.rfc3986(e.toString(`utf8`)):t._qs.stringify(e).toString(`utf8`),t;var i=n&&n.match&&n.match(/^multipart\/form-data;.*boundary=(?:"([^"]+)"|([^;]+))/);return t._form=new S({_boundary:i&&(i[1]||i[2])}),t._form.on(`error`,function(e){e.message=`form-data: `+e.message,t.emit(`error`,e),t.abort()}),r&&!i&&t.setHeader(`Content-Type`,`multipart/form-data; boundary=`+t._form.getBoundary()),t._form},ce.prototype.multipart=function(e){var t=this;return t._multipart.onRequest(e),t._multipart.chunked||(t.body=t._multipart.body),t},ce.prototype.json=function(e){var t=this;return t.hasHeader(`accept`)||t.setHeader(`Accept`,`application/json`),typeof t.jsonReplacer==`function`&&(t._jsonReplacer=t.jsonReplacer),t._json=!0,typeof e==`boolean`?t.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(t.getHeader(`content-type`))?t.body=t._qs.rfc3986(t.body):t.body=H(t.body,t._jsonReplacer),t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,`application/json`)):(t.body=H(e,t._jsonReplacer),t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,`application/json`)),typeof t.jsonReviver==`function`&&(t._jsonReviver=t.jsonReviver),t},ce.prototype.getHeader=function(e,t){var n=this,r,i,a;return t||=n.headers,Object.keys(t).forEach(function(n){n.length===e.length&&(i=new RegExp(e,`i`),a=n.match(i),a&&(r=t[n]))}),r},ce.prototype.enableUnixSocket=function(){var e=this.uri.path.split(`:`),t=e[0],n=e[1];this.socketPath=t,this.uri.pathname=n,this.uri.path=n,this.uri.host=t,this.uri.hostname=t,this.uri.isUnix=!0},ce.prototype.auth=function(e,t,n,r){var i=this;return i._auth.onRequest(e,t,n,r),i},ce.prototype.aws=function(e,t){var n=this;if(!t)return n._aws=e,n;if(e.sign_version===4||e.sign_version===`4`){var r={host:n.uri.host,path:n.uri.path,method:n.method,headers:n.headers,body:n.body};e.service&&(r.service=e.service);var i=g.sign(r,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});n.setHeader(`Authorization`,i.headers.Authorization),n.setHeader(`X-Amz-Date`,i.headers[`X-Amz-Date`]),i.headers[`X-Amz-Security-Token`]&&n.setHeader(`X-Amz-Security-Token`,i.headers[`X-Amz-Security-Token`])}else{var a=new Date;n.setHeader(`Date`,a.toUTCString());var o={key:e.key,secret:e.secret,verb:n.method.toUpperCase(),date:a,contentType:n.getHeader(`content-type`)||``,md5:n.getHeader(`content-md5`)||``,amazonHeaders:h.canonicalizeHeaders(n.headers)},s=n.uri.path;e.bucket&&s?o.resource=`/`+e.bucket+s:e.bucket&&!s?o.resource=`/`+e.bucket:!e.bucket&&s?o.resource=s:!e.bucket&&!s&&(o.resource=`/`),o.resource=h.canonicalizeResource(o.resource),n.setHeader(`Authorization`,h.authorization(o))}return n},ce.prototype.httpSignature=function(e){var t=this;return v.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,n){t.setHeader(e,n)},method:t.method,path:t.path},e),le(`httpSignature authorization`,t.getHeader(`authorization`)),t},ce.prototype.hawk=function(e){var t=this;t.setHeader(`Authorization`,P.header(t.uri,t.method,e))},ce.prototype.oauth=function(e){var t=this;return t._oauth.onRequest(e),t},ce.prototype.jar=function(e,t){var n=this;if(n._jar=e,!e)return n._disableCookies=!0,t();n._redirect.redirectsFollowed===0&&(n.originalCookieHeader=n.getHeader(`cookie`)),(e.getCookieString?e:ee).getCookieString(n.uri,function(e,r){if(e)return t();r&&r.length&&(n.originalCookieHeader?(Array.isArray(n.originalCookieHeader)&&(n.originalCookieHeader=n.originalCookieHeader.join(`; `)),n.setHeader(`Cookie`,n.originalCookieHeader+`; `+r)):n.setHeader(`Cookie`,r)),t()})},ce.prototype.pipe=function(e,t){var n=this;if(n.response)if(n._destdata)n.emit(`error`,Error(`You cannot pipe after data has been emitted from the response.`));else if(n._ended)n.emit(`error`,Error(`You cannot pipe after the response has been ended.`));else return p.Stream.prototype.pipe.call(n,e,t),n.pipeDest(e),e;else return n.dests.push(e),p.Stream.prototype.pipe.call(n,e,t),e},ce.prototype.write=function(){var e=this;if(!e._aborted&&(e._started||e.start(),e.req))return e.req.write.apply(e.req,arguments)},ce.prototype.end=function(e){var t=this;if(!t._aborted&&(e&&t.write(e),t._started||t.start(),t.req)){t.req.end();let e=t._reqResInfo.request;Promise.resolve(t.req._header).then(function(t){if(!t){e.headers=[];return}e.headers=oe(t)})}},ce.prototype.pause=function(){var e=this;e.responseContent?e.responseContent.pause.apply(e.responseContent,arguments):e._paused=!0},ce.prototype.resume=function(){var e=this;e.responseContent?e.responseContent.resume.apply(e.responseContent,arguments):e._paused=!1},ce.prototype.destroy=function(){var e=this;this.clearTimeout(),e._ended?e.response&&e.response.destroy():e.end()},ce.prototype.clearTimeout=function(){this.timeoutTimer&&=(clearTimeout(this.timeoutTimer),null)},ce.defaultProxyHeaderWhiteList=L.defaultProxyHeaderWhiteList.slice(),ce.defaultProxyHeaderExclusiveList=L.defaultProxyHeaderExclusiveList.slice(),ce.prototype.toJSON=ie,t.exports=ce})),iv=s(((e,t)=>{var n=ad(),r=lg();function i(e,t,r){typeof t==`function`&&(r=t);var i={protocolVersion:`http1`};return typeof t==`object`&&t?n(i,t,{uri:e}):typeof e==`string`?n(i,{uri:e}):n(i,e),i.callback=r||i.callback,i.agents&&!(i.agents.http1||i.agents.auto||i.agents.http2)&&(i.protocolVersion=`http1`),(i.tunnel||i.proxy)&&(i.protocolVersion=`http1`),typeof window<`u`&&window.XMLHttpRequest&&(i.protocolVersion=`http1`),i}function a(e,t,n){if(e===void 0)throw Error(`undefined is not a valid uri or options object.`);var r=i(e,t,n);return new a.Request(r)}function o(e){var t=e.toUpperCase();return function(e,n,r){var o=i(e,n,r);return o.method=t,a(o,o.callback)}}a.get=o(`get`),a.head=o(`head`),a.options=o(`options`),a.post=o(`post`),a.put=o(`put`),a.patch=o(`patch`),a.del=o(`delete`),a.delete=o(`delete`),a.jar=function(e){return r.jar(e)},a.cookie=function(e){return r.parse(e)};function s(e,t,r,a){return function(o,s,c){var l=i(o,s,c),u={};return n(!0,u,t,l),u.pool=l.pool||t.pool,a&&(u.method=a.toUpperCase()),typeof r==`function`&&(e=r),e(u,u.callback)}}a.defaults=function(e,t){var n=this;e||={},typeof e==`function`&&(t=e,e={});var r=s(n,e,t);return[`get`,`head`,`post`,`put`,`patch`,`del`,`delete`].forEach(function(i){r[i]=s(n[i],e,t,i)}),r.cookie=s(n.cookie,e,t),r.jar=n.jar,r.defaults=n.defaults,r},a.forever=function(e,t){var r={};return t&&n(r,t),e&&(r.agentOptions=e),r.forever=!0,a.defaults(r)},t.exports=a,a.Request=rv(),a.initParams=i,Object.defineProperty(a,`debug`,{enumerable:!0,get:function(){return a.Request.debug},set:function(e){a.Request.debug=e}})})),av=s(((e,t)=>{let n=d(`fs`),r=Q(),i=d(`path`),a=d(`util`),o=d(`stream`).Readable,s=`PPERM: insecure file access outside working directory`,c=`function`,l=function(e){let t=e.charAt(1);return e.charAt(0)===`/`&&(t>=`A`&&t<=`Z`||t>=`a`&&t<=`z`)&&e.charAt(2)===`:`||e.slice(0,3)===`///`},u=function(e){return e[e.length-1]===i.sep?e.slice(0,-1):e},f=function(e,t){return e=u(e),t=u(t),global.process.platform===`win32`&&(e=e.toLowerCase(),t=t.toLowerCase()),e.lastIndexOf(t,0)===0&&(e[t.length]===i.sep||e[t.length]===void 0)};function p(e,t=!1,r=[]){this._fs=n,this._path=i,this.constants=this._fs.constants,this.workingDir=e,this.insecureFileRead=t,this.fileWhitelist=r,this.isWindows=global.process.platform===`win32`}p.prototype._resolve=function(e,t){this.isWindows&&l(e)&&(e=e.substring(1));let n=this._path.resolve(this.workingDir,e);if(!(!this.insecureFileRead&&!f(n,this.workingDir)&&!r.includes(t,n)))return n},p.prototype.resolvePath=function(e,t,n){!n&&typeof t===c&&(n=t,t=[]);let i=this._resolve(e,r.concat(this.fileWhitelist,t));return i?n(null,i):n(Error(s))},p.prototype.resolvePathSync=function(e,t){let n=this._resolve(e,r.concat(this.fileWhitelist,t));if(!n)throw Error(s);return n},Object.getOwnPropertyNames(n).map(e=>{e===`SyncWriteStream`||e===`promises`||typeof n[e]!==c||(p.prototype[e]=n[e])}),p.prototype.stat=function(e,t){this.resolvePath(e,(e,n)=>e?t(e):this._fs.stat(n,t))},p.prototype.createReadStream=function(e,t){try{return this._fs.createReadStream(this.resolvePathSync(e),t)}catch{let e=function(){o.call(this,{emitClose:!1}),this.emit(`error`,Error(s)),t&&!t.autoClose||this.destroy()};return a.inherits(e,o),new e}},t.exports=p})),ov=s(((e,t)=>{var n=Q(),r=es(),i=Ms(),a=function e(t,r){var i=this;n.assign(i,{collection:n.get(r,`collection`),environment:n.get(r,`environment`),globals:n.get(r,`globals`),run:{stats:{iterations:{},items:{},scripts:{},prerequests:{},requests:{},tests:{},assertions:{},testScripts:{},prerequestScripts:{}},timings:{responseAverage:0,responseMin:0,responseMax:0,responseSd:0,dnsAverage:0,dnsMin:0,dnsMax:0,dnsSd:0,firstByteAverage:0,firstByteMin:0,firstByteMax:0,firstByteSd:0},executions:[],transfers:{responseTotal:0},failures:[],error:null}}),e.attachTimingTrackers(this,t),e.attachStatisticTrackers(this,t),e.attachRequestTracker(this,t),e.attachFailureTrackers(this,t),e.attachReportingTrackers(this,t)};n.assign(a,{attachReportingTrackers(e,t){var r={},i=e.run.executions;t.on(`beforeItem`,function(e,t){e||!n.get(t,`cursor.ref`)||(r[t.cursor.ref]=n.assignIn(r[t.cursor.ref]||{},{cursor:t.cursor,item:t.item}))}),t.on(`request`,function(e,t){if(n.get(t,`cursor.ref`)){var a=r[t.cursor.ref]=r[t.cursor.ref]||{};i.push(n.assignIn(a,{cursor:t.cursor,request:t.request,response:t.response,id:n.get(t,`item.id`)},e&&{requestError:e||void 0}))}}),t.on(`script`,function(e,t){if(n.get(t,`cursor.ref`)){var i=r[t.cursor.ref]=r[t.cursor.ref]||{},a=t&&t.event&&t.event.listen+`Script`;e&&i&&a&&(i[a]||(i[a]=[])).push({error:e})}}),t.on(`assertion`,function(e,t){if(n.get(t,`cursor.ref`)){var i=r[t.cursor.ref]=r[t.cursor.ref]||{};i&&(i.assertions||=[]).push({assertion:t.assertion,skipped:t.skipped,error:e||void 0})}})},attachTimingTrackers(e,t){t.on(`start`,function(){e.run.timings.started=Date.now()}),t.on(`beforeDone`,function(){e.run.timings.completed=Date.now()}),t.on(`done`,function(t){t&&(e.error=t)})},attachStatisticTrackers(e,t){n.forEach(e.run.stats,function(e,r){r=r.slice(0,-1),n.assign(e,{total:0,pending:0,failed:0}),t.on(n.camelCase(`before-`+r),function(){e.pending+=1}),t.on(r,function(t){e.pending&&--e.pending,t&&(e.failed+=1),e.total+=1})})},attachRequestTracker(e,t){t.on(`request`,function(t,i){if(!(t||!(i&&i.response))){var a=n.isFunction(i.response.size)&&i.response.size(),o=i.response.responseTime,s=e.run.stats.requests.total,c,l;a&&(e.run.transfers.responseTotal+=a.body||0+a.headers||0),c=n.last(n.get(i,`history.execution.data`)),c&&=c.timings,l=c&&r.Response.timingPhases(c),(l||o)&&n.forEach([`dns`,`firstByte`,`response`],t=>{var n=t===`response`?o:l&&l[t],r=e.run.timings[`${t}Average`],i=e.run.timings[`${t}Sd`]**2,a=n-r,c,u;n&&(e.run.timings[`${t}Average`]=(r*(s-1)+n)/s,e.run.timings[`${t}Min`]?e.run.timings[`${t}Min`]=Math.min(e.run.timings[`${t}Min`],n):e.run.timings[`${t}Min`]=n,e.run.timings[`${t}Max`]=Math.max(e.run.timings[`${t}Max`],n),c=n-e.run.timings[`${t}Average`],u=(i*(s-1)+a*c)/s,e.run.timings[`${t}Sd`]=Math.sqrt(u))})}})},attachFailureTrackers(e,t){n.forEach([`beforeIteration`,`iteration`,`beforeItem`,`item`,`beforeScript`,`script`,`beforePrerequest`,`prerequest`,`beforeRequest`,`request`,`beforeTest`,`test`,`beforeAssertion`,`assertion`],function(r){t.on(r,function(t,a){if(t){var o=a&&a.item,s=r;r===`script`?(a.event&&(s=a.event.listen+`-script`),t.stacktrace&&t.stacktrace[0]&&t.stacktrace[0].lineNumber&&(s+=`:`+(t.stacktrace[0].lineNumber-2),t.stacktrace[0].columnNumber&&(s+=`:`+t.stacktrace[0].columnNumber))):r===`assertion`&&(n.has(t,`index`)&&(s+=`:`+t.index),s+=` in test-script`),t.stack&&!t.stacktrace&&(t=new i(t,!0)),e.run.failures.push({error:t,at:s,source:o||void 0,parent:o&&o.__parent&&o.__parent.__parent||void 0,cursor:a.cursor||{}})}})})}}),t.exports=a})),sv=s(((e,t)=>{t.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:2**53-1||9007199254740991,RELEASE_TYPES:[`major`,`premajor`,`minor`,`preminor`,`patch`,`prepatch`,`prerelease`],SEMVER_SPEC_VERSION:`2.0.0`,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}})),cv=s(((e,t)=>{t.exports=typeof process==`object`&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error(`SEMVER`,...e):()=>{}})),lv=s(((e,t)=>{let{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=sv(),a=cv();e=t.exports={};let o=e.re=[],s=e.safeRe=[],c=e.src=[],l=e.t={},u=0,d=`[a-zA-Z0-9-]`,f=[[`\\s`,1],[`\\d`,i],[d,r]],p=e=>{for(let[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},m=(e,t,n)=>{let r=p(t),i=u++;a(e,i,t),l[e]=i,c[i]=t,o[i]=new RegExp(t,n?`g`:void 0),s[i]=new RegExp(r,n?`g`:void 0)};m(`NUMERICIDENTIFIER`,`0|[1-9]\\d*`),m(`NUMERICIDENTIFIERLOOSE`,`\\d+`),m(`NONNUMERICIDENTIFIER`,`\\d*[a-zA-Z-]${d}*`),m(`MAINVERSION`,`(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})\\.(${c[l.NUMERICIDENTIFIER]})`),m(`MAINVERSIONLOOSE`,`(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})\\.(${c[l.NUMERICIDENTIFIERLOOSE]})`),m(`PRERELEASEIDENTIFIER`,`(?:${c[l.NUMERICIDENTIFIER]}|${c[l.NONNUMERICIDENTIFIER]})`),m(`PRERELEASEIDENTIFIERLOOSE`,`(?:${c[l.NUMERICIDENTIFIERLOOSE]}|${c[l.NONNUMERICIDENTIFIER]})`),m(`PRERELEASE`,`(?:-(${c[l.PRERELEASEIDENTIFIER]}(?:\\.${c[l.PRERELEASEIDENTIFIER]})*))`),m(`PRERELEASELOOSE`,`(?:-?(${c[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[l.PRERELEASEIDENTIFIERLOOSE]})*))`),m(`BUILDIDENTIFIER`,`${d}+`),m(`BUILD`,`(?:\\+(${c[l.BUILDIDENTIFIER]}(?:\\.${c[l.BUILDIDENTIFIER]})*))`),m(`FULLPLAIN`,`v?${c[l.MAINVERSION]}${c[l.PRERELEASE]}?${c[l.BUILD]}?`),m(`FULL`,`^${c[l.FULLPLAIN]}$`),m(`LOOSEPLAIN`,`[v=\\s]*${c[l.MAINVERSIONLOOSE]}${c[l.PRERELEASELOOSE]}?${c[l.BUILD]}?`),m(`LOOSE`,`^${c[l.LOOSEPLAIN]}$`),m(`GTLT`,`((?:<|>)?=?)`),m(`XRANGEIDENTIFIERLOOSE`,`${c[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m(`XRANGEIDENTIFIER`,`${c[l.NUMERICIDENTIFIER]}|x|X|\\*`),m(`XRANGEPLAIN`,`[v=\\s]*(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:\\.(${c[l.XRANGEIDENTIFIER]})(?:${c[l.PRERELEASE]})?${c[l.BUILD]}?)?)?`),m(`XRANGEPLAINLOOSE`,`[v=\\s]*(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[l.XRANGEIDENTIFIERLOOSE]})(?:${c[l.PRERELEASELOOSE]})?${c[l.BUILD]}?)?)?`),m(`XRANGE`,`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAIN]}$`),m(`XRANGELOOSE`,`^${c[l.GTLT]}\\s*${c[l.XRANGEPLAINLOOSE]}$`),m(`COERCE`,`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),m(`COERCERTL`,c[l.COERCE],!0),m(`LONETILDE`,`(?:~>?)`),m(`TILDETRIM`,`(\\s*)${c[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace=`$1~`,m(`TILDE`,`^${c[l.LONETILDE]}${c[l.XRANGEPLAIN]}$`),m(`TILDELOOSE`,`^${c[l.LONETILDE]}${c[l.XRANGEPLAINLOOSE]}$`),m(`LONECARET`,`(?:\\^)`),m(`CARETTRIM`,`(\\s*)${c[l.LONECARET]}\\s+`,!0),e.caretTrimReplace=`$1^`,m(`CARET`,`^${c[l.LONECARET]}${c[l.XRANGEPLAIN]}$`),m(`CARETLOOSE`,`^${c[l.LONECARET]}${c[l.XRANGEPLAINLOOSE]}$`),m(`COMPARATORLOOSE`,`^${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]})$|^$`),m(`COMPARATOR`,`^${c[l.GTLT]}\\s*(${c[l.FULLPLAIN]})$|^$`),m(`COMPARATORTRIM`,`(\\s*)${c[l.GTLT]}\\s*(${c[l.LOOSEPLAIN]}|${c[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace=`$1$2$3`,m(`HYPHENRANGE`,`^\\s*(${c[l.XRANGEPLAIN]})\\s+-\\s+(${c[l.XRANGEPLAIN]})\\s*$`),m(`HYPHENRANGELOOSE`,`^\\s*(${c[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[l.XRANGEPLAINLOOSE]})\\s*$`),m(`STAR`,`(<|>)?=?\\s*\\*`),m(`GTE0`,`^\\s*>=\\s*0\\.0\\.0\\s*$`),m(`GTE0PRE`,`^\\s*>=\\s*0\\.0\\.0-0\\s*$`)})),uv=s(((e,t)=>{let n=Object.freeze({loose:!0}),r=Object.freeze({});t.exports=e=>e?typeof e==`object`?e:n:r})),dv=s(((e,t)=>{let n=/^[0-9]+$/,r=(e,t)=>{let r=n.test(e),i=n.test(t);return r&&i&&(e=+e,t=+t),e===t?0:r&&!i?-1:i&&!r?1:e<t?-1:1};t.exports={compareIdentifiers:r,rcompareIdentifiers:(e,t)=>r(t,e)}})),fv=s(((e,t)=>{let n=cv(),{MAX_LENGTH:r,MAX_SAFE_INTEGER:i}=sv(),{safeRe:a,t:o}=lv(),s=uv(),{compareIdentifiers:c}=dv();t.exports=class e{constructor(t,c){if(c=s(c),t instanceof e){if(t.loose===!!c.loose&&t.includePrerelease===!!c.includePrerelease)return t;t=t.version}else if(typeof t!=`string`)throw TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>r)throw TypeError(`version is longer than ${r} characters`);n(`SemVer`,t,c),this.options=c,this.loose=!!c.loose,this.includePrerelease=!!c.includePrerelease;let l=t.trim().match(c.loose?a[o.LOOSE]:a[o.FULL]);if(!l)throw TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+l[1],this.minor=+l[2],this.patch=+l[3],this.major>i||this.major<0)throw TypeError(`Invalid major version`);if(this.minor>i||this.minor<0)throw TypeError(`Invalid minor version`);if(this.patch>i||this.patch<0)throw TypeError(`Invalid patch version`);l[4]?this.prerelease=l[4].split(`.`).map(e=>{if(/^[0-9]+$/.test(e)){let t=+e;if(t>=0&&t<i)return t}return e}):this.prerelease=[],this.build=l[5]?l[5].split(`.`):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(`.`)}`),this.version}toString(){return this.version}compare(t){if(n(`SemVer.compare`,this.version,this.options,t),!(t instanceof e)){if(typeof t==`string`&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),c(this.major,t.major)||c(this.minor,t.minor)||c(this.patch,t.patch)}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let r=0;do{let e=this.prerelease[r],i=t.prerelease[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let r=0;do{let e=this.build[r],i=t.build[r];if(n(`prerelease compare`,r,e,i),e===void 0&&i===void 0)return 0;if(i===void 0)return 1;if(e===void 0)return-1;if(e===i)continue;return c(e,i)}while(++r)}inc(e,t,n){switch(e){case`premajor`:this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc(`pre`,t,n);break;case`preminor`:this.prerelease.length=0,this.patch=0,this.minor++,this.inc(`pre`,t,n);break;case`prepatch`:this.prerelease.length=0,this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`prerelease`:this.prerelease.length===0&&this.inc(`patch`,t,n),this.inc(`pre`,t,n);break;case`major`:(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case`minor`:(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case`patch`:this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case`pre`:{let e=Number(n)?1:0;if(!t&&n===!1)throw Error(`invalid increment argument: identifier is empty`);if(this.prerelease.length===0)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)typeof this.prerelease[r]==`number`&&(this.prerelease[r]++,r=-2);if(r===-1){if(t===this.prerelease.join(`.`)&&n===!1)throw Error(`invalid increment argument: identifier already exists`);this.prerelease.push(e)}}if(t){let r=[t,e];n===!1&&(r=[t]),c(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(`.`)}`),this}}})),pv=s(((e,t)=>{let n=fv();t.exports=(e,t,r=!1)=>{if(e instanceof n)return e;try{return new n(e,t)}catch(e){if(!r)return null;throw e}}})),mv=s(((e,t)=>{let n=pv();t.exports=(e,t)=>{let r=n(e,t);return r?r.version:null}})),hv=s(((e,t)=>{let n=pv();t.exports=(e,t)=>{let r=n(e.trim().replace(/^[=v]+/,``),t);return r?r.version:null}})),gv=s(((e,t)=>{let n=fv();t.exports=(e,t,r,i,a)=>{typeof r==`string`&&(a=i,i=r,r=void 0);try{return new n(e instanceof n?e.version:e,r).inc(t,i,a).version}catch{return null}}})),_v=s(((e,t)=>{let n=pv();t.exports=(e,t)=>{let r=n(e,null,!0),i=n(t,null,!0),a=r.compare(i);if(a===0)return null;let o=a>0,s=o?r:i,c=o?i:r,l=!!s.prerelease.length;if(c.prerelease.length&&!l)return!c.patch&&!c.minor?`major`:s.patch?`patch`:s.minor?`minor`:`major`;let u=l?`pre`:``;return r.major===i.major?r.minor===i.minor?r.patch===i.patch?`prerelease`:u+`patch`:u+`minor`:u+`major`}})),vv=s(((e,t)=>{let n=fv();t.exports=(e,t)=>new n(e,t).major})),yv=s(((e,t)=>{let n=fv();t.exports=(e,t)=>new n(e,t).minor})),bv=s(((e,t)=>{let n=fv();t.exports=(e,t)=>new n(e,t).patch})),xv=s(((e,t)=>{let n=pv();t.exports=(e,t)=>{let r=n(e,t);return r&&r.prerelease.length?r.prerelease:null}})),Sv=s(((e,t)=>{let n=fv();t.exports=(e,t,r)=>new n(e,r).compare(new n(t,r))})),Cv=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(t,e,r)})),wv=s(((e,t)=>{let n=Sv();t.exports=(e,t)=>n(e,t,!0)})),Tv=s(((e,t)=>{let n=fv();t.exports=(e,t,r)=>{let i=new n(e,r),a=new n(t,r);return i.compare(a)||i.compareBuild(a)}})),Ev=s(((e,t)=>{let n=Tv();t.exports=(e,t)=>e.sort((e,r)=>n(e,r,t))})),Dv=s(((e,t)=>{let n=Tv();t.exports=(e,t)=>e.sort((e,r)=>n(r,e,t))})),Ov=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)>0})),kv=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)<0})),Av=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)===0})),jv=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)!==0})),Mv=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)>=0})),Nv=s(((e,t)=>{let n=Sv();t.exports=(e,t,r)=>n(e,t,r)<=0})),Pv=s(((e,t)=>{let n=Av(),r=jv(),i=Ov(),a=Mv(),o=kv(),s=Nv();t.exports=(e,t,c,l)=>{switch(t){case`===`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e===c;case`!==`:return typeof e==`object`&&(e=e.version),typeof c==`object`&&(c=c.version),e!==c;case``:case`=`:case`==`:return n(e,c,l);case`!=`:return r(e,c,l);case`>`:return i(e,c,l);case`>=`:return a(e,c,l);case`<`:return o(e,c,l);case`<=`:return s(e,c,l);default:throw TypeError(`Invalid operator: ${t}`)}}})),Fv=s(((e,t)=>{let n=fv(),r=pv(),{safeRe:i,t:a}=lv();t.exports=(e,t)=>{if(e instanceof n)return e;if(typeof e==`number`&&(e=String(e)),typeof e!=`string`)return null;t||={};let o=null;if(!t.rtl)o=e.match(i[a.COERCE]);else{let t;for(;(t=i[a.COERCERTL].exec(e))&&(!o||o.index+o[0].length!==e.length);)(!o||t.index+t[0].length!==o.index+o[0].length)&&(o=t),i[a.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;i[a.COERCERTL].lastIndex=-1}return o===null?null:r(`${o[2]}.${o[3]||`0`}.${o[4]||`0`}`,t)}})),Iv=s(((e,t)=>{t.exports=class e{constructor(t,n){if(n=r(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof i)return this.raw=t.value,this.set=[[t]],this.format(),this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().split(/\s+/).join(` `),this.set=this.raw.split(`||`).map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let e=this.set[0];if(this.set=this.set.filter(e=>!m(e[0])),this.set.length===0)this.set=[e];else if(this.set.length>1){for(let e of this.set)if(e.length===1&&h(e[0])){this.set=[e];break}}}this.format()}format(){return this.range=this.set.map(e=>e.join(` `).trim()).join(`||`).trim(),this.range}toString(){return this.range}parseRange(e){let t=((this.options.includePrerelease&&f)|(this.options.loose&&p))+`:`+e,r=n.get(t);if(r)return r;let o=this.options.loose,h=o?s[c.HYPHENRANGELOOSE]:s[c.HYPHENRANGE];e=e.replace(h,D(this.options.includePrerelease)),a(`hyphen replace`,e),e=e.replace(s[c.COMPARATORTRIM],l),a(`comparator trim`,e),e=e.replace(s[c.TILDETRIM],u),a(`tilde trim`,e),e=e.replace(s[c.CARETTRIM],d),a(`caret trim`,e);let g=e.split(` `).map(e=>_(e,this.options)).join(` `).split(/\s+/).map(e=>E(e,this.options));o&&(g=g.filter(e=>(a(`loose invalid filter`,e,this.options),!!e.match(s[c.COMPARATORLOOSE])))),a(`range list`,g);let v=new Map,y=g.map(e=>new i(e,this.options));for(let e of y){if(m(e))return[e];v.set(e.value,e)}v.size>1&&v.has(``)&&v.delete(``);let b=[...v.values()];return n.set(t,b),b}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Range is required`);return this.set.some(e=>g(e,n)&&t.set.some(t=>g(t,n)&&e.every(e=>t.every(t=>e.intersects(t,n)))))}test(e){if(!e)return!1;if(typeof e==`string`)try{e=new o(e,this.options)}catch{return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}};let n=new(Mo())({max:1e3}),r=uv(),i=Lv(),a=cv(),o=fv(),{safeRe:s,t:c,comparatorTrimReplace:l,tildeTrimReplace:u,caretTrimReplace:d}=lv(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:p}=sv(),m=e=>e.value===`<0.0.0-0`,h=e=>e.value===``,g=(e,t)=>{let n=!0,r=e.slice(),i=r.pop();for(;n&&r.length;)n=r.every(e=>i.intersects(e,t)),i=r.pop();return n},_=(e,t)=>(a(`comp`,e,t),e=x(e,t),a(`caret`,e),e=y(e,t),a(`tildes`,e),e=C(e,t),a(`xrange`,e),e=T(e,t),a(`stars`,e),e),v=e=>!e||e.toLowerCase()===`x`||e===`*`,y=(e,t)=>e.trim().split(/\s+/).map(e=>b(e,t)).join(` `),b=(e,t)=>{let n=t.loose?s[c.TILDELOOSE]:s[c.TILDE];return e.replace(n,(t,n,r,i,o)=>{a(`tilde`,e,t,n,r,i,o);let s;return v(n)?s=``:v(r)?s=`>=${n}.0.0 <${+n+1}.0.0-0`:v(i)?s=`>=${n}.${r}.0 <${n}.${+r+1}.0-0`:o?(a(`replaceTilde pr`,o),s=`>=${n}.${r}.${i}-${o} <${n}.${+r+1}.0-0`):s=`>=${n}.${r}.${i} <${n}.${+r+1}.0-0`,a(`tilde return`,s),s})},x=(e,t)=>e.trim().split(/\s+/).map(e=>S(e,t)).join(` `),S=(e,t)=>{a(`caret`,e,t);let n=t.loose?s[c.CARETLOOSE]:s[c.CARET],r=t.includePrerelease?`-0`:``;return e.replace(n,(t,n,i,o,s)=>{a(`caret`,e,t,n,i,o,s);let c;return v(n)?c=``:v(i)?c=`>=${n}.0.0${r} <${+n+1}.0.0-0`:v(o)?c=n===`0`?`>=${n}.${i}.0${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.0${r} <${+n+1}.0.0-0`:s?(a(`replaceCaret pr`,s),c=n===`0`?i===`0`?`>=${n}.${i}.${o}-${s} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}-${s} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o}-${s} <${+n+1}.0.0-0`):(a(`no pr`),c=n===`0`?i===`0`?`>=${n}.${i}.${o}${r} <${n}.${i}.${+o+1}-0`:`>=${n}.${i}.${o}${r} <${n}.${+i+1}.0-0`:`>=${n}.${i}.${o} <${+n+1}.0.0-0`),a(`caret return`,c),c})},C=(e,t)=>(a(`replaceXRanges`,e,t),e.split(/\s+/).map(e=>w(e,t)).join(` `)),w=(e,t)=>{e=e.trim();let n=t.loose?s[c.XRANGELOOSE]:s[c.XRANGE];return e.replace(n,(n,r,i,o,s,c)=>{a(`xRange`,e,n,r,i,o,s,c);let l=v(i),u=l||v(o),d=u||v(s),f=d;return r===`=`&&f&&(r=``),c=t.includePrerelease?`-0`:``,l?n=r===`>`||r===`<`?`<0.0.0-0`:`*`:r&&f?(u&&(o=0),s=0,r===`>`?(r=`>=`,u?(i=+i+1,o=0,s=0):(o=+o+1,s=0)):r===`<=`&&(r=`<`,u?i=+i+1:o=+o+1),r===`<`&&(c=`-0`),n=`${r+i}.${o}.${s}${c}`):u?n=`>=${i}.0.0${c} <${+i+1}.0.0-0`:d&&(n=`>=${i}.${o}.0${c} <${i}.${+o+1}.0-0`),a(`xRange return`,n),n})},T=(e,t)=>(a(`replaceStars`,e,t),e.trim().replace(s[c.STAR],``)),E=(e,t)=>(a(`replaceGTE0`,e,t),e.trim().replace(s[t.includePrerelease?c.GTE0PRE:c.GTE0],``)),D=e=>(t,n,r,i,a,o,s,c,l,u,d,f,p)=>(n=v(r)?``:v(i)?`>=${r}.0.0${e?`-0`:``}`:v(a)?`>=${r}.${i}.0${e?`-0`:``}`:o?`>=${n}`:`>=${n}${e?`-0`:``}`,c=v(l)?``:v(u)?`<${+l+1}.0.0-0`:v(d)?`<${l}.${+u+1}.0-0`:f?`<=${l}.${u}.${d}-${f}`:e?`<${l}.${u}.${+d+1}-0`:`<=${c}`,`${n} ${c}`.trim()),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(a(e[n].semver),e[n].semver!==i.ANY&&e[n].semver.prerelease.length>0){let r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0}})),Lv=s(((e,t)=>{let n=Symbol(`SemVer ANY`);t.exports=class e{static get ANY(){return n}constructor(t,i){if(i=r(i),t instanceof e){if(t.loose===!!i.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(` `),s(`comparator`,t,i),this.options=i,this.loose=!!i.loose,this.parse(t),this.semver===n?this.value=``:this.value=this.operator+this.semver.version,s(`comp`,this)}parse(e){let t=this.options.loose?i[a.COMPARATORLOOSE]:i[a.COMPARATOR],r=e.match(t);if(!r)throw TypeError(`Invalid comparator: ${e}`);this.operator=r[1]===void 0?``:r[1],this.operator===`=`&&(this.operator=``),r[2]?this.semver=new c(r[2],this.options.loose):this.semver=n}toString(){return this.value}test(e){if(s(`Comparator.test`,e,this.options.loose),this.semver===n||e===n)return!0;if(typeof e==`string`)try{e=new c(e,this.options)}catch{return!1}return o(e,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw TypeError(`a Comparator is required`);return this.operator===``?this.value===``?!0:new l(t.value,n).test(this.value):t.operator===``?t.value===``?!0:new l(this.value,n).test(t.semver):(n=r(n),n.includePrerelease&&(this.value===`<0.0.0-0`||t.value===`<0.0.0-0`)||!n.includePrerelease&&(this.value.startsWith(`<0.0.0`)||t.value.startsWith(`<0.0.0`))?!1:!!(this.operator.startsWith(`>`)&&t.operator.startsWith(`>`)||this.operator.startsWith(`<`)&&t.operator.startsWith(`<`)||this.semver.version===t.semver.version&&this.operator.includes(`=`)&&t.operator.includes(`=`)||o(this.semver,`<`,t.semver,n)&&this.operator.startsWith(`>`)&&t.operator.startsWith(`<`)||o(this.semver,`>`,t.semver,n)&&this.operator.startsWith(`<`)&&t.operator.startsWith(`>`)))}};let r=uv(),{safeRe:i,t:a}=lv(),o=Pv(),s=cv(),c=fv(),l=Iv()})),Rv=s(((e,t)=>{let n=Iv();t.exports=(e,t,r)=>{try{t=new n(t,r)}catch{return!1}return t.test(e)}})),zv=s(((e,t)=>{let n=Iv();t.exports=(e,t)=>new n(e,t).set.map(e=>e.map(e=>e.value).join(` `).trim().split(` `))})),Bv=s(((e,t)=>{let n=fv(),r=Iv();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===-1)&&(a=e,o=new n(a,i))}),a}})),Vv=s(((e,t)=>{let n=fv(),r=Iv();t.exports=(e,t,i)=>{let a=null,o=null,s=null;try{s=new r(t,i)}catch{return null}return e.forEach(e=>{s.test(e)&&(!a||o.compare(e)===1)&&(a=e,o=new n(a,i))}),a}})),Hv=s(((e,t)=>{let n=fv(),r=Iv(),i=Ov();t.exports=(e,t)=>{e=new r(e,t);let a=new n(`0.0.0`);if(e.test(a)||(a=new n(`0.0.0-0`),e.test(a)))return a;a=null;for(let t=0;t<e.set.length;++t){let r=e.set[t],o=null;r.forEach(e=>{let t=new n(e.semver.version);switch(e.operator){case`>`:t.prerelease.length===0?t.patch++:t.prerelease.push(0),t.raw=t.format();case``:case`>=`:(!o||i(t,o))&&(o=t);break;case`<`:case`<=`:break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!a||i(a,o))&&(a=o)}return a&&e.test(a)?a:null}})),Uv=s(((e,t)=>{let n=Iv();t.exports=(e,t)=>{try{return new n(e,t).range||`*`}catch{return null}}})),Wv=s(((e,t)=>{let n=fv(),r=Lv(),{ANY:i}=r,a=Iv(),o=Rv(),s=Ov(),c=kv(),l=Nv(),u=Mv();t.exports=(e,t,d,f)=>{e=new n(e,f),t=new a(t,f);let p,m,h,g,_;switch(d){case`>`:p=s,m=l,h=c,g=`>`,_=`>=`;break;case`<`:p=c,m=u,h=s,g=`<`,_=`<=`;break;default:throw TypeError(`Must provide a hilo val of "<" or ">"`)}if(o(e,t,f))return!1;for(let n=0;n<t.set.length;++n){let a=t.set[n],o=null,s=null;if(a.forEach(e=>{e.semver===i&&(e=new r(`>=0.0.0`)),o||=e,s||=e,p(e.semver,o.semver,f)?o=e:h(e.semver,s.semver,f)&&(s=e)}),o.operator===g||o.operator===_||(!s.operator||s.operator===g)&&m(e,s.semver)||s.operator===_&&h(e,s.semver))return!1}return!0}})),Gv=s(((e,t)=>{let n=Wv();t.exports=(e,t,r)=>n(e,t,`>`,r)})),Kv=s(((e,t)=>{let n=Wv();t.exports=(e,t,r)=>n(e,t,`<`,r)})),qv=s(((e,t)=>{let n=Iv();t.exports=(e,t,r)=>(e=new n(e,r),t=new n(t,r),e.intersects(t,r))})),Jv=s(((e,t)=>{let n=Rv(),r=Sv();t.exports=(e,t,i)=>{let a=[],o=null,s=null,c=e.sort((e,t)=>r(e,t,i));for(let e of c)n(e,t,i)?(s=e,o||=e):(s&&a.push([o,s]),s=null,o=null);o&&a.push([o,null]);let l=[];for(let[e,t]of a)e===t?l.push(e):!t&&e===c[0]?l.push(`*`):t?e===c[0]?l.push(`<=${t}`):l.push(`${e} - ${t}`):l.push(`>=${e}`);let u=l.join(` || `),d=typeof t.raw==`string`?t.raw:String(t);return u.length<d.length?u:t}})),Yv=s(((e,t)=>{let n=Iv(),r=Lv(),{ANY:i}=r,a=Rv(),o=Sv(),s=(e,t,r={})=>{if(e===t)return!0;e=new n(e,r),t=new n(t,r);let i=!1;OUTER:for(let n of e.set){for(let e of t.set){let t=u(n,e,r);if(i||=t!==null,t)continue OUTER}if(i)return!1}return!0},c=[new r(`>=0.0.0-0`)],l=[new r(`>=0.0.0`)],u=(e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i)return!0;e=n.includePrerelease?c:l}if(t.length===1&&t[0].semver===i){if(n.includePrerelease)return!0;t=l}let r=new Set,s,u;for(let t of e)t.operator===`>`||t.operator===`>=`?s=d(s,t,n):t.operator===`<`||t.operator===`<=`?u=f(u,t,n):r.add(t.semver);if(r.size>1)return null;let p;if(s&&u&&(p=o(s.semver,u.semver,n),p>0||p===0&&(s.operator!==`>=`||u.operator!==`<=`)))return null;for(let e of r){if(s&&!a(e,String(s),n)||u&&!a(e,String(u),n))return null;for(let r of t)if(!a(e,String(r),n))return!1;return!0}let m,h,g,_,v=u&&!n.includePrerelease&&u.semver.prerelease.length?u.semver:!1,y=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1;v&&v.prerelease.length===1&&u.operator===`<`&&v.prerelease[0]===0&&(v=!1);for(let e of t){if(_=_||e.operator===`>`||e.operator===`>=`,g=g||e.operator===`<`||e.operator===`<=`,s){if(y&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===y.major&&e.semver.minor===y.minor&&e.semver.patch===y.patch&&(y=!1),e.operator===`>`||e.operator===`>=`){if(m=d(s,e,n),m===e&&m!==s)return!1}else if(s.operator===`>=`&&!a(s.semver,String(e),n))return!1}if(u){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),e.operator===`<`||e.operator===`<=`){if(h=f(u,e,n),h===e&&h!==u)return!1}else if(u.operator===`<=`&&!a(u.semver,String(e),n))return!1}if(!e.operator&&(u||s)&&p!==0)return!1}return!(s&&g&&!u&&p!==0||u&&_&&!s&&p!==0||y||v)},d=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r>0?e:r<0||t.operator===`>`&&e.operator===`>=`?t:e},f=(e,t,n)=>{if(!e)return t;let r=o(e.semver,t.semver,n);return r<0?e:r>0||t.operator===`<`&&e.operator===`<=`?t:e};t.exports=s})),Xv=s(((e,t)=>{let n=lv(),r=sv(),i=fv(),a=dv();t.exports={parse:pv(),valid:mv(),clean:hv(),inc:gv(),diff:_v(),major:vv(),minor:yv(),patch:bv(),prerelease:xv(),compare:Sv(),rcompare:Cv(),compareLoose:wv(),compareBuild:Tv(),sort:Ev(),rsort:Dv(),gt:Ov(),lt:kv(),eq:Av(),neq:jv(),gte:Mv(),lte:Nv(),cmp:Pv(),coerce:Fv(),Comparator:Lv(),Range:Iv(),satisfies:Rv(),toComparators:zv(),maxSatisfying:Bv(),minSatisfying:Vv(),minVersion:Hv(),validRange:Uv(),outside:Wv(),gtr:Gv(),ltr:Kv(),intersects:qv(),simplifyRange:Jv(),subset:Yv(),SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:r.SEMVER_SPEC_VERSION,RELEASE_TYPES:r.RELEASE_TYPES,compareIdentifiers:a.compareIdentifiers,rcompareIdentifiers:a.rcompareIdentifiers}})),Zv=s(((e,t)=>{let n=Q().noConflict(),r=`string`,i=[`protocol`,`auth`,`host`,`port`,`path`,`query`,`hash`],a=/#/g,o=/=/g,s=/&/g,c=/{{[^{}]*[.:/?#@&\]][^{}]*}}/g,l=/{{[^{}]*[&#=][^{}]*}}/g,u=function(e,t){return e&&(e.indexOf(`&`)!==-1&&(e=e.replace(s,`%26`)),e.indexOf(`#`)!==-1&&(e=e.replace(a,`%23`)),t&&e.indexOf(`=`)!==-1&&(e=e.replace(o,`%3D`)),e)},d=function(e,t){if(!(e&&typeof e===r)||e.indexOf(`&`)===-1&&e.indexOf(`#`)===-1&&!(t&&e.indexOf(`=`)!==-1))return e;for(var n=``,i=0,a,o,s;(o=l.exec(e))!==null;)a=o[0],s=o.index,n+=u(e.slice(i,s),t)+a,i=s+a.length;return i<e.length&&(n+=u(e.slice(i),t)),n},f=function(e){if(!e)return``;var t=e.key,n=e.value,i=typeof t===r?d(t,!0):``;return typeof n===r&&(i+=`=`+d(n)),i},p=function(e){if(e===``)return{key:null,value:null};var t=n.indexOf(e,`=`);return t<0?{key:e,value:null}:{key:e.substr(0,t),value:e.substr(t+1)}};function m(){this.replacements=[],this._offset=0,this._length=0}m.prototype.add=function(e,t){this.replacements.push({value:e,index:t-this._offset}),this._offset+=e.length-1,this._length++},m.prototype.count=function(){return this._length},m.prototype._findLowerIndex=function(e){for(var t=this.count(),n=0,r=t-1,i;n<=r;)i=n+r>>1,this.replacements[i].index>=e?r=i-1:n=i+1;return n>=t?-1:n},m.prototype._applyInString=function(e,t,n){var r,i,a,o,s=0,c=this.count();if(!e||(r=this._findLowerIndex(t))===-1)return e;do{if(i=this.replacements[r],a=i.index,o=i.value,a>=n)break;a=s+a-t,e=e.slice(0,a)+o+e.slice(a+1),s+=o.length-1}while(++r<c);return e},m.prototype.apply=function(e,t,n){var i,a,o,s,c,l=e;if(typeof e===r)return this._applyInString(e,t,n);for(c=t,i=0,a=e.length;i<a;++i)l=e[i],s=c+(o=l.length),e[i]=this._applyInString(l,c,s),c+=o+1;return e};function h(e,t){for(var n=``,r=0,i,a,o;(a=c.exec(e))!==null;)i=a[0],o=a.index,n+=e.slice(r,o)+`_`,t.add(i,o),r=o+i.length;return r===0?e:(r<e.length&&(n+=e.slice(r)),n)}function g(e,t){var n,r,a;for(n=0,r=i.length;n<r;++n)a=e[i[n]],a&&a.value&&(a.value=t.apply(a.value,a.beginIndex,a.endIndex));return e}function _(e){e=String(e).trimLeft();var t={protocol:{value:void 0,beginIndex:0,endIndex:0},auth:{value:void 0,beginIndex:0,endIndex:0},host:{value:void 0,beginIndex:0,endIndex:0},port:{value:void 0,beginIndex:0,endIndex:0},path:{value:void 0,beginIndex:0,endIndex:0},query:{value:void 0,beginIndex:0,endIndex:0},hash:{value:void 0,beginIndex:0,endIndex:0}},n={raw:e,protocol:void 0,auth:void 0,host:void 0,port:void 0,path:void 0,query:void 0,hash:void 0},r=new m,i=0,a,o,s;return e?(e=h(e,r),a=e.length,(o=e.indexOf(`#`))!==-1&&(t.hash.value=e.slice(o+1),t.hash.beginIndex=i+o+1,t.hash.endIndex=i+a,e=e.slice(0,a=o)),(o=e.indexOf(`?`))!==-1&&(t.query.value=e.slice(o+1).split(`&`),t.query.beginIndex=i+o+1,t.query.endIndex=i+a,e=e.slice(0,a=o)),(o=e.indexOf(`://`))===-1?(o=e.indexOf(`:\\\\`))!==-1&&(t.protocol.value=e.slice(0,o),t.protocol.beginIndex=i,t.protocol.endIndex=i+o,e=e.slice(o+3),a-=o+3,i+=o+3):(t.protocol.value=e.slice(0,o),t.protocol.beginIndex=i,t.protocol.endIndex=i+o,e=e.slice(o+3),a-=o+3,i+=o+3),e=e.replace(/\\/g,`/`),(o=e.indexOf(`/`))!==-1&&(t.path.value=e.slice(o+1).split(`/`),t.path.beginIndex=i+o+1,t.path.endIndex=i+a,e=e.slice(0,a=o)),(o=e.lastIndexOf(`@`))!==-1&&(t.auth.value=e.slice(0,o),t.auth.beginIndex=i,t.auth.endIndex=i+o,e=e.slice(o+1),a-=o+1,i+=o+1,(o=t.auth.value.indexOf(`:`))===-1?t.auth.value=[t.auth.value]:t.auth.value=[t.auth.value.slice(0,o),t.auth.value.slice(o+1)]),(o=e.lastIndexOf(`:`))!==-1&&(s=e.slice(o+1)).indexOf(`]`)===-1&&(t.port.value=s,t.port.beginIndex=i+o+1,t.port.endIndex=i+a,e=e.slice(0,a=o)),e&&(t.host.value=e.split(`.`),t.host.beginIndex=i,t.host.endIndex=i+a),r.count()&&g(t,r),n.protocol=t.protocol.value,n.auth=t.auth.value,n.host=t.host.value,n.port=t.port.value,n.path=t.path.value,n.query=t.query.value,n.hash=t.hash.value,n):n}t.exports={parse:function(e){typeof e!==r&&(e=``),e=_(e);var t,i={};return e.auth&&={user:e.auth[0],password:e.auth[1]},e.query&&=e.query.map(p),t=n.transform(e.path,function(e,t){n.startsWith(t,`:`)&&t!==`:`&&!i[t]&&(i[t]=!0,e.push({key:t.slice(1)}))},[]),e.variable=t.length?t:void 0,e},unparse:function(e){var t=``,i,a,o,s=!0;return e.protocol&&(t+=n.endsWith(e.protocol,`://`)?e.protocol:e.protocol+`://`),e.auth&&(typeof e.auth.user===r&&(o=e.auth.user),typeof e.auth.password===r&&(!o&&(o=``),o+=`:`+e.auth.password),typeof o===r&&(t+=o+`@`)),e.host&&(t+=n.isArray(e.host)?e.host.join(`.`):e.host.toString()),typeof n.get(e.port,`toString`)==`function`&&(t+=`:`+e.port.toString()),e.path&&(i=n.isArray(e.path)?e.path.join(`/`):e.path.toString(),t+=n.startsWith(i,`/`)?i:`/`+i),e.query&&e.query.length&&(a=n.reduce(e.query,function(e,t){return!t||t.disabled?e:(s?s=!1:e+=`&`,e+f(t))},``),a===``&&s&&(a=void 0),typeof a===r&&(t+=`?`+a)),typeof e.hash===r&&(t+=`#`+e.hash),t}}})),Qv=s(((e,t)=>{var n=Q(),r=Zv(),i=Math.random;t.exports={typeMap:{string:`string`,boolean:`boolean`,number:`number`},uid:function(){var e,t,n=``,r=`-`;for(t=e=n;e++<36;t+=e*51&52?(e^15?8^i()*(e^20?16:4):4).toString(16):r);return t},urlparse:function(e){return r.parse(e)},urlunparse:function(e){return r.unparse(e)},handleVars:function(e,t,r){!t&&(t={});var i=this,a=t.retainIds,o=t.noDefaults,s=r&&r.isV1,c=t.retainEmptyValues,l=e&&(e.variables||e.variable||s&&e.pathVariableData),u=t.fallback&&t.fallback.values,d=n.map(l||u,function(e){var t={};return a&&(n.has(e,`id`)?t.id=e.id:o||(t.id=i.uid())),t.key=e.key||e.id,t.value=e.value,e.type&&(t.type=e.type===`text`?`string`:e.type),e.disabled&&(t.disabled=!0),e.description?t.description=e.description:c&&(t.description=null),t});if(d.length)return d},cleanAuth:function(e,t){!t&&(t={});var n=e&&e.auth;if(n===null)return null;if(n&&n.type)return n.type===`noauth`?t.excludeNoauth?null:{type:`noauth`}:n},cleanEmptyValue:function(e,t,r){return n.has(e,t)&&!e[t]&&(r?e[t]=null:delete e[t]),e},authArrayToMap:function(e,t){var r,i,a=this.cleanAuth(e,t);return a&&(i={type:r=a.type},r!==`noauth`&&(i[r]=n.transform(a[r],function(e,t){e[t.key]=t.value},{})),i)},authMapToArray:function(e,t){var r,i,a,o=this,s=o.cleanAuth(e,t);return s&&(a={type:r=s.type},r!==`noauth`&&(i=n.map(s[r],function(e,t){return{key:t,value:e,type:o.typeMap[typeof e]||`any`}}),i.length&&(a[r]=i)),a)},sanitizeAuthArray:function(e,t){var r,i,a=this,o=a.cleanAuth(e,t);return o&&(i={type:r=o.type},r!==`noauth`&&(i[r]=n.map(o[r],function(e){return{key:e.key,value:e.value,type:(e.type===`text`?`string`:e.type)||a.typeMap[typeof e.value]||`any`}})),i)},notLegacy:function(e,t){if(e)switch(t){case`event`:return!(e.tests||e.preRequestScript);case`auth`:return n.has(e,`auth`)&&!(n.has(e,`currentHelper`)||e.helperAttributes);default:return!0}},authMappersFromLegacy:{apikeyAuth:function(e){return e&&{key:e.key,value:e.value,in:e.in}},basicAuth:function(e){return e&&{username:e.username,password:e.password,saveHelperData:e.saveToRequest,showPassword:!1}},bearerAuth:function(e){return e&&{token:e.token}},digestAuth:function(e){return e&&{algorithm:e.algorithm,username:e.username,realm:e.realm,password:e.password,nonce:e.nonce,nonceCount:e.nonceCount,clientNonce:e.clientNonce,opaque:e.opaque,qop:e.qop,disableRetryRequest:e.disableRetryRequest}},oAuth1:function(e){return e&&{consumerKey:e.consumerKey,consumerSecret:e.consumerSecret,token:e.token,tokenSecret:e.tokenSecret,signatureMethod:e.signatureMethod,timestamp:e.timestamp,nonce:e.nonce,version:e.version,realm:e.realm,addParamsToHeader:e.header,autoAddParam:e.auto,addEmptyParamsToSign:e.includeEmpty}},hawkAuth:function(e){return e&&{authId:e.hawk_id,authKey:e.hawk_key,algorithm:e.algorithm,user:e.user,saveHelperData:e.saveToRequest,nonce:e.nonce,extraData:e.ext,appId:e.app,delegation:e.dlg,timestamp:e.timestamp}},ntlmAuth:function(e){return e&&{username:e.username,password:e.password,domain:e.domain,workstation:e.workstation,disableRetryRequest:e.disableRetryRequest}},oAuth2:function(e){return e&&{accessToken:e.accessToken,addTokenTo:e.addTokenTo,callBackUrl:e.callBackUrl,authUrl:e.authUrl,accessTokenUrl:e.accessTokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,clientAuth:e.clientAuth,grantType:e.grantType,scope:e.scope,username:e.username,password:e.password,tokenType:e.tokenType,redirectUri:e.redirectUri,refreshToken:e.refreshToken}},awsSigV4:function(e){return e}},authMappersFromCurrent:{apikeyAuth:function(e){return e&&{id:`apikey`,key:e.key,value:e.value,in:e.in}},basicAuth:function(e){return e&&{id:`basic`,username:e.username,password:e.password,saveToRequest:e.saveHelperData}},bearerAuth:function(e){return e&&{id:`bearer`,token:e.token}},digestAuth:function(e){return e&&{id:`digest`,algorithm:e.algorithm,username:e.username,realm:e.realm,password:e.password,nonce:e.nonce,nonceCount:e.nonceCount,clientNonce:e.clientNonce,opaque:e.opaque,qop:e.qop,disableRetryRequest:e.disableRetryRequest}},oAuth1:function(e){return e&&{id:`oAuth1`,consumerKey:e.consumerKey,consumerSecret:e.consumerSecret,token:e.token,tokenSecret:e.tokenSecret,signatureMethod:e.signatureMethod,timestamp:e.timeStamp||e.timestamp,nonce:e.nonce,version:e.version,realm:e.realm,header:e.addParamsToHeader,auto:e.autoAddParam,includeEmpty:e.addEmptyParamsToSign}},hawkAuth:function(e){return e&&{id:`hawk`,hawk_id:e.authId,hawk_key:e.authKey,algorithm:e.algorithm,user:e.user,saveToRequest:e.saveHelperData,nonce:e.nonce,ext:e.extraData,app:e.appId,dlg:e.delegation,timestamp:e.timestamp}},ntlmAuth:function(e){return e&&{id:`ntlm`,username:e.username,password:e.password,domain:e.domain,workstation:e.workstation,disableRetryRequest:e.disableRetryRequest}},oAuth2:function(e){return e&&{id:`oAuth2`,accessToken:e.accessToken,addTokenTo:e.addTokenTo,callBackUrl:e.callBackUrl,authUrl:e.authUrl,accessTokenUrl:e.accessTokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,clientAuth:e.clientAuth,grantType:e.grantType,scope:e.scope,username:e.username,password:e.password,tokenType:e.tokenType,redirectUri:e.redirectUri,refreshToken:e.refreshToken}},awsSigV4:function(e){return e}},addProtocolProfileBehavior:function(e,t){var r=e&&e.protocolProfileBehavior;return n.isPlainObject(r)&&!n.isEmpty(r)?(t&&(t.protocolProfileBehavior=r),!0):!1}}})),$v=s((e=>{e.SCHEMA_V2_URL=`https://schema.getpostman.com/json/collection/v2.0.0/collection.json`,e.SCHEMA_V2_1_0_URL=`https://schema.getpostman.com/json/collection/v2.1.0/collection.json`,e.SCHEMA_V1_URL=`https://schema.getpostman.com/json/collection/v1.0.0/collection.json`,e.PREREQUEST_EXT=`_preRequestScript`,e.TESTS_EXT=`_tests`})),ey=s(((e,t)=>{var n=Q().noConflict(),r={fold:/\r\n([ \t])/g,trim:/^\s*(.*\S)?\s*$/,header:/^((\/\/\s*)?\S+):(.*)$/gm},i=`//`;t.exports={authMap:{apikeyAuth:`apikey`,basicAuth:`basic`,bearerAuth:`bearer`,digestAuth:`digest`,hawkAuth:`hawk`,oAuth1:`oauth1`,oAuth2:`oauth2`,ntlmAuth:`ntlm`,awsSigV4:`awsv4`,normal:null},parseHeaders:function(e,t){if(e){var a,o=[],s=!t,c=r.header.exec(e),l=t?`enabled`:`disabled`;for(e=e.toString().replace(r.fold,`$1`);c;)a={key:c[1],value:c[3].replace(r.trim,`$1`)},n.startsWith(a.key,i)&&(a[l]=s,a.key=a.key.replace(i,``).trim()),o.push(a),c=r.header.exec(e);return o}}}})),ty=s(((e,t)=>{var n=Q().noConflict(),r=$v(),i=ey(),a=Qv(),o=`//`,s=Symbol(`_postman_isSubFolder`),c=function(e){this.options=e||{}},l=function(e,t){if(!(Array.isArray(e)&&e.length))return[];var r=[],i,o,s;for(i=0,o=e.length;i<o;i++)s=Object.assign({},e[i]),!n.isNil(s.key)&&(s.type===`file`&&!s.src&&s.value&&(s.src=n.isString(s.value)||n.isArray(s.value)?s.value:null,delete s.value),Object.prototype.hasOwnProperty.call(s,`enabled`)&&(s.enabled===!1&&(s.disabled=!0),delete s.enabled),a.cleanEmptyValue(s,`description`,t),r.push(s));return r};n.assign(c.prototype,{info:function(e){var t={_postman_id:e.id||a.uid(),name:e.name};return e.description?t.description=e.description:this.options.retainEmptyValues&&(t.description=null),t.schema=r.SCHEMA_V2_URL,t},variable:function(e,t){return a.handleVars(e,t)},url:function(e){var t=[],r=[],i={},o,s=this.options.retainIds,c=a.urlparse(e.url),l=this.options.retainEmptyValues;return n.forEach(e.queryParams,function(e){e.enabled===!1&&(e.disabled=!0),delete e.enabled,a.cleanEmptyValue(e,`description`,l),n.has(e,`equals`)&&(e.equals?e.value===null&&(e.value=``):e.value=e.value||null,o=!0,delete e.equals),t.push(e)}),n.size(t)||(t=c.query),n.forEach(e.pathVariableData,function(e){e=n.clone(e),a.cleanEmptyValue(e,`description`,l),!s&&e.id&&delete e.id,r.push(e),i[e.key]=!0}),n.forEach(e.pathVariables,function(e,t){!i[t]&&r.push({value:e,key:t})}),!n.isEmpty(t)&&(c.query=t),!n.isEmpty(r)&&(c.variable=r),o&&(c.raw=a.urlunparse(c)),c.query||c.variable?c:c.raw||(n.isNil(e.url)?void 0:String(e.url))},method:function(e){return e.method},header:function(e){if(n.isArray(e.headers))return e.headers;var t=[],r={},s=e.headerData||[],c=this.options.retainEmptyValues;return n.forEach(s,function(e){(n.startsWith(e.key,o)||e.enabled===!1)&&(e.disabled=!0,e.key=e.key.replace(o,``).trim()),a.cleanEmptyValue(e,`description`,c),delete e.enabled,t.push(e),r[e.key]=!0}),n.forEach(i.parseHeaders(e.headers),function(e){!r[e.key]&&t.push(e)}),t},body:function(e){var t={binary:`file`,graphql:`graphql`,params:`formdata`,raw:`raw`,urlencoded:`urlencoded`},r={},i,a,o=t[e.dataMode],s=this.options.retainEmptyValues,c={},u,d=n.isEmpty(e.data)&&n.isEmpty(e.rawModeData)&&n.isEmpty(e.graphqlModeData);if(!o&&d||e.dataMode===null)return s?null:void 0;if(n.isString(e.rawModeData)?i=e.rawModeData:Array.isArray(e.rawModeData)&&e.rawModeData.length===1&&n.isString(e.rawModeData[0])&&(i=e.rawModeData[0]),n.isEmpty(e.graphqlModeData)?e.dataOptions&&e.dataOptions.graphql!==void 0&&!n.isEmpty(e.data)&&(a=e.data):a=e.graphqlModeData,o?r.mode=o:!i&&Array.isArray(e.data||e.rawModeData)?r.mode=`formdata`:!i&&a?r.mode=`graphql`:r.mode=`raw`,r.mode===`raw`?i?r[r.mode]=i:n.isString(e.data)?r[r.mode]=e.data:r[r.mode]=``:r.mode===`graphql`?r[r.mode]=a:r.mode===`file`?r[r.mode]={src:i}:r[r.mode]=l(e.data||e.rawModeData,s),e.dataOptions){for(u in t)n.isEmpty(e.dataOptions[u])||(c[t[u]]=e.dataOptions[u]);!n.isEmpty(c)&&(r.options=c)}return e.dataDisabled?r.disabled=!0:s&&(r.disabled=!1),r},event:function(e){if(!e)return;let t=this.options.retainIds;if((a.notLegacy(e,`event`)||this.options.prioritizeV2)&&!n.isEmpty(e.events))return n.forEach(e.events,function(e){!e.listen&&(e.listen=`test`),!t&&e.id&&delete e.id,e.script&&(!t&&e.script.id&&delete e.script.id,!e.script.type&&(e.script.type=`text/javascript`),n.isString(e.script.exec)&&(e.script.exec=e.script.exec.split(`
|
|
542
|
+
`),n=[],r=1;r<t.length-2;r++){var i=t[r].indexOf(`:`,1);n.push({key:t[r].slice(0,i),value:t[r].slice(i+2)})}return n}function se(e){for(var t=[],n=0;n<e.length;n+=2)t.push({key:e[n],value:e[n+1]});return t}function ce(e){var t=this;e.har&&(t._har=new j(t),e=t._har.options(e)),e.formData&&!Array.isArray(e.formData)&&(e.formData=Z(e.formData)),e.urlParser&&typeof e.urlParser.parse==`function`&&typeof e.urlParser.resolve==`function`||(e.urlParser={parse:l.parse,resolve:l.resolve}),p.Stream.call(t);var n=Object.keys(ce.prototype);C(t,ne(n,e)),e=re(n,e),t.readable=!0,t.writable=!0,t._debug=[],e.method&&(t.explicitMethod=!0),t._qs=new A(t),t._auth=new M(t),t._oauth=new N(t),t._multipart=new F(t),t._redirect=new I(t),t._tunnel=new L(t),t._socks=new R(t),t.init(e)}f.inherits(ce,p.Stream),ce.debug=process.env.NODE_DEBUG&&/\brequest\b/.test(process.env.NODE_DEBUG);function le(){ce.debug&&console.error(`REQUEST %s`,f.format.apply(f,arguments))}ce.prototype.debug=le,ce.prototype.init=function(e){var t=this;for(var n in e||={},t.headers=t.headers?K(t.headers):{},t._reqResInfo={},t._debug.push(t._reqResInfo),e.bindOn&&Object.keys(e.bindOn).forEach(function(n){!Array.isArray(e.bindOn[n])&&(e.bindOn[n]=[e.bindOn[n]]),e.bindOn[n].forEach(function(e){t.on(n,e)})}),e.once&&Object.keys(e.once).forEach(function(n){!Array.isArray(e.bindOnce[n])&&(e.bindOnce[n]=[e.bindOnce[n]]),e.bindOnce[n].forEach(function(e){t.once(n,e)})}),t.headers)(t.headers[n]===void 0||n.startsWith(`:`))&&delete t.headers[n];if(b.httpify(t,t.headers),t.method||=e.method||`GET`,t.localAddress||=e.localAddress,t._qs.init(e),le(e),!t.pool&&t.pool!==!1&&(t.pool=te),t.dests=t.dests||[],t.__isRequestRequest=!0,!t._callback&&t.callback&&(t._callback=t.callback,t.callback=function(e,n,r){t._callbackCalled||(t._callbackCalled=!0,t._callback(e,n,r,t._debug))},t.on(`error`,t.callback.bind()),t.on(`complete`,t.callback.bind(t,null))),!t.uri&&t.url&&(t.uri=t.url,delete t.url),t.baseUrl){if(typeof t.baseUrl!=`string`)return t.emit(`error`,Error(`options.baseUrl must be a string`));if(typeof t.uri!=`string`)return t.emit(`error`,Error(`options.uri must be a string when using options.baseUrl`));if(t.uri.indexOf(`//`)===0||t.uri.indexOf(`://`)!==-1)return t.emit(`error`,Error(`options.uri must be a path when using options.baseUrl`));var a=t.baseUrl.lastIndexOf(`/`)===t.baseUrl.length-1,o=t.uri.indexOf(`/`)===0;a&&o?t.uri=t.baseUrl+t.uri.slice(1):a||o?t.uri=t.baseUrl+t.uri:t.uri===``?t.uri=t.baseUrl:t.uri=t.baseUrl+`/`+t.uri,delete t.baseUrl}if(!t.uri)return t.emit(`error`,Error(`options.uri is a required argument`));if(typeof t.uri==`string`&&(t.uri=t.urlParser.parse(t.uri)),t.uri.href||(t.uri.href=l.format(t.uri)),t.uri.protocol===`unix:`)return t.emit(`error`,Error("`unix://` URL scheme is no longer supported. Please use the format `http://unix:SOCKET:PATH`"));if((t.uri.host===`unix`||t.uri.host===`unix:`)&&t.enableUnixSocket(),t.strictSSL===!1&&(t.rejectUnauthorized=!1),t.uri.pathname||(t.uri.pathname=`/`),!(t.uri.host||t.uri.hostname&&t.uri.port)&&!t.uri.isUnix){var u=`Invalid URI "`+l.format(t.uri)+`"`;return Object.keys(e).length===0&&(u+=`. This can be caused by a crappy redirection.`),t.abort(),t.emit(`error`,Error(u))}if(t.hasOwnProperty(`proxy`)||(t.proxy=k(t.uri)),typeof t.proxy==`string`&&(t.proxy=t.urlParser.parse(t.proxy),t.proxy.auth&&(t.proxy.auth=t._qs.unescape(t.proxy.auth))),t.tunnel=t._tunnel.isEnabled(),t.socks=t._socks.isEnabled(),t.proxy&&(t.socks?t._socks.setup():t._tunnel.setup(e)),t._redirect.onRequest(e),t.setHost=t.setHost===void 0||!!t.setHost,!t.hasHeader(`host`)&&t.setHost){var d=t.originalHostHeaderName||`Host`;t.setHeader(d,t.uri.host),t.uri.port&&(t.uri.port===`80`&&t.uri.protocol===`http:`||t.uri.port===`443`&&t.uri.protocol===`https:`)&&t.setHeader(d,t.uri.hostname)}if(t.uri.port||(t.uri.protocol===`http:`?t.uri.port=80:t.uri.protocol===`https:`&&(t.uri.port=443)),t.proxy&&!t.tunnel&&!t.socks?(t.port=t.proxy.port,t.host=t.proxy.hostname):(t.port=t.uri.port,t.host=t.uri.hostname),e.form&&t.form(e.form),e.formData)for(var f=e.formData,p=t.form(),m=0,h=f.length;m<h;m++){var g=f[m];g&&(g.options?p.append(g.key,g.value,g.options):p.append(g.key,g.value))}if(e.qs&&t.qs(e.qs),t.uri.path?t.path=t.uri.path:t.path=t.uri.pathname+(t.uri.search||``),t.path.length===0&&(t.path=`/`),e.aws&&t.aws(e.aws),e.hawk&&t.hawk(e.hawk),e.httpSignature&&t.httpSignature(e.httpSignature),e.auth&&(Object.prototype.hasOwnProperty.call(e.auth,`username`)&&(e.auth.user=e.auth.username),Object.prototype.hasOwnProperty.call(e.auth,`password`)&&(e.auth.pass=e.auth.password),t.auth(e.auth.user,e.auth.pass,e.auth.sendImmediately,e.auth.bearer)),!t.hasHeader(`accept-encoding`)){var _=``;t.gzip&&(_+=`gzip, deflate`),t.brotli&&(_&&(_+=`, `),_+=`br`),_&&t.setHeader(`Accept-Encoding`,_)}if(t.uri.auth&&!t.hasHeader(`authorization`)){var v=t.uri.auth.split(`:`).map(function(e){return t._qs.unescape(e)});t.auth(v[0],v.slice(1).join(`:`),!0)}!t.tunnel&&!t.socks&&t.proxy&&t.proxy.auth&&!t.hasHeader(`proxy-authorization`)&&t.setHeader(`Proxy-Authorization`,`Basic `+W(t.proxy.auth)),t.proxy&&!t.tunnel&&!t.socks&&(t.path=t.uri.protocol+`//`+t.uri.host+t.path),e.json&&t.json(e.json),e.multipart&&t.multipart(e.multipart),(e.time||e.verbose)&&(t.timing=!0,t.elapsedTime=t.elapsedTime||0),e.verbose&&(t.verbose=!0),typeof e.maxResponseSize==`number`&&(t.maxResponseSize=e.maxResponseSize);function S(){if(E(t.body)&&(t.body=z.from(t.body)),!t.hasHeader(`content-length`)){var e=typeof t.body==`string`?z.byteLength(t.body):Array.isArray(t.body)?t.body.reduce(function(e,t){return e+t.length},0):t.body.length;e?t.setHeader(`Content-Length`,e):t.emit(`error`,Error(`Argument error, options.body.`))}}t.body&&!w(t.body)&&S(),e.oauth?t.oauth(e.oauth):t._oauth.params&&t.hasHeader(`authorization`)&&t.oauth(t._oauth.params);var C=t.proxy&&!t.tunnel&&!t.socks?t.proxy.protocol:t.uri.protocol,D={"http:":{http2:r,http1:r,auto:r},"https:":{http1:i,http2:s,auto:c}},O=t.httpModules||{};if(t.httpModule=O[C]&&O[C][t.protocolVersion]||O[C]||D[C]&&D[C][t.protocolVersion],O[C]&&!O[C][e.protocolVersion]&&(t.protocolVersion=`http1`),!t.httpModule)return t.emit(`error`,Error(`Invalid protocol: `+C));if(e.ca&&(t.ca=e.ca),t.agents&&!t.agent){var A=C===`http:`?t.agents.http:t.agents.https;A&&(A.agentClass||A.agentOptions?(e.agentClass=A.agentClass||e.agentClass,e.agentOptions=A.agentOptions||e.agentOptions):t.agent=A)}if(!t.agent)if(e.agentOptions&&(t.agentOptions=e.agentOptions),e.agentClass)t.agentClass=e.agentClass;else if(e.forever){var j=J();j.major===0&&j.minor<=10?t.agentClass=C===`http:`?x:x.SSL:(t.agentClass=t.httpModule.Agent,t.agentOptions=t.agentOptions||{},t.agentOptions.keepAlive=!0)}else t.agentClass=t.httpModule.Agent;if(t.pool===!1)t.agent=!1;else try{t.agent=t.agent||t.getNewAgent({agentIdleTimeout:e.agentIdleTimeout})}catch(e){return t.emit(`error`,e)}t.on(`pipe`,function(e){if(t.ntick&&t._started&&t.emit(`error`,Error(`You cannot pipe to this stream after the outbound request has started.`)),t.src=e,U(e))t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,y.lookup(e.path)||`application/octet-stream`);else{if(e.headers)for(var n in e.headers)t.hasHeader(n)||t.setHeader(n,e.headers[n]);t._json&&!t.hasHeader(`content-type`)&&t.setHeader(`Content-Type`,`application/json`),e.method&&!t.explicitMethod&&(t.method=e.method)}}),G(function(){if(!t._aborted){var n=function(){if(t._form&&(!t._auth.hasAuth||t._auth.hasAuth&&t._auth.sentAuth))try{t._form.pipe(t)}catch(n){t.abort(),e.callback&&e.callback(n);return}if(t._multipart&&t._multipart.chunked&&t._multipart.body.pipe(t),t.body)w(t.body)?t.hasHeader(`content-length`)?t.body.pipe(t):T(t.body,{},function(e,n){e||t._started||t.hasHeader(`content-length`)||n===null||n<0||t.setHeader(`Content-Length`,n),t.body.pipe(t)}):(S(),Array.isArray(t.body)?t.body.forEach(function(e){t.write(e)}):t.write(t.body),t.end());else if(t.requestBodyStream)console.warn(`options.requestBodyStream is deprecated, please pass the request object to stream.pipe.`),t.requestBodyStream.pipe(t);else if(!t.src){if(t._auth.hasAuth&&!t._auth.sentAuth||t.hasHeader(`content-length`)){t.end();return}switch(t.method){case`GET`:case`HEAD`:case`TRACE`:case`DELETE`:case`CONNECT`:case`OPTIONS`:case void 0:break;default:t.setHeader(`Content-Length`,0);break}t.end()}};t.jar(t._jar||e.jar,function(){t._form&&!t.hasHeader(`content-length`)?t._form.getLength(function(e,r){!e&&!isNaN(r)&&t.setHeader(`Content-Length`,r),n()}):n()}),t.ntick=!0}})},ce.prototype.getNewAgent=function({agentIdleTimeout:e}){var t=this,r=t.agentClass,i={};if(t.agentOptions)for(var a in t.agentOptions)i[a]=t.agentOptions[a];t.ca&&(i.ca=t.ca),t.extraCA&&(i.extraCA=t.extraCA),t.ciphers&&(i.ciphers=t.ciphers),t.secureProtocol&&(i.secureProtocol=t.secureProtocol),t.secureOptions&&(i.secureOptions=t.secureOptions),t.sslKeyLogFile&&(i.sslKeyLogFile=t.sslKeyLogFile),t.rejectUnauthorized!==void 0&&(i.rejectUnauthorized=t.rejectUnauthorized),t.cert&&t.key&&(i.key=t.key,i.cert=t.cert),t.pfx&&(i.pfx=t.pfx),t.passphrase&&(i.passphrase=t.passphrase);var o=``;r!==t.httpModule.Agent&&(o+=r.name);var s=t.proxy;if(typeof s==`string`&&(s=t.urlParser.parse(s)),s&&s.protocol===`https:`||this.uri.protocol===`https:`){if(i.ca&&(o&&(o+=`:`),o+=i.ca),i.extraCA){o&&(o+=`:`),o+=i.extraCA;var c=n.createSecureContext(i);c.context.addCACert(i.extraCA),i.secureContext=c}i.rejectUnauthorized!==void 0&&(o&&(o+=`:`),o+=i.rejectUnauthorized),i.cert&&(o&&(o+=`:`),o+=i.cert.toString(`ascii`)+i.key.toString(`ascii`)),i.pfx&&(o&&(o+=`:`),o+=i.pfx.toString(`ascii`)),i.passphrase&&(o&&(o+=`:`),o+=i.passphrase),i.ciphers&&(o&&(o+=`:`),o+=i.ciphers),i.secureProtocol&&(o&&(o+=`:`),o+=i.secureProtocol),i.secureOptions&&(o&&(o+=`:`),o+=i.secureOptions),i.sslKeyLogFile&&(o&&(o+=`:`),o+=i.sslKeyLogFile)}if(t.pool===te&&!o&&Object.keys(i).length===0&&t.httpModule.globalAgent&&typeof e!=`number`)return t.httpModule.globalAgent;o=t.protocolVersion+`:`+t.uri.protocol+o;let l=t.pool[o];return(!l||typeof e==`number`&&(l.lastUsedAt||0)+e<Date.now())&&(l=t.pool[o]=new r(i),t.pool.maxSockets&&(t.pool[o].maxSockets=t.pool.maxSockets)),l.lastUsedAt=Date.now(),l},ce.prototype.start=function(){var e=this;if(e.timing)var t=new Date().getTime(),n=Y();if(!e._aborted){e.emit(`start`),e._started=!0,e.method=e.method||`GET`,e.href=e.uri.href,e.src&&e.src.stat&&e.src.stat.size&&!e.hasHeader(`content-length`)&&e.setHeader(`Content-Length`,e.src.stat.size),e._aws&&e.aws(e._aws,!0),e._reqResInfo.request={method:e.method,href:e.uri.href,headers:[],proxy:e.proxy&&{href:e.proxy.href}||void 0,httpVersion:`1.1`};var r=K(e);if(delete r.auth,!(e.disableUrlEncoding||e.proxy||e.uri.isUnix))try{C(r,V(e.uri.href))}catch{}le(`make request`,e.uri.href),delete r.timeout;try{e.req=e.httpModule.request(r),Array.isArray(e.blacklistHeaders)&&e.blacklistHeaders.length&&e.blacklistHeaders.forEach(function(t){e.req.removeHeader(t),e.removeHeader(t)})}catch(t){e.emit(`error`,t);return}e.timing&&(e.startTime=t,e.startTimeNow=n,e.timings={});var i;e.timeout&&!e.timeoutTimer&&(e.timeout<0?i=0:typeof e.timeout==`number`&&isFinite(e.timeout)&&(i=e.timeout)),e.req.on(`response`,e.onRequestResponse.bind(e)),e.req.on(`error`,e.onRequestError.bind(e)),e.req.on(`drain`,function(){e.emit(`drain`)}),e.req.on(`socket`,function(t){if(e.verbose){var n=!!(t.__SESSION_ID&&t.__SESSION_DATA);n||(t.__SESSION_ID=_(),t.__SESSION_DATA={}),e._reqResInfo.session={id:t.__SESSION_ID,reused:n,data:t.__SESSION_DATA}}e.sslKeyLogFile&&!o.getEventListeners(t,`keylog`).length&&t.on(`keylog`,t=>{a.appendFile(e.sslKeyLogFile,t).catch(()=>{le(`Failed to append keylog to file: `+e.sslKeyLogFile)})});var r=t._connecting||t.connecting;if(e.timing&&(e.timings.socket=Y()-e.startTimeNow,r)){var s=function(){e.timings.lookup=Y()-e.startTimeNow},c=function(){e.timings.connect=Y()-e.startTimeNow,e.verbose&&(t.__SESSION_DATA.addresses={local:typeof t.address==`function`&&t.address(),remote:{address:t.remoteAddress,family:t.remoteFamily,port:t.remotePort}})};t.once(`lookup`,s),t.once(`connect`,c),t.once(`secureConnect`,function(){if(e.timings.secureConnect=Y()-e.startTimeNow,e.verbose){t.__SESSION_DATA.tls={reused:typeof t.isSessionReused==`function`&&t.isSessionReused(),authorized:t.authorized,authorizationError:t.authorizationError,cipher:typeof t.getCipher==`function`&&t.getCipher(),protocol:typeof t.getProtocol==`function`&&t.getProtocol(),ephemeralKeyInfo:typeof t.getEphemeralKeyInfo==`function`&&t.getEphemeralKeyInfo()};var n=typeof t.getPeerCertificate==`function`&&(t.getPeerCertificate()||{});t.__SESSION_DATA.tls.peerCertificate={subject:n.subject&&{country:n.subject.C,stateOrProvince:n.subject.ST,locality:n.subject.L,organization:n.subject.O,organizationalUnit:n.subject.OU,commonName:n.subject.CN,alternativeNames:n.subjectaltname},issuer:n.issuer&&{country:n.issuer.C,stateOrProvince:n.issuer.ST,locality:n.issuer.L,organization:n.issuer.O,organizationalUnit:n.issuer.OU,commonName:n.issuer.CN},validFrom:n.valid_from,validTo:n.valid_to,fingerprint:n.fingerprint,serialNumber:n.serialNumber}}}),e.req.once(`error`,function(){try{t.removeListener(`lookup`,s),t.removeListener(`connect`,c)}catch(e){if(e.code!==`ERR_HTTP2_SOCKET_UNBOUND`)throw e}})}var l=function(){e.req.setTimeout(i,function(){if(e.req){e.abort();var t=Error(`ESOCKETTIMEDOUT`);t.code=`ESOCKETTIMEDOUT`,t.connect=!1,e.emit(`error`,t)}})};if(i!==void 0)if(r){var u=function(){t.removeListener(`connect`,u),e.clearTimeout(),l()};t.on(`connect`,u),e.req.on(`error`,function(e){try{t.removeListener(`connect`,u)}catch(e){if(e.code!==`ERR_HTTP2_SOCKET_UNBOUND`)throw e}}),e.timeoutTimer=setTimeout(function(){t.removeListener(`connect`,u),e.abort();var n=Error(`ETIMEDOUT`);n.code=`ETIMEDOUT`,n.connect=!0,e.emit(`error`,n)},i)}else l();e.emit(`socket`,t)}),e.emit(`request`,e.req)}},ce.prototype.onRequestError=function(e){var t=this;if(!t._aborted){if(t.req&&t.req._reusedSocket&&e.code===`ECONNRESET`&&t.agent.addRequestNoreuse){t.agent={addRequest:t.agent.addRequestNoreuse.bind(t.agent)},t.start(),t.req.end();return}e.res&&e.res.statusCode&&e.res.statusMessage&&t.onRequestResponse(e.res),t.clearTimeout(),t.emit(`error`,e)}},ce.prototype.onRequestResponse=function(e){var t=this;let n=t.startTimeNow;if(t.timing&&(t.timings.response=Y()-n),le(`onRequestResponse`,t.uri.href,e.statusCode,e.headers),e.on(`end`,function(){t.timing&&(t.timings.end=Y()-n,e.timingStart=t.startTime,e.timingStartTimer=n,t.timings.socket||(t.timings.socket=0),t.timings.lookup||(t.timings.lookup=t.timings.socket),t.timings.connect||(t.timings.connect=t.timings.lookup),!t.timings.secureConnect&&t.uri.protocol===`https:`&&(t.timings.secureConnect=t.timings.connect),t.timings.response||(t.timings.response=t.timings.connect),le(`elapsed time`,t.timings.end),t.elapsedTime+=Math.round(t.timings.end),e.elapsedTime=t.elapsedTime,e.timings=t.timings,e.timingPhases={wait:t.timings.socket,dns:t.timings.lookup-t.timings.socket,tcp:t.timings.connect-t.timings.lookup,firstByte:t.timings.response-t.timings.connect,download:t.timings.end-t.timings.response,total:t.timings.end},t.timings.secureConnect&&(e.timingPhases.secureHandshake=t.timings.secureConnect-t.timings.connect,e.timingPhases.firstByte=t.timings.response-t.timings.secureConnect)),le(`response end`,t.uri.href,e.statusCode,e.headers)}),t._aborted){le(`aborted`,t.uri.href),e.resume();return}if(t._reqResInfo.response={statusCode:e.statusCode,headers:se(e.rawHeaders),httpVersion:e.httpVersion},t._reqResInfo.request.httpVersion=e.httpVersion,t.timing&&(t._reqResInfo.timingStart=t.startTime,t._reqResInfo.timingStartTimer=t.startTimeNow,t._reqResInfo.timings=t.timings),t.response=e,e.request=t,e.toJSON=ae,t.uri.protocol===`https:`&&t.strictSSL&&(!e.hasOwnProperty(`socket`)||!e.socket.authorized)){le(`strict ssl error`,t.uri.href);var r=e.hasOwnProperty(`socket`)?e.socket.authorizationError:t.uri.href+` does not support SSL`;t.emit(`error`,Error(`SSL Error: `+r));return}t.originalHost=t.getHeader(`host`),t.originalHostHeaderName||=t.hasHeader(`host`),t.setHost&&t.removeHeader(`host`),t.clearTimeout();function i(){if(!t._redirect.onResponse(e)){e.once(`close`,function(){t._ended||t.response.emit(`end`)}),e.once(`end`,function(){t._ended=!0});var n=function(e){return t.method===`HEAD`||e>=100&&e<200||e===204||e===304},r,i=new X;if((t.gzip||t.brotli)&&!n(e.statusCode)){var a=e.headers[`content-encoding`]||`identity`;a=a.trim().toLowerCase();var o={flush:m.Z_SYNC_FLUSH,finishFlush:m.Z_SYNC_FLUSH};t.gzip&&a===`gzip`?(r=m.createGunzip(o),e.pipe(i).pipe(r)):t.gzip&&a===`deflate`?(r=B.createInflate(o),e.pipe(i).pipe(r)):t.brotli&&a===`br`?(r=m.createBrotliDecompress(),e.pipe(i).pipe(r)):(a!==`identity`&&le(`ignoring unrecognized Content-Encoding `+a),r=e.pipe(i))}else r=e.pipe(i);t.encoding&&(t.dests.length===0?r.setEncoding(t.encoding):console.error(`Ignoring encoding parameter as this stream is being piped to another stream which makes the encoding option invalid.`));var s=String(e.statusMessage);t.statusMessageEncoding&&/[^\w\s-']/.test(s)&&(e.statusMessage=z.from(s,`latin1`).toString(t.statusMessageEncoding)),t._paused&&r.pause(),t.responseContent=r,t.emit(`response`,e),t.dests.forEach(function(e){t.pipeDest(e)});var c=!1,l;typeof t.maxResponseSize==`number`&&(c=!0,l=t.maxResponseSize),r.on(`data`,function(n){if(t.timing&&!t.responseStarted&&(t.responseStartTime=new Date().getTime(),e.responseStartTime=t.responseStartTime),c&&(l-=n.length,l<0)){t.emit(`error`,Error(`Maximum response size reached`)),t.destroy(),t.abort();return}t._destdata=!0,t.emit(`data`,n)}),r.once(`end`,function(e){t._reqResInfo.response.downloadedBytes=i.size,t.emit(`end`,e)}),r.on(`error`,function(e){t.emit(`error`,e)}),r.on(`close`,function(){t.emit(`close`)}),t.callback?t.readResponseBody(e):t.on(`end`,function(){if(t._aborted){le(`aborted`,t.uri.href);return}t.emit(`complete`,e)})}}function a(e,t,n){if(!n&&(n=function(){}),!(Array.isArray(e)&&t))return n();var r=0,i=e.length;function a(o){if(o||r>=i)return n(o);try{t.call(e,e[r++],a)}catch(e){return n(e)}}if(!i)return n();a()}var o=t._jar&&t._jar.setCookie?t._jar:ee,s=function(e,n){o.setCookie(e,t.uri,{ignoreError:!0},function(){n()})};if(e.caseless=b(e.headers),e.caseless.has(`set-cookie`)&&!t._disableCookies){var c=e.caseless.has(`set-cookie`);Array.isArray(e.headers[c])?a(e.headers[c],s,function(e){if(e)return t.emit(`error`,e);i()}):s(e.headers[c],i)}else i();le(`finish init function`,t.uri.href)},ce.prototype.readResponseBody=function(e){var t=this;le(`reading response's body`);var n=[],r=0,i=[];t.on(`data`,function(e){z.isBuffer(e)?e.length&&(r+=e.length,n.push(e)):i.push(e)}),t.on(`end`,function(){if(le(`end event`,t.uri.href),t._aborted){le(`aborted`,t.uri.href),n=[],r=0;return}if(r?(le(`has body`,t.uri.href,r),e.body=z.concat(n,r),t.encoding!==null&&(e.body=e.body.toString(t.encoding)),n=[],r=0):i.length&&(t.encoding===`utf8`&&i[0].length>0&&i[0][0]===``&&(i[0]=i[0].substring(1)),e.body=i.join(``)),t._json)try{e.body=JSON.parse(e.body,t._jsonReviver)}catch{le(`invalid JSON received`,t.uri.href)}le(`emitting complete`,t.uri.href),e.body===void 0&&!t._json&&(e.body=t.encoding===null?z.alloc(0):``),t.emit(`complete`,e,e.body)})},ce.prototype.abort=function(){var e=this;e._aborted=!0,e.req?e.req.abort():e.response&&e.response.destroy(),e.clearTimeout(),e.emit(`abort`)},ce.prototype.pipeDest=function(e){var t=this,n=t.response;if(e.headers&&!e.headersSent){if(n.caseless.has(`content-type`)){var r=n.caseless.has(`content-type`);e.setHeader?e.setHeader(r,n.headers[r]):e.headers[r]=n.headers[r]}if(n.caseless.has(`content-length`)){var i=n.caseless.has(`content-length`);e.setHeader?e.setHeader(i,n.headers[i]):e.headers[i]=n.headers[i]}}if(e.setHeader&&!e.headersSent){for(var a in n.headers)a.startsWith(`:`)||(!t.gzip||a!==`content-encoding`)&&e.setHeader(a,n.headers[a]);e.statusCode=n.statusCode}t.pipefilter&&t.pipefilter(n,e)},ce.prototype.qs=function(e,t){var n=this,r=!t&&n.uri.query?n._qs.parse(n.uri.query):{};for(var i in e)r[i]=e[i];var a=n._qs.stringify(r);return a===``?n:(n.uri=n.urlParser.parse(n.uri.href.split(`?`)[0]+`?`+a),n.url=n.uri,n.path=n.uri.path,n.uri.host===`unix`&&n.enableUnixSocket(),n)},ce.prototype.form=function(e){var t=this,n=t.getHeader(`content-type`),r=n?!t.allowContentTypeOverride:!0;if(e)return r&&!/^application\/x-www-form-urlencoded\b/.test(n)&&t.setHeader(`Content-Type`,`application/x-www-form-urlencoded`),t.body=typeof e==`string`?t._qs.rfc3986(e.toString(`utf8`)):t._qs.stringify(e).toString(`utf8`),t;var i=n&&n.match&&n.match(/^multipart\/form-data;.*boundary=(?:"([^"]+)"|([^;]+))/);return t._form=new S({_boundary:i&&(i[1]||i[2])}),t._form.on(`error`,function(e){e.message=`form-data: `+e.message,t.emit(`error`,e),t.abort()}),r&&!i&&t.setHeader(`Content-Type`,`multipart/form-data; boundary=`+t._form.getBoundary()),t._form},ce.prototype.multipart=function(e){var t=this;return t._multipart.onRequest(e),t._multipart.chunked||(t.body=t._multipart.body),t},ce.prototype.json=function(e){var t=this;return t.hasHeader(`accept`)||t.setHeader(`Accept`,`application/json`),typeof t.jsonReplacer==`function`&&(t._jsonReplacer=t.jsonReplacer),t._json=!0,typeof e==`boolean`?t.body!==void 0&&(/^application\/x-www-form-urlencoded\b/.test(t.getHeader(`content-type`))?t.body=t._qs.rfc3986(t.body):t.body=H(t.body,t._jsonReplacer),t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,`application/json`)):(t.body=H(e,t._jsonReplacer),t.hasHeader(`content-type`)||t.setHeader(`Content-Type`,`application/json`)),typeof t.jsonReviver==`function`&&(t._jsonReviver=t.jsonReviver),t},ce.prototype.getHeader=function(e,t){var n=this,r,i,a;return t||=n.headers,Object.keys(t).forEach(function(n){n.length===e.length&&(i=new RegExp(e,`i`),a=n.match(i),a&&(r=t[n]))}),r},ce.prototype.enableUnixSocket=function(){var e=this.uri.path.split(`:`),t=e[0],n=e[1];this.socketPath=t,this.uri.pathname=n,this.uri.path=n,this.uri.host=t,this.uri.hostname=t,this.uri.isUnix=!0},ce.prototype.auth=function(e,t,n,r){var i=this;return i._auth.onRequest(e,t,n,r),i},ce.prototype.aws=function(e,t){var n=this;if(!t)return n._aws=e,n;if(e.sign_version===4||e.sign_version===`4`){var r={host:n.uri.host,path:n.uri.path,method:n.method,headers:n.headers,body:n.body};e.service&&(r.service=e.service);var i=g.sign(r,{accessKeyId:e.key,secretAccessKey:e.secret,sessionToken:e.session});n.setHeader(`Authorization`,i.headers.Authorization),n.setHeader(`X-Amz-Date`,i.headers[`X-Amz-Date`]),i.headers[`X-Amz-Security-Token`]&&n.setHeader(`X-Amz-Security-Token`,i.headers[`X-Amz-Security-Token`])}else{var a=new Date;n.setHeader(`Date`,a.toUTCString());var o={key:e.key,secret:e.secret,verb:n.method.toUpperCase(),date:a,contentType:n.getHeader(`content-type`)||``,md5:n.getHeader(`content-md5`)||``,amazonHeaders:h.canonicalizeHeaders(n.headers)},s=n.uri.path;e.bucket&&s?o.resource=`/`+e.bucket+s:e.bucket&&!s?o.resource=`/`+e.bucket:!e.bucket&&s?o.resource=s:!e.bucket&&!s&&(o.resource=`/`),o.resource=h.canonicalizeResource(o.resource),n.setHeader(`Authorization`,h.authorization(o))}return n},ce.prototype.httpSignature=function(e){var t=this;return v.signRequest({getHeader:function(e){return t.getHeader(e,t.headers)},setHeader:function(e,n){t.setHeader(e,n)},method:t.method,path:t.path},e),le(`httpSignature authorization`,t.getHeader(`authorization`)),t},ce.prototype.hawk=function(e){var t=this;t.setHeader(`Authorization`,P.header(t.uri,t.method,e))},ce.prototype.oauth=function(e){var t=this;return t._oauth.onRequest(e),t},ce.prototype.jar=function(e,t){var n=this;if(n._jar=e,!e)return n._disableCookies=!0,t();n._redirect.redirectsFollowed===0&&(n.originalCookieHeader=n.getHeader(`cookie`)),(e.getCookieString?e:ee).getCookieString(n.uri,function(e,r){if(e)return t();r&&r.length&&(n.originalCookieHeader?(Array.isArray(n.originalCookieHeader)&&(n.originalCookieHeader=n.originalCookieHeader.join(`; `)),n.setHeader(`Cookie`,n.originalCookieHeader+`; `+r)):n.setHeader(`Cookie`,r)),t()})},ce.prototype.pipe=function(e,t){var n=this;if(n.response)if(n._destdata)n.emit(`error`,Error(`You cannot pipe after data has been emitted from the response.`));else if(n._ended)n.emit(`error`,Error(`You cannot pipe after the response has been ended.`));else return p.Stream.prototype.pipe.call(n,e,t),n.pipeDest(e),e;else return n.dests.push(e),p.Stream.prototype.pipe.call(n,e,t),e},ce.prototype.write=function(){var e=this;if(!e._aborted&&(e._started||e.start(),e.req))return e.req.write.apply(e.req,arguments)},ce.prototype.end=function(e){var t=this;if(!t._aborted&&(e&&t.write(e),t._started||t.start(),t.req)){t.req.end();let e=t._reqResInfo.request;Promise.resolve(t.req._header).then(function(t){if(!t){e.headers=[];return}e.headers=oe(t)})}},ce.prototype.pause=function(){var e=this;e.responseContent?e.responseContent.pause.apply(e.responseContent,arguments):e._paused=!0},ce.prototype.resume=function(){var e=this;e.responseContent?e.responseContent.resume.apply(e.responseContent,arguments):e._paused=!1},ce.prototype.destroy=function(){var e=this;this.clearTimeout(),e._ended?e.response&&e.response.destroy():e.end()},ce.prototype.clearTimeout=function(){this.timeoutTimer&&=(clearTimeout(this.timeoutTimer),null)},ce.defaultProxyHeaderWhiteList=L.defaultProxyHeaderWhiteList.slice(),ce.defaultProxyHeaderExclusiveList=L.defaultProxyHeaderExclusiveList.slice(),ce.prototype.toJSON=ie,t.exports=ce})),iv=s(((e,t)=>{var n=ad(),r=lg();function i(e,t,r){typeof t==`function`&&(r=t);var i={protocolVersion:`http1`};return typeof t==`object`&&t?n(i,t,{uri:e}):typeof e==`string`?n(i,{uri:e}):n(i,e),i.callback=r||i.callback,i.agents&&!(i.agents.http1||i.agents.auto||i.agents.http2)&&(i.protocolVersion=`http1`),(i.tunnel||i.proxy)&&(i.protocolVersion=`http1`),typeof window<`u`&&window.XMLHttpRequest&&(i.protocolVersion=`http1`),i}function a(e,t,n){if(e===void 0)throw Error(`undefined is not a valid uri or options object.`);var r=i(e,t,n);return new a.Request(r)}function o(e){var t=e.toUpperCase();return function(e,n,r){var o=i(e,n,r);return o.method=t,a(o,o.callback)}}a.get=o(`get`),a.head=o(`head`),a.options=o(`options`),a.post=o(`post`),a.put=o(`put`),a.patch=o(`patch`),a.del=o(`delete`),a.delete=o(`delete`),a.jar=function(e){return r.jar(e)},a.cookie=function(e){return r.parse(e)};function s(e,t,r,a){return function(o,s,c){var l=i(o,s,c),u={};return n(!0,u,t,l),u.pool=l.pool||t.pool,a&&(u.method=a.toUpperCase()),typeof r==`function`&&(e=r),e(u,u.callback)}}a.defaults=function(e,t){var n=this;e||={},typeof e==`function`&&(t=e,e={});var r=s(n,e,t);return[`get`,`head`,`post`,`put`,`patch`,`del`,`delete`].forEach(function(i){r[i]=s(n[i],e,t,i)}),r.cookie=s(n.cookie,e,t),r.jar=n.jar,r.defaults=n.defaults,r},a.forever=function(e,t){var r={};return t&&n(r,t),e&&(r.agentOptions=e),r.forever=!0,a.defaults(r)},t.exports=a,a.Request=rv(),a.initParams=i,Object.defineProperty(a,`debug`,{enumerable:!0,get:function(){return a.Request.debug},set:function(e){a.Request.debug=e}})})),av=s(((e,t)=>{let n=d(`fs`),r=Q(),i=d(`path`),a=d(`util`),o=d(`stream`).Readable,s=`PPERM: insecure file access outside working directory`,c=`function`,l=function(e){let t=e.charAt(1);return e.charAt(0)===`/`&&(t>=`A`&&t<=`Z`||t>=`a`&&t<=`z`)&&e.charAt(2)===`:`||e.slice(0,3)===`///`},u=function(e){return e[e.length-1]===i.sep?e.slice(0,-1):e},f=function(e,t){return e=u(e),t=u(t),global.process.platform===`win32`&&(e=e.toLowerCase(),t=t.toLowerCase()),e.lastIndexOf(t,0)===0&&(e[t.length]===i.sep||e[t.length]===void 0)};function p(e,t=!1,r=[]){this._fs=n,this._path=i,this.constants=this._fs.constants,this.workingDir=e,this.insecureFileRead=t,this.fileWhitelist=r,this.isWindows=global.process.platform===`win32`}p.prototype._resolve=function(e,t){this.isWindows&&l(e)&&(e=e.substring(1));let n=this._path.resolve(this.workingDir,e);if(!(!this.insecureFileRead&&!f(n,this.workingDir)&&!r.includes(t,n)))return n},p.prototype.resolvePath=function(e,t,n){!n&&typeof t===c&&(n=t,t=[]);let i=this._resolve(e,r.concat(this.fileWhitelist,t));return i?n(null,i):n(Error(s))},p.prototype.resolvePathSync=function(e,t){let n=this._resolve(e,r.concat(this.fileWhitelist,t));if(!n)throw Error(s);return n},Object.getOwnPropertyNames(n).map(e=>{e===`SyncWriteStream`||e===`promises`||typeof n[e]!==c||(p.prototype[e]=n[e])}),p.prototype.stat=function(e,t){this.resolvePath(e,(e,n)=>e?t(e):this._fs.stat(n,t))},p.prototype.createReadStream=function(e,t){try{return this._fs.createReadStream(this.resolvePathSync(e),t)}catch{let e=function(){o.call(this,{emitClose:!1}),this.emit(`error`,Error(s)),t&&!t.autoClose||this.destroy()};return a.inherits(e,o),new e}},t.exports=p})),ov=s(((e,t)=>{var n=Q(),r=es(),i=Ms(),a=function e(t,r){var i=this;n.assign(i,{collection:n.get(r,`collection`),environment:n.get(r,`environment`),globals:n.get(r,`globals`),run:{stats:{iterations:{},items:{},scripts:{},prerequests:{},requests:{},tests:{},assertions:{},testScripts:{},prerequestScripts:{}},timings:{responseAverage:0,responseMin:0,responseMax:0,responseSd:0,dnsAverage:0,dnsMin:0,dnsMax:0,dnsSd:0,firstByteAverage:0,firstByteMin:0,firstByteMax:0,firstByteSd:0},executions:[],transfers:{responseTotal:0},failures:[],error:null}}),e.attachTimingTrackers(this,t),e.attachStatisticTrackers(this,t),e.attachRequestTracker(this,t),e.attachFailureTrackers(this,t),e.attachReportingTrackers(this,t)};n.assign(a,{attachReportingTrackers(e,t){var r={},i=e.run.executions;t.on(`beforeItem`,function(e,t){e||!n.get(t,`cursor.ref`)||(r[t.cursor.ref]=n.assignIn(r[t.cursor.ref]||{},{cursor:t.cursor,item:t.item}))}),t.on(`request`,function(e,t){if(n.get(t,`cursor.ref`)){var a=r[t.cursor.ref]=r[t.cursor.ref]||{};i.push(n.assignIn(a,{cursor:t.cursor,request:t.request,response:t.response,id:n.get(t,`item.id`)},e&&{requestError:e||void 0}))}}),t.on(`script`,function(e,t){if(n.get(t,`cursor.ref`)){var i=r[t.cursor.ref]=r[t.cursor.ref]||{},a=t&&t.event&&t.event.listen+`Script`;e&&i&&a&&(i[a]||(i[a]=[])).push({error:e})}}),t.on(`assertion`,function(e,t){if(n.get(t,`cursor.ref`)){var i=r[t.cursor.ref]=r[t.cursor.ref]||{};i&&(i.assertions||=[]).push({assertion:t.assertion,skipped:t.skipped,error:e||void 0})}})},attachTimingTrackers(e,t){t.on(`start`,function(){e.run.timings.started=Date.now()}),t.on(`beforeDone`,function(){e.run.timings.completed=Date.now()}),t.on(`done`,function(t){t&&(e.error=t)})},attachStatisticTrackers(e,t){n.forEach(e.run.stats,function(e,r){r=r.slice(0,-1),n.assign(e,{total:0,pending:0,failed:0}),t.on(n.camelCase(`before-`+r),function(){e.pending+=1}),t.on(r,function(t){e.pending&&--e.pending,t&&(e.failed+=1),e.total+=1})})},attachRequestTracker(e,t){t.on(`request`,function(t,i){if(!(t||!(i&&i.response))){var a=n.isFunction(i.response.size)&&i.response.size(),o=i.response.responseTime,s=e.run.stats.requests.total,c,l;a&&(e.run.transfers.responseTotal+=a.body||0+a.headers||0),c=n.last(n.get(i,`history.execution.data`)),c&&=c.timings,l=c&&r.Response.timingPhases(c),(l||o)&&n.forEach([`dns`,`firstByte`,`response`],t=>{var n=t===`response`?o:l&&l[t],r=e.run.timings[`${t}Average`],i=e.run.timings[`${t}Sd`]**2,a=n-r,c,u;n&&(e.run.timings[`${t}Average`]=(r*(s-1)+n)/s,e.run.timings[`${t}Min`]?e.run.timings[`${t}Min`]=Math.min(e.run.timings[`${t}Min`],n):e.run.timings[`${t}Min`]=n,e.run.timings[`${t}Max`]=Math.max(e.run.timings[`${t}Max`],n),c=n-e.run.timings[`${t}Average`],u=(i*(s-1)+a*c)/s,e.run.timings[`${t}Sd`]=Math.sqrt(u))})}})},attachFailureTrackers(e,t){n.forEach([`beforeIteration`,`iteration`,`beforeItem`,`item`,`beforeScript`,`script`,`beforePrerequest`,`prerequest`,`beforeRequest`,`request`,`beforeTest`,`test`,`beforeAssertion`,`assertion`],function(r){t.on(r,function(t,a){if(t){var o=a&&a.item,s=r;r===`script`?(a.event&&(s=a.event.listen+`-script`),t.stacktrace&&t.stacktrace[0]&&t.stacktrace[0].lineNumber&&(s+=`:`+(t.stacktrace[0].lineNumber-2),t.stacktrace[0].columnNumber&&(s+=`:`+t.stacktrace[0].columnNumber))):r===`assertion`&&(n.has(t,`index`)&&(s+=`:`+t.index),s+=` in test-script`),t.stack&&!t.stacktrace&&(t=new i(t,!0)),e.run.failures.push({error:t,at:s,source:o||void 0,parent:o&&o.__parent&&o.__parent.__parent||void 0,cursor:a.cursor||{}})}})})}}),t.exports=a})),sv=s(((e,t)=>{let n=Q().noConflict(),r=`string`,i=[`protocol`,`auth`,`host`,`port`,`path`,`query`,`hash`],a=/#/g,o=/=/g,s=/&/g,c=/{{[^{}]*[.:/?#@&\]][^{}]*}}/g,l=/{{[^{}]*[&#=][^{}]*}}/g,u=function(e,t){return e&&(e.indexOf(`&`)!==-1&&(e=e.replace(s,`%26`)),e.indexOf(`#`)!==-1&&(e=e.replace(a,`%23`)),t&&e.indexOf(`=`)!==-1&&(e=e.replace(o,`%3D`)),e)},d=function(e,t){if(!(e&&typeof e===r)||e.indexOf(`&`)===-1&&e.indexOf(`#`)===-1&&!(t&&e.indexOf(`=`)!==-1))return e;for(var n=``,i=0,a,o,s;(o=l.exec(e))!==null;)a=o[0],s=o.index,n+=u(e.slice(i,s),t)+a,i=s+a.length;return i<e.length&&(n+=u(e.slice(i),t)),n},f=function(e){if(!e)return``;var t=e.key,n=e.value,i=typeof t===r?d(t,!0):``;return typeof n===r&&(i+=`=`+d(n)),i},p=function(e){if(e===``)return{key:null,value:null};var t=n.indexOf(e,`=`);return t<0?{key:e,value:null}:{key:e.substr(0,t),value:e.substr(t+1)}};function m(){this.replacements=[],this._offset=0,this._length=0}m.prototype.add=function(e,t){this.replacements.push({value:e,index:t-this._offset}),this._offset+=e.length-1,this._length++},m.prototype.count=function(){return this._length},m.prototype._findLowerIndex=function(e){for(var t=this.count(),n=0,r=t-1,i;n<=r;)i=n+r>>1,this.replacements[i].index>=e?r=i-1:n=i+1;return n>=t?-1:n},m.prototype._applyInString=function(e,t,n){var r,i,a,o,s=0,c=this.count();if(!e||(r=this._findLowerIndex(t))===-1)return e;do{if(i=this.replacements[r],a=i.index,o=i.value,a>=n)break;a=s+a-t,e=e.slice(0,a)+o+e.slice(a+1),s+=o.length-1}while(++r<c);return e},m.prototype.apply=function(e,t,n){var i,a,o,s,c,l=e;if(typeof e===r)return this._applyInString(e,t,n);for(c=t,i=0,a=e.length;i<a;++i)l=e[i],s=c+(o=l.length),e[i]=this._applyInString(l,c,s),c+=o+1;return e};function h(e,t){for(var n=``,r=0,i,a,o;(a=c.exec(e))!==null;)i=a[0],o=a.index,n+=e.slice(r,o)+`_`,t.add(i,o),r=o+i.length;return r===0?e:(r<e.length&&(n+=e.slice(r)),n)}function g(e,t){var n,r,a;for(n=0,r=i.length;n<r;++n)a=e[i[n]],a&&a.value&&(a.value=t.apply(a.value,a.beginIndex,a.endIndex));return e}function _(e){e=String(e).trimLeft();var t={protocol:{value:void 0,beginIndex:0,endIndex:0},auth:{value:void 0,beginIndex:0,endIndex:0},host:{value:void 0,beginIndex:0,endIndex:0},port:{value:void 0,beginIndex:0,endIndex:0},path:{value:void 0,beginIndex:0,endIndex:0},query:{value:void 0,beginIndex:0,endIndex:0},hash:{value:void 0,beginIndex:0,endIndex:0}},n={raw:e,protocol:void 0,auth:void 0,host:void 0,port:void 0,path:void 0,query:void 0,hash:void 0},r=new m,i=0,a,o,s;return e?(e=h(e,r),a=e.length,(o=e.indexOf(`#`))!==-1&&(t.hash.value=e.slice(o+1),t.hash.beginIndex=i+o+1,t.hash.endIndex=i+a,e=e.slice(0,a=o)),(o=e.indexOf(`?`))!==-1&&(t.query.value=e.slice(o+1).split(`&`),t.query.beginIndex=i+o+1,t.query.endIndex=i+a,e=e.slice(0,a=o)),(o=e.indexOf(`://`))===-1?(o=e.indexOf(`:\\\\`))!==-1&&(t.protocol.value=e.slice(0,o),t.protocol.beginIndex=i,t.protocol.endIndex=i+o,e=e.slice(o+3),a-=o+3,i+=o+3):(t.protocol.value=e.slice(0,o),t.protocol.beginIndex=i,t.protocol.endIndex=i+o,e=e.slice(o+3),a-=o+3,i+=o+3),e=e.replace(/\\/g,`/`),(o=e.indexOf(`/`))!==-1&&(t.path.value=e.slice(o+1).split(`/`),t.path.beginIndex=i+o+1,t.path.endIndex=i+a,e=e.slice(0,a=o)),(o=e.lastIndexOf(`@`))!==-1&&(t.auth.value=e.slice(0,o),t.auth.beginIndex=i,t.auth.endIndex=i+o,e=e.slice(o+1),a-=o+1,i+=o+1,(o=t.auth.value.indexOf(`:`))===-1?t.auth.value=[t.auth.value]:t.auth.value=[t.auth.value.slice(0,o),t.auth.value.slice(o+1)]),(o=e.lastIndexOf(`:`))!==-1&&(s=e.slice(o+1)).indexOf(`]`)===-1&&(t.port.value=s,t.port.beginIndex=i+o+1,t.port.endIndex=i+a,e=e.slice(0,a=o)),e&&(t.host.value=e.split(`.`),t.host.beginIndex=i,t.host.endIndex=i+a),r.count()&&g(t,r),n.protocol=t.protocol.value,n.auth=t.auth.value,n.host=t.host.value,n.port=t.port.value,n.path=t.path.value,n.query=t.query.value,n.hash=t.hash.value,n):n}t.exports={parse:function(e){typeof e!==r&&(e=``),e=_(e);var t,i={};return e.auth&&={user:e.auth[0],password:e.auth[1]},e.query&&=e.query.map(p),t=n.transform(e.path,function(e,t){n.startsWith(t,`:`)&&t!==`:`&&!i[t]&&(i[t]=!0,e.push({key:t.slice(1)}))},[]),e.variable=t.length?t:void 0,e},unparse:function(e){var t=``,i,a,o,s=!0;return e.protocol&&(t+=n.endsWith(e.protocol,`://`)?e.protocol:e.protocol+`://`),e.auth&&(typeof e.auth.user===r&&(o=e.auth.user),typeof e.auth.password===r&&(!o&&(o=``),o+=`:`+e.auth.password),typeof o===r&&(t+=o+`@`)),e.host&&(t+=n.isArray(e.host)?e.host.join(`.`):e.host.toString()),typeof n.get(e.port,`toString`)==`function`&&(t+=`:`+e.port.toString()),e.path&&(i=n.isArray(e.path)?e.path.join(`/`):e.path.toString(),t+=n.startsWith(i,`/`)?i:`/`+i),e.query&&e.query.length&&(a=n.reduce(e.query,function(e,t){return!t||t.disabled?e:(s?s=!1:e+=`&`,e+f(t))},``),a===``&&s&&(a=void 0),typeof a===r&&(t+=`?`+a)),typeof e.hash===r&&(t+=`#`+e.hash),t}}})),cv=s(((e,t)=>{var n=Q(),r=sv(),i=Math.random;t.exports={typeMap:{string:`string`,boolean:`boolean`,number:`number`},uid:function(){var e,t,n=``,r=`-`;for(t=e=n;e++<36;t+=e*51&52?(e^15?8^i()*(e^20?16:4):4).toString(16):r);return t},urlparse:function(e){return r.parse(e)},urlunparse:function(e){return r.unparse(e)},handleVars:function(e,t,r){!t&&(t={});var i=this,a=t.retainIds,o=t.noDefaults,s=r&&r.isV1,c=t.retainEmptyValues,l=e&&(e.variables||e.variable||s&&e.pathVariableData),u=t.fallback&&t.fallback.values,d=n.map(l||u,function(e){var t={};return a&&(n.has(e,`id`)?t.id=e.id:o||(t.id=i.uid())),t.key=e.key||e.id,t.value=e.value,e.type&&(t.type=e.type===`text`?`string`:e.type),e.disabled&&(t.disabled=!0),e.description?t.description=e.description:c&&(t.description=null),t});if(d.length)return d},cleanAuth:function(e,t){!t&&(t={});var n=e&&e.auth;if(n===null)return null;if(n&&n.type)return n.type===`noauth`?t.excludeNoauth?null:{type:`noauth`}:n},cleanEmptyValue:function(e,t,r){return n.has(e,t)&&!e[t]&&(r?e[t]=null:delete e[t]),e},authArrayToMap:function(e,t){var r,i,a=this.cleanAuth(e,t);return a&&(i={type:r=a.type},r!==`noauth`&&(i[r]=n.transform(a[r],function(e,t){e[t.key]=t.value},{})),i)},authMapToArray:function(e,t){var r,i,a,o=this,s=o.cleanAuth(e,t);return s&&(a={type:r=s.type},r!==`noauth`&&(i=n.map(s[r],function(e,t){return{key:t,value:e,type:o.typeMap[typeof e]||`any`}}),i.length&&(a[r]=i)),a)},sanitizeAuthArray:function(e,t){var r,i,a=this,o=a.cleanAuth(e,t);return o&&(i={type:r=o.type},r!==`noauth`&&(i[r]=n.map(o[r],function(e){return{key:e.key,value:e.value,type:(e.type===`text`?`string`:e.type)||a.typeMap[typeof e.value]||`any`}})),i)},notLegacy:function(e,t){if(e)switch(t){case`event`:return!(e.tests||e.preRequestScript);case`auth`:return n.has(e,`auth`)&&!(n.has(e,`currentHelper`)||e.helperAttributes);default:return!0}},authMappersFromLegacy:{apikeyAuth:function(e){return e&&{key:e.key,value:e.value,in:e.in}},basicAuth:function(e){return e&&{username:e.username,password:e.password,saveHelperData:e.saveToRequest,showPassword:!1}},bearerAuth:function(e){return e&&{token:e.token}},digestAuth:function(e){return e&&{algorithm:e.algorithm,username:e.username,realm:e.realm,password:e.password,nonce:e.nonce,nonceCount:e.nonceCount,clientNonce:e.clientNonce,opaque:e.opaque,qop:e.qop,disableRetryRequest:e.disableRetryRequest}},oAuth1:function(e){return e&&{consumerKey:e.consumerKey,consumerSecret:e.consumerSecret,token:e.token,tokenSecret:e.tokenSecret,signatureMethod:e.signatureMethod,timestamp:e.timestamp,nonce:e.nonce,version:e.version,realm:e.realm,addParamsToHeader:e.header,autoAddParam:e.auto,addEmptyParamsToSign:e.includeEmpty}},hawkAuth:function(e){return e&&{authId:e.hawk_id,authKey:e.hawk_key,algorithm:e.algorithm,user:e.user,saveHelperData:e.saveToRequest,nonce:e.nonce,extraData:e.ext,appId:e.app,delegation:e.dlg,timestamp:e.timestamp}},ntlmAuth:function(e){return e&&{username:e.username,password:e.password,domain:e.domain,workstation:e.workstation,disableRetryRequest:e.disableRetryRequest}},oAuth2:function(e){return e&&{accessToken:e.accessToken,addTokenTo:e.addTokenTo,callBackUrl:e.callBackUrl,authUrl:e.authUrl,accessTokenUrl:e.accessTokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,clientAuth:e.clientAuth,grantType:e.grantType,scope:e.scope,username:e.username,password:e.password,tokenType:e.tokenType,redirectUri:e.redirectUri,refreshToken:e.refreshToken}},awsSigV4:function(e){return e}},authMappersFromCurrent:{apikeyAuth:function(e){return e&&{id:`apikey`,key:e.key,value:e.value,in:e.in}},basicAuth:function(e){return e&&{id:`basic`,username:e.username,password:e.password,saveToRequest:e.saveHelperData}},bearerAuth:function(e){return e&&{id:`bearer`,token:e.token}},digestAuth:function(e){return e&&{id:`digest`,algorithm:e.algorithm,username:e.username,realm:e.realm,password:e.password,nonce:e.nonce,nonceCount:e.nonceCount,clientNonce:e.clientNonce,opaque:e.opaque,qop:e.qop,disableRetryRequest:e.disableRetryRequest}},oAuth1:function(e){return e&&{id:`oAuth1`,consumerKey:e.consumerKey,consumerSecret:e.consumerSecret,token:e.token,tokenSecret:e.tokenSecret,signatureMethod:e.signatureMethod,timestamp:e.timeStamp||e.timestamp,nonce:e.nonce,version:e.version,realm:e.realm,header:e.addParamsToHeader,auto:e.autoAddParam,includeEmpty:e.addEmptyParamsToSign}},hawkAuth:function(e){return e&&{id:`hawk`,hawk_id:e.authId,hawk_key:e.authKey,algorithm:e.algorithm,user:e.user,saveToRequest:e.saveHelperData,nonce:e.nonce,ext:e.extraData,app:e.appId,dlg:e.delegation,timestamp:e.timestamp}},ntlmAuth:function(e){return e&&{id:`ntlm`,username:e.username,password:e.password,domain:e.domain,workstation:e.workstation,disableRetryRequest:e.disableRetryRequest}},oAuth2:function(e){return e&&{id:`oAuth2`,accessToken:e.accessToken,addTokenTo:e.addTokenTo,callBackUrl:e.callBackUrl,authUrl:e.authUrl,accessTokenUrl:e.accessTokenUrl,clientId:e.clientId,clientSecret:e.clientSecret,clientAuth:e.clientAuth,grantType:e.grantType,scope:e.scope,username:e.username,password:e.password,tokenType:e.tokenType,redirectUri:e.redirectUri,refreshToken:e.refreshToken}},awsSigV4:function(e){return e}},addProtocolProfileBehavior:function(e,t){var r=e&&e.protocolProfileBehavior;return n.isPlainObject(r)&&!n.isEmpty(r)?(t&&(t.protocolProfileBehavior=r),!0):!1}}})),lv=s((e=>{e.SCHEMA_V2_URL=`https://schema.getpostman.com/json/collection/v2.0.0/collection.json`,e.SCHEMA_V2_1_0_URL=`https://schema.getpostman.com/json/collection/v2.1.0/collection.json`,e.SCHEMA_V1_URL=`https://schema.getpostman.com/json/collection/v1.0.0/collection.json`,e.PREREQUEST_EXT=`_preRequestScript`,e.TESTS_EXT=`_tests`})),uv=s(((e,t)=>{var n=Q().noConflict(),r={fold:/\r\n([ \t])/g,trim:/^\s*(.*\S)?\s*$/,header:/^((\/\/\s*)?\S+):(.*)$/gm},i=`//`;t.exports={authMap:{apikeyAuth:`apikey`,basicAuth:`basic`,bearerAuth:`bearer`,digestAuth:`digest`,hawkAuth:`hawk`,oAuth1:`oauth1`,oAuth2:`oauth2`,ntlmAuth:`ntlm`,awsSigV4:`awsv4`,normal:null},parseHeaders:function(e,t){if(e){var a,o=[],s=!t,c=r.header.exec(e),l=t?`enabled`:`disabled`;for(e=e.toString().replace(r.fold,`$1`);c;)a={key:c[1],value:c[3].replace(r.trim,`$1`)},n.startsWith(a.key,i)&&(a[l]=s,a.key=a.key.replace(i,``).trim()),o.push(a),c=r.header.exec(e);return o}}}})),dv=s(((e,t)=>{var n=Q().noConflict(),r=lv(),i=uv(),a=cv(),o=`//`,s=Symbol(`_postman_isSubFolder`),c=function(e){this.options=e||{}},l=function(e,t){if(!(Array.isArray(e)&&e.length))return[];var r=[],i,o,s;for(i=0,o=e.length;i<o;i++)s=Object.assign({},e[i]),!n.isNil(s.key)&&(s.type===`file`&&!s.src&&s.value&&(s.src=n.isString(s.value)||n.isArray(s.value)?s.value:null,delete s.value),Object.prototype.hasOwnProperty.call(s,`enabled`)&&(s.enabled===!1&&(s.disabled=!0),delete s.enabled),a.cleanEmptyValue(s,`description`,t),r.push(s));return r};n.assign(c.prototype,{info:function(e){var t={_postman_id:e.id||a.uid(),name:e.name};return e.description?t.description=e.description:this.options.retainEmptyValues&&(t.description=null),t.schema=r.SCHEMA_V2_URL,t},variable:function(e,t){return a.handleVars(e,t)},url:function(e){var t=[],r=[],i={},o,s=this.options.retainIds,c=a.urlparse(e.url),l=this.options.retainEmptyValues;return n.forEach(e.queryParams,function(e){e.enabled===!1&&(e.disabled=!0),delete e.enabled,a.cleanEmptyValue(e,`description`,l),n.has(e,`equals`)&&(e.equals?e.value===null&&(e.value=``):e.value=e.value||null,o=!0,delete e.equals),t.push(e)}),n.size(t)||(t=c.query),n.forEach(e.pathVariableData,function(e){e=n.clone(e),a.cleanEmptyValue(e,`description`,l),!s&&e.id&&delete e.id,r.push(e),i[e.key]=!0}),n.forEach(e.pathVariables,function(e,t){!i[t]&&r.push({value:e,key:t})}),!n.isEmpty(t)&&(c.query=t),!n.isEmpty(r)&&(c.variable=r),o&&(c.raw=a.urlunparse(c)),c.query||c.variable?c:c.raw||(n.isNil(e.url)?void 0:String(e.url))},method:function(e){return e.method},header:function(e){if(n.isArray(e.headers))return e.headers;var t=[],r={},s=e.headerData||[],c=this.options.retainEmptyValues;return n.forEach(s,function(e){(n.startsWith(e.key,o)||e.enabled===!1)&&(e.disabled=!0,e.key=e.key.replace(o,``).trim()),a.cleanEmptyValue(e,`description`,c),delete e.enabled,t.push(e),r[e.key]=!0}),n.forEach(i.parseHeaders(e.headers),function(e){!r[e.key]&&t.push(e)}),t},body:function(e){var t={binary:`file`,graphql:`graphql`,params:`formdata`,raw:`raw`,urlencoded:`urlencoded`},r={},i,a,o=t[e.dataMode],s=this.options.retainEmptyValues,c={},u,d=n.isEmpty(e.data)&&n.isEmpty(e.rawModeData)&&n.isEmpty(e.graphqlModeData);if(!o&&d||e.dataMode===null)return s?null:void 0;if(n.isString(e.rawModeData)?i=e.rawModeData:Array.isArray(e.rawModeData)&&e.rawModeData.length===1&&n.isString(e.rawModeData[0])&&(i=e.rawModeData[0]),n.isEmpty(e.graphqlModeData)?e.dataOptions&&e.dataOptions.graphql!==void 0&&!n.isEmpty(e.data)&&(a=e.data):a=e.graphqlModeData,o?r.mode=o:!i&&Array.isArray(e.data||e.rawModeData)?r.mode=`formdata`:!i&&a?r.mode=`graphql`:r.mode=`raw`,r.mode===`raw`?i?r[r.mode]=i:n.isString(e.data)?r[r.mode]=e.data:r[r.mode]=``:r.mode===`graphql`?r[r.mode]=a:r.mode===`file`?r[r.mode]={src:i}:r[r.mode]=l(e.data||e.rawModeData,s),e.dataOptions){for(u in t)n.isEmpty(e.dataOptions[u])||(c[t[u]]=e.dataOptions[u]);!n.isEmpty(c)&&(r.options=c)}return e.dataDisabled?r.disabled=!0:s&&(r.disabled=!1),r},event:function(e){if(!e)return;let t=this.options.retainIds;if((a.notLegacy(e,`event`)||this.options.prioritizeV2)&&!n.isEmpty(e.events))return n.forEach(e.events,function(e){!e.listen&&(e.listen=`test`),!t&&e.id&&delete e.id,e.script&&(!t&&e.script.id&&delete e.script.id,!e.script.type&&(e.script.type=`text/javascript`),n.isString(e.script.exec)&&(e.script.exec=e.script.exec.split(`
|
|
543
543
|
`)))}),e.events;var r=[];return e.tests&&r.push({listen:`test`,script:{type:`text/javascript`,exec:n.isString(e.tests)?e.tests.split(`
|
|
544
544
|
`):e.tests}}),e.preRequestScript&&r.push({listen:`prerequest`,script:{type:`text/javascript`,exec:n.isString(e.preRequestScript)?e.preRequestScript.split(`
|
|
545
|
-
`):e.preRequestScript}}),r.length?r:void 0},auth:function(e,t){if(e){if((a.notLegacy(e,`auth`)||this.options.prioritizeV2)&&e.auth)return a.authArrayToMap(e,t);if(!(!e.currentHelper||e.currentHelper===null||e.currentHelper===`normal`)){var r,o=i.authMap[e.currentHelper]||e.currentHelper,s={type:o};if(n.isString(e.helperAttributes))try{e.helperAttributes=JSON.parse(e.helperAttributes)}catch{return}return e.helperAttributes&&a.authMappersFromLegacy[e.currentHelper]&&(r=a.authMappersFromLegacy[e.currentHelper](e.helperAttributes)),r&&(s[o]=r),s}}},request:function(e){var t=this,n={},r=t.options.retainEmptyValues;return[`auth`,`method`,`header`,`body`,`url`].forEach(function(r){n[r]=t[r](e)}),e.description?n.description=e.description:r&&(n.description=null),n},cookie:function(e){return{expires:new Date(e.expirationDate*1e3).toString(),hostOnly:e.hostOnly,httpOnly:e.httpOnly,domain:e.domain,path:e.path,secure:e.secure,session:e.session,value:e.value,key:e.name}},savedRequest:function(e){var t=this,r;if(e.requestObject)if(n.isString(e.requestObject))try{return JSON.parse(e.requestObject)}catch{r=e.requestObject}else return e.requestObject;if(e.request)if(n.isString(e.request))try{return JSON.parse(e.request)}catch{r=e.request}else return e.request;return r&&n.get(t,[`cache`,r])},singleResponse:function(e){var t={},r=this,i=r.savedRequest(e);return r.options.retainIds&&(t.id=e.id||a.uid()),t.name=e.name||`response`,t.originalRequest=i?r.request(i):void 0,t.status=e.responseCode&&e.responseCode.name||void 0,t.code=e.responseCode&&Number(e.responseCode.code)||void 0,t._postman_previewlanguage=e.language,t._postman_previewtype=e.previewType,t.header=e.headers,t.cookie=n.map(e.cookies,function(e){return r.cookie(e)}),t.responseTime=e.time,t.body=e.text,t},response:function(e){var t=this,r=n.get(e,`responses`,[]),i=n.keyBy(r,`id`),a=n.get(e,`responses_order`,[]);return a&&a.length||(a=n.map(r,`id`)),a=n.filter(a,function(e){return n.has(i,e)}),n.map(a,function(e){return t.singleResponse(i[e])})},singleItem:function(e){if(e){var t=this,n=t.options.retainIds,r=[`request`,`response`],i=t.variable(e,t.options),o={name:e.name||``,event:t.event(e)};return n&&(o.id=e.id||a.uid()),a.addProtocolProfileBehavior(e,o),r.forEach(function(n){o[n]=t[n](e)}),i&&i.length&&(o.variable=i),o}},itemGroups:function(e){var t=this,r=[],i={},o=t.options.retainEmptyValues;return i=n.reduce(e.folders,function(e,n){if(!n)return e;var r=t.options.retainIds,i=t.auth(n),s=t.event(n),c=t.variable(n,t.options),l={name:n.name,item:[]};return r&&(l.id=n.id||a.uid()),n.description?l.description=n.description:o&&(l.description=null),(i||i===null)&&(l.auth=i),s&&(l.event=s),c&&c.length&&(l.variable=c),a.addProtocolProfileBehavior(n,l),e[n.id]=l,e},{}),n.forEach(e.folders,function(e){if(e){var r=i[e.id],a=e.folders_order&&e.folders_order.length,o=e.order&&e.order.length;a&&n.forEach(e.folders_order,function(e){i[e]&&(i[e][s]=!0,r.item.push(i[e]))}),o&&n.forEach(e.order,function(e){t.cache[e]&&r.item.push(t.singleItem(t.cache[e]))})}}),n.forEach(n.uniq(e.folders_order||n.map(e.folders,`id`)),function(e){var t=i[e];t&&!n.get(t,s)&&r.push(t)}),t.itemGroupCache=i,n.compact(r)},item:function(e){var t=this,r=n.keyBy(e.requests,`id`),i=n.map(e.requests,`id`),a;return t.cache=r,a=t.itemGroups(e),n.forEach(n.intersection(e.order,i),function(e){var n=t.singleItem(r[e]);n&&a.push(n)}),a}}),t.exports={input:`1.0.0`,output:`2.0.0`,Builders:c,convertSingle:function(e,t,r){var i=new c(t),a,o;try{a=i.singleItem(n.cloneDeep(e))}catch(e){o=e}if(r)return r(o,a);if(o)throw o;return a},convertResponse:function(e,t,r){var i=new c(t),a,o;try{a=i.singleResponse(n.cloneDeep(e))}catch(e){o=e}if(r)return r(o,a);if(o)throw o;return a},convert:function(e,t,r){e=n.cloneDeep(e);var i,o,s,l={},u=[`info`,`item`],d=new c(t),f={excludeNoauth:!0},p=t&&{fallback:t.env,...t};try{u.forEach(function(t){l[t]=d[t](e)}),(i=d.auth(e,f))&&(l.auth=i),(o=d.event(e))&&(l.event=o),(s=d.variable(e,p))&&(l.variable=s),a.addProtocolProfileBehavior(e,l)}catch(e){if(r)return r(e,null);throw e}return r?r(null,l):l}}})),
|
|
545
|
+
`):e.preRequestScript}}),r.length?r:void 0},auth:function(e,t){if(e){if((a.notLegacy(e,`auth`)||this.options.prioritizeV2)&&e.auth)return a.authArrayToMap(e,t);if(!(!e.currentHelper||e.currentHelper===null||e.currentHelper===`normal`)){var r,o=i.authMap[e.currentHelper]||e.currentHelper,s={type:o};if(n.isString(e.helperAttributes))try{e.helperAttributes=JSON.parse(e.helperAttributes)}catch{return}return e.helperAttributes&&a.authMappersFromLegacy[e.currentHelper]&&(r=a.authMappersFromLegacy[e.currentHelper](e.helperAttributes)),r&&(s[o]=r),s}}},request:function(e){var t=this,n={},r=t.options.retainEmptyValues;return[`auth`,`method`,`header`,`body`,`url`].forEach(function(r){n[r]=t[r](e)}),e.description?n.description=e.description:r&&(n.description=null),n},cookie:function(e){return{expires:new Date(e.expirationDate*1e3).toString(),hostOnly:e.hostOnly,httpOnly:e.httpOnly,domain:e.domain,path:e.path,secure:e.secure,session:e.session,value:e.value,key:e.name}},savedRequest:function(e){var t=this,r;if(e.requestObject)if(n.isString(e.requestObject))try{return JSON.parse(e.requestObject)}catch{r=e.requestObject}else return e.requestObject;if(e.request)if(n.isString(e.request))try{return JSON.parse(e.request)}catch{r=e.request}else return e.request;return r&&n.get(t,[`cache`,r])},singleResponse:function(e){var t={},r=this,i=r.savedRequest(e);return r.options.retainIds&&(t.id=e.id||a.uid()),t.name=e.name||`response`,t.originalRequest=i?r.request(i):void 0,t.status=e.responseCode&&e.responseCode.name||void 0,t.code=e.responseCode&&Number(e.responseCode.code)||void 0,t._postman_previewlanguage=e.language,t._postman_previewtype=e.previewType,t.header=e.headers,t.cookie=n.map(e.cookies,function(e){return r.cookie(e)}),t.responseTime=e.time,t.body=e.text,t},response:function(e){var t=this,r=n.get(e,`responses`,[]),i=n.keyBy(r,`id`),a=n.get(e,`responses_order`,[]);return a&&a.length||(a=n.map(r,`id`)),a=n.filter(a,function(e){return n.has(i,e)}),n.map(a,function(e){return t.singleResponse(i[e])})},singleItem:function(e){if(e){var t=this,n=t.options.retainIds,r=[`request`,`response`],i=t.variable(e,t.options),o={name:e.name||``,event:t.event(e)};return n&&(o.id=e.id||a.uid()),a.addProtocolProfileBehavior(e,o),r.forEach(function(n){o[n]=t[n](e)}),i&&i.length&&(o.variable=i),o}},itemGroups:function(e){var t=this,r=[],i={},o=t.options.retainEmptyValues;return i=n.reduce(e.folders,function(e,n){if(!n)return e;var r=t.options.retainIds,i=t.auth(n),s=t.event(n),c=t.variable(n,t.options),l={name:n.name,item:[]};return r&&(l.id=n.id||a.uid()),n.description?l.description=n.description:o&&(l.description=null),(i||i===null)&&(l.auth=i),s&&(l.event=s),c&&c.length&&(l.variable=c),a.addProtocolProfileBehavior(n,l),e[n.id]=l,e},{}),n.forEach(e.folders,function(e){if(e){var r=i[e.id],a=e.folders_order&&e.folders_order.length,o=e.order&&e.order.length;a&&n.forEach(e.folders_order,function(e){i[e]&&(i[e][s]=!0,r.item.push(i[e]))}),o&&n.forEach(e.order,function(e){t.cache[e]&&r.item.push(t.singleItem(t.cache[e]))})}}),n.forEach(n.uniq(e.folders_order||n.map(e.folders,`id`)),function(e){var t=i[e];t&&!n.get(t,s)&&r.push(t)}),t.itemGroupCache=i,n.compact(r)},item:function(e){var t=this,r=n.keyBy(e.requests,`id`),i=n.map(e.requests,`id`),a;return t.cache=r,a=t.itemGroups(e),n.forEach(n.intersection(e.order,i),function(e){var n=t.singleItem(r[e]);n&&a.push(n)}),a}}),t.exports={input:`1.0.0`,output:`2.0.0`,Builders:c,convertSingle:function(e,t,r){var i=new c(t),a,o;try{a=i.singleItem(n.cloneDeep(e))}catch(e){o=e}if(r)return r(o,a);if(o)throw o;return a},convertResponse:function(e,t,r){var i=new c(t),a,o;try{a=i.singleResponse(n.cloneDeep(e))}catch(e){o=e}if(r)return r(o,a);if(o)throw o;return a},convert:function(e,t,r){e=n.cloneDeep(e);var i,o,s,l={},u=[`info`,`item`],d=new c(t),f={excludeNoauth:!0},p=t&&{fallback:t.env,...t};try{u.forEach(function(t){l[t]=d[t](e)}),(i=d.auth(e,f))&&(l.auth=i),(o=d.event(e))&&(l.event=o),(s=d.variable(e,p))&&(l.variable=s),a.addProtocolProfileBehavior(e,l)}catch(e){if(r)return r(e,null);throw e}return r?r(null,l):l}}})),fv=s(((e,t)=>{var n=Bu(),r=Q().noConflict(),i=sv(),a=cv(),o=lv(),s=dv().Builders,c;n(c=function(){c.super_.apply(this,arguments)},s),r.assign(c.prototype,{info:function(e){var t=c.super_.prototype.info.call(this,e);return t.schema=o.SCHEMA_V2_1_0_URL,t},url:function(e){var t=c.super_.prototype.url.call(this,e);return r.isString(t)?i.parse(t):t},auth:function(e,t){if(a.notLegacy(e,`auth`)&&e.currentHelper)return a.sanitizeAuthArray(e,t);var n=c.super_.prototype.auth.call(this,e,t);return a.authMapToArray({auth:n},t)}}),t.exports={input:`1.0.0`,output:`2.1.0`,Builders:c,convertSingle:function(e,t,n){var i,a,o=new c(t);try{a=o.singleItem(r.cloneDeep(e))}catch(e){i=e}if(n)return n(i,a);if(i)throw i;return a},convertResponse:function(e,t,n){var i,a,o=new c(t);try{a=o.singleResponse(r.cloneDeep(e))}catch(e){i=e}if(n)return n(i,a);if(i)throw i;return a},convert:function(e,t,n){e=r.cloneDeep(e);var i,o,s,l={},u=[`info`,`item`],d=new c(t),f={excludeNoauth:!0},p=t&&{fallback:t.env,...t};try{u.forEach(function(t){l[t]=d[t](e)}),(i=d.auth(e,f))&&(l.auth=i),(o=d.event(e))&&(l.event=o),(s=d.variable(e,p))&&(l.variable=s),a.addProtocolProfileBehavior(e,l)}catch(e){if(n)return n(e);throw e}return n?n(null,l):l}}})),pv=s(((e,t)=>{var n=Q().noConflict(),r=cv(),i=function(e){if(e){e._postman_id&&(e.id=e._postman_id,delete e._postman_id),!e.id&&(e.id=r.uid()),e.response&&e.response.length&&n.forEach(e.response,i),e.responses&&e.responses.length&&n.forEach(e.responses,i);var t=e.items||e.item;return t&&t.length&&n.forEach(t,i),e}};t.exports={authMap:{apikey:`apikeyAuth`,basic:`basicAuth`,bearer:`bearerAuth`,digest:`digestAuth`,hawk:`hawkAuth`,oauth1:`oAuth1`,oauth2:`oAuth2`,ntlm:`ntlmAuth`,awsv4:`awsSigV4`,noauth:null},modeMap:{file:`binary`,formdata:`params`,graphql:`graphql`,raw:`raw`,urlencoded:`urlencoded`},populateIds:i}})),mv=s(((e,t)=>{var n=Q().noConflict(),r=cv(),i=pv(),a=function(e){this.options=e||{}};n.assign(a.prototype,{auth:function(e,t){return r.authMapToArray(e,t)},events:function(e){var t=e.events||e.event;if(n.isArray(t))return n.forEach(t,function(e){!e.listen&&(e.listen=`test`),e.script&&(!e.script.type&&(e.script.type=`text/javascript`),n.isString(e.script.exec)&&(e.script.exec=e.script.exec.split(`
|
|
546
546
|
`)))}),t},variables:function(e,t){return r.handleVars(e,t)},extractFolderItems:function(e){if(e){var t,r=this,i=[],a=e.item||e.items;for(!n.isArray(a)&&(a=[a]),t=0;t<a.length;t++)a[t]&&(a[t].items||a[t].item)&&(i.push(a[t]),i=[].concat(i,r.extractFolderItems(a[t])));return i}},extractItems:function(e){if(e){var t,r=this,i=[],a,o=e.item||e.items;for(!n.isArray(o)&&(o=[o]),t=0;t<o.length;t++)a=o[t]&&(o[t].items||o[t].item),o[t]&&(a?i=[].concat(i,r.extractItems(o[t])):i.push(o[t]));return i}},headers:function(e){if(e&&e.request)return n.map(e.request.headers||e.request.header,function(e){return(e.disabled?`// `:``)+e.key+`: `+e.value}).join(`
|
|
547
547
|
`)},dataMode:function(e){return i.modeMap[n.get(e,`request.body.mode`)]},data:function(e){var t=this,r=n.get(e,`request.body.mode`),i=this.options.retainEmptyValues;return r===`raw`||r===`file`||r===`graphql`||!r?i?null:void 0:n.map(e.request.body[r],function(e){return e&&e.type===`file`&&n.has(e,`src`)&&(e.value=n.isString(e.src)||n.isArray(e.src)?e.src:null,delete e.src),e.description=t.description(e.description),n.has(e,`disabled`)&&(e.enabled=!e.disabled),delete e.disabled,e})},rawModeData:function(e){var t=n.get(e,`request.body.mode`);return t===`raw`?e.request.body.raw:t===`file`?n.get(e.request.body,`file.src`):this.options.retainEmptyValues?null:void 0},graphqlModeData:function(e){return n.get(e,`request.body.mode`)===`graphql`?e.request.body.graphql:this.options.retainEmptyValues?null:void 0},dataOptions:function(e){var t=n.get(e,`request.body.options`),r={},a;if(t){for(a in i.modeMap)n.isEmpty(t[a])||(r[i.modeMap[a]]=t[a]);return n.isEmpty(r)?void 0:r}},pathVariables:function(e){var t=n.get(e,`request.url.variables`)||n.get(e,`request.url.variable`);if(t)return n.transform(t,function(e,t){e[t.key||t.id]=t.value},{})},url:function(e){var t=n.get(e,`request.url`);return n.isString(t)?t:t?r.urlunparse(t):``},tests:function(e){var t=e.events||e.event,r;if(t)return r=n.filter(t,{listen:`test`}),n.map(r,function(e){var t=n.get(e,`script.exec`);return n.isArray(t)&&(t=t.join(`
|
|
548
548
|
`)),t}).join(`
|
|
549
549
|
`)},preRequestScript:function(e){var t=e.events||e.event,r;if(t)return r=n.filter(t,{listen:`prerequest`}),n.map(r,function(e){var t=n.get(e,`script.exec`);return n.isArray(t)&&(t=t.join(`
|
|
550
550
|
`)),t}).join(`
|
|
551
|
-
`)},cookie:function(e){return{expirationDate:e.expires,hostOnly:e.hostOnly,httpOnly:e.httpOnly,domain:e.domain,path:e.path,secure:e.secure,session:e.session,value:e.value,name:e.key||e.name}},response:function(e){var t=this,i={},a=t.options.handlePartial,o=e.id||e._postman_id,s=e.originalRequest||e.request;i.request=s?t.request({request:s},void 0,!0):void 0;try{i.request&&(i.requestObject=JSON.stringify(i.request))}catch{}return i.id=o||r.uid(),i.name=e.name,i.status=e.status,i.responseCode={code:e.code,name:e.status,detail:``},i.language=e._postman_previewlanguage||n.get(e,`_.postman_previewlanguage`)||`Text`,i.previewType=e._postman_previewtype||n.get(e,`_.postman_previewtype`)||`html`,i.time=e.responseTime,i.headers=e.headers||e.header,i.cookies=n.map(e.cookies||e.cookie,t.cookie),i.text=e.body,i.rawDataType=`text`,a&&(!(e.code||e.status)&&(i.responseCode=void 0),e.cookies===void 0&&(i.cookies=void 0),e.body===void 0&&(i.rawDataType=i.language=i.previewType=void 0)),i},responses:function(e){var t=this,r=e.responses||e.response;if(r)return n.map(r,function(n){return t.response(n,e)})},responses_order:function(e){var t=e.responses||e.response;return t?n.map(t,`id`):[]},request:function(e,t,a){if(e){var o=[`headers`,`dataMode`,`data`,`rawModeData`,`graphqlModeData`,`pathVariables`,`tests`,`preRequestScript`,`url`,`dataOptions`],s=this,c,l,u,d,f=e&&e.request,p=f&&f.auth,m=s.auth(f),h=s.events(e),g=s.variables(e,{retainIds:s.options.retainIds}),_=f&&f.url,v=s.options.retainEmptyValues,y=s.options.handlePartial,b=n.isString(_)?r.urlparse(_):_,x=f&&(f.headers||f.header),S=b&&(b.variables||b.variable);return a||(o.push(`responses`),o.push(`responses_order`)),p&&p.type?(u=i.authMap[p.type],r.authMappersFromCurrent[u]?(n.isArray(p[p.type])&&(p=r.authArrayToMap(f)),d=r.authMappersFromCurrent[u](p[p.type])):d=null):p===null&&(u=null,d=null),c={id:e.id||e._postman_id||r.uid(),name:e.name,collectionId:t,method:e.request?e.request.method:void 0,currentHelper:u,helperAttributes:d},r.addProtocolProfileBehavior(e,c),f&&f.body&&n.has(f.body,`disabled`)&&(f.body.disabled||v)&&(c.dataDisabled=!!f.body.disabled),l=e.request&&s.description(e.request.description),l?c.description=l:v&&(c.description=null),(m||m===null)&&(c.auth=m),h&&h.length&&(c.events=h),g&&g.length&&(c.variables=g),n.forEach(o,function(t){c[t]=s[t](e)}),b&&(c.pathVariableData=n.map(S,function(e){var t={key:e.key||e.id,value:e.value};return e.description?t.description=s.description(e.description):v&&(t.description=null),t})),b&&(c.queryParams=n.map(b.query,function(e){return e.description=s.description(e.description),n.has(e,`disabled`)&&(e.enabled=!e.disabled),delete e.disabled,e})),c.headerData=n.map(x,function(e){return e.description=s.description(e.description),n.has(e,`disabled`)&&(e.enabled=!e.disabled),delete e.disabled,e}),y&&(x===void 0&&(c.headers=c.headerData=void 0),e.responses===void 0&&(c.responses=c.responses_order=void 0),_===void 0&&(c.url=c.pathVariableData=c.queryParams=void 0)),c}},requests:function(e){var t=this,r=[],i=e&&e.info,a=i&&(i.id||i._postman_id)||e.id;return n.forEach(t.extractItems(e),function(e){var n=t.request(e,a);r.push(n)}),r},order:function(e){var t=e.items||e.item,r=n.isArray(t)?t:[t];return n.filter(n.map(r,function(e){if(e&&!(e.items||e.item))return e.id||e._postman_id}))},folders_order:function(e){var t=e.items||e.item,r=n.isArray(t)?t:[t];return n.filter(n.map(r,function(e){if(e&&(e.items||e.item))return e.id||e._postman_id}))},folders:function(e){var t=this,i=t.options.retainEmptyValues;return n.map(t.extractFolderItems(e),function(e){if(e){var a=e.items||e.item,o=t.description(e.description),s=t.auth(e),c=t.events(e),l=t.variables(e,{retainIds:t.options.retainIds}),u={id:e.id||e._postman_id||r.uid(),name:e.name,order:n.filter(n.map(a,function(e){if(e)return!(e.items||e.item)&&(e.id||e._postman_id)})),folders_order:t.folders_order(e)};return(s&&s.type||s===null)&&(u.auth=s),c&&c.length&&(u.events=c),l&&l.length&&(u.variables=l),r.addProtocolProfileBehavior(e,u),o?u.description=o:i&&(u.description=null),u}})},description:function(e){var t,r=this.options.retainEmptyValues;if(t=n.isObject(e)?e.content:e,t)return t;if(r)return null}}),t.exports={input:`2.0.0`,output:`1.0.0`,Builders:a,convertSingle:function(e,t,r){var o=new a(t),s=n.cloneDeep(e),c,l;try{s=i.populateIds(s),c=o.request(s)}catch(e){l=e}if(r)return r(l,c);if(l)throw l;return c},convertResponse:function(e,t,r){var i=new a(t),o,s;try{o=i.response(n.cloneDeep(e))}catch(e){s=e}if(r)return r(s,o);if(s)throw s;return o},convert:function(e,t,o){e=n.cloneDeep(e);var s,c,l,u=new a(t),d={excludeNoauth:!0},f=t&&{fallback:t.env,retainIds:t.retainIds},p=[`order`,`folders_order`,`folders`,`requests`],m=n.get(e,`info._postman_id`)||n.get(e,`info.id`),h=e&&e.info,g={id:m&&t&&t.retainIds?m:r.uid(),name:h&&h.name};e=i.populateIds(e);try{g.description=u.description(h&&h.description),(s=u.auth(e,d))&&(g.auth=s),(c=u.events(e))&&(g.events=c),(l=u.variables(e,f))&&(g.variables=l),r.addProtocolProfileBehavior(e,g),p.forEach(function(t){g[t]=u[t](e)})}catch(e){if(o)return o(e,null);throw e}return t&&t.handlePartial&&!e.item&&(g.requests=g.folders=g.folders_order=g.order=void 0),o?o(null,g):g}}})),
|
|
551
|
+
`)},cookie:function(e){return{expirationDate:e.expires,hostOnly:e.hostOnly,httpOnly:e.httpOnly,domain:e.domain,path:e.path,secure:e.secure,session:e.session,value:e.value,name:e.key||e.name}},response:function(e){var t=this,i={},a=t.options.handlePartial,o=e.id||e._postman_id,s=e.originalRequest||e.request;i.request=s?t.request({request:s},void 0,!0):void 0;try{i.request&&(i.requestObject=JSON.stringify(i.request))}catch{}return i.id=o||r.uid(),i.name=e.name,i.status=e.status,i.responseCode={code:e.code,name:e.status,detail:``},i.language=e._postman_previewlanguage||n.get(e,`_.postman_previewlanguage`)||`Text`,i.previewType=e._postman_previewtype||n.get(e,`_.postman_previewtype`)||`html`,i.time=e.responseTime,i.headers=e.headers||e.header,i.cookies=n.map(e.cookies||e.cookie,t.cookie),i.text=e.body,i.rawDataType=`text`,a&&(!(e.code||e.status)&&(i.responseCode=void 0),e.cookies===void 0&&(i.cookies=void 0),e.body===void 0&&(i.rawDataType=i.language=i.previewType=void 0)),i},responses:function(e){var t=this,r=e.responses||e.response;if(r)return n.map(r,function(n){return t.response(n,e)})},responses_order:function(e){var t=e.responses||e.response;return t?n.map(t,`id`):[]},request:function(e,t,a){if(e){var o=[`headers`,`dataMode`,`data`,`rawModeData`,`graphqlModeData`,`pathVariables`,`tests`,`preRequestScript`,`url`,`dataOptions`],s=this,c,l,u,d,f=e&&e.request,p=f&&f.auth,m=s.auth(f),h=s.events(e),g=s.variables(e,{retainIds:s.options.retainIds}),_=f&&f.url,v=s.options.retainEmptyValues,y=s.options.handlePartial,b=n.isString(_)?r.urlparse(_):_,x=f&&(f.headers||f.header),S=b&&(b.variables||b.variable);return a||(o.push(`responses`),o.push(`responses_order`)),p&&p.type?(u=i.authMap[p.type],r.authMappersFromCurrent[u]?(n.isArray(p[p.type])&&(p=r.authArrayToMap(f)),d=r.authMappersFromCurrent[u](p[p.type])):d=null):p===null&&(u=null,d=null),c={id:e.id||e._postman_id||r.uid(),name:e.name,collectionId:t,method:e.request?e.request.method:void 0,currentHelper:u,helperAttributes:d},r.addProtocolProfileBehavior(e,c),f&&f.body&&n.has(f.body,`disabled`)&&(f.body.disabled||v)&&(c.dataDisabled=!!f.body.disabled),l=e.request&&s.description(e.request.description),l?c.description=l:v&&(c.description=null),(m||m===null)&&(c.auth=m),h&&h.length&&(c.events=h),g&&g.length&&(c.variables=g),n.forEach(o,function(t){c[t]=s[t](e)}),b&&(c.pathVariableData=n.map(S,function(e){var t={key:e.key||e.id,value:e.value};return e.description?t.description=s.description(e.description):v&&(t.description=null),t})),b&&(c.queryParams=n.map(b.query,function(e){return e.description=s.description(e.description),n.has(e,`disabled`)&&(e.enabled=!e.disabled),delete e.disabled,e})),c.headerData=n.map(x,function(e){return e.description=s.description(e.description),n.has(e,`disabled`)&&(e.enabled=!e.disabled),delete e.disabled,e}),y&&(x===void 0&&(c.headers=c.headerData=void 0),e.responses===void 0&&(c.responses=c.responses_order=void 0),_===void 0&&(c.url=c.pathVariableData=c.queryParams=void 0)),c}},requests:function(e){var t=this,r=[],i=e&&e.info,a=i&&(i.id||i._postman_id)||e.id;return n.forEach(t.extractItems(e),function(e){var n=t.request(e,a);r.push(n)}),r},order:function(e){var t=e.items||e.item,r=n.isArray(t)?t:[t];return n.filter(n.map(r,function(e){if(e&&!(e.items||e.item))return e.id||e._postman_id}))},folders_order:function(e){var t=e.items||e.item,r=n.isArray(t)?t:[t];return n.filter(n.map(r,function(e){if(e&&(e.items||e.item))return e.id||e._postman_id}))},folders:function(e){var t=this,i=t.options.retainEmptyValues;return n.map(t.extractFolderItems(e),function(e){if(e){var a=e.items||e.item,o=t.description(e.description),s=t.auth(e),c=t.events(e),l=t.variables(e,{retainIds:t.options.retainIds}),u={id:e.id||e._postman_id||r.uid(),name:e.name,order:n.filter(n.map(a,function(e){if(e)return!(e.items||e.item)&&(e.id||e._postman_id)})),folders_order:t.folders_order(e)};return(s&&s.type||s===null)&&(u.auth=s),c&&c.length&&(u.events=c),l&&l.length&&(u.variables=l),r.addProtocolProfileBehavior(e,u),o?u.description=o:i&&(u.description=null),u}})},description:function(e){var t,r=this.options.retainEmptyValues;if(t=n.isObject(e)?e.content:e,t)return t;if(r)return null}}),t.exports={input:`2.0.0`,output:`1.0.0`,Builders:a,convertSingle:function(e,t,r){var o=new a(t),s=n.cloneDeep(e),c,l;try{s=i.populateIds(s),c=o.request(s)}catch(e){l=e}if(r)return r(l,c);if(l)throw l;return c},convertResponse:function(e,t,r){var i=new a(t),o,s;try{o=i.response(n.cloneDeep(e))}catch(e){s=e}if(r)return r(s,o);if(s)throw s;return o},convert:function(e,t,o){e=n.cloneDeep(e);var s,c,l,u=new a(t),d={excludeNoauth:!0},f=t&&{fallback:t.env,retainIds:t.retainIds},p=[`order`,`folders_order`,`folders`,`requests`],m=n.get(e,`info._postman_id`)||n.get(e,`info.id`),h=e&&e.info,g={id:m&&t&&t.retainIds?m:r.uid(),name:h&&h.name};e=i.populateIds(e);try{g.description=u.description(h&&h.description),(s=u.auth(e,d))&&(g.auth=s),(c=u.events(e))&&(g.events=c),(l=u.variables(e,f))&&(g.variables=l),r.addProtocolProfileBehavior(e,g),p.forEach(function(t){g[t]=u[t](e)})}catch(e){if(o)return o(e,null);throw e}return t&&t.handlePartial&&!e.item&&(g.requests=g.folders=g.folders_order=g.order=void 0),o?o(null,g):g}}})),hv=s(((e,t)=>{var n=Q().noConflict(),r=cv(),i=Bu(),a=pv(),o=mv().Builders,s;i(s=function(){s.super_.apply(this,arguments)},o),n.assign(s.prototype,{auth:function(e,t){return r.sanitizeAuthArray(e,t)}}),t.exports={input:`2.1.0`,output:`1.0.0`,Builders:s,convertSingle:function(e,t,r){var i,o,c=n.cloneDeep(e),l=new s(t);try{c=a.populateIds(c),o=l.request(c)}catch(e){i=e}if(r)return r(i,o);if(i)throw i;return o},convertResponse:function(e,t,r){var i=new s(t),a,o;try{a=i.response(n.cloneDeep(e))}catch(e){o=e}if(r)return r(o,a);if(o)throw o;return a},convert:function(e,t,i){e=n.cloneDeep(e);var o,c,l,u=new s(t),d={excludeNoauth:!0},f=[`order`,`folders_order`,`folders`,`requests`],p=t&&{fallback:t.env,retainIds:t.retainIds},m=n.get(e,`info._postman_id`)||n.get(e,`info.id`),h=e&&e.info,g={id:m&&t&&t.retainIds?m:r.uid(),name:h&&h.name};e=a.populateIds(e);try{g.description=u.description(h&&h.description),(o=u.auth(e,d))&&(g.auth=o),(c=u.events(e))&&(g.events=c),(l=u.variables(e,p))&&(g.variables=l),r.addProtocolProfileBehavior(e,g),f.forEach(function(t){g[t]=u[t](e)})}catch(e){if(i)return i(e,null);throw e}return i?i(null,g):g}}})),gv=s(((e,t)=>{var n=qo(),r=`function`,i=function(e){var t;if(e?n.valid(e.input)?n.valid(e.output)?typeof e.convert===r?typeof e.convertSingle!==r&&(t=`convertSingle function is not defined`):t=`convert function is not defined`:t=`output version support for converter is invalid`:t=`input version support for converter is invalid`:t=`invalid definition of converter`,n.satisfies(e.input,e.output)&&(t=`input version `+e.input+` matches output version `+e.output+` for converter`),t)throw Error(t);return e};t.exports={converters:{"converter-v1-to-v2":dv(),"converter-v1-to-v21":fv(),"converter-v2-to-v1":mv(),"converter-v21-to-v1":hv()},getConverter:function(e,t){for(var r in e=n.clean(e),t=n.clean(t),this.converters)if(r=this.converters.hasOwnProperty(r)&&this.converters[r],r&&n.eq(r.input,e)&&n.eq(r.output,t))return i(r)},convert:function(e,t,n){var r=this.getConverter(t.inputVersion,t.outputVersion);return r?r.convert(e,t,n):n(Error(`no conversion path found`))},convertSingle:function(e,t,n){var r=this.getConverter(t.inputVersion,t.outputVersion);return r?r.convertSingle(e,t,n):n(Error(`no conversion path found`))},convertResponse:function(e,t,n){var r=this.getConverter(t.inputVersion,t.outputVersion);return r?r.convertResponse(e,t,n):n(Error(`no conversion path found`))},builder:function(e){return this.getConverter(e.inputVersion,e.outputVersion).create(e)}}})),_v=s(((e,t)=>{var n=Q().noConflict(),r=uv(),i=pv(),a=cv(),o=sv(),s=function(e){this.options=e||{}},c=function(e,t,r){return{listen:t,script:{type:`text/javascript`,exec:n.isString(e[r])?e[r].split(`
|
|
552
552
|
`):e[r]}}},l={apikey:`apikeyAuth`,awsSigV4:`awsSigV4`,basic:`basicAuth`,bearer:`bearerAuth`,digest:`digestAuth`,hawk:`hawkAuth`,ntlm:`ntlmAuth`,oAuth1:`oAuth1`,oAuth2:`oAuth2`},u=function(e,t,r){var i=n.get(r,`retainEmptyValues`);return n.has(e,`description`)&&(e.description=t.description(e.description)),a.cleanEmptyValue(e,`description`,i),e};n.assign(s.prototype,{auth:function(e,t){if(e){var n,i,o,s,c,u=this.options.prioritizeV2;if(a.notLegacy(e,`auth`)||e.auth&&u)return a.sanitizeAuthArray(e,t);if(e.currentHelper===null||e.currentHelper===`normal`)return null;if(s=e.currentHelper,c=e.helperAttributes,s||this.options.noDefaults)return s&&!c?this.options.noDefaults?void 0:null:(!s&&(s=l[c&&c.id]),n={type:r.authMap[s]},o=a.authMappersFromLegacy[s],o&&c&&(i=o(c))&&(n[n.type]=i),a.authMapToArray({auth:n},t))}},events:function(e){if(e){if((a.notLegacy(e,`event`)||this.options.prioritizeV2)&&!n.isEmpty(e.events))return n.forEach(e.events,function(e){!e.listen&&(e.listen=`test`),e.script&&(!e.script.type&&(e.script.type=`text/javascript`),n.isString(e.script.exec)&&(e.script.exec=e.script.exec.split(`
|
|
553
553
|
`)))}),e.events;var t=[];if(e.preRequestScript&&t.push(c(e,`prerequest`,`preRequestScript`)),e.tests&&t.push(c(e,`test`,`tests`)),t.length)return t;if(e.events===null)return null}},variables:function(e,t){var r=this,i=a.handleVars(e,t||this.options);if(i=n.map(i,function(e){return u(e,r,t||r.options)}),i.length)return i},data:function(e){if(e){var t=this,r=e.dataMode,i=this.options.noDefaults,a=this.options.retainEmptyValues;if((!r||r===`binary`)&&!i)return a?[]:void 0;if(e.data)return n.isArray(e.data)&&n.forEach(e.data,function(e){e.type===`file`&&(n.has(e,`value`)||!i)&&(e.value=n.isString(e.value)||n.isArray(e.value)?e.value:null),u(e,t,t.options)}),e.data}},headerData:function(e){var t=this,i;if(e){if(e.headers&&n.isEmpty(e.headerData))return r.parseHeaders(e.headers,!0);if(i=n.map(e.headerData,function(e){return u(e,t,t.options)}),i.length)return i}},queryParams:function(e){if(e){var t=this,r,i;if(!e.queryParams)return e.url&&(i=o.parse(e.url))&&i.query;if(r=n.map(e.queryParams,function(e){return u(e,t,t.options)}),r.length)return r}},pathVariableData:function(e,t){var r=this,i=a.handleVars(e,t,{isV1:!0});if(i=n.map(i,function(e){return u(e,r,r.options)}),i.length)return i},request:function(e,t,r){if(e){var o,s,c,d,f,p,m=this,h,g,_=this.options,v=_.noDefaults,y=_.retainEmptyValues,b={noDefaults:_.noDefaults,retainIds:_.retainIds},x=[`queryParams`,`pathVariableData`,`headerData`,`data`];return r||(x.push(`responses`),x.push(`responses_order`)),!(_.retainIds&&e.id||_.noDefaults)&&(e.id=a.uid()),u(e,m,m.options),x.forEach(function(t){var n=m[t](e,m.options);n&&(e[t]=n)}),e.dataDisabled?e.dataDisabled=!0:y?e.dataDisabled=!1:delete e.dataDisabled,!a.addProtocolProfileBehavior(e)&&delete e.protocolProfileBehavior,t&&!v&&(e.collectionId=t),n.has(e,`currentHelper`)&&(e.currentHelper===`normal`&&(e.currentHelper=null),e.currentHelper||(e.currentHelper!==null&&(e.currentHelper=null),e.helperAttributes=null)),s=m.auth(e),s?(e.auth=s,n.has(e,`helperAttributes`)&&!e.currentHelper&&(e.currentHelper=l[s.type])):s===null?e.auth=e.currentHelper=e.helperAttributes=null:delete e.auth,d=m.events(e),d||d===null?e.events=d:delete e.events,p=m.variables(e,b),p?e.variables=p:delete e.variables,e.auth&&(a.notLegacy(e,`auth`)||_.prioritizeV2)&&(e.currentHelper=i.authMap[e.auth.type],e.currentHelper===null&&(e.helperAttributes=null),f=a.authMappersFromCurrent[e.currentHelper],f&&((o=a.authArrayToMap(e))&&(h=f(o[e.auth.type])),h&&(e.helperAttributes=h))),e.events&&(a.notLegacy(e,`event`)||_.prioritizeV2)&&(c=g=``,n.forEach(e.events,function(e){var t=e&&e.script&&e.script.exec;n.isArray(t)&&(e.listen===`prerequest`?g+=t.join(`
|
|
554
554
|
`):e.listen===`test`&&(c+=t.join(`
|
|
555
|
-
`)))}),e.preRequestScript=g||null,e.tests=c||null),[`preRequestScript`,`tests`].forEach(function(t){n.has(e,t)&&!e[t]&&e[t]!==null&&delete e[t]}),e}},response:function(e){var t=this;return!(t.options.retainIds&&e.id||t.options.noDefaults)&&(e.id=a.uid()),e.request=t.request(e.request,void 0,!0),!e.language&&(e.language=`Text`),!e.previewType&&(e.previewType=`html`),n.isEmpty(e.cookies)&&delete e.cookies,e},responses:function(e){if(!n.isEmpty(e&&e.responses)){var t=this;return e.responses.forEach(function(e){t.response(e)}),e.responses}},order:function(e){return!this.options.noDefaults&&n.compact(e&&e.order)},folders_order:function(e){return!this.options.noDefaults&&n.compact(e&&e.folders_order)},responses_order:function(e){return!this.options.noDefaults&&n.compact(e&&e.responses_order)},folders:function(e){if(!n.isEmpty(e&&e.folders)){var t,r,i,o=this,s,c,l=o.options.retainEmptyValues,u={noDefaults:o.options.noDefaults,retainIds:o.options.retainIds};return n.forEach(e.folders,function(e){e&&(!(o.options.retainIds&&e.id||o.options.noDefaults)&&(e.id=a.uid()),e.description=o.description(e.description),a.cleanEmptyValue(e,`description`,l),!a.addProtocolProfileBehavior(e)&&delete e.protocolProfileBehavior,t=o.auth(e),!n.isEmpty(s=o.order(e))&&(e.order=s),!n.isEmpty(c=o.folders_order(e))&&(e.folders_order=c),(t||t===null)&&(e.auth=t),(r=o.events(e))&&(e.events=r),(i=o.variables(e,u))&&(e.variables=i))}),n.compact(e.folders)}},requests:function(e){if(!n.isEmpty(e&&e.requests)){var t=this;return e.requests.forEach(function(e){t.request(e)}),n.compact(e.requests)}},description:function(e){var t,r=n.get(this.options,`retainEmptyValues`),i=!n.get(this.options,`noDefaults`,!1);if(t=n.isObject(e)?n.toString(n.get(e,`content`)):e,t)return t;if(t===void 0&&i||n.isEmpty(t)&&r)return null}}),t.exports={normalizeSingle:function(e,t,r){var i,a,o=new s(t);t&&!t.mutate&&(e=n.cloneDeep(e));try{a=o.request(e)}catch(e){i=e}if(r)return r(i,a);if(i)throw i;return a},normalizeResponse:function(e,t,r){var i,a,o=new s(t);t&&!t.mutate&&(e=n.cloneDeep(e));try{a=o.response(e)}catch(e){i=e}if(r)return r(i,a);if(i)throw i;return a},normalize:function(e,t,r){t&&!t.mutate&&(e=n.cloneDeep(e));var i,o={excludeNoauth:!0},c=new s(t),l=[`events`,`variables`,`order`,`folders_order`,`folders`,`requests`];!(t.retainIds&&e.id||t.noDefaults)&&(e.id=a.uid()),u(e,c,t),!a.addProtocolProfileBehavior(e)&&delete e.protocolProfileBehavior;try{i=c.auth(e,o),i||t.retainEmptyValues&&i===null?e.auth=i:delete e.auth,l.forEach(function(r){var i,a;r===`variables`&&(a={retainIds:t.retainIds,noDefaults:t.noDefaults}),(!n.isEmpty(i=c[r](e,a))||r===`folders`)&&(e[r]=i)})}catch(e){if(r)return r(e,null);throw e}return r?r(null,e):e}}})),cy=s(((e,t)=>{var n=Xv(),r={"1.0.0":sy()};t.exports={normalize:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalize(e,t,i)},normalizeSingle:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalizeSingle(e,t,i)},normalizeResponse:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalizeResponse(e,t,i)}}})),ly=s(((e,t)=>{var n=Xv(),r=Qv(),i=oy(),a=cy();t.exports={convert:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convert(e,t,r)},normalize:a.normalize,normalizeSingle:a.normalizeSingle,normalizeResponse:a.normalizeResponse,util:r,isv1:function(e){return!!(e&&e.name&&e.order&&e.requests)},isv2:function(e){return!!(e&&e.info&&e.info.schema)},convertSingle:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convertSingle(e,t,r)},convertResponse:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convertResponse(e,t,r)}}})),uy=s(((e,t)=>{t.exports=ly()})),dy=s(((e,t)=>{t.exports=class{constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.alloc(e)}prepend(e){if(Buffer.isBuffer(e)){let t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error(`INVALID_BUFFER_STATE`);let n=this.buf;this.buf=Buffer.alloc(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let t=this.length++;t===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,t)}}append(e){let t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size*=2;let t=Buffer.alloc(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString(`utf8`)}reset(){this.length=0}}})),fy=s(((e,t)=>{let{Transform:n}=d(`stream`),r=dy(),i={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])};var a=class extends n{constructor(e={}){super({readableObjectMode:!0,...e,encoding:null}),this.__originalOptions=e,this.__normalizeOptions(e)}__normalizeOptions(e){let t={};for(let n in e)t[c(n)]=e[n];if(t.encoding===void 0||t.encoding===!0)t.encoding=`utf8`;else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!=`string`&&t.encoding!==null)throw new s(`CSV_INVALID_OPTION_ENCODING`,[`Invalid option encoding:`,`encoding must be a string or null to return a buffer,`,`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new s(`CSV_INVALID_OPTION_BOM`,[`Invalid option bom:`,`bom must be true,`,`got ${JSON.stringify(t.bom)}`],t);let n=null;if(t.cast===void 0||t.cast===null||t.cast===!1||t.cast===``)t.cast=void 0;else if(typeof t.cast==`function`)n=t.cast,t.cast=!0;else if(t.cast!==!0)throw new s(`CSV_INVALID_OPTION_CAST`,[`Invalid option cast:`,`cast must be true or a function,`,`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date===``)t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(e){let t=Date.parse(e);return isNaN(t)?e:new Date(t)};else throw new s(`CSV_INVALID_OPTION_CAST_DATE`,[`Invalid option cast_date:`,`cast_date must be true or a function,`,`got ${JSON.stringify(t.cast_date)}`],t);let i=null;if(t.columns===!0)i=void 0;else if(typeof t.columns==`function`)i=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=f(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new s(`CSV_INVALID_OPTION_COLUMNS`,[`Invalid option columns:`,`expect an array, a function or true,`,`got ${JSON.stringify(t.columns)}`],t);if(t.columns_duplicates_to_array===void 0||t.columns_duplicates_to_array===null||t.columns_duplicates_to_array===!1)t.columns_duplicates_to_array=!1;else if(t.columns_duplicates_to_array!==!0)throw new s(`CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY`,[`Invalid option columns_duplicates_to_array:`,`expect an boolean,`,`got ${JSON.stringify(t.columns_duplicates_to_array)}`],t);else if(t.columns===!1)throw new s(`CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY`,[`Invalid option columns_duplicates_to_array:`,"the `columns` mode must be activated."],t);if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment===``)t.comment=null;else if(typeof t.comment==`string`&&(t.comment=Buffer.from(t.comment,t.encoding)),!Buffer.isBuffer(t.comment))throw new s(`CSV_INVALID_OPTION_COMMENT`,[`Invalid option comment:`,`comment must be a buffer or a string,`,`got ${JSON.stringify(t.comment)}`],t);let a=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new s(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${a}`],t);if(t.delimiter=t.delimiter.map(function(e){if(e==null||e===!1)return Buffer.from(`,`,t.encoding);if(typeof e==`string`&&(e=Buffer.from(e,t.encoding)),!Buffer.isBuffer(e)||e.length===0)throw new s(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${a}`],t);return e}),t.escape===void 0||t.escape===!0?t.escape=Buffer.from(`"`,t.encoding):typeof t.escape==`string`?t.escape=Buffer.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Buffer.isBuffer(t.escape))throw Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from==`string`&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line==`string`&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters==`number`)t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!=`boolean`)throw new s(`CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS`,["Invalid option `ignore_last_delimiters`:",`the value must be a boolean value or an integer,`,`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new s(`CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS`,["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size==`string`&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(Buffer.isBuffer(t.objname)){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty buffer`);t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname==`string`){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty string`)}else throw Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!=`function`)throw new s(`CSV_INVALID_OPTION_ON_RECORD`,["Invalid option `on_record`:",`expect a function,`,`got ${JSON.stringify(t.on_record)}`],t);if(t.quote===null||t.quote===!1||t.quote===``)t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=Buffer.from(`"`,t.encoding):typeof t.quote==`string`&&(t.quote=Buffer.from(t.quote,t.encoding)),!Buffer.isBuffer(t.quote))throw Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter?Array.isArray(t.record_delimiter)||(t.record_delimiter=[t.record_delimiter]):t.record_delimiter=[],t.record_delimiter=t.record_delimiter.map(function(e){return typeof e==`string`&&(e=Buffer.from(e,t.encoding)),e}),typeof t.relax!=`boolean`)if(t.relax===void 0||t.relax===null)t.relax=!1;else throw Error(`Invalid Option: relax must be a boolean, got ${JSON.stringify(t.relax)}`);if(typeof t.relax_column_count!=`boolean`)if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!=`boolean`)if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!=`boolean`)if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.skip_empty_lines!=`boolean`)if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_lines_with_empty_values!=`boolean`)if(t.skip_lines_with_empty_values===void 0||t.skip_lines_with_empty_values===null)t.skip_lines_with_empty_values=!1;else throw Error(`Invalid Option: skip_lines_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_lines_with_empty_values)}`);if(typeof t.skip_lines_with_error!=`boolean`)if(t.skip_lines_with_error===void 0||t.skip_lines_with_error===null)t.skip_lines_with_error=!1;else throw Error(`Invalid Option: skip_lines_with_error must be a boolean, got ${JSON.stringify(t.skip_lines_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(typeof t.to==`string`&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(typeof t.to_line==`string`&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);this.info={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},this.options=t,this.state={bomSkipped:!1,bufBytesStart:0,castField:n,commenting:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new r(20),firstLineToHeaders:i,needMoreDataSize:Math.max(t.comment===null?0:t.comment.length,...t.delimiter.map(e=>e.length),t.quote===null?0:t.quote.length),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new r(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?2:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[Buffer.from(` `,t.encoding)[0],Buffer.from(` `,t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1}}_transform(e,t,n){if(this.state.stop===!0)return;let r=this.__parse(e,!1);r!==void 0&&(this.state.stop=!0),n(r)}_flush(e){this.state.stop!==!0&&e(this.__parse(void 0,!0))}__parse(e,t){let{bom:n,comment:r,escape:a,from_line:o,ltrim:c,max_record_size:l,quote:u,raw:d,relax:f,rtrim:p,skip_empty_lines:m,to:h,to_line:g}=this.options,{record_delimiter:_}=this.options,{bomSkipped:v,previousBuf:y,rawBuffer:b,escapeIsQuote:x}=this.state,S;if(y===void 0)if(e===void 0){this.push(null);return}else S=e;else S=y!==void 0&&e===void 0?y:Buffer.concat([y,e]);if(v===!1)if(n===!1)this.state.bomSkipped=!0;else if(S.length<3){if(t===!1){this.state.previousBuf=S;return}}else{for(let e in i)if(i[e].compare(S,0,i[e].length)===0){let t=i[e].length;this.state.bufBytesStart+=t,S=S.slice(t),this.__normalizeOptions({...this.__originalOptions,encoding:e});break}this.state.bomSkipped=!0}let C=S.length,w;for(w=0;w<C&&!this.__needMoreData(w,C,t);w++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),g!==-1&&this.info.lines>g){this.state.stop=!0,this.push(null);return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(S,w)&&(_=this.options.record_delimiter);let e=S[w];if(d===!0&&b.append(e),(e===13||e===10)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(a!==null&&this.state.quoting===!0&&this.__isEscape(S,w,e)&&w+a.length<C)if(x){if(this.__isQuote(S,w+a.length)){this.state.escaping=!0,w+=a.length-1;continue}}else{this.state.escaping=!0,w+=a.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(S,w))if(this.state.quoting===!0){let t=S[w+u.length],n=p&&this.__isCharTrimable(t),i=r!==null&&this.__compareBytes(r,S,w+u.length,t),o=this.__isDelimiter(S,w+u.length,t),c=_.length===0?this.__autoDiscoverRecordDelimiter(S,w+u.length):this.__isRecordDelimiter(t,S,w+u.length);if(a!==null&&this.__isEscape(S,w,e)&&this.__isQuote(S,w+a.length))w+=a.length-1;else if(!t||o||c||i||n){this.state.quoting=!1,this.state.wasQuoting=!0,w+=u.length-1;continue}else if(f===!1){let e=this.__error(new s(`CSV_INVALID_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,`instead of delimiter, record delimiter, trimable character`,`(if activated) or comment`],this.options,this.__infoField()));if(e!==void 0)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(u),w+=u.length-1}else if(this.state.field.length!==0){if(f===!1){let e=this.__error(new s(`INVALID_OPENING_QUOTE`,[`Invalid Opening Quote:`,`a quote is found inside a field at line ${this.info.lines}`],this.options,this.__infoField(),{field:this.state.field}));if(e!==void 0)return e}}else{this.state.quoting=!0,w+=u.length-1;continue}if(this.state.quoting===!1){let t=this.__isRecordDelimiter(e,S,w);if(t!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=o){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),w+=t-1;continue}if(m===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,w+=t-1;continue}this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;this.info.bytes=this.state.bufBytesStart+w+t;let n=this.__onRecord();if(n!==void 0)return n;if(h!==-1&&this.info.records>=h){this.state.stop=!0,this.push(null);return}}this.state.commenting=!1,w+=t-1;continue}if(this.state.commenting)continue;if((r===null?0:this.__compareBytes(r,S,w,e))!==0){this.state.commenting=!0;continue}let n=this.__isDelimiter(S,w,e);if(n!==0){this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;w+=n-1;continue}}}if(this.state.commenting===!1&&l!==0&&this.state.record_length+this.state.field.length>l){let e=this.__error(new s(`CSV_MAX_RECORD_SIZE`,[`Max Record Size:`,`record exceed the maximum number of tolerated bytes`,`of ${l}`,`at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}let t=c===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(e),n=p===!1||this.state.wasQuoting===!1;if(t===!0&&n===!0)this.state.field.append(e);else if(p===!0&&!this.__isCharTrimable(e)){let e=this.__error(new s(`CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`found non trimable byte after quote`,`at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}}if(t===!0)if(this.state.quoting===!0){let e=this.__error(new s(`CSV_QUOTE_NOT_CLOSED`,[`Quote Not Closed:`,`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;let t=this.__onRecord();if(t!==void 0)return t}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=w,this.state.previousBuf=S.slice(w);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)}__onRecord(){let{columns:e,columns_duplicates_to_array:t,encoding:n,info:r,from:i,relax_column_count:a,relax_column_count_less:o,relax_column_count_more:c,raw:l,skip_lines_with_empty_values:d}=this.options,{enabled:f,record:p}=this.state;if(f===!1)return this.__resetRecord();let m=p.length;if(e===!0){if(d===!0&&u(p)){this.__resetRecord();return}return this.__firstLineToColumns(p)}if(e===!1&&this.info.records===0&&(this.state.expectedRecordLength=m),m!==this.state.expectedRecordLength){let t=e===!1?new s(`CSV_INCONSISTENT_RECORD_LENGTH`,[`Invalid Record Length:`,`expect ${this.state.expectedRecordLength},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p}):new s(`CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH`,[`Invalid Record Length:`,`columns length is ${e.length},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p});if(a===!0||o===!0&&m<this.state.expectedRecordLength||c===!0&&m>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=t;else{let e=this.__error(t);if(e)return e}}if(d===!0&&u(p)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,i===1||this.info.records>=i)if(e!==!1){let i={};for(let n=0,r=p.length;n<r;n++)e[n]===void 0||e[n].disabled||(t===!0&&i[e[n].name]!==void 0?Array.isArray(i[e[n].name])?i[e[n].name]=i[e[n].name].concat(p[n]):i[e[n].name]=[i[e[n].name],p[n]]:i[e[n].name]=p[n]);let{objname:a}=this.options;if(a===void 0)if(l===!0||r===!0){let e=this.__push(Object.assign({record:i},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push(i);if(e)return e}else if(l===!0||r===!0){let e=this.__push(Object.assign({record:[i[a],i]},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push([i[a],i]);if(e)return e}}else if(l===!0||r===!0){let e=this.__push(Object.assign({record:p},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push(p);if(e)return e}this.__resetRecord()}__firstLineToColumns(e){let{firstLineToHeaders:t}=this.state;try{let n=t===void 0?e:t.call(null,e);if(!Array.isArray(n))return this.__error(new s(`CSV_INVALID_COLUMN_MAPPING`,[`Invalid Column Mapping:`,`expect an array from column function,`,`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}));let r=f(n);this.state.expectedRecordLength=r.length,this.options.columns=r,this.__resetRecord();return}catch(e){return e}}__resetRecord(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0}__onField(){let{cast:e,encoding:t,rtrim:n,max_record_size:r}=this.options,{enabled:i,wasQuoting:a}=this.state;if(i===!1)return this.__resetField();let o=this.state.field.toString(t);if(n===!0&&a===!1&&(o=o.trimRight()),e===!0){let[e,t]=this.__cast(o);if(e!==void 0)return e;o=t}this.state.record.push(o),r!==0&&typeof o==`string`&&(this.state.record_length+=o.length),this.__resetField()}__resetField(){this.state.field.reset(),this.state.wasQuoting=!1}__push(e){let{on_record:t}=this.options;if(t!==void 0){let n=this.__infoRecord();try{e=t.call(null,e,n)}catch(e){return e}if(e==null)return}this.push(e)}__cast(e){let{columns:t,relax_column_count:n}=this.options;if(Array.isArray(t)===!0&&n&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let t=this.__infoField();return[void 0,this.state.castField.call(null,e,t)]}catch(e){return[e]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(this.options.cast_date!==!1){let t=this.__infoField();return[void 0,this.options.cast_date.call(null,e,t)]}return[void 0,e]}__isCharTrimable(e){return e===32||e===9||e===13||e===10||e===12}__isFloat(e){return e-parseFloat(e)+1>=0}__compareBytes(e,t,n,r){if(e[0]!==r)return 0;let i=e.length;for(let r=1;r<i;r++)if(e[r]!==t[n+r])return 0;return i}__needMoreData(e,t,n){if(n)return!1;let{quote:r}=this.options,{quoting:i,needMoreDataSize:a,recordDelimiterMaxLength:o}=this.state;return t-e-1<Math.max(a,o,i?r.length+o:0)}__isDelimiter(e,t,n){let{delimiter:r,ignore_last_delimiters:i}=this.options;if(i===!0&&this.state.record.length===this.options.columns.length-1||i!==!1&&typeof i==`number`&&this.state.record.length===i-1)return 0;loop1:for(let i=0;i<r.length;i++){let a=r[i];if(a[0]===n){for(let n=1;n<a.length;n++)if(a[n]!==e[t+n])continue loop1;return a.length}}return 0}__isRecordDelimiter(e,t,n){let{record_delimiter:r}=this.options,i=r.length;loop1:for(let a=0;a<i;a++){let i=r[a],o=i.length;if(i[0]===e){for(let e=1;e<o;e++)if(i[e]!==t[n+e])continue loop1;return i.length}}return 0}__isEscape(e,t,n){let{escape:r}=this.options;if(r===null)return!1;let i=r.length;if(r[0]===n){for(let n=0;n<i;n++)if(r[n]!==e[t+n])return!1;return!0}return!1}__isQuote(e,t){let{quote:n}=this.options;if(n===null)return!1;let r=n.length;for(let i=0;i<r;i++)if(n[i]!==e[t+i])return!1;return!0}__autoDiscoverRecordDelimiter(e,t){let{encoding:n}=this.options,r=e[t];return r===13?e[t+1]===10?(this.options.record_delimiter.push(Buffer.from(`\r
|
|
555
|
+
`)))}),e.preRequestScript=g||null,e.tests=c||null),[`preRequestScript`,`tests`].forEach(function(t){n.has(e,t)&&!e[t]&&e[t]!==null&&delete e[t]}),e}},response:function(e){var t=this;return!(t.options.retainIds&&e.id||t.options.noDefaults)&&(e.id=a.uid()),e.request=t.request(e.request,void 0,!0),!e.language&&(e.language=`Text`),!e.previewType&&(e.previewType=`html`),n.isEmpty(e.cookies)&&delete e.cookies,e},responses:function(e){if(!n.isEmpty(e&&e.responses)){var t=this;return e.responses.forEach(function(e){t.response(e)}),e.responses}},order:function(e){return!this.options.noDefaults&&n.compact(e&&e.order)},folders_order:function(e){return!this.options.noDefaults&&n.compact(e&&e.folders_order)},responses_order:function(e){return!this.options.noDefaults&&n.compact(e&&e.responses_order)},folders:function(e){if(!n.isEmpty(e&&e.folders)){var t,r,i,o=this,s,c,l=o.options.retainEmptyValues,u={noDefaults:o.options.noDefaults,retainIds:o.options.retainIds};return n.forEach(e.folders,function(e){e&&(!(o.options.retainIds&&e.id||o.options.noDefaults)&&(e.id=a.uid()),e.description=o.description(e.description),a.cleanEmptyValue(e,`description`,l),!a.addProtocolProfileBehavior(e)&&delete e.protocolProfileBehavior,t=o.auth(e),!n.isEmpty(s=o.order(e))&&(e.order=s),!n.isEmpty(c=o.folders_order(e))&&(e.folders_order=c),(t||t===null)&&(e.auth=t),(r=o.events(e))&&(e.events=r),(i=o.variables(e,u))&&(e.variables=i))}),n.compact(e.folders)}},requests:function(e){if(!n.isEmpty(e&&e.requests)){var t=this;return e.requests.forEach(function(e){t.request(e)}),n.compact(e.requests)}},description:function(e){var t,r=n.get(this.options,`retainEmptyValues`),i=!n.get(this.options,`noDefaults`,!1);if(t=n.isObject(e)?n.toString(n.get(e,`content`)):e,t)return t;if(t===void 0&&i||n.isEmpty(t)&&r)return null}}),t.exports={normalizeSingle:function(e,t,r){var i,a,o=new s(t);t&&!t.mutate&&(e=n.cloneDeep(e));try{a=o.request(e)}catch(e){i=e}if(r)return r(i,a);if(i)throw i;return a},normalizeResponse:function(e,t,r){var i,a,o=new s(t);t&&!t.mutate&&(e=n.cloneDeep(e));try{a=o.response(e)}catch(e){i=e}if(r)return r(i,a);if(i)throw i;return a},normalize:function(e,t,r){t&&!t.mutate&&(e=n.cloneDeep(e));var i,o={excludeNoauth:!0},c=new s(t),l=[`events`,`variables`,`order`,`folders_order`,`folders`,`requests`];!(t.retainIds&&e.id||t.noDefaults)&&(e.id=a.uid()),u(e,c,t),!a.addProtocolProfileBehavior(e)&&delete e.protocolProfileBehavior;try{i=c.auth(e,o),i||t.retainEmptyValues&&i===null?e.auth=i:delete e.auth,l.forEach(function(r){var i,a;r===`variables`&&(a={retainIds:t.retainIds,noDefaults:t.noDefaults}),(!n.isEmpty(i=c[r](e,a))||r===`folders`)&&(e[r]=i)})}catch(e){if(r)return r(e,null);throw e}return r?r(null,e):e}}})),vv=s(((e,t)=>{var n=qo(),r={"1.0.0":_v()};t.exports={normalize:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalize(e,t,i)},normalizeSingle:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalizeSingle(e,t,i)},normalizeResponse:function(e,t,i){var a;return!t||!(a=n.valid(t.normalizeVersion,!0))||!r[a]?i(Error(`Version not specified or invalid: `+t.normalizeVersion)):r[a].normalizeResponse(e,t,i)}}})),yv=s(((e,t)=>{var n=qo(),r=cv(),i=gv(),a=vv();t.exports={convert:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convert(e,t,r)},normalize:a.normalize,normalizeSingle:a.normalizeSingle,normalizeResponse:a.normalizeResponse,util:r,isv1:function(e){return!!(e&&e.name&&e.order&&e.requests)},isv2:function(e){return!!(e&&e.info&&e.info.schema)},convertSingle:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convertSingle(e,t,r)},convertResponse:function(e,t,r){return!t.outputVersion||!n.valid(t.outputVersion,!0)?r(Error(`Output version not specified or invalid: `+t.outputVersion)):!t.inputVersion||!n.valid(t.inputVersion,!0)?r(Error(`Input version not specified or invalid: `+t.inputVersion)):i.convertResponse(e,t,r)}}})),bv=s(((e,t)=>{t.exports=yv()})),xv=s(((e,t)=>{t.exports=class{constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.alloc(e)}prepend(e){if(Buffer.isBuffer(e)){let t=this.length+e.length;if(t>=this.size&&(this.resize(),t>=this.size))throw Error(`INVALID_BUFFER_STATE`);let n=this.buf;this.buf=Buffer.alloc(this.size),e.copy(this.buf,0),n.copy(this.buf,e.length),this.length+=e.length}else{let t=this.length++;t===this.size&&this.resize();let n=this.clone();this.buf[0]=e,n.copy(this.buf,1,0,t)}}append(e){let t=this.length++;t===this.size&&this.resize(),this.buf[t]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size*=2;let t=Buffer.alloc(this.size);this.buf.copy(t,0,0,e),this.buf=t}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString(`utf8`)}reset(){this.length=0}}})),Sv=s(((e,t)=>{let{Transform:n}=d(`stream`),r=xv(),i={utf8:Buffer.from([239,187,191]),utf16le:Buffer.from([255,254])};var a=class extends n{constructor(e={}){super({readableObjectMode:!0,...e,encoding:null}),this.__originalOptions=e,this.__normalizeOptions(e)}__normalizeOptions(e){let t={};for(let n in e)t[c(n)]=e[n];if(t.encoding===void 0||t.encoding===!0)t.encoding=`utf8`;else if(t.encoding===null||t.encoding===!1)t.encoding=null;else if(typeof t.encoding!=`string`&&t.encoding!==null)throw new s(`CSV_INVALID_OPTION_ENCODING`,[`Invalid option encoding:`,`encoding must be a string or null to return a buffer,`,`got ${JSON.stringify(t.encoding)}`],t);if(t.bom===void 0||t.bom===null||t.bom===!1)t.bom=!1;else if(t.bom!==!0)throw new s(`CSV_INVALID_OPTION_BOM`,[`Invalid option bom:`,`bom must be true,`,`got ${JSON.stringify(t.bom)}`],t);let n=null;if(t.cast===void 0||t.cast===null||t.cast===!1||t.cast===``)t.cast=void 0;else if(typeof t.cast==`function`)n=t.cast,t.cast=!0;else if(t.cast!==!0)throw new s(`CSV_INVALID_OPTION_CAST`,[`Invalid option cast:`,`cast must be true or a function,`,`got ${JSON.stringify(t.cast)}`],t);if(t.cast_date===void 0||t.cast_date===null||t.cast_date===!1||t.cast_date===``)t.cast_date=!1;else if(t.cast_date===!0)t.cast_date=function(e){let t=Date.parse(e);return isNaN(t)?e:new Date(t)};else throw new s(`CSV_INVALID_OPTION_CAST_DATE`,[`Invalid option cast_date:`,`cast_date must be true or a function,`,`got ${JSON.stringify(t.cast_date)}`],t);let i=null;if(t.columns===!0)i=void 0;else if(typeof t.columns==`function`)i=t.columns,t.columns=!0;else if(Array.isArray(t.columns))t.columns=f(t.columns);else if(t.columns===void 0||t.columns===null||t.columns===!1)t.columns=!1;else throw new s(`CSV_INVALID_OPTION_COLUMNS`,[`Invalid option columns:`,`expect an array, a function or true,`,`got ${JSON.stringify(t.columns)}`],t);if(t.columns_duplicates_to_array===void 0||t.columns_duplicates_to_array===null||t.columns_duplicates_to_array===!1)t.columns_duplicates_to_array=!1;else if(t.columns_duplicates_to_array!==!0)throw new s(`CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY`,[`Invalid option columns_duplicates_to_array:`,`expect an boolean,`,`got ${JSON.stringify(t.columns_duplicates_to_array)}`],t);else if(t.columns===!1)throw new s(`CSV_INVALID_OPTION_COLUMNS_DUPLICATES_TO_ARRAY`,[`Invalid option columns_duplicates_to_array:`,"the `columns` mode must be activated."],t);if(t.comment===void 0||t.comment===null||t.comment===!1||t.comment===``)t.comment=null;else if(typeof t.comment==`string`&&(t.comment=Buffer.from(t.comment,t.encoding)),!Buffer.isBuffer(t.comment))throw new s(`CSV_INVALID_OPTION_COMMENT`,[`Invalid option comment:`,`comment must be a buffer or a string,`,`got ${JSON.stringify(t.comment)}`],t);let a=JSON.stringify(t.delimiter);if(Array.isArray(t.delimiter)||(t.delimiter=[t.delimiter]),t.delimiter.length===0)throw new s(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${a}`],t);if(t.delimiter=t.delimiter.map(function(e){if(e==null||e===!1)return Buffer.from(`,`,t.encoding);if(typeof e==`string`&&(e=Buffer.from(e,t.encoding)),!Buffer.isBuffer(e)||e.length===0)throw new s(`CSV_INVALID_OPTION_DELIMITER`,[`Invalid option delimiter:`,`delimiter must be a non empty string or buffer or array of string|buffer,`,`got ${a}`],t);return e}),t.escape===void 0||t.escape===!0?t.escape=Buffer.from(`"`,t.encoding):typeof t.escape==`string`?t.escape=Buffer.from(t.escape,t.encoding):(t.escape===null||t.escape===!1)&&(t.escape=null),t.escape!==null&&!Buffer.isBuffer(t.escape))throw Error(`Invalid Option: escape must be a buffer, a string or a boolean, got ${JSON.stringify(t.escape)}`);if(t.from===void 0||t.from===null)t.from=1;else if(typeof t.from==`string`&&/\d+/.test(t.from)&&(t.from=parseInt(t.from)),Number.isInteger(t.from)){if(t.from<0)throw Error(`Invalid Option: from must be a positive integer, got ${JSON.stringify(e.from)}`)}else throw Error(`Invalid Option: from must be an integer, got ${JSON.stringify(t.from)}`);if(t.from_line===void 0||t.from_line===null)t.from_line=1;else if(typeof t.from_line==`string`&&/\d+/.test(t.from_line)&&(t.from_line=parseInt(t.from_line)),Number.isInteger(t.from_line)){if(t.from_line<=0)throw Error(`Invalid Option: from_line must be a positive integer greater than 0, got ${JSON.stringify(e.from_line)}`)}else throw Error(`Invalid Option: from_line must be an integer, got ${JSON.stringify(e.from_line)}`);if(t.ignore_last_delimiters===void 0||t.ignore_last_delimiters===null)t.ignore_last_delimiters=!1;else if(typeof t.ignore_last_delimiters==`number`)t.ignore_last_delimiters=Math.floor(t.ignore_last_delimiters),t.ignore_last_delimiters===0&&(t.ignore_last_delimiters=!1);else if(typeof t.ignore_last_delimiters!=`boolean`)throw new s(`CSV_INVALID_OPTION_IGNORE_LAST_DELIMITERS`,["Invalid option `ignore_last_delimiters`:",`the value must be a boolean value or an integer,`,`got ${JSON.stringify(t.ignore_last_delimiters)}`],t);if(t.ignore_last_delimiters===!0&&t.columns===!1)throw new s(`CSV_IGNORE_LAST_DELIMITERS_REQUIRES_COLUMNS`,["The option `ignore_last_delimiters`","requires the activation of the `columns` option"],t);if(t.info===void 0||t.info===null||t.info===!1)t.info=!1;else if(t.info!==!0)throw Error(`Invalid Option: info must be true, got ${JSON.stringify(t.info)}`);if(t.max_record_size===void 0||t.max_record_size===null||t.max_record_size===!1)t.max_record_size=0;else if(!(Number.isInteger(t.max_record_size)&&t.max_record_size>=0))if(typeof t.max_record_size==`string`&&/\d+/.test(t.max_record_size))t.max_record_size=parseInt(t.max_record_size);else throw Error(`Invalid Option: max_record_size must be a positive integer, got ${JSON.stringify(t.max_record_size)}`);if(t.objname===void 0||t.objname===null||t.objname===!1)t.objname=void 0;else if(Buffer.isBuffer(t.objname)){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty buffer`);t.encoding===null||(t.objname=t.objname.toString(t.encoding))}else if(typeof t.objname==`string`){if(t.objname.length===0)throw Error(`Invalid Option: objname must be a non empty string`)}else throw Error(`Invalid Option: objname must be a string or a buffer, got ${t.objname}`);if(t.on_record===void 0||t.on_record===null)t.on_record=void 0;else if(typeof t.on_record!=`function`)throw new s(`CSV_INVALID_OPTION_ON_RECORD`,["Invalid option `on_record`:",`expect a function,`,`got ${JSON.stringify(t.on_record)}`],t);if(t.quote===null||t.quote===!1||t.quote===``)t.quote=null;else if(t.quote===void 0||t.quote===!0?t.quote=Buffer.from(`"`,t.encoding):typeof t.quote==`string`&&(t.quote=Buffer.from(t.quote,t.encoding)),!Buffer.isBuffer(t.quote))throw Error(`Invalid Option: quote must be a buffer or a string, got ${JSON.stringify(t.quote)}`);if(t.raw===void 0||t.raw===null||t.raw===!1)t.raw=!1;else if(t.raw!==!0)throw Error(`Invalid Option: raw must be true, got ${JSON.stringify(t.raw)}`);if(t.record_delimiter?Array.isArray(t.record_delimiter)||(t.record_delimiter=[t.record_delimiter]):t.record_delimiter=[],t.record_delimiter=t.record_delimiter.map(function(e){return typeof e==`string`&&(e=Buffer.from(e,t.encoding)),e}),typeof t.relax!=`boolean`)if(t.relax===void 0||t.relax===null)t.relax=!1;else throw Error(`Invalid Option: relax must be a boolean, got ${JSON.stringify(t.relax)}`);if(typeof t.relax_column_count!=`boolean`)if(t.relax_column_count===void 0||t.relax_column_count===null)t.relax_column_count=!1;else throw Error(`Invalid Option: relax_column_count must be a boolean, got ${JSON.stringify(t.relax_column_count)}`);if(typeof t.relax_column_count_less!=`boolean`)if(t.relax_column_count_less===void 0||t.relax_column_count_less===null)t.relax_column_count_less=!1;else throw Error(`Invalid Option: relax_column_count_less must be a boolean, got ${JSON.stringify(t.relax_column_count_less)}`);if(typeof t.relax_column_count_more!=`boolean`)if(t.relax_column_count_more===void 0||t.relax_column_count_more===null)t.relax_column_count_more=!1;else throw Error(`Invalid Option: relax_column_count_more must be a boolean, got ${JSON.stringify(t.relax_column_count_more)}`);if(typeof t.skip_empty_lines!=`boolean`)if(t.skip_empty_lines===void 0||t.skip_empty_lines===null)t.skip_empty_lines=!1;else throw Error(`Invalid Option: skip_empty_lines must be a boolean, got ${JSON.stringify(t.skip_empty_lines)}`);if(typeof t.skip_lines_with_empty_values!=`boolean`)if(t.skip_lines_with_empty_values===void 0||t.skip_lines_with_empty_values===null)t.skip_lines_with_empty_values=!1;else throw Error(`Invalid Option: skip_lines_with_empty_values must be a boolean, got ${JSON.stringify(t.skip_lines_with_empty_values)}`);if(typeof t.skip_lines_with_error!=`boolean`)if(t.skip_lines_with_error===void 0||t.skip_lines_with_error===null)t.skip_lines_with_error=!1;else throw Error(`Invalid Option: skip_lines_with_error must be a boolean, got ${JSON.stringify(t.skip_lines_with_error)}`);if(t.rtrim===void 0||t.rtrim===null||t.rtrim===!1)t.rtrim=!1;else if(t.rtrim!==!0)throw Error(`Invalid Option: rtrim must be a boolean, got ${JSON.stringify(t.rtrim)}`);if(t.ltrim===void 0||t.ltrim===null||t.ltrim===!1)t.ltrim=!1;else if(t.ltrim!==!0)throw Error(`Invalid Option: ltrim must be a boolean, got ${JSON.stringify(t.ltrim)}`);if(t.trim===void 0||t.trim===null||t.trim===!1)t.trim=!1;else if(t.trim!==!0)throw Error(`Invalid Option: trim must be a boolean, got ${JSON.stringify(t.trim)}`);if(t.trim===!0&&e.ltrim!==!1?t.ltrim=!0:t.ltrim!==!0&&(t.ltrim=!1),t.trim===!0&&e.rtrim!==!1?t.rtrim=!0:t.rtrim!==!0&&(t.rtrim=!1),t.to===void 0||t.to===null)t.to=-1;else if(typeof t.to==`string`&&/\d+/.test(t.to)&&(t.to=parseInt(t.to)),Number.isInteger(t.to)){if(t.to<=0)throw Error(`Invalid Option: to must be a positive integer greater than 0, got ${JSON.stringify(e.to)}`)}else throw Error(`Invalid Option: to must be an integer, got ${JSON.stringify(e.to)}`);if(t.to_line===void 0||t.to_line===null)t.to_line=-1;else if(typeof t.to_line==`string`&&/\d+/.test(t.to_line)&&(t.to_line=parseInt(t.to_line)),Number.isInteger(t.to_line)){if(t.to_line<=0)throw Error(`Invalid Option: to_line must be a positive integer greater than 0, got ${JSON.stringify(e.to_line)}`)}else throw Error(`Invalid Option: to_line must be an integer, got ${JSON.stringify(e.to_line)}`);this.info={bytes:0,comment_lines:0,empty_lines:0,invalid_field_length:0,lines:1,records:0},this.options=t,this.state={bomSkipped:!1,bufBytesStart:0,castField:n,commenting:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new r(20),firstLineToHeaders:i,needMoreDataSize:Math.max(t.comment===null?0:t.comment.length,...t.delimiter.map(e=>e.length),t.quote===null?0:t.quote.length),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new r(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?2:Math.max(...t.record_delimiter.map(e=>e.length)),trimChars:[Buffer.from(` `,t.encoding)[0],Buffer.from(` `,t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1}}_transform(e,t,n){if(this.state.stop===!0)return;let r=this.__parse(e,!1);r!==void 0&&(this.state.stop=!0),n(r)}_flush(e){this.state.stop!==!0&&e(this.__parse(void 0,!0))}__parse(e,t){let{bom:n,comment:r,escape:a,from_line:o,ltrim:c,max_record_size:l,quote:u,raw:d,relax:f,rtrim:p,skip_empty_lines:m,to:h,to_line:g}=this.options,{record_delimiter:_}=this.options,{bomSkipped:v,previousBuf:y,rawBuffer:b,escapeIsQuote:x}=this.state,S;if(y===void 0)if(e===void 0){this.push(null);return}else S=e;else S=y!==void 0&&e===void 0?y:Buffer.concat([y,e]);if(v===!1)if(n===!1)this.state.bomSkipped=!0;else if(S.length<3){if(t===!1){this.state.previousBuf=S;return}}else{for(let e in i)if(i[e].compare(S,0,i[e].length)===0){let t=i[e].length;this.state.bufBytesStart+=t,S=S.slice(t),this.__normalizeOptions({...this.__originalOptions,encoding:e});break}this.state.bomSkipped=!0}let C=S.length,w;for(w=0;w<C&&!this.__needMoreData(w,C,t);w++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),g!==-1&&this.info.lines>g){this.state.stop=!0,this.push(null);return}this.state.quoting===!1&&_.length===0&&this.__autoDiscoverRecordDelimiter(S,w)&&(_=this.options.record_delimiter);let e=S[w];if(d===!0&&b.append(e),(e===13||e===10)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(a!==null&&this.state.quoting===!0&&this.__isEscape(S,w,e)&&w+a.length<C)if(x){if(this.__isQuote(S,w+a.length)){this.state.escaping=!0,w+=a.length-1;continue}}else{this.state.escaping=!0,w+=a.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(S,w))if(this.state.quoting===!0){let t=S[w+u.length],n=p&&this.__isCharTrimable(t),i=r!==null&&this.__compareBytes(r,S,w+u.length,t),o=this.__isDelimiter(S,w+u.length,t),c=_.length===0?this.__autoDiscoverRecordDelimiter(S,w+u.length):this.__isRecordDelimiter(t,S,w+u.length);if(a!==null&&this.__isEscape(S,w,e)&&this.__isQuote(S,w+a.length))w+=a.length-1;else if(!t||o||c||i||n){this.state.quoting=!1,this.state.wasQuoting=!0,w+=u.length-1;continue}else if(f===!1){let e=this.__error(new s(`CSV_INVALID_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`got "${String.fromCharCode(t)}"`,`at line ${this.info.lines}`,`instead of delimiter, record delimiter, trimable character`,`(if activated) or comment`],this.options,this.__infoField()));if(e!==void 0)return e}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(u),w+=u.length-1}else if(this.state.field.length!==0){if(f===!1){let e=this.__error(new s(`INVALID_OPENING_QUOTE`,[`Invalid Opening Quote:`,`a quote is found inside a field at line ${this.info.lines}`],this.options,this.__infoField(),{field:this.state.field}));if(e!==void 0)return e}}else{this.state.quoting=!0,w+=u.length-1;continue}if(this.state.quoting===!1){let t=this.__isRecordDelimiter(e,S,w);if(t!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=o){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),w+=t-1;continue}if(m===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,w+=t-1;continue}this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;this.info.bytes=this.state.bufBytesStart+w+t;let n=this.__onRecord();if(n!==void 0)return n;if(h!==-1&&this.info.records>=h){this.state.stop=!0,this.push(null);return}}this.state.commenting=!1,w+=t-1;continue}if(this.state.commenting)continue;if((r===null?0:this.__compareBytes(r,S,w,e))!==0){this.state.commenting=!0;continue}let n=this.__isDelimiter(S,w,e);if(n!==0){this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;w+=n-1;continue}}}if(this.state.commenting===!1&&l!==0&&this.state.record_length+this.state.field.length>l){let e=this.__error(new s(`CSV_MAX_RECORD_SIZE`,[`Max Record Size:`,`record exceed the maximum number of tolerated bytes`,`of ${l}`,`at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}let t=c===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(e),n=p===!1||this.state.wasQuoting===!1;if(t===!0&&n===!0)this.state.field.append(e);else if(p===!0&&!this.__isCharTrimable(e)){let e=this.__error(new s(`CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE`,[`Invalid Closing Quote:`,`found non trimable byte after quote`,`at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}}if(t===!0)if(this.state.quoting===!0){let e=this.__error(new s(`CSV_QUOTE_NOT_CLOSED`,[`Quote Not Closed:`,`the parsing is finished with an opening quote at line ${this.info.lines}`],this.options,this.__infoField()));if(e!==void 0)return e}else if(this.state.wasQuoting===!0||this.state.record.length!==0||this.state.field.length!==0){this.info.bytes=this.state.bufBytesStart+w;let e=this.__onField();if(e!==void 0)return e;let t=this.__onRecord();if(t!==void 0)return t}else this.state.wasRowDelimiter===!0?this.info.empty_lines++:this.state.commenting===!0&&this.info.comment_lines++;else this.state.bufBytesStart+=w,this.state.previousBuf=S.slice(w);this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1)}__onRecord(){let{columns:e,columns_duplicates_to_array:t,encoding:n,info:r,from:i,relax_column_count:a,relax_column_count_less:o,relax_column_count_more:c,raw:l,skip_lines_with_empty_values:d}=this.options,{enabled:f,record:p}=this.state;if(f===!1)return this.__resetRecord();let m=p.length;if(e===!0){if(d===!0&&u(p)){this.__resetRecord();return}return this.__firstLineToColumns(p)}if(e===!1&&this.info.records===0&&(this.state.expectedRecordLength=m),m!==this.state.expectedRecordLength){let t=e===!1?new s(`CSV_INCONSISTENT_RECORD_LENGTH`,[`Invalid Record Length:`,`expect ${this.state.expectedRecordLength},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p}):new s(`CSV_RECORD_DONT_MATCH_COLUMNS_LENGTH`,[`Invalid Record Length:`,`columns length is ${e.length},`,`got ${m} on line ${this.info.lines}`],this.options,this.__infoField(),{record:p});if(a===!0||o===!0&&m<this.state.expectedRecordLength||c===!0&&m>this.state.expectedRecordLength)this.info.invalid_field_length++,this.state.error=t;else{let e=this.__error(t);if(e)return e}}if(d===!0&&u(p)){this.__resetRecord();return}if(this.state.recordHasError===!0){this.__resetRecord(),this.state.recordHasError=!1;return}if(this.info.records++,i===1||this.info.records>=i)if(e!==!1){let i={};for(let n=0,r=p.length;n<r;n++)e[n]===void 0||e[n].disabled||(t===!0&&i[e[n].name]!==void 0?Array.isArray(i[e[n].name])?i[e[n].name]=i[e[n].name].concat(p[n]):i[e[n].name]=[i[e[n].name],p[n]]:i[e[n].name]=p[n]);let{objname:a}=this.options;if(a===void 0)if(l===!0||r===!0){let e=this.__push(Object.assign({record:i},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push(i);if(e)return e}else if(l===!0||r===!0){let e=this.__push(Object.assign({record:[i[a],i]},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push([i[a],i]);if(e)return e}}else if(l===!0||r===!0){let e=this.__push(Object.assign({record:p},l===!0?{raw:this.state.rawBuffer.toString(n)}:{},r===!0?{info:this.__infoRecord()}:{}));if(e)return e}else{let e=this.__push(p);if(e)return e}this.__resetRecord()}__firstLineToColumns(e){let{firstLineToHeaders:t}=this.state;try{let n=t===void 0?e:t.call(null,e);if(!Array.isArray(n))return this.__error(new s(`CSV_INVALID_COLUMN_MAPPING`,[`Invalid Column Mapping:`,`expect an array from column function,`,`got ${JSON.stringify(n)}`],this.options,this.__infoField(),{headers:n}));let r=f(n);this.state.expectedRecordLength=r.length,this.options.columns=r,this.__resetRecord();return}catch(e){return e}}__resetRecord(){this.options.raw===!0&&this.state.rawBuffer.reset(),this.state.error=void 0,this.state.record=[],this.state.record_length=0}__onField(){let{cast:e,encoding:t,rtrim:n,max_record_size:r}=this.options,{enabled:i,wasQuoting:a}=this.state;if(i===!1)return this.__resetField();let o=this.state.field.toString(t);if(n===!0&&a===!1&&(o=o.trimRight()),e===!0){let[e,t]=this.__cast(o);if(e!==void 0)return e;o=t}this.state.record.push(o),r!==0&&typeof o==`string`&&(this.state.record_length+=o.length),this.__resetField()}__resetField(){this.state.field.reset(),this.state.wasQuoting=!1}__push(e){let{on_record:t}=this.options;if(t!==void 0){let n=this.__infoRecord();try{e=t.call(null,e,n)}catch(e){return e}if(e==null)return}this.push(e)}__cast(e){let{columns:t,relax_column_count:n}=this.options;if(Array.isArray(t)===!0&&n&&this.options.columns.length<=this.state.record.length)return[void 0,void 0];if(this.state.castField!==null)try{let t=this.__infoField();return[void 0,this.state.castField.call(null,e,t)]}catch(e){return[e]}if(this.__isFloat(e))return[void 0,parseFloat(e)];if(this.options.cast_date!==!1){let t=this.__infoField();return[void 0,this.options.cast_date.call(null,e,t)]}return[void 0,e]}__isCharTrimable(e){return e===32||e===9||e===13||e===10||e===12}__isFloat(e){return e-parseFloat(e)+1>=0}__compareBytes(e,t,n,r){if(e[0]!==r)return 0;let i=e.length;for(let r=1;r<i;r++)if(e[r]!==t[n+r])return 0;return i}__needMoreData(e,t,n){if(n)return!1;let{quote:r}=this.options,{quoting:i,needMoreDataSize:a,recordDelimiterMaxLength:o}=this.state;return t-e-1<Math.max(a,o,i?r.length+o:0)}__isDelimiter(e,t,n){let{delimiter:r,ignore_last_delimiters:i}=this.options;if(i===!0&&this.state.record.length===this.options.columns.length-1||i!==!1&&typeof i==`number`&&this.state.record.length===i-1)return 0;loop1:for(let i=0;i<r.length;i++){let a=r[i];if(a[0]===n){for(let n=1;n<a.length;n++)if(a[n]!==e[t+n])continue loop1;return a.length}}return 0}__isRecordDelimiter(e,t,n){let{record_delimiter:r}=this.options,i=r.length;loop1:for(let a=0;a<i;a++){let i=r[a],o=i.length;if(i[0]===e){for(let e=1;e<o;e++)if(i[e]!==t[n+e])continue loop1;return i.length}}return 0}__isEscape(e,t,n){let{escape:r}=this.options;if(r===null)return!1;let i=r.length;if(r[0]===n){for(let n=0;n<i;n++)if(r[n]!==e[t+n])return!1;return!0}return!1}__isQuote(e,t){let{quote:n}=this.options;if(n===null)return!1;let r=n.length;for(let i=0;i<r;i++)if(n[i]!==e[t+i])return!1;return!0}__autoDiscoverRecordDelimiter(e,t){let{encoding:n}=this.options,r=e[t];return r===13?e[t+1]===10?(this.options.record_delimiter.push(Buffer.from(`\r
|
|
556
556
|
`,n)),this.state.recordDelimiterMaxLength=2,2):(this.options.record_delimiter.push(Buffer.from(`\r`,n)),this.state.recordDelimiterMaxLength=1,1):r===10?(this.options.record_delimiter.push(Buffer.from(`
|
|
557
|
-
`,n)),this.state.recordDelimiterMaxLength=1,1):0}__error(e){let{skip_lines_with_error:t}=this.options,n=typeof e==`string`?Error(e):e;if(t){this.state.recordHasError=!0,this.emit(`skip`,n);return}else return n}__infoDataSet(){return{...this.info,columns:this.options.columns}}__infoRecord(){let{columns:e}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:e===!0,index:this.state.record.length}}__infoField(){let{columns:e}=this.options,t=Array.isArray(e);return{...this.__infoRecord(),column:t===!0?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}};let o=function(){let e,t,n;for(let r in arguments){let i=arguments[r],a=typeof i;if(e===void 0&&(typeof i==`string`||Buffer.isBuffer(i)))e=i;else if(t===void 0&&l(i))t=i;else if(n===void 0&&a===`function`)n=i;else throw new s(`CSV_INVALID_ARGUMENT`,[`Invalid argument:`,`got ${JSON.stringify(i)} at index ${r}`],t||{})}let r=new a(t);if(n){let e=t===void 0||t.objname===void 0?[]:{};r.on(`readable`,function(){let n;for(;(n=this.read())!==null;)t===void 0||t.objname===void 0?e.push(n):e[n[0]]=n[1]}),r.on(`error`,function(e){n(e,void 0,r.__infoDataSet())}),r.on(`end`,function(){n(void 0,e,r.__infoDataSet())})}return e!==void 0&&(typeof setImmediate==`function`?setImmediate(function(){r.write(e),r.end()}):(r.write(e),r.end())),r};var s=class e extends Error{constructor(t,n,r,...i){Array.isArray(n)&&(n=n.join(` `)),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,e),this.code=t;for(let e of i)for(let t in e){let n=e[t];this[t]=Buffer.isBuffer(n)?n.toString(r.encoding):n==null?n:JSON.parse(JSON.stringify(n))}}};o.Parser=a,o.CsvError=s,t.exports=o;let c=function(e){return e.replace(/([A-Z])/g,function(e,t){return`_`+t.toLowerCase()})},l=function(e){return typeof e==`object`&&!!e&&!Array.isArray(e)},u=function(e){return e.every(e=>e==null||e.toString&&e.toString().trim()===``)},f=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r==null||r===!1)t[n]={disabled:!0};else if(typeof r==`string`)t[n]={name:r};else if(l(r)){if(typeof r.name!=`string`)throw new s(`CSV_OPTION_COLUMNS_MISSING_NAME`,[`Option columns missing name:`,`property "name" is required at position ${n}`,`when column is an object literal`]);t[n]=r}else throw new s(`CSV_INVALID_COLUMN_DEFINITION`,[`Invalid column definition:`,`expect a string or a literal object,`,`got ${JSON.stringify(r)} at position ${n}`])}return t}})),py=s(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});let n;e.default=()=>{if(typeof t==`object`&&typeof t.exports==`object`)return n||=d(`fs`),n;throw Error(`File system is not available`)}})),my=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(e,t,n)=>({confidence:n,name:t.name(e),lang:t.language?t.language():void 0})})),hy=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(my());e.default=class{name(){return`ASCII`}match(e){let t=e.rawInput;for(let r=0;r<e.rawLen;r++){let i=t[r];if(i<32||i>126)return(0,n.default)(e,this,0)}return(0,n.default)(e,this,100)}}})),gy=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(my());e.default=class{name(){return`UTF-8`}match(e){let t=!1,r=0,i=0,a=0,o,s=e.rawInput;e.rawLen>=3&&(s[0]&255)==239&&(s[1]&255)==187&&(s[2]&255)==191&&(t=!0);for(let t=0;t<e.rawLen;t++){let n=s[t];if(n&128){if((n&224)==192)a=1;else if((n&240)==224)a=2;else if((n&248)==240)a=3;else{if(i++,i>5)break;a=0}for(;t++,!(t>=e.rawLen);){if((s[t]&192)!=128){i++;break}if(--a==0){r++;break}}}}if(o=0,t&&i==0)o=100;else if(t&&r>i*10)o=80;else if(r>3&&i==0)o=100;else if(r>0&&i==0)o=80;else if(r==0&&i==0)o=10;else if(r>i*10)o=25;else return null;return(0,n.default)(e,this,o)}}})),_y=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.UTF_32LE=e.UTF_32BE=e.UTF_16LE=e.UTF_16BE=void 0;let n=t(my());e.UTF_16BE=class{name(){return`UTF-16BE`}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255?(0,n.default)(e,this,100):null}},e.UTF_16LE=class{name(){return`UTF-16LE`}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254?t.length>=4&&t[2]==0&&t[3]==0?null:(0,n.default)(e,this,100):null}};var r=class{name(){return`UTF-32`}getChar(e,t){return-1}match(e){let t=0,r=0,i=!1,a=0,o=e.rawLen/4*4,s=e.rawInput;if(o==0)return null;this.getChar(s,0)==65279&&(i=!0);for(let e=0;e<o;e+=4){let n=this.getChar(s,e);n<0||n>=1114111||n>=55296&&n<=57343?r+=1:t+=1}return i&&r==0?a=100:i&&t>r*10?a=80:t>3&&r==0?a=100:t>0&&r==0?a=80:t>r*10&&(a=25),a==0?null:(0,n.default)(e,this,a)}};e.UTF_32BE=class extends r{name(){return`UTF-32BE`}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}},e.UTF_32LE=class extends r{name(){return`UTF-32LE`}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}}})),vy=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.gb_18030=e.euc_kr=e.euc_jp=e.big5=e.sjis=void 0;let n=t(my());function r(e,t){let n=(e,t,r,i)=>{if(i<r)return-1;let a=Math.floor(r+i>>>1);return t>e[a]?n(e,t,a+1,i):t<e[a]?n(e,t,r,a-1):a};return n(e,t,0,e.length-1)}var i=class{constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):e.rawInput[this.nextIndex++]&255}},a=class{constructor(){this.commonChars=[]}name(){return`mbcs`}match(e){let t=0,a=0,o=0,s=0,c=0,l=new i;detectBlock:{for(l.reset();this.nextChar(l,e);){if(s++,l.error)o++;else{let e=l.charValue&4294967295;e>255&&(t++,this.commonChars!=null&&r(this.commonChars,e)>=0&&a++)}if(o>=2&&o*5>=t)break detectBlock}if(t<=10&&o==0){c=t==0&&s<10?0:10;break detectBlock}if(t<20*o){c=0;break detectBlock}if(this.commonChars==null)c=30+t-20*o,c>100&&(c=100);else{let e=90/Math.log(t/4);c=Math.floor(Math.log(a+1)*e+10),c=Math.min(c,100)}}return c==0?null:(0,n.default)(e,this,c)}nextChar(e,t){return!0}};e.sjis=class extends a{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return`Shift_JIS`}language(){return`ja`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=e.charValue=e.nextByte(t);if(n<0)return!1;if(n<=127||n>160&&n<=223)return!0;let r=e.nextByte(t);return r<0?!1:(e.charValue=n<<8|r,r>=64&&r<=127||r>=128&&r<=255||(e.error=!0),!0)}},e.big5=class extends a{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return`Big5`}language(){return`zh`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=e.charValue=e.nextByte(t);if(n<0)return!1;if(n<=127||n==255)return!0;let r=e.nextByte(t);return r<0?!1:(e.charValue=e.charValue<<8|r,(r<64||r==127||r==255)&&(e.error=!0),!0)}};function o(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0;buildChar:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break buildChar}if(n<=141)break buildChar;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=161&&n<=254){r<161&&(e.error=!0);break buildChar}if(n==142){r<161&&(e.error=!0);break buildChar}n==143&&(i=e.nextByte(t),e.charValue=e.charValue<<8|i,i<161&&(e.error=!0))}return e.done==0}e.euc_jp=class extends a{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=o}name(){return`EUC-JP`}language(){return`ja`}},e.euc_kr=class extends a{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=o}name(){return`EUC-KR`}language(){return`ko`}},e.gb_18030=class extends a{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return`GB18030`}language(){return`zh`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0,a=0;buildChar:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break buildChar}if(n<=128)break buildChar;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=129&&n<=254){if(r>=64&&r<=126||r>=80&&r<=254)break buildChar;if(r>=48&&r<=57&&(i=e.nextByte(t),i>=129&&i<=254&&(a=e.nextByte(t),a>=48&&a<=57))){e.charValue=e.charValue<<16|i<<8|a;break buildChar}e.error=!0;break buildChar}}return e.done==0}}})),yy=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.KOI8_R=e.windows_1256=e.windows_1251=e.ISO_8859_9=e.ISO_8859_8=e.ISO_8859_7=e.ISO_8859_6=e.ISO_8859_5=e.ISO_8859_2=e.ISO_8859_1=void 0;let n=t(my());var r=class{constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let n=0;return e[n+32]<=t&&(n+=32),e[n+16]<=t&&(n+=16),e[n+8]<=t&&(n+=8),e[n+4]<=t&&(n+=4),e[n+2]<=t&&(n+=2),e[n+1]<=t&&(n+=1),e[n]>t&&--n,n<0||e[n]!=t?-1:n}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&16777215,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:e.inputBytes[this.byteIndex++]&255}parse(e,t){let n,r=!1;for(this.spaceChar=t;(n=this.nextByte(e))>=0;){let e=this.byteMap[n];e!=0&&(e==this.spaceChar&&r||this.addByte(e),r=e==this.spaceChar)}this.addByte(this.spaceChar);let i=this.hitCount/this.ngramCount;return i>.33?98:Math.floor(i*300)}},i=class{constructor(e,t){this.fLang=e,this.fNGrams=t}};let a=e=>Array.isArray(e)&&isFinite(e[0]);var o=class{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return`sbcs`}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(a(t)){let i=new r(t,this.byteMap()).parse(e,this.spaceChar);return i<=0?null:(0,n.default)(e,this,i)}let i=-1;for(let n=t.length-1;n>=0;n--){let a=t[n],o=new r(a.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>i&&(i=o,this.nGramLang=a.fLang)}return i<=0?null:(0,n.default)(e,this,i)}};e.ISO_8859_1=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new i(`da`,[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new i(`de`,[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new i(`en`,[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new i(`es`,[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new i(`fr`,[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new i(`it`,[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new i(`nl`,[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new i(`no`,[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new i(`pt`,[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new i(`sv`,[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?`windows-1252`:`ISO-8859-1`}},e.ISO_8859_2=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new i(`cs`,[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new i(`hu`,[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new i(`pl`,[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new i(`ro`,[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?`windows-1250`:`ISO-8859-2`}},e.ISO_8859_5=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return`ISO-8859-5`}language(){return`ru`}},e.ISO_8859_6=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return`ISO-8859-6`}language(){return`ar`}},e.ISO_8859_7=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?`windows-1253`:`ISO-8859-7`}language(){return`el`}},e.ISO_8859_8=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new i(`he`,[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new i(`he`,[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?`windows-1255`:`ISO-8859-8`}language(){return`he`}},e.ISO_8859_9=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?`windows-1254`:`ISO-8859-9`}language(){return`tr`}},e.windows_1251=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return`windows-1251`}language(){return`ru`}},e.windows_1256=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return`windows-1256`}language(){return`ar`}},e.KOI8_R=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return`KOI8-R`}language(){return`ru`}}})),by=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ISO_2022_CN=e.ISO_2022_KR=e.ISO_2022_JP=void 0;let n=t(my());var r=class{constructor(){this.escapeSequences=[]}name(){return`ISO_2022`}match(e){let t,r,i,a=0,o=0,s=0,c,l=e.inputBytes,u=e.inputLen;scanInput:for(t=0;t<u;t++){if(l[t]==27){checkEscapes:for(i=0;i<this.escapeSequences.length;i++){let e=this.escapeSequences[i];if(u-t<e.length)continue checkEscapes;for(r=1;r<e.length;r++)if(e[r]!=l[t+r])continue checkEscapes;a++,t+=e.length-1;continue scanInput}o++}(l[t]==14||l[t]==15)&&s++}return a==0?null:(c=(100*a-100*o)/(a+o),a+s<5&&(c-=(5-(a+s))*10),c<=0?null:(0,n.default)(e,this,c))}};e.ISO_2022_JP=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return`ISO-2022-JP`}language(){return`ja`}},e.ISO_2022_KR=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return`ISO-2022-KR`}language(){return`kr`}},e.ISO_2022_CN=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return`ISO-2022-CN`}language(){return`zh`}}})),xy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isByteArray=void 0,e.isByteArray=e=>typeof e!=`object`||!e?!1:isFinite(e.length)&&e.length>=0})),Sy=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.detectFileSync=e.detectFile=e.analyse=e.detect=void 0;let a=i(py()),o=i(hy()),s=i(gy()),c=r(_y()),l=r(vy()),u=r(yy()),d=r(by()),f=xy(),p=[new s.default,new c.UTF_16BE,new c.UTF_16LE,new c.UTF_32BE,new c.UTF_32LE,new l.sjis,new l.big5,new l.euc_jp,new l.euc_kr,new l.gb_18030,new d.ISO_2022_JP,new d.ISO_2022_KR,new d.ISO_2022_CN,new u.ISO_8859_1,new u.ISO_8859_2,new u.ISO_8859_5,new u.ISO_8859_6,new u.ISO_8859_7,new u.ISO_8859_8,new u.ISO_8859_9,new u.windows_1251,new u.windows_1256,new u.KOI8_R,new o.default];e.detect=t=>{let n=(0,e.analyse)(t);return n.length>0?n[0].name:null},e.analyse=e=>{if(!(0,f.isByteArray)(e))throw Error(`Input must be a byte array, e.g. Buffer or Uint8Array`);let t=[];for(let e=0;e<256;e++)t[e]=0;for(let n=e.length-1;n>=0;n--)t[e[n]&255]++;let n=!1;for(let e=128;e<=159;e+=1)if(t[e]!==0){n=!0;break}let r={byteStats:t,c1Bytes:n,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};return p.map(e=>e.match(r)).filter(e=>!!e).sort((e,t)=>t.confidence-e.confidence)},e.detectFile=(t,n={})=>new Promise((r,i)=>{let o,s=(0,a.default)(),c=(t,n)=>{o&&s.closeSync(o),t?i(t):r((0,e.detect)(n))};if(n&&n.sampleSize){o=s.openSync(t,`r`);let e=Buffer.allocUnsafe(n.sampleSize);s.read(o,e,0,n.sampleSize,n.offset,t=>{c(t,e)});return}s.readFile(t,c)}),e.detectFileSync=(t,n={})=>{let r=(0,a.default)();if(n&&n.sampleSize){let i=r.openSync(t,`r`),a=Buffer.allocUnsafe(n.sampleSize);return r.readSync(i,a,0,n.sampleSize,n.offset),r.closeSync(i),(0,e.detect)(a)}return(0,e.detect)(r.readFileSync(t))},e.default={analyse:e.analyse,detect:e.detect,detectFileSync:e.detectFileSync,detectFile:e.detectFile}})),Cy=s(((e,t)=>{t.exports=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}})),wy=s(((e,t)=>{let n=Cy(),r=(e,t)=>t===1?e:`${e}s`;t.exports=(e,t={})=>{if(!Number.isFinite(e))throw TypeError(`Expected a finite number`);t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[],a=(e,t)=>{let n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)},o=(e,n,a,o)=>{if((i.length===0||!t.colonNotation)&&e===0&&!(t.colonNotation&&a===`m`))return;o=(o||e||`0`).toString();let s,c;if(t.colonNotation){s=i.length>0?`:`:``,c=``;let e=o.includes(`.`)?o.split(`.`)[0].length:o.length,t=i.length>0?2:1;o=`0`.repeat(Math.max(0,t-e))+o}else s=``,c=t.verbose?` `+r(n,e):a;i.push(s+o+c)},s=n(e);if(o(Math.trunc(s.days/365),`year`,`y`),o(s.days%365,`day`,`d`),o(s.hours,`hour`,`h`),o(s.minutes,`minute`,`m`),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(o(s.seconds,`second`,`s`),t.formatSubMilliseconds)o(s.milliseconds,`millisecond`,`ms`),o(s.microseconds,`microsecond`,`µs`),o(s.nanoseconds,`nanosecond`,`ns`);else{let e=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,n=typeof t.millisecondsDecimalDigits==`number`?t.millisecondsDecimalDigits:0,r=n?e.toFixed(n):e>=1?Math.round(e):Math.ceil(e);o(Number.parseFloat(r,10),`millisecond`,`ms`,r)}else{let n=a(e/1e3%60,typeof t.secondsDecimalDigits==`number`?t.secondsDecimalDigits:1),r=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,``);o(Number.parseFloat(r,10),`second`,`s`,r)}if(i.length===0)return`0`+(t.verbose?` milliseconds`:`ms`);if(t.compact)return i[0];if(typeof t.unitCount==`number`){let e=t.colonNotation?``:` `;return i.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?i.join(``):i.join(` `)}})),Ty=s((e=>{let t=`bits`,n=`bytes`,r=`jedec`,i=`round`,a=`string`,o={symbol:{iec:{bits:[`bit`,`Kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],bytes:[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`]},jedec:{bits:[`bit`,`Kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],bytes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`]}},fullform:{iec:[``,`kibi`,`mebi`,`gibi`,`tebi`,`pebi`,`exbi`,`zebi`,`yobi`],jedec:[``,`kilo`,`mega`,`giga`,`tera`,`peta`,`exa`,`zetta`,`yotta`]}};function s(e,{bits:s=!1,pad:c=!1,base:l=-1,round:u=2,locale:d=``,localeOptions:f={},separator:p=``,spacer:m=` `,symbols:h={},standard:g=``,output:_=a,fullform:v=!1,fullforms:y=[],exponent:b=-1,roundingMethod:x=i,precision:S=0}={}){let C=b,w=Number(e),T=[],E=0,D=``;g===`si`?(l=10,g=r):g===`iec`||g===r?l=2:l===2?g=`iec`:(l=10,g=r);let O=l===10?1e3:1024,k=v===!0,A=w<0,j=Math[x];if(typeof e!=`bigint`&&isNaN(e))throw TypeError(`Invalid number`);if(typeof j!=`function`)throw TypeError(`Invalid rounding method`);if(A&&(w=-w),(C===-1||isNaN(C))&&(C=Math.floor(Math.log(w)/Math.log(O)),C<0&&(C=0)),C>8&&(S>0&&(S+=8-C),C=8),_===`exponent`)return C;if(w===0)T[0]=0,D=T[1]=o.symbol[g][s?t:n][C];else{E=w/(l===2?2**(C*10):1e3**C),s&&(E*=8,E>=O&&C<8&&(E/=O,C++));let e=10**(C>0?u:0);T[0]=j(E*e)/e,T[0]===O&&C<8&&b===-1&&(T[0]=1,C++),D=T[1]=l===10&&C===1?s?`kbit`:`kB`:o.symbol[g][s?t:n][C]}if(A&&(T[0]=-T[0]),S>0&&(T[0]=T[0].toPrecision(S)),T[1]=h[T[1]]||T[1],d===!0?T[0]=T[0].toLocaleString():d.length>0?T[0]=T[0].toLocaleString(d,f):p.length>0&&(T[0]=T[0].toString().replace(`.`,p)),c&&Number.isInteger(T[0])===!1&&u>0){let e=p||`.`,t=T[0].toString().split(e),n=t[1]||``,r=n.length,i=u-r;T[0]=`${t[0]}${e}${n.padEnd(r+i,`0`)}`}return k&&(T[1]=y[C]?y[C]:o.fullform[g][C]+(s?`bit`:`byte`)+(T[0]===1?``:`s`)),_===`array`?T:_===`object`?{value:T[0],symbol:T[1],exponent:C,unit:D}:T.join(m)}function c({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:o=``,localeOptions:c={},separator:l=``,spacer:u=` `,symbols:d={},standard:f=``,output:p=a,fullform:m=!1,fullforms:h=[],exponent:g=-1,roundingMethod:_=i,precision:v=0}={}){return i=>s(i,{bits:e,pad:t,base:n,round:r,locale:o,localeOptions:c,separator:l,spacer:u,symbols:d,standard:f,output:p,fullform:m,fullforms:h,exponent:g,roundingMethod:_,precision:v})}e.filesize=s,e.partial=c})),Ey=s(((e,t)=>{var n=d(`fs`),{Url:r}=es(),i=Q(),a=Sy(),o=wy(),{filesize:s}=Ty(),c=Ba(),l=iv(),u,f=_e().version,p=` / `,m={spacer:``},h={ASCII:`ascii`,"UTF-8":`utf8`,"UTF-16LE":`utf16le`,"ISO-8859-1":`latin1`},g={"api.postman.com":!0,"api.getpostman.com":!0},_=`https://api.postman.com`,v={collection:`collections`,environment:`environments`},y=`X-Api-Key`,b=`Newman/`+f,x=/^[0-9A-Z]+-[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;u={version:f,userAgent:b,prettyms:function(e){return e<1?`${parseInt(e*1e3,10)}µs`:e<1998?`${parseInt(e,10)}ms`:o(e||0)},beautifyTime:function(e){return i.forEach(e,(t,n)=>{t&&(e[n]=this.prettyms(t))})},filesize:function(e){return s(e||0,m)},getFullName:function(e,t){if(!(i.isEmpty(e)||!i.isFunction(e.parent)||!i.isFunction(e.forEachParent))){var n=[];return e.forEachParent(function(e){n.unshift(e.name||e.id)}),e.parent()&&n.push(e.name||e.id),n.join(i.isString(t)?t:p)}},detectEncoding:function(e){return h[a.detect(e)]},fetchJson:function(e,t,a,o){!o&&i.isFunction(a)&&(o=a,a={});let s=i.get(a,`postmanApiKey`),d={"User-Agent":b},f=new r(t),p=f&&g[f.getHost().toLowerCase()];if(!n.existsSync(t)&&v[e]&&s&&x.test(t)&&(t=`${_}/${v[e]}/${t}`,d[y]=s),p){let e=f.query.get(`apikey`)||s;e&&(d[y]=e),f.query.remove(`apikey`),t=f.toString()}return/^https?:\/\/.*/.test(t)?l.get({url:t,json:!0,headers:d},(e,n,r)=>{if(e)return o(i.set(e,`help`,`unable to fetch data from url "${t}"`));try{i.isString(r)&&(r=c.parse(r.trim()))}catch(e){return o(i.set(e,`help`,`the url "${t}" did not provide valid JSON data`))}if(n.statusCode!==200){let e=p?i(f.getPath()).split(`/`).get(1).slice(0,-1):`resource`,t=Error(i.get(r,`error.message`,`Error fetching ${e}, the provided URL returned status code: ${n.statusCode}`));return o(i.assign(t,{name:i.get(r,`error.name`,i.capitalize(e)+`FetchError`),help:`Error fetching the ${e} from the provided URL. Ensure that the URL is valid.`}))}return o(null,r)}):n.readFile(t,function(e,n){if(e)return o(i.set(e,`help`,`unable to read data from file "${t}"`));try{n=c.parse(n.toString(u.detectEncoding(n)).trim())}catch(e){return o(i.set(e,`help`,`the file at "${t}" does not contain valid JSON data`))}return o(null,n)})},fetch:function(e,t,r){return!r&&i.isFunction(t)&&(r=t,t={}),/^https?:\/\/.*/.test(e)?l.get({url:e},(e,t,n)=>e?r(e):r(null,n)):n.readFile(String(e),function(e,t){return e?r(e):r(null,t.toString(u.detectEncoding(t)))})},isV1Collection:function(e){return!!(e&&e.name&&e.order&&e.requests)},isInt:function(e){return/^(-|\+)?([1-9]+[0-9]*)$/.test(e)},isFloat:function(e){return e-parseFloat(e)+1>=0}},t.exports=u})),Dy=s(((e,t)=>{t.exports={}})),Oy=s(((e,t)=>{var n=Q(),r=d(`fs`),i=d(`path`).join,a=ns(),o=Ey(),s=Ba(),c=`postman`,l=`newmanrc`;t.exports.load=t=>{var u=/^win/.test(process.platform),d=u?process.env.USERPROFILE:process.env.HOME,f=[];!u&&f.push(i(`/etc`,c,l)),d&&f.push(i(d,`.`+c,l)),f.push(i(process.cwd(),`.`+l)),a.mapSeries(f,(e,t)=>{r.readFile(e,(r,i)=>{if(r)return t(null,{});i&&i.toString&&(i=i.toString(o.detectEncoding(i)).trim());try{return t(null,s.parse(i))}catch(r){return t(n.set(r,`help`,`The file at ${e} contains invalid data.`))}})},(r,i)=>r?t(r):t(null,n.merge.apply(e,i)))}})),ky=s(((e,t)=>{var n=Q(),r=ns(),i=Dy(),a=Oy();t.exports.get=(e,t,o)=>{!o&&n.isFunction(t)&&(o=t,t={});var s=t.loaders,c=n.pick(e,[`postmanApiKey`]);r.waterfall([t.ignoreRcFile?e=>e(null,{}):a.load,(e,r)=>(e[t.command]&&(e=e[t.command]),r(null,n.merge(e,t.ignoreProcessEnvironment?{}:i)))],(t,i)=>{if(t)return o(t);if(i=n.mergeWith({},i,e,(e,t)=>t===null?e:void 0),n.isEmpty(s))return o(null,i);i.environment||={},i.globals||={},r.mapValues(i,(e,t,r)=>e&&n.isFunction(s[t])?s[t](e,c,r):r(null,e),o)})}})),Ay=s(((e,t)=>{var n=Q(),r=d(`fs`),i=ns(),a=es().Collection,o=es().VariableScope,s=qs().CookieJar,c=uy(),l=Ba(),u=fy(),f=Ey(),p=ky(),m=`collection could not be loaded`,h=`iteration data could not be loaded`,g=`could not load `,_={inputVersion:`1.0.0`,outputVersion:`2.1.0`},v=function(e,t){if(e=e[t]||e,n.isObject(e))return!e.values&&n.isObject(e[t])&&(e=e[t]),e},y=function(e,t,r,i){return n.isString(t)?f.fetchJson(e,t,r,function(t,n){return t?i(t):i(null,v(n,e))}):i(null,v(t,e))},b=function(e,t){if(f.isV1Collection(e))return console.warn(`newman: Newman v4 deprecates support for the v1 collection format`),console.warn(` Use the Postman Native app to export collections in the v2 format
|
|
558
|
-
`),c.convert(e,_,t);t(null,e)},x=function(e,t,r,i){var a=function(t,r){if(t)return i(Error(g+`${e}\n ${t.message||t}`));if(!n.isObject(r))return a(Error(g+e));i(null,new o(o.isVariableScope(r)?r.toJSON():r))};if(n.isObject(t))return a(null,t);y(e,t,r,a)},S=function(e,t){return t.quoting?e:f.isInt(e)?parseInt(e,10):f.isFloat(e)?parseFloat(e):e},C={collection:function(e,t,r){var i=function(e,t){if(e)return r(e);if(!n.isObject(t))return r(Error(m));t=new a(a.isCollection(t)?t.toJSON():t),r(null,t)};if(n.isObject(e))return b(e,i);y(`collection`,e,t,function(e,t){return e?i(Error(m+(e.help?`\n ${e.help}`:``)+`\n ${e.message||e}`)):n.isObject(t)?b(t,i):i(Error(m))})},environment:x.bind(e,`environment`),globals:x.bind(e,`globals`),folder:function(e,t,n){if(!e.length)return n();if(Array.isArray(e)&&e.length===1)return n(null,e[0]);n(null,e)},iterationData:function(e,t,r){if(n.isArray(e))return r(null,e);f.fetch(e,function(e,t){if(e)return r(Error(h+`\n ${e.message||e}`));i.waterfall([e=>{try{return e(null,l.parse(t.trim()))}catch{return e(null,void 0)}},(e,n)=>{if(e)return n(null,e);u(t,{columns:!0,escape:`"`,cast:S,trim:!0,relax:!0,relax_column_count:!0,bom:!0},n)}],(e,t)=>{if(e)return r(Error(h+`\n ${e.message||e}`));r(null,t)})})},sslClientCertList:function(e,t,n){if(Array.isArray(e))return n(null,e);if(typeof e!=`string`)return n(Error(`path for ssl client certificates list file must be a string`));r.readFile(e,function(t,r){if(t)return n(Error(`unable to read the ssl client certificates file "${e}"`));try{r=l.parse(r.toString(f.detectEncoding(r)).trim())}catch{return n(Error(`the file at ${e} does not contain valid JSON data.`))}return Array.isArray(r)?n(null,r):n(Error(`expected ssl client certificates list to be an array.`))})},cookieJar:function(e,t,i){if(n.isObject(e)&&e.constructor.name===`CookieJar`)return i(null,e);if(typeof e!=`string`)return i(Error(`cookieJar must be a path to a JSON file or a CookieJar instance`));r.readFile(e,function(t,n){if(t)return i(Error(`unable to read the cookie jar file "${e}"`));try{n=s.fromJSON(n.toString())}catch{return i(Error(`the file at ${e} does not contain valid JSON data.`))}return i(null,n)})}};t.exports=function(e,t){e.newmanVersion=f.version,e.workingDir=e.workingDir||process.cwd(),e.insecureFileRead=!!n.get(e,`insecureFileRead`,!0),p.get(e,{loaders:C,command:`run`},function(r,i){if(r)return t(r);!n.isEmpty(e.globalVar)&&n.forEach(e.globalVar,function(e){e&&i.globals.set(e.key,e.value)}),!n.isEmpty(e.envVar)&&n.forEach(e.envVar,function(e){e&&i.environment.set(e.key,e.value)}),t(null,i)})}})),jy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.optsArg=void 0;let t=d(`fs`);e.optsArg=e=>{if(!e)e={mode:511};else if(typeof e==`object`)e={mode:511,...e};else if(typeof e==`number`)e={mode:e};else if(typeof e==`string`)e={mode:parseInt(e,8)};else throw TypeError(`invalid options argument`);let n=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||t.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,t)=>new Promise((r,i)=>n.mkdir(e,t,(e,t)=>e?i(e):r(t))),e.stat=e.stat||r.stat||t.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((t,r)=>n.stat(e,(e,n)=>e?r(e):t(n))),e.statSync=e.statSync||r.statSync||t.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||t.mkdirSync,n}})),My=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirpManual=e.mkdirpManualSync=void 0;let t=d(`path`),n=jy();e.mkdirpManualSync=(r,i,a)=>{let o=(0,t.dirname)(r),s={...(0,n.optsArg)(i),recursive:!1};if(o===r)try{return s.mkdirSync(r,s)}catch(e){let t=e;if(t&&t.code!==`EISDIR`)throw e;return}try{return s.mkdirSync(r,s),a||r}catch(t){let n=t;if(n&&n.code===`ENOENT`)return(0,e.mkdirpManualSync)(r,s,(0,e.mkdirpManualSync)(o,s,a));if(n&&n.code!==`EEXIST`&&n&&n.code!==`EROFS`)throw t;try{if(!s.statSync(r).isDirectory())throw t}catch{throw t}}},e.mkdirpManual=Object.assign(async(r,i,a)=>{let o=(0,n.optsArg)(i);o.recursive=!1;let s=(0,t.dirname)(r);return s===r?o.mkdirAsync(r,o).catch(e=>{let t=e;if(t&&t.code!==`EISDIR`)throw e}):o.mkdirAsync(r,o).then(()=>a||r,async t=>{let n=t;if(n&&n.code===`ENOENT`)return(0,e.mkdirpManual)(s,o).then(t=>(0,e.mkdirpManual)(r,o,t));if(n&&n.code!==`EEXIST`&&n.code!==`EROFS`)throw t;return o.statAsync(r).then(e=>{if(e.isDirectory())return a;throw t},()=>{throw t})})},{sync:e.mkdirpManualSync})})),Ny=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.findMadeSync=e.findMade=void 0;let t=d(`path`);e.findMade=async(n,r,i)=>{if(i!==r)return n.statAsync(r).then(e=>e.isDirectory()?i:void 0,i=>{let a=i;return a&&a.code===`ENOENT`?(0,e.findMade)(n,(0,t.dirname)(r),r):void 0})},e.findMadeSync=(n,r,i)=>{if(i!==r)try{return n.statSync(r).isDirectory()?i:void 0}catch(i){let a=i;return a&&a.code===`ENOENT`?(0,e.findMadeSync)(n,(0,t.dirname)(r),r):void 0}}})),Py=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirpNative=e.mkdirpNativeSync=void 0;let t=d(`path`),n=Ny(),r=My(),i=jy();e.mkdirpNativeSync=(e,a)=>{let o=(0,i.optsArg)(a);if(o.recursive=!0,(0,t.dirname)(e)===e)return o.mkdirSync(e,o);let s=(0,n.findMadeSync)(o,e);try{return o.mkdirSync(e,o),s}catch(t){let n=t;if(n&&n.code===`ENOENT`)return(0,r.mkdirpManualSync)(e,o);throw t}},e.mkdirpNative=Object.assign(async(e,a)=>{let o={...(0,i.optsArg)(a),recursive:!0};return(0,t.dirname)(e)===e?await o.mkdirAsync(e,o):(0,n.findMade)(o,e).then(t=>o.mkdirAsync(e,o).then(e=>t||e).catch(t=>{let n=t;if(n&&n.code===`ENOENT`)return(0,r.mkdirpManual)(e,o);throw t}))},{sync:e.mkdirpNativeSync})})),Fy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pathArg=void 0;let t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,n=d(`path`);e.pathArg=e=>{if(/\0/.test(e))throw Object.assign(TypeError(`path must be a string without null bytes`),{path:e,code:`ERR_INVALID_ARG_VALUE`});if(e=(0,n.resolve)(e),t===`win32`){let t=/[*|"<>?:]/,{root:r}=(0,n.parse)(e);if(t.test(e.substring(r.length)))throw Object.assign(Error(`Illegal characters in path.`),{path:e,code:`EINVAL`})}return e}})),Iy=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.useNative=e.useNativeSync=void 0;let t=d(`fs`),n=jy(),r=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,``).split(`.`),i=+r[0]>10||+r[0]==10&&+r[1]>=12;e.useNativeSync=i?e=>(0,n.optsArg)(e).mkdirSync===t.mkdirSync:()=>!1,e.useNative=Object.assign(i?e=>(0,n.optsArg)(e).mkdir===t.mkdir:()=>!1,{sync:e.useNativeSync})})),Ly=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirp=e.nativeSync=e.native=e.manualSync=e.manual=e.sync=e.mkdirpSync=e.useNativeSync=e.useNative=e.mkdirpNativeSync=e.mkdirpNative=e.mkdirpManualSync=e.mkdirpManual=void 0;let t=My(),n=Py(),r=jy(),i=Fy(),a=Iy();var o=My();Object.defineProperty(e,`mkdirpManual`,{enumerable:!0,get:function(){return o.mkdirpManual}}),Object.defineProperty(e,`mkdirpManualSync`,{enumerable:!0,get:function(){return o.mkdirpManualSync}});var s=Py();Object.defineProperty(e,`mkdirpNative`,{enumerable:!0,get:function(){return s.mkdirpNative}}),Object.defineProperty(e,`mkdirpNativeSync`,{enumerable:!0,get:function(){return s.mkdirpNativeSync}});var c=Iy();Object.defineProperty(e,`useNative`,{enumerable:!0,get:function(){return c.useNative}}),Object.defineProperty(e,`useNativeSync`,{enumerable:!0,get:function(){return c.useNativeSync}}),e.mkdirpSync=(e,o)=>{e=(0,i.pathArg)(e);let s=(0,r.optsArg)(o);return(0,a.useNativeSync)(s)?(0,n.mkdirpNativeSync)(e,s):(0,t.mkdirpManualSync)(e,s)},e.sync=e.mkdirpSync,e.manual=t.mkdirpManual,e.manualSync=t.mkdirpManualSync,e.native=n.mkdirpNative,e.nativeSync=n.mkdirpNativeSync,e.mkdirp=Object.assign(async(e,o)=>{e=(0,i.pathArg)(e);let s=(0,r.optsArg)(o);return(0,a.useNative)(s)?(0,n.mkdirpNative)(e,s):(0,t.mkdirpManual)(e,s)},{mkdirpSync:e.mkdirpSync,mkdirpNative:n.mkdirpNative,mkdirpNativeSync:n.mkdirpNativeSync,mkdirpManual:t.mkdirpManual,mkdirpManualSync:t.mkdirpManualSync,sync:e.mkdirpSync,native:n.mkdirpNative,nativeSync:n.mkdirpNativeSync,manual:t.mkdirpManual,manualSync:t.mkdirpManualSync,useNative:a.useNative,useNativeSync:a.useNativeSync})})),Ry=s(((e,t)=>{var n=d(`fs`),{join:r,parse:i,resolve:a}=d(`path`),o=Q(),s=ns(),{mkdirp:c}=Ly(),l=``,u=`-`,f=function(e,t,r,i){n.writeFile(e.unparsed,t,function(t){i(o.set(t,`help`,`error writing file "${e.unparsed}" for ${r.name||`unknown-source`}`),e)})},p=function(e,t){return(e||new Date).toISOString().replace(/[^\d]+/g,o.isString(t)?t:u)};t.exports=function(e,t){var u=o.isString(e.path)&&i(a(e.path)),d=o.isPlainObject(e.content)?JSON.stringify(e.content,0,2):e.content||l;!u&&o.isString(e.default)&&(u=i(e.default),u.root=l,u.dir=`newman`,u.name=`${u.name}-${p()}0`,u.base=u.name+u.ext),u&&u.base&&(u.unparsed=r(u.dir,u.base),u.dir?s.waterfall([function(t){c(u.dir).then(()=>t()).catch(n=>t(o.set(n,`help`,`error creating path for file "${u.unparsed}" for ${e.name||`unknown-source`}`)))},function(e){n.stat(u.unparsed,function(t,n){e(null,n)})},function(t,n){var a;t&&t.isDirectory()&&(a=i(e.default),a.name+=`-`+p()+`0`,a.base=a.name+a.ext,u.unparsed=r(u.unparsed,a.base)),n(null,u)},function(t,n){f(t,d,e,n)}],t):f(u,d,e,t))}})),zy=s(((e,t)=>{let n=[],r=0,i=(e,t)=>{r>=t&&n.push(e)};i.WARN=1,i.INFO=2,i.DEBUG=3,i.reset=()=>{n=[]},i.setDebugLevel=e=>{r=e},i.warn=e=>i(e,i.WARN),i.info=e=>i(e,i.INFO),i.debug=e=>i(e,i.DEBUG),i.debugMessages=()=>n,t.exports=i})),By=s(((e,t)=>{t.exports=({onlyFirst:e=!1}={})=>{let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}})),Vy=s(((e,t)=>{let n=By();t.exports=e=>typeof e==`string`?e.replace(n(),``):e})),Hy=s(((e,t)=>{let n=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);t.exports=n,t.exports.default=n})),Uy=s(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),Wy=s(((e,t)=>{let n=Vy(),r=Hy(),i=Uy(),a=e=>{if(typeof e!=`string`||e.length===0||(e=n(e),e.length===0))return 0;e=e.replace(i(),` `);let t=0;for(let n=0;n<e.length;n++){let i=e.codePointAt(n);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&n++,t+=r(i)?2:1)}return t};t.exports=a,t.exports.default=a})),Gy=s(((e,t)=>{let n=Wy();function r(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function i(e){let t=r();return(``+e).replace(t,``).split(`
|
|
557
|
+
`,n)),this.state.recordDelimiterMaxLength=1,1):0}__error(e){let{skip_lines_with_error:t}=this.options,n=typeof e==`string`?Error(e):e;if(t){this.state.recordHasError=!0,this.emit(`skip`,n);return}else return n}__infoDataSet(){return{...this.info,columns:this.options.columns}}__infoRecord(){let{columns:e}=this.options;return{...this.__infoDataSet(),error:this.state.error,header:e===!0,index:this.state.record.length}}__infoField(){let{columns:e}=this.options,t=Array.isArray(e);return{...this.__infoRecord(),column:t===!0?e.length>this.state.record.length?e[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}}};let o=function(){let e,t,n;for(let r in arguments){let i=arguments[r],a=typeof i;if(e===void 0&&(typeof i==`string`||Buffer.isBuffer(i)))e=i;else if(t===void 0&&l(i))t=i;else if(n===void 0&&a===`function`)n=i;else throw new s(`CSV_INVALID_ARGUMENT`,[`Invalid argument:`,`got ${JSON.stringify(i)} at index ${r}`],t||{})}let r=new a(t);if(n){let e=t===void 0||t.objname===void 0?[]:{};r.on(`readable`,function(){let n;for(;(n=this.read())!==null;)t===void 0||t.objname===void 0?e.push(n):e[n[0]]=n[1]}),r.on(`error`,function(e){n(e,void 0,r.__infoDataSet())}),r.on(`end`,function(){n(void 0,e,r.__infoDataSet())})}return e!==void 0&&(typeof setImmediate==`function`?setImmediate(function(){r.write(e),r.end()}):(r.write(e),r.end())),r};var s=class e extends Error{constructor(t,n,r,...i){Array.isArray(n)&&(n=n.join(` `)),super(n),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,e),this.code=t;for(let e of i)for(let t in e){let n=e[t];this[t]=Buffer.isBuffer(n)?n.toString(r.encoding):n==null?n:JSON.parse(JSON.stringify(n))}}};o.Parser=a,o.CsvError=s,t.exports=o;let c=function(e){return e.replace(/([A-Z])/g,function(e,t){return`_`+t.toLowerCase()})},l=function(e){return typeof e==`object`&&!!e&&!Array.isArray(e)},u=function(e){return e.every(e=>e==null||e.toString&&e.toString().trim()===``)},f=function(e){let t=[];for(let n=0,r=e.length;n<r;n++){let r=e[n];if(r==null||r===!1)t[n]={disabled:!0};else if(typeof r==`string`)t[n]={name:r};else if(l(r)){if(typeof r.name!=`string`)throw new s(`CSV_OPTION_COLUMNS_MISSING_NAME`,[`Option columns missing name:`,`property "name" is required at position ${n}`,`when column is an object literal`]);t[n]=r}else throw new s(`CSV_INVALID_COLUMN_DEFINITION`,[`Invalid column definition:`,`expect a string or a literal object,`,`got ${JSON.stringify(r)} at position ${n}`])}return t}})),Cv=s(((e,t)=>{Object.defineProperty(e,`__esModule`,{value:!0});let n;e.default=()=>{if(typeof t==`object`&&typeof t.exports==`object`)return n||=d(`fs`),n;throw Error(`File system is not available`)}})),wv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.default=(e,t,n)=>({confidence:n,name:t.name(e),lang:t.language?t.language():void 0})})),Tv=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(wv());e.default=class{name(){return`ASCII`}match(e){let t=e.rawInput;for(let r=0;r<e.rawLen;r++){let i=t[r];if(i<32||i>126)return(0,n.default)(e,this,0)}return(0,n.default)(e,this,100)}}})),Ev=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0});let n=t(wv());e.default=class{name(){return`UTF-8`}match(e){let t=!1,r=0,i=0,a=0,o,s=e.rawInput;e.rawLen>=3&&(s[0]&255)==239&&(s[1]&255)==187&&(s[2]&255)==191&&(t=!0);for(let t=0;t<e.rawLen;t++){let n=s[t];if(n&128){if((n&224)==192)a=1;else if((n&240)==224)a=2;else if((n&248)==240)a=3;else{if(i++,i>5)break;a=0}for(;t++,!(t>=e.rawLen);){if((s[t]&192)!=128){i++;break}if(--a==0){r++;break}}}}if(o=0,t&&i==0)o=100;else if(t&&r>i*10)o=80;else if(r>3&&i==0)o=100;else if(r>0&&i==0)o=80;else if(r==0&&i==0)o=10;else if(r>i*10)o=25;else return null;return(0,n.default)(e,this,o)}}})),Dv=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.UTF_32LE=e.UTF_32BE=e.UTF_16LE=e.UTF_16BE=void 0;let n=t(wv());e.UTF_16BE=class{name(){return`UTF-16BE`}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==254&&(t[1]&255)==255?(0,n.default)(e,this,100):null}},e.UTF_16LE=class{name(){return`UTF-16LE`}match(e){let t=e.rawInput;return t.length>=2&&(t[0]&255)==255&&(t[1]&255)==254?t.length>=4&&t[2]==0&&t[3]==0?null:(0,n.default)(e,this,100):null}};var r=class{name(){return`UTF-32`}getChar(e,t){return-1}match(e){let t=0,r=0,i=!1,a=0,o=e.rawLen/4*4,s=e.rawInput;if(o==0)return null;this.getChar(s,0)==65279&&(i=!0);for(let e=0;e<o;e+=4){let n=this.getChar(s,e);n<0||n>=1114111||n>=55296&&n<=57343?r+=1:t+=1}return i&&r==0?a=100:i&&t>r*10?a=80:t>3&&r==0?a=100:t>0&&r==0?a=80:t>r*10&&(a=25),a==0?null:(0,n.default)(e,this,a)}};e.UTF_32BE=class extends r{name(){return`UTF-32BE`}getChar(e,t){return(e[t+0]&255)<<24|(e[t+1]&255)<<16|(e[t+2]&255)<<8|e[t+3]&255}},e.UTF_32LE=class extends r{name(){return`UTF-32LE`}getChar(e,t){return(e[t+3]&255)<<24|(e[t+2]&255)<<16|(e[t+1]&255)<<8|e[t+0]&255}}})),Ov=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.gb_18030=e.euc_kr=e.euc_jp=e.big5=e.sjis=void 0;let n=t(wv());function r(e,t){let n=(e,t,r,i)=>{if(i<r)return-1;let a=Math.floor(r+i>>>1);return t>e[a]?n(e,t,a+1,i):t<e[a]?n(e,t,r,a-1):a};return n(e,t,0,e.length-1)}var i=class{constructor(){this.charValue=0,this.index=0,this.nextIndex=0,this.error=!1,this.done=!1}reset(){this.charValue=0,this.index=-1,this.nextIndex=0,this.error=!1,this.done=!1}nextByte(e){return this.nextIndex>=e.rawLen?(this.done=!0,-1):e.rawInput[this.nextIndex++]&255}},a=class{constructor(){this.commonChars=[]}name(){return`mbcs`}match(e){let t=0,a=0,o=0,s=0,c=0,l=new i;detectBlock:{for(l.reset();this.nextChar(l,e);){if(s++,l.error)o++;else{let e=l.charValue&4294967295;e>255&&(t++,this.commonChars!=null&&r(this.commonChars,e)>=0&&a++)}if(o>=2&&o*5>=t)break detectBlock}if(t<=10&&o==0){c=t==0&&s<10?0:10;break detectBlock}if(t<20*o){c=0;break detectBlock}if(this.commonChars==null)c=30+t-20*o,c>100&&(c=100);else{let e=90/Math.log(t/4);c=Math.floor(Math.log(a+1)*e+10),c=Math.min(c,100)}}return c==0?null:(0,n.default)(e,this,c)}nextChar(e,t){return!0}};e.sjis=class extends a{constructor(){super(...arguments),this.commonChars=[33088,33089,33090,33093,33115,33129,33130,33141,33142,33440,33442,33444,33449,33450,33451,33453,33455,33457,33459,33461,33463,33469,33470,33473,33476,33477,33478,33480,33481,33484,33485,33500,33504,33511,33512,33513,33514,33520,33521,33601,33603,33614,33615,33624,33630,33634,33639,33653,33654,33673,33674,33675,33677,33683,36502,37882,38314]}name(){return`Shift_JIS`}language(){return`ja`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=e.charValue=e.nextByte(t);if(n<0)return!1;if(n<=127||n>160&&n<=223)return!0;let r=e.nextByte(t);return r<0?!1:(e.charValue=n<<8|r,r>=64&&r<=127||r>=128&&r<=255||(e.error=!0),!0)}},e.big5=class extends a{constructor(){super(...arguments),this.commonChars=[41280,41281,41282,41283,41287,41289,41333,41334,42048,42054,42055,42056,42065,42068,42071,42084,42090,42092,42103,42147,42148,42151,42177,42190,42193,42207,42216,42237,42304,42312,42328,42345,42445,42471,42583,42593,42594,42600,42608,42664,42675,42681,42707,42715,42726,42738,42816,42833,42841,42970,43171,43173,43181,43217,43219,43236,43260,43456,43474,43507,43627,43706,43710,43724,43772,44103,44111,44208,44242,44377,44745,45024,45290,45423,45747,45764,45935,46156,46158,46412,46501,46525,46544,46552,46705,47085,47207,47428,47832,47940,48033,48593,49860,50105,50240,50271]}name(){return`Big5`}language(){return`zh`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=e.charValue=e.nextByte(t);if(n<0)return!1;if(n<=127||n==255)return!0;let r=e.nextByte(t);return r<0?!1:(e.charValue=e.charValue<<8|r,(r<64||r==127||r==255)&&(e.error=!0),!0)}};function o(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0;buildChar:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break buildChar}if(n<=141)break buildChar;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=161&&n<=254){r<161&&(e.error=!0);break buildChar}if(n==142){r<161&&(e.error=!0);break buildChar}n==143&&(i=e.nextByte(t),e.charValue=e.charValue<<8|i,i<161&&(e.error=!0))}return e.done==0}e.euc_jp=class extends a{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41382,41404,41418,41419,41430,41431,42146,42148,42150,42152,42154,42155,42156,42157,42159,42161,42163,42165,42167,42169,42171,42173,42175,42176,42177,42179,42180,42182,42183,42184,42185,42186,42187,42190,42191,42192,42206,42207,42209,42210,42212,42216,42217,42218,42219,42220,42223,42226,42227,42402,42403,42404,42406,42407,42410,42413,42415,42416,42419,42421,42423,42424,42425,42431,42435,42438,42439,42440,42441,42443,42448,42453,42454,42455,42462,42464,42465,42469,42473,42474,42475,42476,42477,42483,47273,47572,47854,48072,48880,49079,50410,50940,51133,51896,51955,52188,52689],this.nextChar=o}name(){return`EUC-JP`}language(){return`ja`}},e.euc_kr=class extends a{constructor(){super(...arguments),this.commonChars=[45217,45235,45253,45261,45268,45286,45293,45304,45306,45308,45496,45497,45511,45527,45538,45994,46011,46274,46287,46297,46315,46501,46517,46527,46535,46569,46835,47023,47042,47054,47270,47278,47286,47288,47291,47337,47531,47534,47564,47566,47613,47800,47822,47824,47857,48103,48115,48125,48301,48314,48338,48374,48570,48576,48579,48581,48838,48840,48863,48878,48888,48890,49057,49065,49088,49124,49131,49132,49144,49319,49327,49336,49338,49339,49341,49351,49356,49358,49359,49366,49370,49381,49403,49404,49572,49574,49590,49622,49631,49654,49656,50337,50637,50862,51151,51153,51154,51160,51173,51373],this.nextChar=o}name(){return`EUC-KR`}language(){return`ko`}},e.gb_18030=class extends a{constructor(){super(...arguments),this.commonChars=[41377,41378,41379,41380,41392,41393,41457,41459,41889,41900,41914,45480,45496,45502,45755,46025,46070,46323,46525,46532,46563,46767,46804,46816,47010,47016,47037,47062,47069,47284,47327,47350,47531,47561,47576,47610,47613,47821,48039,48086,48097,48122,48316,48347,48382,48588,48845,48861,49076,49094,49097,49332,49389,49611,49883,50119,50396,50410,50636,50935,51192,51371,51403,51413,51431,51663,51706,51889,51893,51911,51920,51926,51957,51965,52460,52728,52906,52932,52946,52965,53173,53186,53206,53442,53445,53456,53460,53671,53930,53938,53941,53947,53972,54211,54224,54269,54466,54490,54754,54992]}name(){return`GB18030`}language(){return`zh`}nextChar(e,t){e.index=e.nextIndex,e.error=!1;let n=0,r=0,i=0,a=0;buildChar:{if(n=e.charValue=e.nextByte(t),n<0){e.done=!0;break buildChar}if(n<=128)break buildChar;if(r=e.nextByte(t),e.charValue=e.charValue<<8|r,n>=129&&n<=254){if(r>=64&&r<=126||r>=80&&r<=254)break buildChar;if(r>=48&&r<=57&&(i=e.nextByte(t),i>=129&&i<=254&&(a=e.nextByte(t),a>=48&&a<=57))){e.charValue=e.charValue<<16|i<<8|a;break buildChar}e.error=!0;break buildChar}}return e.done==0}}})),kv=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.KOI8_R=e.windows_1256=e.windows_1251=e.ISO_8859_9=e.ISO_8859_8=e.ISO_8859_7=e.ISO_8859_6=e.ISO_8859_5=e.ISO_8859_2=e.ISO_8859_1=void 0;let n=t(wv());var r=class{constructor(e,t){this.byteIndex=0,this.ngram=0,this.ngramCount=0,this.hitCount=0,this.spaceChar=32,this.ngramList=e,this.byteMap=t}search(e,t){let n=0;return e[n+32]<=t&&(n+=32),e[n+16]<=t&&(n+=16),e[n+8]<=t&&(n+=8),e[n+4]<=t&&(n+=4),e[n+2]<=t&&(n+=2),e[n+1]<=t&&(n+=1),e[n]>t&&--n,n<0||e[n]!=t?-1:n}lookup(e){this.ngramCount+=1,this.search(this.ngramList,e)>=0&&(this.hitCount+=1)}addByte(e){this.ngram=(this.ngram<<8)+(e&255)&16777215,this.lookup(this.ngram)}nextByte(e){return this.byteIndex>=e.inputLen?-1:e.inputBytes[this.byteIndex++]&255}parse(e,t){let n,r=!1;for(this.spaceChar=t;(n=this.nextByte(e))>=0;){let e=this.byteMap[n];e!=0&&(e==this.spaceChar&&r||this.addByte(e),r=e==this.spaceChar)}this.addByte(this.spaceChar);let i=this.hitCount/this.ngramCount;return i>.33?98:Math.floor(i*300)}},i=class{constructor(e,t){this.fLang=e,this.fNGrams=t}};let a=e=>Array.isArray(e)&&isFinite(e[0]);var o=class{constructor(){this.spaceChar=32,this.nGramLang=void 0}ngrams(){return[]}byteMap(){return[]}name(e){return`sbcs`}language(){return this.nGramLang}match(e){this.nGramLang=void 0;let t=this.ngrams();if(a(t)){let i=new r(t,this.byteMap()).parse(e,this.spaceChar);return i<=0?null:(0,n.default)(e,this,i)}let i=-1;for(let n=t.length-1;n>=0;n--){let a=t[n],o=new r(a.fNGrams,this.byteMap()).parse(e,this.spaceChar);o>i&&(i=o,this.nGramLang=a.fLang)}return i<=0?null:(0,n.default)(e,this,i)}};e.ISO_8859_1=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[new i(`da`,[2122086,2122100,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126697,2126708,2126953,2127465,6383136,6385184,6385252,6386208,6386720,6579488,6579566,6579570,6579572,6627443,6644768,6644837,6647328,6647396,6648352,6648421,6648608,6648864,6713202,6776096,6776174,6776178,6907749,6908960,6909543,7038240,7039845,7103858,7104871,7105637,7169380,7234661,7234848,7235360,7235429,7300896,7302432,7303712,7398688,7479396,7479397,7479411,7496992,7566437,7610483,7628064,7628146,7629164,7759218]),new i(`de`,[2122094,2122101,2122341,2122849,2122853,2122857,2123113,2123621,2123873,2124142,2125161,2126691,2126693,2127214,2127461,2127471,2127717,2128501,6448498,6514720,6514789,6514804,6578547,6579566,6579570,6580581,6627428,6627443,6646126,6646132,6647328,6648352,6648608,6776174,6841710,6845472,6906728,6907168,6909472,6909541,6911008,7104867,7105637,7217249,7217252,7217267,7234592,7234661,7234848,7235360,7235429,7238757,7479396,7496805,7497065,7562088,7566437,7610468,7628064,7628142,7628146,7695972,7695975,7759218]),new i(`en`,[2122016,2122094,2122341,2122607,2123375,2123873,2123877,2124142,2125153,2125670,2125938,2126437,2126689,2126708,2126952,2126959,2127720,6383972,6384672,6385184,6385252,6386464,6386720,6386789,6386793,6561889,6561908,6627425,6627443,6627444,6644768,6647412,6648352,6648608,6713202,6840692,6841632,6841714,6906912,6909472,6909543,6909806,6910752,7217249,7217268,7234592,7235360,7238688,7300640,7302688,7303712,7496992,7500576,7544929,7544948,7561577,7566368,7610484,7628146,7628897,7628901,7629167,7630624,7631648]),new i(`es`,[2122016,2122593,2122607,2122853,2123116,2123118,2123123,2124142,2124897,2124911,2125921,2125935,2125938,2126197,2126437,2126693,2127214,2128160,6365283,6365284,6365285,6365292,6365296,6382441,6382703,6384672,6386208,6386464,6515187,6516590,6579488,6579564,6582048,6627428,6627429,6627436,6646816,6647328,6647412,6648608,6648692,6907246,6943598,7102752,7106419,7217253,7238757,7282788,7282789,7302688,7303712,7303968,7364978,7435621,7495968,7497075,7544932,7544933,7544944,7562528,7628064,7630624,7693600,15953440]),new i(`fr`,[2122101,2122607,2122849,2122853,2122869,2123118,2123124,2124897,2124901,2125921,2125935,2125938,2126197,2126693,2126703,2127214,2154528,6385268,6386793,6513952,6516590,6579488,6579571,6583584,6627425,6627427,6627428,6627429,6627436,6627440,6627443,6647328,6647412,6648352,6648608,6648864,6649202,6909806,6910752,6911008,7102752,7103776,7103859,7169390,7217252,7234848,7238432,7238688,7302688,7302772,7304562,7435621,7479404,7496992,7544929,7544932,7544933,7544940,7544944,7610468,7628064,7629167,7693600,7696928]),new i(`it`,[2122092,2122600,2122607,2122853,2122857,2123040,2124140,2124142,2124897,2125925,2125938,2127214,6365283,6365284,6365296,6365299,6386799,6514789,6516590,6579564,6580512,6627425,6627427,6627428,6627433,6627436,6627440,6627443,6646816,6646892,6647412,6648352,6841632,6889569,6889571,6889572,6889587,6906144,6908960,6909472,6909806,7102752,7103776,7104800,7105633,7234848,7235872,7237408,7238757,7282785,7282788,7282793,7282803,7302688,7302757,7366002,7495968,7496992,7563552,7627040,7628064,7629088,7630624,8022383]),new i(`nl`,[2122092,2122341,2122849,2122853,2122857,2123109,2123118,2123621,2123877,2124142,2125153,2125157,2125680,2126949,2127457,2127461,2127471,2127717,2128489,6381934,6381938,6385184,6385252,6386208,6386720,6514804,6579488,6579566,6579570,6627426,6627446,6645102,6645106,6647328,6648352,6648435,6648864,6776174,6841716,6907168,6909472,6909543,6910752,7217250,7217252,7217253,7217256,7217263,7217270,7234661,7235360,7302756,7303026,7303200,7303712,7562088,7566437,7610468,7628064,7628142,7628146,7758190,7759218,7761775]),new i(`no`,[2122100,2122102,2122853,2123118,2123122,2123375,2123873,2124064,2125157,2125671,2126053,2126693,2126699,2126703,2126708,2126953,2127465,2155808,6385252,6386208,6386720,6579488,6579566,6579572,6627443,6644768,6647328,6647397,6648352,6648421,6648864,6648948,6713202,6776174,6908779,6908960,6909543,7038240,7039845,7103776,7105637,7169380,7169390,7217267,7234848,7235360,7235429,7237221,7300896,7302432,7303712,7398688,7479411,7496992,7565165,7566437,7610483,7628064,7628142,7628146,7629164,7631904,7631973,7759218]),new i(`pt`,[2122016,2122607,2122849,2122853,2122863,2123040,2123123,2125153,2125423,2125600,2125921,2125935,2125938,2126197,2126437,2126693,2127213,6365281,6365283,6365284,6365296,6382693,6382703,6384672,6386208,6386273,6386464,6516589,6516590,6578464,6579488,6582048,6582131,6627425,6627428,6647072,6647412,6648608,6648692,6906144,6906721,7169390,7238757,7238767,7282785,7282787,7282788,7282789,7282800,7303968,7364978,7435621,7495968,7497075,7544929,7544932,7544933,7544944,7566433,7628064,7630624,7693600,14905120,15197039]),new i(`sv`,[2122100,2122102,2122853,2123118,2123510,2123873,2124064,2124142,2124655,2125157,2125667,2126053,2126699,2126703,2126708,2126953,2127457,2127465,2155634,6382693,6385184,6385252,6386208,6386804,6514720,6579488,6579566,6579570,6579572,6644768,6647328,6648352,6648864,6747762,6776174,6909036,6909543,7037216,7105568,7169380,7217267,7233824,7234661,7235360,7235429,7235950,7299944,7302432,7302688,7398688,7479393,7479411,7495968,7564129,7565165,7610483,7627040,7628064,7628146,7629164,7631904,7758194,14971424,16151072])]}name(e){return e&&e.c1Bytes?`windows-1252`:`ISO-8859-1`}},e.ISO_8859_2=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,177,32,179,32,181,182,32,32,185,186,187,188,32,190,191,32,177,32,179,32,181,182,183,32,185,186,187,188,32,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,32]}ngrams(){return[new i(`cs`,[2122016,2122361,2122863,2124389,2125409,2125413,2125600,2125668,2125935,2125938,2126072,2126447,2126693,2126703,2126708,2126959,2127392,2127481,2128481,6365296,6513952,6514720,6627440,6627443,6627446,6647072,6647533,6844192,6844260,6910836,6972704,7042149,7103776,7104800,7233824,7268640,7269408,7269664,7282800,7300206,7301737,7304052,7304480,7304801,7368548,7368554,7369327,7403621,7562528,7565173,7566433,7566441,7566446,7628146,7630573,7630624,7676016,12477728,14773997,15296623,15540336,15540339,15559968,16278884]),new i(`hu`,[2122016,2122106,2122341,2123111,2123116,2123365,2123873,2123887,2124147,2124645,2124649,2124790,2124901,2125153,2125157,2125161,2125413,2126714,2126949,2156915,6365281,6365291,6365293,6365299,6384416,6385184,6388256,6447470,6448494,6645625,6646560,6646816,6646885,6647072,6647328,6648421,6648864,6648933,6648948,6781216,6844263,6909556,6910752,7020641,7075450,7169383,7170414,7217249,7233899,7234923,7234925,7238688,7300985,7544929,7567973,7567988,7568097,7596391,7610465,7631904,7659891,8021362,14773792,15299360]),new i(`pl`,[2122618,2122863,2124064,2124389,2124655,2125153,2125161,2125409,2125417,2125668,2125935,2125938,2126697,2127648,2127721,2127737,2128416,2128481,6365296,6365303,6385257,6514720,6519397,6519417,6582048,6584937,6627440,6627443,6627447,6627450,6645615,6646304,6647072,6647401,6778656,6906144,6907168,6907242,7037216,7039264,7039333,7170405,7233824,7235937,7235941,7282800,7305057,7305065,7368556,7369313,7369327,7369338,7502437,7502457,7563754,7564137,7566433,7825765,7955304,7957792,8021280,8022373,8026400,15955744]),new i(`ro`,[2122016,2122083,2122593,2122597,2122607,2122613,2122853,2122857,2124897,2125153,2125925,2125938,2126693,2126819,2127214,2144873,2158190,6365283,6365284,6386277,6386720,6386789,6386976,6513010,6516590,6518048,6546208,6579488,6627425,6627427,6627428,6627440,6627443,6644e3,6646048,6646885,6647412,6648692,6889569,6889571,6889572,6889584,6907168,6908192,6909472,7102752,7103776,7106418,7107945,7234848,7238770,7303712,7365998,7496992,7497057,7501088,7594784,7628064,7631477,7660320,7694624,7695392,12216608,15625760])]}name(e){return e&&e.c1Bytes?`windows-1250`:`ISO-8859-2`}},e.ISO_8859_5=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,241,242,243,244,245,246,247,248,249,250,251,252,32,254,255]}ngrams(){return[2150944,2151134,2151646,2152400,2152480,2153168,2153182,2153936,2153941,2154193,2154462,2154464,2154704,2154974,2154978,2155230,2156514,2158050,13688280,13689580,13884960,14015468,14015960,14016994,14017056,14164191,14210336,14211104,14216992,14407133,14407712,14413021,14536736,14538016,14538965,14538991,14540320,14540498,14557394,14557407,14557409,14602784,14602960,14603230,14604576,14605292,14605344,14606818,14671579,14672085,14672088,14672094,14733522,14734804,14803664,14803666,14803672,14806816,14865883,14868e3,14868192,14871584,15196894,15459616]}name(){return`ISO-8859-5`}language(){return`ru`}},e.ISO_8859_6=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32]}ngrams(){return[2148324,2148326,2148551,2152932,2154986,2155748,2156006,2156743,13050055,13091104,13093408,13095200,13100064,13100227,13100231,13100232,13100234,13100236,13100237,13100239,13100243,13100249,13100258,13100261,13100264,13100266,13100320,13100576,13100746,13115591,13181127,13181153,13181156,13181157,13181160,13246663,13574343,13617440,13705415,13748512,13836487,14229703,14279913,14805536,14950599,14993696,15001888,15002144,15016135,15058720,15059232,15066656,15081671,15147207,15189792,15255524,15263264,15278279,15343815,15343845,15343848,15386912,15388960,15394336]}name(){return`ISO-8859-6`}language(){return`ar`}},e.ISO_8859_7=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,161,162,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,220,32,221,222,223,32,252,32,253,254,192,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,32,243,244,245,246,247,248,249,250,251,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,32]}ngrams(){return[2154989,2154992,2155497,2155753,2156016,2156320,2157281,2157797,2158049,2158368,2158817,2158831,2158833,2159604,2159605,2159847,2159855,14672160,14754017,14754036,14805280,14806304,14807292,14807584,14936545,15067424,15069728,15147252,15199520,15200800,15278324,15327520,15330014,15331872,15393257,15393268,15525152,15540449,15540453,15540464,15589664,15725088,15725856,15790069,15790575,15793184,15868129,15868133,15868138,15868144,15868148,15983904,15984416,15987951,16048416,16048617,16050157,16050162,16050666,16052e3,16052213,16054765,16379168,16706848]}name(e){return e&&e.c1Bytes?`windows-1253`:`ISO-8859-7`}language(){return`el`}},e.ISO_8859_8=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,32,32,32,32,32]}ngrams(){return[new i(`he`,[2154725,2154727,2154729,2154746,2154985,2154990,2155744,2155749,2155753,2155758,2155762,2155769,2155770,2157792,2157796,2158304,2159340,2161132,14744096,14950624,14950625,14950628,14950636,14950638,14950649,15001056,15065120,15068448,15068960,15071264,15071776,15278308,15328288,15328762,15329773,15330592,15331104,15333408,15333920,15474912,15474916,15523872,15524896,15540448,15540449,15540452,15540460,15540462,15540473,15655968,15671524,15787040,15788320,15788525,15920160,16261348,16312813,16378912,16392416,16392417,16392420,16392428,16392430,16392441]),new i(`he`,[2154725,2154732,2155753,2155756,2155758,2155760,2157040,2157810,2157817,2158053,2158057,2158565,2158569,2160869,2160873,2161376,2161381,2161385,14688484,14688492,14688493,14688506,14738464,14738916,14740512,14741024,14754020,14754029,14754042,14950628,14950633,14950636,14950637,14950639,14950648,14950650,15002656,15065120,15066144,15196192,15327264,15327520,15328288,15474916,15474925,15474938,15528480,15530272,15591913,15591920,15591928,15605988,15605997,15606010,15655200,15655968,15918112,16326884,16326893,16326906,16376864,16441376,16442400,16442857])]}name(e){return e&&e.c1Bytes?`windows-1255`:`ISO-8859-8`}language(){return`he`}},e.ISO_8859_9=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,186,32,32,32,32,32,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,105,254,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,32,248,249,250,251,252,253,254,255]}ngrams(){return[2122337,2122345,2122357,2122849,2122853,2123621,2123873,2124140,2124641,2124655,2125153,2125676,2126689,2126945,2127461,2128225,6365282,6384416,6384737,6384993,6385184,6385405,6386208,6386273,6386429,6386685,6388065,6449522,6578464,6579488,6580512,6627426,6627435,6644841,6647328,6648352,6648425,6648681,6909029,6909472,6909545,6910496,7102830,7102834,7103776,7103858,7217249,7217250,7217259,7234657,7234661,7234848,7235872,7235950,7273760,7498094,7535982,7759136,7954720,7958386,16608800,16608868,16609021,16642301]}name(e){return e&&e.c1Bytes?`windows-1254`:`ISO-8859-9`}language(){return`tr`}},e.windows_1251=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,144,131,32,131,32,32,32,32,32,32,154,32,156,157,158,159,144,32,32,32,32,32,32,32,32,32,154,32,156,157,158,159,32,162,162,188,32,180,32,32,184,32,186,32,32,32,32,191,32,32,179,179,180,181,32,32,184,32,186,32,188,190,190,191,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}ngrams(){return[2155040,2155246,2155758,2156512,2156576,2157280,2157294,2158048,2158053,2158305,2158574,2158576,2158816,2159086,2159090,2159342,2160626,2162162,14740968,14742268,14937632,15068156,15068648,15069682,15069728,15212783,15263008,15263776,15269664,15459821,15460384,15465709,15589408,15590688,15591653,15591679,15592992,15593186,15605986,15605999,15606001,15655456,15655648,15655918,15657248,15657980,15658016,15659506,15724267,15724773,15724776,15724782,15786210,15787492,15856352,15856354,15856360,15859488,15918571,15920672,15920880,15924256,16249582,16512288]}name(){return`windows-1251`}language(){return`ru`}},e.windows_1256=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,129,32,131,32,32,32,32,136,32,138,32,156,141,142,143,144,32,32,32,32,32,32,32,152,32,154,32,156,32,32,159,32,32,32,32,32,32,32,32,32,32,170,32,32,32,32,32,32,32,32,32,32,181,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,32,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,32,32,32,32,244,32,32,32,32,249,32,251,252,32,32,255]}ngrams(){return[2148321,2148324,2148551,2153185,2153965,2154977,2155492,2156231,13050055,13091104,13093408,13095200,13099296,13099459,13099463,13099464,13099466,13099468,13099469,13099471,13099475,13099482,13099486,13099491,13099494,13099501,13099808,13100064,13100234,13115591,13181127,13181149,13181153,13181155,13181158,13246663,13574343,13617440,13705415,13748512,13836487,14295239,14344684,14544160,14753991,14797088,14806048,14806304,14885063,14927648,14928160,14935072,14950599,15016135,15058720,15124449,15131680,15474887,15540423,15540451,15540454,15583520,15585568,15590432]}name(){return`windows-1256`}language(){return`ar`}},e.KOI8_R=class extends o{byteMap(){return[32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,163,32,32,32,32,32,32,32,32,32,32,32,32,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223]}ngrams(){return[2147535,2148640,2149313,2149327,2150081,2150085,2150338,2150607,2150610,2151105,2151375,2151380,2151631,2152224,2152399,2153153,2153684,2154196,12701385,12702936,12963032,12963529,12964820,12964896,13094688,13181136,13223200,13224224,13226272,13419982,13420832,13424846,13549856,13550880,13552069,13552081,13553440,13553623,13574352,13574355,13574359,13617103,13617696,13618392,13618464,13620180,13621024,13621185,13684684,13685445,13685449,13685455,13812183,13813188,13881632,13882561,13882569,13882583,13944268,13946656,13946834,13948960,14272544,14603471]}name(){return`KOI8-R`}language(){return`ru`}}})),Av=s((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.ISO_2022_CN=e.ISO_2022_KR=e.ISO_2022_JP=void 0;let n=t(wv());var r=class{constructor(){this.escapeSequences=[]}name(){return`ISO_2022`}match(e){let t,r,i,a=0,o=0,s=0,c,l=e.inputBytes,u=e.inputLen;scanInput:for(t=0;t<u;t++){if(l[t]==27){checkEscapes:for(i=0;i<this.escapeSequences.length;i++){let e=this.escapeSequences[i];if(u-t<e.length)continue checkEscapes;for(r=1;r<e.length;r++)if(e[r]!=l[t+r])continue checkEscapes;a++,t+=e.length-1;continue scanInput}o++}(l[t]==14||l[t]==15)&&s++}return a==0?null:(c=(100*a-100*o)/(a+o),a+s<5&&(c-=(5-(a+s))*10),c<=0?null:(0,n.default)(e,this,c))}};e.ISO_2022_JP=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,40,67],[27,36,40,68],[27,36,64],[27,36,65],[27,36,66],[27,38,64],[27,40,66],[27,40,72],[27,40,73],[27,40,74],[27,46,65],[27,46,70]]}name(){return`ISO-2022-JP`}language(){return`ja`}},e.ISO_2022_KR=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,67]]}name(){return`ISO-2022-KR`}language(){return`kr`}},e.ISO_2022_CN=class extends r{constructor(){super(...arguments),this.escapeSequences=[[27,36,41,65],[27,36,41,71],[27,36,42,72],[27,36,41,69],[27,36,43,73],[27,36,43,74],[27,36,43,75],[27,36,43,76],[27,36,43,77],[27,78],[27,79]]}name(){return`ISO-2022-CN`}language(){return`zh`}}})),jv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.isByteArray=void 0,e.isByteArray=e=>typeof e!=`object`||!e?!1:isFinite(e.length)&&e.length>=0})),Mv=s((e=>{var t=e&&e.__createBinding||(Object.create?(function(e,t,n,r){r===void 0&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||(`get`in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}):(function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]})),n=e&&e.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,`default`,{enumerable:!0,value:t})}):function(e,t){e.default=t}),r=e&&e.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var i in e)i!==`default`&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.detectFileSync=e.detectFile=e.analyse=e.detect=void 0;let a=i(Cv()),o=i(Tv()),s=i(Ev()),c=r(Dv()),l=r(Ov()),u=r(kv()),d=r(Av()),f=jv(),p=[new s.default,new c.UTF_16BE,new c.UTF_16LE,new c.UTF_32BE,new c.UTF_32LE,new l.sjis,new l.big5,new l.euc_jp,new l.euc_kr,new l.gb_18030,new d.ISO_2022_JP,new d.ISO_2022_KR,new d.ISO_2022_CN,new u.ISO_8859_1,new u.ISO_8859_2,new u.ISO_8859_5,new u.ISO_8859_6,new u.ISO_8859_7,new u.ISO_8859_8,new u.ISO_8859_9,new u.windows_1251,new u.windows_1256,new u.KOI8_R,new o.default];e.detect=t=>{let n=(0,e.analyse)(t);return n.length>0?n[0].name:null},e.analyse=e=>{if(!(0,f.isByteArray)(e))throw Error(`Input must be a byte array, e.g. Buffer or Uint8Array`);let t=[];for(let e=0;e<256;e++)t[e]=0;for(let n=e.length-1;n>=0;n--)t[e[n]&255]++;let n=!1;for(let e=128;e<=159;e+=1)if(t[e]!==0){n=!0;break}let r={byteStats:t,c1Bytes:n,rawInput:e,rawLen:e.length,inputBytes:e,inputLen:e.length};return p.map(e=>e.match(r)).filter(e=>!!e).sort((e,t)=>t.confidence-e.confidence)},e.detectFile=(t,n={})=>new Promise((r,i)=>{let o,s=(0,a.default)(),c=(t,n)=>{o&&s.closeSync(o),t?i(t):r((0,e.detect)(n))};if(n&&n.sampleSize){o=s.openSync(t,`r`);let e=Buffer.allocUnsafe(n.sampleSize);s.read(o,e,0,n.sampleSize,n.offset,t=>{c(t,e)});return}s.readFile(t,c)}),e.detectFileSync=(t,n={})=>{let r=(0,a.default)();if(n&&n.sampleSize){let i=r.openSync(t,`r`),a=Buffer.allocUnsafe(n.sampleSize);return r.readSync(i,a,0,n.sampleSize,n.offset),r.closeSync(i),(0,e.detect)(a)}return(0,e.detect)(r.readFileSync(t))},e.default={analyse:e.analyse,detect:e.detect,detectFileSync:e.detectFileSync,detectFile:e.detectFile}})),Nv=s(((e,t)=>{t.exports=e=>{if(typeof e!=`number`)throw TypeError(`Expected a number`);let t=e>0?Math.floor:Math.ceil;return{days:t(e/864e5),hours:t(e/36e5)%24,minutes:t(e/6e4)%60,seconds:t(e/1e3)%60,milliseconds:t(e)%1e3,microseconds:t(e*1e3)%1e3,nanoseconds:t(e*1e6)%1e3}}})),Pv=s(((e,t)=>{let n=Nv(),r=(e,t)=>t===1?e:`${e}s`;t.exports=(e,t={})=>{if(!Number.isFinite(e))throw TypeError(`Expected a finite number`);t.colonNotation&&(t.compact=!1,t.formatSubMilliseconds=!1,t.separateMilliseconds=!1,t.verbose=!1),t.compact&&(t.secondsDecimalDigits=0,t.millisecondsDecimalDigits=0);let i=[],a=(e,t)=>{let n=Math.floor(e*10**t+1e-7);return(Math.round(n)/10**t).toFixed(t)},o=(e,n,a,o)=>{if((i.length===0||!t.colonNotation)&&e===0&&!(t.colonNotation&&a===`m`))return;o=(o||e||`0`).toString();let s,c;if(t.colonNotation){s=i.length>0?`:`:``,c=``;let e=o.includes(`.`)?o.split(`.`)[0].length:o.length,t=i.length>0?2:1;o=`0`.repeat(Math.max(0,t-e))+o}else s=``,c=t.verbose?` `+r(n,e):a;i.push(s+o+c)},s=n(e);if(o(Math.trunc(s.days/365),`year`,`y`),o(s.days%365,`day`,`d`),o(s.hours,`hour`,`h`),o(s.minutes,`minute`,`m`),t.separateMilliseconds||t.formatSubMilliseconds||!t.colonNotation&&e<1e3)if(o(s.seconds,`second`,`s`),t.formatSubMilliseconds)o(s.milliseconds,`millisecond`,`ms`),o(s.microseconds,`microsecond`,`µs`),o(s.nanoseconds,`nanosecond`,`ns`);else{let e=s.milliseconds+s.microseconds/1e3+s.nanoseconds/1e6,n=typeof t.millisecondsDecimalDigits==`number`?t.millisecondsDecimalDigits:0,r=n?e.toFixed(n):e>=1?Math.round(e):Math.ceil(e);o(Number.parseFloat(r,10),`millisecond`,`ms`,r)}else{let n=a(e/1e3%60,typeof t.secondsDecimalDigits==`number`?t.secondsDecimalDigits:1),r=t.keepDecimalsOnWholeSeconds?n:n.replace(/\.0+$/,``);o(Number.parseFloat(r,10),`second`,`s`,r)}if(i.length===0)return`0`+(t.verbose?` milliseconds`:`ms`);if(t.compact)return i[0];if(typeof t.unitCount==`number`){let e=t.colonNotation?``:` `;return i.slice(0,Math.max(t.unitCount,1)).join(e)}return t.colonNotation?i.join(``):i.join(` `)}})),Fv=s((e=>{let t=`bits`,n=`bytes`,r=`jedec`,i=`round`,a=`string`,o={symbol:{iec:{bits:[`bit`,`Kibit`,`Mibit`,`Gibit`,`Tibit`,`Pibit`,`Eibit`,`Zibit`,`Yibit`],bytes:[`B`,`KiB`,`MiB`,`GiB`,`TiB`,`PiB`,`EiB`,`ZiB`,`YiB`]},jedec:{bits:[`bit`,`Kbit`,`Mbit`,`Gbit`,`Tbit`,`Pbit`,`Ebit`,`Zbit`,`Ybit`],bytes:[`B`,`KB`,`MB`,`GB`,`TB`,`PB`,`EB`,`ZB`,`YB`]}},fullform:{iec:[``,`kibi`,`mebi`,`gibi`,`tebi`,`pebi`,`exbi`,`zebi`,`yobi`],jedec:[``,`kilo`,`mega`,`giga`,`tera`,`peta`,`exa`,`zetta`,`yotta`]}};function s(e,{bits:s=!1,pad:c=!1,base:l=-1,round:u=2,locale:d=``,localeOptions:f={},separator:p=``,spacer:m=` `,symbols:h={},standard:g=``,output:_=a,fullform:v=!1,fullforms:y=[],exponent:b=-1,roundingMethod:x=i,precision:S=0}={}){let C=b,w=Number(e),T=[],E=0,D=``;g===`si`?(l=10,g=r):g===`iec`||g===r?l=2:l===2?g=`iec`:(l=10,g=r);let O=l===10?1e3:1024,k=v===!0,A=w<0,j=Math[x];if(typeof e!=`bigint`&&isNaN(e))throw TypeError(`Invalid number`);if(typeof j!=`function`)throw TypeError(`Invalid rounding method`);if(A&&(w=-w),(C===-1||isNaN(C))&&(C=Math.floor(Math.log(w)/Math.log(O)),C<0&&(C=0)),C>8&&(S>0&&(S+=8-C),C=8),_===`exponent`)return C;if(w===0)T[0]=0,D=T[1]=o.symbol[g][s?t:n][C];else{E=w/(l===2?2**(C*10):1e3**C),s&&(E*=8,E>=O&&C<8&&(E/=O,C++));let e=10**(C>0?u:0);T[0]=j(E*e)/e,T[0]===O&&C<8&&b===-1&&(T[0]=1,C++),D=T[1]=l===10&&C===1?s?`kbit`:`kB`:o.symbol[g][s?t:n][C]}if(A&&(T[0]=-T[0]),S>0&&(T[0]=T[0].toPrecision(S)),T[1]=h[T[1]]||T[1],d===!0?T[0]=T[0].toLocaleString():d.length>0?T[0]=T[0].toLocaleString(d,f):p.length>0&&(T[0]=T[0].toString().replace(`.`,p)),c&&Number.isInteger(T[0])===!1&&u>0){let e=p||`.`,t=T[0].toString().split(e),n=t[1]||``,r=n.length,i=u-r;T[0]=`${t[0]}${e}${n.padEnd(r+i,`0`)}`}return k&&(T[1]=y[C]?y[C]:o.fullform[g][C]+(s?`bit`:`byte`)+(T[0]===1?``:`s`)),_===`array`?T:_===`object`?{value:T[0],symbol:T[1],exponent:C,unit:D}:T.join(m)}function c({bits:e=!1,pad:t=!1,base:n=-1,round:r=2,locale:o=``,localeOptions:c={},separator:l=``,spacer:u=` `,symbols:d={},standard:f=``,output:p=a,fullform:m=!1,fullforms:h=[],exponent:g=-1,roundingMethod:_=i,precision:v=0}={}){return i=>s(i,{bits:e,pad:t,base:n,round:r,locale:o,localeOptions:c,separator:l,spacer:u,symbols:d,standard:f,output:p,fullform:m,fullforms:h,exponent:g,roundingMethod:_,precision:v})}e.filesize=s,e.partial=c})),Iv=s(((e,t)=>{var n=d(`fs`),{Url:r}=es(),i=Q(),a=Mv(),o=Pv(),{filesize:s}=Fv(),c=Ba(),l=iv(),u,f=_e().version,p=` / `,m={spacer:``},h={ASCII:`ascii`,"UTF-8":`utf8`,"UTF-16LE":`utf16le`,"ISO-8859-1":`latin1`},g={"api.postman.com":!0,"api.getpostman.com":!0},_=`https://api.postman.com`,v={collection:`collections`,environment:`environments`},y=`X-Api-Key`,b=`Newman/`+f,x=/^[0-9A-Z]+-[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;u={version:f,userAgent:b,prettyms:function(e){return e<1?`${parseInt(e*1e3,10)}µs`:e<1998?`${parseInt(e,10)}ms`:o(e||0)},beautifyTime:function(e){return i.forEach(e,(t,n)=>{t&&(e[n]=this.prettyms(t))})},filesize:function(e){return s(e||0,m)},getFullName:function(e,t){if(!(i.isEmpty(e)||!i.isFunction(e.parent)||!i.isFunction(e.forEachParent))){var n=[];return e.forEachParent(function(e){n.unshift(e.name||e.id)}),e.parent()&&n.push(e.name||e.id),n.join(i.isString(t)?t:p)}},detectEncoding:function(e){return h[a.detect(e)]},fetchJson:function(e,t,a,o){!o&&i.isFunction(a)&&(o=a,a={});let s=i.get(a,`postmanApiKey`),d={"User-Agent":b},f=new r(t),p=f&&g[f.getHost().toLowerCase()];if(!n.existsSync(t)&&v[e]&&s&&x.test(t)&&(t=`${_}/${v[e]}/${t}`,d[y]=s),p){let e=f.query.get(`apikey`)||s;e&&(d[y]=e),f.query.remove(`apikey`),t=f.toString()}return/^https?:\/\/.*/.test(t)?l.get({url:t,json:!0,headers:d},(e,n,r)=>{if(e)return o(i.set(e,`help`,`unable to fetch data from url "${t}"`));try{i.isString(r)&&(r=c.parse(r.trim()))}catch(e){return o(i.set(e,`help`,`the url "${t}" did not provide valid JSON data`))}if(n.statusCode!==200){let e=p?i(f.getPath()).split(`/`).get(1).slice(0,-1):`resource`,t=Error(i.get(r,`error.message`,`Error fetching ${e}, the provided URL returned status code: ${n.statusCode}`));return o(i.assign(t,{name:i.get(r,`error.name`,i.capitalize(e)+`FetchError`),help:`Error fetching the ${e} from the provided URL. Ensure that the URL is valid.`}))}return o(null,r)}):n.readFile(t,function(e,n){if(e)return o(i.set(e,`help`,`unable to read data from file "${t}"`));try{n=c.parse(n.toString(u.detectEncoding(n)).trim())}catch(e){return o(i.set(e,`help`,`the file at "${t}" does not contain valid JSON data`))}return o(null,n)})},fetch:function(e,t,r){return!r&&i.isFunction(t)&&(r=t,t={}),/^https?:\/\/.*/.test(e)?l.get({url:e},(e,t,n)=>e?r(e):r(null,n)):n.readFile(String(e),function(e,t){return e?r(e):r(null,t.toString(u.detectEncoding(t)))})},isV1Collection:function(e){return!!(e&&e.name&&e.order&&e.requests)},isInt:function(e){return/^(-|\+)?([1-9]+[0-9]*)$/.test(e)},isFloat:function(e){return e-parseFloat(e)+1>=0}},t.exports=u})),Lv=s(((e,t)=>{t.exports={}})),Rv=s(((e,t)=>{var n=Q(),r=d(`fs`),i=d(`path`).join,a=ns(),o=Iv(),s=Ba(),c=`postman`,l=`newmanrc`;t.exports.load=t=>{var u=/^win/.test(process.platform),d=u?process.env.USERPROFILE:process.env.HOME,f=[];!u&&f.push(i(`/etc`,c,l)),d&&f.push(i(d,`.`+c,l)),f.push(i(process.cwd(),`.`+l)),a.mapSeries(f,(e,t)=>{r.readFile(e,(r,i)=>{if(r)return t(null,{});i&&i.toString&&(i=i.toString(o.detectEncoding(i)).trim());try{return t(null,s.parse(i))}catch(r){return t(n.set(r,`help`,`The file at ${e} contains invalid data.`))}})},(r,i)=>r?t(r):t(null,n.merge.apply(e,i)))}})),zv=s(((e,t)=>{var n=Q(),r=ns(),i=Lv(),a=Rv();t.exports.get=(e,t,o)=>{!o&&n.isFunction(t)&&(o=t,t={});var s=t.loaders,c=n.pick(e,[`postmanApiKey`]);r.waterfall([t.ignoreRcFile?e=>e(null,{}):a.load,(e,r)=>(e[t.command]&&(e=e[t.command]),r(null,n.merge(e,t.ignoreProcessEnvironment?{}:i)))],(t,i)=>{if(t)return o(t);if(i=n.mergeWith({},i,e,(e,t)=>t===null?e:void 0),n.isEmpty(s))return o(null,i);i.environment||={},i.globals||={},r.mapValues(i,(e,t,r)=>e&&n.isFunction(s[t])?s[t](e,c,r):r(null,e),o)})}})),Bv=s(((e,t)=>{var n=Q(),r=d(`fs`),i=ns(),a=es().Collection,o=es().VariableScope,s=qs().CookieJar,c=bv(),l=Ba(),u=Sv(),f=Iv(),p=zv(),m=`collection could not be loaded`,h=`iteration data could not be loaded`,g=`could not load `,_={inputVersion:`1.0.0`,outputVersion:`2.1.0`},v=function(e,t){if(e=e[t]||e,n.isObject(e))return!e.values&&n.isObject(e[t])&&(e=e[t]),e},y=function(e,t,r,i){return n.isString(t)?f.fetchJson(e,t,r,function(t,n){return t?i(t):i(null,v(n,e))}):i(null,v(t,e))},b=function(e,t){if(f.isV1Collection(e))return console.warn(`newman: Newman v4 deprecates support for the v1 collection format`),console.warn(` Use the Postman Native app to export collections in the v2 format
|
|
558
|
+
`),c.convert(e,_,t);t(null,e)},x=function(e,t,r,i){var a=function(t,r){if(t)return i(Error(g+`${e}\n ${t.message||t}`));if(!n.isObject(r))return a(Error(g+e));i(null,new o(o.isVariableScope(r)?r.toJSON():r))};if(n.isObject(t))return a(null,t);y(e,t,r,a)},S=function(e,t){return t.quoting?e:f.isInt(e)?parseInt(e,10):f.isFloat(e)?parseFloat(e):e},C={collection:function(e,t,r){var i=function(e,t){if(e)return r(e);if(!n.isObject(t))return r(Error(m));t=new a(a.isCollection(t)?t.toJSON():t),r(null,t)};if(n.isObject(e))return b(e,i);y(`collection`,e,t,function(e,t){return e?i(Error(m+(e.help?`\n ${e.help}`:``)+`\n ${e.message||e}`)):n.isObject(t)?b(t,i):i(Error(m))})},environment:x.bind(e,`environment`),globals:x.bind(e,`globals`),folder:function(e,t,n){if(!e.length)return n();if(Array.isArray(e)&&e.length===1)return n(null,e[0]);n(null,e)},iterationData:function(e,t,r){if(n.isArray(e))return r(null,e);f.fetch(e,function(e,t){if(e)return r(Error(h+`\n ${e.message||e}`));i.waterfall([e=>{try{return e(null,l.parse(t.trim()))}catch{return e(null,void 0)}},(e,n)=>{if(e)return n(null,e);u(t,{columns:!0,escape:`"`,cast:S,trim:!0,relax:!0,relax_column_count:!0,bom:!0},n)}],(e,t)=>{if(e)return r(Error(h+`\n ${e.message||e}`));r(null,t)})})},sslClientCertList:function(e,t,n){if(Array.isArray(e))return n(null,e);if(typeof e!=`string`)return n(Error(`path for ssl client certificates list file must be a string`));r.readFile(e,function(t,r){if(t)return n(Error(`unable to read the ssl client certificates file "${e}"`));try{r=l.parse(r.toString(f.detectEncoding(r)).trim())}catch{return n(Error(`the file at ${e} does not contain valid JSON data.`))}return Array.isArray(r)?n(null,r):n(Error(`expected ssl client certificates list to be an array.`))})},cookieJar:function(e,t,i){if(n.isObject(e)&&e.constructor.name===`CookieJar`)return i(null,e);if(typeof e!=`string`)return i(Error(`cookieJar must be a path to a JSON file or a CookieJar instance`));r.readFile(e,function(t,n){if(t)return i(Error(`unable to read the cookie jar file "${e}"`));try{n=s.fromJSON(n.toString())}catch{return i(Error(`the file at ${e} does not contain valid JSON data.`))}return i(null,n)})}};t.exports=function(e,t){e.newmanVersion=f.version,e.workingDir=e.workingDir||process.cwd(),e.insecureFileRead=!!n.get(e,`insecureFileRead`,!0),p.get(e,{loaders:C,command:`run`},function(r,i){if(r)return t(r);!n.isEmpty(e.globalVar)&&n.forEach(e.globalVar,function(e){e&&i.globals.set(e.key,e.value)}),!n.isEmpty(e.envVar)&&n.forEach(e.envVar,function(e){e&&i.environment.set(e.key,e.value)}),t(null,i)})}})),Vv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.optsArg=void 0;let t=d(`fs`);e.optsArg=e=>{if(!e)e={mode:511};else if(typeof e==`object`)e={mode:511,...e};else if(typeof e==`number`)e={mode:e};else if(typeof e==`string`)e={mode:parseInt(e,8)};else throw TypeError(`invalid options argument`);let n=e,r=e.fs||{};return e.mkdir=e.mkdir||r.mkdir||t.mkdir,e.mkdirAsync=e.mkdirAsync?e.mkdirAsync:async(e,t)=>new Promise((r,i)=>n.mkdir(e,t,(e,t)=>e?i(e):r(t))),e.stat=e.stat||r.stat||t.stat,e.statAsync=e.statAsync?e.statAsync:async e=>new Promise((t,r)=>n.stat(e,(e,n)=>e?r(e):t(n))),e.statSync=e.statSync||r.statSync||t.statSync,e.mkdirSync=e.mkdirSync||r.mkdirSync||t.mkdirSync,n}})),Hv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirpManual=e.mkdirpManualSync=void 0;let t=d(`path`),n=Vv();e.mkdirpManualSync=(r,i,a)=>{let o=(0,t.dirname)(r),s={...(0,n.optsArg)(i),recursive:!1};if(o===r)try{return s.mkdirSync(r,s)}catch(e){let t=e;if(t&&t.code!==`EISDIR`)throw e;return}try{return s.mkdirSync(r,s),a||r}catch(t){let n=t;if(n&&n.code===`ENOENT`)return(0,e.mkdirpManualSync)(r,s,(0,e.mkdirpManualSync)(o,s,a));if(n&&n.code!==`EEXIST`&&n&&n.code!==`EROFS`)throw t;try{if(!s.statSync(r).isDirectory())throw t}catch{throw t}}},e.mkdirpManual=Object.assign(async(r,i,a)=>{let o=(0,n.optsArg)(i);o.recursive=!1;let s=(0,t.dirname)(r);return s===r?o.mkdirAsync(r,o).catch(e=>{let t=e;if(t&&t.code!==`EISDIR`)throw e}):o.mkdirAsync(r,o).then(()=>a||r,async t=>{let n=t;if(n&&n.code===`ENOENT`)return(0,e.mkdirpManual)(s,o).then(t=>(0,e.mkdirpManual)(r,o,t));if(n&&n.code!==`EEXIST`&&n.code!==`EROFS`)throw t;return o.statAsync(r).then(e=>{if(e.isDirectory())return a;throw t},()=>{throw t})})},{sync:e.mkdirpManualSync})})),Uv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.findMadeSync=e.findMade=void 0;let t=d(`path`);e.findMade=async(n,r,i)=>{if(i!==r)return n.statAsync(r).then(e=>e.isDirectory()?i:void 0,i=>{let a=i;return a&&a.code===`ENOENT`?(0,e.findMade)(n,(0,t.dirname)(r),r):void 0})},e.findMadeSync=(n,r,i)=>{if(i!==r)try{return n.statSync(r).isDirectory()?i:void 0}catch(i){let a=i;return a&&a.code===`ENOENT`?(0,e.findMadeSync)(n,(0,t.dirname)(r),r):void 0}}})),Wv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirpNative=e.mkdirpNativeSync=void 0;let t=d(`path`),n=Uv(),r=Hv(),i=Vv();e.mkdirpNativeSync=(e,a)=>{let o=(0,i.optsArg)(a);if(o.recursive=!0,(0,t.dirname)(e)===e)return o.mkdirSync(e,o);let s=(0,n.findMadeSync)(o,e);try{return o.mkdirSync(e,o),s}catch(t){let n=t;if(n&&n.code===`ENOENT`)return(0,r.mkdirpManualSync)(e,o);throw t}},e.mkdirpNative=Object.assign(async(e,a)=>{let o={...(0,i.optsArg)(a),recursive:!0};return(0,t.dirname)(e)===e?await o.mkdirAsync(e,o):(0,n.findMade)(o,e).then(t=>o.mkdirAsync(e,o).then(e=>t||e).catch(t=>{let n=t;if(n&&n.code===`ENOENT`)return(0,r.mkdirpManual)(e,o);throw t}))},{sync:e.mkdirpNativeSync})})),Gv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.pathArg=void 0;let t=process.env.__TESTING_MKDIRP_PLATFORM__||process.platform,n=d(`path`);e.pathArg=e=>{if(/\0/.test(e))throw Object.assign(TypeError(`path must be a string without null bytes`),{path:e,code:`ERR_INVALID_ARG_VALUE`});if(e=(0,n.resolve)(e),t===`win32`){let t=/[*|"<>?:]/,{root:r}=(0,n.parse)(e);if(t.test(e.substring(r.length)))throw Object.assign(Error(`Illegal characters in path.`),{path:e,code:`EINVAL`})}return e}})),Kv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.useNative=e.useNativeSync=void 0;let t=d(`fs`),n=Vv(),r=(process.env.__TESTING_MKDIRP_NODE_VERSION__||process.version).replace(/^v/,``).split(`.`),i=+r[0]>10||+r[0]==10&&+r[1]>=12;e.useNativeSync=i?e=>(0,n.optsArg)(e).mkdirSync===t.mkdirSync:()=>!1,e.useNative=Object.assign(i?e=>(0,n.optsArg)(e).mkdir===t.mkdir:()=>!1,{sync:e.useNativeSync})})),qv=s((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.mkdirp=e.nativeSync=e.native=e.manualSync=e.manual=e.sync=e.mkdirpSync=e.useNativeSync=e.useNative=e.mkdirpNativeSync=e.mkdirpNative=e.mkdirpManualSync=e.mkdirpManual=void 0;let t=Hv(),n=Wv(),r=Vv(),i=Gv(),a=Kv();var o=Hv();Object.defineProperty(e,`mkdirpManual`,{enumerable:!0,get:function(){return o.mkdirpManual}}),Object.defineProperty(e,`mkdirpManualSync`,{enumerable:!0,get:function(){return o.mkdirpManualSync}});var s=Wv();Object.defineProperty(e,`mkdirpNative`,{enumerable:!0,get:function(){return s.mkdirpNative}}),Object.defineProperty(e,`mkdirpNativeSync`,{enumerable:!0,get:function(){return s.mkdirpNativeSync}});var c=Kv();Object.defineProperty(e,`useNative`,{enumerable:!0,get:function(){return c.useNative}}),Object.defineProperty(e,`useNativeSync`,{enumerable:!0,get:function(){return c.useNativeSync}}),e.mkdirpSync=(e,o)=>{e=(0,i.pathArg)(e);let s=(0,r.optsArg)(o);return(0,a.useNativeSync)(s)?(0,n.mkdirpNativeSync)(e,s):(0,t.mkdirpManualSync)(e,s)},e.sync=e.mkdirpSync,e.manual=t.mkdirpManual,e.manualSync=t.mkdirpManualSync,e.native=n.mkdirpNative,e.nativeSync=n.mkdirpNativeSync,e.mkdirp=Object.assign(async(e,o)=>{e=(0,i.pathArg)(e);let s=(0,r.optsArg)(o);return(0,a.useNative)(s)?(0,n.mkdirpNative)(e,s):(0,t.mkdirpManual)(e,s)},{mkdirpSync:e.mkdirpSync,mkdirpNative:n.mkdirpNative,mkdirpNativeSync:n.mkdirpNativeSync,mkdirpManual:t.mkdirpManual,mkdirpManualSync:t.mkdirpManualSync,sync:e.mkdirpSync,native:n.mkdirpNative,nativeSync:n.mkdirpNativeSync,manual:t.mkdirpManual,manualSync:t.mkdirpManualSync,useNative:a.useNative,useNativeSync:a.useNativeSync})})),Jv=s(((e,t)=>{var n=d(`fs`),{join:r,parse:i,resolve:a}=d(`path`),o=Q(),s=ns(),{mkdirp:c}=qv(),l=``,u=`-`,f=function(e,t,r,i){n.writeFile(e.unparsed,t,function(t){i(o.set(t,`help`,`error writing file "${e.unparsed}" for ${r.name||`unknown-source`}`),e)})},p=function(e,t){return(e||new Date).toISOString().replace(/[^\d]+/g,o.isString(t)?t:u)};t.exports=function(e,t){var u=o.isString(e.path)&&i(a(e.path)),d=o.isPlainObject(e.content)?JSON.stringify(e.content,0,2):e.content||l;!u&&o.isString(e.default)&&(u=i(e.default),u.root=l,u.dir=`newman`,u.name=`${u.name}-${p()}0`,u.base=u.name+u.ext),u&&u.base&&(u.unparsed=r(u.dir,u.base),u.dir?s.waterfall([function(t){c(u.dir).then(()=>t()).catch(n=>t(o.set(n,`help`,`error creating path for file "${u.unparsed}" for ${e.name||`unknown-source`}`)))},function(e){n.stat(u.unparsed,function(t,n){e(null,n)})},function(t,n){var a;t&&t.isDirectory()&&(a=i(e.default),a.name+=`-`+p()+`0`,a.base=a.name+a.ext,u.unparsed=r(u.unparsed,a.base)),n(null,u)},function(t,n){f(t,d,e,n)}],t):f(u,d,e,t))}})),Yv=s(((e,t)=>{let n=[],r=0,i=(e,t)=>{r>=t&&n.push(e)};i.WARN=1,i.INFO=2,i.DEBUG=3,i.reset=()=>{n=[]},i.setDebugLevel=e=>{r=e},i.warn=e=>i(e,i.WARN),i.info=e=>i(e,i.INFO),i.debug=e=>i(e,i.DEBUG),i.debugMessages=()=>n,t.exports=i})),Xv=s(((e,t)=>{t.exports=({onlyFirst:e=!1}={})=>{let t=[`[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)`,`(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))`].join(`|`);return new RegExp(t,e?void 0:`g`)}})),Zv=s(((e,t)=>{let n=Xv();t.exports=e=>typeof e==`string`?e.replace(n(),``):e})),Qv=s(((e,t)=>{let n=e=>Number.isNaN(e)?!1:e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);t.exports=n,t.exports.default=n})),$v=s(((e,t)=>{t.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}})),ey=s(((e,t)=>{let n=Zv(),r=Qv(),i=$v(),a=e=>{if(typeof e!=`string`||e.length===0||(e=n(e),e.length===0))return 0;e=e.replace(i(),` `);let t=0;for(let n=0;n<e.length;n++){let i=e.codePointAt(n);i<=31||i>=127&&i<=159||i>=768&&i<=879||(i>65535&&n++,t+=r(i)?2:1)}return t};t.exports=a,t.exports.default=a})),ty=s(((e,t)=>{let n=ey();function r(e){return e?/\u001b\[((?:\d*;){0,5}\d*)m/g:/\u001b\[(?:\d*;){0,5}\d*m/g}function i(e){let t=r();return(``+e).replace(t,``).split(`
|
|
559
559
|
`).reduce(function(e,t){return n(t)>e?n(t):e},0)}function a(e,t){return Array(t+1).join(e)}function o(e,t,n,r){let o=i(e);if(t+1>=o){let i=t-o;switch(r){case`right`:e=a(n,i)+e;break;case`center`:{let t=Math.ceil(i/2);e=a(n,i-t)+e+a(n,t);break}default:e+=a(n,i);break}}return e}let s={};function c(e,t,n){t=`\x1B[`+t+`m`,n=`\x1B[`+n+`m`,s[t]={set:e,to:!0},s[n]={set:e,to:!1},s[e]={on:t,off:n}}c(`bold`,1,22),c(`italics`,3,23),c(`underline`,4,24),c(`inverse`,7,27),c(`strikethrough`,9,29);function l(e,t){let n=t[1]?parseInt(t[1].split(`;`)[0]):0;if(n>=30&&n<=39||n>=90&&n<=97){e.lastForegroundAdded=t[0];return}if(n>=40&&n<=49||n>=100&&n<=107){e.lastBackgroundAdded=t[0];return}if(n===0){for(let t in e)Object.prototype.hasOwnProperty.call(e,t)&&delete e[t];return}let r=s[t[0]];r&&(e[r.set]=r.to)}function u(e){let t=r(!0),n=t.exec(e),i={};for(;n!==null;)l(i,n),n=t.exec(e);return i}function d(e,t){let n=e.lastBackgroundAdded,r=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t+=s[n].off)}),n&&n!=`\x1B[49m`&&(t+=`\x1B[49m`),r&&r!=`\x1B[39m`&&(t+=`\x1B[39m`),t}function f(e,t){let n=e.lastBackgroundAdded,r=e.lastForegroundAdded;return delete e.lastBackgroundAdded,delete e.lastForegroundAdded,Object.keys(e).forEach(function(n){e[n]&&(t=s[n].on+t)}),n&&n!=`\x1B[49m`&&(t=n+t),r&&r!=`\x1B[39m`&&(t=r+t),t}function p(e,t){if(e.length===i(e))return e.substr(0,t);for(;i(e)>t;)e=e.slice(0,-1);return e}function m(e,t){let n=r(!0),a=e.split(r()),o=0,s=0,c=``,u,f={};for(;s<t;){u=n.exec(e);let r=a[o];if(o++,s+i(r)>t&&(r=p(r,t-s)),c+=r,s+=i(r),s<t){if(!u)break;c+=u[0],l(f,u)}}return d(f,c)}function h(e,t,n){if(n||=`…`,i(e)<=t)return e;t-=i(n);let r=m(e,t);r+=n;let a=`\x1B]8;;\x07`;return e.includes(a)&&!r.includes(a)&&(r+=a),r}function g(){return{chars:{top:`─`,"top-mid":`┬`,"top-left":`┌`,"top-right":`┐`,bottom:`─`,"bottom-mid":`┴`,"bottom-left":`└`,"bottom-right":`┘`,left:`│`,"left-mid":`├`,mid:`─`,"mid-mid":`┼`,right:`│`,"right-mid":`┤`,middle:`│`},truncate:`…`,colWidths:[],rowHeights:[],colAligns:[],rowAligns:[],style:{"padding-left":1,"padding-right":1,head:[`red`],border:[`grey`],compact:!1},head:[]}}function _(e,t){e||={},t||=g();let n=Object.assign({},t,e);return n.chars=Object.assign({},t.chars,e.chars),n.style=Object.assign({},t.style,e.style),n}function v(e,t){let n=[],r=t.split(/(\s+)/g),a=[],o=0,s;for(let t=0;t<r.length;t+=2){let c=r[t],l=o+i(c);o>0&&s&&(l+=s.length),l>e?(o!==0&&n.push(a.join(``)),a=[c],o=i(c)):(a.push(s||``,c),o=l),s=r[t+1]}return o&&n.push(a.join(``)),n}function y(e,t){let n=[],r=``;function i(t,i){for(r.length&&i&&(r+=i),r+=t;r.length>e;)n.push(r.slice(0,e)),r=r.slice(e)}let a=t.split(/(\s+)/g);for(let e=0;e<a.length;e+=2)i(a[e],e&&a[e-1]);return r.length&&n.push(r),n}function b(e,t,n=!0){let r=[];t=t.split(`
|
|
560
|
-
`);let i=n?v:y;for(let n=0;n<t.length;n++)r.push.apply(r,i(e,t[n]));return r}function x(e){let t={},n=[];for(let r=0;r<e.length;r++){let i=f(t,e[r]);t=u(i);let a=Object.assign({},t);n.push(d(a,i))}return n}function S(e,t){return[`\x1B]`,`8`,`;`,`;`,e||t,`\x07`,t,`\x1B]`,`8`,`;`,`;`,`\x07`].join(``)}t.exports={strlen:i,repeat:a,pad:o,truncate:h,mergeOptions:_,wordWrap:b,colorizeLines:x,hyperlink:S}})),
|
|
561
|
-
`)!=-1,a=this._styles,s=a.length;s--;){var c=i[a[s]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(o,function(e){return c.close+e+c.open}))}return e}n.setTheme=function(e){if(typeof e==`string`){console.log(`colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));`);return}for(var t in e)(function(t){n[t]=function(r){if(typeof e[t]==`object`){var i=r;for(var a in e[t])i=n[e[t][a]](i);return i}return n[e[t]](r)}})(t)};function m(){var e={};return Object.keys(u).forEach(function(t){e[t]={get:function(){return l([t])}}}),e}var h=function(e,t){var n=t.split(``);return n=n.map(e),n.join(``)};for(var g in n.trap=
|
|
562
|
-
`))}wrapLines(e){let t=i.colorizeLines(e);return this.href?t.map(e=>i.hyperlink(this.href,e)):t}init(e){let t=this.x,n=this.y;this.widths=e.colWidths.slice(t,t+this.colSpan),this.heights=e.rowHeights.slice(n,n+this.rowSpan),this.width=this.widths.reduce(d,-1),this.height=this.heights.reduce(d,-1),this.hAlign=this.options.hAlign||e.colAligns[t],this.vAlign=this.options.vAlign||e.rowAligns[n],this.drawRight=t+this.colSpan==e.colWidths.length}draw(e,t){if(e==`top`)return this.drawTop(this.drawRight);if(e==`bottom`)return this.drawBottom(this.drawRight);let r=i.truncate(this.content,10,this.truncate);e||n(`${this.y}-${this.x}: ${this.rowSpan-e}x${this.colSpan} Cell ${r}`);let a=Math.max(this.height-this.lines.length,0),o;switch(this.vAlign){case`center`:o=Math.ceil(a/2);break;case`bottom`:o=a;break;default:o=0}if(e<o||e>=o+this.lines.length)return this.drawEmpty(this.drawRight,t);let s=this.lines.length>this.height&&e+1>=this.height;return this.drawLine(e-o,this.drawRight,s,t)}drawTop(e){let t=[];return this.cells?this.widths.forEach(function(e,n){t.push(this._topLeftChar(n)),t.push(i.repeat(this.chars[this.y==0?`top`:`mid`],e))},this):(t.push(this._topLeftChar(0)),t.push(i.repeat(this.chars[this.y==0?`top`:`mid`],this.width))),e&&t.push(this.chars[this.y==0?`topRight`:`rightMid`]),this.wrapWithStyleColors(`border`,t.join(``))}_topLeftChar(t){let n=this.x+t,r;if(this.y==0)r=n==0?`topLeft`:t==0?`topMid`:`top`;else if(n==0)r=`leftMid`;else if(r=t==0?`midMid`:`bottomMid`,this.cells&&(this.cells[this.y-1][n]instanceof e.ColSpanCell&&(r=t==0?`topMid`:`mid`),t==0)){let t=1;for(;this.cells[this.y][n-t]instanceof e.ColSpanCell;)t++;this.cells[this.y][n-t]instanceof e.RowSpanCell&&(r=`leftMid`)}return this.chars[r]}wrapWithStyleColors(e,t){if(this[e]&&this[e].length)try{let n=
|
|
560
|
+
`);let i=n?v:y;for(let n=0;n<t.length;n++)r.push.apply(r,i(e,t[n]));return r}function x(e){let t={},n=[];for(let r=0;r<e.length;r++){let i=f(t,e[r]);t=u(i);let a=Object.assign({},t);n.push(d(a,i))}return n}function S(e,t){return[`\x1B]`,`8`,`;`,`;`,e||t,`\x07`,t,`\x1B]`,`8`,`;`,`;`,`\x07`].join(``)}t.exports={strlen:i,repeat:a,pad:o,truncate:h,mergeOptions:_,wordWrap:b,colorizeLines:x,hyperlink:S}})),ny=s(((e,t)=>{var n={};t.exports=n;var r={reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],grey:[90,39],brightRed:[91,39],brightGreen:[92,39],brightYellow:[93,39],brightBlue:[94,39],brightMagenta:[95,39],brightCyan:[96,39],brightWhite:[97,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgGray:[100,49],bgGrey:[100,49],bgBrightRed:[101,49],bgBrightGreen:[102,49],bgBrightYellow:[103,49],bgBrightBlue:[104,49],bgBrightMagenta:[105,49],bgBrightCyan:[106,49],bgBrightWhite:[107,49],blackBG:[40,49],redBG:[41,49],greenBG:[42,49],yellowBG:[43,49],blueBG:[44,49],magentaBG:[45,49],cyanBG:[46,49],whiteBG:[47,49]};Object.keys(r).forEach(function(e){var t=r[e],i=n[e]=[];i.open=`\x1B[`+t[0]+`m`,i.close=`\x1B[`+t[1]+`m`})})),ry=s(((e,t)=>{t.exports=function(e,t){t||=process.argv;var n=t.indexOf(`--`),r=/^-{1,2}/.test(e)?``:`--`,i=t.indexOf(r+e);return i!==-1&&(n===-1?!0:i<n)}})),iy=s(((e,t)=>{var n=d(`os`),r=ry(),i=process.env,a=void 0;r(`no-color`)||r(`no-colors`)||r(`color=false`)?a=!1:(r(`color`)||r(`colors`)||r(`color=true`)||r(`color=always`))&&(a=!0),`FORCE_COLOR`in i&&(a=i.FORCE_COLOR.length===0||parseInt(i.FORCE_COLOR,10)!==0);function o(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function s(e){if(a===!1)return 0;if(r(`color=16m`)||r(`color=full`)||r(`color=truecolor`))return 3;if(r(`color=256`))return 2;if(e&&!e.isTTY&&a!==!0)return 0;var t=a?1:0;if(process.platform===`win32`){var o=n.release().split(`.`);return Number(process.versions.node.split(`.`)[0])>=8&&Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if(`CI`in i)return[`TRAVIS`,`CIRCLECI`,`APPVEYOR`,`GITLAB_CI`].some(function(e){return e in i})||i.CI_NAME===`codeship`?1:t;if(`TEAMCITY_VERSION`in i)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(i.TEAMCITY_VERSION)?1:0;if(`TERM_PROGRAM`in i){var s=parseInt((i.TERM_PROGRAM_VERSION||``).split(`.`)[0],10);switch(i.TERM_PROGRAM){case`iTerm.app`:return s>=3?3:2;case`Hyper`:return 3;case`Apple_Terminal`:return 2}}return/-256(color)?$/i.test(i.TERM)?2:/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(i.TERM)||`COLORTERM`in i?1:(i.TERM,t)}function c(e){return o(s(e))}t.exports={supportsColor:c,stdout:c(process.stdout),stderr:c(process.stderr)}})),ay=s(((e,t)=>{t.exports=function(e,t){var n=``;e||=`Run the trap, drop the bass`,e=e.split(``);var r={a:[`@`,`Ą`,`Ⱥ`,`Ʌ`,`Δ`,`Λ`,`Д`],b:[`ß`,`Ɓ`,`Ƀ`,`ɮ`,`β`,`฿`],c:[`©`,`Ȼ`,`Ͼ`],d:[`Ð`,`Ɗ`,`Ԁ`,`ԁ`,`Ԃ`,`ԃ`],e:[`Ë`,`ĕ`,`Ǝ`,`ɘ`,`Σ`,`ξ`,`Ҽ`,`੬`],f:[`Ӻ`],g:[`ɢ`],h:[`Ħ`,`ƕ`,`Ң`,`Һ`,`Ӈ`,`Ԋ`],i:[`༏`],j:[`Ĵ`],k:[`ĸ`,`Ҡ`,`Ӄ`,`Ԟ`],l:[`Ĺ`],m:[`ʍ`,`Ӎ`,`ӎ`,`Ԡ`,`ԡ`,`൩`],n:[`Ñ`,`ŋ`,`Ɲ`,`Ͷ`,`Π`,`Ҋ`],o:[`Ø`,`õ`,`ø`,`Ǿ`,`ʘ`,`Ѻ`,`ם`,``,`๏`],p:[`Ƿ`,`Ҏ`],q:[`্`],r:[`®`,`Ʀ`,`Ȑ`,`Ɍ`,`ʀ`,`Я`],s:[`§`,`Ϟ`,`ϟ`,`Ϩ`],t:[`Ł`,`Ŧ`,`ͳ`],u:[`Ʊ`,`Ս`],v:[`ט`],w:[`Ш`,`Ѡ`,`Ѽ`,`൰`],x:[`Ҳ`,`Ӿ`,`Ӽ`,`ӽ`],y:[`¥`,`Ұ`,`Ӌ`],z:[`Ƶ`,`ɀ`]};return e.forEach(function(e){e=e.toLowerCase();var t=r[e]||[` `],i=Math.floor(Math.random()*t.length);r[e]===void 0?n+=e:n+=r[e][i]}),n}})),oy=s(((e,t)=>{t.exports=function(e,t){e||=` he is here `;var n={up:`̍.̎.̄.̅.̿.̑.̆.̐.͒.͗.͑.̇.̈.̊.͂.̓.̈.͊.͋.͌.̃.̂.̌.͐.̀.́.̋.̏.̒.̓.̔.̽.̉.ͣ.ͤ.ͥ.ͦ.ͧ.ͨ.ͩ.ͪ.ͫ.ͬ.ͭ.ͮ.ͯ.̾.͛.͆.̚`.split(`.`),down:`̖.̗.̘.̙.̜.̝.̞.̟.̠.̤.̥.̦.̩.̪.̫.̬.̭.̮.̯.̰.̱.̲.̳.̹.̺.̻.̼.ͅ.͇.͈.͉.͍.͎.͓.͔.͕.͖.͙.͚.̣`.split(`.`),mid:[`̕`,`̛`,`̀`,`́`,`͘`,`̡`,`̢`,`̧`,`̨`,`̴`,`̵`,`̶`,`͜`,`͝`,`͞`,`͟`,`͠`,`͢`,`̸`,`̷`,`͡`,` ҉`]},r=[].concat(n.up,n.down,n.mid);function i(e){return Math.floor(Math.random()*e)}function a(e){var t=!1;return r.filter(function(n){t=n===e}),t}function o(e,t){var r=``,o,s;for(s in t||={},t.up=t.up===void 0?!0:t.up,t.mid=t.mid===void 0?!0:t.mid,t.down=t.down===void 0?!0:t.down,t.size=t.size===void 0?`maxi`:t.size,e=e.split(``),e)if(!a(s)){switch(r+=e[s],o={up:0,down:0,mid:0},t.size){case`mini`:o.up=i(8),o.mid=i(2),o.down=i(8);break;case`maxi`:o.up=i(16)+3,o.mid=i(4)+1,o.down=i(64)+3;break;default:o.up=i(8)+1,o.mid=i(6)/2,o.down=i(8)+1;break}var c=[`up`,`mid`,`down`];for(var l in c)for(var u=c[l],d=0;d<=o[u];d++)t[u]&&(r+=n[u][i(n[u].length)])}return r}return o(e,t)}})),sy=s(((e,t)=>{t.exports=function(e){return function(t,n,r){if(t===` `)return t;switch(n%3){case 0:return e.red(t);case 1:return e.white(t);case 2:return e.blue(t)}}}})),cy=s(((e,t)=>{t.exports=function(e){return function(t,n,r){return n%2==0?t:e.inverse(t)}}})),ly=s(((e,t)=>{t.exports=function(e){var t=[`red`,`yellow`,`green`,`blue`,`magenta`];return function(n,r,i){return n===` `?n:e[t[r++%t.length]](n)}}})),uy=s(((e,t)=>{t.exports=function(e){var t=[`underline`,`inverse`,`grey`,`yellow`,`red`,`green`,`blue`,`white`,`cyan`,`magenta`,`brightYellow`,`brightRed`,`brightGreen`,`brightBlue`,`brightWhite`,`brightCyan`,`brightMagenta`];return function(n,r,i){return n===` `?n:e[t[Math.round(Math.random()*(t.length-2))]](n)}}})),dy=s(((e,t)=>{var n={};t.exports=n,n.themes={};var r=d(`util`),i=n.styles=ny(),a=Object.defineProperties,o=new RegExp(/[\r\n]+/g);n.supportsColor=iy().supportsColor,n.enabled===void 0&&(n.enabled=n.supportsColor()!==!1),n.enable=function(){n.enabled=!0},n.disable=function(){n.enabled=!1},n.stripColors=n.strip=function(e){return(``+e).replace(/\x1B\[\d+m/g,``)},n.stylize=function(e,t){if(!n.enabled)return e+``;var r=i[t];return!r&&t in n?n[t](e):r.open+e+r.close};var s=/[|\\{}()[\]^$+*?.]/g,c=function(e){if(typeof e!=`string`)throw TypeError(`Expected a string`);return e.replace(s,`\\$&`)};function l(e){var t=function e(){return p.apply(e,arguments)};return t._styles=e,t.__proto__=f,t}var u=(function(){var e={};return i.grey=i.gray,Object.keys(i).forEach(function(t){i[t].closeRe=new RegExp(c(i[t].close),`g`),e[t]={get:function(){return l(this._styles.concat(t))}}}),e})(),f=a(function(){},u);function p(){var e=Array.prototype.slice.call(arguments).map(function(e){return e!=null&&e.constructor===String?e:r.inspect(e)}).join(` `);if(!n.enabled||!e)return e;for(var t=e.indexOf(`
|
|
561
|
+
`)!=-1,a=this._styles,s=a.length;s--;){var c=i[a[s]];e=c.open+e.replace(c.closeRe,c.open)+c.close,t&&(e=e.replace(o,function(e){return c.close+e+c.open}))}return e}n.setTheme=function(e){if(typeof e==`string`){console.log(`colors.setTheme now only accepts an object, not a string. If you are trying to set a theme from a file, it is now your (the caller's) responsibility to require the file. The old syntax looked like colors.setTheme(__dirname + '/../themes/generic-logging.js'); The new syntax looks like colors.setTheme(require(__dirname + '/../themes/generic-logging.js'));`);return}for(var t in e)(function(t){n[t]=function(r){if(typeof e[t]==`object`){var i=r;for(var a in e[t])i=n[e[t][a]](i);return i}return n[e[t]](r)}})(t)};function m(){var e={};return Object.keys(u).forEach(function(t){e[t]={get:function(){return l([t])}}}),e}var h=function(e,t){var n=t.split(``);return n=n.map(e),n.join(``)};for(var g in n.trap=ay(),n.zalgo=oy(),n.maps={},n.maps.america=sy()(n),n.maps.zebra=cy()(n),n.maps.rainbow=ly()(n),n.maps.random=uy()(n),n.maps)(function(e){n[e]=function(t){return h(n.maps[e],t)}})(g);a(n,m())})),fy=s(((e,t)=>{t.exports=dy()})),py=s(((e,t)=>{let{info:n,debug:r}=Yv(),i=ty();var a=class e{constructor(e){this.setOptions(e),this.x=null,this.y=null}setOptions(e){[`boolean`,`number`,`bigint`,`string`].indexOf(typeof e)!==-1&&(e={content:``+e}),e||={},this.options=e;let t=e.content;if([`boolean`,`number`,`bigint`,`string`].indexOf(typeof t)!==-1)this.content=String(t);else if(!t)this.content=this.options.href||``;else throw Error(`Content needs to be a primitive, got: `+typeof t);this.colSpan=e.colSpan||1,this.rowSpan=e.rowSpan||1,this.options.href&&Object.defineProperty(this,`href`,{get(){return this.options.href}})}mergeTableOptions(e,t){this.cells=t;let n=this.options.chars||{},r=e.chars,a=this.chars={};f.forEach(function(e){l(n,r,e,a)}),this.truncate=this.options.truncate||e.truncate;let o=this.options.style=this.options.style||{},s=e.style;l(o,s,`padding-left`,this),l(o,s,`padding-right`,this),this.head=o.head||s.head,this.border=o.border||s.border,this.fixedWidth=e.colWidths[this.x],this.lines=this.computeLines(e),this.desiredWidth=i.strlen(this.content)+this.paddingLeft+this.paddingRight,this.desiredHeight=this.lines.length}computeLines(e){let t=e.wordWrap||e.textWrap,{wordWrap:n=t}=this.options;if(this.fixedWidth&&n){if(this.fixedWidth-=this.paddingLeft+this.paddingRight,this.colSpan){let t=1;for(;t<this.colSpan;)this.fixedWidth+=e.colWidths[this.x+t],t++}let{wrapOnWordBoundary:t=!0}=e,{wrapOnWordBoundary:n=t}=this.options;return this.wrapLines(i.wordWrap(this.fixedWidth,this.content,n))}return this.wrapLines(this.content.split(`
|
|
562
|
+
`))}wrapLines(e){let t=i.colorizeLines(e);return this.href?t.map(e=>i.hyperlink(this.href,e)):t}init(e){let t=this.x,n=this.y;this.widths=e.colWidths.slice(t,t+this.colSpan),this.heights=e.rowHeights.slice(n,n+this.rowSpan),this.width=this.widths.reduce(d,-1),this.height=this.heights.reduce(d,-1),this.hAlign=this.options.hAlign||e.colAligns[t],this.vAlign=this.options.vAlign||e.rowAligns[n],this.drawRight=t+this.colSpan==e.colWidths.length}draw(e,t){if(e==`top`)return this.drawTop(this.drawRight);if(e==`bottom`)return this.drawBottom(this.drawRight);let r=i.truncate(this.content,10,this.truncate);e||n(`${this.y}-${this.x}: ${this.rowSpan-e}x${this.colSpan} Cell ${r}`);let a=Math.max(this.height-this.lines.length,0),o;switch(this.vAlign){case`center`:o=Math.ceil(a/2);break;case`bottom`:o=a;break;default:o=0}if(e<o||e>=o+this.lines.length)return this.drawEmpty(this.drawRight,t);let s=this.lines.length>this.height&&e+1>=this.height;return this.drawLine(e-o,this.drawRight,s,t)}drawTop(e){let t=[];return this.cells?this.widths.forEach(function(e,n){t.push(this._topLeftChar(n)),t.push(i.repeat(this.chars[this.y==0?`top`:`mid`],e))},this):(t.push(this._topLeftChar(0)),t.push(i.repeat(this.chars[this.y==0?`top`:`mid`],this.width))),e&&t.push(this.chars[this.y==0?`topRight`:`rightMid`]),this.wrapWithStyleColors(`border`,t.join(``))}_topLeftChar(t){let n=this.x+t,r;if(this.y==0)r=n==0?`topLeft`:t==0?`topMid`:`top`;else if(n==0)r=`leftMid`;else if(r=t==0?`midMid`:`bottomMid`,this.cells&&(this.cells[this.y-1][n]instanceof e.ColSpanCell&&(r=t==0?`topMid`:`mid`),t==0)){let t=1;for(;this.cells[this.y][n-t]instanceof e.ColSpanCell;)t++;this.cells[this.y][n-t]instanceof e.RowSpanCell&&(r=`leftMid`)}return this.chars[r]}wrapWithStyleColors(e,t){if(this[e]&&this[e].length)try{let n=fy();for(let t=this[e].length-1;t>=0;t--)n=n[this[e][t]];return n(t)}catch{return t}else return t}drawLine(e,t,n,r){let a=this.chars[this.x==0?`left`:`middle`];if(this.x&&r&&this.cells){let e=this.cells[this.y+r][this.x-1];for(;e instanceof o;)e=this.cells[e.y][e.x-1];e instanceof s||(a=this.chars.rightMid)}let c=i.repeat(` `,this.paddingLeft),l=t?this.chars.right:``,u=i.repeat(` `,this.paddingRight),d=this.lines[e],f=this.width-(this.paddingLeft+this.paddingRight);n&&(d+=this.truncate||`…`);let p=i.truncate(d,f,this.truncate);return p=i.pad(p,f,` `,this.hAlign),p=c+p+u,this.stylizeLine(a,p,l)}stylizeLine(e,t,n){return e=this.wrapWithStyleColors(`border`,e),n=this.wrapWithStyleColors(`border`,n),this.y===0&&(t=this.wrapWithStyleColors(`head`,t)),e+t+n}drawBottom(e){let t=this.chars[this.x==0?`bottomLeft`:`bottomMid`],n=i.repeat(this.chars.bottom,this.width),r=e?this.chars.bottomRight:``;return this.wrapWithStyleColors(`border`,t+n+r)}drawEmpty(e,t){let n=this.chars[this.x==0?`left`:`middle`];if(this.x&&t&&this.cells){let e=this.cells[this.y+t][this.x-1];for(;e instanceof o;)e=this.cells[e.y][e.x-1];e instanceof s||(n=this.chars.rightMid)}let r=e?this.chars.right:``,a=i.repeat(` `,this.width);return this.stylizeLine(n,a,r)}},o=class{constructor(){}draw(e){return typeof e==`number`&&r(`${this.y}-${this.x}: 1x1 ColSpanCell`),``}init(){}mergeTableOptions(){}},s=class{constructor(e){this.originalCell=e}init(e){let t=this.y,n=this.originalCell.y;this.cellOffset=t-n,this.offset=u(e.rowHeights,n,this.cellOffset)}draw(e){return e==`top`?this.originalCell.draw(this.offset,this.cellOffset):e==`bottom`?this.originalCell.draw(`bottom`):(r(`${this.y}-${this.x}: 1x${this.colSpan} RowSpanCell for ${this.originalCell.content}`),this.originalCell.draw(this.offset+1+e))}mergeTableOptions(){}};function c(...e){return e.filter(e=>e!=null).shift()}function l(e,t,n,r){let i=n.split(`-`);i.length>1?(i[1]=i[1].charAt(0).toUpperCase()+i[1].substr(1),i=i.join(``),r[i]=c(e[i],e[n],t[i],t[n])):r[n]=c(e[n],t[n])}function u(e,t,n){let r=e[t];for(let i=1;i<n;i++)r+=1+e[t+i];return r}function d(e,t){return e+t+1}let f=[`top`,`top-mid`,`top-left`,`top-right`,`bottom`,`bottom-mid`,`bottom-left`,`bottom-right`,`left`,`left-mid`,`mid`,`mid-mid`,`right`,`right-mid`,`middle`];t.exports=a,t.exports.ColSpanCell=o,t.exports.RowSpanCell=s})),my=s(((e,t)=>{let{warn:n,debug:r}=Yv(),i=py(),{ColSpanCell:a,RowSpanCell:o}=i;(function(){function e(t,n){return t[n]>0?e(t,n+1):n}function c(t){let n={};t.forEach(function(t,r){let i=0;t.forEach(function(t){t.y=r,t.x=r?e(n,i):i;let a=t.rowSpan||1,o=t.colSpan||1;if(a>1)for(let e=0;e<o;e++)n[t.x+e]=a;i=t.x+o}),Object.keys(n).forEach(e=>{n[e]--,n[e]<1&&delete n[e]})})}function l(e){let t=0;return e.forEach(function(e){e.forEach(function(e){t=Math.max(t,e.x+(e.colSpan||1))})}),t}function u(e){return e.length}function d(e,t){let n=e.y,r=e.y-1+(e.rowSpan||1),i=t.y,a=!(n>t.y-1+(t.rowSpan||1)||i>r),o=e.x,s=e.x-1+(e.colSpan||1),c=t.x,l=!(o>t.x-1+(t.colSpan||1)||c>s);return a&&l}function f(e,t,n){let r=Math.min(e.length-1,n),i={x:t,y:n};for(let t=0;t<=r;t++){let n=e[t];for(let e=0;e<n.length;e++)if(d(i,n[e]))return!0}return!1}function p(e,t,n,r){for(let i=n;i<r;i++)if(f(e,i,t))return!1;return!0}function m(e){e.forEach(function(t,n){t.forEach(function(t){for(let r=1;r<t.rowSpan;r++){let i=new o(t);i.x=t.x,i.y=t.y+r,i.colSpan=t.colSpan,g(i,e[n+r])}})})}function h(e){for(let t=e.length-1;t>=0;t--){let n=e[t];for(let e=0;e<n.length;e++){let t=n[e];for(let r=1;r<t.colSpan;r++){let i=new a;i.x=t.x+r,i.y=t.y,n.splice(e+1,0,i)}}}}function g(e,t){let n=0;for(;n<t.length&&t[n].x<e.x;)n++;t.splice(n,0,e)}function _(e){let t=u(e),a=l(e);r(`Max rows: ${t}; Max cols: ${a}`);for(let r=0;r<t;r++)for(let o=0;o<a;o++)if(!f(e,o,r)){let s={x:o,y:r,colSpan:1,rowSpan:1};for(o++;o<a&&!f(e,o,r);)s.colSpan++,o++;let c=r+1;for(;c<t&&p(e,c,s.x,s.x+s.colSpan);)s.rowSpan++,c++;let l=new i(s);l.x=s.x,l.y=s.y,n(`Missing cell at ${l.y}-${l.x}.`),g(l,e[r])}}function v(e){return e.map(function(e){if(!Array.isArray(e)){let t=Object.keys(e)[0];e=e[t],Array.isArray(e)?(e=e.slice(),e.unshift(t)):e=[t,e]}return e.map(function(e){return new i(e)})})}function y(e){let t=v(e);return c(t),_(t),m(t),h(t),t}t.exports={makeTableLayout:y,layoutTable:c,addRowSpanCells:m,maxWidth:l,fillInTable:_,computeWidths:s(`colSpan`,`desiredWidth`,`x`,1),computeHeights:s(`rowSpan`,`desiredHeight`,`y`,1)}})();function s(e,t,n,r){return function(i,a){let o=[],s=[],c={};a.forEach(function(i){i.forEach(function(i){(i[e]||1)>1?s.push(i):o[i[n]]=Math.max(o[i[n]]||0,i[t]||0,r)})}),i.forEach(function(e,t){typeof e==`number`&&(o[t]=e)});for(let r=s.length-1;r>=0;r--){let a=s[r],l=a[e],u=a[n],d=o[u],f=typeof i[u]==`number`?0:1;if(typeof d==`number`)for(let e=1;e<l;e++)d+=1+o[u+e],typeof i[u+e]!=`number`&&f++;else d=t===`desiredWidth`?a.desiredWidth-1:1,(!c[u]||c[u]<d)&&(c[u]=d);if(a[t]>d){let e=0;for(;f>0&&a[t]>d;){if(typeof i[u+e]!=`number`){let n=Math.round((a[t]-d)/f);d+=n,o[u+e]+=n,f--}e++}}}Object.assign(i,o,c);for(let e=0;e<i.length;e++)i[e]=Math.max(r,i[e]||0)}}})),hy=s(((e,t)=>{let n=Yv(),r=ty(),i=my();var a=class extends Array{constructor(e){super();let t=r.mergeOptions(e);if(Object.defineProperty(this,`options`,{value:t,enumerable:t.debug}),t.debug){switch(typeof t.debug){case`boolean`:n.setDebugLevel(n.WARN);break;case`number`:n.setDebugLevel(t.debug);break;case`string`:n.setDebugLevel(parseInt(t.debug,10));break;default:n.setDebugLevel(n.WARN),n.warn(`Debug option is expected to be boolean, number, or string. Received a ${typeof t.debug}`)}Object.defineProperty(this,`messages`,{get(){return n.debugMessages()}})}}toString(){let e=this,t=this.options.head&&this.options.head.length;t?(e=[this.options.head],this.length&&e.push.apply(e,this)):this.options.style.head=[];let n=i.makeTableLayout(e);n.forEach(function(e){e.forEach(function(e){e.mergeTableOptions(this.options,n)},this)},this),i.computeWidths(this.options.colWidths,n),i.computeHeights(this.options.rowHeights,n),n.forEach(function(e){e.forEach(function(e){e.init(this.options)},this)},this);let r=[];for(let e=0;e<n.length;e++){let i=n[e],a=this.options.rowHeights[e];(e===0||!this.options.style.compact||e==1&&t)&&o(i,`top`,r);for(let e=0;e<a;e++)o(i,e,r);e+1==n.length&&o(i,`bottom`,r)}return r.join(`
|
|
563
563
|
`)}get width(){return this.toString().split(`
|
|
564
|
-
`)[0].length}};a.reset=()=>n.reset();function o(e,t,n){let r=[];e.forEach(function(e){r.push(e.draw(t))});let i=r.join(``);i.length&&n.push(i)}t.exports=a})),
|
|
564
|
+
`)[0].length}};a.reset=()=>n.reset();function o(e,t,n){let r=[];e.forEach(function(e){r.push(e.draw(t))});let i=r.join(``);i.length&&n.push(i)}t.exports=a})),gy=s(((e,t)=>{t.exports=hy()})),_y=s(((e,t)=>{function n(e){let t=e.length-1,n=e[t];for(;n===` `||n===` `;)n=e[--t];return e.substring(0,t+1)}function r(e){return e.split(`
|
|
565
565
|
`).map(e=>n(e)).join(`
|
|
566
566
|
`)}t.exports=function(e,t){if(t||={},e==null)return e;var n=t.width||50,a=typeof t.indent==`string`?t.indent:` `,o=t.newline||`
|
|
567
567
|
`+a,s=typeof t.escape==`function`?t.escape:i,c=`.{1,`+n+`}`;t.cut!==!0&&(c+=`([\\s]+|$)|[^\\s]+?([\\s]+|$)`);var l=new RegExp(c,`g`),u=a+(e.match(l)||[]).map(function(e){return e.slice(-1)===`
|
|
568
|
-
`&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),
|
|
569
|
-
`,s=/^win/.test(process.platform)?[`―`,`\\`,`|`,`/`]:[`⠄`,`⠆`,`⠇`,`⠋`,`⠙`,`⠸`,`⠰`,`⠠`,`⠰`,`⠸`,`⠙`,`⠋`,`⠇`,`⠆`],c=s.length-1,l=100,u=function(){return u.print.apply(this,arguments)};u.print=function(){return u.waiting&&u.unwait(),u._buffer&&u.unbuffer(),process.stdout.write(n.apply(this,arguments)),u},u.lf=function(){return u.waiting&&u.unwait(),u._buffer&&u.unbuffer(),process.stdout.write(n.apply(this,arguments)+o),u},u._waitPosition=0,u.wait=function(e){return u.unwait(),r.noTTY()?u:(process.stdout.write(i),u.waiting=setInterval(function(){process.stdout.write(a+(e?e(s[u._waitPosition++]):s[u._waitPosition++])),u._waitPosition>c&&(u._waitPosition=0)},l),u)},u.unwait=function(){return u.waiting&&(u.waiting=clearInterval(u.waiting),u._waitPosition=0,process.stdout.write(`\b`)),u},u._buffer=void 0,u.buffer=function(e,t){return u._buffer===void 0&&process.stdout.write(e),u._buffer=t,u._buferring&&=clearTimeout(u._buferring),u._buferring=setTimeout(u.unbuffer,500),process.stdout.write(n.apply(this,Array.prototype.splice.call(arguments,2))),u},u.nobuffer=function(){return u.unwait(),process.stdout.write(n.apply(this,arguments)),u},u.unbuffer=function(){return u._buferring&&=clearTimeout(u._buferring),u._buffer&&=(process.stdout.write(u._buffer),void 0),u},t.exports=u})),
|
|
568
|
+
`&&(e=e.slice(0,e.length-1)),s(e)}).join(o);return t.trim===!0&&(u=r(u)),u};function i(e){return e}})),vy=s(((e,t)=>{var n=/^win/.test(process.platform),r={regular:{console:{top:`┌`,middle:`│`,bottom:`└`},dot:`.`,folder:`❏`,root:`→`,sub:`↳`,ok:`✓`,error:`✖`,star:`★`,up:`↑`,down:`↓`},encoded:{console:{top:`┌`,middle:`│`,bottom:`└`},dot:`.`,folder:`□`,root:`→`,sub:`└`,ok:`√`,error:`×`,star:`★`,up:`↑`,down:`↓`},plainText:{console:{top:`-`,middle:`|`,bottom:`-`},dot:`.`,folder:`Folder`,root:`Root`,sub:`Sub-folder`,ok:`Pass`,error:`Fail`,star:`*`,up:`^`,down:`v`}};t.exports=function(e){return e?r.plainText:n?r.encoded:r.regular}})),yy=s(((e,t)=>{var n=d(`util`).inspect,r=_y(),i=vy(),a;n.styles.string=`grey`,n.styles.name=`white`,a={symbols:i,cliTableTemplate_Blank:{top:``,"top-mid":``,"top-left":``,"top-right":``,bottom:``,"bottom-mid":``,"bottom-left":``,"bottom-right":``,middle:``,mid:` `,"mid-mid":``,"mid-left":``,"mid-right":``,left:``,"left-mid":``,"left-left":``,"left-right":``,right:``,"right-mid":``,"right-left":``,"right-right":``},cliTableTemplateFallback:{top:`-`,"top-mid":`-`,"top-left":`-`,"top-right":`-`,bottom:`-`,"bottom-mid":`-`,"bottom-left":`-`,"bottom-right":`-`,middle:`|`,mid:`-`,"mid-mid":`+`,"mid-left":`-`,"mid-right":`-`,left:`|`,"left-mid":`-`,"left-left":`-`,"left-right":`-`,right:`|`,"right-mid":`-`,"right-left":`-`,"right-right":`-`},padLeft:function(e,t,n){return Array(t-String(e).length+1).join(n||`0`)+e},noTTY:function(e){return e===`off`||e!==`on`&&!process.stdout.isTTY},inspector:function(e){var t=a.dimension(),r={depth:25,maxArrayLength:100,colors:!a.noTTY(e.color),breakLength:(t.exists&&t.width>20?t.width:60)-16};return function(e){return n(e,r)}},wrapper:function(){var e=a.dimension(),t=(e.exists&&e.width>20?e.width:60)-6;return function(e,n){return r(e,{indent:n,width:t,cut:!0})}},dimension:function(){var e,t,n;try{e=d(`tty`)}catch{e=null}return e&&e.isatty(1)&&e.isatty(2)&&(process.stdout.getWindowSize?(t=process.stdout.getWindowSize(1)[0],n=process.stdout.getWindowSize(1)[1]):e.getWindowSize?(t=e.getWindowSize()[1],n=e.getWindowSize()[0]):process.stdout.columns&&process.stdout.rows&&(n=process.stdout.rows,t=process.stdout.columns)),{exists:!(process.env.CI||!process.stdout.isTTY),width:t,height:n}}},t.exports=a})),by=s(((e,t)=>{var n=d(`util`).format,r=yy(),i=` `,a=`\b`,o=`
|
|
569
|
+
`,s=/^win/.test(process.platform)?[`―`,`\\`,`|`,`/`]:[`⠄`,`⠆`,`⠇`,`⠋`,`⠙`,`⠸`,`⠰`,`⠠`,`⠰`,`⠸`,`⠙`,`⠋`,`⠇`,`⠆`],c=s.length-1,l=100,u=function(){return u.print.apply(this,arguments)};u.print=function(){return u.waiting&&u.unwait(),u._buffer&&u.unbuffer(),process.stdout.write(n.apply(this,arguments)),u},u.lf=function(){return u.waiting&&u.unwait(),u._buffer&&u.unbuffer(),process.stdout.write(n.apply(this,arguments)+o),u},u._waitPosition=0,u.wait=function(e){return u.unwait(),r.noTTY()?u:(process.stdout.write(i),u.waiting=setInterval(function(){process.stdout.write(a+(e?e(s[u._waitPosition++]):s[u._waitPosition++])),u._waitPosition>c&&(u._waitPosition=0)},l),u)},u.unwait=function(){return u.waiting&&(u.waiting=clearInterval(u.waiting),u._waitPosition=0,process.stdout.write(`\b`)),u},u._buffer=void 0,u.buffer=function(e,t){return u._buffer===void 0&&process.stdout.write(e),u._buffer=t,u._buferring&&=clearTimeout(u._buferring),u._buferring=setTimeout(u.unbuffer,500),process.stdout.write(n.apply(this,Array.prototype.splice.call(arguments,2))),u},u.nobuffer=function(){return u.unwait(),process.stdout.write(n.apply(this,arguments)),u},u.unbuffer=function(){return u._buferring&&=clearTimeout(u._buferring),u._buffer&&=(process.stdout.write(u._buffer),void 0),u},t.exports=u})),xy=s(((e,t)=>{var n=Q(),r=es(),i=ge(),a=gy(),o=d(`util`).format,s=Iv(),c=yy(),l=by(),u=c.padLeft,f=`
|
|
570
570
|
`,p=` `,m=`.`,h=``,g=`(cache)`,_={prepare:`prepare`,wait:`wait`,dns:`dns-lookup`,tcp:`tcp-handshake`,secureHandshake:`ssl-handshake`,firstByte:`transfer-start`,download:`download`,process:`process`,total:`total`},v=2048,y,b,x;i.setTheme({log:`grey`,info:`cyan`,warn:`yellow`,debug:`blue`,error:`red`}),x=function(e){var t;return n.isArray(e)&&n.forEachRight(e,function(e){var r=n.get(e,`result.return.nextRequest`);if(r)return t=r,!1}),t},y=function(e,t,o){var d=o.collection,m=c.inspector(o),S=c.wrapper(),C=c.symbols(o.disableUnicode);t.silent||o.silent||(c.noTTY(o.color)&&i.disable(),e.on(`done`,function(){var e=this.summary.run;t.noSummary||l(f+y.parseStatistics(e.stats,e.timings,e.transfers,o)+f),!t.noFailures&&e.failures&&e.failures.length&&l(f+y.parseFailures(e.failures)+f)}),e.on(`start`,function(){var e=d&&(d.name||d.id);t.noBanner||l(`%s
|
|
571
571
|
|
|
572
572
|
`,i.reset(`newman`)),e&&l.lf(`%s`,i.reset(e))}),e.on(`beforeIteration`,function(e,t){e||t.cursor.cycles<=1||l.lf(f+i.gray.underline(`Iteration %d/%d`),t.cursor.iteration+1,t.cursor.cycles)}),e.on(`test`,function(e,t){if(!e){var n=x(t.executions);n&&l.lf(f+i.gray(`Attempting to set next request to`,n))}}),e.on(`beforeItem`,function(e,t){if(!e){var n=t.item.parent(),r=!n||n===o.collection;n&&d!==n&&(!r&&l(`
|
|
573
573
|
%s %s`,C.folder,i.reset(s.getFullName(n))),d=n),t.item&&l.lf(`
|
|
574
574
|
%s %s`,r?C.root:C.sub,i.reset(t.item.name||h))}}),e.on(`beforeRequest`,function(e,n){e||!n.request||(t.showTimestamps?(b=`[`+new Date().toLocaleString()+`]`,l(` %s %s %s `,i.gray(b),i.gray(n.request.method),i.gray(n.request.url.toString()))):l(` %s %s `,i.gray(n.request.method),i.gray(n.request.url.toString())),!o.disableUnicode&&l().wait(i.gray))}),e.on(`request`,function(e,t){if(e){l.lf(i.red(`[errored]`)),l.lf(i.red(` %s`),e.message);return}if(!(t.request&&t.response)){l.lf(i.red(`[errored]`)),l.lf(i.red(` %s`),`Internal error! Could not read response data.`);return}if(!o.verbose){l.lf(i.gray(`[%d %s, %s, %s]`),t.response.code,t.response.reason(),s.filesize(t.response.size().total),s.prettyms(t.response.responseTime));return}let u=t.request,d=t.response,m=s.filesize(u.size().total),y=s.filesize(d.size().total),b=d.code,x=d.reason(),w=d.contentInfo()||{},T=n.last(n.get(t,`history.execution.data`)),E=n.get(u,`headers.members.length`),D=n.get(d,`headers.members.length`),O=s.prettyms(d.responseTime||0),k=o.verbose&&u.body?u.body.toString():h,A=u.size().body||Buffer.byteLength(k),j=o.verbose?d.text():h,M=d.size().body||Buffer.byteLength(j),N=n.get(u,`body.mode`,``),P=[`${w.contentType}`,`${w.mimeType}`,`${w.mimeFormat}`,`${w.charset}`].join(` ${i.gray(C.star)} `);if(l.lf(p),l.lf(p+p+[`${b} ${x}`,`${O} ${i.gray(`time`)}`,`${m}${i.gray(C.up)} ${y}${i.gray(C.down)} ${i.gray(`size`)}`,`${E}${i.gray(C.up)} ${D}${i.gray(C.down)} ${i.gray(`headers`)}`,`${n.get(d,`cookies.members.length`)} ${i.gray(`cookies`)}`].join(` ${i.gray(C.star)} `)),A&&(A>v&&(k=k.substr(0,v)+i.brightWhite(`\n(showing ${s.filesize(v)}/${s.filesize(A)})`)),k=S(k,` ${i.white(C.console.middle)} `),l.buffer(` ${i.white(C.console.top)} ${i.white(C.up)} ${N} ${i.gray(C.star)} ${s.filesize(A)}\n`,i.white(` ${C.console.bottom}`)).nobuffer(i.gray(k.replace(/\n\s*\n/g,f)+f)),l.lf(p)),M?(M>v&&(j=j.substr(0,v)+i.brightWhite(`\n(showing ${s.filesize(v)}/${s.filesize(M)})`)),j=S(j,` ${i.white(C.console.middle)} `),l.buffer(` ${i.white(C.console.top)} ${i.white(C.down)} ${P} ${i.gray(C.star)} ${s.filesize(M)}\n`,i.white(` ${C.console.bottom}`)).nobuffer(i.gray(j.replace(/\n\s*\n/g,f)+f))):l.lf(` ${C.down} ${P}`),T&&=T.timings,T){let e=s.beautifyTime(r.Response.timingPhases(T)),t=new a({chars:n.defaults({mid:``,middle:``},c.cliTableTemplate_Blank),colAligns:n.fill(Array(n.size(e)),`left`),style:{"padding-left":2}});e=n.transform(_,(t,r,a)=>{n.has(e,a)&&(t.headers.push(i.white(r)),t.values.push(i.log(e[a]||g)))},{headers:[],values:[]}),t.push(e.headers),t.push(e.values),l(f+t+f+f)}}),e.on(`script`,function(e,t){e&&l.lf(i.red.bold(`%s⠄ %s in %s-script`),u(this.summary.run.failures.length,3,p),e.name,t.event&&t.event.listen||`unknown`)}),!t.noAssertions&&e.on(`assertion`,function(e,n){var r=!e;if(n.skipped&&!t.noSuccessAssertions){l.lf(`%s %s`,i.cyan(` - `),i.cyan(`[skipped] `+n.assertion));return}r&&t.noSuccessAssertions||(t.showTimestamps?(b=`[`+new Date().toLocaleTimeString()+`]`,l.lf(` %s%s %s`,i.gray(b),r?i.green(` ${C.ok} `):i.red.bold(u(this.summary.run.failures.length,2,p)+C.dot),r?i.gray(n.assertion):i.red.bold(n.assertion))):l.lf(`%s %s`,r?i.green(` ${C.ok} `):i.red.bold(u(this.summary.run.failures.length,3,p)+C.dot),r?i.gray(n.assertion):i.red.bold(n.assertion)))}),!t.noConsole&&e.on(`console`,function(e,r){if(!e){var a=i[r.level]||i.gray,o=S(n.reduce(r.messages,function(e,t){return e+=(e?i.white(`, `):``)+m(t)},h),` ${a(C.console.middle)} `);t.showTimestamps&&l(f+` %s`,i.gray(`[`+new Date().toLocaleTimeString()+`]`+f)),l.buffer(a(` ${C.console.top}\n`),a(` ${C.console.bottom}\n`)).nobuffer(i.gray(o.replace(/\n\s*\n/g,f)+f))}}))},n.assignIn(y,{parseStatistics(e,t,r,l){var u,d={head:[]};return c.noTTY(l.color)&&(d.border=[]),u=new a({chars:l.disableUnicode&&c.cliTableTemplateFallback,style:d,head:[h,`executed`,` failed`],colAligns:[`right`,`right`,`right`],colWidths:[25]}),e&&n.forEach([{source:`iterations`,label:`iterations`},{source:`requests`,label:`requests`},{source:`testScripts`,label:`test-scripts`},{source:`prerequestScripts`,label:`prerequest-scripts`},{source:`assertions`,label:`assertions`}],function(t){var n=e[t.source],r=t.label;r=n.failed?i.red(r):n.pending?r:i.green(r),u.push([r,n.total,n.failed?i.red(n.failed):n.failed])}),t&&u.push([{colSpan:3,content:o(`total run duration: %s`,s.prettyms(t.completed-t.started)),hAlign:`left`}]),r&&u.push([{colSpan:3,content:o(`total data received: %s (approx)`,s.filesize(r.responseTotal)),hAlign:`left`}]),t&&n.forEach({response:`average response time:`,dns:`average DNS lookup time:`,firstByte:`average first byte time:`},(e,n)=>{t[`${n}Average`]&&u.push([{colSpan:3,content:o(`${e} %s [min: %s, max: %s, s.d.: %s]`,s.prettyms(t[`${n}Average`]),s.prettyms(t[`${n}Min`]),s.prettyms(t[`${n}Max`]),s.prettyms(t[`${n}Sd`])),hAlign:`left`}])}),u},parseFailures(e){var t=new a({head:[{hAlign:`right`,content:i.red.underline(`#`)},i.red.underline(`failure`),i.red.underline(`detail`)],chars:c.cliTableTemplate_Blank,wordWrap:!0,colAligns:[`right`],colWidths:c.noTTY()?[]:function(e,t){var n=[];return e.exists&&e.width&&e.width>20&&(n[0]=t+3,n[1]=parseInt((e.width-n[0])*.2,10),n[2]=parseInt(e.width-(n[0]+n[1]+5),10)),n}(c.dimension(),Number(e.length.toString().length))});return n.forEach(e,function(n,r){var a=n.error&&n.error.name||h,c=n.error&&n.error.test||h;n.cursor&&n.cursor.cycles>1&&(a+=f+i.gray(`iteration: `+(n.cursor.iteration+1))),n.error&&(c+=f+i.gray(n.error.message||h)),n.at&&(c+=f+i.gray(`at `+n.at)),n.source&&(c+=o(i.gray(`
|
|
575
|
-
inside "%s"`),s.getFullName(n.source))),t.push([u(Number(r+1),Number(e.length.toString().length)).toString()+m,a,c])}),t}}),y.prototype.dominant=!0,t.exports=y})),fb=s(((e,t)=>{var n=Q();t.exports=function(e,t){e.on(`beforeDone`,function(r,i){r||e.exports.push({name:`json-reporter`,default:`newman-run-report.json`,path:t.export,content:JSON.stringify(n.omit(i.summary,`exports`),0,2)})})}})),pb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c={}.hasOwnProperty;e=function(e,...t){var n,r,i,o;if(a(Object.assign))Object.assign.apply(null,arguments);else for(n=0,i=t.length;n<i;n++)if(o=t[n],o!=null)for(r in o)c.call(o,r)&&(e[r]=o[r]);return e},a=function(e){return!!e&&Object.prototype.toString.call(e)===`[object Function]`},o=function(e){var t;return!!e&&((t=typeof e)==`function`||t===`object`)},r=function(e){return a(Array.isArray)?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(c.call(e,t))return!1;return!0},s=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&typeof t==`function`&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return a(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=a,t.exports.isObject=o,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=s,t.exports.getValue=n}).call(e)})),mb=s(((e,t)=>{(function(){t.exports=class{hasFeature(e,t){return!0}createDocumentType(e,t,n){throw Error(`This DOM method is not implemented.`)}createDocument(e,t,n){throw Error(`This DOM method is not implemented.`)}createHTMLDocument(e){throw Error(`This DOM method is not implemented.`)}getFeature(e,t){throw Error(`This DOM method is not implemented.`)}}}).call(e)})),hb=s(((e,t)=>{(function(){t.exports=class{constructor(){}handleError(e){throw Error(e)}}}).call(e)})),gb=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.arr=e||[]}item(e){return this.arr[e]||null}contains(e){return this.arr.indexOf(e)!==-1}}return Object.defineProperty(e.prototype,`length`,{get:function(){return this.arr.length}}),e}).call(this)}).call(e)})),_b=s(((e,t)=>{(function(){var e=hb(),n=gb();t.exports=(function(){class t{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(e){return this.params.hasOwnProperty(e)?this.params[e]:null}canSetParameter(e,t){return!0}setParameter(e,t){return t==null?delete this.params[e]:this.params[e]=t}}return Object.defineProperty(t.prototype,`parameterNames`,{get:function(){return new n(Object.keys(this.defaultParams))}}),t}).call(this)}).call(e)})),vb=s(((e,t)=>{(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(e)})),yb=s(((e,t)=>{(function(){var e=vb();Lb(),t.exports=(function(){class t{constructor(t,n,r){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw Error(`Missing attribute name. `+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(r),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))}debugInfo(e){return e||=this.name,e==null?`parent: <`+this.parent.name+`>`:`attribute: {`+e+`}, parent: <`+this.parent.name+`>`}isEqualNode(e){return!(e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.value!==this.value)}}return Object.defineProperty(t.prototype,`nodeType`,{get:function(){return this.type}}),Object.defineProperty(t.prototype,`ownerElement`,{get:function(){return this.parent}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,`namespaceURI`,{get:function(){return``}}),Object.defineProperty(t.prototype,`prefix`,{get:function(){return``}}),Object.defineProperty(t.prototype,`localName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`specified`,{get:function(){return!0}}),t}).call(this)}).call(e)})),bb=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.nodes=e}clone(){return this.nodes=null}getNamedItem(e){return this.nodes[e]}setNamedItem(e){var t=this.nodes[e.nodeName];return this.nodes[e.nodeName]=e,t||null}removeNamedItem(e){var t=this.nodes[e];return delete this.nodes[e],t||null}item(e){return this.nodes[Object.keys(this.nodes)[e]]||null}getNamedItemNS(e,t){throw Error(`This DOM method is not implemented.`)}setNamedItemNS(e){throw Error(`This DOM method is not implemented.`)}removeNamedItemNS(e,t){throw Error(`This DOM method is not implemented.`)}}return Object.defineProperty(e.prototype,`length`,{get:function(){return Object.keys(this.nodes).length||0}}),e}).call(this)}).call(e)})),xb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c={}.hasOwnProperty;({isObject:s,isFunction:o,getValue:a}=pb()),i=Lb(),e=vb(),n=yb(),r=bb(),t.exports=(function(){class t extends i{constructor(t,n,r){var i,a,o,s;if(super(t),n==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,r!=null&&this.attribute(r),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children)){for(s=t.children,a=0,o=s.length;a<o;a++)if(i=s[a],i.type===e.DocType){i.name=this.name;break}}}clone(){var e,t,n=Object.create(this),r;for(t in n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs,r)c.call(r,t)&&(e=r[t],n.attribs[t]=e.clone());return n.children=[],this.children.forEach(function(e){var t=e.clone();return t.parent=n,n.children.push(t)}),n}attribute(e,t){var r,i;if(e!=null&&(e=a(e)),s(e))for(r in e)c.call(e,r)&&(i=e[r],this.attribute(r,i));else o(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.attribs[e]=new n(this,e,``):t!=null&&(this.attribs[e]=new n(this,e,t));return this}removeAttribute(e){var t,n,r;if(e==null)throw Error(`Missing attribute name. `+this.debugInfo());if(e=a(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attribs[t];else delete this.attribs[e];return this}toString(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))}att(e,t){return this.attribute(e,t)}a(e,t){return this.attribute(e,t)}getAttribute(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null}setAttribute(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNode(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null}setAttributeNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNS(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNodeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNodeNS(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasAttribute(e){return this.attribs.hasOwnProperty(e)}hasAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttribute(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t}setIdAttributeNS(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttributeNode(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){var t,n,r;if(!super.isEqualNode(e)||e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.attribs.length!==this.attribs.length)return!1;for(t=n=0,r=this.attribs.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0}}return Object.defineProperty(t.prototype,`tagName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`namespaceURI`,{get:function(){return``}}),Object.defineProperty(t.prototype,`prefix`,{get:function(){return``}}),Object.defineProperty(t.prototype,`localName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`id`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`className`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`classList`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`attributes`,{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new r(this.attribs)),this.attributeMap}}),t}).call(this)}).call(e)})),Sb=s(((e,t)=>{(function(){var e=Lb();t.exports=(function(){class t extends e{constructor(e){super(e),this.value=``}clone(){return Object.create(this)}substringData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendData(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}insertData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}deleteData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceData(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){return!(!super.isEqualNode(e)||e.data!==this.data)}}return Object.defineProperty(t.prototype,`data`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,`length`,{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),t}).call(this)}).call(e)})),Cb=s(((e,t)=>{(function(){var e=vb(),n=Sb();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=e.CData,this.value=this.stringify.cdata(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))}}}).call(e)})),wb=s(((e,t)=>{(function(){var e=vb(),n=Sb();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=e.Comment,this.value=this.stringify.comment(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))}}}).call(e)})),Tb=s(((e,t)=>{(function(){var e,n,r;({isObject:r}=pb()),n=Lb(),e=vb(),t.exports=class extends n{constructor(t,n,i,a){super(t),r(n)&&({version:n,encoding:i,standalone:a}=n),n||=`1.0`,this.type=e.Declaration,this.version=this.stringify.xmlVersion(n),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),a!=null&&(this.standalone=this.stringify.xmlStandalone(a))}toString(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))}}}).call(e)})),Eb=s(((e,t)=>{(function(){var e,n=Lb();e=vb(),t.exports=class extends n{constructor(t,n,r,i,a,o){if(super(t),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(r==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(n));if(!i)throw Error(`Missing DTD attribute type. `+this.debugInfo(n));if(!a)throw Error(`Missing DTD attribute default. `+this.debugInfo(n));if(a.indexOf(`#`)!==0&&(a=`#`+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(n));if(o&&!a.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(i),o&&(this.defaultValue=this.stringify.dtdAttDefault(o)),this.defaultValueType=a}toString(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))}}}).call(e)})),Db=s(((e,t)=>{(function(){var e,n,r;({isObject:r}=pb()),n=Lb(),e=vb(),t.exports=(function(){class t extends n{constructor(t,n,i,a){if(super(t),i==null)throw Error(`Missing DTD entity name. `+this.debugInfo(i));if(a==null)throw Error(`Missing DTD entity value. `+this.debugInfo(i));if(this.pe=!!n,this.name=this.stringify.name(i),this.type=e.EntityDeclaration,!r(a))this.value=this.stringify.dtdEntityValue(a),this.internal=!0;else{if(!a.pubID&&!a.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(i));if(a.pubID&&!a.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(i));if(this.internal=!1,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID)),a.nData!=null&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(i))}}toString(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))}}return Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,`notationName`,{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,`inputEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`xmlEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`xmlVersion`,{get:function(){return null}}),t}).call(this)}).call(e)})),Ob=s(((e,t)=>{(function(){var e,n=Lb();e=vb(),t.exports=class extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());r||=`(#PCDATA)`,Array.isArray(r)&&(r=`(`+r.join(`,`)+`)`),this.name=this.stringify.name(n),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}toString(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))}}}).call(e)})),kb=s(((e,t)=>{(function(){var e,n=Lb();e=vb(),t.exports=(function(){class t extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing DTD notation name. `+this.debugInfo(n));if(!r.pubID&&!r.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(n));this.name=this.stringify.name(n),this.type=e.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}toString(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))}}return Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),t}).call(this)}).call(e)})),Ab=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c;({isObject:c}=pb()),s=Lb(),e=vb(),n=Eb(),i=Db(),r=Ob(),a=kb(),o=bb(),t.exports=(function(){class t extends s{constructor(t,n,r){var i,a,o,s;if(super(t),this.type=e.DocType,t.children){for(s=t.children,a=0,o=s.length;a<o;a++)if(i=s[a],i.type===e.Element){this.name=i.name;break}}this.documentObject=t,c(n)&&({pubID:n,sysID:r}=n),r??([r,n]=[n,r]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),r!=null&&(this.sysID=this.stringify.dtdSysID(r))}element(e,t){var n=new r(this,e,t);return this.children.push(n),this}attList(e,t,r,i,a){var o=new n(this,e,t,r,i,a);return this.children.push(o),this}entity(e,t){var n=new i(this,!1,e,t);return this.children.push(n),this}pEntity(e,t){var n=new i(this,!0,e,t);return this.children.push(n),this}notation(e,t){var n=new a(this,e,t);return this.children.push(n),this}toString(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))}ele(e,t){return this.element(e,t)}att(e,t,n,r,i){return this.attList(e,t,n,r,i)}ent(e,t){return this.entity(e,t)}pent(e,t){return this.pEntity(e,t)}not(e,t){return this.notation(e,t)}up(){return this.root()||this.documentObject}isEqualNode(e){return!(!super.isEqualNode(e)||e.name!==this.name||e.publicId!==this.publicId||e.systemId!==this.systemId)}}return Object.defineProperty(t.prototype,`entities`,{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.EntityDeclaration&&!t.pe&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(t.prototype,`notations`,{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.NotationDeclaration&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,`internalSubset`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),t}).call(this)}).call(e)})),jb=s(((e,t)=>{(function(){var e=vb(),n=Lb();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))}}}).call(e)})),Mb=s(((e,t)=>{(function(){var e=vb(),n=Sb();t.exports=(function(){class t extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=e.Text,this.value=this.stringify.text(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))}splitText(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceWholeText(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(t.prototype,`isElementContentWhitespace`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`wholeText`,{get:function(){var e,t,n=``;for(t=this.previousSibling;t;)n=t.data+n,t=t.previousSibling;for(n+=this.data,e=this.nextSibling;e;)n+=e.data,e=e.nextSibling;return n}}),t}).call(this)}).call(e)})),Nb=s(((e,t)=>{(function(){var e=vb(),n=Sb();t.exports=class extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}clone(){return Object.create(this)}toString(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))}isEqualNode(e){return!(!super.isEqualNode(e)||e.target!==this.target)}}}).call(e)})),Pb=s(((e,t)=>{(function(){var e,n=Lb();e=vb(),t.exports=class extends n{constructor(t){super(t),this.type=e.Dummy}clone(){return Object.create(this)}toString(e){return``}}}).call(e)})),Fb=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.nodes=e}clone(){return this.nodes=null}item(e){return this.nodes[e]||null}}return Object.defineProperty(e.prototype,`length`,{get:function(){return this.nodes.length||0}}),e}).call(this)}).call(e)})),Ib=s(((e,t)=>{(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(e)})),Lb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_={}.hasOwnProperty,v=[].splice;({isObject:g,isFunction:h,isEmpty:m,getValue:p}=pb()),c=null,r=null,i=null,a=null,o=null,d=null,f=null,u=null,s=null,n=null,l=null,e=null,t.exports=(function(){class t{constructor(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=xb(),r=Cb(),i=wb(),a=Tb(),o=Ab(),d=jb(),f=Mb(),u=Nb(),s=Pb(),n=vb(),l=Fb(),bb(),e=Ib())}setParent(e){var t,n,r,i,a;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),i=this.children,a=[],n=0,r=i.length;n<r;n++)t=i[n],a.push(t.setParent(this));return a}element(e,t,n){var r,i,a,o,s,c=null,l,u,d;if(t===null&&n==null&&([t,n]=[{},null]),t??={},t=p(t),g(t)||([n,t]=[t,n]),e!=null&&(e=p(e)),Array.isArray(e))for(a=0,l=e.length;a<l;a++)i=e[a],c=this.element(i);else if(h(e))c=this.element(e.apply());else if(g(e)){for(s in e)if(_.call(e,s))if(d=e[s],h(d)&&(d=d.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0)c=this.attribute(s.substr(this.stringify.convertAttKey.length),d);else if(!this.options.separateArrayItems&&Array.isArray(d)&&m(d))c=this.dummy();else if(g(d)&&m(d))c=this.element(s);else if(!this.options.keepNullNodes&&d==null)c=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(d))for(o=0,u=d.length;o<u;o++)i=d[o],r={},r[s]=i,c=this.element(r);else g(d)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0?c=this.element(d):(c=this.element(s),c.element(d)):c=this.element(s,d)}else c=!this.options.keepNullNodes&&n===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(c==null)throw Error(`Could not create any elements with: `+e+`. `+this.debugInfo());return c}insertBefore(e,t,n){var r,i,a,o,s;if(e?.type)return a=e,o=t,a.setParent(this),o?(i=children.indexOf(o),s=children.splice(i),children.push(a),Array.prototype.push.apply(children,s)):children.push(a),a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r}insertAfter(e,t,n){var r,i,a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),r}remove(){var e;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return e=this.parent.children.indexOf(this),v.apply(this.parent.children,[e,e-e+1]),this.parent}node(e,t,n){var r;return e!=null&&(e=p(e)),t||={},t=p(t),g(t)||([n,t]=[t,n]),r=new c(this,e,t),n!=null&&r.text(n),this.children.push(r),r}text(e){var t;return g(e)&&this.element(e),t=new f(this,e),this.children.push(t),this}cdata(e){var t=new r(this,e);return this.children.push(t),this}comment(e){var t=new i(this,e);return this.children.push(t),this}commentBefore(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this}commentAfter(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this}raw(e){var t=new d(this,e);return this.children.push(t),this}dummy(){return new s(this)}instruction(e,t){var n,r,i,a,o;if(e!=null&&(e=p(e)),t!=null&&(t=p(t)),Array.isArray(e))for(a=0,o=e.length;a<o;a++)n=e[a],this.instruction(n);else if(g(e))for(n in e)_.call(e,n)&&(r=e[n],this.instruction(n,r));else h(t)&&(t=t.apply()),i=new u(this,e,t),this.children.push(i);return this}instructionBefore(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this}instructionAfter(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this}declaration(e,t,r){var i=this.document(),o=new a(i,e,t,r);return i.children.length===0?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i}dtd(e,t){var r,i=this.document(),a=new o(i,e,t),s,c,l,u,d,f=i.children,p;for(s=c=0,u=f.length;c<u;s=++c)if(r=f[s],r.type===n.DocType)return i.children[s]=a,a;for(p=i.children,s=l=0,d=p.length;l<d;s=++l)if(r=p[s],r.isRoot)return i.children.splice(s,0,a),a;return i.children.push(a),a}up(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent}root(){for(var e=this;e;)if(e.type===n.Document)return e.rootObject;else if(e.isRoot)return e;else e=e.parent}document(){for(var e=this;e;)if(e.type===n.Document)return e;else e=e.parent}end(e){return this.document().end(e)}prev(){var e=this.parent.children.indexOf(this);if(e<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[e-1]}next(){var e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[e+1]}importDocument(e){var t,r=e.root().clone(),i,a,o;if(r.parent=this,r.isRoot=!1,this.children.push(r),this.type===n.Document&&(r.isRoot=!0,r.documentObject=this,this.rootObject=r,this.children)){for(o=this.children,i=0,a=o.length;i<a;i++)if(t=o[i],t.type===n.DocType){t.name=r.name;break}}return this}debugInfo(e){return e||=this.name,e==null&&!this.parent?.name?``:e==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+e+`>, parent: <`+this.parent.name+`>`:`node: <`+e+`>`}ele(e,t,n){return this.element(e,t,n)}nod(e,t,n){return this.node(e,t,n)}txt(e){return this.text(e)}dat(e){return this.cdata(e)}com(e){return this.comment(e)}ins(e,t){return this.instruction(e,t)}doc(){return this.document()}dec(e,t,n){return this.declaration(e,t,n)}e(e,t,n){return this.element(e,t,n)}n(e,t,n){return this.node(e,t,n)}t(e){return this.text(e)}d(e){return this.cdata(e)}c(e){return this.comment(e)}r(e){return this.raw(e)}i(e,t){return this.instruction(e,t)}u(){return this.up()}importXMLBuilder(e){return this.importDocument(e)}attribute(e,t){throw Error(`attribute() applies to element nodes only.`)}att(e,t){return this.attribute(e,t)}a(e,t){return this.attribute(e,t)}removeAttribute(e){throw Error(`attribute() applies to element nodes only.`)}replaceChild(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeChild(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendChild(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalize(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isSupported(e,t){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(t){var n=this,r;return n===t?0:this.document()===t.document()?n.isAncestor(t)?e.Contains|e.Preceding:n.isDescendant(t)?e.Contains|e.Following:n.isPreceding(t)?e.Preceding:e.Following:(r=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?r|=e.Preceding:r|=e.Following,r)}isSameNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupPrefix(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isDefaultNamespace(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupNamespaceURI(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){var t,n,r;if(e.nodeType!==this.nodeType||e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0}getFeature(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setUserData(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getUserData(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}contains(e){return e?e===this||this.isDescendant(e):!1}isDescendant(e){var t,n,r,i,a=this.children;for(r=0,i=a.length;r<i;r++)if(t=a[r],e===t||(n=t.isDescendant(e),n))return!0;return!1}isAncestor(e){return e.isDescendant(this)}isPreceding(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t<n}isFollowing(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t>n}treePosition(e){var t,n=0;return t=!1,this.foreachTreeNode(this.document(),function(r){if(n++,!t&&r===e)return t=!0}),t?n:-1}foreachTreeNode(e,t){var n,r,i,a,o;for(e||=this.document(),a=e.children,r=0,i=a.length;r<i;r++)if(n=a[r],(o=t(n))||(o=this.foreachTreeNode(n,t),o))return o}}return Object.defineProperty(t.prototype,`nodeName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`nodeType`,{get:function(){return this.type}}),Object.defineProperty(t.prototype,`nodeValue`,{get:function(){return this.value}}),Object.defineProperty(t.prototype,`parentNode`,{get:function(){return this.parent}}),Object.defineProperty(t.prototype,`childNodes`,{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,`firstChild`,{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,`lastChild`,{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,`previousSibling`,{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,`nextSibling`,{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,`ownerDocument`,{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){var e,t,r,i,a;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(a=``,i=this.children,t=0,r=i.length;t<r;t++)e=i[t],e.textContent&&(a+=e.textContent);return a}else return null},set:function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),t}).call(this)}).call(e)})),Rb=s(((e,t)=>{(function(){var e={}.hasOwnProperty;t.exports=(function(){class t{constructor(t){var n,r,i;for(n in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),t||={},this.options=t,this.options.version||(this.options.version=`1.0`),r=t.stringify||{},r)e.call(r,n)&&(i=r[n],this[n]=i)}name(e){return this.options.noValidation?e:this.assertLegalName(``+e||``)}text(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(``+e||``))}cdata(e){return this.options.noValidation?e:(e=``+e||``,e=e.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(e))}comment(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+e);return this.assertLegalChar(e)}raw(e){return this.options.noValidation?e:``+e||``}attValue(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=``+e||``))}insTarget(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}insValue(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/\?>/))throw Error(`Invalid processing instruction value: `+e);return this.assertLegalChar(e)}xmlVersion(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+e);return e}xmlEncoding(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+e);return this.assertLegalChar(e)}xmlStandalone(e){return this.options.noValidation?e:e?`yes`:`no`}dtdPubID(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdSysID(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdElementValue(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdAttType(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdAttDefault(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdEntityValue(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdNData(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}assertLegalChar(e){var t,n;if(this.options.noValidation)return e;if(this.options.version===`1.0`){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)e=e.replace(t,this.options.invalidCharReplacement);else if(n=e.match(t))throw Error(`Invalid character in string: ${e} at index ${n.index}`)}else if(this.options.version===`1.1`){if(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)e=e.replace(t,this.options.invalidCharReplacement);else if(n=e.match(t))throw Error(`Invalid character in string: ${e} at index ${n.index}`)}return e}assertLegalName(e){var t;if(this.options.noValidation)return e;if(e=this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw Error(`Invalid character in name: ${e}`);return e}textEscape(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,e.replace(t,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/\r/g,`
`))}attEscape(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,e.replace(t,`&`).replace(/</g,`<`).replace(/"/g,`"`).replace(/\t/g,`	`).replace(/\n/g,`
`).replace(/\r/g,`
`))}}return t.prototype.convertAttKey=`@`,t.prototype.convertPIKey=`?`,t.prototype.convertTextKey=`#text`,t.prototype.convertCDataKey=`#cdata`,t.prototype.convertCommentKey=`#comment`,t.prototype.convertRawKey=`#raw`,t}).call(this)}).call(e)})),zb=s(((e,t)=>{(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(e)})),Bb=s(((e,t)=>{(function(){var e,n,r,i={}.hasOwnProperty;({assign:r}=pb()),e=vb(),Tb(),Ab(),Cb(),wb(),xb(),jb(),Mb(),Nb(),Pb(),Eb(),Ob(),Db(),kb(),n=zb(),t.exports=class{constructor(e){var t,n,r;for(t in e||={},this.options=e,n=e.writer||{},n)i.call(n,t)&&(r=n[t],this[`_`+t]=this[t],this[t]=r)}filterOptions(e){var t;return e||={},e=r({},this.options,e),t={writer:this},t.pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=e.indent??` `,t.newline=e.newline??`
|
|
576
|
-
`,t.offset=e.offset??0,t.width=e.width??0,t.dontPrettyTextNodes=e.dontPrettyTextNodes??e.dontprettytextnodes??0,t.spaceBeforeSlash=e.spaceBeforeSlash??e.spacebeforeslash??``,t.spaceBeforeSlash===!0&&(t.spaceBeforeSlash=` `),t.suppressPrettyCount=0,t.user={},t.state=n.None,t}indent(e,t,n){var r;return!t.pretty||t.suppressPrettyCount?``:t.pretty&&(r=(n||0)+t.offset+1,r>0)?Array(r).join(t.indent):``}endline(e,t,n){return!t.pretty||t.suppressPrettyCount?``:t.newline}attribute(e,t,n){var r;return this.openAttribute(e,t,n),r=t.pretty&&t.width>0?e.name+`="`+e.value+`"`:` `+e.name+`="`+e.value+`"`,this.closeAttribute(e,t,n),r}cdata(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<![CDATA[`,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=`]]>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}comment(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!-- `,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=` -->`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}declaration(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?xml`,t.state=n.InsideTag,i+=` version="`+e.version+`"`,e.encoding!=null&&(i+=` encoding="`+e.encoding+`"`),e.standalone!=null&&(i+=` standalone="`+e.standalone+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}docType(e,t,r){var i,a,o,s,c;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,s=this.indent(e,t,r),s+=`<!DOCTYPE `+e.root().name,e.pubID&&e.sysID?s+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(s+=` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(s+=` [`,s+=this.endline(e,t,r),t.state=n.InsideTag,c=e.children,a=0,o=c.length;a<o;a++)i=c[a],s+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,s+=`]`}return t.state=n.CloseTag,s+=t.spaceBeforeSlash+`>`,s+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),s}element(t,r,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;if(a||=0,_=!1,this.openNode(t,r,a),r.state=n.OpenTag,v=this.indent(t,r,a)+`<`+t.name,r.pretty&&r.width>0)for(g in p=v.length,b=t.attribs,b)i.call(b,g)&&(o=b[g],y=this.attribute(o,r,a),s=y.length,p+s>r.width?(w=this.indent(t,r,a+1)+y,v+=this.endline(t,r,a)+w,p=w.length):(w=` `+y,v+=w,p+=w.length));else for(g in x=t.attribs,x)i.call(x,g)&&(o=x[g],v+=this.attribute(o,r,a));if(l=t.children.length,u=l===0?null:t.children[0],l===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw||t.type===e.CData)&&t.value===``}))r.allowEmpty?(v+=`>`,r.state=n.CloseTag,v+=`</`+t.name+`>`+this.endline(t,r,a)):(r.state=n.CloseTag,v+=r.spaceBeforeSlash+`/>`+this.endline(t,r,a));else if(r.pretty&&l===1&&(u.type===e.Text||u.type===e.Raw||u.type===e.CData)&&u.value!=null)v+=`>`,r.state=n.InsideTag,r.suppressPrettyCount++,_=!0,v+=this.writeChildNode(u,r,a+1),r.suppressPrettyCount--,_=!1,r.state=n.CloseTag,v+=`</`+t.name+`>`+this.endline(t,r,a);else{if(r.dontPrettyTextNodes){for(S=t.children,d=0,m=S.length;d<m;d++)if(c=S[d],(c.type===e.Text||c.type===e.Raw||c.type===e.CData)&&c.value!=null){r.suppressPrettyCount++,_=!0;break}}for(v+=`>`+this.endline(t,r,a),r.state=n.InsideTag,C=t.children,f=0,h=C.length;f<h;f++)c=C[f],v+=this.writeChildNode(c,r,a+1);r.state=n.CloseTag,v+=this.indent(t,r,a)+`</`+t.name+`>`,_&&r.suppressPrettyCount--,v+=this.endline(t,r,a),r.state=n.None}return this.closeNode(t,r,a),v}writeChildNode(t,n,r){switch(t.type){case e.CData:return this.cdata(t,n,r);case e.Comment:return this.comment(t,n,r);case e.Element:return this.element(t,n,r);case e.Raw:return this.raw(t,n,r);case e.Text:return this.text(t,n,r);case e.ProcessingInstruction:return this.processingInstruction(t,n,r);case e.Dummy:return``;case e.Declaration:return this.declaration(t,n,r);case e.DocType:return this.docType(t,n,r);case e.AttributeDeclaration:return this.dtdAttList(t,n,r);case e.ElementDeclaration:return this.dtdElement(t,n,r);case e.EntityDeclaration:return this.dtdEntity(t,n,r);case e.NotationDeclaration:return this.dtdNotation(t,n,r);default:throw Error(`Unknown XML node type: `+t.constructor.name)}}processingInstruction(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?`,t.state=n.InsideTag,i+=e.target,e.value&&(i+=` `+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}raw(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}text(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdAttList(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ATTLIST`,t.state=n.InsideTag,i+=` `+e.elementName+` `+e.attributeName+` `+e.attributeType,e.defaultValueType!==`#DEFAULT`&&(i+=` `+e.defaultValueType),e.defaultValue&&(i+=` "`+e.defaultValue+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdElement(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ELEMENT`,t.state=n.InsideTag,i+=` `+e.name+` `+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdEntity(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ENTITY`,t.state=n.InsideTag,e.pe&&(i+=` %`),i+=` `+e.name,e.value?i+=` "`+e.value+`"`:(e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),e.nData&&(i+=` NDATA `+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdNotation(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!NOTATION`,t.state=n.InsideTag,i+=` `+e.name,e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.pubID?i+=` PUBLIC "`+e.pubID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}openNode(e,t,n){}closeNode(e,t,n){}openAttribute(e,t,n){}closeAttribute(e,t,n){}}}).call(e)})),Vb=s(((e,t)=>{(function(){var e=Bb();t.exports=class extends e{constructor(e){super(e)}document(e,t){var n,r,i,a,o;for(t=this.filterOptions(t),a=``,o=e.children,r=0,i=o.length;r<i;r++)n=o[r],a+=this.writeChildNode(n,t,0);return t.pretty&&a.slice(-t.newline.length)===t.newline&&(a=a.slice(0,-t.newline.length)),a}}}).call(e)})),Hb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s;({isPlainObject:s}=pb()),r=mb(),n=_b(),i=Lb(),e=vb(),o=Rb(),a=Vb(),t.exports=(function(){class t extends i{constructor(t){super(null),this.name=`#document`,this.type=e.Document,this.documentURI=null,this.domConfig=new n,t||={},t.writer||=new a,this.options=t,this.stringify=new o(t)}end(e){var t={};return e?s(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))}toString(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))}createElement(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createDocumentFragment(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTextNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createComment(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createCDATASection(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createProcessingInstruction(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttribute(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEntityReference(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}importNode(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createElementNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementById(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}adoptNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalizeDocument(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}renameNode(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEvent(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createRange(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createNodeIterator(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTreeWalker(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(t.prototype,`implementation`,{value:new r}),Object.defineProperty(t.prototype,`doctype`,{get:function(){var t,n,r,i=this.children;for(n=0,r=i.length;n<r;n++)if(t=i[n],t.type===e.DocType)return t;return null}}),Object.defineProperty(t.prototype,`documentElement`,{get:function(){return this.rootObject||null}}),Object.defineProperty(t.prototype,`inputEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`strictErrorChecking`,{get:function(){return!1}}),Object.defineProperty(t.prototype,`xmlEncoding`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(t.prototype,`xmlStandalone`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].standalone===`yes`:!1}}),Object.defineProperty(t.prototype,`xmlVersion`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(t.prototype,`URL`,{get:function(){return this.documentURI}}),Object.defineProperty(t.prototype,`origin`,{get:function(){return null}}),Object.defineProperty(t.prototype,`compatMode`,{get:function(){return null}}),Object.defineProperty(t.prototype,`characterSet`,{get:function(){return null}}),Object.defineProperty(t.prototype,`contentType`,{get:function(){return null}}),t}).call(this)}).call(e)})),Ub=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C={}.hasOwnProperty;({isObject:x,isFunction:b,isPlainObject:S,getValue:y}=pb()),e=vb(),f=Hb(),p=xb(),i=Cb(),a=wb(),h=jb(),v=Mb(),m=Nb(),u=Tb(),d=Ab(),o=Eb(),c=Db(),s=Ob(),l=kb(),r=yb(),_=Rb(),g=Vb(),n=zb(),t.exports=class{constructor(t,n,r){var i;this.name=`?xml`,this.type=e.Document,t||={},i={},t.writer?S(t.writer)&&(i=t.writer,t.writer=new g):t.writer=new g,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new _(t),this.onDataCallback=n||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(t){var n,r,i,a,o,s,c,l;switch(t.type){case e.CData:this.cdata(t.value);break;case e.Comment:this.comment(t.value);break;case e.Element:for(r in i={},c=t.attribs,c)C.call(c,r)&&(n=c[r],i[r]=n.value);this.node(t.name,i);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(t.value);break;case e.Text:this.text(t.value);break;case e.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+t.constructor.name)}for(l=t.children,o=0,s=l.length;o<s;o++)a=l[o],this.createChildNode(a),a.type===e.Element&&this.up();return this}dummy(){return this}node(e,t,n){if(e==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(e));return this.openCurrent(),e=y(e),t??={},t=y(t),x(t)||([n,t]=[t,n]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this}element(t,n,r){var i,a,o,s,c,l;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement(...arguments);else if(Array.isArray(t)||x(t)||b(t))for(s=this.options.noValidation,this.options.noValidation=!0,l=new f(this.options).element(`TEMP_ROOT`),l.element(t),this.options.noValidation=s,c=l.children,a=0,o=c.length;a<o;a++)i=c[a],this.createChildNode(i),i.type===e.Element&&this.up();else this.node(t,n,r);return this}attribute(e,t){var n,i;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(e));if(e!=null&&(e=y(e)),x(e))for(n in e)C.call(e,n)&&(i=e[n],this.attribute(n,i));else b(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.currentNode.attribs[e]=new r(this,e,``):t!=null&&(this.currentNode.attribs[e]=new r(this,e,t));return this}text(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(e){var t;return this.openCurrent(),t=new a(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(e,t){var n,r,i,a,o;if(this.openCurrent(),e!=null&&(e=y(e)),t!=null&&(t=y(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)r=e[n],this.instruction(r);else if(x(e))for(r in e)C.call(e,r)&&(i=e[r],this.instruction(r,i));else b(t)&&(t=t.apply()),o=new m(this,e,t),this.onData(this.writer.processingInstruction(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(e,t,n){if(this.openCurrent(),e==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new d(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(e,t){var n;return this.openCurrent(),n=new s(this,e,t),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(e,t){var n;return this.openCurrent(),n=new c(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(e,t){var n;return this.openCurrent(),n=new c(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(e,t){var n;return this.openCurrent(),n=new l(this,e,t),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(t){var r,i,a,o;if(!t.isOpen){if(!this.root&&this.currentLevel===0&&t.type===e.Element&&(this.root=t),i=``,t.type===e.Element){for(a in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<`+t.name,o=t.attribs,o)C.call(o,a)&&(r=o[a],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?`>`:`/>`)+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+t.rootNodeName,t.pubID&&t.sysID?i+=` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`:t.sysID&&(i+=` SYSTEM "`+t.sysID+`"`),t.children?(i+=` [`,this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=`>`),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}}closeNode(t){var r;if(!t.isClosed)return r=``,this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+`</`+t.name+`>`+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0}onData(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(e){return e==null?``:`node: <`+e+`>`}ele(){return this.element(...arguments)}nod(e,t,n){return this.node(e,t,n)}txt(e){return this.text(e)}dat(e){return this.cdata(e)}com(e){return this.comment(e)}ins(e,t){return this.instruction(e,t)}dec(e,t,n){return this.declaration(e,t,n)}dtd(e,t,n){return this.doctype(e,t,n)}e(e,t,n){return this.element(e,t,n)}n(e,t,n){return this.node(e,t,n)}t(e){return this.text(e)}d(e){return this.cdata(e)}c(e){return this.comment(e)}r(e){return this.raw(e)}i(e,t){return this.instruction(e,t)}att(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(e,t){return this.entity(e,t)}pent(e,t){return this.pEntity(e,t)}not(e,t){return this.notation(e,t)}}}).call(e)})),Wb=s(((e,t)=>{(function(){var e,n,r,i={}.hasOwnProperty;e=vb(),r=Bb(),n=zb(),t.exports=class extends r{constructor(e,t){super(t),this.stream=e}endline(e,t,r){return e.isLastRootNode&&t.state===n.CloseTag?``:super.endline(e,t,r)}document(e,t){var n,r,i,a,o,s,c=e.children,l,u;for(r=i=0,o=c.length;i<o;r=++i)n=c[r],n.isLastRootNode=r===e.children.length-1;for(t=this.filterOptions(t),l=e.children,u=[],a=0,s=l.length;a<s;a++)n=l[a],u.push(this.writeChildNode(n,t,0));return u}cdata(e,t,n){return this.stream.write(super.cdata(e,t,n))}comment(e,t,n){return this.stream.write(super.comment(e,t,n))}declaration(e,t,n){return this.stream.write(super.declaration(e,t,n))}docType(e,t,r){var i,a,o,s;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write(`<!DOCTYPE `+e.root().name),e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,s=e.children,a=0,o=s.length;a<o;a++)i=s[a],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write(`]`)}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+`>`),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)}element(t,r,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(a||=0,this.openNode(t,r,a),r.state=n.OpenTag,h=this.indent(t,r,a)+`<`+t.name,r.pretty&&r.width>0)for(m in f=h.length,_=t.attribs,_)i.call(_,m)&&(o=_[m],g=this.attribute(o,r,a),s=g.length,f+s>r.width?(b=this.indent(t,r,a+1)+g,h+=this.endline(t,r,a)+b,f=b.length):(b=` `+g,h+=b,f+=b.length));else for(m in v=t.attribs,v)i.call(v,m)&&(o=v[m],h+=this.attribute(o,r,a));if(this.stream.write(h),l=t.children.length,u=l===0?null:t.children[0],l===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw||t.type===e.CData)&&t.value===``}))r.allowEmpty?(this.stream.write(`>`),r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`)):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+`/>`));else if(r.pretty&&l===1&&(u.type===e.Text||u.type===e.Raw||u.type===e.CData)&&u.value!=null)this.stream.write(`>`),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(u,r,a+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`);else{for(this.stream.write(`>`+this.endline(t,r,a)),r.state=n.InsideTag,y=t.children,d=0,p=y.length;d<p;d++)c=y[d],this.writeChildNode(c,r,a+1);r.state=n.CloseTag,this.stream.write(this.indent(t,r,a)+`</`+t.name+`>`)}return this.stream.write(this.endline(t,r,a)),r.state=n.None,this.closeNode(t,r,a)}processingInstruction(e,t,n){return this.stream.write(super.processingInstruction(e,t,n))}raw(e,t,n){return this.stream.write(super.raw(e,t,n))}text(e,t,n){return this.stream.write(super.text(e,t,n))}dtdAttList(e,t,n){return this.stream.write(super.dtdAttList(e,t,n))}dtdElement(e,t,n){return this.stream.write(super.dtdElement(e,t,n))}dtdEntity(e,t,n){return this.stream.write(super.dtdEntity(e,t,n))}dtdNotation(e,t,n){return this.stream.write(super.dtdNotation(e,t,n))}}}).call(e)})),Gb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l;({assign:c,isFunction:l}=pb()),r=mb(),i=Hb(),a=Ub(),s=Vb(),o=Wb(),e=vb(),n=zb(),t.exports.create=function(e,t,n,r){var a,o;if(e==null)throw Error(`Root element needs a name.`);return r=c({},t,n,r),a=new i(r),o=a.element(e),r.headless||(a.declaration(r),(r.pubID!=null||r.sysID!=null)&&a.dtd(r)),o},t.exports.begin=function(e,t,n){return l(e)&&([t,n]=[e,t],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new s(e)},t.exports.streamWriter=function(e,t){return new o(e,t)},t.exports.implementation=new r,t.exports.nodeType=e,t.exports.writerState=n}).call(e)})),Kb=s(((e,t)=>{var n=Q(),r=Gb(),i=Ey(),a,o=e=>n.upperFirst(n.camelCase(e).replace(/\W/g,``));a=function(e,t){e.on(`beforeDone`,function(){var a=n.get(e,`summary.run.executions`),s=n.get(e,`summary.collection`),c,l,u=0,d=0,f,p;a&&(p=o(s.name),l=r.create(`testsuites`,{version:`1.0`,encoding:`UTF-8`}),l.att(`name`,s.name),l.att(`tests`,n.get(e,`summary.run.stats.tests.total`,`unknown`)),c=n.transform(a,function(e,t){e[t.item.id]=e[t.id]||[],e[t.item.id].push(t)},{}),f=new Date(n.get(e,`summary.run.timings.started`)).toISOString(),n.forEach(c,function(e,t){var r=l.ele(`testsuite`),a,c={},m=0,h=0,g;s.forEachItem(function(e){e.id===t&&(a=e)}),a&&(r.att(`name`,i.getFullName(a)),r.att(`id`,a.id),r.att(`timestamp`,f),n.forEach(e,function(e){var t=e.cursor.iteration,i,a=`Iteration: ${t}\n`;e.requestError&&(++m,i=!0,a+=`RequestError: `+e.requestError.stack+`
|
|
575
|
+
inside "%s"`),s.getFullName(n.source))),t.push([u(Number(r+1),Number(e.length.toString().length)).toString()+m,a,c])}),t}}),y.prototype.dominant=!0,t.exports=y})),Sy=s(((e,t)=>{var n=Q();t.exports=function(e,t){e.on(`beforeDone`,function(r,i){r||e.exports.push({name:`json-reporter`,default:`newman-run-report.json`,path:t.export,content:JSON.stringify(n.omit(i.summary,`exports`),0,2)})})}})),Cy=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c={}.hasOwnProperty;e=function(e,...t){var n,r,i,o;if(a(Object.assign))Object.assign.apply(null,arguments);else for(n=0,i=t.length;n<i;n++)if(o=t[n],o!=null)for(r in o)c.call(o,r)&&(e[r]=o[r]);return e},a=function(e){return!!e&&Object.prototype.toString.call(e)===`[object Function]`},o=function(e){var t;return!!e&&((t=typeof e)==`function`||t===`object`)},r=function(e){return a(Array.isArray)?Array.isArray(e):Object.prototype.toString.call(e)===`[object Array]`},i=function(e){var t;if(r(e))return!e.length;for(t in e)if(c.call(e,t))return!1;return!0},s=function(e){var t,n;return o(e)&&(n=Object.getPrototypeOf(e))&&(t=n.constructor)&&typeof t==`function`&&t instanceof t&&Function.prototype.toString.call(t)===Function.prototype.toString.call(Object)},n=function(e){return a(e.valueOf)?e.valueOf():e},t.exports.assign=e,t.exports.isFunction=a,t.exports.isObject=o,t.exports.isArray=r,t.exports.isEmpty=i,t.exports.isPlainObject=s,t.exports.getValue=n}).call(e)})),wy=s(((e,t)=>{(function(){t.exports=class{hasFeature(e,t){return!0}createDocumentType(e,t,n){throw Error(`This DOM method is not implemented.`)}createDocument(e,t,n){throw Error(`This DOM method is not implemented.`)}createHTMLDocument(e){throw Error(`This DOM method is not implemented.`)}getFeature(e,t){throw Error(`This DOM method is not implemented.`)}}}).call(e)})),Ty=s(((e,t)=>{(function(){t.exports=class{constructor(){}handleError(e){throw Error(e)}}}).call(e)})),Ey=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.arr=e||[]}item(e){return this.arr[e]||null}contains(e){return this.arr.indexOf(e)!==-1}}return Object.defineProperty(e.prototype,`length`,{get:function(){return this.arr.length}}),e}).call(this)}).call(e)})),Dy=s(((e,t)=>{(function(){var e=Ty(),n=Ey();t.exports=(function(){class t{constructor(){this.defaultParams={"canonical-form":!1,"cdata-sections":!1,comments:!1,"datatype-normalization":!1,"element-content-whitespace":!0,entities:!0,"error-handler":new e,infoset:!0,"validate-if-schema":!1,namespaces:!0,"namespace-declarations":!0,"normalize-characters":!1,"schema-location":``,"schema-type":``,"split-cdata-sections":!0,validate:!1,"well-formed":!0},this.params=Object.create(this.defaultParams)}getParameter(e){return this.params.hasOwnProperty(e)?this.params[e]:null}canSetParameter(e,t){return!0}setParameter(e,t){return t==null?delete this.params[e]:this.params[e]=t}}return Object.defineProperty(t.prototype,`parameterNames`,{get:function(){return new n(Object.keys(this.defaultParams))}}),t}).call(this)}).call(e)})),Oy=s(((e,t)=>{(function(){t.exports={Element:1,Attribute:2,Text:3,CData:4,EntityReference:5,EntityDeclaration:6,ProcessingInstruction:7,Comment:8,Document:9,DocType:10,DocumentFragment:11,NotationDeclaration:12,Declaration:201,Raw:202,AttributeDeclaration:203,ElementDeclaration:204,Dummy:205}}).call(e)})),ky=s(((e,t)=>{(function(){var e=Oy();qy(),t.exports=(function(){class t{constructor(t,n,r){if(this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),n==null)throw Error(`Missing attribute name. `+this.debugInfo(n));this.name=this.stringify.name(n),this.value=this.stringify.attValue(r),this.type=e.Attribute,this.isId=!1,this.schemaTypeInfo=null}clone(){return Object.create(this)}toString(e){return this.options.writer.attribute(this,this.options.writer.filterOptions(e))}debugInfo(e){return e||=this.name,e==null?`parent: <`+this.parent.name+`>`:`attribute: {`+e+`}, parent: <`+this.parent.name+`>`}isEqualNode(e){return!(e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.value!==this.value)}}return Object.defineProperty(t.prototype,`nodeType`,{get:function(){return this.type}}),Object.defineProperty(t.prototype,`ownerElement`,{get:function(){return this.parent}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,`namespaceURI`,{get:function(){return``}}),Object.defineProperty(t.prototype,`prefix`,{get:function(){return``}}),Object.defineProperty(t.prototype,`localName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`specified`,{get:function(){return!0}}),t}).call(this)}).call(e)})),Ay=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.nodes=e}clone(){return this.nodes=null}getNamedItem(e){return this.nodes[e]}setNamedItem(e){var t=this.nodes[e.nodeName];return this.nodes[e.nodeName]=e,t||null}removeNamedItem(e){var t=this.nodes[e];return delete this.nodes[e],t||null}item(e){return this.nodes[Object.keys(this.nodes)[e]]||null}getNamedItemNS(e,t){throw Error(`This DOM method is not implemented.`)}setNamedItemNS(e){throw Error(`This DOM method is not implemented.`)}removeNamedItemNS(e,t){throw Error(`This DOM method is not implemented.`)}}return Object.defineProperty(e.prototype,`length`,{get:function(){return Object.keys(this.nodes).length||0}}),e}).call(this)}).call(e)})),jy=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c={}.hasOwnProperty;({isObject:s,isFunction:o,getValue:a}=Cy()),i=qy(),e=Oy(),n=ky(),r=Ay(),t.exports=(function(){class t extends i{constructor(t,n,r){var i,a,o,s;if(super(t),n==null)throw Error(`Missing element name. `+this.debugInfo());if(this.name=this.stringify.name(n),this.type=e.Element,this.attribs={},this.schemaTypeInfo=null,r!=null&&this.attribute(r),t.type===e.Document&&(this.isRoot=!0,this.documentObject=t,t.rootObject=this,t.children)){for(s=t.children,a=0,o=s.length;a<o;a++)if(i=s[a],i.type===e.DocType){i.name=this.name;break}}}clone(){var e,t,n=Object.create(this),r;for(t in n.isRoot&&(n.documentObject=null),n.attribs={},r=this.attribs,r)c.call(r,t)&&(e=r[t],n.attribs[t]=e.clone());return n.children=[],this.children.forEach(function(e){var t=e.clone();return t.parent=n,n.children.push(t)}),n}attribute(e,t){var r,i;if(e!=null&&(e=a(e)),s(e))for(r in e)c.call(e,r)&&(i=e[r],this.attribute(r,i));else o(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.attribs[e]=new n(this,e,``):t!=null&&(this.attribs[e]=new n(this,e,t));return this}removeAttribute(e){var t,n,r;if(e==null)throw Error(`Missing attribute name. `+this.debugInfo());if(e=a(e),Array.isArray(e))for(n=0,r=e.length;n<r;n++)t=e[n],delete this.attribs[t];else delete this.attribs[e];return this}toString(e){return this.options.writer.element(this,this.options.writer.filterOptions(e))}att(e,t){return this.attribute(e,t)}a(e,t){return this.attribute(e,t)}getAttribute(e){return this.attribs.hasOwnProperty(e)?this.attribs[e].value:null}setAttribute(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNode(e){return this.attribs.hasOwnProperty(e)?this.attribs[e]:null}setAttributeNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNS(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getAttributeNodeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setAttributeNodeNS(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasAttribute(e){return this.attribs.hasOwnProperty(e)}hasAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttribute(e,t){return this.attribs.hasOwnProperty(e)?this.attribs[e].isId:t}setIdAttributeNS(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setIdAttributeNode(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){var t,n,r;if(!super.isEqualNode(e)||e.namespaceURI!==this.namespaceURI||e.prefix!==this.prefix||e.localName!==this.localName||e.attribs.length!==this.attribs.length)return!1;for(t=n=0,r=this.attribs.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.attribs[t].isEqualNode(e.attribs[t]))return!1;return!0}}return Object.defineProperty(t.prototype,`tagName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`namespaceURI`,{get:function(){return``}}),Object.defineProperty(t.prototype,`prefix`,{get:function(){return``}}),Object.defineProperty(t.prototype,`localName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`id`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`className`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`classList`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`attributes`,{get:function(){return(!this.attributeMap||!this.attributeMap.nodes)&&(this.attributeMap=new r(this.attribs)),this.attributeMap}}),t}).call(this)}).call(e)})),My=s(((e,t)=>{(function(){var e=qy();t.exports=(function(){class t extends e{constructor(e){super(e),this.value=``}clone(){return Object.create(this)}substringData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendData(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}insertData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}deleteData(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceData(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){return!(!super.isEqualNode(e)||e.data!==this.data)}}return Object.defineProperty(t.prototype,`data`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),Object.defineProperty(t.prototype,`length`,{get:function(){return this.value.length}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){return this.value},set:function(e){return this.value=e||``}}),t}).call(this)}).call(e)})),Ny=s(((e,t)=>{(function(){var e=Oy(),n=My();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing CDATA text. `+this.debugInfo());this.name=`#cdata-section`,this.type=e.CData,this.value=this.stringify.cdata(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.cdata(this,this.options.writer.filterOptions(e))}}}).call(e)})),Py=s(((e,t)=>{(function(){var e=Oy(),n=My();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing comment text. `+this.debugInfo());this.name=`#comment`,this.type=e.Comment,this.value=this.stringify.comment(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.comment(this,this.options.writer.filterOptions(e))}}}).call(e)})),Fy=s(((e,t)=>{(function(){var e,n,r;({isObject:r}=Cy()),n=qy(),e=Oy(),t.exports=class extends n{constructor(t,n,i,a){super(t),r(n)&&({version:n,encoding:i,standalone:a}=n),n||=`1.0`,this.type=e.Declaration,this.version=this.stringify.xmlVersion(n),i!=null&&(this.encoding=this.stringify.xmlEncoding(i)),a!=null&&(this.standalone=this.stringify.xmlStandalone(a))}toString(e){return this.options.writer.declaration(this,this.options.writer.filterOptions(e))}}}).call(e)})),Iy=s(((e,t)=>{(function(){var e,n=qy();e=Oy(),t.exports=class extends n{constructor(t,n,r,i,a,o){if(super(t),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());if(r==null)throw Error(`Missing DTD attribute name. `+this.debugInfo(n));if(!i)throw Error(`Missing DTD attribute type. `+this.debugInfo(n));if(!a)throw Error(`Missing DTD attribute default. `+this.debugInfo(n));if(a.indexOf(`#`)!==0&&(a=`#`+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw Error(`Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. `+this.debugInfo(n));if(o&&!a.match(/^(#FIXED|#DEFAULT)$/))throw Error(`Default value only applies to #FIXED or #DEFAULT. `+this.debugInfo(n));this.elementName=this.stringify.name(n),this.type=e.AttributeDeclaration,this.attributeName=this.stringify.name(r),this.attributeType=this.stringify.dtdAttType(i),o&&(this.defaultValue=this.stringify.dtdAttDefault(o)),this.defaultValueType=a}toString(e){return this.options.writer.dtdAttList(this,this.options.writer.filterOptions(e))}}}).call(e)})),Ly=s(((e,t)=>{(function(){var e,n,r;({isObject:r}=Cy()),n=qy(),e=Oy(),t.exports=(function(){class t extends n{constructor(t,n,i,a){if(super(t),i==null)throw Error(`Missing DTD entity name. `+this.debugInfo(i));if(a==null)throw Error(`Missing DTD entity value. `+this.debugInfo(i));if(this.pe=!!n,this.name=this.stringify.name(i),this.type=e.EntityDeclaration,!r(a))this.value=this.stringify.dtdEntityValue(a),this.internal=!0;else{if(!a.pubID&&!a.sysID)throw Error(`Public and/or system identifiers are required for an external entity. `+this.debugInfo(i));if(a.pubID&&!a.sysID)throw Error(`System identifier is required for a public external entity. `+this.debugInfo(i));if(this.internal=!1,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID)),a.nData!=null&&(this.nData=this.stringify.dtdNData(a.nData)),this.pe&&this.nData)throw Error(`Notation declaration is not allowed in a parameter entity. `+this.debugInfo(i))}}toString(e){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(e))}}return Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,`notationName`,{get:function(){return this.nData||null}}),Object.defineProperty(t.prototype,`inputEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`xmlEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`xmlVersion`,{get:function(){return null}}),t}).call(this)}).call(e)})),Ry=s(((e,t)=>{(function(){var e,n=qy();e=Oy(),t.exports=class extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing DTD element name. `+this.debugInfo());r||=`(#PCDATA)`,Array.isArray(r)&&(r=`(`+r.join(`,`)+`)`),this.name=this.stringify.name(n),this.type=e.ElementDeclaration,this.value=this.stringify.dtdElementValue(r)}toString(e){return this.options.writer.dtdElement(this,this.options.writer.filterOptions(e))}}}).call(e)})),zy=s(((e,t)=>{(function(){var e,n=qy();e=Oy(),t.exports=(function(){class t extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing DTD notation name. `+this.debugInfo(n));if(!r.pubID&&!r.sysID)throw Error(`Public or system identifiers are required for an external entity. `+this.debugInfo(n));this.name=this.stringify.name(n),this.type=e.NotationDeclaration,r.pubID!=null&&(this.pubID=this.stringify.dtdPubID(r.pubID)),r.sysID!=null&&(this.sysID=this.stringify.dtdSysID(r.sysID))}toString(e){return this.options.writer.dtdNotation(this,this.options.writer.filterOptions(e))}}return Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),t}).call(this)}).call(e)})),By=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c;({isObject:c}=Cy()),s=qy(),e=Oy(),n=Iy(),i=Ly(),r=Ry(),a=zy(),o=Ay(),t.exports=(function(){class t extends s{constructor(t,n,r){var i,a,o,s;if(super(t),this.type=e.DocType,t.children){for(s=t.children,a=0,o=s.length;a<o;a++)if(i=s[a],i.type===e.Element){this.name=i.name;break}}this.documentObject=t,c(n)&&({pubID:n,sysID:r}=n),r??([r,n]=[n,r]),n!=null&&(this.pubID=this.stringify.dtdPubID(n)),r!=null&&(this.sysID=this.stringify.dtdSysID(r))}element(e,t){var n=new r(this,e,t);return this.children.push(n),this}attList(e,t,r,i,a){var o=new n(this,e,t,r,i,a);return this.children.push(o),this}entity(e,t){var n=new i(this,!1,e,t);return this.children.push(n),this}pEntity(e,t){var n=new i(this,!0,e,t);return this.children.push(n),this}notation(e,t){var n=new a(this,e,t);return this.children.push(n),this}toString(e){return this.options.writer.docType(this,this.options.writer.filterOptions(e))}ele(e,t){return this.element(e,t)}att(e,t,n,r,i){return this.attList(e,t,n,r,i)}ent(e,t){return this.entity(e,t)}pent(e,t){return this.pEntity(e,t)}not(e,t){return this.notation(e,t)}up(){return this.root()||this.documentObject}isEqualNode(e){return!(!super.isEqualNode(e)||e.name!==this.name||e.publicId!==this.publicId||e.systemId!==this.systemId)}}return Object.defineProperty(t.prototype,`entities`,{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.EntityDeclaration&&!t.pe&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(t.prototype,`notations`,{get:function(){var t,n,r,i={},a=this.children;for(n=0,r=a.length;n<r;n++)t=a[n],t.type===e.NotationDeclaration&&(i[t.name]=t);return new o(i)}}),Object.defineProperty(t.prototype,`publicId`,{get:function(){return this.pubID}}),Object.defineProperty(t.prototype,`systemId`,{get:function(){return this.sysID}}),Object.defineProperty(t.prototype,`internalSubset`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),t}).call(this)}).call(e)})),Vy=s(((e,t)=>{(function(){var e=Oy(),n=qy();t.exports=class extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing raw text. `+this.debugInfo());this.type=e.Raw,this.value=this.stringify.raw(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.raw(this,this.options.writer.filterOptions(e))}}}).call(e)})),Hy=s(((e,t)=>{(function(){var e=Oy(),n=My();t.exports=(function(){class t extends n{constructor(t,n){if(super(t),n==null)throw Error(`Missing element text. `+this.debugInfo());this.name=`#text`,this.type=e.Text,this.value=this.stringify.text(n)}clone(){return Object.create(this)}toString(e){return this.options.writer.text(this,this.options.writer.filterOptions(e))}splitText(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}replaceWholeText(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(t.prototype,`isElementContentWhitespace`,{get:function(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),Object.defineProperty(t.prototype,`wholeText`,{get:function(){var e,t,n=``;for(t=this.previousSibling;t;)n=t.data+n,t=t.previousSibling;for(n+=this.data,e=this.nextSibling;e;)n+=e.data,e=e.nextSibling;return n}}),t}).call(this)}).call(e)})),Uy=s(((e,t)=>{(function(){var e=Oy(),n=My();t.exports=class extends n{constructor(t,n,r){if(super(t),n==null)throw Error(`Missing instruction target. `+this.debugInfo());this.type=e.ProcessingInstruction,this.target=this.stringify.insTarget(n),this.name=this.target,r&&(this.value=this.stringify.insValue(r))}clone(){return Object.create(this)}toString(e){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(e))}isEqualNode(e){return!(!super.isEqualNode(e)||e.target!==this.target)}}}).call(e)})),Wy=s(((e,t)=>{(function(){var e,n=qy();e=Oy(),t.exports=class extends n{constructor(t){super(t),this.type=e.Dummy}clone(){return Object.create(this)}toString(e){return``}}}).call(e)})),Gy=s(((e,t)=>{(function(){t.exports=(function(){class e{constructor(e){this.nodes=e}clone(){return this.nodes=null}item(e){return this.nodes[e]||null}}return Object.defineProperty(e.prototype,`length`,{get:function(){return this.nodes.length||0}}),e}).call(this)}).call(e)})),Ky=s(((e,t)=>{(function(){t.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(e)})),qy=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_={}.hasOwnProperty,v=[].splice;({isObject:g,isFunction:h,isEmpty:m,getValue:p}=Cy()),c=null,r=null,i=null,a=null,o=null,d=null,f=null,u=null,s=null,n=null,l=null,e=null,t.exports=(function(){class t{constructor(t){this.parent=t,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,c||(c=jy(),r=Ny(),i=Py(),a=Fy(),o=By(),d=Vy(),f=Hy(),u=Uy(),s=Wy(),n=Oy(),l=Gy(),Ay(),e=Ky())}setParent(e){var t,n,r,i,a;for(this.parent=e,e&&(this.options=e.options,this.stringify=e.stringify),i=this.children,a=[],n=0,r=i.length;n<r;n++)t=i[n],a.push(t.setParent(this));return a}element(e,t,n){var r,i,a,o,s,c=null,l,u,d;if(t===null&&n==null&&([t,n]=[{},null]),t??={},t=p(t),g(t)||([n,t]=[t,n]),e!=null&&(e=p(e)),Array.isArray(e))for(a=0,l=e.length;a<l;a++)i=e[a],c=this.element(i);else if(h(e))c=this.element(e.apply());else if(g(e)){for(s in e)if(_.call(e,s))if(d=e[s],h(d)&&(d=d.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&s.indexOf(this.stringify.convertAttKey)===0)c=this.attribute(s.substr(this.stringify.convertAttKey.length),d);else if(!this.options.separateArrayItems&&Array.isArray(d)&&m(d))c=this.dummy();else if(g(d)&&m(d))c=this.element(s);else if(!this.options.keepNullNodes&&d==null)c=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(d))for(o=0,u=d.length;o<u;o++)i=d[o],r={},r[s]=i,c=this.element(r);else g(d)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&s.indexOf(this.stringify.convertTextKey)===0?c=this.element(d):(c=this.element(s),c.element(d)):c=this.element(s,d)}else c=!this.options.keepNullNodes&&n===null?this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&e.indexOf(this.stringify.convertTextKey)===0?this.text(n):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&e.indexOf(this.stringify.convertCDataKey)===0?this.cdata(n):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&e.indexOf(this.stringify.convertCommentKey)===0?this.comment(n):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&e.indexOf(this.stringify.convertRawKey)===0?this.raw(n):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&e.indexOf(this.stringify.convertPIKey)===0?this.instruction(e.substr(this.stringify.convertPIKey.length),n):this.node(e,t,n);if(c==null)throw Error(`Could not create any elements with: `+e+`. `+this.debugInfo());return c}insertBefore(e,t,n){var r,i,a,o,s;if(e?.type)return a=e,o=t,a.setParent(this),o?(i=children.indexOf(o),s=children.splice(i),children.push(a),Array.prototype.push.apply(children,s)):children.push(a),a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),s=this.parent.children.splice(i),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,s),r}insertAfter(e,t,n){var r,i,a;if(this.isRoot)throw Error(`Cannot insert elements at root level. `+this.debugInfo(e));return i=this.parent.children.indexOf(this),a=this.parent.children.splice(i+1),r=this.parent.element(e,t,n),Array.prototype.push.apply(this.parent.children,a),r}remove(){var e;if(this.isRoot)throw Error(`Cannot remove the root element. `+this.debugInfo());return e=this.parent.children.indexOf(this),v.apply(this.parent.children,[e,e-e+1]),this.parent}node(e,t,n){var r;return e!=null&&(e=p(e)),t||={},t=p(t),g(t)||([n,t]=[t,n]),r=new c(this,e,t),n!=null&&r.text(n),this.children.push(r),r}text(e){var t;return g(e)&&this.element(e),t=new f(this,e),this.children.push(t),this}cdata(e){var t=new r(this,e);return this.children.push(t),this}comment(e){var t=new i(this,e);return this.children.push(t),this}commentBefore(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this}commentAfter(e){var t=this.parent.children.indexOf(this),n=this.parent.children.splice(t+1);return this.parent.comment(e),Array.prototype.push.apply(this.parent.children,n),this}raw(e){var t=new d(this,e);return this.children.push(t),this}dummy(){return new s(this)}instruction(e,t){var n,r,i,a,o;if(e!=null&&(e=p(e)),t!=null&&(t=p(t)),Array.isArray(e))for(a=0,o=e.length;a<o;a++)n=e[a],this.instruction(n);else if(g(e))for(n in e)_.call(e,n)&&(r=e[n],this.instruction(n,r));else h(t)&&(t=t.apply()),i=new u(this,e,t),this.children.push(i);return this}instructionBefore(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this}instructionAfter(e,t){var n=this.parent.children.indexOf(this),r=this.parent.children.splice(n+1);return this.parent.instruction(e,t),Array.prototype.push.apply(this.parent.children,r),this}declaration(e,t,r){var i=this.document(),o=new a(i,e,t,r);return i.children.length===0?i.children.unshift(o):i.children[0].type===n.Declaration?i.children[0]=o:i.children.unshift(o),i.root()||i}dtd(e,t){var r,i=this.document(),a=new o(i,e,t),s,c,l,u,d,f=i.children,p;for(s=c=0,u=f.length;c<u;s=++c)if(r=f[s],r.type===n.DocType)return i.children[s]=a,a;for(p=i.children,s=l=0,d=p.length;l<d;s=++l)if(r=p[s],r.isRoot)return i.children.splice(s,0,a),a;return i.children.push(a),a}up(){if(this.isRoot)throw Error(`The root node has no parent. Use doc() if you need to get the document object.`);return this.parent}root(){for(var e=this;e;)if(e.type===n.Document)return e.rootObject;else if(e.isRoot)return e;else e=e.parent}document(){for(var e=this;e;)if(e.type===n.Document)return e;else e=e.parent}end(e){return this.document().end(e)}prev(){var e=this.parent.children.indexOf(this);if(e<1)throw Error(`Already at the first node. `+this.debugInfo());return this.parent.children[e-1]}next(){var e=this.parent.children.indexOf(this);if(e===-1||e===this.parent.children.length-1)throw Error(`Already at the last node. `+this.debugInfo());return this.parent.children[e+1]}importDocument(e){var t,r=e.root().clone(),i,a,o;if(r.parent=this,r.isRoot=!1,this.children.push(r),this.type===n.Document&&(r.isRoot=!0,r.documentObject=this,this.rootObject=r,this.children)){for(o=this.children,i=0,a=o.length;i<a;i++)if(t=o[i],t.type===n.DocType){t.name=r.name;break}}return this}debugInfo(e){return e||=this.name,e==null&&!this.parent?.name?``:e==null?`parent: <`+this.parent.name+`>`:this.parent?.name?`node: <`+e+`>, parent: <`+this.parent.name+`>`:`node: <`+e+`>`}ele(e,t,n){return this.element(e,t,n)}nod(e,t,n){return this.node(e,t,n)}txt(e){return this.text(e)}dat(e){return this.cdata(e)}com(e){return this.comment(e)}ins(e,t){return this.instruction(e,t)}doc(){return this.document()}dec(e,t,n){return this.declaration(e,t,n)}e(e,t,n){return this.element(e,t,n)}n(e,t,n){return this.node(e,t,n)}t(e){return this.text(e)}d(e){return this.cdata(e)}c(e){return this.comment(e)}r(e){return this.raw(e)}i(e,t){return this.instruction(e,t)}u(){return this.up()}importXMLBuilder(e){return this.importDocument(e)}attribute(e,t){throw Error(`attribute() applies to element nodes only.`)}att(e,t){return this.attribute(e,t)}a(e,t){return this.attribute(e,t)}removeAttribute(e){throw Error(`attribute() applies to element nodes only.`)}replaceChild(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}removeChild(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}appendChild(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}hasChildNodes(){return this.children.length!==0}cloneNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalize(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isSupported(e,t){return!0}hasAttributes(){return this.attribs.length!==0}compareDocumentPosition(t){var n=this,r;return n===t?0:this.document()===t.document()?n.isAncestor(t)?e.Contains|e.Preceding:n.isDescendant(t)?e.Contains|e.Following:n.isPreceding(t)?e.Preceding:e.Following:(r=e.Disconnected|e.ImplementationSpecific,Math.random()<.5?r|=e.Preceding:r|=e.Following,r)}isSameNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupPrefix(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isDefaultNamespace(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}lookupNamespaceURI(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}isEqualNode(e){var t,n,r;if(e.nodeType!==this.nodeType||e.children.length!==this.children.length)return!1;for(t=n=0,r=this.children.length-1;0<=r?n<=r:n>=r;t=0<=r?++n:--n)if(!this.children[t].isEqualNode(e.children[t]))return!1;return!0}getFeature(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}setUserData(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getUserData(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}contains(e){return e?e===this||this.isDescendant(e):!1}isDescendant(e){var t,n,r,i,a=this.children;for(r=0,i=a.length;r<i;r++)if(t=a[r],e===t||(n=t.isDescendant(e),n))return!0;return!1}isAncestor(e){return e.isDescendant(this)}isPreceding(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t<n}isFollowing(e){var t=this.treePosition(e),n=this.treePosition(this);return t===-1||n===-1?!1:t>n}treePosition(e){var t,n=0;return t=!1,this.foreachTreeNode(this.document(),function(r){if(n++,!t&&r===e)return t=!0}),t?n:-1}foreachTreeNode(e,t){var n,r,i,a,o;for(e||=this.document(),a=e.children,r=0,i=a.length;r<i;r++)if(n=a[r],(o=t(n))||(o=this.foreachTreeNode(n,t),o))return o}}return Object.defineProperty(t.prototype,`nodeName`,{get:function(){return this.name}}),Object.defineProperty(t.prototype,`nodeType`,{get:function(){return this.type}}),Object.defineProperty(t.prototype,`nodeValue`,{get:function(){return this.value}}),Object.defineProperty(t.prototype,`parentNode`,{get:function(){return this.parent}}),Object.defineProperty(t.prototype,`childNodes`,{get:function(){return(!this.childNodeList||!this.childNodeList.nodes)&&(this.childNodeList=new l(this.children)),this.childNodeList}}),Object.defineProperty(t.prototype,`firstChild`,{get:function(){return this.children[0]||null}}),Object.defineProperty(t.prototype,`lastChild`,{get:function(){return this.children[this.children.length-1]||null}}),Object.defineProperty(t.prototype,`previousSibling`,{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e-1]||null}}),Object.defineProperty(t.prototype,`nextSibling`,{get:function(){var e=this.parent.children.indexOf(this);return this.parent.children[e+1]||null}}),Object.defineProperty(t.prototype,`ownerDocument`,{get:function(){return this.document()||null}}),Object.defineProperty(t.prototype,`textContent`,{get:function(){var e,t,r,i,a;if(this.nodeType===n.Element||this.nodeType===n.DocumentFragment){for(a=``,i=this.children,t=0,r=i.length;t<r;t++)e=i[t],e.textContent&&(a+=e.textContent);return a}else return null},set:function(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}),t}).call(this)}).call(e)})),Jy=s(((e,t)=>{(function(){var e={}.hasOwnProperty;t.exports=(function(){class t{constructor(t){var n,r,i;for(n in this.assertLegalChar=this.assertLegalChar.bind(this),this.assertLegalName=this.assertLegalName.bind(this),t||={},this.options=t,this.options.version||(this.options.version=`1.0`),r=t.stringify||{},r)e.call(r,n)&&(i=r[n],this[n]=i)}name(e){return this.options.noValidation?e:this.assertLegalName(``+e||``)}text(e){return this.options.noValidation?e:this.assertLegalChar(this.textEscape(``+e||``))}cdata(e){return this.options.noValidation?e:(e=``+e||``,e=e.replace(`]]>`,`]]]]><![CDATA[>`),this.assertLegalChar(e))}comment(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/--/))throw Error(`Comment text cannot contain double-hypen: `+e);return this.assertLegalChar(e)}raw(e){return this.options.noValidation?e:``+e||``}attValue(e){return this.options.noValidation?e:this.assertLegalChar(this.attEscape(e=``+e||``))}insTarget(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}insValue(e){if(this.options.noValidation)return e;if(e=``+e||``,e.match(/\?>/))throw Error(`Invalid processing instruction value: `+e);return this.assertLegalChar(e)}xmlVersion(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/1\.[0-9]+/))throw Error(`Invalid version number: `+e);return e}xmlEncoding(e){if(this.options.noValidation)return e;if(e=``+e||``,!e.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw Error(`Invalid encoding: `+e);return this.assertLegalChar(e)}xmlStandalone(e){return this.options.noValidation?e:e?`yes`:`no`}dtdPubID(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdSysID(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdElementValue(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdAttType(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdAttDefault(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdEntityValue(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}dtdNData(e){return this.options.noValidation?e:this.assertLegalChar(``+e||``)}assertLegalChar(e){var t,n;if(this.options.noValidation)return e;if(this.options.version===`1.0`){if(t=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)e=e.replace(t,this.options.invalidCharReplacement);else if(n=e.match(t))throw Error(`Invalid character in string: ${e} at index ${n.index}`)}else if(this.options.version===`1.1`){if(t=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g,this.options.invalidCharReplacement!==void 0)e=e.replace(t,this.options.invalidCharReplacement);else if(n=e.match(t))throw Error(`Invalid character in string: ${e} at index ${n.index}`)}return e}assertLegalName(e){var t;if(this.options.noValidation)return e;if(e=this.assertLegalChar(e),t=/^([:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])([\x2D\.0-:A-Z_a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*$/,!e.match(t))throw Error(`Invalid character in name: ${e}`);return e}textEscape(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,e.replace(t,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/\r/g,`
`))}attEscape(e){var t;return this.options.noValidation?e:(t=this.options.noDoubleEncoding?/(?!&(lt|gt|amp|apos|quot);)&/g:/&/g,e.replace(t,`&`).replace(/</g,`<`).replace(/"/g,`"`).replace(/\t/g,`	`).replace(/\n/g,`
`).replace(/\r/g,`
`))}}return t.prototype.convertAttKey=`@`,t.prototype.convertPIKey=`?`,t.prototype.convertTextKey=`#text`,t.prototype.convertCDataKey=`#cdata`,t.prototype.convertCommentKey=`#comment`,t.prototype.convertRawKey=`#raw`,t}).call(this)}).call(e)})),Yy=s(((e,t)=>{(function(){t.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(e)})),Xy=s(((e,t)=>{(function(){var e,n,r,i={}.hasOwnProperty;({assign:r}=Cy()),e=Oy(),Fy(),By(),Ny(),Py(),jy(),Vy(),Hy(),Uy(),Wy(),Iy(),Ry(),Ly(),zy(),n=Yy(),t.exports=class{constructor(e){var t,n,r;for(t in e||={},this.options=e,n=e.writer||{},n)i.call(n,t)&&(r=n[t],this[`_`+t]=this[t],this[t]=r)}filterOptions(e){var t;return e||={},e=r({},this.options,e),t={writer:this},t.pretty=e.pretty||!1,t.allowEmpty=e.allowEmpty||!1,t.indent=e.indent??` `,t.newline=e.newline??`
|
|
576
|
+
`,t.offset=e.offset??0,t.width=e.width??0,t.dontPrettyTextNodes=e.dontPrettyTextNodes??e.dontprettytextnodes??0,t.spaceBeforeSlash=e.spaceBeforeSlash??e.spacebeforeslash??``,t.spaceBeforeSlash===!0&&(t.spaceBeforeSlash=` `),t.suppressPrettyCount=0,t.user={},t.state=n.None,t}indent(e,t,n){var r;return!t.pretty||t.suppressPrettyCount?``:t.pretty&&(r=(n||0)+t.offset+1,r>0)?Array(r).join(t.indent):``}endline(e,t,n){return!t.pretty||t.suppressPrettyCount?``:t.newline}attribute(e,t,n){var r;return this.openAttribute(e,t,n),r=t.pretty&&t.width>0?e.name+`="`+e.value+`"`:` `+e.name+`="`+e.value+`"`,this.closeAttribute(e,t,n),r}cdata(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<![CDATA[`,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=`]]>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}comment(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!-- `,t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=` -->`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}declaration(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?xml`,t.state=n.InsideTag,i+=` version="`+e.version+`"`,e.encoding!=null&&(i+=` encoding="`+e.encoding+`"`),e.standalone!=null&&(i+=` standalone="`+e.standalone+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}docType(e,t,r){var i,a,o,s,c;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,s=this.indent(e,t,r),s+=`<!DOCTYPE `+e.root().name,e.pubID&&e.sysID?s+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(s+=` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(s+=` [`,s+=this.endline(e,t,r),t.state=n.InsideTag,c=e.children,a=0,o=c.length;a<o;a++)i=c[a],s+=this.writeChildNode(i,t,r+1);t.state=n.CloseTag,s+=`]`}return t.state=n.CloseTag,s+=t.spaceBeforeSlash+`>`,s+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),s}element(t,r,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w;if(a||=0,_=!1,this.openNode(t,r,a),r.state=n.OpenTag,v=this.indent(t,r,a)+`<`+t.name,r.pretty&&r.width>0)for(g in p=v.length,b=t.attribs,b)i.call(b,g)&&(o=b[g],y=this.attribute(o,r,a),s=y.length,p+s>r.width?(w=this.indent(t,r,a+1)+y,v+=this.endline(t,r,a)+w,p=w.length):(w=` `+y,v+=w,p+=w.length));else for(g in x=t.attribs,x)i.call(x,g)&&(o=x[g],v+=this.attribute(o,r,a));if(l=t.children.length,u=l===0?null:t.children[0],l===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw||t.type===e.CData)&&t.value===``}))r.allowEmpty?(v+=`>`,r.state=n.CloseTag,v+=`</`+t.name+`>`+this.endline(t,r,a)):(r.state=n.CloseTag,v+=r.spaceBeforeSlash+`/>`+this.endline(t,r,a));else if(r.pretty&&l===1&&(u.type===e.Text||u.type===e.Raw||u.type===e.CData)&&u.value!=null)v+=`>`,r.state=n.InsideTag,r.suppressPrettyCount++,_=!0,v+=this.writeChildNode(u,r,a+1),r.suppressPrettyCount--,_=!1,r.state=n.CloseTag,v+=`</`+t.name+`>`+this.endline(t,r,a);else{if(r.dontPrettyTextNodes){for(S=t.children,d=0,m=S.length;d<m;d++)if(c=S[d],(c.type===e.Text||c.type===e.Raw||c.type===e.CData)&&c.value!=null){r.suppressPrettyCount++,_=!0;break}}for(v+=`>`+this.endline(t,r,a),r.state=n.InsideTag,C=t.children,f=0,h=C.length;f<h;f++)c=C[f],v+=this.writeChildNode(c,r,a+1);r.state=n.CloseTag,v+=this.indent(t,r,a)+`</`+t.name+`>`,_&&r.suppressPrettyCount--,v+=this.endline(t,r,a),r.state=n.None}return this.closeNode(t,r,a),v}writeChildNode(t,n,r){switch(t.type){case e.CData:return this.cdata(t,n,r);case e.Comment:return this.comment(t,n,r);case e.Element:return this.element(t,n,r);case e.Raw:return this.raw(t,n,r);case e.Text:return this.text(t,n,r);case e.ProcessingInstruction:return this.processingInstruction(t,n,r);case e.Dummy:return``;case e.Declaration:return this.declaration(t,n,r);case e.DocType:return this.docType(t,n,r);case e.AttributeDeclaration:return this.dtdAttList(t,n,r);case e.ElementDeclaration:return this.dtdElement(t,n,r);case e.EntityDeclaration:return this.dtdEntity(t,n,r);case e.NotationDeclaration:return this.dtdNotation(t,n,r);default:throw Error(`Unknown XML node type: `+t.constructor.name)}}processingInstruction(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<?`,t.state=n.InsideTag,i+=e.target,e.value&&(i+=` `+e.value),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`?>`,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}raw(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}text(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r),t.state=n.InsideTag,i+=e.value,t.state=n.CloseTag,i+=this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdAttList(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ATTLIST`,t.state=n.InsideTag,i+=` `+e.elementName+` `+e.attributeName+` `+e.attributeType,e.defaultValueType!==`#DEFAULT`&&(i+=` `+e.defaultValueType),e.defaultValue&&(i+=` "`+e.defaultValue+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdElement(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ELEMENT`,t.state=n.InsideTag,i+=` `+e.name+` `+e.value,t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdEntity(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!ENTITY`,t.state=n.InsideTag,e.pe&&(i+=` %`),i+=` `+e.name,e.value?i+=` "`+e.value+`"`:(e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),e.nData&&(i+=` NDATA `+e.nData)),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}dtdNotation(e,t,r){var i;return this.openNode(e,t,r),t.state=n.OpenTag,i=this.indent(e,t,r)+`<!NOTATION`,t.state=n.InsideTag,i+=` `+e.name,e.pubID&&e.sysID?i+=` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`:e.pubID?i+=` PUBLIC "`+e.pubID+`"`:e.sysID&&(i+=` SYSTEM "`+e.sysID+`"`),t.state=n.CloseTag,i+=t.spaceBeforeSlash+`>`+this.endline(e,t,r),t.state=n.None,this.closeNode(e,t,r),i}openNode(e,t,n){}closeNode(e,t,n){}openAttribute(e,t,n){}closeAttribute(e,t,n){}}}).call(e)})),Zy=s(((e,t)=>{(function(){var e=Xy();t.exports=class extends e{constructor(e){super(e)}document(e,t){var n,r,i,a,o;for(t=this.filterOptions(t),a=``,o=e.children,r=0,i=o.length;r<i;r++)n=o[r],a+=this.writeChildNode(n,t,0);return t.pretty&&a.slice(-t.newline.length)===t.newline&&(a=a.slice(0,-t.newline.length)),a}}}).call(e)})),Qy=s(((e,t)=>{(function(){var e,n,r,i,a,o,s;({isPlainObject:s}=Cy()),r=wy(),n=Dy(),i=qy(),e=Oy(),o=Jy(),a=Zy(),t.exports=(function(){class t extends i{constructor(t){super(null),this.name=`#document`,this.type=e.Document,this.documentURI=null,this.domConfig=new n,t||={},t.writer||=new a,this.options=t,this.stringify=new o(t)}end(e){var t={};return e?s(e)&&(t=e,e=this.options.writer):e=this.options.writer,e.document(this,e.filterOptions(t))}toString(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))}createElement(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createDocumentFragment(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTextNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createComment(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createCDATASection(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createProcessingInstruction(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttribute(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEntityReference(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}importNode(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createElementNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createAttributeNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByTagNameNS(e,t){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementById(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}adoptNode(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}normalizeDocument(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}renameNode(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}getElementsByClassName(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createEvent(e){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createRange(){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createNodeIterator(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}createTreeWalker(e,t,n){throw Error(`This DOM method is not implemented.`+this.debugInfo())}}return Object.defineProperty(t.prototype,`implementation`,{value:new r}),Object.defineProperty(t.prototype,`doctype`,{get:function(){var t,n,r,i=this.children;for(n=0,r=i.length;n<r;n++)if(t=i[n],t.type===e.DocType)return t;return null}}),Object.defineProperty(t.prototype,`documentElement`,{get:function(){return this.rootObject||null}}),Object.defineProperty(t.prototype,`inputEncoding`,{get:function(){return null}}),Object.defineProperty(t.prototype,`strictErrorChecking`,{get:function(){return!1}}),Object.defineProperty(t.prototype,`xmlEncoding`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].encoding:null}}),Object.defineProperty(t.prototype,`xmlStandalone`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].standalone===`yes`:!1}}),Object.defineProperty(t.prototype,`xmlVersion`,{get:function(){return this.children.length!==0&&this.children[0].type===e.Declaration?this.children[0].version:`1.0`}}),Object.defineProperty(t.prototype,`URL`,{get:function(){return this.documentURI}}),Object.defineProperty(t.prototype,`origin`,{get:function(){return null}}),Object.defineProperty(t.prototype,`compatMode`,{get:function(){return null}}),Object.defineProperty(t.prototype,`characterSet`,{get:function(){return null}}),Object.defineProperty(t.prototype,`contentType`,{get:function(){return null}}),t}).call(this)}).call(e)})),$y=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C={}.hasOwnProperty;({isObject:x,isFunction:b,isPlainObject:S,getValue:y}=Cy()),e=Oy(),f=Qy(),p=jy(),i=Ny(),a=Py(),h=Vy(),v=Hy(),m=Uy(),u=Fy(),d=By(),o=Iy(),c=Ly(),s=Ry(),l=zy(),r=ky(),_=Jy(),g=Zy(),n=Yy(),t.exports=class{constructor(t,n,r){var i;this.name=`?xml`,this.type=e.Document,t||={},i={},t.writer?S(t.writer)&&(i=t.writer,t.writer=new g):t.writer=new g,this.options=t,this.writer=t.writer,this.writerOptions=this.writer.filterOptions(i),this.stringify=new _(t),this.onDataCallback=n||function(){},this.onEndCallback=r||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}createChildNode(t){var n,r,i,a,o,s,c,l;switch(t.type){case e.CData:this.cdata(t.value);break;case e.Comment:this.comment(t.value);break;case e.Element:for(r in i={},c=t.attribs,c)C.call(c,r)&&(n=c[r],i[r]=n.value);this.node(t.name,i);break;case e.Dummy:this.dummy();break;case e.Raw:this.raw(t.value);break;case e.Text:this.text(t.value);break;case e.ProcessingInstruction:this.instruction(t.target,t.value);break;default:throw Error(`This XML node type is not supported in a JS object: `+t.constructor.name)}for(l=t.children,o=0,s=l.length;o<s;o++)a=l[o],this.createChildNode(a),a.type===e.Element&&this.up();return this}dummy(){return this}node(e,t,n){if(e==null)throw Error(`Missing node name.`);if(this.root&&this.currentLevel===-1)throw Error(`Document can only have one root node. `+this.debugInfo(e));return this.openCurrent(),e=y(e),t??={},t=y(t),x(t)||([n,t]=[t,n]),this.currentNode=new p(this,e,t),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,n!=null&&this.text(n),this}element(t,n,r){var i,a,o,s,c,l;if(this.currentNode&&this.currentNode.type===e.DocType)this.dtdElement(...arguments);else if(Array.isArray(t)||x(t)||b(t))for(s=this.options.noValidation,this.options.noValidation=!0,l=new f(this.options).element(`TEMP_ROOT`),l.element(t),this.options.noValidation=s,c=l.children,a=0,o=c.length;a<o;a++)i=c[a],this.createChildNode(i),i.type===e.Element&&this.up();else this.node(t,n,r);return this}attribute(e,t){var n,i;if(!this.currentNode||this.currentNode.children)throw Error(`att() can only be used immediately after an ele() call in callback mode. `+this.debugInfo(e));if(e!=null&&(e=y(e)),x(e))for(n in e)C.call(e,n)&&(i=e[n],this.attribute(n,i));else b(t)&&(t=t.apply()),this.options.keepNullAttributes&&t==null?this.currentNode.attribs[e]=new r(this,e,``):t!=null&&(this.currentNode.attribs[e]=new r(this,e,t));return this}text(e){var t;return this.openCurrent(),t=new v(this,e),this.onData(this.writer.text(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}cdata(e){var t;return this.openCurrent(),t=new i(this,e),this.onData(this.writer.cdata(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}comment(e){var t;return this.openCurrent(),t=new a(this,e),this.onData(this.writer.comment(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}raw(e){var t;return this.openCurrent(),t=new h(this,e),this.onData(this.writer.raw(t,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}instruction(e,t){var n,r,i,a,o;if(this.openCurrent(),e!=null&&(e=y(e)),t!=null&&(t=y(t)),Array.isArray(e))for(n=0,a=e.length;n<a;n++)r=e[n],this.instruction(r);else if(x(e))for(r in e)C.call(e,r)&&(i=e[r],this.instruction(r,i));else b(t)&&(t=t.apply()),o=new m(this,e,t),this.onData(this.writer.processingInstruction(o,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this}declaration(e,t,n){var r;if(this.openCurrent(),this.documentStarted)throw Error(`declaration() must be the first node.`);return r=new u(this,e,t,n),this.onData(this.writer.declaration(r,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}doctype(e,t,n){if(this.openCurrent(),e==null)throw Error(`Missing root node name.`);if(this.root)throw Error(`dtd() must come before the root node.`);return this.currentNode=new d(this,t,n),this.currentNode.rootNodeName=e,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this}dtdElement(e,t){var n;return this.openCurrent(),n=new s(this,e,t),this.onData(this.writer.dtdElement(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}attList(e,t,n,r,i){var a;return this.openCurrent(),a=new o(this,e,t,n,r,i),this.onData(this.writer.dtdAttList(a,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}entity(e,t){var n;return this.openCurrent(),n=new c(this,!1,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}pEntity(e,t){var n;return this.openCurrent(),n=new c(this,!0,e,t),this.onData(this.writer.dtdEntity(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}notation(e,t){var n;return this.openCurrent(),n=new l(this,e,t),this.onData(this.writer.dtdNotation(n,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this}up(){if(this.currentLevel<0)throw Error(`The document node has no parent.`);return this.currentNode?(this.currentNode.children?this.closeNode(this.currentNode):this.openNode(this.currentNode),this.currentNode=null):this.closeNode(this.openTags[this.currentLevel]),delete this.openTags[this.currentLevel],this.currentLevel--,this}end(){for(;this.currentLevel>=0;)this.up();return this.onEnd()}openCurrent(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)}openNode(t){var r,i,a,o;if(!t.isOpen){if(!this.root&&this.currentLevel===0&&t.type===e.Element&&(this.root=t),i=``,t.type===e.Element){for(a in this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<`+t.name,o=t.attribs,o)C.call(o,a)&&(r=o[a],i+=this.writer.attribute(r,this.writerOptions,this.currentLevel));i+=(t.children?`>`:`/>`)+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.InsideTag}else this.writerOptions.state=n.OpenTag,i=this.writer.indent(t,this.writerOptions,this.currentLevel)+`<!DOCTYPE `+t.rootNodeName,t.pubID&&t.sysID?i+=` PUBLIC "`+t.pubID+`" "`+t.sysID+`"`:t.sysID&&(i+=` SYSTEM "`+t.sysID+`"`),t.children?(i+=` [`,this.writerOptions.state=n.InsideTag):(this.writerOptions.state=n.CloseTag,i+=`>`),i+=this.writer.endline(t,this.writerOptions,this.currentLevel);return this.onData(i,this.currentLevel),t.isOpen=!0}}closeNode(t){var r;if(!t.isClosed)return r=``,this.writerOptions.state=n.CloseTag,r=t.type===e.Element?this.writer.indent(t,this.writerOptions,this.currentLevel)+`</`+t.name+`>`+this.writer.endline(t,this.writerOptions,this.currentLevel):this.writer.indent(t,this.writerOptions,this.currentLevel)+`]>`+this.writer.endline(t,this.writerOptions,this.currentLevel),this.writerOptions.state=n.None,this.onData(r,this.currentLevel),t.isClosed=!0}onData(e,t){return this.documentStarted=!0,this.onDataCallback(e,t+1)}onEnd(){return this.documentCompleted=!0,this.onEndCallback()}debugInfo(e){return e==null?``:`node: <`+e+`>`}ele(){return this.element(...arguments)}nod(e,t,n){return this.node(e,t,n)}txt(e){return this.text(e)}dat(e){return this.cdata(e)}com(e){return this.comment(e)}ins(e,t){return this.instruction(e,t)}dec(e,t,n){return this.declaration(e,t,n)}dtd(e,t,n){return this.doctype(e,t,n)}e(e,t,n){return this.element(e,t,n)}n(e,t,n){return this.node(e,t,n)}t(e){return this.text(e)}d(e){return this.cdata(e)}c(e){return this.comment(e)}r(e){return this.raw(e)}i(e,t){return this.instruction(e,t)}att(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}a(){return this.currentNode&&this.currentNode.type===e.DocType?this.attList(...arguments):this.attribute(...arguments)}ent(e,t){return this.entity(e,t)}pent(e,t){return this.pEntity(e,t)}not(e,t){return this.notation(e,t)}}}).call(e)})),eb=s(((e,t)=>{(function(){var e,n,r,i={}.hasOwnProperty;e=Oy(),r=Xy(),n=Yy(),t.exports=class extends r{constructor(e,t){super(t),this.stream=e}endline(e,t,r){return e.isLastRootNode&&t.state===n.CloseTag?``:super.endline(e,t,r)}document(e,t){var n,r,i,a,o,s,c=e.children,l,u;for(r=i=0,o=c.length;i<o;r=++i)n=c[r],n.isLastRootNode=r===e.children.length-1;for(t=this.filterOptions(t),l=e.children,u=[],a=0,s=l.length;a<s;a++)n=l[a],u.push(this.writeChildNode(n,t,0));return u}cdata(e,t,n){return this.stream.write(super.cdata(e,t,n))}comment(e,t,n){return this.stream.write(super.comment(e,t,n))}declaration(e,t,n){return this.stream.write(super.declaration(e,t,n))}docType(e,t,r){var i,a,o,s;if(r||=0,this.openNode(e,t,r),t.state=n.OpenTag,this.stream.write(this.indent(e,t,r)),this.stream.write(`<!DOCTYPE `+e.root().name),e.pubID&&e.sysID?this.stream.write(` PUBLIC "`+e.pubID+`" "`+e.sysID+`"`):e.sysID&&this.stream.write(` SYSTEM "`+e.sysID+`"`),e.children.length>0){for(this.stream.write(` [`),this.stream.write(this.endline(e,t,r)),t.state=n.InsideTag,s=e.children,a=0,o=s.length;a<o;a++)i=s[a],this.writeChildNode(i,t,r+1);t.state=n.CloseTag,this.stream.write(`]`)}return t.state=n.CloseTag,this.stream.write(t.spaceBeforeSlash+`>`),this.stream.write(this.endline(e,t,r)),t.state=n.None,this.closeNode(e,t,r)}element(t,r,a){var o,s,c,l,u,d,f,p,m,h,g,_,v,y,b;if(a||=0,this.openNode(t,r,a),r.state=n.OpenTag,h=this.indent(t,r,a)+`<`+t.name,r.pretty&&r.width>0)for(m in f=h.length,_=t.attribs,_)i.call(_,m)&&(o=_[m],g=this.attribute(o,r,a),s=g.length,f+s>r.width?(b=this.indent(t,r,a+1)+g,h+=this.endline(t,r,a)+b,f=b.length):(b=` `+g,h+=b,f+=b.length));else for(m in v=t.attribs,v)i.call(v,m)&&(o=v[m],h+=this.attribute(o,r,a));if(this.stream.write(h),l=t.children.length,u=l===0?null:t.children[0],l===0||t.children.every(function(t){return(t.type===e.Text||t.type===e.Raw||t.type===e.CData)&&t.value===``}))r.allowEmpty?(this.stream.write(`>`),r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`)):(r.state=n.CloseTag,this.stream.write(r.spaceBeforeSlash+`/>`));else if(r.pretty&&l===1&&(u.type===e.Text||u.type===e.Raw||u.type===e.CData)&&u.value!=null)this.stream.write(`>`),r.state=n.InsideTag,r.suppressPrettyCount++,this.writeChildNode(u,r,a+1),r.suppressPrettyCount--,r.state=n.CloseTag,this.stream.write(`</`+t.name+`>`);else{for(this.stream.write(`>`+this.endline(t,r,a)),r.state=n.InsideTag,y=t.children,d=0,p=y.length;d<p;d++)c=y[d],this.writeChildNode(c,r,a+1);r.state=n.CloseTag,this.stream.write(this.indent(t,r,a)+`</`+t.name+`>`)}return this.stream.write(this.endline(t,r,a)),r.state=n.None,this.closeNode(t,r,a)}processingInstruction(e,t,n){return this.stream.write(super.processingInstruction(e,t,n))}raw(e,t,n){return this.stream.write(super.raw(e,t,n))}text(e,t,n){return this.stream.write(super.text(e,t,n))}dtdAttList(e,t,n){return this.stream.write(super.dtdAttList(e,t,n))}dtdElement(e,t,n){return this.stream.write(super.dtdElement(e,t,n))}dtdEntity(e,t,n){return this.stream.write(super.dtdEntity(e,t,n))}dtdNotation(e,t,n){return this.stream.write(super.dtdNotation(e,t,n))}}}).call(e)})),tb=s(((e,t)=>{(function(){var e,n,r,i,a,o,s,c,l;({assign:c,isFunction:l}=Cy()),r=wy(),i=Qy(),a=$y(),s=Zy(),o=eb(),e=Oy(),n=Yy(),t.exports.create=function(e,t,n,r){var a,o;if(e==null)throw Error(`Root element needs a name.`);return r=c({},t,n,r),a=new i(r),o=a.element(e),r.headless||(a.declaration(r),(r.pubID!=null||r.sysID!=null)&&a.dtd(r)),o},t.exports.begin=function(e,t,n){return l(e)&&([t,n]=[e,t],e={}),t?new a(e,t,n):new i(e)},t.exports.stringWriter=function(e){return new s(e)},t.exports.streamWriter=function(e,t){return new o(e,t)},t.exports.implementation=new r,t.exports.nodeType=e,t.exports.writerState=n}).call(e)})),nb=s(((e,t)=>{var n=Q(),r=tb(),i=Iv(),a,o=e=>n.upperFirst(n.camelCase(e).replace(/\W/g,``));a=function(e,t){e.on(`beforeDone`,function(){var a=n.get(e,`summary.run.executions`),s=n.get(e,`summary.collection`),c,l,u=0,d=0,f,p;a&&(p=o(s.name),l=r.create(`testsuites`,{version:`1.0`,encoding:`UTF-8`}),l.att(`name`,s.name),l.att(`tests`,n.get(e,`summary.run.stats.tests.total`,`unknown`)),c=n.transform(a,function(e,t){e[t.item.id]=e[t.id]||[],e[t.item.id].push(t)},{}),f=new Date(n.get(e,`summary.run.timings.started`)).toISOString(),n.forEach(c,function(e,t){var r=l.ele(`testsuite`),a,c={},m=0,h=0,g;s.forEachItem(function(e){e.id===t&&(a=e)}),a&&(r.att(`name`,i.getFullName(a)),r.att(`id`,a.id),r.att(`timestamp`,f),n.forEach(e,function(e){var t=e.cursor.iteration,i,a=`Iteration: ${t}\n`;e.requestError&&(++m,i=!0,a+=`RequestError: `+e.requestError.stack+`
|
|
577
577
|
`),a+=`
|
|
578
578
|
---
|
|
579
579
|
`,n.forEach([`testScript`,`prerequestScript`],function(t){n.forEach(e[t],function(e){e.error&&(++m,i=!0,a=a+t+`Error: `+(e.error.stack||e.error.message),a+=`
|
|
580
580
|
---
|
|
581
581
|
`)})}),i&&(g=n.isString(g)?g+a:a),n.forEach(e.assertions,function(e){var t=e.assertion,r=e.error;r?(++h,n.isArray(c[t])?c[t].push(r):c[t]=[r]):c[t]=[]}),e.assertions?r.att(`tests`,e.assertions.length):r.att(`tests`,0),r.att(`failures`,h),r.att(`errors`,m)}),r.att(`time`,n.mean(n.map(e,function(e){return d=n.get(e,`response.responseTime`)/1e3||0,u+=d,d})).toFixed(3)),g&&r.ele(`system-err`).dat(g),n.forOwn(c,function(e,t){var c=r.ele(`testcase`),l;c.att(`name`,t),c.att(`time`,d.toFixed(3)),c.att(`classname`,o(n.get(c.up(),`attribs.name.value`))||p),e&&e.length&&(l=c.ele(`failure`),l.att(`type`,`AssertionFailure`),l.dat(`Failed `+e.length+` times.`),l.dat(`Collection JSON ID: `+s.id+`.`),l.dat(`Collection name: `+s.name+`.`),l.dat(`Request name: `+i.getFullName(a)+`.`),l.dat(`Test description: `+t+`.`),e.length!==0&&(l.att(`message`,e[0].message),l.dat(`Error message: `+e[0].message+`.`),l.dat(`Stacktrace: `+e[0].stack+`.`)))}))}),l.att(`time`,u.toFixed(3)),e.exports.push({name:`junit-reporter`,default:`newman-run-report.xml`,path:t.export,content:l.end({pretty:!0,indent:` `,newline:`
|
|
582
|
-
`,allowEmpty:!1})}))})},t.exports=a})),
|
|
583
|
-
`),this.dy++}write(e,t=!1){this.linewrap===!0&&t===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write(`\x1B[?7h`):this.stream.write(`\x1B[?7l`))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}}})),Yb=s(((e,t)=>{t.exports=function(e,t,n){if(t.autopadding!==!0)return e;function r(e,n){return(t.autopaddingChar+e).slice(-n)}switch(n){case`percentage`:return r(e,3);default:return e}}})),Xb=s(((e,t)=>{t.exports=function(e,t){let n=Math.round(e*t.barsize),r=t.barsize-n;return t.barCompleteString.substr(0,n)+t.barGlue+t.barIncompleteString.substr(0,r)}})),Zb=s(((e,t)=>{t.exports=function(e,t,n){function r(e){return n?n*Math.round(e/n):e}function i(e){return(t.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+`h`+i(r(e%3600/60))+`m`:e>60?i(Math.floor(e/60))+`m`+i(r(e%60))+`s`:e>10?i(r(e))+`s`:i(e)+`s`}})),Qb=s(((e,t)=>{let n=Wy(),r=Yb(),i=Xb(),a=Zb();t.exports=function(e,t,o){let s=e.format,c=e.formatTime||a,l=e.formatValue||r,u=e.formatBar||i,d=Math.floor(t.progress*100)+``,f=t.stopTime||Date.now(),p=Math.round((f-t.startTime)/1e3),m=Object.assign({},o,{bar:u(t.progress,e),percentage:l(d,e,`percentage`),total:l(t.total,e,`total`),value:l(t.value,e,`value`),eta:l(t.eta,e,`eta`),eta_formatted:c(t.eta,e,5),duration:l(p,e,`duration`),duration_formatted:c(p,e,1)});s=s.replace(/\{(\w+)\}/g,function(e,t){return m[t]===void 0?e:m[t]});let h=Math.max(0,t.maxWidth-n(s)-2),g=Math.floor(h/2);switch(e.align){case`right`:s=h>0?` `.repeat(h)+s:s;break;case`center`:s=g>0?` `.repeat(g)+s:s;break;default:break}return s}})),$b=s(((e,t)=>{function n(e,t){return e??t}t.exports={parse:function(e,t){let r={},i=Object.assign({},t,e);return r.throttleTime=1e3/n(i.fps,10),r.stream=n(i.stream,process.stderr),r.terminal=n(i.terminal,null),r.clearOnComplete=n(i.clearOnComplete,!1),r.stopOnComplete=n(i.stopOnComplete,!1),r.barsize=n(i.barsize,40),r.align=n(i.align,`left`),r.hideCursor=n(i.hideCursor,!1),r.linewrap=n(i.linewrap,!1),r.barGlue=n(i.barGlue,``),r.barCompleteChar=n(i.barCompleteChar,`=`),r.barIncompleteChar=n(i.barIncompleteChar,`-`),r.format=n(i.format,`progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}`),r.formatTime=n(i.formatTime,null),r.formatValue=n(i.formatValue,null),r.formatBar=n(i.formatBar,null),r.etaBufferLength=n(i.etaBuffer,10),r.etaAsynchronousUpdate=n(i.etaAsynchronousUpdate,!1),r.progressCalculationRelative=n(i.progressCalculationRelative,!1),r.synchronousUpdate=n(i.synchronousUpdate,!0),r.noTTYOutput=n(i.noTTYOutput,!1),r.notTTYSchedule=n(i.notTTYSchedule,2e3),r.emptyOnZero=n(i.emptyOnZero,!1),r.forceRedraw=n(i.forceRedraw,!1),r.autopadding=n(i.autopadding,!1),r.gracefulExit=n(i.gracefulExit,!1),r},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?n(e.autopaddingChar,` `):``,e}}})),ex=s(((e,t)=>{let n=qb(),r=Jb(),i=Qb(),a=$b(),o=d(`events`);t.exports=class extends o{constructor(e){super(),this.options=a.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new r(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new n(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format==`function`?this.options.format:i}render(e=!1){let t={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,t,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit(`redraw-pre`),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit(`redraw-post`))}start(e,t,r){this.value=t||0,this.total=e!==void 0&&e>=0?e:100,this.startValue=t||0,this.payload=r||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString=``,this.eta=new n(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit(`start`,e,t)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit(`stop`,this.total,this.value)}update(e,t={}){typeof e==`number`&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e==`object`?e:t)||{};for(let e in this.emit(`update`,this.total,this.value),n)this.payload[e]=n[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,t={}){typeof e==`object`?this.update(this.value+1,e):this.update(this.value+e,t)}getTotal(){return this.total}setTotal(e){e!==void 0&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}})),tx=s(((e,t)=>{let n=ex(),r=$b();t.exports=class extends n{constructor(e,t){super(r.parse(e,t)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&=(clearTimeout(this.timer),null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,t){this.timer&&(super.update(e,t),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,t,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once(`SIGINT`,this.sigintCallback),process.once(`SIGTERM`,this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,t,n),this.render())}stop(){this.timer&&(this.sigintCallback&&=(process.removeListener(`SIGINT`,this.sigintCallback),process.removeListener(`SIGTERM`,this.sigintCallback),null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}})),nx=s(((e,t)=>{let n=Jb(),r=ex(),i=$b(),a=d(`events`);t.exports=class extends a{constructor(e,t){super(),this.bars=[],this.options=i.parse(e,t),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new n(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,t,n,i={}){let a=new r(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(a),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1?a:(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once(`SIGINT`,this.sigintCallback),process.once(`SIGTERM`,this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,a.start(e,t,n),this.emit(`start`),a)}remove(e){let t=this.bars.indexOf(e);return t<0?!1:(this.bars.splice(t,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&=(clearTimeout(this.timer),null),this.emit(`update-pre`),this.terminal.cursorRelativeReset(),this.emit(`redraw-pre`),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit(`redraw-post`),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit(`update-post`),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&=(process.removeListener(`SIGINT`,this.sigintCallback),process.removeListener(`SIGTERM`,this.sigintCallback),null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit(`stop-pre-clear`),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit(`stop`)}log(e){this.loggingBuffer.push(e)}}})),rx=s(((e,t)=>{t.exports={format:`progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`=`,barIncompleteChar:`-`}})),ix=s(((e,t)=>{t.exports={format:` {bar} {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`█`,barIncompleteChar:`░`}})),ax=s(((e,t)=>{t.exports={format:` \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`█`,barIncompleteChar:`░`}})),ox=s(((e,t)=>{t.exports={format:` {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`■`,barIncompleteChar:` `}})),sx=s(((e,t)=>{t.exports={legacy:rx(),shades_classic:ix(),shades_grey:ax(),rect:ox()}})),cx=s(((e,t)=>{let n=tx(),r=nx(),i=sx(),a=Qb(),o=Yb();t.exports={Bar:n,SingleBar:n,MultiBar:r,Presets:i,Format:{Formatter:a,BarFormat:Xb(),ValueFormat:o,TimeFormat:Zb()}}})),lx=s(((e,t)=>{var n=cx(),r=function(e,t,r){if(!(r.silent||t.silent)){var i=new n.Bar({});e.on(`start`,function(e,t){e||i.start(t.cursor.length*t.cursor.cycles,0)}),e.on(`item`,function(){i.increment()}),e.on(`done`,function(){i.stop()})}};r.prototype.dominant=!0,t.exports=r})),ux=s(((e,t)=>{var n=function(e,t,n){if(!(n.silent||t.silent)){var r={},i=function(e,t){e&&(r[t.cursor.ref]=!0)};e.on(`script`,i),e.on(`request`,i),e.on(`assertion`,i),e.on(`item`,function(e,t){process.stdout.write(e||r[t.cursor.ref]?`😢 `:`😀 `)}),e.on(`done`,function(e){console.info(e||Object.keys(r).length?` 😭`:` 😍`)})}};n.prototype.dominant=!0,t.exports=n})),dx=s(((e,t)=>{var n=Q(),r=d(`events`),i=Ue(),a=es(),o=cg(),s=iv(),c=av(),l=ov(),u=Ay(),f=Ry(),p=Ey(),m={beforeIteration:[],beforeItem:[`item`],beforePrerequest:[`events`,`item`],prerequest:[`executions`,`item`],beforeRequest:[`request`,`item`],request:[`response`,`request`,`item`,`cookies`,`history`],beforeTest:[`events`,`item`],test:[`executions`,`item`],item:[`item`],iteration:[],beforeScript:[`script`,`event`,`item`],script:[`execution`,`script`,`event`,`item`]},h={cli:db(),json:fb(),junit:Kb(),progress:lx(),emojitrain:ux()},g={html:" run `npm install newman-reporter-html`\n",teamcity:" run `npm install newman-reporter-teamcity`\n"},_=`multipleIdOrName`;t.exports=function(e,t){!t&&n.isFunction(e)&&(t=e,e={}),!n.isFunction(t)&&(t=n.noop);var v=new r,y=new o.Runner,b,x;return u(e,function(e,r){if(e)return t(e);if(!n.isObject(r.collection))return t(Error(`expecting a collection to run`));var o=r.sslClientCertList||[],u=r.cookieJar||s.jar();r.sslClientCert&&o.push({name:`client-cert`,matches:[a.UrlMatchPattern.MATCH_ALL_URLS],key:{src:r.sslClientKey},cert:{src:r.sslClientCert},passphrase:r.sslClientPassphrase}),n.isArray(r.bail)&&(r.bail=n.transform(r.bail,function(e,t){e[t]=!0},{})),r.folder&&(x={execute:r.folder},n.isArray(x.execute)&&(x.lookupStrategy=_)),b=!!(r.bail!==void 0&&(r.bail===!0||n.isObject(r.bail)&&r.bail.failure)),v.summary=new l(v,r),v.exports=[],v.runner=y,y.run(r.collection,{stopOnFailure:b,abortOnFailure:r.abortOnFailure,abortOnError:n.get(r,`bail.folder`),iterationCount:r.iterationCount,environment:r.environment,globals:r.globals,entrypoint:x,data:r.iterationData,delay:{item:r.delayRequest},timeout:{global:r.timeout||0,request:r.timeoutRequest||0,script:r.timeoutScript||0},fileResolver:new c(r.workingDir,r.insecureFileRead),requester:{useWhatWGUrlParser:!0,cookieJar:u,followRedirects:n.has(r,`ignoreRedirects`)?!r.ignoreRedirects:void 0,strictSSL:n.has(r,`insecure`)?!r.insecure:void 0,timings:!!r.verbose,extendedRootCA:r.sslExtraCaCerts,agents:n.isObject(r.requestAgents)?r.requestAgents:void 0},certificates:o.length&&new a.CertificateList({},o)},function(e,a){if(e)return t(e);var o={},s=n.isString(r.reporters)?[r.reporters]:r.reporters,c={};n.forEach(m,function(e,t){o[t]=function(r,i){var a=arguments,o={cursor:i};n.forEach(e,function(e,t){o[e]=a[t+2]}),a=[t,r,o],v.emit.apply(v,a)}}),n.assignIn(o,{start(e,t){v.emit(`start`,e,{cursor:t,run:a})},console(e,t){v.emit(`console`,null,{cursor:e,level:t,messages:n.slice(arguments,2)})},exception(e,t){v.emit(`exception`,null,{cursor:e,error:t})},assertion(e,t){n.forEach(t,function(t){var r=n.get(t,`error.name`,`AssertionError`);!t&&(t={}),t.index&&(c[e.ref]=t.index),v.emit(`assertion`,t.passed?null:{name:r,index:t.index,test:t.name,message:n.get(t,`error.message`,t.name||``),stack:r+`: `+n.get(t,`error.message`,``)+`
|
|
582
|
+
`,allowEmpty:!1})}))})},t.exports=a})),rb=s(((e,t)=>{t.exports=class{constructor(e,t,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[t],this.eta=`0`}update(e,t,n){this.valueBuffer.push(t),this.timeBuffer.push(e),this.calculate(n-t)}getTime(){return this.eta}calculate(e){let t=this.valueBuffer.length,n=Math.min(this.etaBufferLength,t),r=(this.valueBuffer[t-1]-this.valueBuffer[t-n])/(this.timeBuffer[t-1]-this.timeBuffer[t-n]);this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);let i=Math.ceil(e/r/1e3);isNaN(i)?this.eta=`NULL`:isFinite(i)?i>1e7?this.eta=`INF`:i<0?this.eta=0:this.eta=i:this.eta=`INF`}}})),ib=s(((e,t)=>{let n=d(`readline`);t.exports=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write(`\x1B7`)}cursorRestore(){this.stream.isTTY&&this.stream.write(`\x1B8`)}cursor(e){this.stream.isTTY&&(e?this.stream.write(`\x1B[?25h`):this.stream.write(`\x1B[?25l`))}cursorTo(e=null,t=null){this.stream.isTTY&&n.cursorTo(this.stream,e,t)}cursorRelative(e=null,t=null){this.stream.isTTY&&(this.dy+=t,n.moveCursor(this.stream,e,t))}cursorRelativeReset(){this.stream.isTTY&&(n.moveCursor(this.stream,0,-this.dy),n.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&n.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&n.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&n.clearScreenDown(this.stream)}newline(){this.stream.write(`
|
|
583
|
+
`),this.dy++}write(e,t=!1){this.linewrap===!0&&t===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write(`\x1B[?7h`):this.stream.write(`\x1B[?7l`))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}}})),ab=s(((e,t)=>{t.exports=function(e,t,n){if(t.autopadding!==!0)return e;function r(e,n){return(t.autopaddingChar+e).slice(-n)}switch(n){case`percentage`:return r(e,3);default:return e}}})),ob=s(((e,t)=>{t.exports=function(e,t){let n=Math.round(e*t.barsize),r=t.barsize-n;return t.barCompleteString.substr(0,n)+t.barGlue+t.barIncompleteString.substr(0,r)}})),sb=s(((e,t)=>{t.exports=function(e,t,n){function r(e){return n?n*Math.round(e/n):e}function i(e){return(t.autopaddingChar+e).slice(-2)}return e>3600?i(Math.floor(e/3600))+`h`+i(r(e%3600/60))+`m`:e>60?i(Math.floor(e/60))+`m`+i(r(e%60))+`s`:e>10?i(r(e))+`s`:i(e)+`s`}})),cb=s(((e,t)=>{let n=ey(),r=ab(),i=ob(),a=sb();t.exports=function(e,t,o){let s=e.format,c=e.formatTime||a,l=e.formatValue||r,u=e.formatBar||i,d=Math.floor(t.progress*100)+``,f=t.stopTime||Date.now(),p=Math.round((f-t.startTime)/1e3),m=Object.assign({},o,{bar:u(t.progress,e),percentage:l(d,e,`percentage`),total:l(t.total,e,`total`),value:l(t.value,e,`value`),eta:l(t.eta,e,`eta`),eta_formatted:c(t.eta,e,5),duration:l(p,e,`duration`),duration_formatted:c(p,e,1)});s=s.replace(/\{(\w+)\}/g,function(e,t){return m[t]===void 0?e:m[t]});let h=Math.max(0,t.maxWidth-n(s)-2),g=Math.floor(h/2);switch(e.align){case`right`:s=h>0?` `.repeat(h)+s:s;break;case`center`:s=g>0?` `.repeat(g)+s:s;break;default:break}return s}})),lb=s(((e,t)=>{function n(e,t){return e??t}t.exports={parse:function(e,t){let r={},i=Object.assign({},t,e);return r.throttleTime=1e3/n(i.fps,10),r.stream=n(i.stream,process.stderr),r.terminal=n(i.terminal,null),r.clearOnComplete=n(i.clearOnComplete,!1),r.stopOnComplete=n(i.stopOnComplete,!1),r.barsize=n(i.barsize,40),r.align=n(i.align,`left`),r.hideCursor=n(i.hideCursor,!1),r.linewrap=n(i.linewrap,!1),r.barGlue=n(i.barGlue,``),r.barCompleteChar=n(i.barCompleteChar,`=`),r.barIncompleteChar=n(i.barIncompleteChar,`-`),r.format=n(i.format,`progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}`),r.formatTime=n(i.formatTime,null),r.formatValue=n(i.formatValue,null),r.formatBar=n(i.formatBar,null),r.etaBufferLength=n(i.etaBuffer,10),r.etaAsynchronousUpdate=n(i.etaAsynchronousUpdate,!1),r.progressCalculationRelative=n(i.progressCalculationRelative,!1),r.synchronousUpdate=n(i.synchronousUpdate,!0),r.noTTYOutput=n(i.noTTYOutput,!1),r.notTTYSchedule=n(i.notTTYSchedule,2e3),r.emptyOnZero=n(i.emptyOnZero,!1),r.forceRedraw=n(i.forceRedraw,!1),r.autopadding=n(i.autopadding,!1),r.gracefulExit=n(i.gracefulExit,!1),r},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?n(e.autopaddingChar,` `):``,e}}})),ub=s(((e,t)=>{let n=rb(),r=ib(),i=cb(),a=lb(),o=d(`events`);t.exports=class extends o{constructor(e){super(),this.options=a.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new r(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new n(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format==`function`?this.options.format:i}render(e=!1){let t={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,t,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit(`redraw-pre`),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit(`redraw-post`))}start(e,t,r){this.value=t||0,this.total=e!==void 0&&e>=0?e:100,this.startValue=t||0,this.payload=r||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString=``,this.eta=new n(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit(`start`,e,t)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit(`stop`,this.total,this.value)}update(e,t={}){typeof e==`number`&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e==`object`?e:t)||{};for(let e in this.emit(`update`,this.total,this.value),n)this.payload[e]=n[e];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,t={}){typeof e==`object`?this.update(this.value+1,e):this.update(this.value+e,t)}getTotal(){return this.total}setTotal(e){e!==void 0&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}})),db=s(((e,t)=>{let n=ub(),r=lb();t.exports=class extends n{constructor(e,t){super(r.parse(e,t)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&=(clearTimeout(this.timer),null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,t){this.timer&&(super.update(e,t),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,t,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once(`SIGINT`,this.sigintCallback),process.once(`SIGTERM`,this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,t,n),this.render())}stop(){this.timer&&(this.sigintCallback&&=(process.removeListener(`SIGINT`,this.sigintCallback),process.removeListener(`SIGTERM`,this.sigintCallback),null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}})),fb=s(((e,t)=>{let n=ib(),r=ub(),i=lb(),a=d(`events`);t.exports=class extends a{constructor(e,t){super(),this.bars=[],this.options=i.parse(e,t),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new n(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,t,n,i={}){let a=new r(Object.assign({},this.options,{terminal:this.terminal},i));return this.bars.push(a),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1?a:(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once(`SIGINT`,this.sigintCallback),process.once(`SIGTERM`,this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,a.start(e,t,n),this.emit(`start`),a)}remove(e){let t=this.bars.indexOf(e);return t<0?!1:(this.bars.splice(t,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&=(clearTimeout(this.timer),null),this.emit(`update-pre`),this.terminal.cursorRelativeReset(),this.emit(`redraw-pre`),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit(`redraw-post`),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit(`update-post`),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&=(process.removeListener(`SIGINT`,this.sigintCallback),process.removeListener(`SIGTERM`,this.sigintCallback),null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit(`stop-pre-clear`),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit(`stop`)}log(e){this.loggingBuffer.push(e)}}})),pb=s(((e,t)=>{t.exports={format:`progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`=`,barIncompleteChar:`-`}})),mb=s(((e,t)=>{t.exports={format:` {bar} {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`█`,barIncompleteChar:`░`}})),hb=s(((e,t)=>{t.exports={format:` \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`█`,barIncompleteChar:`░`}})),gb=s(((e,t)=>{t.exports={format:` {bar}■ {percentage}% | ETA: {eta}s | {value}/{total}`,barCompleteChar:`■`,barIncompleteChar:` `}})),_b=s(((e,t)=>{t.exports={legacy:pb(),shades_classic:mb(),shades_grey:hb(),rect:gb()}})),vb=s(((e,t)=>{let n=db(),r=fb(),i=_b(),a=cb(),o=ab();t.exports={Bar:n,SingleBar:n,MultiBar:r,Presets:i,Format:{Formatter:a,BarFormat:ob(),ValueFormat:o,TimeFormat:sb()}}})),yb=s(((e,t)=>{var n=vb(),r=function(e,t,r){if(!(r.silent||t.silent)){var i=new n.Bar({});e.on(`start`,function(e,t){e||i.start(t.cursor.length*t.cursor.cycles,0)}),e.on(`item`,function(){i.increment()}),e.on(`done`,function(){i.stop()})}};r.prototype.dominant=!0,t.exports=r})),bb=s(((e,t)=>{var n=function(e,t,n){if(!(n.silent||t.silent)){var r={},i=function(e,t){e&&(r[t.cursor.ref]=!0)};e.on(`script`,i),e.on(`request`,i),e.on(`assertion`,i),e.on(`item`,function(e,t){process.stdout.write(e||r[t.cursor.ref]?`😢 `:`😀 `)}),e.on(`done`,function(e){console.info(e||Object.keys(r).length?` 😭`:` 😍`)})}};n.prototype.dominant=!0,t.exports=n})),xb=s(((e,t)=>{var n=Q(),r=d(`events`),i=Ue(),a=es(),o=cg(),s=iv(),c=av(),l=ov(),u=Bv(),f=Jv(),p=Iv(),m={beforeIteration:[],beforeItem:[`item`],beforePrerequest:[`events`,`item`],prerequest:[`executions`,`item`],beforeRequest:[`request`,`item`],request:[`response`,`request`,`item`,`cookies`,`history`],beforeTest:[`events`,`item`],test:[`executions`,`item`],item:[`item`],iteration:[],beforeScript:[`script`,`event`,`item`],script:[`execution`,`script`,`event`,`item`]},h={cli:xy(),json:Sy(),junit:nb(),progress:yb(),emojitrain:bb()},g={html:" run `npm install newman-reporter-html`\n",teamcity:" run `npm install newman-reporter-teamcity`\n"},_=`multipleIdOrName`;t.exports=function(e,t){!t&&n.isFunction(e)&&(t=e,e={}),!n.isFunction(t)&&(t=n.noop);var v=new r,y=new o.Runner,b,x;return u(e,function(e,r){if(e)return t(e);if(!n.isObject(r.collection))return t(Error(`expecting a collection to run`));var o=r.sslClientCertList||[],u=r.cookieJar||s.jar();r.sslClientCert&&o.push({name:`client-cert`,matches:[a.UrlMatchPattern.MATCH_ALL_URLS],key:{src:r.sslClientKey},cert:{src:r.sslClientCert},passphrase:r.sslClientPassphrase}),n.isArray(r.bail)&&(r.bail=n.transform(r.bail,function(e,t){e[t]=!0},{})),r.folder&&(x={execute:r.folder},n.isArray(x.execute)&&(x.lookupStrategy=_)),b=!!(r.bail!==void 0&&(r.bail===!0||n.isObject(r.bail)&&r.bail.failure)),v.summary=new l(v,r),v.exports=[],v.runner=y,y.run(r.collection,{stopOnFailure:b,abortOnFailure:r.abortOnFailure,abortOnError:n.get(r,`bail.folder`),iterationCount:r.iterationCount,environment:r.environment,globals:r.globals,entrypoint:x,data:r.iterationData,delay:{item:r.delayRequest},timeout:{global:r.timeout||0,request:r.timeoutRequest||0,script:r.timeoutScript||0},fileResolver:new c(r.workingDir,r.insecureFileRead),requester:{useWhatWGUrlParser:!0,cookieJar:u,followRedirects:n.has(r,`ignoreRedirects`)?!r.ignoreRedirects:void 0,strictSSL:n.has(r,`insecure`)?!r.insecure:void 0,timings:!!r.verbose,extendedRootCA:r.sslExtraCaCerts,agents:n.isObject(r.requestAgents)?r.requestAgents:void 0},certificates:o.length&&new a.CertificateList({},o)},function(e,a){if(e)return t(e);var o={},s=n.isString(r.reporters)?[r.reporters]:r.reporters,c={};n.forEach(m,function(e,t){o[t]=function(r,i){var a=arguments,o={cursor:i};n.forEach(e,function(e,t){o[e]=a[t+2]}),a=[t,r,o],v.emit.apply(v,a)}}),n.assignIn(o,{start(e,t){v.emit(`start`,e,{cursor:t,run:a})},console(e,t){v.emit(`console`,null,{cursor:e,level:t,messages:n.slice(arguments,2)})},exception(e,t){v.emit(`exception`,null,{cursor:e,error:t})},assertion(e,t){n.forEach(t,function(t){var r=n.get(t,`error.name`,`AssertionError`);!t&&(t={}),t.index&&(c[e.ref]=t.index),v.emit(`assertion`,t.passed?null:{name:r,index:t.index,test:t.name,message:n.get(t,`error.message`,t.name||``),stack:r+`: `+n.get(t,`error.message`,``)+`
|
|
584
584
|
at Object.eval sandbox-script.js:`+(t.index+1)+`:`+((e&&e.position||0)+1)+`)`},{cursor:e,assertion:t.name,skipped:t.skipped,error:t.error,item:a.resolveCursor(e)})})},done(e,a){if(e){v.emit(`done`,e,v.summary),t(e,v.summary);return}v.emit(`beforeDone`,null,{cursor:a,summary:v.summary}),n.forEach([`environment`,`globals`,`collection`,`cookie-jar`],function(e){var t=n.get(r,n.camelCase(`export-${e}`));t&&v.exports.push({name:e,default:`newman-${e}.json`,path:t,content:e===`cookie-jar`?u.toJSON():n(v.summary[e].toJSON()).defaults({name:e}).merge({_postman_variable_scope:e,_postman_exported_at:new Date().toISOString(),_postman_exported_using:p.userAgent}).value()})}),i(v.exports,f,function(e){v.emit(`done`,e,v.summary),t(e,v.summary)})}}),v.on(`script`,function(e,t){t&&t.event&&v.emit(t.event.listen+`Script`,e,t)}),v.on(`beforeScript`,function(e,t){t&&t.event&&v.emit(n.camelCase(`before-`+t.event.listen+`Script`),e,t)}),!v.reporters&&(v.reporters={}),n.isArray(s)&&n.forEach(s,function(e){if(!n.has(v.reporters,e)){var t;try{t=d(function(e){var t=``,n=e.charAt(0)===`@`&&e.substr(0,e.indexOf(`/`)+1);return n&&(t=n,e=e.substr(n.length)),t+`newman-reporter-`+e}(e))}catch{h[e]||(console.warn(`newman: could not find "${e}" reporter`),console.warn(` ensure that the reporter is installed in the same directory as newman`),g[e]?console.warn(g[e]):console.warn(` please install reporter using npm
|
|
585
|
-
`))}!t&&(t=h[e]);try{t&&(v.reporters[e]=new t(v,n.get(r,[`reporter`,e],{}),r))}catch(t){console.warn(`newman: could not load "${e}" reporter`),h[e]||console.warn(` this seems to be a problem in the "${e}" reporter.\n`),console.warn(t)}}}),(function(e){var t=n.keys(n.transform(e,function(e,t,n){t.dominant&&(e[n]=!0)}));t.length>1&&console.warn(`newman: ${t.join(`, `)} reporters might not work well together.`)})(v.reporters),setImmediate(function(){a.start(o)})})}),v}})),
|
|
585
|
+
`))}!t&&(t=h[e]);try{t&&(v.reporters[e]=new t(v,n.get(r,[`reporter`,e],{}),r))}catch(t){console.warn(`newman: could not load "${e}" reporter`),h[e]||console.warn(` this seems to be a problem in the "${e}" reporter.\n`),console.warn(t)}}}),(function(e){var t=n.keys(n.transform(e,function(e,t,n){t.dominant&&(e[n]=!0)}));t.length>1&&console.warn(`newman: ${t.join(`, `)} reporters might not work well together.`)})(v.reporters),setImmediate(function(){a.start(o)})})}),v}})),Sb=s(((e,t)=>{t.exports={run:xb()}})),Cb=s(((e,t)=>{t.exports=Sb()})),wb=s(((e,t)=>{let n=Q();t.exports={cast:{integer:e=>{let t=Number(e);if(!n.isSafeInteger(t)||t<=0)throw Error(`The value must be a positive integer.`);return t.valueOf()},memoize:(e,t)=>(t.push(e),t),memoizeKeyVal:(e,t)=>{let n,r=e.indexOf(`=`);return n=r===-1?{key:e,value:void 0}:{key:e.slice(0,r),value:e.slice(r+1)},t.push(n),t},csvParse:e=>n.split(e,`,`),colorOptions:e=>{if(!/^(auto|on|off)$/.test(e))throw Error(`invalid value \`${e}\` for --color. Expected: auto|on|off`);return e}},commanderToObject:e=>n.reduce(e,(e,t,r)=>(!n.startsWith(r,`_`)&&!n.includes([`commands`,`options`,`parent`],r)&&(e[r]=t),e),{}),omitNestedOptions:(e,t)=>{let r=[],i,a;for(a=0,i=e.length;a<i;a++){if(!n.startsWith(e[a],t)){r.push(e[a]);continue}e[a+1]&&!n.startsWith(e[a+1],`-`)&&++a}return r},parseNestedOptions:(e,t,r)=>{let i=[],a={_generic:{}},o,s,c,l,u;for(u=0,c=e.length;u<c;u++){let r=e[u];n.startsWith(r,t)&&(l=r.indexOf(`=`),l===-1?e[u+1]&&!n.startsWith(e[u+1],`-`)?i.push(r,e[++u]):i.push(r):i.push(r.slice(0,l),r.slice(l+1)))}for(n.forEach(r,e=>{a[e]={}}),u=0,c=i.length;u<c;u++){let e=i[u].replace(t,``);o=n.split(e,`-`,1)[0],s=n.includes(r,o)?[o,n.camelCase(e.replace(o+`-`,``))].join(`.`):[`_generic`,n.camelCase(e)].join(`.`),n.set(a,s,!i[u+1]||n.startsWith(i[u+1],`-`)?!0:i[++u])}return a}}})),Tb=s(((e,t)=>{ve();let n=Q(),r=Ee(),{Command:i}=Ne(),a=new i,o=_e().version,s=Cb(),c=wb();a.name(`newman`).addHelpCommand(!1).version(o,`-v, --version`),a.command(`run <collection>`).description(`Initiate a Postman Collection run from a given URL or path`).usage(`<collection> [options]`).option(`-e, --environment <path>`,`Specify a URL or path to a Postman Environment`).option(`-g, --globals <path>`,`Specify a URL or path to a file containing Postman Globals`).option(`-r, --reporters [reporters]`,`Specify the reporters to use for this run`,c.cast.csvParse,[`cli`]).option(`-n, --iteration-count <n>`,`Define the number of iterations to run`,c.cast.integer).option(`-d, --iteration-data <path>`,`Specify a data file to use for iterations (either JSON or CSV)`).option(`--folder <path>`,`Specify the folder to run from a collection. Can be specified multiple times to run multiple folders`,c.cast.memoize,[]).option(`--global-var <value>`,`Allows the specification of global variables via the command line, in a key=value format`,c.cast.memoizeKeyVal,[]).option(`--env-var <value>`,`Allows the specification of environment variables via the command line, in a key=value format`,c.cast.memoizeKeyVal,[]).option(`--export-environment <path>`,`Exports the final environment to a file after completing the run`).option(`--export-globals <path>`,`Exports the final globals to a file after completing the run`).option(`--export-collection <path>`,`Exports the executed collection to a file after completing the run`).option(`--postman-api-key <apiKey>`,`API Key used to load the resources from the Postman API`).option(`--bail [modifiers]`,`Specify whether or not to gracefully stop a collection run on encountering an error and whether to end the run with an error based on the optional modifier`,c.cast.csvParse).option(`--ignore-redirects`,`Prevents Newman from automatically following 3XX redirect responses`).option(`-x , --suppress-exit-code`,`Specify whether or not to override the default exit code for the current run`).option(`--silent`,`Prevents Newman from showing output to CLI`).option(`--disable-unicode`,`Forces Unicode compliant symbols to be replaced by their plain text equivalents`).option(`--color <value>`,`Enable/Disable colored output (auto|on|off)`,c.cast.colorOptions,`auto`).option(`--delay-request [n]`,`Specify the extent of delay between requests (milliseconds)`,c.cast.integer,0).option(`--timeout [n]`,`Specify a timeout for collection run (milliseconds)`,c.cast.integer,0).option(`--timeout-request [n]`,`Specify a timeout for requests (milliseconds)`,c.cast.integer,0).option(`--timeout-script [n]`,`Specify a timeout for scripts (milliseconds)`,c.cast.integer,0).option(`--working-dir <path>`,`Specify the path to the working directory`).option(`--no-insecure-file-read`,`Prevents reading the files situated outside of the working directory`).option(`-k, --insecure`,`Disables SSL validations`).option(`--ssl-client-cert-list <path>`,`Specify the path to a client certificates configurations (JSON)`).option(`--ssl-client-cert <path>`,`Specify the path to a client certificate (PEM)`).option(`--ssl-client-key <path>`,`Specify the path to a client certificate private key`).option(`--ssl-client-passphrase <passphrase>`,`Specify the client certificate passphrase (for protected key)`).option(`--ssl-extra-ca-certs <path>`,`Specify additionally trusted CA certificates (PEM)`).option(`--cookie-jar <path>`,`Specify the path to a custom cookie jar (serialized tough-cookie JSON) `).option(`--export-cookie-jar <path>`,`Exports the cookie jar to a file after completing the run`).option(`--verbose`,`Show detailed information of collection run and each request sent`).action((e,t)=>{let r=c.commanderToObject(t),i=c.parseNestedOptions(a._originalArgs,`--reporter-`,r.reporters);r.collection=e,r.reporterOptions=i._generic,r.reporter=n.transform(n.omit(i,`_generic`),(e,t,r)=>{e[r]=n.assignIn(t,i._generic)},{}),s.run(r,function(e,t){let i=e||t.run.error||t.run.failures.length;e&&(console.error(`error: ${e.message||e}\n`),e.friendly&&console.error(` ${e.friendly}\n`)),i&&!n.get(r,`suppressExitCode`)&&(process.exitCode=1)})}),a.addHelpText(`after`,`
|
|
586
586
|
To get available options for a command:
|
|
587
|
-
newman <command> -h`),a.on(`command:*`,e=>{console.error(`error: invalid command \`${e}\`\n`),a.help()});function l(e,t){r([t=>{a._originalArgs=e,t(null,c.omitNestedOptions(e,`--reporter-`))},(e,t)=>{let n=null;try{a.parse(e)}catch(e){n=e}t(n)},e=>{e(a.args.length?null:Error(`no arguments provided`))}],e=>{if(t)return t(e);e&&(console.error(`error: ${e.message||e}\n`),a.help())})}!t.parent&&l(process.argv),t.exports=l}));export default
|
|
587
|
+
newman <command> -h`),a.on(`command:*`,e=>{console.error(`error: invalid command \`${e}\`\n`),a.help()});function l(e,t){r([t=>{a._originalArgs=e,t(null,c.omitNestedOptions(e,`--reporter-`))},(e,t)=>{let n=null;try{a.parse(e)}catch(e){n=e}t(n)},e=>{e(a.args.length?null:Error(`no arguments provided`))}],e=>{if(t)return t(e);e&&(console.error(`error: ${e.message||e}\n`),a.help())})}!t.parent&&l(process.argv),t.exports=l}));export default Tb();export{};
|