Skip to content

*Claude Sonnet 4.6 - Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 84.70107509705375 seconds) Last error: CAPIError: 503 {"error":{"message":"HTTP/2 GOAWAY connection terminated","type":"connection_error"}} #2050

@tinonetic

Description

@tinonetic

Describe the bug

Issue happens with claude-sonnet-4.6 (medium)

Reproduced steps with Gemini 3 Pro, no errors

  1. Working on a specification generation task that involves reading an 8KB YAML file to generate a skill (I have done it many times in the past).
  2. Model responds initially, acknowledging the task, then gets stuck and shows rapidly scrolling/flickering of error message below:
  3. After waiting for a few minutes, it then has the following error: ✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
  4. It happens a second time with the following additional message: ● Request failed due to a transient API error. Retrying... and ✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
  5. After the 5th time, it stops retrying with the following, final error: ✗ Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 90.7623237036104 seconds) Last error: CAPIError: 503 {"error":{"message":"HTTP/2 GOAWAY connection terminated","type":"connection_error"}}

Affected version

GitHub Copilot CLI 1.0.5

Selected model

claude-sonnet-4.6 (medium)

No errors with Gemini 3 Pro (Preview)

Steps to reproduce the behavior

  1. Working on a specification generation task that involves reading an 8KB YAML file to generate a skill.
  2. Model responds initially, acknowledging the task, then gets stuck and shows rapidly scrolling/flickering of error message below:
  3. After waiting for a few minutes, it then has the following error: ✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
  4. It happens a second time with the following additional message: ● Request failed due to a transient API error. Retrying... and ✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:
  5. After the 5th time, it stops retrying with the following, final error: ✗ Execution failed: Error: Failed to get response from the AI model; retried 5 times (total retry wait time: 90.7623237036104 seconds) Last error: CAPIError: 503 {"error":{"message":"HTTP/2 GOAWAY connection terminated","type":"connection_error"}}

Error:


✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

    W3(t[xNe]===0);return}if(t[CU]&&!t[QNe]){t[CU](),t[CU]=null;return}if(t[vg]&&t[vg].resume(),t[dft])t[vU]=2;else
  if(t[vU]===2){e?(t[vU]=1,queueMicrotask(()=>tAn(t))):tAn(t);continue}if(t[xNe]===0||t[SNe]>=(rAn(t)||1))return;let
  n=t[yX][t[NX]];if(t[ck].protocol==="https:"&&t[VU]!==n.servername){if(t[SNe]>0)return;t[VU]=n.servername,t[vg]?.destroy(new Wfo("servername
  changed"),()=>{t[vg]=null,pft(t)})}if(t[Xae])return;if(!t[vg]){sAn(t);return}if(t[vg].destroyed||t[vg].busy(n))return;!n.aborted&&t[vg].write(n)?t[NX]++:t[yX].splice(t[NX],1)}}iAn.exports=mft});var
  hft=k((hxi,aAn)=>{"use strict";var Y_e=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return
  this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void
  0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aAn.exports=class{constructor(){this.head=this.tail=new Y_e}isEmpty(){return
  this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Y_e),this.head.push(e)}shift(){let e=this.tail,n=e.shift();return
  e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),n}}});var yft=k((bxi,bAn)=>{"use strict";var{PoolStats:Kfo}=yAt(),qfo=Wq(),$fo=hft(),{kConnected:bft,kSize:lAn,kRunning:cAn,kPending:IAn,kQueued:k
  Ne,kBusy:e0o,kFree:t0o,kUrl:n0o,kClose:r0o,kDestroy:o0o,kDispatch:s0o}=rp(),TA=Symbol("clients"),ER=Symbol("needDrain"),LNe=Symbol("queue"),Gft=Symbol("closed
  resolve"),gft=Symbol("onDrain"),dAn=Symbol("onConnect"),uAn=Symbol("onDisconnect"),mAn=Symbol("onConnectionError"),Aft=Symbol("get dispatcher"),pAn=Symbol("add client"),hAn=Symbol("remove
  client"),fft=class extends qfo{[LNe]=new $fo;[kNe]=0;[TA]=[];[ER]=!1;[gft](e,n,r){let o=this[LNe],s=!1;for(;!s;){let
  a=o.shift();if(!a)break;this[kNe]--,s=!e.dispatch(a.opts,a.handler)}if(e[ER]=s,!s&&this[ER]&&(this[ER]=!1,this.emit("drain",n,[this,...r])),this[Gft]&&o.isEmpty()){let a=new Array(this[TA].length);for(let
  l=0;l<this[TA].length;l++)a[l]=this[TA][l].close();Promise.all(a).then(this[Gft])}}[dAn]=(e,n)=>{this.emit("connect",e,[this,...n])};[uAn]=(e,n,r)=>{this.emit("disconnect",e,[this,...n],r)};[mAn]=(e,n,r)=>
  {this.emit("connectionError",e,[this,...n],r)};get[e0o](){return this[ER]}get[bft](){let e=0;for(let{[bft]:n}of this[TA])e+=n;return e}get[t0o](){let e=0;for(let{[bft]:n,[ER]:r}of this[TA])e+=n&&!r;return
  e}get[IAn](){let e=this[kNe];for(let{[IAn]:n}of this[TA])e+=n;return e}get[cAn](){let e=0;for(let{[cAn]:n}of this[TA])e+=n;return e}get[lAn](){let e=this[kNe];for(let{[lAn]:n}of this[TA])e+=n;return e}get
  stats(){return new Kfo(this)}[r0o](){if(this[LNe].isEmpty()){let e=new Array(this[TA].length);for(let n=0;n<this[TA].length;n++)e[n]=this[TA][n].close();return Promise.all(e)}else return new
  Promise(e=>{this[Gft]=e})}[o0o](e){for(;;){let r=this[LNe].shift();if(!r)break;r.handler.onError(e)}let n=new Array(this[TA].length);for(let r=0;r<this[TA].length;r++)n[r]=this[TA][r].destroy(e);return
  Promise.all(n)}[s0o](e,n){let r=this[Aft]();return r?r.dispatch(e,n)||(r[ER]=!0,this[ER]=!this[Aft]()):(this[ER]=!0,this[LNe].push({opts:e,handler:n}),this[kNe]++),!this[ER]}[pAn](e){return
  e.on("drain",this[gft].bind(this,e)).on("connect",this[dAn]).on("disconnect",this[uAn]).on("connectionError",this[mAn]),this[TA].push(e),this[ER]&&queueMicrotask(()=>{this[ER]&&this[gft](e,e[n0o],[e,this])
  }),this}[hAn](e){e.close(()=>{let n=this[TA].indexOf(e);n!==-1&&this[TA].splice(n,1)}),this[ER]=this[TA].some(n=>!n[ER]&&n.closed!==!0&&n.destroyed!==!0)}};bAn.exports={PoolBase:fft,kClients:TA,kNeedDrain:
  ER,kAddClient:pAn,kRemoveClient:hAn,kGetDispatcher:Aft}});var Sae=k((Gxi,fAn)=>{"use strict";var{PoolBase:i0o,kClients:V_e,kNeedDrain:a0o,kAddClient:l0o,kGetDispatcher:c0o,kRemoveClient:I0o}=yft(),d0o=Hq()
  ,{InvalidArgumentError:Nft}=lc(),GAn=bl(),{kUrl:gAn}=rp(),u0o=yNe(),F_e=Symbol("options"),Eft=Symbol("connections"),AAn=Symbol("factory");function m0o(t,e){return new d0o(t,e)}var Zft=class extends
  i0o{constructor(e,{connections:n,factory:r=m0o,connect:o,connectTimeout:s,tls:a,maxCachedSessions:l,socketPath:c,autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d,allowH2:u,clientTtl:m,...p}={}){if(n!=nu
  ll&&(!Number.isFinite(n)||n<0))throw new Nft("invalid connections");if(typeof r!="function")throw new Nft("factory must be a function.");if(o!=null&&typeof o!="function"&&typeof o!="object")throw new
  Nft("connect must be a function or an object");typeof o!="function"&&(o=u0o({...a,maxCachedSessions:l,allowH2:u,socketPath:c,timeout:s,...typeof
  I=="boolean"?{autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d}:void
  0,...o})),super(),this[Eft]=n||null,this[gAn]=GAn.parseOrigin(e),this[F_e]={...GAn.deepClone(p),connect:o,allowH2:u,clientTtl:m},this[F_e].interceptors=p.interceptors?{...p.interceptors}:void
  0,this[AAn]=r,this.on("connect",(h,G)=>{if(m!=null&&m>0)for(let g of G)Object.assign(g,{ttl:Date.now()})}),this.on("connectionError",(h,G,g)=>{for(let f of G){let
  N=this[V_e].indexOf(f);N!==-1&&this[V_e].splice(N,1)}})}[c0o](){let e=this[F_e].clientTtl;for(let n of this[V_e])if(e!=null&&e>0&&n.ttl&&Date.now()-n.ttl>e)this[I0o](n);else if(!n[a0o])return
  n;if(!this[Eft]||this[V_e].length<this[Eft]){let n=this[AAn](this[gAn],this[F_e]);return this[l0o](n),n}}};fAn.exports=Zft});var WAn=k((gxi,ZAn)=>{"use strict";var{BalancedPoolMissingUpstreamError:p0o,Inva
  lidArgumentError:h0o}=lc(),{PoolBase:b0o,kClients:bZ,kNeedDrain:TNe,kAddClient:G0o,kRemoveClient:g0o,kGetDispatcher:A0o}=yft(),f0o=Sae(),{kUrl:Wft}=rp(),{parseOrigin:yAn}=bl(),NAn=Symbol("factory"),Q_e=Sym
  bol("options"),EAn=Symbol("kGreatestCommonDivisor"),Xq=Symbol("kCurrentWeight"),Sq=Symbol("kIndex"),$V=Symbol("kWeight"),H_e=Symbol("kMaxWeightPerServer"),X_e=Symbol("kErrorPenalty");function
  y0o(t,e){if(t===0)return e;for(;e!==0;){let n=e;e=t%e,t=n}return t}function N0o(t,e){return new f0o(t,e)}var Rft=class extends b0o{constructor(e=[],{factory:n=N0o,...r}={}){if(typeof n!="function")throw
  new h0o("factory must be a
  function.");super(),this[Q_e]=r,this[Sq]=-1,this[Xq]=0,this[H_e]=this[Q_e].maxWeightPerServer||100,this[X_e]=this[Q_e].errorPenalty||15,Array.isArray(e)||(e=[e]),this[NAn]=n;for(let o of
  e)this.addUpstream(o);this._updateBalancedPoolStats()}addUpstream(e){let n=yAn(e).origin;if(this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0))return this;let
  r=this[NAn](n,Object.assign({},this[Q_e]));this[G0o](r),r.on("connect",()=>{r[$V]=Math.min(this[H_e],r[$V]+this[X_e])}),r.on("connectionError",()=>{r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoo
  lStats()}),r.on("disconnect",(...o)=>{let s=o[2];s&&s.code==="UND_ERR_SOCKET"&&(r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoolStats())});for(let o of this[bZ])o[$V]=this[H_e];return
  this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let n=0;n<this[bZ].length;n++)e=y0o(this[bZ][n][$V],e);this[EAn]=e}removeUpstream(e){let
  n=yAn(e).origin,r=this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0);return r&&this[g0o](r),this}get upstreams(){return
  this[bZ].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[Wft].origin)}[A0o](){if(this[bZ].length===0)throw new
  p0o;if(!this[bZ].find(s=>!s[TNe]&&s.closed!==!0&&s.destroyed!==!0)||this[bZ].map(s=>s[TNe]).reduce((s,a)=>s&&a,!0))return;let
  r=0,o=this[bZ].findIndex(s=>!s[TNe]);for(;r++<this[bZ].length;){this[Sq]=(this[Sq]+1)%this[bZ].length;let
  s=this[bZ][this[Sq]];if(s[$V]>this[bZ][o][$V]&&!s[TNe]&&(o=this[Sq]),this[Sq]===0&&(this[Xq]=this[Xq]-this[EAn],this[Xq]<=0&&(this[Xq]=this[H_e])),s[$V]>=this[Xq]&&!s[TNe])return s}return
  this[Xq]=this[bZ][o][$V],this[Sq]=o,this[bZ][o]}};ZAn.exports=Rft});var xq=k((Axi,FAn)=>{"use
  strict";var{InvalidArgumentError:S_e,MaxOriginsReachedError:E0o}=lc(),{kClients:eF,kRunning:RAn,kClose:Z0o,kDestroy:W0o,kDispatch:R0o,kUrl:w0o}=rp(),C0o=Wq(),v0o=Sae(),Y0o=Hq(),V0o=bl(),wAn=Symbol("onConne
  ct"),CAn=Symbol("onDisconnect"),vAn=Symbol("onConnectionError"),YAn=Symbol("onDrain"),VAn=Symbol("factory"),wft=Symbol("options"),_Ne=Symbol("origins");function F0o(t,e){return e&&e.connections===1?new
  Y0o(t,e):new v0o(t,e)}var Cft=class extends C0o{constructor({factory:e=F0o,maxOrigins:n=1/0,connect:r,...o}={}){if(typeof e!="function")throw new S_e("factory must be a function.");if(r!=null&&typeof
  r!="function"&&typeof r!="object")throw new S_e("connect must be a function or an object");if(typeof n!="number"||Number.isNaN(n)||n<=0)throw new S_e("maxOrigins must be a number greater than
  0");super(),r&&typeof r!="function"&&(r={...r}),this[wft]={...V0o.deepClone(o),maxOrigins:n,connect:r},this[VAn]=e,this[eF]=new Map,this[_Ne]=new Set,this[YAn]=(s,a)=>{this.emit("drain",s,[this,...a])},thi
  s[wAn]=(s,a)=>{this.emit("connect",s,[this,...a])},this[CAn]=(s,a,l)=>{this.emit("disconnect",s,[this,...a],l)},this[vAn]=(s,a,l)=>{this.emit("connectionError",s,[this,...a],l)}}get[RAn](){let
  e=0;for(let{dispatcher:n}of this[eF].values())e+=n[RAn];return e}[R0o](e,n){let r;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))r=String(e.origin);else throw new S_e("opts.origin must
  be a non-empty string or URL.");if(this[_Ne].size>=this[wft].maxOrigins&&!this[_Ne].has(r))throw new E0o;let o=this[eF].get(r),s=o&&o.dispatcher;if(!s){let a=l=>{let
  c=this[eF].get(r);c&&(l&&(c.count-=1),c.count<=0&&(this[eF].delete(r),c.dispatcher.close()),this[_Ne].delete(r))};s=this[VAn](e.origin,this[wft]).on("drain",this[YAn]).on("connect",(l,c)=>{let
  I=this[eF].get(r);I&&(I.count+=1),this[wAn](l,c)}).on("disconnect",(l,c,I)=>{a(!0),this[CAn](l,c,I)}).on("connectionError",(l,c,I)=>{a(!1),this[vAn](l,c,I)}),this[eF].set(r,{count:0,dispatcher:s}),this[_Ne
  ].add(r)}return s.dispatch(e,n)}[Z0o](){let e=[];for(let{dispatcher:n}of this[eF].values())e.push(n.close());return this[eF].clear(),Promise.all(e)}[W0o](e){let n=[];for(let{dispatcher:r}of
  this[eF].values())n.push(r.destroy(e));return this[eF].clear(),Promise.all(n)}get stats(){let e={};for(let{dispatcher:n}of this[eF].values())n.stats&&(e[n[w0o].origin]=n.stats);return
  e}};FAn.exports=Cft});var Qft=k((fxi,BAn)=>{"use strict";var{kProxy:vft,kClose:kAn,kDestroy:LAn,kDispatch:QAn}=rp(),Q0o=xq(),TAn=Sae(),_An=Wq(),{InvalidArgumentError:xae,RequestAbortedError:H0o,SecureProxy
  ConnectionError:X0o}=lc(),HAn=yNe(),JAn=Hq(),x_e=Symbol("proxy agent"),k_e=Symbol("proxy client"),FU=Symbol("proxy headers"),Yft=Symbol("request tls settings"),XAn=Symbol("proxy tls
  settings"),SAn=Symbol("connect endpoint function"),xAn=Symbol("tunnel proxy");function S0o(t){return t==="https:"?443:80}function x0o(t,e){return new TAn(t,e)}var k0o=()=>{};function L0o(t,e){return
  e.connections===1?new JAn(t,e):new TAn(t,e)}var Vft=class extends _An{#e;constructor(e,{headers:n={},connect:r,factory:o}){if(!e)throw new xae("Proxy URL is
  mandatory");super(),this[FU]=n,o?this.#e=o(e,{connect:r}):this.#e=new JAn(e,{connect:r})}[QAn](e,n){let r=n.onHeaders;n.onHeaders=function(l,c,I){if(l===407){typeof n.onError=="function"&&n.onError(new
  xae("Proxy Authentication Required (407)"));return}r&&r.call(this,l,c,I)};let{origin:o,path:s="/",headers:a={}}=e;if(e.path=o+s,!("host"in a)&&!("Host"in a)){let{host:l}=new URL(o);a.host=l}return
  e.headers={...this[FU],...a},this.#e[QAn](e,n)}[kAn](){return this.#e.close()}[LAn](e){return this.#e.destroy(e)}},Fft=class extends _An{constructor(e){if(!e||typeof e=="object"&&!(e instanceof
  URL)&&!e.uri)throw new xae("Proxy uri is mandatory");let{clientFactory:n=x0o}=e;if(typeof n!="function")throw new xae("Proxy opts.clientFactory must be a function.");let{proxyTunnel:r=!0}=e;super();let
  o=this.#e(e),{href:s,origin:a,port:l,protocol:c,username:I,password:d,hostname:u}=o;if(this[vft]={uri:s,protocol:c},this[Yft]=e.requestTls,this[XAn]=e.proxyTls,this[FU]=e.headers||{},this[xAn]=r,e.auth&&e.
  token)throw new xae("opts.auth cannot be used in combination with opts.token");e.auth?this[FU]["proxy-authorization"]=`Basic
  ${e.auth}`:e.token?this[FU]["proxy-authorization"]=e.token:I&&d&&(this[FU]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(d)}`)


● Request failed due to a transient API error. Retrying...
✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

    W3(t[xNe]===0);return}if(t[CU]&&!t[QNe]){t[CU](),t[CU]=null;return}if(t[vg]&&t[vg].resume(),t[dft])t[vU]=2;else
  if(t[vU]===2){e?(t[vU]=1,queueMicrotask(()=>tAn(t))):tAn(t);continue}if(t[xNe]===0||t[SNe]>=(rAn(t)||1))return;let
  n=t[yX][t[NX]];if(t[ck].protocol==="https:"&&t[VU]!==n.servername){if(t[SNe]>0)return;t[VU]=n.servername,t[vg]?.destroy(new Wfo("servername
  changed"),()=>{t[vg]=null,pft(t)})}if(t[Xae])return;if(!t[vg]){sAn(t);return}if(t[vg].destroyed||t[vg].busy(n))return;!n.aborted&&t[vg].write(n)?t[NX]++:t[yX].splice(t[NX],1)}}iAn.exports=mft});var
  hft=k((hxi,aAn)=>{"use strict";var Y_e=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return
  this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void
  0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aAn.exports=class{constructor(){this.head=this.tail=new Y_e}isEmpty(){return
  this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Y_e),this.head.push(e)}shift(){let e=this.tail,n=e.shift();return
  e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),n}}});var yft=k((bxi,bAn)=>{"use strict";var{PoolStats:Kfo}=yAt(),qfo=Wq(),$fo=hft(),{kConnected:bft,kSize:lAn,kRunning:cAn,kPending:IAn,kQueued:k
  Ne,kBusy:e0o,kFree:t0o,kUrl:n0o,kClose:r0o,kDestroy:o0o,kDispatch:s0o}=rp(),TA=Symbol("clients"),ER=Symbol("needDrain"),LNe=Symbol("queue"),Gft=Symbol("closed
  resolve"),gft=Symbol("onDrain"),dAn=Symbol("onConnect"),uAn=Symbol("onDisconnect"),mAn=Symbol("onConnectionError"),Aft=Symbol("get dispatcher"),pAn=Symbol("add client"),hAn=Symbol("remove
  client"),fft=class extends qfo{[LNe]=new $fo;[kNe]=0;[TA]=[];[ER]=!1;[gft](e,n,r){let o=this[LNe],s=!1;for(;!s;){let
  a=o.shift();if(!a)break;this[kNe]--,s=!e.dispatch(a.opts,a.handler)}if(e[ER]=s,!s&&this[ER]&&(this[ER]=!1,this.emit("drain",n,[this,...r])),this[Gft]&&o.isEmpty()){let a=new Array(this[TA].length);for(let
  l=0;l<this[TA].length;l++)a[l]=this[TA][l].close();Promise.all(a).then(this[Gft])}}[dAn]=(e,n)=>{this.emit("connect",e,[this,...n])};[uAn]=(e,n,r)=>{this.emit("disconnect",e,[this,...n],r)};[mAn]=(e,n,r)=>
  {this.emit("connectionError",e,[this,...n],r)};get[e0o](){return this[ER]}get[bft](){let e=0;for(let{[bft]:n}of this[TA])e+=n;return e}get[t0o](){let e=0;for(let{[bft]:n,[ER]:r}of this[TA])e+=n&&!r;return
  e}get[IAn](){let e=this[kNe];for(let{[IAn]:n}of this[TA])e+=n;return e}get[cAn](){let e=0;for(let{[cAn]:n}of this[TA])e+=n;return e}get[lAn](){let e=this[kNe];for(let{[lAn]:n}of this[TA])e+=n;return e}get
  stats(){return new Kfo(this)}[r0o](){if(this[LNe].isEmpty()){let e=new Array(this[TA].length);for(let n=0;n<this[TA].length;n++)e[n]=this[TA][n].close();return Promise.all(e)}else return new
  Promise(e=>{this[Gft]=e})}[o0o](e){for(;;){let r=this[LNe].shift();if(!r)break;r.handler.onError(e)}let n=new Array(this[TA].length);for(let r=0;r<this[TA].length;r++)n[r]=this[TA][r].destroy(e);return
  Promise.all(n)}[s0o](e,n){let r=this[Aft]();return r?r.dispatch(e,n)||(r[ER]=!0,this[ER]=!this[Aft]()):(this[ER]=!0,this[LNe].push({opts:e,handler:n}),this[kNe]++),!this[ER]}[pAn](e){return
  e.on("drain",this[gft].bind(this,e)).on("connect",this[dAn]).on("disconnect",this[uAn]).on("connectionError",this[mAn]),this[TA].push(e),this[ER]&&queueMicrotask(()=>{this[ER]&&this[gft](e,e[n0o],[e,this])
  }),this}[hAn](e){e.close(()=>{let n=this[TA].indexOf(e);n!==-1&&this[TA].splice(n,1)}),this[ER]=this[TA].some(n=>!n[ER]&&n.closed!==!0&&n.destroyed!==!0)}};bAn.exports={PoolBase:fft,kClients:TA,kNeedDrain:
  ER,kAddClient:pAn,kRemoveClient:hAn,kGetDispatcher:Aft}});var Sae=k((Gxi,fAn)=>{"use strict";var{PoolBase:i0o,kClients:V_e,kNeedDrain:a0o,kAddClient:l0o,kGetDispatcher:c0o,kRemoveClient:I0o}=yft(),d0o=Hq()
  ,{InvalidArgumentError:Nft}=lc(),GAn=bl(),{kUrl:gAn}=rp(),u0o=yNe(),F_e=Symbol("options"),Eft=Symbol("connections"),AAn=Symbol("factory");function m0o(t,e){return new d0o(t,e)}var Zft=class extends
  i0o{constructor(e,{connections:n,factory:r=m0o,connect:o,connectTimeout:s,tls:a,maxCachedSessions:l,socketPath:c,autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d,allowH2:u,clientTtl:m,...p}={}){if(n!=nu
  ll&&(!Number.isFinite(n)||n<0))throw new Nft("invalid connections");if(typeof r!="function")throw new Nft("factory must be a function.");if(o!=null&&typeof o!="function"&&typeof o!="object")throw new
  Nft("connect must be a function or an object");typeof o!="function"&&(o=u0o({...a,maxCachedSessions:l,allowH2:u,socketPath:c,timeout:s,...typeof
  I=="boolean"?{autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d}:void
  0,...o})),super(),this[Eft]=n||null,this[gAn]=GAn.parseOrigin(e),this[F_e]={...GAn.deepClone(p),connect:o,allowH2:u,clientTtl:m},this[F_e].interceptors=p.interceptors?{...p.interceptors}:void
  0,this[AAn]=r,this.on("connect",(h,G)=>{if(m!=null&&m>0)for(let g of G)Object.assign(g,{ttl:Date.now()})}),this.on("connectionError",(h,G,g)=>{for(let f of G){let
  N=this[V_e].indexOf(f);N!==-1&&this[V_e].splice(N,1)}})}[c0o](){let e=this[F_e].clientTtl;for(let n of this[V_e])if(e!=null&&e>0&&n.ttl&&Date.now()-n.ttl>e)this[I0o](n);else if(!n[a0o])return
  n;if(!this[Eft]||this[V_e].length<this[Eft]){let n=this[AAn](this[gAn],this[F_e]);return this[l0o](n),n}}};fAn.exports=Zft});var WAn=k((gxi,ZAn)=>{"use strict";var{BalancedPoolMissingUpstreamError:p0o,Inva
  lidArgumentError:h0o}=lc(),{PoolBase:b0o,kClients:bZ,kNeedDrain:TNe,kAddClient:G0o,kRemoveClient:g0o,kGetDispatcher:A0o}=yft(),f0o=Sae(),{kUrl:Wft}=rp(),{parseOrigin:yAn}=bl(),NAn=Symbol("factory"),Q_e=Sym
  bol("options"),EAn=Symbol("kGreatestCommonDivisor"),Xq=Symbol("kCurrentWeight"),Sq=Symbol("kIndex"),$V=Symbol("kWeight"),H_e=Symbol("kMaxWeightPerServer"),X_e=Symbol("kErrorPenalty");function
  y0o(t,e){if(t===0)return e;for(;e!==0;){let n=e;e=t%e,t=n}return t}function N0o(t,e){return new f0o(t,e)}var Rft=class extends b0o{constructor(e=[],{factory:n=N0o,...r}={}){if(typeof n!="function")throw
  new h0o("factory must be a
  function.");super(),this[Q_e]=r,this[Sq]=-1,this[Xq]=0,this[H_e]=this[Q_e].maxWeightPerServer||100,this[X_e]=this[Q_e].errorPenalty||15,Array.isArray(e)||(e=[e]),this[NAn]=n;for(let o of
  e)this.addUpstream(o);this._updateBalancedPoolStats()}addUpstream(e){let n=yAn(e).origin;if(this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0))return this;let
  r=this[NAn](n,Object.assign({},this[Q_e]));this[G0o](r),r.on("connect",()=>{r[$V]=Math.min(this[H_e],r[$V]+this[X_e])}),r.on("connectionError",()=>{r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoo
  lStats()}),r.on("disconnect",(...o)=>{let s=o[2];s&&s.code==="UND_ERR_SOCKET"&&(r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoolStats())});for(let o of this[bZ])o[$V]=this[H_e];return
  this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let n=0;n<this[bZ].length;n++)e=y0o(this[bZ][n][$V],e);this[EAn]=e}removeUpstream(e){let
  n=yAn(e).origin,r=this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0);return r&&this[g0o](r),this}get upstreams(){return
  this[bZ].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[Wft].origin)}[A0o](){if(this[bZ].length===0)throw new
  p0o;if(!this[bZ].find(s=>!s[TNe]&&s.closed!==!0&&s.destroyed!==!0)||this[bZ].map(s=>s[TNe]).reduce((s,a)=>s&&a,!0))return;let
  r=0,o=this[bZ].findIndex(s=>!s[TNe]);for(;r++<this[bZ].length;){this[Sq]=(this[Sq]+1)%this[bZ].length;let
  s=this[bZ][this[Sq]];if(s[$V]>this[bZ][o][$V]&&!s[TNe]&&(o=this[Sq]),this[Sq]===0&&(this[Xq]=this[Xq]-this[EAn],this[Xq]<=0&&(this[Xq]=this[H_e])),s[$V]>=this[Xq]&&!s[TNe])return s}return
  this[Xq]=this[bZ][o][$V],this[Sq]=o,this[bZ][o]}};ZAn.exports=Rft});var xq=k((Axi,FAn)=>{"use
  strict";var{InvalidArgumentError:S_e,MaxOriginsReachedError:E0o}=lc(),{kClients:eF,kRunning:RAn,kClose:Z0o,kDestroy:W0o,kDispatch:R0o,kUrl:w0o}=rp(),C0o=Wq(),v0o=Sae(),Y0o=Hq(),V0o=bl(),wAn=Symbol("onConne
  ct"),CAn=Symbol("onDisconnect"),vAn=Symbol("onConnectionError"),YAn=Symbol("onDrain"),VAn=Symbol("factory"),wft=Symbol("options"),_Ne=Symbol("origins");function F0o(t,e){return e&&e.connections===1?new
  Y0o(t,e):new v0o(t,e)}var Cft=class extends C0o{constructor({factory:e=F0o,maxOrigins:n=1/0,connect:r,...o}={}){if(typeof e!="function")throw new S_e("factory must be a function.");if(r!=null&&typeof
  r!="function"&&typeof r!="object")throw new S_e("connect must be a function or an object");if(typeof n!="number"||Number.isNaN(n)||n<=0)throw new S_e("maxOrigins must be a number greater than
  0");super(),r&&typeof r!="function"&&(r={...r}),this[wft]={...V0o.deepClone(o),maxOrigins:n,connect:r},this[VAn]=e,this[eF]=new Map,this[_Ne]=new Set,this[YAn]=(s,a)=>{this.emit("drain",s,[this,...a])},thi
  s[wAn]=(s,a)=>{this.emit("connect",s,[this,...a])},this[CAn]=(s,a,l)=>{this.emit("disconnect",s,[this,...a],l)},this[vAn]=(s,a,l)=>{this.emit("connectionError",s,[this,...a],l)}}get[RAn](){let
  e=0;for(let{dispatcher:n}of this[eF].values())e+=n[RAn];return e}[R0o](e,n){let r;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))r=String(e.origin);else throw new S_e("opts.origin must
  be a non-empty string or URL.");if(this[_Ne].size>=this[wft].maxOrigins&&!this[_Ne].has(r))throw new E0o;let o=this[eF].get(r),s=o&&o.dispatcher;if(!s){let a=l=>{let
  c=this[eF].get(r);c&&(l&&(c.count-=1),c.count<=0&&(this[eF].delete(r),c.dispatcher.close()),this[_Ne].delete(r))};s=this[VAn](e.origin,this[wft]).on("drain",this[YAn]).on("connect",(l,c)=>{let
  I=this[eF].get(r);I&&(I.count+=1),this[wAn](l,c)}).on("disconnect",(l,c,I)=>{a(!0),this[CAn](l,c,I)}).on("connectionError",(l,c,I)=>{a(!1),this[vAn](l,c,I)}),this[eF].set(r,{count:0,dispatcher:s}),this[_Ne
  ].add(r)}return s.dispatch(e,n)}[Z0o](){let e=[];for(let{dispatcher:n}of this[eF].values())e.push(n.close());return this[eF].clear(),Promise.all(e)}[W0o](e){let n=[];for(let{dispatcher:r}of
  this[eF].values())n.push(r.destroy(e));return this[eF].clear(),Promise.all(n)}get stats(){let e={};for(let{dispatcher:n}of this[eF].values())n.stats&&(e[n[w0o].origin]=n.stats);return
  e}};FAn.exports=Cft});var Qft=k((fxi,BAn)=>{"use strict";var{kProxy:vft,kClose:kAn,kDestroy:LAn,kDispatch:QAn}=rp(),Q0o=xq(),TAn=Sae(),_An=Wq(),{InvalidArgumentError:xae,RequestAbortedError:H0o,SecureProxy
  ConnectionError:X0o}=lc(),HAn=yNe(),JAn=Hq(),x_e=Symbol("proxy agent"),k_e=Symbol("proxy client"),FU=Symbol("proxy headers"),Yft=Symbol("request tls settings"),XAn=Symbol("proxy tls
  settings"),SAn=Symbol("connect endpoint function"),xAn=Symbol("tunnel proxy");function S0o(t){return t==="https:"?443:80}function x0o(t,e){return new TAn(t,e)}var k0o=()=>{};function L0o(t,e){return
  e.connections===1?new JAn(t,e):new TAn(t,e)}var Vft=class extends _An{#e;constructor(e,{headers:n={},connect:r,factory:o}){if(!e)throw new xae("Proxy URL is
  mandatory");super(),this[FU]=n,o?this.#e=o(e,{connect:r}):this.#e=new JAn(e,{connect:r})}[QAn](e,n){let r=n.onHeaders;n.onHeaders=function(l,c,I){if(l===407){typeof n.onError=="function"&&n.onError(new
  xae("Proxy Authentication Required (407)"));return}r&&r.call(this,l,c,I)};let{origin:o,path:s="/",headers:a={}}=e;if(e.path=o+s,!("host"in a)&&!("Host"in a)){let{host:l}=new URL(o);a.host=l}return
  e.headers={...this[FU],...a},this.#e[QAn](e,n)}[kAn](){return this.#e.close()}[LAn](e){return this.#e.destroy(e)}},Fft=class extends _An{constructor(e){if(!e||typeof e=="object"&&!(e instanceof
  URL)&&!e.uri)throw new xae("Proxy uri is mandatory");let{clientFactory:n=x0o}=e;if(typeof n!="function")throw new xae("Proxy opts.clientFactory must be a function.");let{proxyTunnel:r=!0}=e;super();let
  o=this.#e(e),{href:s,origin:a,port:l,protocol:c,username:I,password:d,hostname:u}=o;if(this[vft]={uri:s,protocol:c},this[Yft]=e.requestTls,this[XAn]=e.proxyTls,this[FU]=e.headers||{},this[xAn]=r,e.auth&&e.
  token)throw new xae("opts.auth cannot be used in combination with opts.token");e.auth?this[FU]["proxy-authorization"]=`Basic
  ${e.auth}`:e.token?this[FU]["proxy-authorization"]=e.token:I&&d&&(this[FU]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(d)}`)


