postman-runtime
Version:
Underlying library of executing Postman Collections
1 lines • 4.79 MB
JavaScript
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PostmanRuntime=e()}}((function(){return function e(t,n,a){function r(o,s){if(!n[o]){if(!t[o]){var c="function"==typeof require&&require;if(!s&&c)return c(o,!0);if(i)return i(o,!0);var u=new Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[o]={exports:{}};t[o][0].call(l.exports,(function(e){return r(t[o][1][e]||e)}),l,l.exports,e,t,n,a)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<a.length;o++)r(a[o]);return r}({1:[function(e,t,n){t.exports=e("./lib")},{"./lib":18}],2:[function(e,t,n){var a=e("lodash"),r={header:"header",query:"query"};t.exports={manifest:{info:{name:"apikey",version:"0.0.1"},updates:[{property:"*",type:"header"},{property:"*",type:"url.param"}]},init:function(e,t,n){n()},pre:function(e,t){return t(null,Boolean(e.get("key")||e.get("value")))},post:function(e,t,n){n(null,!0)},sign:function(e,t,n){var i=r[e.get("in")]||r.header,o=e.get("key"),s=e.get("value"),c=a.lowerCase(o);return o||s?(i===r.header?(t.headers.remove((function(e){return e&&a.lowerCase(e.key)===c})),t.headers.add({key:o,value:s,system:!0})):i===r.query&&(t.url.query.remove((function(e){return e&&e.key===o})),t.url.query.add({key:o,value:s,system:!0})),n()):n()}}},{lodash:427}],3:[function(e,t,n){var a=e("jose"),r=e("uuid"),i=e("node-forge"),o="Authorization",s=["alg","kid","iss","exp","aud","sub","privateKey","claims"],c={RS256:"RS256",RS384:"RS384",RS512:"RS512",PS256:"PS256",PS384:"PS384",PS512:"PS512",ES256:"ES256",ES384:"ES384",ES512:"ES512"},u=/^data:application\/pkcs8;kid=([\w.\-\+/]+);base64,([a-zA-Z0-9+/=]+)$/;t.exports={manifest:{info:{name:"asap",version:"1.0.0"},updates:[{property:o,type:"header"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,!0)},post:function(e,t,n){n(null,!0)},sign:function(e,t,n){var l,p,d,h,f,m,g,y,v,b,x,w=e.get(s),k=w.claims||{};if("string"==typeof k){const e=k.trim();try{k=e&&JSON.parse(e)}catch(_){return n(new Error("Failed to parse claims"))}}if(l=k.iss||w.iss,p=k.sub||w.sub||l,d=k.aud||w.aud,h=k.jti||r.v4(),f=Math.floor(Date.now()/1e3),m=k.iat||f,g=w.exp&&parseInt(w.exp,10)||3600,y=k.exp&&parseInt(k.exp,10)||f+g,v=w.privateKey,b=k.kid||w.kid,x=w.alg||"RS256",!(b&&l&&d&&h&&v&&b))return n(new Error("One or more of required claims missing"));if(!c[x])return n(new Error("invalid algorithm"));if("string"!=typeof v)return n(new Error("privateKey must be a string"));try{v=v.replace(/\n/g,""),v=function(e,t){t=t.replace(/^"(.*)"$/,"$1");var n,a,r,o,s,c,l,p,d=decodeURIComponent(t);if(!d.startsWith("data:"))return d;if(!(n=u.exec(d)))throw new Error("Malformed Data URI");if(e!==n[1])throw new Error("Supplied key id does not match the one included in data uri.");return a=i.util.decode64(n[2]),r=i.asn1.fromDer(a),o=i.pki.privateKeyFromAsn1(r),s=i.pki.privateKeyToPem(o).toString("base64").trim(),c=i.pki.privateKeyFromPem(s),p=i.pki.privateKeyToAsn1(c),l=i.pki.wrapRsaPrivateKey(p),i.pki.privateKeyInfoToPem(l).toString("base64").trim()}(b,v)}catch(_){return n(new Error("Failed to parse private key."))}a.importPKCS8(v,x).then((e=>new a.SignJWT(k).setProtectedHeader({alg:x,kid:b}).setIssuedAt(m).setIssuer(l).setSubject(p).setJti(h).setAudience(d).setExpirationTime(y).sign(e))).then((e=>(t.removeHeader(o,{ignoreCase:!0}),t.addHeader({key:o,value:"Bearer "+e,system:!0}),n()))).catch((()=>{n(new Error("Failed to sign request with key."))}))}}},{jose:419,"node-forge":449,uuid:674}],4:[function(e,t,n){var a,r=e("lodash");a=function(e,t,n){if(!(e&&e.parameters&&e.parameters()))throw new Error("runtime~createAuthInterface: invalid auth");return{_protocolProfileBehavior:t||{},get:function(t){var a;return r.isString(t)?"refreshOAuth2Token"===t?n&&n.refreshOAuth2Token:(a=e.parameters().one(t))&&a.get():r.isArray(t)?r.transform(t,(function(t,r){return"refreshOAuth2Token"===r?(t[r]=n&&n.refreshOAuth2Token,t):((a=e.parameters().one(r))&&(t[r]=a.get()),t)}),{}):void 0},set:function(t,n,a){var i,o={};if(r.isObject(t))o=t;else{if(!r.isString(t))throw new Error("runtime~AuthInterface: set should be called with `key` as a string or object");o[t]=n}return i=e.parameters(),r.forEach(o,(function(e,t){var n=i.one(t);return a&&(n.system=!0),n?n.system||""===n.value||r.isNil(n.value)||r.isNaN(n.value)?n.update({key:t,value:e,system:!0}):void 0:i.add({key:t,value:e,system:!0})})),this}}},t.exports=a},{lodash:427}],5:[function(e,t,n){var a=e("lodash"),r=e("aws4"),i=e("crypto"),o=e("postman-collection"),s=e("postman-url-encoder"),c=e("../requester/core-body-builder"),u=o.RequestBody,l="X-Amz-Content-Sha256";t.exports={manifest:{info:{name:"awsv4",version:"1.0.0"},updates:[{property:"Host",type:"header"},{property:"Authorization",type:"header"},{property:"X-Amz-Date",type:"header"},{property:"X-Amz-Security-Token",type:"header"},{property:"X-Amz-Content-Sha256",type:"header"},{property:"X-Amz-Security-Token",type:"url.param"},{property:"X-Amz-Expires",type:"url.param"},{property:"X-Amz-Date",type:"url.param"},{property:"X-Amz-Algorithm",type:"url.param"},{property:"X-Amz-Credential",type:"url.param"},{property:"X-Amz-SignedHeaders",type:"url.param"},{property:"X-Amz-Signature",type:"url.param"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,!0)},post:function(e,t,n){n(null,!0)},addAuthDataToRequest:function(e,t){var n=r.sign(t,t.credentials);t.signQuery&&a.forEach(o.Url.parse(n.path).query,(function(t){a.startsWith(t.key,"X-Amz-")&&!e.url.query.has(t.key)&&(t.system=!0,e.url.query.add(t))})),a.forEach(n.headers,(function(t,n){e.upsertHeader({key:n,value:t,system:!0})}))},sign:function(e,t,n){var r,o=this,p=e.get(["accessKey","secretKey","sessionToken","service","region","addAuthDataToQuery"]),d=s.toNodeUrl(t.url);if(t.removeHeader("Authorization",{ignoreCase:!0}),t.removeHeader("X-Amz-Date",{ignoreCase:!0}),t.removeHeader("X-Amz-Security-Token",{ignoreCase:!0}),t.removeHeader("X-Amz-Content-Sha256",{ignoreCase:!0}),t.removeQueryParams(["X-Amz-Security-Token","X-Amz-Date","X-Amz-Algorithm","X-Amz-Credential","X-Amz-SignedHeaders","X-Amz-Signature"]),r={credentials:{accessKeyId:p.accessKey,secretAccessKey:p.secretKey,sessionToken:p.sessionToken||void 0},host:d.host,path:d.path,service:p.service||"execute-api",region:p.region||"us-east-1",method:t.method,body:void 0,headers:a.transform(t.getHeaders({enabled:!0}),(function(e,t,n){e[n]=t}),{}),signQuery:p.addAuthDataToQuery},p.addAuthDataToQuery)return o.addAuthDataToRequest(t,r),n();!function(e,t,n,r){if(!(e&&t&&n)||e.isEmpty())return r();var o,l,p,d,h=i.createHash(t);e.mode===u.MODES.raw?(l=c.raw(e.raw).body,h.update(l),r(h.digest(n))):e.mode===u.MODES.urlencoded?(p=c.urlencoded(e.urlencoded).form,p=s.encodeQueryString(p),h.update(p),r(h.digest(n))):e.mode===u.MODES.file?(o=a.get(e,"file.content"))?o.cloneReadStream((function(e,t){if(e)return r();t.on("data",(function(e){h.update(e)})),t.on("end",(function(){r(h.digest(n))}))})):r():e.mode===u.MODES.graphql?(d=c.graphql(e.graphql).body,h.update(d),r(h.digest(n))):r()}(t.body,"sha256","hex",(function(e){return e&&(t.upsertHeader({key:l,value:e,system:!0}),r.headers[l]=e),o.addAuthDataToRequest(t,r),n()}))}}},{"../requester/core-body-builder":20,aws4:235,crypto:300,lodash:427,"postman-collection":495,"postman-url-encoder":546}],6:[function(e,t,n){(function(e){(function(){t.exports={manifest:{info:{name:"basic",version:"1.0.0"},updates:[{property:"Authorization",type:"header"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,!0)},post:function(e,t,n){n(null,!0)},sign:function(t,n,a){var r=t.get("username")||"",i=t.get("password")||"";return n.removeHeader("Authorization",{ignoreCase:!0}),n.addHeader({key:"Authorization",value:"Basic "+e.from(`${r}:${i}`,"utf8").toString("base64"),system:!0}),a()}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:287}],7:[function(e,t,n){t.exports={manifest:{info:{name:"bearer",version:"1.0.0"},updates:[{property:"Authorization",type:"header"}]},init:function(e,t,n){n()},pre:function(e,t){return t(null,Boolean(e.get("token")))},post:function(e,t,n){n(null,!0)},sign:function(e,t,n){var a=e.get("token");return a?(t.removeHeader("Authorization",{ignoreCase:!0}),t.addHeader({key:"Authorization",value:"Bearer "+a,system:!0}),n()):n()}}},{}],8:[function(e,t,n){var a,r,i,o=e("lodash"),s=e("crypto"),c=e("postman-url-encoder"),u=e("postman-collection").RequestBody,l=e("../requester/core-body-builder"),p="00000001",d="Digest ",h="auth",f=":",m='"',g="auth-int",y="Authorization",v="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",b="MD5",x="MD5-sess",w="SHA-256",k="SHA-256-sess",_="SHA-512-256",j="SHA-512-256-sess",S=["algorithm","username","realm","password","method","nonce","nonceCount","clientNonce","opaque","qop","uri"],E=/nonce="([^"]*)"/i,A=/realm="([^"]*)"/i,C=/qop="([^"]*)"/i,T=/opaque="([^"]*)"/i;function M(e,t){return s.createHash(t).update(e||"").digest("hex")}o.includes(s.getHashes(),"sha512-256")||(r=e("js-sha512").sha512_256,i=s,s=function(){this._hash=r.create()},o.assign(s.prototype,{update(e){return this._hash.update(e),this},digest(){return this._hash.hex()}}),o.assign(s,{createHash:e=>"sha512-256"===e?new s:i.createHash(e)})),a=function(e,t){var n=e.match(t);return n?n[1]:""},t.exports={manifest:{info:{name:"digest",version:"1.0.0"},updates:[{property:"Authorization",type:"header"},{property:"nonce",type:"auth"},{property:"realm",type:"auth"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,Boolean(e.get("nonce")&&e.get("realm")))},post:function(e,t,n){if(e.get("disableRetryRequest")||!t)return n(null,!0);var r,i,s,c,u,l,h,f={};if(r=t.code,i=e.get("nonceCount"),h=t.headers.find((function(e){return"www-authenticate"===e.key.toLowerCase()&&o.startsWith(String(e.value).toLowerCase(),d.toLowerCase())})),(401===r||403===r)&&h)return c=a(h.value,E),s=a(h.value,A),u=a(h.value,C),l=a(h.value,T),f.nonce=c,f.realm=s,l&&(f.opaque=l),u&&(f.qop=u),(f.qop||e.get("qop"))&&(f.clientNonce=function(e){e=e||6;var t,n=[];for(t=0;t<e;t++)n[t]=v[62*Math.random()|0];return n.join("")}(8),f.nonceCount=p),o.every(f,(function(t,n){return e.get(n)}))?n(null,!0):(e.set(f),n(null,!1));e.set("nonceCount",function(e){const t=o.parseInt(e);return o.isNaN(t)?p:o.padStart((t+1).toString(),8,"0")}(i)),n(null,!0)},computeHeader:function(e){var t,n,a,r,i,s,c=e.algorithm,u=e.hashAlgo,l=e.username,p=e.realm,y=e.password,v=e.method,b=e.nonce,x=e.nonceCount,w=e.clientNonce,k=e.opaque,_=e.qop,j=e.uri;return t=o.endsWith(c,"-sess")?M(l+f+p+f+y,u)+f+b+f+w:l+f+p+f+y,n=_===g?v+f+j+f+e.bodyhash:v+f+j,a=M(t,u),r=M(n,u),i=M(_===h||_===g?[a,b,x,w,_,r].join(f):[a,b,r].join(f),u),s=['username="'+l+m,'realm="'+p+m,'nonce="'+b+m,'uri="'+j+m],c&&s.push('algorithm="'+c+m),_!==h&&_!==g||s.push("qop="+_),_!==h&&_!==g&&"MD5-sess"!==c||(x&&s.push("nc="+x),s.push('cnonce="'+w+m)),s.push('response="'+i+m),k&&s.push('opaque="'+k+m),d+s.join(", ")},sign:function(e,t,n){var a,r=this,i=e.get(S),p=c.toNodeUrl(t.url);if(!i.username||!i.realm)return n();switch(t.removeHeader(y,{ignoreCase:!0}),i.method=t.method,i.uri=p.path,i.algorithm){case w:case k:i.hashAlgo="sha256";break;case b:case x:case"":case void 0:case null:i.algorithm=i.algorithm||b,i.hashAlgo="md5";break;case _:case j:i.hashAlgo="sha512-256";break;default:return n(new Error(`Unsupported digest algorithm: ${i.algorithm}`))}return i.qop===g?function(e,t,n,a){if(!t||!n)return a();var r,i,p,d,h=s.createHash(t);return!e||e.isEmpty()?a(h.digest(n)):e.mode===u.MODES.raw?(i=l.raw(e.raw).body,h.update(i),a(h.digest(n))):e.mode===u.MODES.urlencoded?(d=l.urlencoded(e.urlencoded).form,d=c.encodeQueryString(d),h.update(d),a(h.digest(n))):e.mode===u.MODES.file?(r=o.get(e,"file.content"))?r.cloneReadStream((function(e,t){if(e)return a();t.on("data",(function(e){h.update(e)})),t.on("end",(function(){a(h.digest(n))}))})):a():e.mode===u.MODES.graphql?(p=l.graphql(e.graphql).body,h.update(p),a(h.digest(n))):a()}(t.body,i.hashAlgo,"hex",(function(e){return i.bodyhash=e,a=r.computeHeader(i),t.addHeader({key:y,value:a,system:!0}),n()})):(a=r.computeHeader(i),t.addHeader({key:y,value:a,system:!0}),n())}}},{"../requester/core-body-builder":20,crypto:300,"js-sha512":421,lodash:427,"postman-collection":495,"postman-url-encoder":546}],9:[function(e,t,n){(function(n){(function(){var a=e("lodash"),r=e("uuid"),i=e("crypto"),o=e("postman-collection").RequestBody,s=e("postman-url-encoder"),c=e("../requester/core-body-builder"),u="0",l="string",p="Authorization",d=function(e,t){var n=i.createHmac("sha256",t);return n.update(e),n.digest("base64")},h=function(e,t){return!e||t<=0?"":(n.isBuffer(e)||(e=n.from(e)),e.byteLength>t&&(e=e.subarray(0,t)),e)};t.exports={manifest:{info:{name:"edgegrid",version:"1.0.0"},updates:[{property:"Authorization",type:"header"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,Boolean(e.get("accessToken")&&e.get("clientToken")&&e.get("clientSecret")))},post:function(e,t,n){n(null,!0)},computeHeader:function(e){var t,n,r,i,o,s="EG1-HMAC-SHA256 ",c=d(e.timestamp,e.clientSecret);return s+=`client_token=${e.clientToken};`,s+=`access_token=${e.accessToken};`,s+=`timestamp=${e.timestamp};`,s+=`nonce=${e.nonce};`,t=[e.method,a.trimEnd(e.url.protocol,":"),e.baseURL||e.url.host,e.url.path||"/",(n=e.headersToSign,r=e.headers,o=[],n.forEach((function(e){typeof e===l&&(e=e.trim().toLowerCase(),typeof(i=r[e])===l&&""!==i&&o.push(`${e}:${i.trim().replace(/\s+/g," ")}`))})),o.join("\t")),e.bodyHash||"",s].join("\t"),s+"signature="+d(t,c)},sign:function(e,t,n){var d,f=e.get(["accessToken","maxBodySize","clientToken","clientSecret","baseURL","nonce","timestamp","headersToSign"]),m=s.toNodeUrl(t.url),g=this;return f.accessToken&&f.clientToken&&f.clientSecret?(t.removeHeader(p,{ignoreCase:!0}),f.baseURL=f.baseURL&&s.toNodeUrl(f.baseURL).host,f.nonce=f.nonce||r.v4(),f.timestamp=f.timestamp||(d=new Date).getUTCFullYear()+a.padStart(d.getUTCMonth()+1,2,u)+a.padStart(d.getUTCDate(),2,u)+"T"+a.padStart(d.getUTCHours(),2,u)+":"+a.padStart(d.getUTCMinutes(),2,u)+":"+a.padStart(d.getUTCSeconds(),2,u)+"+0000",f.url=m,f.method=t.method,f.maxBodySize=f.maxBodySize||131072,f.headers=t.getHeaders({enabled:!0,ignoreCase:!0}),typeof f.headersToSign===l?f.headersToSign=f.headersToSign.split(","):a.isArray(f.headersToSign)||(f.headersToSign=[]),"POST"===t.method?function(e,t,n,r,u){if(!(e&&t&&n)||e.isEmpty())return u();var l,p,d,f,m=i.createHash(t);return e.mode===o.MODES.raw?(p=c.raw(e.raw).body,m.update(h(p,r)),u(m.digest(n))):e.mode===o.MODES.urlencoded?(d=c.urlencoded(e.urlencoded).form,d=s.encodeQueryString(d),m.update(h(d,r)),u(m.digest(n))):e.mode===o.MODES.file?(l=a.get(e,"file.content"))?l.cloneReadStream((function(e,t){if(e)return u();let a=0;t.on("data",(function(e){a<=r&&(m.update(h(e,r-a)),a+=e.byteLength)})),t.on("end",(function(){u(m.digest(n))}))})):u():e.mode===o.MODES.graphql?(f=c.graphql(e.graphql).body,m.update(h(f,r)),u(m.digest(n))):u()}(t.body,"sha256","base64",f.maxBodySize,(function(e){return f.bodyHash=e,t.addHeader({key:p,value:g.computeHeader(f),system:!0}),n()})):(t.addHeader({key:p,value:g.computeHeader(f),system:!0}),n())):n()}}}).call(this)}).call(this,e("buffer").Buffer)},{"../requester/core-body-builder":20,buffer:287,crypto:300,lodash:427,"postman-collection":495,"postman-url-encoder":546,uuid:674}],10:[function(e,t,n){var a=e("url"),r=e("lodash"),i=e("crypto"),o=e("postman-request/lib/hawk"),s=e("postman-collection").RequestBody,c=e("../requester/core-body-builder"),u=e("postman-url-encoder"),l="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",p="Authorization";t.exports={manifest:{info:{name:"hawk",version:"1.0.0"},updates:[{property:"Authorization",type:"header"},{property:"nonce",type:"auth"},{property:"timestamp",type:"auth"}]},init:function(e,t,n){n(null)},pre:function(e,t){!e.get("nonce")&&e.set("nonce",function(e){e=e||6;var t,n=[];for(t=0;t<e;t++)n[t]=l[62*Math.random()|0];return n.join("")}(6)),!r.parseInt(e.get("timestamp"))&&e.set("timestamp",Math.floor(Date.now()/1e3)),t(null,!0)},post:function(e,t,n){n(null,!0)},computeHeader:function(e){return o.header(a.parse(e.url),e.method,e)},sign:function(e,t,n){var a=e.get(["authId","authKey","algorithm","nonce","timestamp","extraData","app","delegation","user","includePayloadHash"]),o=t.headers.get("content-type"),l=this,d=function(e){var r=u.toNodeUrl(t.url),i=l.computeHeader({credentials:{id:a.authId,key:a.authKey,algorithm:a.algorithm},nonce:a.nonce,timestamp:a.timestamp,ext:a.extraData,app:a.app,dlg:a.delegation,user:a.user,url:r.href,method:t.method,hash:e});return t.addHeader({key:p,value:i,system:!0}),n()};return a.authId&&a.authKey?(t.removeHeader(p,{ignoreCase:!0}),a.includePayloadHash?void function(e,t,n,a,o){if(!(e&&t&&n)||e.isEmpty())return o();var l,p,d,h,f=i.createHash(t);f.update("hawk.1.payload\n"),f.update((a?a.split(";")[0].trim().toLowerCase():"")+"\n"),e.mode===s.MODES.raw?(p=c.raw(e.raw).body,f.update(p),f.update("\n"),o(f.digest(n))):e.mode===s.MODES.urlencoded?(d=c.urlencoded(e.urlencoded).form,d=u.encodeQueryString(d),f.update(d),f.update("\n"),o(f.digest(n))):e.mode===s.MODES.file?(l=r.get(e,"file.content"))?l.cloneReadStream((function(e,t){if(e)return o();t.on("data",(function(e){f.update(e)})),t.on("end",(function(){f.update("\n"),o(f.digest(n))}))})):o():e.mode===s.MODES.graphql?(h=c.graphql(e.graphql).body,f.update(h),f.update("\n"),o(f.digest(n))):o()}(t.body,a.algorithm,"base64",o,d):d()):n()}}},{"../requester/core-body-builder":20,crypto:300,lodash:427,"postman-collection":495,"postman-request/lib/hawk":533,"postman-url-encoder":546,url:668}],11:[function(e,t,n){var a,r,i=e("lodash"),o=e("postman-collection"),s=e("./auth-interface");a={handlers:{},getHandler:function(e){return a.handlers[e]},addHandler:function(e,t){if(!i.isFunction(e.init))throw new Error('The handler for "'+t+'" does not have an "init" function, which is necessary');if(!i.isFunction(e.pre))throw new Error('The handler for "'+t+'" does not have a "pre" function, which is necessary');if(!i.isFunction(e.post))throw new Error('The handler for "'+t+'" does not have a "post" function, which is necessary');if(!i.isFunction(e.sign))throw new Error('The handler for "'+t+'" does not have a "sign" function, which is necessary');Object.defineProperty(e,"__auth_type",{value:t,configurable:!1,enumerable:!1,writable:!1}),a.handlers[t]=e},removeHandler:function(e){a.handlers[e]&&delete a.handlers[e]}},i.forEach({noauth:e("./noauth"),awsv4:e("./aws4"),basic:e("./basic"),bearer:e("./bearer"),digest:e("./digest"),hawk:e("./hawk"),oauth1:e("./oauth1"),oauth2:e("./oauth2"),asap:e("./asap"),ntlm:e("./ntlm"),apikey:e("./apikey"),edgegrid:e("./edgegrid"),jwt:e("./jwt")},a.addHandler),r=function(e,t){if(!e.auth)return t();var n=new o.Request(e.toJSON()),r=n.auth,i=s(r),c=a.getHandler(r.type);if(!c)return t(new Error("runtime~authorizeRequest: could not find handler for auth type "+r.type));c.sign(i,n,(function(){return t(null,n)}))},t.exports={AuthLoader:a,authorizeRequest:r}},{"./apikey":2,"./asap":3,"./auth-interface":4,"./aws4":5,"./basic":6,"./bearer":7,"./digest":8,"./edgegrid":9,"./hawk":10,"./jwt":12,"./noauth":13,"./ntlm":14,"./oauth1":15,"./oauth2":16,lodash:427,"postman-collection":495}],12:[function(e,t,n){(function(n){(function(){const a=e("lodash"),r=e("jose"),i="algorithm",o="header",s="payload",c="secret",u="isSecretBase64Encoded",l="privateKey",p="addTokenTo",d="headerPrefix",h="queryParamKey",f="header",m="queryParam",g="Authorization",y={HS256:"HS256",HS384:"HS384",HS512:"HS512"},v={...y,RS256:"RS256",RS384:"RS384",RS512:"RS512",PS256:"PS256",PS384:"PS384",PS512:"PS512",ES256:"ES256",ES384:"ES384",ES512:"ES512"};function b(e,t,n){const r=e.get(p)||f,i=e.get(h)||"token";if(r===f){t.removeHeader(g,{ignoreCase:!0});let r=e.get(d);r=a.isNil(r)?"Bearer":r,r&&(r+=" "),t.addHeader({key:g,value:r+n,system:!0})}else r===m&&(t.url.query.remove((function(e){return e&&e.key===i})),t.url.query.add({key:i,value:n,system:!0}))}t.exports={manifest:{info:{name:"jwt",version:"1.0.0"},updates:[{property:"Authorization",type:"header"},{property:"*",type:"url.param"}]},init:function(e,t,n){n()},pre:function(e,t){return t(null,!0)},post:function(e,t,n){n(null,!0)},sign:function(e,t,p){const d=e.get(i),h=e.get(c),f=e.get(l),m=y[d];if(!v[d])return p(new Error("invalid algorithm"));if(m&&(!h||!a.isString(h)))return p(new Error("Invalid secret key. Enter a valid key."));if(!(m||f&&a.isString(f)))return p(new Error("Invalid private key. Enter a valid key."));try{const a=e.get(o),i=e.get(s);let c=a,l=i;if("string"==typeof a){const e=a.trim();c=e&&JSON.parse(e)}if(c=c?{...c,alg:d}:{alg:d},"string"==typeof i){const e=i.trim();l=e?JSON.parse(e):{}}if(m){const a=e.get(u),i=n.from(h,a?"base64":"utf8");new r.SignJWT(l).setProtectedHeader(c).sign(new Uint8Array(i)).then((n=>(b(e,t,n),p()))).catch((e=>{p(e)}))}else r.importPKCS8(f,d).then((e=>new r.SignJWT(l).setProtectedHeader(c).sign(e))).then((n=>(b(e,t,n),p()))).catch((e=>{p(e)}))}catch(g){p(g)}}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:287,jose:419,lodash:427}],13:[function(e,t,n){t.exports={manifest:{info:{name:"noauth",version:"1.0.0"},updates:[]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,!0)},post:function(e,t,n){n(null,!0)},sign:function(e,t,n){return n()}}},{}],14:[function(e,t,n){var a=e("httpntlm").ntlm,r=e("lodash"),i="",o="NTLM",s="state",c="ntlmHeader",u="Authorization",l="www-authenticate",p="domain",d="workstation",h="username",f="password",m="INITIALIZED",g="T1_MSG_CREATED",y="T3_MSG_CREATED";t.exports={manifest:{info:{name:"ntlm",version:"1.0.0"},updates:[{property:"Authorization",type:"header"}]},init:function(e,t,n){n(null)},pre:function(e,t){e.get(s)||(e.set(s,m),e.set(c,void 0)),t(null,!0)},post:function(e,t,n){if(e.get("disableRetryRequest"))return n(null,!0);var u,v,b,x,w,k,_=e.get(s),j=e.get(p)||i,S=e.get(d)||i,E=e.get(h)||i,A=e.get(f)||i,C=function(t){return e.set(s,m),e.set(c,void 0),n(t||null,!0)};return 401!==t.code&&403!==t.code?C():(j||(w=function(e){var t,n;return e&&"string"==typeof e?(t=e.split("\\"),n=e.split("@"),t.length>1&&n.length>1?{username:e,domain:i}:2===t.length&&t[0]&&t[1]?{username:t[1],domain:t[0]}:2===n.length&&n[0]&&n[1]?{username:n[0],domain:n[1]}:{username:e,domain:i}):{username:i,domain:i}}(E)||{},E=w.username,j=w.domain),_===m?(k=t.headers).has(l,o)||k.has(l,"negotiate")||String(k.get(l)).includes(o)?(u=a.createType1Message({domain:j,workstation:S}),e.set(c,u),e.set(s,g),n(null,!1)):C():_===g?(x=t.headers.find((function(e){return String(e.key).toLowerCase()===l&&e.valueOf().startsWith("NTLM ")})))?(v=a.parseType2Message(x.valueOf(),r.noop))?(b=a.createType3Message(v,{domain:j,workstation:S,username:E,password:A}),e.set(c,b),e.set(s,y),n(null,!1)):C(new Error("ntlm: server did not correctly process authentication request")):C(new Error("ntlm: server did not send NTLM type 2 message")):C())},sign:function(e,t,n){var a=e.get(c);return t.removeHeader(u,{ignoreCase:!0}),a&&t.addHeader({key:u,value:a,system:!0}),n()}}},{httpntlm:389,lodash:427}],15:[function(e,t,n){var a=e("lodash"),r=e("crypto"),i=e("node-oauth1"),o=e("postman-url-encoder"),s=e("postman-collection").RequestBody,c=e("../requester/core-body-builder"),u="://",l={oauthConsumerKey:"oauth_consumer_key",oauthToken:"oauth_token",oauthSignatureMethod:"oauth_signature_method",oauthTimestamp:"oauth_timestamp",oauthNonce:"oauth_nonce",oauthVersion:"oauth_version",oauthSignature:"oauth_signature",oauthCallback:"oauth_callback",oauthVerifier:"oauth_verifier",oauthBodyHash:"oauth_body_hash"};function p(e){var t=e.port?e.port:void 0,n=("80"===t||"443"===t||void 0===t)&&e.hostname||e.host,r=e.path,i=a.trimEnd(e.protocol||"http",u);return(i=a.endsWith(i,u)?i:i+u).toLowerCase()+n.toLowerCase()+r}t.exports={manifest:{info:{name:"oauth1",version:"1.0.0"},updates:[{property:"Authorization",type:"header"},{property:l.oauthConsumerKey,type:"url.param"},{property:l.oauthToken,type:"url.param"},{property:l.oauthCallback,type:"url.param"},{property:l.oauthVerifier,type:"url.param"},{property:l.oauthBodyHash,type:"url.param"},{property:l.oauthSignatureMethod,type:"url.param"},{property:l.oauthTimestamp,type:"url.param"},{property:l.oauthNonce,type:"url.param"},{property:l.oauthVersion,type:"url.param"},{property:l.oauthSignature,type:"url.param"},{property:l.oauthConsumerKey,type:"body.urlencoded"},{property:l.oauthToken,type:"body.urlencoded"},{property:l.oauthCallback,type:"body.urlencoded"},{property:l.oauthVerifier,type:"body.urlencoded"},{property:l.oauthSignatureMethod,type:"body.urlencoded"},{property:l.oauthTimestamp,type:"body.urlencoded"},{property:l.oauthNonce,type:"body.urlencoded"},{property:l.oauthVersion,type:"body.urlencoded"},{property:l.oauthSignature,type:"body.urlencoded"}]},init:function(e,t,n){n(null)},pre:function(e,t){t(null,!0)},post:function(e,t,n){n(null,!0)},addAuthDataToRequest:function(e,t,n,r){var c,u,d,h,f,m,g,y=o.toNodeUrl(e.url),v={consumerSecret:t.consumerSecret||"",tokenSecret:t.tokenSecret||"",privateKey:t.privateKey||""},b=n&&n.disableUrlEncoding;c=[{system:!0,key:l.oauthConsumerKey,value:t.consumerKey},{system:!0,key:l.oauthToken,value:t.token},{system:!0,key:l.oauthSignatureMethod,value:t.signatureMethod},{system:!0,key:l.oauthTimestamp,value:t.timestamp},{system:!0,key:l.oauthNonce,value:t.nonce},{system:!0,key:l.oauthVersion,value:t.version}],t.bodyHash&&c.push({system:!0,key:l.oauthBodyHash,value:t.bodyHash}),t.callback&&c.push({system:!0,key:l.oauthCallback,value:t.callback}),t.verifier&&c.push({system:!0,key:l.oauthVerifier,value:t.verifier}),c=a.filter(c,(function(e){return t.addEmptyParamsToSign||e.value})),d=(u=e.body&&e.body.mode===s.MODES.urlencoded&&e.body.urlencoded)?u.filter((function(e){return!e.disabled})):[],h=[].concat(c,d),m={action:p(y),method:e.method,parameters:a.map(h,(function(e){return[e.key,e.value]}))};try{f=i.SignatureMethod.sign(m,v)}catch(x){return r(x)}!0!==b&&function(e,t){if(!t.query)return;const n=i.decodeForm(t.query);e.url.query.clear(),a.forEach(n,(function(t){e.url.query.add({key:t[0]&&i.percentEncode(t[0]),value:t[1]&&i.percentEncode(t[1])})}))}(e,y),c.push({system:!0,key:l.oauthSignature,value:f}),t.addParamsToHeader?(g=i.getAuthorizationHeader(t.realm,a.map(c,(function(e){return[e.key,e.value]})),t.disableHeaderEncoding),e.addHeader({key:"Authorization",value:g,system:!0})):/PUT|POST/.test(e.method)&&u?a.forEach(c,(function(e){u.add(e)})):!0===b?e.addQueryParams(c):a.forEach(c,(function(t){e.url.query.add({key:t.key&&i.percentEncode(t.key),value:t.value&&i.percentEncode(t.value),system:!0})})),r()},sign:function(e,t,n){var o,u,p=this,d=e.get(["consumerKey","consumerSecret","token","tokenSecret","privateKey","signatureMethod","callback","verifier","timestamp","nonce","version","realm","includeBodyHash","addParamsToHeader","addEmptyParamsToSign","disableHeaderEncoding"]),h=t.body,f=e._protocolProfileBehavior;return u=a.split(d.signatureMethod,"-"),o=a.upperCase(u[0]),u=u[1],!d.consumerKey||"RSA"!==o&&!d.consumerSecret||"RSA"===o&&!d.privateKey?n():(h=h&&h.mode===s.MODES.urlencoded?h.urlencoded:void 0,t.removeHeader("Authorization"),t.removeQueryParams(a.values(l)),h&&h.remove((function(e){return a.includes(a.values(l),e.key)})),d.nonce=d.nonce||i.nonce(11).toString(),d.timestamp=d.timestamp||i.timestamp().toString(),d.addEmptyParamsToSign||(d=a.reduce(d,(function(e,t,n){return a.isString(t)&&""===t.trim()||(e[n]=t),e}),{})),!h&&d.includeBodyHash&&u?void function(e,t,n,i){if(!t||!n)return i();var o,u,l,p=r.createHash(t);!e||e.isEmpty()?i(p.digest(n)):e.mode===s.MODES.raw?(u=c.raw(e.raw).body,p.update(u),i(p.digest(n))):e.mode===s.MODES.file?(o=a.get(e,"file.content"))?o.cloneReadStream((function(e,t){if(e)return i();t.on("data",(function(e){p.update(e)})),t.on("end",(function(){i(p.digest(n))}))})):i():e.mode===s.MODES.graphql?(l=c.graphql(e.graphql).body,p.update(l),i(p.digest(n))):i()}(t.body,u,"base64",(function(e){return d.bodyHash=e,p.addAuthDataToRequest(t,d,f,n)})):p.addAuthDataToRequest(t,d,f,n))}}},{"../requester/core-body-builder":20,crypto:300,lodash:427,"node-oauth1":480,"postman-collection":495,"postman-url-encoder":546}],16:[function(e,t,n){var a=e("lodash"),r="header",i="Authorization",o="access_token",s=["accessToken","addTokenTo","tokenType","headerPrefix"];t.exports={manifest:{info:{name:"oauth2",version:"1.0.0"},updates:[{property:i,type:"header"},{property:o,type:"url.param"}]},init:function(e,t,n){n(null)},pre:function(e,t){const n=e.get("id"),r=e.get("refreshOAuth2Token");if(!n||!a.isFunction(r))return t(null,Boolean(e.get("accessToken")));r(n,((n,a)=>{a&&e.set("accessToken",a,!0),t(null,Boolean(e.get("accessToken")))}))},post:function(e,t,n){n(null,!0)},sign:function(e,t,n){var c=e.get(s);return c.accessToken?(c.addTokenTo=c.addTokenTo||r,c.tokenType=c.tokenType||"bearer",c.headerPrefix=a.isNil(c.headerPrefix)?"Bearer":a.trim(String(c.headerPrefix)),c.headerPrefix&&(c.headerPrefix+=" "),"mac"===a.toLower(c.tokenType)||(t.removeHeader(i,{ignoreCase:!0}),t.removeQueryParams([o]),"queryParams"===c.addTokenTo?t.addQueryParams({key:o,value:c.accessToken,system:!0}):c.addTokenTo===r&&t.addHeader({key:i,value:c.headerPrefix+c.accessToken,system:!0})),n()):n()}}},{lodash:427}],17:[function(e,t,n){var a,r,i=e("lodash");a=function(e,t,n){return i.isObject(e)&&i.union(n,t).forEach((function(t){!i.isFunction(e[t])&&(e[t]=i.noop)})),e},t.exports=r={ensure:(e,t)=>"function"==typeof e&&(t?e.bind(t):e)||void 0,normalise(e,t){if(i.isFunction(e)&&e.__normalised)return a(e,t);var n,r=i.isFunction(e)&&e||i.isFunction(e&&e.done)&&e.done,o=i.isFunction(e&&e.error)&&e.error,s=i.isFunction(e&&e.success)&&e.success;return n=i.assign((function(e){r&&r.apply(this,arguments),e?o&&o.apply(this,arguments):s&&s.apply(this,(Array.prototype.shift.call(arguments),arguments))}),i.isPlainObject(e)&&e,{error:function(){return n.apply(this,arguments)},success:function(){n.apply(this,(Array.prototype.unshift.call(arguments,null),arguments))},done:function(){return n.apply(this,arguments)},__normalised:!0}),a(n,t)},multiback(e,t,n,a){var i,o={};return t=r.timeback(t,a,null,(function(){i=!0})),function(a,r,s){if(!i){if(o[r]=s,a)return i=!0,o=null,void t.call(o,a);for(var c=0,u=e.length;c<u;c++)if(!Object.hasOwn(o,e[c]))return;i=!0,o=null,t.apply(o,n)}}},timeback(e,t,n,a){if(!(t=Number(t)))return e;var r=!1,i=setTimeout((function(){r=!0,i=null,a&&a.call(n||this),e.call(n||this,new Error("callback timed out"))}),t);return function(){if(!r)return i&&(i=clearTimeout(i)),e.apply(n||this,arguments)}}}},{lodash:427}],18:[function(e,t,n){t.exports={Runner:e("./runner"),Requester:e("./requester").Requester,version:e("./version")}},{"./requester":23,"./runner":37,"./version":45}],19:[function(e,t,n){var a=e("lodash"),r=e("postman-collection").Header.parse;l.log={trace:m,debug:m,info:m,warn:m,error:m};var i="ERR_PM_CORS",o="ERR_PM_MIXED_CONTENT",s={GET:!0,HEAD:!0},c={"accept-charset":!0,"accept-encoding":!0,"access-control-request-headers":!0,"access-control-request-method":!0,connection:!0,"content-length":!0,cookie:!0,cookie2:!0,date:!0,dnt:!0,expect:!0,"feature-policy":!0,host:!0,"keep-alive":!0,origin:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,via:!0},u={localhost:!0,"127.0.0.1":!0,127.1:!0,"[::1]":!0};function l(e,t,n,r,i){var o=t.onResponse,u=a.get(t,["agents",t.url&&t.url.protocol.slice(0,-1),"agentClass"])||XMLHttpRequest;if((t="string"==typeof t?{uri:t}:a.clone(t)).onResponse=o,t.verbose&&(l.log=function(){var e,t,n={},a=["trace","debug","info","warn","error"];for(t=0;t<a.length;t++)n[e=a[t]]=m,"undefined"!=typeof console&&console&&console[e]&&(n[e]=g(console,e));return n}()),t.url&&(t.uri=t.url&&t.url.href||t.url,delete t.url),!t.uri&&""!==t.uri)return i(new Error("options.uri is a required argument"));if("string"!=typeof t.uri)return i(new Error("options.uri must be a string"));t.onStart=n,t.onData=r,t.callback=i,t.method=t.method||"GET",t.headers=a.reduce(t.headers||{},(function(n,a,r){return!u._allowForbiddenHeaders&&(i=r,i=String(i).toLowerCase(),c[i]||i.startsWith("proxy-")||i.startsWith("sec-"))?(e.headers.remove(r),delete t.headers[r],n):(n[r]=a,n);var i}),{}),t.body=t.body||null,t.timeout=t.timeout||l.DEFAULT_TIMEOUT,t.headers.host&&console.warn("Request: Options.headers.host is not supported"),t.json&&(t.headers.accept=t.headers.accept||"application/json","GET"!==t.method&&(t.headers["content-type"]="application/json"),"boolean"!=typeof t.json?t.body=JSON.stringify(t.json):"string"!=typeof t.body&&(t.body=JSON.stringify(t.body)));var p=function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&(a.isArray(e[n])?a.forEach(e[n],(function(e){t.push(encodeURIComponent(n)+"="+encodeURIComponent(e))})):t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n])));return t.join("&")};if(t.qs){var h="string"==typeof t.qs?t.qs:p(t.qs);-1!==t.uri.indexOf("?")?t.uri=t.uri+"&"+h:t.uri=t.uri+"?"+h}var f=function(e){if(Array.isArray(e)){var t,n,a,r=new FormData;for(t=0,n=e.length;t<n;t++)(a=e[t])&&(Array.isArray(a.value)?a.value.forEach((function(e){r.append(a.key,e)})):r.append(a.key,a.value));return{body:r}}};if(t.form&&("string"==typeof t.form&&console.warn("form name unsupported"),u._allowBodyInGET||!s[t.method])){var y=(t.encoding||"application/x-www-form-urlencoded").toLowerCase();switch(t.headers["content-type"]||t.headers["Content-Type"]||(t.headers["content-type"]=y),y){case"application/x-www-form-urlencoded":t.body=p(t.form).replace(/%20/g,"+");break;case"multipart/form-data":var v=f(t.form);t.body=v.body,t.headers["content-type"]=v.type;break;default:console.warn("unsupported encoding:"+y)}}if(t.formData&&(u._allowBodyInGET||!s[t.method])){var b=f(t.formData);t.body=b.body,b.type&&(t.headers["content-type"]=b.type)}if(t.onResponse=t.onResponse||m,!0===t.onResponse&&(t.onResponse=i,t.callback=m),!t.headers.authorization&&t.auth&&(t.headers.authorization="Basic "+function(e){var t,n,a,r,i,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",s=0,c=0,u="",l=[];if(!e)return e;do{t=(i=e.charCodeAt(s++)<<16|e.charCodeAt(s++)<<8|e.charCodeAt(s++))>>18&63,n=i>>12&63,a=i>>6&63,r=63&i,l[c++]=o.charAt(t)+o.charAt(n)+o.charAt(a)+o.charAt(r)}while(s<e.length);switch(u=l.join(""),e.length%3){case 1:u=u.slice(0,-2)+"==";break;case 2:u=u.slice(0,-1)+"="}return u}(t.auth.username+":"+t.auth.password)),"function"!=typeof(t.jar&&t.jar.getCookieString))return d(u,e,t);t.jar.getCookieString(t.uri,(function(n,a){a&&a.length&&(t.cookiesFromJar=a),d(u,e,t)}))}var p=0;function d(e,t,n){var s,c,d,h,f,m=new e(n),g=!1,v=(s=n.uri,c=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,d=y(),h=c.exec(d.toLowerCase())||[],!(!(f=c.exec(s.toLowerCase()))||f[1]==h[1]&&f[2]==h[2]&&(f[3]||("http:"===f[1]?80:443))==(h[3]||("http:"===h[1]?80:443)))),b="withCredentials"in m;if(p+=1,m.seq_id=p,m.id=p+": "+n.method+" "+n.uri,m._id=m.id,v&&!b){var x=new Error("Browser does not support cross-origin request: "+n.uri);return x.code=i,x.cors="unsupported",n.callback(x,m),m}m.timeoutTimer=setTimeout((function(){g=!0;var e=new Error("ETIMEDOUT");return e.code="ETIMEDOUT",e.duration=n.timeout,l.log.error("Timeout",{id:m._id,milliseconds:n.timeout}),n.callback(e,m)}),n.timeout);var w={response:!1,loading:!1,end:!1,onStart:!1};return m.onreadystatechange=function(r){if(g)return l.log.debug("Ignoring timed out state change",{state:m.readyState,id:m.id});if(l.log.debug("State change",{state:m.readyState,id:m.id,timed_out:g}),m.readyState===e.OPENED){l.log.debug("Request started",{id:m.id});var i=[],o=function(e,t){t=new Error(`Header "${e}" contains invalid characters`),w.response=!0,w.loading=!0,w.end=!0,n.callback(t,m)};for(var s in n.headers)if(n.headers.hasOwnProperty(s))if("cookie"!==String(s).toLowerCase())try{Array.isArray(n.headers[s])?a.forEach(n.headers[s],(function(e){m.setRequestHeader(s,e)})):m.setRequestHeader(s,n.headers[s])}catch(u){o(s,u)}else i.push(n.headers[s]);if(i.length||n.cookiesFromJar)try{var c=i.join("; ")+(n.cookiesFromJar||"");m.setRequestHeader("Cookie",c),t.headers.upsert({key:"Cookie",value:c})}catch(u){o("Cookie",u)}}else m.readyState===e.HEADERS_RECEIVED?k():m.readyState===e.LOADING?(k(),_()):m.readyState===e.DONE&&(k(),_(),function(){if(w.end)return;if(w.end=!0,l.log.debug("Request done",{id:m.id}),m.body=null===n.encoding?m.response:m.responseText,n.json)try{m.body=m.responseText?JSON.parse(m.responseText):m.responseText}catch(e){return n.callback(e,m)}w.onStart?n.callback(null,m,m.body,m.request&&m.request._debug):w.callback=n.callback.bind(this,null,m,m.body,m.request&&m.request._debug)}())},m.open(n.method,n.uri,!0),v&&(m.withCredentials=!!n.withCredentials),null===n.encoding&&(m.responseType="arraybuffer"),m.send(n.body),m;function k(){if(!w.response){if(w.response=!0,l.log.debug("Got response",{id:m.id,status:m.status}),clearTimeout(m.timeoutTimer),m.statusCode=m.status,!m.request&&(m.request={}),m.request._debug=m._debugData||[{request:{method:n.method,href:n.uri,headers:t.headers.toJSON(),httpVersion:"1.1"},response:{statusCode:m.statusCode,headers:r(m.getAllResponseHeaders()),httpVersion:"1.1"}}],0===m.statusCode&&m._error)return w.loading=!0,w.end=!0,n.callback(m._error,m);if(0===m.statusCode&&function(e){var t=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,n=y(),a=t.exec(n.toLowerCase())||[],r=t.exec(e.toLowerCase());return r[1]!=a[1]&&!u[r[2]]}(n.uri)){var e=new Error("Mixed Content request rejected: "+n.uri);return e.code=o,w.loading=!0,w.end=!0,n.callback(e,m)}if(v&&0==m.statusCode){var a=new Error("CORS request rejected: "+n.uri);return a.code=i,a.cors="rejected",w.loading=!0,w.end=!0,n.callback(a,m)}if("function"!=typeof(n.jar&&n.jar.setCookie))return c();var s=function(e){var t=[];return(r(e)||[]).filter((function(e){"set-cookie"===String(e&&e.key).toLowerCase()&&t.push(e.value)})),t}(m.getAllResponseHeaders());if(!s||!s.length)return c();!function(e,t,n){if(!n&&(n=function(){}),!Array.isArray(e)||!t)return n();var a=0,r=e.length;if(!r)return n();!function i(o){if(o||a>=r)return n(o);try{t.call(e,e[a++],i)}catch(s){return n(s)}}()}(s,(function(e,t){n.jar.setCookie(e,n.uri,{ignoreError:!0},(function(){t()}))}),(function(){c()}))}function c(){w.onStart=!0,n.onStart(m),n.onResponse(null,m),"function"==typeof w.callback&&w.callback()}}function _(){w.loading||(w.loading=!0,l.log.debug("Response body loading",{id:m.id}))}}l.withCredentials=!1,l.DEFAULT_TIMEOUT=18e4;var h=["get","post","put","head","del","options","trace","copy","lock","mkcol","move","purge","propfind","proppatch","unlock","report","mkactivity","checkout","merge","m-search","notify","subscribe","unsubscribe","patch","search"],f={del:"delete"};function m(){}function g(e,t){return function(n,a){"object"==typeof a&&(n+=" "+JSON.stringify(a));return e[t].call(e,n)}}function y(){var e;try{e=location.href}catch(t){(e=document.createElement("a")).href="",e=e.href}return e}l.defaults=function(e,t){var n=function(t){return function(n,a){for(var r in n="string"==typeof n?{uri:n}:JSON.parse(JSON.stringify(n)),e)void 0===n[r]&&(n[r]=e[r]);return t(n,a)}},a=n(l);return h.forEach((function(e){a[e]=n(l[e])})),a},h.forEach((function(e){var t=f[e]||e;t=t.toUpperCase(),l[e.toLowerCase()]=function(e){"string"==typeof e?e={method:t,uri:e}:(e=JSON.parse(JSON.stringify(e))).method=t;var n=[e].concat(Array.prototype.slice.apply(arguments,[1]));return l.apply(this,n)}})),l.couch=function(e,t){return"string"==typeof e&&(e={uri:e}),e.json=!0,e.body&&(e.json=e.body),delete e.body,t=t||m,l(e,(function(e,n,a){if(e)return t(e,n,a);if((n.statusCode<200||n.statusCode>299)&&a.error){for(var r in e=new Error("CouchDB error: "+(a.error.reason||a.error.error)),a)e[r]=a[r];return t(e,n,a)}return t(e,n,a)}))},l.jar=a.noop,t.exports=l},{lodash:427,"postman-collection":495}],20:[function(e,t,n){var a,r,i,o=e("lodash"),s="Content-Type",c={html:"text/html",text:"text/plain",json:"application/json",javascript:"application/javascript",xml:"application/xml"},u="string";a=function(e,t){var n,a;if(e=e.reference[t.toLowerCase()],Array.isArray(e)){for(n=e.length-1;n>=0;n--)if((a=e[n])&&!a.disabled)return a}else if(e&&!e.disabled)return e},r=function(e,t){if(!t||t.disabled)return e;var n=t.key,a=t.value;return Object.hasOwn(e,n)?(Array.isArray(e[n])||(e[n]=[e[n]]),e[n].push(a),e):(e[n]=a,e)},i=function(e,t){if(!t||t.disabled)return e;var n,a={key:t.key,value:t.value};if("file"!==t.type&&typeof a.value!==u)try{a.value=JSON.stringify(a.value)}catch(r){a.value=""}return"file"!==t.type||a.value||"string"==typeof t.fileName||(t.fileName="",a.value=""),t.contentType&&typeof t.contentType===u&&((n||(n={})).contentType=t.contentType),typeof t.fileName===u&&((n||(n={})).filename=t.fileName),n&&(a.options=n),e.push(a),e},t.exports={raw(e,t){var n=o.get(t,"body.options.raw.language","text");return t&&!a(t.headers,s)&&t.headers.add({key:s,value:c[n]||c.text,system:!0}),typeof e!==u&&(e=JSON.stringify(e)),{body:e}},urlencoded:e=>(e&&o.isFunction(e.all)&&(e=e.all()),{form:o.reduce(e,r,{})}),formdata:e=>(e&&o.isFunction(e.all)&&(e=e.all()),{formData:o.reduce(e,i,[])}),file:e=>({body:e&&e.content}),graphql(e,t){var n;return t&&!a(t.headers,s)&&t.headers.add({key:s,value:c.json,system:!0}),e&&typeof e.variables!==u?{body:JSON.stringify({query:e.query,operationName:e.operationName,variables:e.variables})}:(n=[],Object.hasOwn(e,"query")&&typeof e.query===u&&n.push('"query":'+JSON.stringify(e.query)),Object.hasOwn(e,"operationName")&&typeof e.operationName===u&&n.push('"operationName":'+JSON.stringify(e.operationName)),Object.hasOwn(e,"variables")&&typeof e.variables===u&&""!==e.variables&&n.push('"variables":'+e.variables),{body:"{"+n.join(",")+"}"})}}},{lodash:427}],21:[function(e,t,n){(function(n){(function(){var a=e("dns"),r=e("constants"),i=e("lodash"),o=e("uuid"),s=e("postman-collection"),c=e("postman-url-encoder"),u=e("net").Socket,l=e("./core-body-builder"),p=e("../../package.json").version,d="::1",h="127.0.0.1",f="localhost",m="string",g="hostIpMap",y="connect",v="SSL_OP_NO_",b="NETERR: getaddrinfo ENOTFOUND ",x={get:!0,copy:!0,head:!0,purge:!0,unlock:!0},w={strictSSL:"strictSSL",maxRedirects:"maxRedirects",followRedirect:"followRedirects",followAllRedirects:"followRedirects",insecureHTTPParser:"insecureHTTPParser",followAuthorizationHeader:"followAuthorizationHeader",followOriginalHttpMethod:"followOriginalHttpMethod",removeRefererHeader:"removeRefererHeaderOnRedirect",protocolVersion:"protocolVersion"},k=["content-type","content-length","accept-encoding","connection"],_=function(e,t){var n,a;if(e=e.reference[t.toLowerCase()],Array.isArray(e)){for(n=e.length-1;n>=0;n--)if((a=e[n])&&!a.disabled)return a}else if(e&&!e.disabled)return e},j=function(e){return e?(e=String(e)).substring(e.lastIndexOf(".")+1):""},S=function(e,t,r,i){var o,s,c=4;return t&&t.type===g&&(o=t[g])&&(s=o[r]),s?(-1!==s.indexOf(":")&&(c=6),n((function(){return e.all?i(null,[{address:s,family:c}]):i(null,s,c)}))):a.lookup(r,e,i)},E=function(e,t,n,a){var r=this,o=t&&t.toLowerCase(),s=e.network||{},c=s.hostLookup;if(j(o)!==f)return n.all?S(n,c,o,(function(e,n){return e?a(e):i.some(n,(e=>r.isAddressRestricted(e&&e.address,s)))?a(new Error(b+t)):a(null,n)})):S(n,c,o,(function(e,n,i){return e?a(e):r.isAddressRestricted(n,s)?a(new Error(b+t)):a(null,n,i)}));!function(e,t,n){var a,r=new u,i=function(e){a||(n(e!==y||null),a=!0,this.destroy())};r.setTimeout(500,i.bind(r,"timeout")),r.once("connect",i.bind(r,y)),r.once("error",i.bind(r,"error")),r.connect(t,e),r=null}(d,e.port,(function(e){return e?n.all?a(null,[{address:h,family:4}]):a(null,h,4):n.all?a(null,[{address:d,family:6}]):a(null,d,6)}))},A=function(e,t,n){if(e&&t)return Object.hasOwn(n,e)?n[e]:t[e]};t.exports={getRequestOptions(e,t,n){!t&&(t={}),!n&&(n={});var a,s,u,l,d,h={},g=t.network||{},y=t.useWhatWGUrlParser,b=t.maxHeaderSize,x=n.disableUrlEncoding,S=n.disabledSystemHeaders||{},C=t.systemHeaders||{},T=y?c.toNodeUrl(e.url,x):c.toLegacyNodeUrl(e.url.toString(!0)),M=i.startsWith(T.protocol,"https"),B=e.proxy&&(e.proxy.tunnel||M),P=T&&T.port,I=T&&T.hostname&&T.hostname.toLowerCase(),R=e.proxy&&e.proxy.host;for(u in j(I)===f&&(I=f),j(R)===f&&(R=f),h.url=T,h.method=e.method,h.timeout=t.timeout,h.gzip=!0,h.brotli=!0,h.time=t.timings,h.verbose=t.verbose,h.agents=t.agents,h.extraCA=t.extendedRootCA,h.ignoreProxyEnvironmentVariables=t.ignoreProxyEnvironmentVariables,h.agentIdleTimeout=t.agentIdleTimeout,h.maxHeaderSize=b,h.disableUrlEncoding=!0,h.useQuerystring=!0,h.encoding=null,h.statusMessageEncoding="utf8",w)d=w[u],h[u]=A(d,t,n);return n.disableCookies||(h.jar=t.cookieJar||!0),n.tlsPreferServerCiphers&&(h.honorCipherOrder=!0),Array.isArray(n.tlsDisabledProtocols)&&n.tlsDisabledProtocols.forEach((function(e){"TLSv1_3"!==e||r[v+e]?h.secureOptions|=r[v+e]:h.maxVersion="TLSv1.2"})),Array.isArray(n.tlsCipherSelection)&&(h.ciphers=n.tlsCipherSelection.join(":")),"number"==typeof t.maxResponseSize&&(h.maxResponseSize=t.maxResponseSize),a=this.getRequestBody(e,n),!t.implicitCacheControl&&(S["cache-control"]=!0),!t.implicitTraceHeader&&(S["postman-token"]=!0),function(e,t,n,a){var r,i=e.headers;for(r in[{key:"User-Agent",value:`PostmanRuntime/${p}`},{key:"Accept",value:"*/*"},{key:"Cache-Control",value:"no-cache"},{key:"Postman-Token",value:o.v4()},{key:"Host",value:t.url&&t.url.host},{key:"Accept-Encoding",value:"gzip, deflate, br"},{key:"Connection",value:"keep-alive"}].forEach((function(e){r=e.key.toLowerCase(),!n[r]&&!_(i,r)&&i.add({key:e.key,value:e.value,system:!0})})),a)Object.hasOwn(a,r)&&i.upsert({key:r,value:a[r],system:!0})}(e,h,S,C),S.host&&((s=_(e.headers,"host"))&&s.system&&(s.disabled=!0),(!s||s.system)&&(h.setHost=!1)),S["content-type"]&&(h.allowContentTypeOverride=!0),h.blacklistHeaders=[],k.forEach((function(t){S[t]&&((s=_(e.headers,t))&&s.system&&(s.disabled=!0),(!s||s.system)&&h.blacklistHeaders.push(t),"content-length"===t&&(!(s=_(e.headers,"transfer-encoding"))||s.system)&&h.blacklistHeaders.push("transfer-encoding"))})),h.headers=e.getHeaders({enabled:!0,sanitizeKeys:!0}),y&&(h.urlParser=function(e){return{parse:t=>c.toNodeUrl(t,e),resolve:(t,n)=>(typeof t===m&&(t=c.toNodeUrl(t,e)),c.resolveNodeUrl(t,n))}}(x)),(g.restrictedAddresses||I===f||!B&&R===f||g.hostLookup)&&(l=e.proxy&&!B?Number(e.proxy.port):Number(P)||(M?443:80),i.isFinite(l)&&(h.lookup=E.bind(this,{port:l,network:g}))),i.assign(h,a,{agentOptions:{keepAlive:t.keepAlive}}),h},getRequestBody(e,t){if(e&&e.body){var n,a,r=e.body,i=r.mode,o=typeof e.method===m?e.method.toLowerCase():void 0,c=r.isEmpty(),u=r.disabled,p=r[i],d=!t||!t.disableBodyPruning;if(!c&&!u){if(s.PropertyList.isPropertyList(p)){for(c=!0,n=p.members.length-1;n>=0;n--)if((a=p.members[n])&&!a.disabled){c=!1;break}if(c)return}if((!x[o]||!d)&&Object.hasOwn(l,i))return l[i](p,e)}}},jsonifyResponse(e,t,n){var a;if(e)return e.toJSON?((a=e.toJSON()).request&&i.assign(a.request,{data:t.form||t.formData||t.body||{},uri:{href:t.url&&t.url.href||t.url},url:t.url&&t.url.href||t.url}),e.rawHeaders&&(a.headers=this.arrayPairsToObject(e.rawHeaders)||a.headers),a):(n=n||"",{statusCode:e.status,body:n,headers:i.transform(s.Header.parse(e.getAllResponseHeaders()),(function(e,t){e[t.key]?(!Array.isArray(e[t.key])&&(e[t.key]=[e[t.key]]),e[t.key].push(t.value)):e[t.key]=t.value}),{}),request:{method:t.method||"GET",headers:t.headers,uri:{href:t.url&&t.url.href||t.url},url:t.url&&t.url.href||t.url,data:t.form||t.formData||t.body||{}}})},arrayBufferToString(e){var t,n,a="",r=new Uint8Array(e);for(t=0,n=r.length;t<n;t++)a+=String.fromCharCode(r[t]);return a},arrayPairsToObject(e){if(i.isArray(e)){var t,n,a,r,o={};for(a=0,r=e.length;a<r;a+=2)t=e[a],n=e[a+1],i.has(o,t)?(!i.isArray(o[t])&&(o[t]=[o[t]]),o[t].push(n)):o[t]=n;return o}},isAddressRestricted:(e,t)=>t.restrictedAddresses&&t.restrictedAddresses[e&&e.toLowerCase()]}}).call(this)}).call(this,e("timers").setImmediate)},{"../../package.json":697,"./core-body-builder":20,constants:293,dns:284,lodash:427,net:284,"postman-collection":495,"postman-url-encoder":546,timers:665,uuid:674}],22:[function(e,t,n){const a=e("lodash"),r=e("async"),i=e("mime-types"),o=e("postman-url-encoder"),s=e("postman-collection").Request,c=e("../authorizer").authorizeRequest,u=e("../authorizer").AuthLoader.handlers,l=e("../../package.json").version,p=e("strip-json-comments"),d="<calculated when request is sent>",h="Content-Type",f="multipart/form-data; boundary="+d,m="string",g=/^application\/(\S+\+)?json/,y={html:"text/html",text:"text/plain",json:"application/json",javascript:"application/javascript",xml:"application/xml"},v="raw",b="file",x="graphql",w="formdata",k="urlencoded";function _(e,t,n){e.add({key:t,value:n,system:!0})}function j(e,t){if(function(e){if(!e||e.disabled||e.isEmpty())return!0;var t,n,a=e.mode;if(a!==w&&a!==k)return!1;for(t=e[a].members.length-1;t>=0;t--)if((n=e[a].members[t])&&!n.disabled)return!1;return!0}(e.body))return t(null,e);var n,r=e.headers;switch(e.body.mode){case v:n=a.get(e,"body.options.raw.language","text"),_(r,h,y[n]||y.text);break;case k:_(r,h,"application/x-www-form-urlencoded");break;case w:_(r,h,f);break;case x:_(r,h,y.json);break;case b:_(r,h,i.lookup(e.body.file&&e.body.file.src)||"application/octet-stream")}_(r,"Content-Length",d),t(null,e)}t.exports=function(e,t,n){if(n||"function"!=typeof t||(n=t,t={}),!s.isRequest(e))return n(new Error("Invalid Request instance"));!t&&(t={});var i=t.cookieJar,h=t.implicitCacheControl,f=t.implicitTraceHeader,y=a.get(t.protocolProfileBehavior,"disabledSystemHeaders")||{},v=a.get(t.protocolProfileBehavior,"disableCookies");r.waterfall([function(t){j(e,t)},function(e,t){!function(e,t){const n=a.get(e,"body.options.raw.language");let r=a.get(e,"headers.reference.content-type"),i=a.get(e,"body.raw");n||r?n&&"json"!==n?t(null,e):(n||!r||function(e){return Array.isArray(e)&&(e=e.find((e=>!(e&&e.disabled)))),e&&typeof e.value===m&&g.test(e.va