● Request failed due to a transient API error. Retrying...

✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

    W3(t[xNe]===0);return}if(t[CU]&&!t[QNe]){t[CU](),t[CU]=null;return}if(t[vg]&&t[vg].resume(),t[dft])t[vU]=2;else
  if(t[vU]===2){e?(t[vU]=1,queueMicrotask(()=>tAn(t))):tAn(t);continue}if(t[xNe]===0||t[SNe]>=(rAn(t)||1))return;let
  n=t[yX][t[NX]];if(t[ck].protocol==="https:"&&t[VU]!==n.servername){if(t[SNe]>0)return;t[VU]=n.servername,t[vg]?.destroy(new Wfo("servername
  changed"),()=>{t[vg]=null,pft(t)})}if(t[Xae])return;if(!t[vg]){sAn(t);return}if(t[vg].destroyed||t[vg].busy(n))return;!n.aborted&&t[vg].write(n)?t[NX]++:t[yX].splice(t[NX],1)}}iAn.exports=mft});var
  hft=k((hxi,aAn)=>{"use strict";var Y_e=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return
  this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void
  0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aAn.exports=class{constructor(){this.head=this.tail=new Y_e}isEmpty(){return
  this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Y_e),this.head.push(e)}shift(){let e=this.tail,n=e.shift();return
  e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),n}}});var yft=k((bxi,bAn)=>{"use strict";var{PoolStats:Kfo}=yAt(),qfo=Wq(),$fo=hft(),{kConnected:bft,kSize:lAn,kRunning:cAn,kPending:IAn,kQueued:k
  Ne,kBusy:e0o,kFree:t0o,kUrl:n0o,kClose:r0o,kDestroy:o0o,kDispatch:s0o}=rp(),TA=Symbol("clients"),ER=Symbol("needDrain"),LNe=Symbol("queue"),Gft=Symbol("closed
  resolve"),gft=Symbol("onDrain"),dAn=Symbol("onConnect"),uAn=Symbol("onDisconnect"),mAn=Symbol("onConnectionError"),Aft=Symbol("get dispatcher"),pAn=Symbol("add client"),hAn=Symbol("remove
  client"),fft=class extends qfo{[LNe]=new $fo;[kNe]=0;[TA]=[];[ER]=!1;[gft](e,n,r){let o=this[LNe],s=!1;for(;!s;){let
  a=o.shift();if(!a)break;this[kNe]--,s=!e.dispatch(a.opts,a.handler)}if(e[ER]=s,!s&&this[ER]&&(this[ER]=!1,this.emit("drain",n,[this,...r])),this[Gft]&&o.isEmpty()){let a=new Array(this[TA].length);for(let
  l=0;l<this[TA].length;l++)a[l]=this[TA][l].close();Promise.all(a).then(this[Gft])}}[dAn]=(e,n)=>{this.emit("connect",e,[this,...n])};[uAn]=(e,n,r)=>{this.emit("disconnect",e,[this,...n],r)};[mAn]=(e,n,r)=>
  {this.emit("connectionError",e,[this,...n],r)};get[e0o](){return this[ER]}get[bft](){let e=0;for(let{[bft]:n}of this[TA])e+=n;return e}get[t0o](){let e=0;for(let{[bft]:n,[ER]:r}of this[TA])e+=n&&!r;return
  e}get[IAn](){let e=this[kNe];for(let{[IAn]:n}of this[TA])e+=n;return e}get[cAn](){let e=0;for(let{[cAn]:n}of this[TA])e+=n;return e}get[lAn](){let e=this[kNe];for(let{[lAn]:n}of this[TA])e+=n;return e}get
  stats(){return new Kfo(this)}[r0o](){if(this[LNe].isEmpty()){let e=new Array(this[TA].length);for(let n=0;n<this[TA].length;n++)e[n]=this[TA][n].close();return Promise.all(e)}else return new
  Promise(e=>{this[Gft]=e})}[o0o](e){for(;;){let r=this[LNe].shift();if(!r)break;r.handler.onError(e)}let n=new Array(this[TA].length);for(let r=0;r<this[TA].length;r++)n[r]=this[TA][r].destroy(e);return
  Promise.all(n)}[s0o](e,n){let r=this[Aft]();return r?r.dispatch(e,n)||(r[ER]=!0,this[ER]=!this[Aft]()):(this[ER]=!0,this[LNe].push({opts:e,handler:n}),this[kNe]++),!this[ER]}[pAn](e){return
  e.on("drain",this[gft].bind(this,e)).on("connect",this[dAn]).on("disconnect",this[uAn]).on("connectionError",this[mAn]),this[TA].push(e),this[ER]&&queueMicrotask(()=>{this[ER]&&this[gft](e,e[n0o],[e,this])
  }),this}[hAn](e){e.close(()=>{let n=this[TA].indexOf(e);n!==-1&&this[TA].splice(n,1)}),this[ER]=this[TA].some(n=>!n[ER]&&n.closed!==!0&&n.destroyed!==!0)}};bAn.exports={PoolBase:fft,kClients:TA,kNeedDrain:
  ER,kAddClient:pAn,kRemoveClient:hAn,kGetDispatcher:Aft}});var Sae=k((Gxi,fAn)=>{"use strict";var{PoolBase:i0o,kClients:V_e,kNeedDrain:a0o,kAddClient:l0o,kGetDispatcher:c0o,kRemoveClient:I0o}=yft(),d0o=Hq()
  ,{InvalidArgumentError:Nft}=lc(),GAn=bl(),{kUrl:gAn}=rp(),u0o=yNe(),F_e=Symbol("options"),Eft=Symbol("connections"),AAn=Symbol("factory");function m0o(t,e){return new d0o(t,e)}var Zft=class extends
  i0o{constructor(e,{connections:n,factory:r=m0o,connect:o,connectTimeout:s,tls:a,maxCachedSessions:l,socketPath:c,autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d,allowH2:u,clientTtl:m,...p}={}){if(n!=nu
  ll&&(!Number.isFinite(n)||n<0))throw new Nft("invalid connections");if(typeof r!="function")throw new Nft("factory must be a function.");if(o!=null&&typeof o!="function"&&typeof o!="object")throw new
  Nft("connect must be a function or an object");typeof o!="function"&&(o=u0o({...a,maxCachedSessions:l,allowH2:u,socketPath:c,timeout:s,...typeof
  I=="boolean"?{autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d}:void
  0,...o})),super(),this[Eft]=n||null,this[gAn]=GAn.parseOrigin(e),this[F_e]={...GAn.deepClone(p),connect:o,allowH2:u,clientTtl:m},this[F_e].interceptors=p.interceptors?{...p.interceptors}:void
  0,this[AAn]=r,this.on("connect",(h,G)=>{if(m!=null&&m>0)for(let g of G)Object.assign(g,{ttl:Date.now()})}),this.on("connectionError",(h,G,g)=>{for(let f of G){let
  N=this[V_e].indexOf(f);N!==-1&&this[V_e].splice(N,1)}})}[c0o](){let e=this[F_e].clientTtl;for(let n of this[V_e])if(e!=null&&e>0&&n.ttl&&Date.now()-n.ttl>e)this[I0o](n);else if(!n[a0o])return
  n;if(!this[Eft]||this[V_e].length<this[Eft]){let n=this[AAn](this[gAn],this[F_e]);return this[l0o](n),n}}};fAn.exports=Zft});var WAn=k((gxi,ZAn)=>{"use strict";var{BalancedPoolMissingUpstreamError:p0o,Inva
  lidArgumentError:h0o}=lc(),{PoolBase:b0o,kClients:bZ,kNeedDrain:TNe,kAddClient:G0o,kRemoveClient:g0o,kGetDispatcher:A0o}=yft(),f0o=Sae(),{kUrl:Wft}=rp(),{parseOrigin:yAn}=bl(),NAn=Symbol("factory"),Q_e=Sym
  bol("options"),EAn=Symbol("kGreatestCommonDivisor"),Xq=Symbol("kCurrentWeight"),Sq=Symbol("kIndex"),$V=Symbol("kWeight"),H_e=Symbol("kMaxWeightPerServer"),X_e=Symbol("kErrorPenalty");function
  y0o(t,e){if(t===0)return e;for(;e!==0;){let n=e;e=t%e,t=n}return t}function N0o(t,e){return new f0o(t,e)}var Rft=class extends b0o{constructor(e=[],{factory:n=N0o,...r}={}){if(typeof n!="function")throw
  new h0o("factory must be a
  function.");super(),this[Q_e]=r,this[Sq]=-1,this[Xq]=0,this[H_e]=this[Q_e].maxWeightPerServer||100,this[X_e]=this[Q_e].errorPenalty||15,Array.isArray(e)||(e=[e]),this[NAn]=n;for(let o of
  e)this.addUpstream(o);this._updateBalancedPoolStats()}addUpstream(e){let n=yAn(e).origin;if(this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0))return this;let
  r=this[NAn](n,Object.assign({},this[Q_e]));this[G0o](r),r.on("connect",()=>{r[$V]=Math.min(this[H_e],r[$V]+this[X_e])}),r.on("connectionError",()=>{r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoo
  lStats()}),r.on("disconnect",(...o)=>{let s=o[2];s&&s.code==="UND_ERR_SOCKET"&&(r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoolStats())});for(let o of this[bZ])o[$V]=this[H_e];return
  this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let n=0;n<this[bZ].length;n++)e=y0o(this[bZ][n][$V],e);this[EAn]=e}removeUpstream(e){let
  n=yAn(e).origin,r=this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0);return r&&this[g0o](r),this}get upstreams(){return
  this[bZ].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[Wft].origin)}[A0o](){if(this[bZ].length===0)throw new
  p0o;if(!this[bZ].find(s=>!s[TNe]&&s.closed!==!0&&s.destroyed!==!0)||this[bZ].map(s=>s[TNe]).reduce((s,a)=>s&&a,!0))return;let
  r=0,o=this[bZ].findIndex(s=>!s[TNe]);for(;r++<this[bZ].length;){this[Sq]=(this[Sq]+1)%this[bZ].length;let
  s=this[bZ][this[Sq]];if(s[$V]>this[bZ][o][$V]&&!s[TNe]&&(o=this[Sq]),this[Sq]===0&&(this[Xq]=this[Xq]-this[EAn],this[Xq]<=0&&(this[Xq]=this[H_e])),s[$V]>=this[Xq]&&!s[TNe])return s}return
  this[Xq]=this[bZ][o][$V],this[Sq]=o,this[bZ][o]}};ZAn.exports=Rft});var xq=k((Axi,FAn)=>{"use
  strict";var{InvalidArgumentError:S_e,MaxOriginsReachedError:E0o}=lc(),{kClients:eF,kRunning:RAn,kClose:Z0o,kDestroy:W0o,kDispatch:R0o,kUrl:w0o}=rp(),C0o=Wq(),v0o=Sae(),Y0o=Hq(),V0o=bl(),wAn=Symbol("onConne
  ct"),CAn=Symbol("onDisconnect"),vAn=Symbol("onConnectionError"),YAn=Symbol("onDrain"),VAn=Symbol("factory"),wft=Symbol("options"),_Ne=Symbol("origins");function F0o(t,e){return e&&e.connections===1?new
  Y0o(t,e):new v0o(t,e)}var Cft=class extends C0o{constructor({factory:e=F0o,maxOrigins:n=1/0,connect:r,...o}={}){if(typeof e!="function")throw new S_e("factory must be a function.");if(r!=null&&typeof
  r!="function"&&typeof r!="object")throw new S_e("connect must be a function or an object");if(typeof n!="number"||Number.isNaN(n)||n<=0)throw new S_e("maxOrigins must be a number greater than
  0");super(),r&&typeof r!="function"&&(r={...r}),this[wft]={...V0o.deepClone(o),maxOrigins:n,connect:r},this[VAn]=e,this[eF]=new Map,this[_Ne]=new Set,this[YAn]=(s,a)=>{this.emit("drain",s,[this,...a])},thi
  s[wAn]=(s,a)=>{this.emit("connect",s,[this,...a])},this[CAn]=(s,a,l)=>{this.emit("disconnect",s,[this,...a],l)},this[vAn]=(s,a,l)=>{this.emit("connectionError",s,[this,...a],l)}}get[RAn](){let
  e=0;for(let{dispatcher:n}of this[eF].values())e+=n[RAn];return e}[R0o](e,n){let r;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))r=String(e.origin);else throw new S_e("opts.origin must
  be a non-empty string or URL.");if(this[_Ne].size>=this[wft].maxOrigins&&!this[_Ne].has(r))throw new E0o;let o=this[eF].get(r),s=o&&o.dispatcher;if(!s){let a=l=>{let
  c=this[eF].get(r);c&&(l&&(c.count-=1),c.count<=0&&(this[eF].delete(r),c.dispatcher.close()),this[_Ne].delete(r))};s=this[VAn](e.origin,this[wft]).on("drain",this[YAn]).on("connect",(l,c)=>{let
  I=this[eF].get(r);I&&(I.count+=1),this[wAn](l,c)}).on("disconnect",(l,c,I)=>{a(!0),this[CAn](l,c,I)}).on("connectionError",(l,c,I)=>{a(!1),this[vAn](l,c,I)}),this[eF].set(r,{count:0,dispatcher:s}),this[_Ne
  ].add(r)}return s.dispatch(e,n)}[Z0o](){let e=[];for(let{dispatcher:n}of this[eF].values())e.push(n.close());return this[eF].clear(),Promise.all(e)}[W0o](e){let n=[];for(let{dispatcher:r}of
  this[eF].values())n.push(r.destroy(e));return this[eF].clear(),Promise.all(n)}get stats(){let e={};for(let{dispatcher:n}of this[eF].values())n.stats&&(e[n[w0o].origin]=n.stats);return
  e}};FAn.exports=Cft});var Qft=k((fxi,BAn)=>{"use strict";var{kProxy:vft,kClose:kAn,kDestroy:LAn,kDispatch:QAn}=rp(),Q0o=xq(),TAn=Sae(),_An=Wq(),{InvalidArgumentError:xae,RequestAbortedError:H0o,SecureProxy
  ConnectionError:X0o}=lc(),HAn=yNe(),JAn=Hq(),x_e=Symbol("proxy agent"),k_e=Symbol("proxy client"),FU=Symbol("proxy headers"),Yft=Symbol("request tls settings"),XAn=Symbol("proxy tls
  settings"),SAn=Symbol("connect endpoint function"),xAn=Symbol("tunnel proxy");function S0o(t){return t==="https:"?443:80}function x0o(t,e){return new TAn(t,e)}var k0o=()=>{};function L0o(t,e){return
  e.connections===1?new JAn(t,e):new TAn(t,e)}var Vft=class extends _An{#e;constructor(e,{headers:n={},connect:r,factory:o}){if(!e)throw new xae("Proxy URL is
  mandatory");super(),this[FU]=n,o?this.#e=o(e,{connect:r}):this.#e=new JAn(e,{connect:r})}[QAn](e,n){let r=n.onHeaders;n.onHeaders=function(l,c,I){if(l===407){typeof n.onError=="function"&&n.onError(new
  xae("Proxy Authentication Required (407)"));return}r&&r.call(this,l,c,I)};let{origin:o,path:s="/",headers:a={}}=e;if(e.path=o+s,!("host"in a)&&!("Host"in a)){let{host:l}=new URL(o);a.host=l}return
  e.headers={...this[FU],...a},this.#e[QAn](e,n)}[kAn](){return this.#e.close()}[LAn](e){return this.#e.destroy(e)}},Fft=class extends _An{constructor(e){if(!e||typeof e=="object"&&!(e instanceof
  URL)&&!e.uri)throw new xae("Proxy uri is mandatory");let{clientFactory:n=x0o}=e;if(typeof n!="function")throw new xae("Proxy opts.clientFactory must be a function.");let{proxyTunnel:r=!0}=e;super();let
  o=this.#e(e),{href:s,origin:a,port:l,protocol:c,username:I,password:d,hostname:u}=o;if(this[vft]={uri:s,protocol:c},this[Yft]=e.requestTls,this[XAn]=e.proxyTls,this[FU]=e.headers||{},this[xAn]=r,e.auth&&e.
  token)throw new xae("opts.auth cannot be used in combination with opts.token");e.auth?this[FU]["proxy-authorization"]=`Basic
  ${e.auth}`:e.token?this[FU]["proxy-authorization"]=e.token:I&&d&&(this[FU]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(d)}`)


● Request failed due to a transient API error. Retrying...

✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

    W3(t[xNe]===0);return}if(t[CU]&&!t[QNe]){t[CU](),t[CU]=null;return}if(t[vg]&&t[vg].resume(),t[dft])t[vU]=2;else
  if(t[vU]===2){e?(t[vU]=1,queueMicrotask(()=>tAn(t))):tAn(t);continue}if(t[xNe]===0||t[SNe]>=(rAn(t)||1))return;let
  n=t[yX][t[NX]];if(t[ck].protocol==="https:"&&t[VU]!==n.servername){if(t[SNe]>0)return;t[VU]=n.servername,t[vg]?.destroy(new Wfo("servername
  changed"),()=>{t[vg]=null,pft(t)})}if(t[Xae])return;if(!t[vg]){sAn(t);return}if(t[vg].destroyed||t[vg].busy(n))return;!n.aborted&&t[vg].write(n)?t[NX]++:t[yX].splice(t[NX],1)}}iAn.exports=mft});var
  hft=k((hxi,aAn)=>{"use strict";var Y_e=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return
  this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void
  0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aAn.exports=class{constructor(){this.head=this.tail=new Y_e}isEmpty(){return
  this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Y_e),this.head.push(e)}shift(){let e=this.tail,n=e.shift();return
  e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),n}}});var yft=k((bxi,bAn)=>{"use strict";var{PoolStats:Kfo}=yAt(),qfo=Wq(),$fo=hft(),{kConnected:bft,kSize:lAn,kRunning:cAn,kPending:IAn,kQueued:k
  Ne,kBusy:e0o,kFree:t0o,kUrl:n0o,kClose:r0o,kDestroy:o0o,kDispatch:s0o}=rp(),TA=Symbol("clients"),ER=Symbol("needDrain"),LNe=Symbol("queue"),Gft=Symbol("closed
  resolve"),gft=Symbol("onDrain"),dAn=Symbol("onConnect"),uAn=Symbol("onDisconnect"),mAn=Symbol("onConnectionError"),Aft=Symbol("get dispatcher"),pAn=Symbol("add client"),hAn=Symbol("remove
  client"),fft=class extends qfo{[LNe]=new $fo;[kNe]=0;[TA]=[];[ER]=!1;[gft](e,n,r){let o=this[LNe],s=!1;for(;!s;){let
  a=o.shift();if(!a)break;this[kNe]--,s=!e.dispatch(a.opts,a.handler)}if(e[ER]=s,!s&&this[ER]&&(this[ER]=!1,this.emit("drain",n,[this,...r])),this[Gft]&&o.isEmpty()){let a=new Array(this[TA].length);for(let
  l=0;l<this[TA].length;l++)a[l]=this[TA][l].close();Promise.all(a).then(this[Gft])}}[dAn]=(e,n)=>{this.emit("connect",e,[this,...n])};[uAn]=(e,n,r)=>{this.emit("disconnect",e,[this,...n],r)};[mAn]=(e,n,r)=>
  {this.emit("connectionError",e,[this,...n],r)};get[e0o](){return this[ER]}get[bft](){let e=0;for(let{[bft]:n}of this[TA])e+=n;return e}get[t0o](){let e=0;for(let{[bft]:n,[ER]:r}of this[TA])e+=n&&!r;return
  e}get[IAn](){let e=this[kNe];for(let{[IAn]:n}of this[TA])e+=n;return e}get[cAn](){let e=0;for(let{[cAn]:n}of this[TA])e+=n;return e}get[lAn](){let e=this[kNe];for(let{[lAn]:n}of this[TA])e+=n;return e}get
  stats(){return new Kfo(this)}[r0o](){if(this[LNe].isEmpty()){let e=new Array(this[TA].length);for(let n=0;n<this[TA].length;n++)e[n]=this[TA][n].close();return Promise.all(e)}else return new
  Promise(e=>{this[Gft]=e})}[o0o](e){for(;;){let r=this[LNe].shift();if(!r)break;r.handler.onError(e)}let n=new Array(this[TA].length);for(let r=0;r<this[TA].length;r++)n[r]=this[TA][r].destroy(e);return
  Promise.all(n)}[s0o](e,n){let r=this[Aft]();return r?r.dispatch(e,n)||(r[ER]=!0,this[ER]=!this[Aft]()):(this[ER]=!0,this[LNe].push({opts:e,handler:n}),this[kNe]++),!this[ER]}[pAn](e){return
  e.on("drain",this[gft].bind(this,e)).on("connect",this[dAn]).on("disconnect",this[uAn]).on("connectionError",this[mAn]),this[TA].push(e),this[ER]&&queueMicrotask(()=>{this[ER]&&this[gft](e,e[n0o],[e,this])
  }),this}[hAn](e){e.close(()=>{let n=this[TA].indexOf(e);n!==-1&&this[TA].splice(n,1)}),this[ER]=this[TA].some(n=>!n[ER]&&n.closed!==!0&&n.destroyed!==!0)}};bAn.exports={PoolBase:fft,kClients:TA,kNeedDrain:
  ER,kAddClient:pAn,kRemoveClient:hAn,kGetDispatcher:Aft}});var Sae=k((Gxi,fAn)=>{"use strict";var{PoolBase:i0o,kClients:V_e,kNeedDrain:a0o,kAddClient:l0o,kGetDispatcher:c0o,kRemoveClient:I0o}=yft(),d0o=Hq()
  ,{InvalidArgumentError:Nft}=lc(),GAn=bl(),{kUrl:gAn}=rp(),u0o=yNe(),F_e=Symbol("options"),Eft=Symbol("connections"),AAn=Symbol("factory");function m0o(t,e){return new d0o(t,e)}var Zft=class extends
  i0o{constructor(e,{connections:n,factory:r=m0o,connect:o,connectTimeout:s,tls:a,maxCachedSessions:l,socketPath:c,autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d,allowH2:u,clientTtl:m,...p}={}){if(n!=nu
  ll&&(!Number.isFinite(n)||n<0))throw new Nft("invalid connections");if(typeof r!="function")throw new Nft("factory must be a function.");if(o!=null&&typeof o!="function"&&typeof o!="object")throw new
  Nft("connect must be a function or an object");typeof o!="function"&&(o=u0o({...a,maxCachedSessions:l,allowH2:u,socketPath:c,timeout:s,...typeof
  I=="boolean"?{autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d}:void
  0,...o})),super(),this[Eft]=n||null,this[gAn]=GAn.parseOrigin(e),this[F_e]={...GAn.deepClone(p),connect:o,allowH2:u,clientTtl:m},this[F_e].interceptors=p.interceptors?{...p.interceptors}:void
  0,this[AAn]=r,this.on("connect",(h,G)=>{if(m!=null&&m>0)for(let g of G)Object.assign(g,{ttl:Date.now()})}),this.on("connectionError",(h,G,g)=>{for(let f of G){let
  N=this[V_e].indexOf(f);N!==-1&&this[V_e].splice(N,1)}})}[c0o](){let e=this[F_e].clientTtl;for(let n of this[V_e])if(e!=null&&e>0&&n.ttl&&Date.now()-n.ttl>e)this[I0o](n);else if(!n[a0o])return
  n;if(!this[Eft]||this[V_e].length<this[Eft]){let n=this[AAn](this[gAn],this[F_e]);return this[l0o](n),n}}};fAn.exports=Zft});var WAn=k((gxi,ZAn)=>{"use strict";var{BalancedPoolMissingUpstreamError:p0o,Inva
  lidArgumentError:h0o}=lc(),{PoolBase:b0o,kClients:bZ,kNeedDrain:TNe,kAddClient:G0o,kRemoveClient:g0o,kGetDispatcher:A0o}=yft(),f0o=Sae(),{kUrl:Wft}=rp(),{parseOrigin:yAn}=bl(),NAn=Symbol("factory"),Q_e=Sym
  bol("options"),EAn=Symbol("kGreatestCommonDivisor"),Xq=Symbol("kCurrentWeight"),Sq=Symbol("kIndex"),$V=Symbol("kWeight"),H_e=Symbol("kMaxWeightPerServer"),X_e=Symbol("kErrorPenalty");function
  y0o(t,e){if(t===0)return e;for(;e!==0;){let n=e;e=t%e,t=n}return t}function N0o(t,e){return new f0o(t,e)}var Rft=class extends b0o{constructor(e=[],{factory:n=N0o,...r}={}){if(typeof n!="function")throw
  new h0o("factory must be a
  function.");super(),this[Q_e]=r,this[Sq]=-1,this[Xq]=0,this[H_e]=this[Q_e].maxWeightPerServer||100,this[X_e]=this[Q_e].errorPenalty||15,Array.isArray(e)||(e=[e]),this[NAn]=n;for(let o of
  e)this.addUpstream(o);this._updateBalancedPoolStats()}addUpstream(e){let n=yAn(e).origin;if(this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0))return this;let
  r=this[NAn](n,Object.assign({},this[Q_e]));this[G0o](r),r.on("connect",()=>{r[$V]=Math.min(this[H_e],r[$V]+this[X_e])}),r.on("connectionError",()=>{r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoo
  lStats()}),r.on("disconnect",(...o)=>{let s=o[2];s&&s.code==="UND_ERR_SOCKET"&&(r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoolStats())});for(let o of this[bZ])o[$V]=this[H_e];return
  this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let n=0;n<this[bZ].length;n++)e=y0o(this[bZ][n][$V],e);this[EAn]=e}removeUpstream(e){let
  n=yAn(e).origin,r=this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0);return r&&this[g0o](r),this}get upstreams(){return
  this[bZ].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[Wft].origin)}[A0o](){if(this[bZ].length===0)throw new
  p0o;if(!this[bZ].find(s=>!s[TNe]&&s.closed!==!0&&s.destroyed!==!0)||this[bZ].map(s=>s[TNe]).reduce((s,a)=>s&&a,!0))return;let
  r=0,o=this[bZ].findIndex(s=>!s[TNe]);for(;r++<this[bZ].length;){this[Sq]=(this[Sq]+1)%this[bZ].length;let
  s=this[bZ][this[Sq]];if(s[$V]>this[bZ][o][$V]&&!s[TNe]&&(o=this[Sq]),this[Sq]===0&&(this[Xq]=this[Xq]-this[EAn],this[Xq]<=0&&(this[Xq]=this[H_e])),s[$V]>=this[Xq]&&!s[TNe])return s}return
  this[Xq]=this[bZ][o][$V],this[Sq]=o,this[bZ][o]}};ZAn.exports=Rft});var xq=k((Axi,FAn)=>{"use
  strict";var{InvalidArgumentError:S_e,MaxOriginsReachedError:E0o}=lc(),{kClients:eF,kRunning:RAn,kClose:Z0o,kDestroy:W0o,kDispatch:R0o,kUrl:w0o}=rp(),C0o=Wq(),v0o=Sae(),Y0o=Hq(),V0o=bl(),wAn=Symbol("onConne
  ct"),CAn=Symbol("onDisconnect"),vAn=Symbol("onConnectionError"),YAn=Symbol("onDrain"),VAn=Symbol("factory"),wft=Symbol("options"),_Ne=Symbol("origins");function F0o(t,e){return e&&e.connections===1?new
  Y0o(t,e):new v0o(t,e)}var Cft=class extends C0o{constructor({factory:e=F0o,maxOrigins:n=1/0,connect:r,...o}={}){if(typeof e!="function")throw new S_e("factory must be a function.");if(r!=null&&typeof
  r!="function"&&typeof r!="object")throw new S_e("connect must be a function or an object");if(typeof n!="number"||Number.isNaN(n)||n<=0)throw new S_e("maxOrigins must be a number greater than
  0");super(),r&&typeof r!="function"&&(r={...r}),this[wft]={...V0o.deepClone(o),maxOrigins:n,connect:r},this[VAn]=e,this[eF]=new Map,this[_Ne]=new Set,this[YAn]=(s,a)=>{this.emit("drain",s,[this,...a])},thi
  s[wAn]=(s,a)=>{this.emit("connect",s,[this,...a])},this[CAn]=(s,a,l)=>{this.emit("disconnect",s,[this,...a],l)},this[vAn]=(s,a,l)=>{this.emit("connectionError",s,[this,...a],l)}}get[RAn](){let
  e=0;for(let{dispatcher:n}of this[eF].values())e+=n[RAn];return e}[R0o](e,n){let r;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))r=String(e.origin);else throw new S_e("opts.origin must
  be a non-empty string or URL.");if(this[_Ne].size>=this[wft].maxOrigins&&!this[_Ne].has(r))throw new E0o;let o=this[eF].get(r),s=o&&o.dispatcher;if(!s){let a=l=>{let
  c=this[eF].get(r);c&&(l&&(c.count-=1),c.count<=0&&(this[eF].delete(r),c.dispatcher.close()),this[_Ne].delete(r))};s=this[VAn](e.origin,this[wft]).on("drain",this[YAn]).on("connect",(l,c)=>{let
  I=this[eF].get(r);I&&(I.count+=1),this[wAn](l,c)}).on("disconnect",(l,c,I)=>{a(!0),this[CAn](l,c,I)}).on("connectionError",(l,c,I)=>{a(!1),this[vAn](l,c,I)}),this[eF].set(r,{count:0,dispatcher:s}),this[_Ne
  ].add(r)}return s.dispatch(e,n)}[Z0o](){let e=[];for(let{dispatcher:n}of this[eF].values())e.push(n.close());return this[eF].clear(),Promise.all(e)}[W0o](e){let n=[];for(let{dispatcher:r}of
  this[eF].values())n.push(r.destroy(e));return this[eF].clear(),Promise.all(n)}get stats(){let e={};for(let{dispatcher:n}of this[eF].values())n.stats&&(e[n[w0o].origin]=n.stats);return
  e}};FAn.exports=Cft});var Qft=k((fxi,BAn)=>{"use strict";var{kProxy:vft,kClose:kAn,kDestroy:LAn,kDispatch:QAn}=rp(),Q0o=xq(),TAn=Sae(),_An=Wq(),{InvalidArgumentError:xae,RequestAbortedError:H0o,SecureProxy
  ConnectionError:X0o}=lc(),HAn=yNe(),JAn=Hq(),x_e=Symbol("proxy agent"),k_e=Symbol("proxy client"),FU=Symbol("proxy headers"),Yft=Symbol("request tls settings"),XAn=Symbol("proxy tls
  settings"),SAn=Symbol("connect endpoint function"),xAn=Symbol("tunnel proxy");function S0o(t){return t==="https:"?443:80}function x0o(t,e){return new TAn(t,e)}var k0o=()=>{};function L0o(t,e){return
  e.connections===1?new JAn(t,e):new TAn(t,e)}var Vft=class extends _An{#e;constructor(e,{headers:n={},connect:r,factory:o}){if(!e)throw new xae("Proxy URL is
  mandatory");super(),this[FU]=n,o?this.#e=o(e,{connect:r}):this.#e=new JAn(e,{connect:r})}[QAn](e,n){let r=n.onHeaders;n.onHeaders=function(l,c,I){if(l===407){typeof n.onError=="function"&&n.onError(new
  xae("Proxy Authentication Required (407)"));return}r&&r.call(this,l,c,I)};let{origin:o,path:s="/",headers:a={}}=e;if(e.path=o+s,!("host"in a)&&!("Host"in a)){let{host:l}=new URL(o);a.host=l}return
  e.headers={...this[FU],...a},this.#e[QAn](e,n)}[kAn](){return this.#e.close()}[LAn](e){return this.#e.destroy(e)}},Fft=class extends _An{constructor(e){if(!e||typeof e=="object"&&!(e instanceof
  URL)&&!e.uri)throw new xae("Proxy uri is mandatory");let{clientFactory:n=x0o}=e;if(typeof n!="function")throw new xae("Proxy opts.clientFactory must be a function.");let{proxyTunnel:r=!0}=e;super();let
  o=this.#e(e),{href:s,origin:a,port:l,protocol:c,username:I,password:d,hostname:u}=o;if(this[vft]={uri:s,protocol:c},this[Yft]=e.requestTls,this[XAn]=e.proxyTls,this[FU]=e.headers||{},this[xAn]=r,e.auth&&e.
  token)throw new xae("opts.auth cannot be used in combination with opts.token");e.auth?this[FU]["proxy-authorization"]=`Basic
  ${e.auth}`:e.token?this[FU]["proxy-authorization"]=e.token:I&&d&&(this[FU]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(d)}`)


● Request failed due to a transient API error. Retrying...

✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

    W3(t[xNe]===0);return}if(t[CU]&&!t[QNe]){t[CU](),t[CU]=null;return}if(t[vg]&&t[vg].resume(),t[dft])t[vU]=2;else
  if(t[vU]===2){e?(t[vU]=1,queueMicrotask(()=>tAn(t))):tAn(t);continue}if(t[xNe]===0||t[SNe]>=(rAn(t)||1))return;let
  n=t[yX][t[NX]];if(t[ck].protocol==="https:"&&t[VU]!==n.servername){if(t[SNe]>0)return;t[VU]=n.servername,t[vg]?.destroy(new Wfo("servername
  changed"),()=>{t[vg]=null,pft(t)})}if(t[Xae])return;if(!t[vg]){sAn(t);return}if(t[vg].destroyed||t[vg].busy(n))return;!n.aborted&&t[vg].write(n)?t[NX]++:t[yX].splice(t[NX],1)}}iAn.exports=mft});var
  hft=k((hxi,aAn)=>{"use strict";var Y_e=class{bottom=0;top=0;list=new Array(2048).fill(void 0);next=null;isEmpty(){return
  this.top===this.bottom}isFull(){return(this.top+1&2047)===this.bottom}push(e){this.list[this.top]=e,this.top=this.top+1&2047}shift(){let e=this.list[this.bottom];return e===void
  0?null:(this.list[this.bottom]=void 0,this.bottom=this.bottom+1&2047,e)}};aAn.exports=class{constructor(){this.head=this.tail=new Y_e}isEmpty(){return
  this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Y_e),this.head.push(e)}shift(){let e=this.tail,n=e.shift();return
  e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),n}}});var yft=k((bxi,bAn)=>{"use strict";var{PoolStats:Kfo}=yAt(),qfo=Wq(),$fo=hft(),{kConnected:bft,kSize:lAn,kRunning:cAn,kPending:IAn,kQueued:k
  Ne,kBusy:e0o,kFree:t0o,kUrl:n0o,kClose:r0o,kDestroy:o0o,kDispatch:s0o}=rp(),TA=Symbol("clients"),ER=Symbol("needDrain"),LNe=Symbol("queue"),Gft=Symbol("closed
  resolve"),gft=Symbol("onDrain"),dAn=Symbol("onConnect"),uAn=Symbol("onDisconnect"),mAn=Symbol("onConnectionError"),Aft=Symbol("get dispatcher"),pAn=Symbol("add client"),hAn=Symbol("remove
  client"),fft=class extends qfo{[LNe]=new $fo;[kNe]=0;[TA]=[];[ER]=!1;[gft](e,n,r){let o=this[LNe],s=!1;for(;!s;){let
  a=o.shift();if(!a)break;this[kNe]--,s=!e.dispatch(a.opts,a.handler)}if(e[ER]=s,!s&&this[ER]&&(this[ER]=!1,this.emit("drain",n,[this,...r])),this[Gft]&&o.isEmpty()){let a=new Array(this[TA].length);for(let
  l=0;l<this[TA].length;l++)a[l]=this[TA][l].close();Promise.all(a).then(this[Gft])}}[dAn]=(e,n)=>{this.emit("connect",e,[this,...n])};[uAn]=(e,n,r)=>{this.emit("disconnect",e,[this,...n],r)};[mAn]=(e,n,r)=>
  {this.emit("connectionError",e,[this,...n],r)};get[e0o](){return this[ER]}get[bft](){let e=0;for(let{[bft]:n}of this[TA])e+=n;return e}get[t0o](){let e=0;for(let{[bft]:n,[ER]:r}of this[TA])e+=n&&!r;return
  e}get[IAn](){let e=this[kNe];for(let{[IAn]:n}of this[TA])e+=n;return e}get[cAn](){let e=0;for(let{[cAn]:n}of this[TA])e+=n;return e}get[lAn](){let e=this[kNe];for(let{[lAn]:n}of this[TA])e+=n;return e}get
  stats(){return new Kfo(this)}[r0o](){if(this[LNe].isEmpty()){let e=new Array(this[TA].length);for(let n=0;n<this[TA].length;n++)e[n]=this[TA][n].close();return Promise.all(e)}else return new
  Promise(e=>{this[Gft]=e})}[o0o](e){for(;;){let r=this[LNe].shift();if(!r)break;r.handler.onError(e)}let n=new Array(this[TA].length);for(let r=0;r<this[TA].length;r++)n[r]=this[TA][r].destroy(e);return
  Promise.all(n)}[s0o](e,n){let r=this[Aft]();return r?r.dispatch(e,n)||(r[ER]=!0,this[ER]=!this[Aft]()):(this[ER]=!0,this[LNe].push({opts:e,handler:n}),this[kNe]++),!this[ER]}[pAn](e){return
  e.on("drain",this[gft].bind(this,e)).on("connect",this[dAn]).on("disconnect",this[uAn]).on("connectionError",this[mAn]),this[TA].push(e),this[ER]&&queueMicrotask(()=>{this[ER]&&this[gft](e,e[n0o],[e,this])
  }),this}[hAn](e){e.close(()=>{let n=this[TA].indexOf(e);n!==-1&&this[TA].splice(n,1)}),this[ER]=this[TA].some(n=>!n[ER]&&n.closed!==!0&&n.destroyed!==!0)}};bAn.exports={PoolBase:fft,kClients:TA,kNeedDrain:
  ER,kAddClient:pAn,kRemoveClient:hAn,kGetDispatcher:Aft}});var Sae=k((Gxi,fAn)=>{"use strict";var{PoolBase:i0o,kClients:V_e,kNeedDrain:a0o,kAddClient:l0o,kGetDispatcher:c0o,kRemoveClient:I0o}=yft(),d0o=Hq()
  ,{InvalidArgumentError:Nft}=lc(),GAn=bl(),{kUrl:gAn}=rp(),u0o=yNe(),F_e=Symbol("options"),Eft=Symbol("connections"),AAn=Symbol("factory");function m0o(t,e){return new d0o(t,e)}var Zft=class extends
  i0o{constructor(e,{connections:n,factory:r=m0o,connect:o,connectTimeout:s,tls:a,maxCachedSessions:l,socketPath:c,autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d,allowH2:u,clientTtl:m,...p}={}){if(n!=nu
  ll&&(!Number.isFinite(n)||n<0))throw new Nft("invalid connections");if(typeof r!="function")throw new Nft("factory must be a function.");if(o!=null&&typeof o!="function"&&typeof o!="object")throw new
  Nft("connect must be a function or an object");typeof o!="function"&&(o=u0o({...a,maxCachedSessions:l,allowH2:u,socketPath:c,timeout:s,...typeof
  I=="boolean"?{autoSelectFamily:I,autoSelectFamilyAttemptTimeout:d}:void
  0,...o})),super(),this[Eft]=n||null,this[gAn]=GAn.parseOrigin(e),this[F_e]={...GAn.deepClone(p),connect:o,allowH2:u,clientTtl:m},this[F_e].interceptors=p.interceptors?{...p.interceptors}:void
  0,this[AAn]=r,this.on("connect",(h,G)=>{if(m!=null&&m>0)for(let g of G)Object.assign(g,{ttl:Date.now()})}),this.on("connectionError",(h,G,g)=>{for(let f of G){let
  N=this[V_e].indexOf(f);N!==-1&&this[V_e].splice(N,1)}})}[c0o](){let e=this[F_e].clientTtl;for(let n of this[V_e])if(e!=null&&e>0&&n.ttl&&Date.now()-n.ttl>e)this[I0o](n);else if(!n[a0o])return
  n;if(!this[Eft]||this[V_e].length<this[Eft]){let n=this[AAn](this[gAn],this[F_e]);return this[l0o](n),n}}};fAn.exports=Zft});var WAn=k((gxi,ZAn)=>{"use strict";var{BalancedPoolMissingUpstreamError:p0o,Inva
  lidArgumentError:h0o}=lc(),{PoolBase:b0o,kClients:bZ,kNeedDrain:TNe,kAddClient:G0o,kRemoveClient:g0o,kGetDispatcher:A0o}=yft(),f0o=Sae(),{kUrl:Wft}=rp(),{parseOrigin:yAn}=bl(),NAn=Symbol("factory"),Q_e=Sym
  bol("options"),EAn=Symbol("kGreatestCommonDivisor"),Xq=Symbol("kCurrentWeight"),Sq=Symbol("kIndex"),$V=Symbol("kWeight"),H_e=Symbol("kMaxWeightPerServer"),X_e=Symbol("kErrorPenalty");function
  y0o(t,e){if(t===0)return e;for(;e!==0;){let n=e;e=t%e,t=n}return t}function N0o(t,e){return new f0o(t,e)}var Rft=class extends b0o{constructor(e=[],{factory:n=N0o,...r}={}){if(typeof n!="function")throw
  new h0o("factory must be a
  function.");super(),this[Q_e]=r,this[Sq]=-1,this[Xq]=0,this[H_e]=this[Q_e].maxWeightPerServer||100,this[X_e]=this[Q_e].errorPenalty||15,Array.isArray(e)||(e=[e]),this[NAn]=n;for(let o of
  e)this.addUpstream(o);this._updateBalancedPoolStats()}addUpstream(e){let n=yAn(e).origin;if(this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0))return this;let
  r=this[NAn](n,Object.assign({},this[Q_e]));this[G0o](r),r.on("connect",()=>{r[$V]=Math.min(this[H_e],r[$V]+this[X_e])}),r.on("connectionError",()=>{r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoo
  lStats()}),r.on("disconnect",(...o)=>{let s=o[2];s&&s.code==="UND_ERR_SOCKET"&&(r[$V]=Math.max(1,r[$V]-this[X_e]),this._updateBalancedPoolStats())});for(let o of this[bZ])o[$V]=this[H_e];return
  this._updateBalancedPoolStats(),this}_updateBalancedPoolStats(){let e=0;for(let n=0;n<this[bZ].length;n++)e=y0o(this[bZ][n][$V],e);this[EAn]=e}removeUpstream(e){let
  n=yAn(e).origin,r=this[bZ].find(o=>o[Wft].origin===n&&o.closed!==!0&&o.destroyed!==!0);return r&&this[g0o](r),this}get upstreams(){return
  this[bZ].filter(e=>e.closed!==!0&&e.destroyed!==!0).map(e=>e[Wft].origin)}[A0o](){if(this[bZ].length===0)throw new
  p0o;if(!this[bZ].find(s=>!s[TNe]&&s.closed!==!0&&s.destroyed!==!0)||this[bZ].map(s=>s[TNe]).reduce((s,a)=>s&&a,!0))return;let
  r=0,o=this[bZ].findIndex(s=>!s[TNe]);for(;r++<this[bZ].length;){this[Sq]=(this[Sq]+1)%this[bZ].length;let
  s=this[bZ][this[Sq]];if(s[$V]>this[bZ][o][$V]&&!s[TNe]&&(o=this[Sq]),this[Sq]===0&&(this[Xq]=this[Xq]-this[EAn],this[Xq]<=0&&(this[Xq]=this[H_e])),s[$V]>=this[Xq]&&!s[TNe])return s}return
  this[Xq]=this[bZ][o][$V],this[Sq]=o,this[bZ][o]}};ZAn.exports=Rft});var xq=k((Axi,FAn)=>{"use
  strict";var{InvalidArgumentError:S_e,MaxOriginsReachedError:E0o}=lc(),{kClients:eF,kRunning:RAn,kClose:Z0o,kDestroy:W0o,kDispatch:R0o,kUrl:w0o}=rp(),C0o=Wq(),v0o=Sae(),Y0o=Hq(),V0o=bl(),wAn=Symbol("onConne
  ct"),CAn=Symbol("onDisconnect"),vAn=Symbol("onConnectionError"),YAn=Symbol("onDrain"),VAn=Symbol("factory"),wft=Symbol("options"),_Ne=Symbol("origins");function F0o(t,e){return e&&e.connections===1?new
  Y0o(t,e):new v0o(t,e)}var Cft=class extends C0o{constructor({factory:e=F0o,maxOrigins:n=1/0,connect:r,...o}={}){if(typeof e!="function")throw new S_e("factory must be a function.");if(r!=null&&typeof
  r!="function"&&typeof r!="object")throw new S_e("connect must be a function or an object");if(typeof n!="number"||Number.isNaN(n)||n<=0)throw new S_e("maxOrigins must be a number greater than
  0");super(),r&&typeof r!="function"&&(r={...r}),this[wft]={...V0o.deepClone(o),maxOrigins:n,connect:r},this[VAn]=e,this[eF]=new Map,this[_Ne]=new Set,this[YAn]=(s,a)=>{this.emit("drain",s,[this,...a])},thi
  s[wAn]=(s,a)=>{this.emit("connect",s,[this,...a])},this[CAn]=(s,a,l)=>{this.emit("disconnect",s,[this,...a],l)},this[vAn]=(s,a,l)=>{this.emit("connectionError",s,[this,...a],l)}}get[RAn](){let
  e=0;for(let{dispatcher:n}of this[eF].values())e+=n[RAn];return e}[R0o](e,n){let r;if(e.origin&&(typeof e.origin=="string"||e.origin instanceof URL))r=String(e.origin);else throw new S_e("opts.origin must
  be a non-empty string or URL.");if(this[_Ne].size>=this[wft].maxOrigins&&!this[_Ne].has(r))throw new E0o;let o=this[eF].get(r),s=o&&o.dispatcher;if(!s){let a=l=>{let
  c=this[eF].get(r);c&&(l&&(c.count-=1),c.count<=0&&(this[eF].delete(r),c.dispatcher.close()),this[_Ne].delete(r))};s=this[VAn](e.origin,this[wft]).on("drain",this[YAn]).on("connect",(l,c)=>{let
  I=this[eF].get(r);I&&(I.count+=1),this[wAn](l,c)}).on("disconnect",(l,c,I)=>{a(!0),this[CAn](l,c,I)}).on("connectionError",(l,c,I)=>{a(!1),this[vAn](l,c,I)}),this[eF].set(r,{count:0,dispatcher:s}),this[_Ne
  ].add(r)}return s.dispatch(e,n)}[Z0o](){let e=[];for(let{dispatcher:n}of this[eF].values())e.push(n.close());return this[eF].clear(),Promise.all(e)}[W0o](e){let n=[];for(let{dispatcher:r}of
  this[eF].values())n.push(r.destroy(e));return this[eF].clear(),Promise.all(n)}get stats(){let e={};for(let{dispatcher:n}of this[eF].values())n.stats&&(e[n[w0o].origin]=n.stats);return
  e}};FAn.exports=Cft});var Qft=k((fxi,BAn)=>{"use strict";var{kProxy:vft,kClose:kAn,kDestroy:LAn,kDispatch:QAn}=rp(),Q0o=xq(),TAn=Sae(),_An=Wq(),{InvalidArgumentError:xae,RequestAbortedError:H0o,SecureProxy
  ConnectionError:X0o}=lc(),HAn=yNe(),JAn=Hq(),x_e=Symbol("proxy agent"),k_e=Symbol("proxy client"),FU=Symbol("proxy headers"),Yft=Symbol("request tls settings"),XAn=Symbol("proxy tls
  settings"),SAn=Symbol("connect endpoint function"),xAn=Symbol("tunnel proxy");function S0o(t){return t==="https:"?443:80}function x0o(t,e){return new TAn(t,e)}var k0o=()=>{};function L0o(t,e){return
  e.connections===1?new JAn(t,e):new TAn(t,e)}var Vft=class extends _An{#e;constructor(e,{headers:n={},connect:r,factory:o}){if(!e)throw new xae("Proxy URL is
  mandatory");super(),this[FU]=n,o?this.#e=o(e,{connect:r}):this.#e=new JAn(e,{connect:r})}[QAn](e,n){let r=n.onHeaders;n.onHeaders=function(l,c,I){if(l===407){typeof n.onError=="function"&&n.onError(new
  xae("Proxy Authentication Required (407)"));return}r&&r.call(this,l,c,I)};let{origin:o,path:s="/",headers:a={}}=e;if(e.path=o+s,!("host"in a)&&!("Host"in a)){let{host:l}=new URL(o);a.host=l}return
  e.headers={...this[FU],...a},this.#e[QAn](e,n)}[kAn](){return this.#e.close()}[LAn](e){return this.#e.destroy(e)}},Fft=class extends _An{constructor(e){if(!e||typeof e=="object"&&!(e instanceof
  URL)&&!e.uri)throw new xae("Proxy uri is mandatory");let{clientFactory:n=x0o}=e;if(typeof n!="function")throw new xae("Proxy opts.clientFactory must be a function.");let{proxyTunnel:r=!0}=e;super();let
  o=this.#e(e),{href:s,origin:a,port:l,protocol:c,username:I,password:d,hostname:u}=o;if(this[vft]={uri:s,protocol:c},this[Yft]=e.requestTls,this[XAn]=e.proxyTls,this[FU]=e.headers||{},this[xAn]=r,e.auth&&e.
  token)throw new xae("opts.auth cannot be used in combination with opts.token");e.auth?this[FU]["proxy-authorization"]=`Basic
  ${e.auth}`:e.token?this[FU]["proxy-authorization"]=e.token:I&&d&&(this[FU]["proxy-authorization"]=`Basic ${Buffer.from(`${decodeURIComponent(I)}:${decodeURIComponent(d)}`)


● Request failed due to a transient API error. Retrying...

✗ AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value:

Expected behavior

Should work as normal and generate the expected artifacts

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions